From 2fe66b28a864699a521b02bfa015a2e6a7b4291c Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Mon, 26 Aug 2024 10:14:36 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA=E4=BD=99?=
=?UTF-8?q?=E9=A2=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/application/advertisement.vue | 10 ++++++----
src/views/user_manage/user_list.vue | 14 ++++++++++----
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/src/views/application/advertisement.vue b/src/views/application/advertisement.vue
index 08e9740..d9be19a 100644
--- a/src/views/application/advertisement.vue
+++ b/src/views/application/advertisement.vue
@@ -33,7 +33,7 @@
+ @change="showChange(scope.row)">
@@ -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: '成功',
diff --git a/src/views/user_manage/user_list.vue b/src/views/user_manage/user_list.vue
index 3f13f30..b38c124 100644
--- a/src/views/user_manage/user_list.vue
+++ b/src/views/user_manage/user_list.vue
@@ -118,7 +118,7 @@
-
+
@@ -148,11 +148,14 @@
-
+
{{ userinfo.nickName }}
+
+ {{ userinfo.amount }}
+
增加
@@ -160,7 +163,7 @@
-
+
@@ -230,12 +233,13 @@ export default {
this.userinfo.amount = this.userinfo.amount.toString().replace(/\D/g, '');
},
handleClose() {
+ this.dialogVisible = false
this.userinfo = {}
},
async sumbituser() {
let res = await tbShopUseredit({
...this.userinfos,
- levelConsume:'0',
+ levelConsume: '0',
shopId: localStorage.getItem("shopId"),
})
this.$message.success('修改成功')
@@ -243,6 +247,7 @@ export default {
this.getTableData();
},
async sumbit() {
+ this.userinfo.amount = this.userinfo.amount.toFixed(2)
let res = await midfiyAccount(this.userinfo)
this.dialogVisible = false
this.$message.success('修改成功')
@@ -251,6 +256,7 @@ export default {
editPop(d) {
this.dialogVisible = true
this.userinfo.nickName = d.nickName
+ this.userinfo.amount = d.amount
this.userinfo.id = d.id
},
edituser(d) {