liuxiaona před 1 rokem
rodič
revize
0784530e0a

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

@@ -3,7 +3,7 @@
3 3
     :closeOnModal="false" :hasBtn="pageInfo.hasBtn" :destroyOnCloseFlag="true" width="800px" dialog-title="批量修改日预算">
4 4
     <template v-slot:content>
5 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 7
         <div class="flex bMar15">
8 8
           <span class="form-block-item-title">修改规则</span>
9 9
           <el-radio-group v-model="pageInfo.modifyRuleValue" size="default">

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

@@ -12,7 +12,7 @@
12 12
                     :radioList="daily_budget_List.list"
13 13
                     :echoVal="daily_budget_List.radioVal"
14 14
                     :title="daily_budget_List.name"
15
-                    @returnEvent="val=>{daily_budget_List.radioVal = val}">
15
+                    @returnEvent="returnEventDaily">
16 16
           <template v-slot:appoint>
17 17
             <div class="tMar20">
18 18
               <el-input type="number" v-model="daily_budget_List.value" :min="50" placeholder="请输入推广计划日预算,最小50" style="width: 300px">
@@ -89,6 +89,13 @@ const pageInfo = reactive<reactiveTableAndAny>({
89 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 99
 const nameRef=ref<{value:string}>()
93 100
 const confirmEvent = async () => {
94 101
   if(nameRef.value?.value==''){
@@ -122,9 +129,7 @@ const switchShow = (val:boolean, row?: any)=>{
122 129
       pageInfo.rowObj = row
123 130
       nameRef.value!.value = row.campaign_name
124 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 133
       putOn_way_List.radioVal = row.speed_mode
129 134
     })
130 135
   }