|
@@ -53,7 +53,8 @@
|
|
<div v-show="selectedRowKeys.length > 0">
|
|
<div v-show="selectedRowKeys.length > 0">
|
|
批量修改预算:
|
|
批量修改预算:
|
|
<a-input-number :min="-1" :step="0.1" v-model="allMoney" style="width:150px" @fouse.stop />
|
|
<a-input-number :min="-1" :step="0.1" v-model="allMoney" style="width:150px" @fouse.stop />
|
|
- <a-button @click="editMoney" style="margin:0 15px 15px 15px" type="primary" :loading="loadingMoney">修改</a-button>
|
|
|
|
|
|
+ <a-button @click="editMoney" style="margin:0 15px 15px 15px" type="primary" :loading="loadingMoney">修改
|
|
|
|
+ </a-button>
|
|
|
|
|
|
批量修改出价:
|
|
批量修改出价:
|
|
<a-select style="width: 120px" v-model="allPrice" @change="changePrice">
|
|
<a-select style="width: 120px" v-model="allPrice" @change="changePrice">
|
|
@@ -71,7 +72,8 @@
|
|
{{allMoneyBid&&deepConversionBid?((allMoneyBid/deepConversionBid)*100).toFixed(2)+'%':''}}</span>
|
|
{{allMoneyBid&&deepConversionBid?((allMoneyBid/deepConversionBid)*100).toFixed(2)+'%':''}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <a-button @click="editMoneyBid" style="margin:0 15px 15px 15px" type="primary" :loading="loadingAllMoney">修改</a-button>
|
|
|
|
|
|
+ <a-button @click="editMoneyBid" style="margin:0 15px 15px 15px" type="primary" :loading="loadingAllMoney">
|
|
|
|
+ 修改</a-button>
|
|
|
|
|
|
批量操作:
|
|
批量操作:
|
|
<a-select style="width: 120px" v-model="allType">
|
|
<a-select style="width: 120px" v-model="allType">
|
|
@@ -81,7 +83,8 @@
|
|
<a-select-option value="4">修改</a-select-option>
|
|
<a-select-option value="4">修改</a-select-option>
|
|
<a-select-option value="5">复制</a-select-option>
|
|
<a-select-option value="5">复制</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
- <a-button @click="editStatus" style="margin:0 0 15px 15px" type="primary" :loading="loadingState">确认</a-button>
|
|
|
|
|
|
+ <a-button @click="editStatus" style="margin:0 0 15px 15px" type="primary" :loading="loadingState">确认
|
|
|
|
+ </a-button>
|
|
</div>
|
|
</div>
|
|
<a-modal title="列表项筛选" v-model="showEdit" @ok="handleOk">
|
|
<a-modal title="列表项筛选" v-model="showEdit" @ok="handleOk">
|
|
<a-checkbox :indeterminate="indeterminate" @change="onCheckAllChange" :checked="checkAll">全选</a-checkbox>
|
|
<a-checkbox :indeterminate="indeterminate" @change="onCheckAllChange" :checked="checkAll">全选</a-checkbox>
|
|
@@ -92,7 +95,7 @@
|
|
:pagination="ipagination" :scroll="{ x: 2500 }" :rowSelection="{
|
|
:pagination="ipagination" :scroll="{ x: 2500 }" :rowSelection="{
|
|
selectedRowKeys: selectedRowKeys,
|
|
selectedRowKeys: selectedRowKeys,
|
|
onChange: onSelectChange
|
|
onChange: onSelectChange
|
|
- }" @change="sort" style="margin-top:30px" :loading="loadingList">
|
|
|
|
|
|
+ }" @change="sort" style="margin-top:30px" :loading="loadingList">
|
|
<!-- getCheckboxProps: getCheckboxProps -->
|
|
<!-- getCheckboxProps: getCheckboxProps -->
|
|
<span slot="unitName" slot-scope="text, record" :title="text">
|
|
<span slot="unitName" slot-scope="text, record" :title="text">
|
|
<div style="display:flex;justify-content: center;">
|
|
<div style="display:flex;justify-content: center;">
|
|
@@ -212,6 +215,17 @@
|
|
}}</a-select-option>
|
|
}}</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
+ <a-form-item label="修改监测链接" :labelCol="{ lg: { span: 6 }, sm: { span: 6 } }"
|
|
|
|
+ :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }">
|
|
|
|
+ <a-radio-group buttonStyle="solid" v-decorator="['isUpdateTrackUrl',{initialValue: false}]">
|
|
|
|
+ <a-radio-button :value="false">否</a-radio-button>
|
|
|
|
+ <a-radio-button :value="true">是</a-radio-button>
|
|
|
|
+ </a-radio-group>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ <a-form-item label="监测链接" :labelCol="{ lg: { span: 6 }, sm: { span: 6 } }"
|
|
|
|
+ :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }" v-if="getData('isUpdateTrackUrl')">
|
|
|
|
+ <a-input v-model="clickTrackUrl" />
|
|
|
|
+ </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 } }">
|
|
:wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }">
|
|
<a-input-number v-decorator="[
|
|
<a-input-number v-decorator="[
|
|
@@ -252,7 +266,8 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-form>
|
|
</a-form>
|
|
<template slot="footer">
|
|
<template slot="footer">
|
|
- <a-button key="submit" type="primary" @click="handleSubmitCopy" :loading='loading'>
|
|
|
|
|
|
+ <a-button key="submit" type="primary" @click="handleSubmitCopy"
|
|
|
|
+ :disabled="getData('isUpdateTrackUrl')?clickTrackUrl==''?true:false:false" :loading='loading'>
|
|
确定
|
|
确定
|
|
</a-button>
|
|
</a-button>
|
|
</template>
|
|
</template>
|
|
@@ -556,9 +571,10 @@
|
|
|
|
|
|
data: function () {
|
|
data: function () {
|
|
return {
|
|
return {
|
|
- loadingMoney:false,
|
|
|
|
- loadingState:false,
|
|
|
|
- loadingAllMoney:false,
|
|
|
|
|
|
+ clickTrackUrl: "",
|
|
|
|
+ loadingMoney: false,
|
|
|
|
+ loadingState: false,
|
|
|
|
+ loadingAllMoney: false,
|
|
unitName: '',
|
|
unitName: '',
|
|
unitNameInit: '',
|
|
unitNameInit: '',
|
|
unitId: '',
|
|
unitId: '',
|
|
@@ -598,17 +614,17 @@
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
// pageSizeOptions: ['10', '20', '30'],
|
|
// pageSizeOptions: ['10', '20', '30'],
|
|
showTotal: (total, range) => {
|
|
showTotal: (total, range) => {
|
|
- return range[0] + "-" + range[1] + " 共" + total + "条"
|
|
|
|
|
|
+ return range[0] + "-" + range[1] + " 共" + total + "条"
|
|
},
|
|
},
|
|
showQuickJumper: true,
|
|
showQuickJumper: true,
|
|
- showSizeChanger:true,
|
|
|
|
|
|
+ showSizeChanger: true,
|
|
pageSizeOptions: ['10', '30', '50'],
|
|
pageSizeOptions: ['10', '30', '50'],
|
|
total: 0,
|
|
total: 0,
|
|
onChange: (current, pageSize) => {
|
|
onChange: (current, pageSize) => {
|
|
// 切换分页时的回调,
|
|
// 切换分页时的回调,
|
|
// 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
|
|
// 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
|
|
this.ipagination.current = current
|
|
this.ipagination.current = current
|
|
- this.ipagination.pageSize= pageSize;
|
|
|
|
|
|
+ this.ipagination.pageSize = pageSize;
|
|
this.getDataList(this.titleKey)
|
|
this.getDataList(this.titleKey)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -741,12 +757,14 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- sort(pagination, filters, sorter, { currentDataSource }){
|
|
|
|
-
|
|
|
|
- this.ipagination.current=pagination.current;
|
|
|
|
|
|
+ sort(pagination, filters, sorter, {
|
|
|
|
+ currentDataSource
|
|
|
|
+ }) {
|
|
|
|
+
|
|
|
|
+ this.ipagination.current = pagination.current;
|
|
|
|
|
|
- this.ipagination.pageSize=pagination.pageSize;
|
|
|
|
- this.getDataList(this.titleKey)
|
|
|
|
|
|
+ this.ipagination.pageSize = pagination.pageSize;
|
|
|
|
+ this.getDataList(this.titleKey)
|
|
},
|
|
},
|
|
// getCheckboxProps(record) {
|
|
// getCheckboxProps(record) {
|
|
// return {
|
|
// return {
|
|
@@ -825,6 +843,7 @@
|
|
},
|
|
},
|
|
copyDetail(item) {
|
|
copyDetail(item) {
|
|
this.visibleCopy = true
|
|
this.visibleCopy = true
|
|
|
|
+ this.clickTrackUrl = ''
|
|
this.campaignId = localStorage.getItem('advertisingGroupKey')
|
|
this.campaignId = localStorage.getItem('advertisingGroupKey')
|
|
this.form.resetFields()
|
|
this.form.resetFields()
|
|
this.getCampaignList()
|
|
this.getCampaignList()
|
|
@@ -908,6 +927,8 @@
|
|
this.$message.error(
|
|
this.$message.error(
|
|
'广告组:' + res.result.failInfo[0].unitName + ' ' + '错误:' + res.result.failInfo[0].message
|
|
'广告组:' + res.result.failInfo[0].unitName + ' ' + '错误:' + res.result.failInfo[0].message
|
|
)
|
|
)
|
|
|
|
+ this.visibleData = res.result
|
|
|
|
+ this.visible = true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -931,6 +952,8 @@
|
|
postAction('/kuaishou/batch/batchUpdateUnitBudget', params).then(res => {
|
|
postAction('/kuaishou/batch/batchUpdateUnitBudget', params).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
if (res.result.failCount > 0) {
|
|
if (res.result.failCount > 0) {
|
|
|
|
+ this.visibleData = res.result
|
|
|
|
+ this.visible = true
|
|
this.$message.error(
|
|
this.$message.error(
|
|
'广告计划:' +
|
|
'广告计划:' +
|
|
res.result.failInfo[0].unitName +
|
|
res.result.failInfo[0].unitName +
|
|
@@ -948,7 +971,7 @@
|
|
editStatus() {
|
|
editStatus() {
|
|
this.loadingState = true
|
|
this.loadingState = true
|
|
if (this.allType == '4') {
|
|
if (this.allType == '4') {
|
|
- this.loadingState = false
|
|
|
|
|
|
+ this.loadingState = false
|
|
this.visibleEditAll = true
|
|
this.visibleEditAll = true
|
|
} else if (this.allType == '5') {
|
|
} else if (this.allType == '5') {
|
|
this.getCampaignList()
|
|
this.getCampaignList()
|
|
@@ -980,7 +1003,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
editMoney() {
|
|
editMoney() {
|
|
- this.loadingMoney = true
|
|
|
|
|
|
+ this.loadingMoney = true
|
|
var params = {}
|
|
var params = {}
|
|
params.accountId = localStorage.getItem('accountId')
|
|
params.accountId = localStorage.getItem('accountId')
|
|
params.proportion = this.allMoney
|
|
params.proportion = this.allMoney
|
|
@@ -1033,7 +1056,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
editMoneyBid() {
|
|
editMoneyBid() {
|
|
- this.loadingAllMoney = true
|
|
|
|
|
|
+ this.loadingAllMoney = true
|
|
if (this.allPrice == '2') {
|
|
if (this.allPrice == '2') {
|
|
|
|
|
|
|
|
|
|
@@ -1232,7 +1255,8 @@
|
|
this.form.validateFields((err, values) => {
|
|
this.form.validateFields((err, values) => {
|
|
if (!err) {
|
|
if (!err) {
|
|
this.visibleCopy = false
|
|
this.visibleCopy = false
|
|
- this.$refs.editGroup.handleOk(this.copyData, 'copy', this.getData('campaignId'), values.unitName)
|
|
|
|
|
|
+ this.$refs.editGroup.handleOk(this.copyData, 'copy', this.getData('campaignId'), values.unitName, this
|
|
|
|
+ .getData('isUpdateTrackUrl'), this.clickTrackUrl)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -1251,6 +1275,18 @@
|
|
createType: this.getData('createType'),
|
|
createType: this.getData('createType'),
|
|
accountId: this.copyData.accountId
|
|
accountId: this.copyData.accountId
|
|
}
|
|
}
|
|
|
|
+ if (this.getData('isUpdateTrackUrl')) {
|
|
|
|
+ params.otherJson = {
|
|
|
|
+ isUpdateTrackUrl: true,
|
|
|
|
+ clickTrackUrl: this.clickTrackUrl,
|
|
|
|
+ isUpdate: false
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ params.otherJson = {
|
|
|
|
+ isUpdateTrackUrl: false,
|
|
|
|
+ isUpdate: false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
postAction('/kuaishou/batch/copyUnit', params).then(res => {
|
|
postAction('/kuaishou/batch/copyUnit', params).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
// visibleData
|
|
// visibleData
|
|
@@ -1286,6 +1322,18 @@
|
|
return item.unitName
|
|
return item.unitName
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ if (this.getData('isUpdateTrackUrl')) {
|
|
|
|
+ params.otherJson = {
|
|
|
|
+ isUpdateTrackUrl: true,
|
|
|
|
+ clickTrackUrl: this.clickTrackUrl,
|
|
|
|
+ isUpdate: false
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ params.otherJson = {
|
|
|
|
+ isUpdateTrackUrl: false,
|
|
|
|
+ isUpdate: false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
postAction('/kuaishou/batch/copyUnit', params).then(res => {
|
|
postAction('/kuaishou/batch/copyUnit', params).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
if (res.result.failCount > 0) {
|
|
if (res.result.failCount > 0) {
|
|
@@ -1311,7 +1359,8 @@
|
|
this.visibleCopy = false
|
|
this.visibleCopy = false
|
|
if (this.getData('createType') == '1') {
|
|
if (this.getData('createType') == '1') {
|
|
this.$refs.editGroupNew.handleOk(this.copyData, 'typeOne', this.getData('campaignId'), [], this.getData(
|
|
this.$refs.editGroupNew.handleOk(this.copyData, 'typeOne', this.getData('campaignId'), [], this.getData(
|
|
- 'createCount'))
|
|
|
|
|
|
+ 'createCount'), this
|
|
|
|
+ .getData('isUpdateTrackUrl'), this.clickTrackUrl)
|
|
|
|
|
|
} else if (this.getData('createType') == '2') {
|
|
} else if (this.getData('createType') == '2') {
|
|
this.unitNameList.map(item => {
|
|
this.unitNameList.map(item => {
|
|
@@ -1320,7 +1369,8 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.$refs.editGroupNew.handleOk(this.copyData, 'typeTwo', this.getData('campaignId'), this.unitNameList,
|
|
this.$refs.editGroupNew.handleOk(this.copyData, 'typeTwo', this.getData('campaignId'), this.unitNameList,
|
|
- this.getData('createCount'))
|
|
|
|
|
|
+ this.getData('createCount'), this
|
|
|
|
+ .getData('isUpdateTrackUrl'), this.clickTrackUrl)
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|