liuxiaona vor 1 Jahr
Ursprung
Commit
0784530e0a

+ 1 - 1
src/components/businessMoudle/gdtList/dialog/modifyDailyBudget.vue

3
     :closeOnModal="false" :hasBtn="pageInfo.hasBtn" :destroyOnCloseFlag="true" width="800px" dialog-title="批量修改日预算">
3
     :closeOnModal="false" :hasBtn="pageInfo.hasBtn" :destroyOnCloseFlag="true" width="800px" dialog-title="批量修改日预算">
4
     <template v-slot:content>
4
     <template v-slot:content>
5
       <div class="dialogBox" v-if="pageInfo.schedule == 1">
5
       <div class="dialogBox" v-if="pageInfo.schedule == 1">
6
-        <div class="batch-title">已选{{ pageInfo.multipleSelection.length }}个可操作媒体账户</div>
6
+        <div class="batch-title">已选 <span class="f-wei-600">{{ pageInfo.multipleSelection.length }}</span> 个可操作媒体账户</div>
7
         <div class="flex bMar15">
7
         <div class="flex bMar15">
8
           <span class="form-block-item-title">修改规则</span>
8
           <span class="form-block-item-title">修改规则</span>
9
           <el-radio-group v-model="pageInfo.modifyRuleValue" size="default">
9
           <el-radio-group v-model="pageInfo.modifyRuleValue" size="default">

+ 9 - 4
src/components/businessMoudle/gdtList/dialog/target.vue

12
                     :radioList="daily_budget_List.list"
12
                     :radioList="daily_budget_List.list"
13
                     :echoVal="daily_budget_List.radioVal"
13
                     :echoVal="daily_budget_List.radioVal"
14
                     :title="daily_budget_List.name"
14
                     :title="daily_budget_List.name"
15
-                    @returnEvent="val=>{daily_budget_List.radioVal = val}">
15
+                    @returnEvent="returnEventDaily">
16
           <template v-slot:appoint>
16
           <template v-slot:appoint>
17
             <div class="tMar20">
17
             <div class="tMar20">
18
               <el-input type="number" v-model="daily_budget_List.value" :min="50" placeholder="请输入推广计划日预算,最小50" style="width: 300px">
18
               <el-input type="number" v-model="daily_budget_List.value" :min="50" placeholder="请输入推广计划日预算,最小50" style="width: 300px">
89
   rowObj:{}
89
   rowObj:{}
90
 })
90
 })
91
 
91
 
92
+const returnEventDaily = (val:any) => {
93
+  daily_budget_List.radioVal = val
94
+  if(val == 'unlimited'){
95
+    daily_budget_List.value = 0
96
+  }
97
+}
98
+
92
 const nameRef=ref<{value:string}>()
99
 const nameRef=ref<{value:string}>()
93
 const confirmEvent = async () => {
100
 const confirmEvent = async () => {
94
   if(nameRef.value?.value==''){
101
   if(nameRef.value?.value==''){
122
       pageInfo.rowObj = row
129
       pageInfo.rowObj = row
123
       nameRef.value!.value = row.campaign_name
130
       nameRef.value!.value = row.campaign_name
124
       daily_budget_List.radioVal = row.daily_budget ? 'appoint' : 'unlimited'
131
       daily_budget_List.radioVal = row.daily_budget ? 'appoint' : 'unlimited'
125
-      if(row.daily_budget){
126
-        daily_budget_List.value = row.daily_budget
127
-      }
132
+      daily_budget_List.value = row.daily_budget || 0
128
       putOn_way_List.radioVal = row.speed_mode
133
       putOn_way_List.radioVal = row.speed_mode
129
     })
134
     })
130
   }
135
   }