浏览代码

骄阳修改

朱鑫波 4 年之前
父节点
当前提交
d4af264300
共有 1 个文件被更改,包括 13 次插入4 次删除
  1. 13 4
      src/views/modules/autoLaunch/configLaunchInfo.vue

+ 13 - 4
src/views/modules/autoLaunch/configLaunchInfo.vue

@@ -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;