|
@@ -1456,7 +1456,7 @@
|
|
|
<a-modal v-model="convert" title="选择转化目标">
|
|
|
<template slot="footer">
|
|
|
<a-button key="back" @click="convert=false">取消</a-button>
|
|
|
- <a-button key="submit" type="primary" @click="convert=false">
|
|
|
+ <a-button key="submit" type="primary" @click="convertOk">
|
|
|
确定
|
|
|
</a-button>
|
|
|
</template>
|
|
@@ -1874,6 +1874,16 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ convertOk() {
|
|
|
+ var dataLink = []
|
|
|
+ dataLink = this.convertList.filter((item) => {
|
|
|
+ return item.convert_id == this.convertId.key
|
|
|
+ })
|
|
|
+ if (dataLink.length > 0) {
|
|
|
+ this.form.setFieldsValue({ clickTrackUrl: dataLink[0].click_url })
|
|
|
+ this.convert = false
|
|
|
+ }
|
|
|
+ },
|
|
|
setImageCnt(e){
|
|
|
this.customUnitCntMax = e?Math.floor(2000/e):2000
|
|
|
},
|
|
@@ -2427,7 +2437,7 @@ export default {
|
|
|
values.agesRange=this.agesRange[0]==1?JSON.stringify([]):JSON.stringify(this.agesRange)
|
|
|
values.region=JSON.stringify(this.region);
|
|
|
|
|
|
- values.convertId=this.convertId==''?undefined:this.convertId;
|
|
|
+ values.convertId=this.convertId==''?undefined:this.convertId.key;
|
|
|
|
|
|
// let excludePopulation=this.excludeSelectedKeys.map(item=>{
|
|
|
// return item.id
|
|
@@ -2582,7 +2592,7 @@ export default {
|
|
|
this.convertList = res.result.map(item => {
|
|
|
return {
|
|
|
...item,
|
|
|
- convert_id: item.convert_id
|
|
|
+ convert_id: item.convert_id + ""
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -2903,7 +2913,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
clickTrackUrlFocus(){
|
|
|
// //console.log('focus')
|
|
|
this.clickTrackUrlTip=true;
|