From f5b9a274596281b6ce5edaea4cc8daf981a30075 Mon Sep 17 00:00:00 2001 From: BoBoooooo <17746714@qq.com> Date: Thu, 20 Sep 2018 17:59:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=94=A8=E6=88=B7=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/users.vue | 44 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/views/system/users.vue b/src/views/system/users.vue index 55d8451..479792c 100644 --- a/src/views/system/users.vue +++ b/src/views/system/users.vue @@ -13,27 +13,27 @@ @@ -55,22 +55,22 @@ - + - + - + - + @@ -131,12 +131,12 @@ export default { temp: { ID: "", - UserName: "", - Password: "", - RealName: "", - DeptID: "", + username: "", + password: "", + realname: "", + deptid: "", RoleID: "", - IsDeleted: false + isdeleted: false }, options: [], defaultProps: { @@ -145,7 +145,7 @@ export default { }, selected: null, listQuery: { - totalCount: "", + totalCount: 0, pageSize: "10", pageNumber: "1" } @@ -185,10 +185,10 @@ export default { this.selected = null; this.temp = { ID: "", - UserName: "", - Password: "", - RealName: "", - IsDeleted: false + username: "", + password: "", + realname: "", + isdeleted: false }; this.dialogFormVisible = true; @@ -213,7 +213,7 @@ export default { GetUsersDetail(ID).then(response => { this.temp = response.data; - this.$refs.tree.setCheckedKeys([this.temp.DeptID]); + this.$refs.tree.setCheckedKeys([this.temp.deptid]); for (let i = 0; i < this.options.length; i++) { let obj = this.options[i]; if (obj.ID == this.temp.RoleID) { @@ -224,7 +224,7 @@ export default { }, create() { - this.temp.DeptID = this.$refs.tree.getCheckedKeys().join(","); + this.temp.deptid = this.$refs.tree.getCheckedKeys().join(","); this.temp.RoleID = this.selected.ID; @@ -235,7 +235,7 @@ export default { }); }, update() { - this.temp.DeptID = this.$refs.tree.getCheckedKeys().join(","); + this.temp.deptid = this.$refs.tree.getCheckedKeys().join(","); this.temp.RoleID = this.selected.ID;