From a32340336eceec8cf7d7f526d9f9fb83fc2efc5a Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Thu, 02 Apr 2026 16:48:50 +0800
Subject: [PATCH] 1
---
src/views/modules/user/mange-add-or-update.vue | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/src/views/modules/user/mange-add-or-update.vue b/src/views/modules/user/mange-add-or-update.vue
index a2c3a17..af01a7a 100644
--- a/src/views/modules/user/mange-add-or-update.vue
+++ b/src/views/modules/user/mange-add-or-update.vue
@@ -126,6 +126,13 @@
placeholder="评分"
></el-input>
</el-form-item>
+ <el-form-item label="信用分" label-width="100px" prop="creditScore">
+ <el-input
+ v-model="dataForm.creditScore"
+ type="number"
+ placeholder="信用分(选填)"
+ ></el-input>
+ </el-form-item>
<el-form-item label="备注" label-width="100px" prop="remarks">
<el-input
type="textarea"
@@ -191,6 +198,7 @@
userLevel: "",
realNameAuthority:'',
status: 1,
+ creditScore: "",
},
options: [
{
@@ -270,6 +278,7 @@
this.dataForm.userLevel = row.userLevel;
this.dataForm.realNameAuthority = row.realNameAuthority;
this.dataForm.remarks = row.remarks;
+ this.dataForm.creditScore = row.creditScore != null ? row.creditScore : "";
} else {
this.options.value1 = this.options[0].value1;
this.optionsTwo.value2 = this.optionsTwo[0].value2;
@@ -288,6 +297,7 @@
email: "",
mobile: "",
userLevel: "",
+ creditScore: "",
};
},
changeVal(val) {
@@ -322,7 +332,8 @@
userId: this.roleList.userId,
remarks: this.dataForm.remarks,
userLevel: this.dataForm.userLevel,
- realNameAuthority:this.dataForm.realNameAuthority
+ realNameAuthority:this.dataForm.realNameAuthority,
+ creditScore: this.dataForm.creditScore === "" ? undefined : this.dataForm.creditScore
}),
}).then(({ data }) => {
if (data.code == 0) {
@@ -355,6 +366,7 @@
password: encrypt(this.dataForm.password),
remarks: this.dataForm.remarks,
userLevel: this.dataForm.userLevel,
+ creditScore: this.dataForm.creditScore === "" ? undefined : this.dataForm.creditScore
}),
}).then(({ data }) => {
if (data.code == 0) {
--
Gitblit v1.9.3