From dbf5c5c3c1e29142301d50edc0044f1ba8496570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Fri, 6 Sep 2024 15:57:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BE=80=E6=9D=A5=E5=8D=95=E4=BD=8D=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E6=A8=A1=E6=9D=BF=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=AE=A1=E7=90=86=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserSelection/src/UserPicker.vue | 16 +++- src/components/UserSelection/src/UserTag.vue | 18 ++-- src/store/modules/app.ts | 32 +++++-- .../Lowflow/penal/ApprovalAttr.vue | 11 ++- src/views/baseinfo/clientflowtemplate/api.ts | 10 ++ .../infoclient/TenantAuditStepModal.vue | 4 + src/views/baseinfo/infoclient/columns.tsx | 17 +++- src/views/baseinfo/package/columns.tsx | 1 - src/views/system/user/UserPermissionModal.vue | 48 +--------- src/views/system/user/dataruleIndex.vue | 42 +++++++-- src/views/system/user/dataruleInfo.vue | 91 ++++++++++++------- 11 files changed, 174 insertions(+), 116 deletions(-) diff --git a/src/components/UserSelection/src/UserPicker.vue b/src/components/UserSelection/src/UserPicker.vue index 5499825d..3265771d 100644 --- a/src/components/UserSelection/src/UserPicker.vue +++ b/src/components/UserSelection/src/UserPicker.vue @@ -3,10 +3,11 @@ import { TreeNodeData } from 'element-plus/es/components/tree/src/tree.type' import { type ElTree } from 'element-plus' import { reactive, ref, watch } from 'vue' - import { getList } from '/@/views/baseinfo/clientflowtemplate/api' + import { getUsetList } from '/@/views/baseinfo/clientflowtemplate/api' import { School, Check } from '@element-plus/icons-vue' import Node from 'element-plus/es/components/tree/src/model/node' - + import { useAppStore } from '/@/store/modules/app' + const appStore = useAppStore() export type ModelValueType = string | string[] | null | undefined export interface UserDropdownProps { @@ -91,12 +92,17 @@ dialogVisible.value = true } const onOpen = () => { - getList().then((res) => { + getUsetList().then((res) => { if (res.succeeded) { + res.data.forEach((item) => { + item.value = item.id + item.label = item.userName + }) + appStore.setUserList(res.data) userOrgOptions.value = res.data.map((e) => { return { - id: e.value, - name: e.label, + id: e.id, + name: e.userName, type: 'user', leaf: true, avatar: e.avatar, diff --git a/src/components/UserSelection/src/UserTag.vue b/src/components/UserSelection/src/UserTag.vue index 0c75ffbc..24055d58 100644 --- a/src/components/UserSelection/src/UserTag.vue +++ b/src/components/UserSelection/src/UserTag.vue @@ -1,8 +1,9 @@