diff --git a/src/views/link/AccessConfig/components/Channel/index.vue b/src/views/link/AccessConfig/components/Channel/index.vue index 557f3412..ba0bc455 100644 --- a/src/views/link/AccessConfig/components/Channel/index.vue +++ b/src/views/link/AccessConfig/components/Channel/index.vue @@ -64,7 +64,7 @@

{{ provider.description }}

-

消息协议:{{ provider.id }}

+

1、配置{{ provider.name }}通道

2、创建{{ provider.name }}设备接入网关

diff --git a/src/views/system/User/components/EditUserDialog.vue b/src/views/system/User/components/EditUserDialog.vue index 2154f31e..9803d12a 100644 --- a/src/views/system/User/components/EditUserDialog.vue +++ b/src/views/system/User/components/EditUserDialog.vue @@ -12,9 +12,8 @@ okText="确定" > -
基础信息
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
账号信息
- - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -222,7 +208,6 @@ import { AxiosResponse } from 'axios'; import { passwordRegEx } from '@/utils/validate'; import { filterSelectNode, onlyMessage } from '@/utils/comm'; import { uniqBy } from 'lodash-es'; -import { storeToRefs } from 'pinia'; const deptPermission = 'system/Department'; const rolePermission = 'system/Role'; @@ -294,9 +279,10 @@ const form = reactive({ }, }, - roleOptions: [], + roleOptions: [] as optionType[], departmentOptions: [] as DefaultOptionType[], + _roleOptions: [] as optionType[], _departmentOptions: [] as DefaultOptionType[], init: () => { @@ -320,8 +306,11 @@ const form = reactive({ (item: dictType) => item.id, ), }; + form._roleOptions = resp.result?.roleList?.map((i: any) => { + return {label: i.name, value: i.id} + }); form.data.roleIdList = resp.result?.roleList?.map((i: any) => { - return i.id + return i.id }); form._departmentOptions = resp.result?.orgList nextTick(() => { @@ -389,24 +378,28 @@ const form = reactive({ }); const dealRoleList = (data:any) =>{ - return data.map((item:any)=>{ + return data.map((item:any)=>{ + return { + name: item.groupName, + id: item.groupId, + disabled: true, + children: item?.roles ? item.roles.map((i:any)=>{ return { - name: item.groupName, - id: item.groupId, - disabled: true, - children: item?.roles ? item.roles.map((i:any)=>{ - return { - name:i.name, - id:i.id - } - }) : [] + name:i.name, + id:i.id } - }) + }) : [] + } + }) } -// 组织已删除在仍显示在列表中 -// const _departmentOptions = computed(() => { -// return uniqBy([...form.departmentOptions, ...form._departmentOptions], 'id') -// }) + +const _roleOptions = computed(() => { + return uniqBy([...form.roleOptions, ...form._roleOptions], 'value') +}) + +const _departmentOptions = computed(() => { + return uniqBy([...form.departmentOptions, ...form._departmentOptions], 'id') +}) form.init();