zhuxinbo hace 4 años
padre
commit
78afbafc0c
Se han modificado 2 ficheros con 32 adiciones y 59 borrados
  1. 30 54
      src/views/modules/BatchCreate/TouTiaoBatch.vue
  2. 2 5
      vue.config.js

+ 30 - 54
src/views/modules/BatchCreate/TouTiaoBatch.vue

@@ -35,7 +35,7 @@
                     </a-select-option>
                 </a-select>
             </span>
-            
+
             <span class="OptinItem">
                 <!-- <a-date-picker @change="dateChange" /> -->
                  <a-range-picker v-model="dateValue" :disabled-date="disabledDate"  style="width: 250px;" format="YYYY-MM-DD" @change="dateChange" />
@@ -123,7 +123,7 @@
                     <span slot="budget" slot-scope="text,record">
                        <editableCell :text="text" slotName='groupBudget' @change="onCellChange(record.key, 'groupBudget', $event)" />
                     </span>
-                    <span slot="status" slot-scope="text,record">
+                    <span slot="campaignStatus" slot-scope="text,record">
                         <a-switch size="default" :checked=text  @change="switchChange(text,record)"/>
                     </span>
                     <span slot="options" slot-scope="record">
@@ -242,17 +242,16 @@ let modifyTableCol=[
 const columns = [
   {
     title: '状态',
-    dataIndex: 'status',
-    key: 'status',
+    dataIndex: 'campaignStatus',
+    key: 'campaignStatus',
     align: 'center',
-    scopedSlots: { customRender: 'status' }
+    scopedSlots: { customRender: 'campaignStatus' }
   },
   {
     title: '广告组名称',
     dataIndex: 'name',
     key: 'name',
     align: 'center',
-    width:450,
     scopedSlots: { customRender: 'name' }
   },
   {
@@ -280,7 +279,6 @@ const columns = [
     dataIndex: 'budget',
     key: 'budget',
     align: 'center',
-    width:250,
     scopedSlots: { customRender: 'budget' }
   },
   {
@@ -381,14 +379,14 @@ const ideaColumns = [
   },
   {
     title: '创意ID',
-    dataIndex: 'ideaID',
-    key: 'ideID',
+    dataIndex: 'id',
+    key: 'id',
     align: 'center',
   },
   {
     title: '广告创意',
-    dataIndex: 'ideID',
-    key: 'ideaID',
+    dataIndex: 'title',
+    key: 'title',
     align: 'center',
   },
   {
@@ -403,8 +401,6 @@ const ideaColumns = [
     key: 'promotionPurpose',
     align: 'center',
   },
-
-
   {
     title: '投放时间',
     dataIndex: 'LaunchTime',
@@ -421,10 +417,10 @@ const ideaColumns = [
   },
   {
     title: '所属计划',
-    dataIndex: 'parentPlan',
-    key: 'parentPlan',
+    dataIndex: 'planId_dictText',
+    key: 'planId_dictText',
     align: 'center',
-    scopedSlots: { customRender: 'parentPlan' }
+    scopedSlots: { customRender: 'planId_dictText' }
   },
   {
     title: '所属广告组',
@@ -436,38 +432,6 @@ const ideaColumns = [
 ];
 
 
-
-let data=[
-    {
-        status:true,
-        campaignName:'有缘有相聚',
-        advantageID:28856,
-        promotionPurpose:'-',
-        groupBudget:12563,
-        creatTime:'2020-01-03',
-        key:28856
-    },
-    {
-        status:false,
-        campaignName:'有缘有相聚',
-        advantageID:27856,
-        promotionPurpose:'-',
-        groupBudget:'不限',
-        key:27856,
-        creatTime:'2020-03-03'
-    },
-    {
-        status:true,
-        campaignName:'有缘有相聚',
-        advantageID:24856,
-        promotionPurpose:'-',
-        groupBudget:14563,
-        creatTime:'2020-04-03',
-        key:24856,
-    },
-]
-
-
 export default {
     components: {
         editableCell,
@@ -547,12 +511,14 @@ export default {
             console.log(key);
             if(key=='plan'){
                 this.columns=planColumns;
-                let params = {};
-                this.refreshCampaignList();
             }else if(key=='group'){
-                this.columns=columns;
+              this.columns=columns;
+              let params = {};
+              this.refreshCampaignList();
             }else if(key=='idea'){
-                this.columns=ideaColumns;
+              this.columns=ideaColumns;
+              let params = {};
+              this.refreshCreativeList();
             }
         },
         //跳转到批量页面
@@ -589,7 +555,7 @@ export default {
                 pageNo:this.ipagination.current
              })
             // postAction('',{
-                
+
             // }).then((res)=>{
             //     console.log(res)
             // })
@@ -767,7 +733,17 @@ export default {
               console.log(res.message);
             }
           })
-        }
+        },
+      refreshCreativeList(params){
+        getAction(this.url.creativeList, params).then(res => {
+          console.log(res);
+          if (res.success) {
+            this.data = res.result.records;
+          } else {
+            console.log(res.message);
+          }
+        })
+      }
     },
     mounted() {
         console.log(this);

+ 2 - 5
vue.config.js

@@ -64,11 +64,9 @@ module.exports = {
          }
        },*/
       '/jeecg-boot': {
-       
+
         // target: 'http://192.168.1.90:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
-       
-        // target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
-       
+        target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.94:8804', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.51:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
@@ -78,7 +76,6 @@ module.exports = {
         // target: 'http://192.168.1.251:8088', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目 
 
-        
 
         ws: false,
         changeOrigin: true,