From 4b1ae732664dc53bcefe25ee0b0690a02e2b21c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 2 May 2022 05:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=87=E6=8D=A2=E8=B4=A6?= =?UTF-8?q?=E6=88=B7=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.js | 13 +- src/views/myWork/set/UpdateUserInfo.vue | 327 ------------------------ src/views/myWork/set/index.vue | 68 ++++- 3 files changed, 79 insertions(+), 329 deletions(-) delete mode 100644 src/views/myWork/set/UpdateUserInfo.vue diff --git a/src/api/login.js b/src/api/login.js index da260998..6c9dfca9 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -156,4 +156,15 @@ export function getTpaState( ) { method: 'post', data:{} }) -} \ No newline at end of file +} +/** + * 获取查询当前登录账户的所有关联账户 + * @returns + */ + export function queryMyUsers( ) { + return axios({ + url: base+'/user/queryMyUsers', + method: 'get' + }) +} + diff --git a/src/views/myWork/set/UpdateUserInfo.vue b/src/views/myWork/set/UpdateUserInfo.vue deleted file mode 100644 index a0fcece0..00000000 --- a/src/views/myWork/set/UpdateUserInfo.vue +++ /dev/null @@ -1,327 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/myWork/set/index.vue b/src/views/myWork/set/index.vue index 5586009f..717a139b 100644 --- a/src/views/myWork/set/index.vue +++ b/src/views/myWork/set/index.vue @@ -12,6 +12,7 @@ 企业员工账户 {{editForm.branchName}} 升级为企业账户 + 切换账户 所在部门:{{userInfo.deptName}} 修改头像 @@ -109,13 +110,33 @@ @submit="afterAddSubmit" > + + + + + + + + + + + + + + +