朱鑫波 4 роки тому
батько
коміт
be5a73bc27

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

@@ -74,25 +74,25 @@
                 </a-form-item>
                 </div>
             </div>  
-            <!-- <div class="row-item">
+            <div class="row-item">
                 <div class="hint-item"> </div>
                 <div class="label-item">
                 <div class="text-item"></div>
                 </div>
                 <div class="input-item">
                 <a-form-item>                
-                   <a-tag color="#2db7f5" @click="getChangeAll('定向包', 'form', 'campaignName')"
-                >+定向包</a-tag
+                   <a-tag color="#2db7f5" @click="getChangeAll('日期', 'form', 'campaignName')"
+                >+日期</a-tag
               >
-              <a-tag color="#2db7f5" @click="getChangeAll('应用包名', 'form', 'campaignName')"
+              <!-- <a-tag color="#2db7f5" @click="getChangeAll('应用包名', 'form', 'campaignName')"
                 >+应用包名</a-tag
               >
               <a-tag color="#2db7f5" @click="getChangeAll('自定义', 'form', 'campaignName')"
                 >+自定义</a-tag
-              >
+              > -->
                 </a-form-item>
                 </div>
-            </div>   -->
+            </div>  
                         
             <div class="row-item">
                 <div class="hint-item"> </div>
@@ -154,24 +154,26 @@
                 <div class="text-item"></div>
                 </div>
                 <div class="input-item">
-                <a-form-item>                
+                <a-form-item>            
+                <a-tag color="#2db7f5" @click="getChangeAll('日期', 'form', 'groupName')">+日期</a-tag>
+                <a-tag color="#2db7f5" @click="getChangeAll('素材名称', 'form', 'groupName')">+素材名称</a-tag>    
                    <!-- <a-tag color="#2db7f5" @click="getChangeAll('定向包', 'form', 'groupName')"
                 >+定向包</a-tag
               > -->
               <!-- <a-tag color="#2db7f5" @click="getChangeAll('日期', 'form', 'groupName')">+日期</a-tag>
               <a-tag color="#2db7f5" @click="getChangeAll('标号', 'form', 'groupName')">+标号</a-tag> -->
-              <!-- <a-tag color="#2db7f5" @click="getChangeAll('应用包名', 'form', 'groupName')"
+              <a-tag color="#2db7f5" @click="getChangeAll('应用包名', 'form', 'groupName')"
                 >+应用包名</a-tag
-              > -->
+              >
                <a-tag color="#2db7f5" @click="getChangeAll('创意制作方式', 'form', 'groupName')"
                 >+创意制作方式</a-tag
               >
                <a-tag color="#2db7f5" @click="getChangeAll('广告位置', 'form', 'groupName')"
                 >+广告位置</a-tag
               >
-               <a-tag color="#2db7f5" @click="getChangeAll('自定义', 'form', 'groupName')"
+               <!-- <a-tag color="#2db7f5" @click="getChangeAll('自定义', 'form', 'groupName')"
                 >+自定义</a-tag
-              >
+              > -->
                 </a-form-item>
                 </div>
             </div>  
@@ -1568,7 +1570,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>
@@ -2011,6 +2013,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
+            }
+        },
         getDataType(type, dataList) {
             getAction('/kuaishou/batch/getTargetList', { tagType: type }).then((res) => {
                 if (res.success) {
@@ -2693,7 +2705,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;
                     values.appInterest = JSON.stringify(values.appInterest)
                     
                     if (this.appType == '2') {

+ 15 - 0
src/views/modules/kuaishouapp/batchCreation/creat/creatUnit.vue

@@ -70,6 +70,20 @@
         <a-button type="primary" @click="addApplication" :loading="tongbuLoading"> 刷新应用</a-button>
       </a-form-item>
       <a-form-item
+        label="调起链接"
+        :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
+        :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
+        v-if="campaignType == '2'"
+      >
+        <a-switch default-checked v-model="uriCheck"/>
+        <span style="color:red"> 需加白使用</span>
+        <div v-if="uriCheck">
+            <a-input placeholder="请填写链接" v-decorator="['schemaUri', { rules: [{ message:'链接不能为空'}] }]" />
+        </div>
+      </a-form-item>
+
+     
+      <a-form-item
         label="转化类型"
         :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
         :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
@@ -1121,6 +1135,7 @@ export default {
 
   data() {
     return {
+      uriCheck: false,
       templateLoading: false,
       dataOne: [],
       actionBarTextList: [],

+ 2 - 2
vue.config.js

@@ -69,7 +69,7 @@ module.exports = {
     proxy: {
       '/jeecg-boot': {
           // target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
-          // target: 'http://192.168.1.3:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+          target: 'http://192.168.1.3:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.1.62:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
@@ -80,7 +80,7 @@ module.exports = {
         // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
-         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目