修改显示余额
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<el-table-column prop="showPosition" label="是否可见">
|
||||
<template v-slot="scope">
|
||||
<el-switch v-model="scope.row.status" :active-value="1" :inactive-value="0"
|
||||
@change="showChange($event, scope.row)"></el-switch>
|
||||
@change="showChange(scope.row)"></el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="" label="弹窗频率">
|
||||
@@ -179,13 +179,15 @@ export default {
|
||||
let index = this.fileList.findIndex(ele => ele.url == file.response.data[0])
|
||||
this.fileList.splice(index, 1);
|
||||
},
|
||||
async showChange(a, d) {
|
||||
async showChange(d) {
|
||||
if (!d.imgUrl) {
|
||||
this.form.imgUrl = this.fileList
|
||||
}
|
||||
await adput({
|
||||
...d,
|
||||
...this.form
|
||||
imgUrl:d.imgUrl,
|
||||
id: d.id,
|
||||
shopId: this.form.shopId,
|
||||
status: d.status,
|
||||
})
|
||||
this.$message({
|
||||
message: '成功',
|
||||
|
||||
Reference in New Issue
Block a user