From 41dabb0db9619b8dbb8a311966e0b9920f67f7c8 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期四, 03 十一月 2022 16:10:40 +0800 Subject: [PATCH] 门前三包和趋势分析 --- src/views/systemSetting/baseSetting/user/components/updateUser/index.vue | 28 ++++------------------------ 1 files changed, 4 insertions(+), 24 deletions(-) diff --git a/src/views/systemSetting/baseSetting/user/components/updateUser/index.vue b/src/views/systemSetting/baseSetting/user/components/updateUser/index.vue index 86f30f7..80a74ab 100644 --- a/src/views/systemSetting/baseSetting/user/components/updateUser/index.vue +++ b/src/views/systemSetting/baseSetting/user/components/updateUser/index.vue @@ -83,6 +83,7 @@ // 淇敼鐢ㄦ埛淇℃伅 handleUser() { const { flag, user, tempName, selectOrg, tempRole, isArraySame } = this; + let umsDepartManage={userId:user.id,departId:selectOrg.orgsid[0]} this.$refs.user.validate((valid) => { if (valid) { user.isDy = `${user.isDy}`; @@ -95,30 +96,8 @@ } else { if (user.departName) { this.$axios({ - method: 'post', - url: `sccg/admin/update/${user.id}`, - data: { - "id": user.id, - "username": user.username, - "password": user.password, - "icon": user.icon, - "email": user.email, - "nickName": user.nickName, - "note": user.note, - "createTime": user.createTime, - "loginTime": user.loginTime, - "status": user.status ? 1 : 0, - "macAddress": user.macAddress, - "ipAddress": user.ipAddress, - "isDy": `${user.isDy}`, - "sex": `${user.sex}`, - "jobTitle": user.jobTitle, - "departmentId": selectOrg.orgsid[0], - "departName": user.departName, - "userType": user.userType, - "zj": user.zj, - "mobile": user.mobile, - } + method: 'put', + url: `/sccg/depart/user_update_depart?userId=`+user.id+'&departId='+selectOrg.orgsid[0] }) .then(res => { this.$message({ @@ -196,6 +175,7 @@ }, // 閮ㄩ棬淇敼 handleCheck(data, checked) { + console.log(this.selectOrg.orgsid[0]) this.user.departName = data.departName; // 鑾峰彇褰撳墠閫夋嫨鐨刬d鍦ㄦ暟缁勪腑鐨勭储寮� const indexs = this.selectOrg.orgsid.indexOf(data.id); -- Gitblit v1.8.0