Explorar el Código

添加下载详情

朱鑫波 hace 3 años
padre
commit
33629dec84

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

@@ -1414,11 +1414,11 @@
                         </a-form-item>                       
                         </div>
                     </div>
-                    <!-- <div class="row-item" >
+                    <div class="row-item" v-if="getData('singleAppid') == 1">
                         <div class="hint-item"></div>
                         <div class="label-item">
                         <div class="text-item">下载详情</div>
-                        <div class="required-item"></div>
+                        <!-- <div class="required-item"></div> -->
                         </div>
                         <div class="input-item" >
                             
@@ -1439,7 +1439,7 @@
                                 </a-select>                               
                                 </a-form-item>
                         </div>
-                    </div> -->
+                    </div>
                      <div class="row-item" >
                         <div class="hint-item"></div>
                         <div class="label-item">
@@ -1492,25 +1492,26 @@
                         </a-form-item>
                         </div>
                     </div>
-                    <!-- <div class="row-item"  v-if="whiteList.actionbar_click_url_switch&&getFormData('generalTrack')==1">
+                    <!-- <div class="row-item">
                         <div class="hint-item"></div>
                         <div class="label-item">
-                        <div class="text-item">第三方ActionBar点击监控链接</div>
+                        <div class="text-item">下载详情</div>
                         <div class="required-item"></div>
                         </div>
                         <div class="input-item">
                             <a-form-item  >
-                                <a-input
-                                v-decorator="[
-                                    'actionbarClickUrl',
-                                    {
-                                        rules: [{ message: '请输入第三方点击监控链接' }],
-                                    },
-                                ]"
-                                placeholder="请输入第三方点击监控链接"
-                                >
-                                </a-input>
-                                <span style="color: red; position: relative; top: -10px">仅加白使用</span>
+                                <a-select
+                                    v-decorator="['siteId']"
+                                    showSearch
+                                    allowClear
+                                    placeholder="选择应用下载详情页"
+                                    optionFilterProp="children"
+                                    :filterOption="filterOption"
+                                    >
+                                    <a-select-option v-for="appModel in siteList" :key="appModel.siteId" :value="appModel.siteId">
+                                        {{ appModel.name }}
+                                    </a-select-option>
+                                </a-select>
                             </a-form-item>        
                         </div>
                     </div> -->
@@ -2592,7 +2593,7 @@ export default {
         appIdChange(val){
             console.log(val)
             this.siteList=[]
-            // this.getPageList(val)
+
             if(this.getFormData('singleAppid')==0){
                 if(val&&val.findIndex(item=>item.key===0)>-1){
                     let appidArr=this.appList.map(item=>{
@@ -2649,6 +2650,7 @@ export default {
                 if(this.getFormData('campaignType')==2){
                     
                     if(this.getFormData('singleAppid')==1){
+                        this.getPageList(val.key)
                         this.getIsActivate(val.key)
                     }else{
                        
@@ -3411,6 +3413,9 @@ export default {
                             deepConversionBid:item.deep_conversion_bid?item.deep_conversion_bid/1000:null,
                         }
                     }):[]
+                    if(res.result.singleAppid){
+                        this.getPageList(JSON.parse(res.result.appIdArray)[0]) 
+                    }
                     setTimeout(()=>{                       
                         this.form.setFieldsValue({
                              ...res.result,
@@ -3440,9 +3445,12 @@ export default {
                             roiRatio:res.result.roiRatio?res.result.roiRatio:null,
                             multipleBids:res.result.multipleBids,
                             cpaBid:cpaBid,
+                            siteId:res.result.siteId,
                         })
                         
                     },100)
+
+                    
                     if((res.result.ocpxActionType == 180 || res.result.ocpxActionType == 53) && this.groupTypeData.deepConversionTypes&&this.groupTypeData.deepConversionTypes.length > 0){
                         // //console.log(1)
                         setTimeout(()=>{

+ 16 - 1
src/views/modules/kuaishouapp/batchCreation/creat/creatUnit.vue

@@ -686,6 +686,21 @@
           itemTag.name
         }}</a-tag> -->
       </a-form-item>
+      <a-form-item label="下载详情" v-if="showSite" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
+        :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }">
+            <a-select
+              v-decorator="['siteId']"
+              showSearch
+              allowClear
+              placeholder="选择应用下载详情页"
+              optionFilterProp="children"
+              :filterOption="filterOption"
+            >
+              <a-select-option v-for="appModel in siteList" :key="appModel.siteId" :value="appModel.siteId">
+                {{ appModel.name }}
+              </a-select-option>
+            </a-select>
+      </a-form-item>
       <a-form-item
         label="创意分类"
         :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
@@ -2446,7 +2461,7 @@ export default {
         viewComp: 7,
       }).then((res) => {
         if (res.success) {
-          this.siteLiRst = res.result
+          this.siteList = res.result
           if (this.siteList.length > 0) {
             this.showSite = true
           }

+ 2 - 2
vue.config.js

@@ -70,7 +70,7 @@ module.exports = {
 			'/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:7001', //请求本地 需要jeecg-boot后台项目  蒙蒙
+        // target: 'http://192.168.1.3:7001', //请求本地 需要jeecg-boot后台项目  蒙蒙
 				// target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
 				// target: 'http://192.168.1.62:7001', //请求本地 需要jeecg-boot后台项目  英豪
 				// target: 'http://192.168.6.162:9806', //请求本地 需要jeecg-boot后台项目  祚云
@@ -81,7 +81,7 @@ module.exports = {
 				// target: 'http://192.168.1.219:8081', //请求本地 需要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后台项目