|
@@ -174,6 +174,12 @@
|
|
]" :max="10" :min="1" style="width:100%">
|
|
]" :max="10" :min="1" style="width:100%">
|
|
</a-input-number>
|
|
</a-input-number>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
+ <a-form-item label="广告组名称" :labelCol="{ lg: { span: 6 }, sm: { span: 6 } }"
|
|
|
|
+ :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }" v-if="getData('createCount')==1">
|
|
|
|
+ <a-input v-decorator="[
|
|
|
|
+ 'unitName',
|
|
|
|
+ { rules: [{ required: true, message: '请输入广告组名称' }]} ]" />
|
|
|
|
+ </a-form-item>
|
|
<a-form-item label="广告组名称生成类型" :labelCol="{ lg: { span: 6 }, sm: { span: 6 } }"
|
|
<a-form-item label="广告组名称生成类型" :labelCol="{ lg: { span: 6 }, sm: { span: 6 } }"
|
|
:wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }" v-if="getData('createCount')>1">
|
|
:wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }" v-if="getData('createCount')>1">
|
|
<a-radio-group buttonStyle="solid" v-decorator="[
|
|
<a-radio-group buttonStyle="solid" v-decorator="[
|
|
@@ -599,7 +605,7 @@
|
|
filterOption(input, option) {
|
|
filterOption(input, option) {
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
remove(targetKey) {
|
|
remove(targetKey) {
|
|
let activeKey = this.titleKey
|
|
let activeKey = this.titleKey
|
|
let lastIndex
|
|
let lastIndex
|
|
@@ -756,7 +762,7 @@
|
|
this.campaignId = localStorage.getItem('advertisingGroupKey')
|
|
this.campaignId = localStorage.getItem('advertisingGroupKey')
|
|
this.visibleBatch = true
|
|
this.visibleBatch = true
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
|
|
+
|
|
var params = {}
|
|
var params = {}
|
|
params.accountId = localStorage.getItem('accountId')
|
|
params.accountId = localStorage.getItem('accountId')
|
|
params.putStatus = this.allType
|
|
params.putStatus = this.allType
|
|
@@ -972,8 +978,14 @@
|
|
},
|
|
},
|
|
handleSubmitCopy(e) {
|
|
handleSubmitCopy(e) {
|
|
if (this.getData('createCount') == 1) {
|
|
if (this.getData('createCount') == 1) {
|
|
- this.visibleCopy = false
|
|
|
|
- this.$refs.editGroup.handleOk(this.copyData, 'copy', this.getData('campaignId'))
|
|
|
|
|
|
+
|
|
|
|
+ this.form.validateFields((err, values) => {
|
|
|
|
+ if (!err) {
|
|
|
|
+ this.visibleCopy = false
|
|
|
|
+ this.$refs.editGroup.handleOk(this.copyData, 'copy', this.getData('campaignId'), values.unitName)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
// postAction('/kuaishou/batch/copyUnit', params).then(res => {})
|
|
// postAction('/kuaishou/batch/copyUnit', params).then(res => {})
|
|
} else if (this.getData('createCount') > 1) {
|
|
} else if (this.getData('createCount') > 1) {
|
|
this.loading = true
|
|
this.loading = true
|
|
@@ -994,19 +1006,22 @@
|
|
postAction('/kuaishou/batch/copyUnit', params).then(res => {
|
|
postAction('/kuaishou/batch/copyUnit', params).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
// visibleData
|
|
// visibleData
|
|
- if (res.result.failCount > 0) {
|
|
|
|
- this.visible = true
|
|
|
|
- this.visibleData = res.result
|
|
|
|
- this.getDataList(localStorage.getItem('advertisingGroupKey'))
|
|
|
|
- } else {
|
|
|
|
- this.getDataList(localStorage.getItem('advertisingGroupKey'))
|
|
|
|
- this.$message.success('批量修改成功')
|
|
|
|
- this.allMoneyBidProportion = 1.2
|
|
|
|
- this.selectedRowKeysValue = []
|
|
|
|
- this.selectedRowKeys = []
|
|
|
|
- }
|
|
|
|
- this.visibleCopy = false
|
|
|
|
- this.loading = false
|
|
|
|
|
|
+ if (res.result.failCount > 0) {
|
|
|
|
+ this.visible = true
|
|
|
|
+ this.visibleData = res.result
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.success('批量复制成功')
|
|
|
|
+ this.allMoneyBidProportion = 1.2
|
|
|
|
+ this.selectedRowKeysValue = []
|
|
|
|
+ this.selectedRowKeys = []
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.visibleCopy = false
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.getDataList(localStorage.getItem('advertisingGroupKey'))
|
|
|
|
+ }, 1000)
|
|
|
|
+ // this.getDataList(localStorage.getItem('advertisingGroupKey'))
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else if (this.getData('createType') == '2') {
|
|
} else if (this.getData('createType') == '2') {
|
|
@@ -1025,10 +1040,22 @@
|
|
}
|
|
}
|
|
postAction('/kuaishou/batch/copyUnit', params).then(res => {
|
|
postAction('/kuaishou/batch/copyUnit', params).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
- this.visibleCopy = false
|
|
|
|
- this.loading = false
|
|
|
|
- this.getDataList(localStorage.getItem('advertisingGroupKey'))
|
|
|
|
|
|
+ if (res.result.failCount > 0) {
|
|
|
|
+ this.visible = true
|
|
|
|
+ this.visibleData = res.result
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.success('批量复制成功')
|
|
|
|
+ this.allMoneyBidProportion = 1.2
|
|
|
|
+ this.selectedRowKeysValue = []
|
|
|
|
+ this.selectedRowKeys = []
|
|
|
|
+ }
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.visibleCopy = false
|
|
|
|
+ this.loading = false
|
|
|
|
+ this.getDataList(localStorage.getItem('advertisingGroupKey'))
|
|
|
|
+ }, 1000)
|
|
|
|
|
|
|
|
+ // this.getDataList(localStorage.getItem('advertisingGroupKey'))
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1115,10 +1142,10 @@
|
|
dataValue(n, o) {
|
|
dataValue(n, o) {
|
|
this.indeterminate = !!this.dataValue.length && this.dataValue.length < this.showList.length
|
|
this.indeterminate = !!this.dataValue.length && this.dataValue.length < this.showList.length
|
|
this.checkAll = this.dataValue.length === this.showList.length
|
|
this.checkAll = this.dataValue.length === this.showList.length
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
- activated() {
|
|
|
|
|
|
+ mounted() {
|
|
var data = JSON.parse(localStorage.getItem('advertisingGroup'))
|
|
var data = JSON.parse(localStorage.getItem('advertisingGroup'))
|
|
this.titleKey = localStorage.getItem('advertisingGroupKey')
|
|
this.titleKey = localStorage.getItem('advertisingGroupKey')
|
|
this.title = data.map(item => {
|
|
this.title = data.map(item => {
|