|
@@ -3,7 +3,7 @@
|
3
|
3
|
:dialogVisible="dialogShow"
|
4
|
4
|
@confirm="confirmEvent"
|
5
|
5
|
@close="closeEvent"
|
6
|
|
- :destroy-on-close="true"
|
|
6
|
+ :destroyOnCloseFlag="true"
|
7
|
7
|
width="700px"
|
8
|
8
|
height="calc(100vh - 190px)"
|
9
|
9
|
top="8px"
|
|
@@ -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" :min="50" placeholder="请输入推广计划日预算,最小50" style="width: 300px">
|
|
48
|
+ <el-input type="number" 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" :min="50" placeholder="请输入推广计划总预算,最小50" style="width: 300px">
|
|
58
|
+ <el-input type="number" v-model="item.value" 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>
|
|
@@ -223,7 +223,7 @@ const pageInfo = reactive<reactiveTableAndAny>({
|
223
|
223
|
//回显值 RadioGroup 单选
|
224
|
224
|
const reEventRadio = (val:string | number | boolean,item:any) => {
|
225
|
225
|
item.radioVal = val
|
226
|
|
- if(item.list&&item.list.length>0){
|
|
226
|
+ if(item?.list?.length>0){
|
227
|
227
|
let idx:number = item.list.findIndex(n=>n.value == val)
|
228
|
228
|
item.value = item.list[idx].subValue
|
229
|
229
|
}
|
|
@@ -320,7 +320,6 @@ const echoValue = async () => {
|
320
|
320
|
ExposeValue.value = resNew
|
321
|
321
|
pageInfo.jsonInfo.forEach(item=>{
|
322
|
322
|
let val:string|number = resNew[item.EgName]
|
323
|
|
- item.value = val
|
324
|
323
|
if(item.haveAppoint){//需要指定
|
325
|
324
|
item.radioVal = (!val || val=='0.00') ? 'unlimited' : 'appoint'
|
326
|
325
|
}else{
|
|
@@ -329,6 +328,14 @@ const echoValue = async () => {
|
329
|
328
|
item.radioVal = item.list[idx].value
|
330
|
329
|
}
|
331
|
330
|
}
|
|
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);
|
332
|
339
|
})
|
333
|
340
|
}else{
|
334
|
341
|
ElMessage.error(res.errMsg)
|
|
@@ -345,7 +352,9 @@ const dialogShow = ref<boolean>(false)
|
345
|
352
|
const switchShow = (val:boolean)=>{
|
346
|
353
|
dialogShow.value = val
|
347
|
354
|
if(val){
|
348
|
|
- echoValue()
|
|
355
|
+ nextTick(()=>{
|
|
356
|
+ echoValue()
|
|
357
|
+ })
|
349
|
358
|
}
|
350
|
359
|
}
|
351
|
360
|
|