|
@@ -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
|
}
|