|
@@ -135,7 +135,7 @@
|
|
|
</a-popconfirm>
|
|
|
<a-divider type="vertical" />
|
|
|
<a @click="realTimedata(record)">查看实时数据</a>
|
|
|
- <!-- <a-divider type="vertical" />
|
|
|
+ <a-divider type="vertical" />
|
|
|
<a-popconfirm @confirm="getInfo(record, 'allUnit')">
|
|
|
<div slot="title">
|
|
|
<div>
|
|
@@ -143,9 +143,9 @@
|
|
|
<a-input placeholder="请输入" v-model="refuseReason" style="display: inline-block; width: 500px" />
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<a @click="setData(record)">复制此计划下所有组</a>
|
|
|
- </a-popconfirm> -->
|
|
|
+ </a-popconfirm>
|
|
|
</span>
|
|
|
<span slot="campaignType" slot-scope="text">
|
|
|
{{ text | typeStatus }}
|
|
@@ -284,7 +284,7 @@
|
|
|
</a-radio-group>
|
|
|
</a-form-item>
|
|
|
|
|
|
- <copyAllUnit ref="copyAllUnit" v-show="editUnit == '1'" @getUnitData="getUnitData" />
|
|
|
+ <copyAllUnit ref="copyAllUnit" v-if="editUnit == '1'" @getUnitData="getUnitDataAll" />
|
|
|
<template slot="footer">
|
|
|
<a-button key="submit" type="primary" @click="handleEditAllUnit"> 确定 </a-button>
|
|
|
</template>
|
|
@@ -626,7 +626,7 @@ export default {
|
|
|
oldCampaignId: '',
|
|
|
oldCampaignName: '',
|
|
|
newCampaignId: '',
|
|
|
- campaignType:'',
|
|
|
+ campaignType: '',
|
|
|
}
|
|
|
},
|
|
|
filters: {
|
|
@@ -834,17 +834,22 @@ export default {
|
|
|
newCampaignId: this.newCampaignId,
|
|
|
campaignType: this.campaignType,
|
|
|
}
|
|
|
- this.$refs.copyAllUnit.handleOk(params)
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.copyAllUnit.handleOk(params)
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
- getUnitData() {
|
|
|
+ getUnitDataAll() {
|
|
|
this.addUser()
|
|
|
this.allUnitCopy = false
|
|
|
this.editUnit = '2'
|
|
|
+ this.$message.success('复制成功,异步创建中,请稍后')
|
|
|
},
|
|
|
handleEditAllUnit(e) {
|
|
|
if (this.editUnit == '1') {
|
|
|
- this.$refs.copyAllUnit.handleSubmit(e)
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.copyAllUnit.handleSubmit(e)
|
|
|
+ })
|
|
|
} else {
|
|
|
postAction('/kuaishouCampaignCopyData/add', {
|
|
|
accountId: this.appId,
|
|
@@ -855,6 +860,10 @@ export default {
|
|
|
if (res.success) {
|
|
|
this.addUser()
|
|
|
this.allUnitCopy = false
|
|
|
+ this.$message.success(res.message)
|
|
|
+ } else {
|
|
|
+ this.allUnitCopy = false
|
|
|
+ this.$message.error(res.message)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -1182,7 +1191,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
},
|
|
|
- watch: {},
|
|
|
+ watch: {
|
|
|
+ allUnitCopy:function(n,o){
|
|
|
+ if(!n){
|
|
|
+ this.editUnit = '2'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
computed: {},
|
|
|
activated() {
|