From a7fb633b89ab5643335e3080eef247651dd4b72a Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Wed, 3 Jul 2024 01:46:13 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E4=BC=98=E5=8C=96=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=97=B6=E8=AF=A5=E7=94=A8=E6=88=B7=E7=9A=84?= =?UTF-8?q?=E7=9F=A9=E9=98=B5=E7=8A=B6=E6=80=81=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user/user.js | 15 ++- .../workflow/process/common/UserPicker.vue | 30 ++++- .../process/config/ApprovalNodeConfig.vue | 110 +++++++++--------- 3 files changed, 93 insertions(+), 62 deletions(-) diff --git a/src/api/user/user.js b/src/api/user/user.js index 96d078f..e0a84c1 100644 --- a/src/api/user/user.js +++ b/src/api/user/user.js @@ -56,8 +56,8 @@ export const getUserDetail = (userId) => { // 操作 export const operate = (data, type) => { // console.log(type ,'type'); - if(data.userId && type !== '0') return editUser(data) - else if(type == '0') return editUserOA(data) + if (data.userId && type !== '0') return editUser(data) + else if (type == '0') return editUserOA(data) return addUser(data) } @@ -186,16 +186,23 @@ export const unbindAllUserByPost = (postId) => { }) } -export const bindAccount=(data)=>{ +export const bindAccount = (data) => { return request({ url: '/admin/mosr/user/bind/account', method: 'post', data }) } -export const getBindAccount=(userId)=>{ +export const getBindAccount = (userId) => { return request({ url: `/admin/mosr/user/bind/account/info/${userId}`, method: 'get' }) } + +export const checkMatrix = (userId) => { + return request({ + url: `/admin/mosr/user/matrix?userId=` + userId, + method: 'get' + }) +} diff --git a/src/views/workflow/process/common/UserPicker.vue b/src/views/workflow/process/common/UserPicker.vue index 459236c..d168e91 100644 --- a/src/views/workflow/process/common/UserPicker.vue +++ b/src/views/workflow/process/common/UserPicker.vue @@ -70,8 +70,9 @@