From ebfc739bdbbc0dd0fccd0bf47b7d2d5397c3c511 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 22 Mar 2024 12:44:21 +0800
Subject: [PATCH] 轮播图片
---
src/views/system/user.vue | 30 +++++++++++++++++-------------
1 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index 1bb04d1..7a4d9ac 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -109,7 +109,7 @@
</el-col>
</el-row>
</template>
-
+
<script>
import {
getList,
@@ -244,6 +244,7 @@
label: "登录账号",
prop: "account",
search: true,
+ searchLabelWidth: 76,
display: false
},
// {
@@ -464,7 +465,8 @@
leafOnly: false,
dicData: [],
props: {
- label: "title"
+ label: "title",
+ value:"id"
},
rules: [{
required: true,
@@ -476,13 +478,15 @@
label: "所属部门",
prop: "deptId",
type: "tree",
- // multiple: true,
+ multiple: true,
+ leafOnly: false,
dicData: [],
- dataType: "string",
+ // dataType: "string",
props: {
- label: "title"
+ label: "title",
+ value: "id"
},
- // checkStrictly: true,
+ checkStrictly: true,
slot: true,
span: 12,
rules: [{
@@ -716,7 +720,7 @@
row['userType'] = 1
row.deptId = func.join(row.deptId)
row.roleId = func.join(row.roleId)
- row.postId = func.join(row.postId)
+ // row.postId = func.join(row.postId)
add(row).then(() => {
this.initFlag = false
this.onLoad(this.page)
@@ -735,7 +739,7 @@
row['userType'] = 1
row.deptId = func.join(row.deptId)
row.roleId = func.join(row.roleId)
- row.postId = func.join(row.postId)
+ // row.postId = func.join(row.postId)
update(row).then(() => {
this.initFlag = false
this.onLoad(this.page)
@@ -905,9 +909,9 @@
if (this.form.hasOwnProperty("roleId")) {
this.form.roleId = this.form.roleId.split(",")
}
- if (this.form.hasOwnProperty("postId")) {
- this.form.postId = this.form.postId.split(",")
- }
+ // if (this.form.hasOwnProperty("postId")) {
+ // this.form.postId = this.form.postId.split(",")
+ // }
})
}
this.initFlag = true
@@ -992,7 +996,7 @@
}
}
</script>
-
+
<style>
.box {
height: 800px;
@@ -1005,4 +1009,4 @@
.box .el-scrollbar__wrap {
overflow: scroll;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3