魏志佳 hace 4 años
padre
commit
b9c08f52e0

+ 15 - 0
src/views/modules/LaunchHousekeeper/LaunchHousekeeperList.vue

@@ -240,6 +240,7 @@ const columns = [
 export default {
     data() {
         return {
+            
             treeData: [],
             SHOW_PARENT,
             accountIds:[],
@@ -591,6 +592,20 @@ export default {
 
         editProject(records){
             console.log(records);
+            let accountName='';
+            this.treeData.forEach(item=>{
+                item.children.forEach(ele=>{
+                    if(ele.value==records.accountId){
+                        records.accountName=ele.title
+                    }
+                })
+            })
+            // getAction('/adlab/ctopAdlabProjectDetail/queryById',{
+            //     id:records.id
+            // }).then(res=>{
+            //     console.log(res)
+            // })
+
             sessionStorage.setItem('editLHKProjectInfo',JSON.stringify(records));
             this.$router.push({path:'/LaunchHousekeeper/setProjectBudget'})
         },

+ 32 - 4
src/views/modules/LaunchHousekeeper/setProjectBudget.vue

@@ -13,6 +13,16 @@
         </span>
           
         </div>
+        <div v-else-if="editLHKProjectInfo.id">
+           <span style="margin-right:8px"> 项目:<strong>{{editLHKProjectInfo.name||''}}</strong></span>
+          <span style="margin-right:8px"> 推广目的:<strong>{{editLHKProjectInfo.landingType=='APP'?'应用推广':'销售线索收集'||''}}</strong></span>
+          <span style="margin-right:8px"> 投放媒体:<strong>{{editLHKProjectInfo.deliveryRange=="DEFAULT"?'默认':'穿山甲'||''}}</strong></span>
+          <span style="margin-right:8px"> 投放方式:
+              <strong v-if="editLHKProjectInfo.adTarget=='CPA'">优先成本</strong>
+              <strong v-if="editLHKProjectInfo.adTarget=='COST'">优先跑量</strong>
+              <strong v-if="editLHKProjectInfo.adTarget=='PUSH'">激进抢量</strong>
+          </span>
+        </div>
     </div>
    
         
@@ -220,9 +230,12 @@
             <div class="moduler">
                 <div class="adName">
                     <span>当前账户:</span> 
-                    <div class="nameList">
+                    <div class="nameList" v-if="LHKaccountInfo.length>0">
                         <strong v-for="item in LHKaccountInfo" :key="item.value" class="item">{{item.title+'('+item.value+')'}}</strong>
                     </div>
+                    <div class="nameList" v-else-if="editLHKProjectInfo.id">
+                        <strong  class="item">{{editLHKProjectInfo.accountName+'('+editLHKProjectInfo.accountId+')'}}</strong>
+                    </div>
                 </div>
             </div>
             <!-- 操作 -->
@@ -274,6 +287,8 @@ export default {
   },
   data() {
     return {
+        isEdit:false,
+        editLHKProjectInfo:{},
         userInfo:{},
         isDeepConvert:false,
         projectInfo:[],
@@ -490,14 +505,25 @@ export default {
       
     },
     
-    EchoPageInfo(){
+    EchoPageInfo(object){
+      if(object.weekTime.length>0){
 
+      }
+      this.form.setFieldsValue({
+        bid:object.bid,
+        budget:object.budget,
+        deepBid:object.deepBid,
+        deepBidType:object.deepBidType,
+        budgetMode:object.budgetMode,
+        deepExternalAction:object.deepExternalAction,
+
+      })
     },
     
   },
   
   mounted() {
-      this.$bus.$emit('remove', '/LaunchHousekeeper/setProjectCreate')
+        this.$bus.$emit('remove', '/LaunchHousekeeper/setProjectCreate')
         let projectInfo=sessionStorage.getItem('projectInfo');
         if(projectInfo){
             this.projectInfo=JSON.parse(projectInfo)
@@ -508,12 +534,14 @@ export default {
         }
         let editLHKProjectInfo=sessionStorage.getItem('editLHKProjectInfo');
         if(editLHKProjectInfo){
-          this.LHKaccountInfo.push(editLHKProjectInfo);
+          this.editLHKProjectInfo=JSON.parse(editLHKProjectInfo);
+          this.EchoPageInfo(this.editLHKProjectInfo)
         }
         let userInfo=localStorage.getItem('pro__Login_Userinfo')
         if(userInfo){
             this.userInfo=JSON.parse(userInfo)        
         }
+ 
         
   },
 }

+ 1 - 1
vue.config.js

@@ -58,7 +58,7 @@ module.exports = {
     open : true,
     proxy: {
       '/jeecg-boot': {
-         target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+        //  target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云