|
@@ -17,7 +17,7 @@
|
17
|
17
|
:haveNotes="item.haveNotes"
|
18
|
18
|
:haveFlex="item.haveFlex"
|
19
|
19
|
:toolTipsVal="item.toolTipsVal"
|
20
|
|
- @returnEvent="val=>reEventRadio(String(val),item)">
|
|
20
|
+ @returnEvent="val=>item.radioVal = val">
|
21
|
21
|
<template v-if="item.EgName=='campaign_name'" v-slot:immobilization>
|
22
|
22
|
<div>
|
23
|
23
|
<wildcard :id="pageInfo.radioId" title="推广计划名称" @change="val=>{item.value = val}" :fillBack="item.value"></wildcard>
|
|
@@ -45,7 +45,7 @@
|
45
|
45
|
|
46
|
46
|
<template v-if="item.EgName=='daily_budget'" v-slot:appoint>
|
47
|
47
|
<div class="tMar20">
|
48
|
|
- <el-input type="number" v-model="item.value" placeholder="请输入推广计划日预算,最小50" style="width: 300px">
|
|
48
|
+ <el-input type="number" :min="50" v-model="item.value" placeholder="请输入推广计划日预算,最小50" style="width: 300px">
|
49
|
49
|
<template #append>元</template>
|
50
|
50
|
</el-input>
|
51
|
51
|
<div style="color: #FF5B5B" v-if="item.value&&item.value<50" class="tMar5">最小50</div>
|
|
@@ -55,7 +55,7 @@
|
55
|
55
|
|
56
|
56
|
<template v-if="item.EgName=='total_budget'" v-slot:appoint>
|
57
|
57
|
<div class="tMar20">
|
58
|
|
- <el-input type="number" v-model="item.value" placeholder="请输入推广计划总预算,最小50" style="width: 300px">
|
|
58
|
+ <el-input type="number" v-model="item.value" :min="50" placeholder="请输入推广计划总预算,最小50" style="width: 300px">
|
59
|
59
|
<template #append>元</template>
|
60
|
60
|
</el-input>
|
61
|
61
|
<div style="color: #FF5B5B" v-if="item.value&&item.value<50" class="tMar5">最小50</div>
|
|
@@ -220,17 +220,6 @@ const pageInfo = reactive<reactiveTableAndAny>({
|
220
|
220
|
radioId: 0
|
221
|
221
|
})
|
222
|
222
|
|
223
|
|
-//回显值 RadioGroup 单选
|
224
|
|
-const reEventRadio = (val:string | number | boolean,item:any) => {
|
225
|
|
- item.radioVal = val
|
226
|
|
- if(item?.list?.length>0){
|
227
|
|
- let idx:number = item.list.findIndex(n=>n.value == val)
|
228
|
|
- item.value = item.list[idx].subValue
|
229
|
|
- }
|
230
|
|
- if(item.EgName=='start_day'&&item.radioVal=='appoint'){
|
231
|
|
- item.value = 1
|
232
|
|
- }
|
233
|
|
-}
|
234
|
223
|
const wildcardEvent = (i:any,itemVal:any) => {
|
235
|
224
|
itemVal.value = itemVal.value + '_<'+i.name+'>'
|
236
|
225
|
}
|
|
@@ -320,6 +309,7 @@ const echoValue = async () => {
|
320
|
309
|
ExposeValue.value = resNew
|
321
|
310
|
pageInfo.jsonInfo.forEach(item=>{
|
322
|
311
|
let val:string|number = resNew[item.EgName]
|
|
312
|
+ item.value = val
|
323
|
313
|
if(item.haveAppoint){//需要指定
|
324
|
314
|
item.radioVal = (!val || val=='0.00') ? 'unlimited' : 'appoint'
|
325
|
315
|
}else{
|
|
@@ -328,14 +318,6 @@ const echoValue = async () => {
|
328
|
318
|
item.radioVal = item.list[idx].value
|
329
|
319
|
}
|
330
|
320
|
}
|
331
|
|
-
|
332
|
|
- if(item?.list?.length>0){
|
333
|
|
- let idx:number = item.list.findIndex(n=>n.value == item.radioVal)
|
334
|
|
- item.list[idx].subValue = val
|
335
|
|
- }else{
|
336
|
|
- item.value = val
|
337
|
|
- }
|
338
|
|
- console.log(item.EgName,item.value);
|
339
|
321
|
})
|
340
|
322
|
}else{
|
341
|
323
|
ElMessage.error(res.errMsg)
|