From 98fc7c27cd38975902eb8c4ef145c3a203c27ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=96=8C=E6=9D=B0?= <> Date: Mon, 15 Jul 2024 10:02:11 +0800 Subject: [PATCH] ui --- public/sysConfig.json | 4 +- src/views/user-list/UserList.vue | 142 +++++++++++++++++-------------- 2 files changed, 79 insertions(+), 67 deletions(-) diff --git a/public/sysConfig.json b/public/sysConfig.json index be4b089..602505c 100644 --- a/public/sysConfig.json +++ b/public/sysConfig.json @@ -1,4 +1,4 @@ { - "apiurl": "http://140.143.162.39:9529", - "softName":"神豚体检管理系统" + "apiurl": "http://192.168.2.67:9529", + "softName": "神豚体检管理系统" } \ No newline at end of file diff --git a/src/views/user-list/UserList.vue b/src/views/user-list/UserList.vue index b9c25ba..2453241 100644 --- a/src/views/user-list/UserList.vue +++ b/src/views/user-list/UserList.vue @@ -177,7 +177,6 @@ @@ -282,15 +281,17 @@ > -
- - - - +
+ + + +
@@ -304,11 +305,17 @@ > -
+
- - + +
@@ -375,8 +382,7 @@ -
- - - - +
+ + + +
@@ -498,11 +506,17 @@ > -
+
- - + +
@@ -958,11 +972,11 @@ export default { }, methods: { - handleRemove(){ - this.form.userSign=this.$options.data().form.userSign + handleRemove() { + this.form.userSign = this.$options.data().form.userSign; }, - handleRemoves(){ - this.form.userPhoto=this.$options.data().form.userPhoto + handleRemoves() { + this.form.userPhoto = this.$options.data().form.userPhoto; }, quckDepartments(e) { if (e) { @@ -980,11 +994,9 @@ export default { ) { this.expandParents(this.$refs["itemType"].getNode(selected).parent); } - postapi( - "/api/identity/users/getlistinorganizationunit",{ - organizationUnitId:currentKey - } - ).then((res) => { + postapi("/api/identity/users/getlistinorganizationunit", { + organizationUnitId: currentKey, + }).then((res) => { if (res.code != -1) { this.tableData = res.data; this.tableData.forEach((item, index) => { @@ -1006,8 +1018,9 @@ export default { this.initTableData.forEach((item) => { if ( item.userName.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 || - item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 - || item.surname.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 + item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > + -1 || + item.surname.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 ) { this.quckDepartment.push(item); } @@ -1101,12 +1114,10 @@ export default { }); }, handleNodeClick(data) { - this.department = data.displayName; - postapi( - "/api/identity/users/getlistinorganizationunit",{ - organizationUnitId:data.id - } - ).then((res) => { + // this.department = data.displayName; + postapi("/api/identity/users/getlistinorganizationunit", { + organizationUnitId: data.id, + }).then((res) => { if (res.code != -1) { this.tableData = res.data; } @@ -1407,6 +1418,7 @@ export default { this.department = this.$options.data().department; this.curRow = this.$options.data().curRow; this.orgId = this.$options.data().orgId; + this.options = this.$options.data().options; this.haveitemtype = this.$options.data().haveitemtype; this.$refs["tableData"].setCurrentRow(""); @@ -1474,6 +1486,7 @@ export default { this.department = this.$options.data().department; this.curRow = this.$options.data().curRow; this.orgId = this.$options.data().orgId; + this.checkList = this.$options.data().checkList; this.haveitemtype = this.$options.data().haveitemtype; this.$refs["tableData"].setCurrentRow(""); @@ -1546,31 +1559,31 @@ export default { roleNames: [], }; this.form.roleNames = []; + useraffiliation(this.curRow.id).then((res) => { + if (res.code != -1) { + if (res.data.items && res.data.items.length > 0) { + let val = res.data.items.map((item) => { + return item.name; + }); + this.$set(this.form, "roleNames", val); + } else { + this.$set(this.form, "roleNames", []); + } + } + }); } }); //获取组织架构 organizationtree().then((res) => { if (res.code != -1) { + this.setupdepartments = res.data; this.organizationalstructure = res.data; tcdate(this.organizationalstructure); - this.setupdepartments = res.data; } }); // postapi(`/api/app/abpuserdepartment/createmany?UserId=${this.form.id}`,{orgId:this.orgId[0]}).then(res=>{ // console.log(res,'wwwwwwwwwwwww'); // }) - useraffiliation(this.curRow.id).then((res) => { - if (res.code != -1) { - if (res.data.items && res.data.items.length > 0) { - let val = res.data.items.map((item) => { - return item.name; - }); - this.$set(this.form, "roleNames", val); - } else { - this.$set(this.form, "roleNames", []); - } - } - }); //根据用户ID查组织信息 getapi( @@ -1692,7 +1705,7 @@ export default { :deep .seachinput .el-select { width: 100%; } -:deep.avatar-uploader{ +:deep.avatar-uploader { display: inline-block; } :deep.avatar-uploader .el-upload { @@ -1718,12 +1731,11 @@ export default { height: 80px; display: block; } -.el-upload-delete{ - position: absolute; - top: 0; - right: 0; - line-height: 0; - font-size: 18px; - +.el-upload-delete { + position: absolute; + top: 0; + right: 0; + line-height: 0; + font-size: 18px; } \ No newline at end of file