From b27ea54515f95e248da08072640d123d49de477f Mon Sep 17 00:00:00 2001
From: yz3456 <2753272399@qq.com>
Date: 星期四, 27 六月 2024 23:34:36 +0800
Subject: [PATCH] 修改了用户管理
---
ruoyi-ui/src/views/system/user/index.vue | 79 +++++++++++++++++++--------------------
1 files changed, 39 insertions(+), 40 deletions(-)
diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue
index 0621b09..71b31d9 100644
--- a/ruoyi-ui/src/views/system/user/index.vue
+++ b/ruoyi-ui/src/views/system/user/index.vue
@@ -192,7 +192,7 @@
<el-input v-model="form.userName" placeholder="璇疯緭鍏ョ敤鎴峰悕绉�" maxlength="30" />
</el-form-item>
</el-col>
-
+
</el-row>
@@ -222,11 +222,11 @@
</el-col>
</el-row>
<el-row>
-
+
<el-col :span="12">
<el-form-item label="瑙掕壊" prop="role">
<el-select v-model="form.role" placeholder="璇烽�夋嫨瑙掕壊" @change="getRole">
-
+
<el-option
v-for="item in roleOptions"
:key="item.roleId"
@@ -237,28 +237,28 @@
</el-select>
</el-form-item>
</el-col>
-
-
- <el-col :span="12">
- <el-form-item label="鏄惁鏈" prop="isMyFamily">
+
+
+ <el-col :span="12" v-if="form.role == 102">
+ <el-form-item label="鏄惁鏈" prop="isMyFamily" >
<el-select v-model="form.isMyFamily" placeholder="璇疯緭鍏ユ槸鍚︽湰瀹�" @change="handleFamily">
-
+
<el-option
v-for="item in famOptions"
:key="item.opsi"
:label="item.opName"
:value="item.opsi"
-
+
></el-option>
-
+
</el-select>
-
+
</el-form-item>
</el-col>
</el-row>
- <el-row>
+ <el-row v-if="form.role != 2 && form.isMyFamily == 1">
-
+
<el-col :span="12">
<el-form-item label="鐖朵翰" prop="fid">
<el-select v-model="form.fid" placeholder="璇烽�夋嫨鐖朵翰" @change="hanldeLoop">
@@ -282,19 +282,19 @@
:value="item.userId"
></el-option>
</el-select>
-
+
</el-form-item>
</el-col>
</el-row>
<el-row >
-
+
</el-row>
- <el-row >
- <el-col :span="12">
- <el-form-item label="閰嶅伓淇℃伅" prop="spouseId">
+ <el-row v-if="form.role != 2 && form.isMyFamily == 0">
+ <el-col :span="12" >
+ <el-form-item label="閰嶅伓淇℃伅" prop="spouseId" >
<el-select v-model="form.spouseId" placeholder="璇烽�夋嫨閰嶅伓淇℃伅">
<el-option
v-for="item in allInfo"
@@ -473,7 +473,7 @@
deptId: [
{ required: true, message: "鐢ㄦ埛瑙掕壊涓嶈兘涓虹┖", trigger: "blur" }
],
-
+
password: [
{ required: true, message: "鐢ㄦ埛瀵嗙爜涓嶈兘涓虹┖", trigger: "blur" },
{ min: 5, max: 20, message: '鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿', trigger: 'blur' }
@@ -532,7 +532,7 @@
this.isshowMar = false
}
},
-
+
hanldeLoop(){
let fid = this.form.fid
let _this = this
@@ -546,16 +546,16 @@
//_this.form.mid = _this.allInfo[i].spouseId
_this.$set(_this.form,'mid',_this.allInfo[i].spouseId);
jsd = false
-
+
}
if(jsd == true)
_this.$set(_this.form,'mid','');
}
return;
}
-
+
//alert(this.cuid)
-
+
//alert(fid)
updateFM(this.cuid, fid).then(response => {
//alert(response.data)
@@ -567,7 +567,7 @@
{
//_this.form.mid = _this.allInfo[i].spouseId
_this.$set(_this.form,'mid',_this.allInfo[i].spouseId);
-
+
}
}
}else
@@ -592,7 +592,7 @@
//_this.form.fid = _this.allInfo[i].spouseId
jsd = false
_this.$set(_this.form,'fid',_this.allInfo[i].spouseId);
-
+
}
}
if(jsd == true)
@@ -611,7 +611,7 @@
{
//_this.form.fid = _this.allInfo[i].spouseId
_this.$set(_this.form,'fid',_this.allInfo[i].spouseId);
-
+
}
}
}else
@@ -622,9 +622,8 @@
}
})
},
- handleFamily()
+ handleFamily(value)
{
-
if(this.form.isMyFamily=="0")
this.isshowMri = true
},
@@ -645,7 +644,7 @@
//console.log('----sdfdsfds')
})
},
- getRole(){
+ getRole(value){
this.form.roleIds = []
this.form.roleIds.push(this.rt)
},
@@ -800,11 +799,11 @@
// console.log(response.data)
if(response.data!=undefined)
{
-
+
_this.orfid = response.data.fatherId
_this.ormid = response.data.momId
//alert(response.data.roleId)
-
+
_this.$set(_this.form,'fid',response.data.fatherId);
_this.$set(_this.form,'mid',response.data.momId);
_this.$set(_this.form,'isMyFamily',response.data.isMyFamily);
@@ -850,10 +849,10 @@
let ps = true
-
+
let _this = this
-
-
+
+
if(ps)
{
let fm = {}
@@ -868,11 +867,11 @@
fm.mid = this.form.mid
// alert(this.form.isMyFamily)
fm.isMyFamily = this.form.isMyFamily=='1'?1:0
-
+
fm.spouseId = this.form.spouseId
fm.sysId = this.form.userId
fm.userName = this.form.userName
-
+
console.log(fm)
if (valid) {
if (this.form.userId != undefined) {
@@ -880,8 +879,8 @@
this.open = false;
this.getList();
-
-
+
+
// this.isshowMar = false
// this.isshowMri = false
// updateUserInfo(fm).then(response=>{
@@ -895,13 +894,13 @@
// })
});
} else {
-
+
addUser(fm).then(response => {
this.$modal.msgSuccess("鏂板鎴愬姛");
this.open = false;
this.getList();
_this.rt = undefined
-
+
// this.isshowMar = false
// this.isshowMri = false
});
--
Gitblit v1.9.1