|
@@ -51,7 +51,7 @@
|
|
</a-tabs>
|
|
</a-tabs>
|
|
</a-card>
|
|
</a-card>
|
|
</a-row>
|
|
</a-row>
|
|
- <a-modal v-model="visibleAll" title="批量修改第三方监测链接" @ok="handleOkAll" :width="800">
|
|
|
|
|
|
+ <a-modal v-model="visibleAll" title="批量修改第三方监测链接" @ok="handleOkAll" :confirmLoading="allLoading" :width="800">
|
|
<a-form-item label="检测链接" :labelCol="{ lg: { span: 4 }, sm: { span: 2 } }"
|
|
<a-form-item label="检测链接" :labelCol="{ lg: { span: 4 }, sm: { span: 2 } }"
|
|
:wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }">
|
|
:wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }">
|
|
<a-input v-model="clickTrackUrl" placeholder="请输入第三方检测链接">
|
|
<a-input v-model="clickTrackUrl" placeholder="请输入第三方检测链接">
|
|
@@ -213,6 +213,7 @@
|
|
return {
|
|
return {
|
|
visible: false,
|
|
visible: false,
|
|
visibleAll: false,
|
|
visibleAll: false,
|
|
|
|
+ allLoading: false,
|
|
visibleFail: false,
|
|
visibleFail: false,
|
|
visibleData: null,
|
|
visibleData: null,
|
|
clickTrackUrl: '',
|
|
clickTrackUrl: '',
|
|
@@ -330,6 +331,7 @@
|
|
this.handleSubmit()
|
|
this.handleSubmit()
|
|
},
|
|
},
|
|
handleOkAll() {
|
|
handleOkAll() {
|
|
|
|
+ this.allLoading = true
|
|
var params = {}
|
|
var params = {}
|
|
params.accountId = localStorage.getItem('accountId')
|
|
params.accountId = localStorage.getItem('accountId')
|
|
params.creativeJson = {
|
|
params.creativeJson = {
|
|
@@ -340,6 +342,7 @@
|
|
console.log(res)
|
|
console.log(res)
|
|
if (res.success) {
|
|
if (res.success) {
|
|
if (res.result.failCount > 0) {
|
|
if (res.result.failCount > 0) {
|
|
|
|
+ this.allLoading = false
|
|
this.visibleAll = false
|
|
this.visibleAll = false
|
|
this.visibleFail = true
|
|
this.visibleFail = true
|
|
this.visibleData = res.result
|
|
this.visibleData = res.result
|
|
@@ -350,9 +353,11 @@
|
|
this.selectedRowKeysValue = []
|
|
this.selectedRowKeysValue = []
|
|
this.selectedRowKeys = []
|
|
this.selectedRowKeys = []
|
|
this.clickTrackUrl = ''
|
|
this.clickTrackUrl = ''
|
|
|
|
+ this.visibleAll = false
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.$message.error('修改失败')
|
|
this.$message.error('修改失败')
|
|
|
|
+ this.visibleAll = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -422,6 +427,7 @@
|
|
if (this.allType == '4') {
|
|
if (this.allType == '4') {
|
|
// /kuaishou/batch/batchUpdateCreative
|
|
// /kuaishou/batch/batchUpdateCreative
|
|
this.visibleAll = true
|
|
this.visibleAll = true
|
|
|
|
+ this.allLoading = false
|
|
} else {
|
|
} else {
|
|
var params = {}
|
|
var params = {}
|
|
params.accountId = localStorage.getItem('accountId')
|
|
params.accountId = localStorage.getItem('accountId')
|