From 7bbf9b23bcd3f2bbf54aa62476cd2c4e7ea88aaa Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Tue, 21 Oct 2025 15:08:25 +0800
Subject: [PATCH] 1
---
src/views/modules/user/mange-add-or-update.vue | 11 ++++++++++-
1 files changed, 10 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 53ea22b..0d113a5 100644
--- a/src/views/modules/user/mange-add-or-update.vue
+++ b/src/views/modules/user/mange-add-or-update.vue
@@ -9,6 +9,9 @@
<el-form-item label="用户名" label-width="100px" prop="username">
<el-input v-model="dataForm.username" :disabled="id?true:false" placeholder="登录帐号"></el-input>
</el-form-item>
+ <el-form-item label="信用分" v-if="id" label-width="100px" prop="creditScore">
+ <el-input v-model="dataForm.creditScore" placeholder="信用分"></el-input>
+ </el-form-item>
<el-form-item v-if="!id" label="登录密码" label-width="100px" prop="password">
<el-input v-model="dataForm.password" type="password" placeholder="密码"></el-input>
</el-form-item>
@@ -96,6 +99,7 @@
parentsUseCode:'',
remarks:'',
username: '',
+ creditScore:'',
password: '',
email: '',
mobile: '',
@@ -158,6 +162,7 @@
this.id = id || ''
if(row){
this.dataForm.username =row.userName
+ this.dataForm.creditScore = row.creditScore
this.options.value1 = row.loginAuthority
this.optionsTwo.value2 = row.enabled
this.optionsThree.value3 = row.withdrawAuthority
@@ -176,6 +181,7 @@
parentsUseCode:'',
remarks:'',
username: '',
+ creditScore:'',
password: '',
email: '',
mobile: '',
@@ -199,7 +205,9 @@
url: this.$http.adornUrl(`/userData/update`), //修改
method: 'post',
data: this.$http.adornData({
- 'enabled': this.optionsTwo.value2,
+ // 'enabled': this.dataForm.value2,
+ 'enabled': this.optionsTwo.value2,
+ 'creditScore':this.dataForm.creditScore,
'loginAuthority': this.options.value1,
'withdrawAuthority': this.optionsThree.value3,
'userId': this.roleList.userId,
@@ -231,6 +239,7 @@
method: 'post',
data: this.$http.adornData({
'username': this.dataForm.username,
+ 'creditScore':this.dataForm.creditScore,
'enabled': this.optionsTwo.value2,
'loginAuthority': this.options.value1,
'parentsUseCode': this.dataForm.parentsUseCode,
--
Gitblit v1.9.3