diff --git a/admin/src/views/consumer/assistant/index.vue b/admin/src/views/consumer/assistant/index.vue index d4c72f30..185c6024 100644 --- a/admin/src/views/consumer/assistant/index.vue +++ b/admin/src/views/consumer/assistant/index.vue @@ -99,11 +99,13 @@ import EditPopup from './edit.vue' const editRef = shallowRef>() -// 表单数据 - 固定role_id=1查询医助 +// 表单数据 - 固定role_id=2查询医助 const formData = reactive({ account: '', name: '', - role_id: 2 // 固定为医助角色 + role_id: 2, // 固定为医助角色 + // 启用数据范围隔离:上级管理员只看到自己可见的医助;root/全部范围不受影响 + apply_data_scope: 1 }) const showEdit = ref(false) diff --git a/admin/src/views/permission/role/edit.vue b/admin/src/views/permission/role/edit.vue index 7a2d35be..c87114fe 100644 --- a/admin/src/views/permission/role/edit.vue +++ b/admin/src/views/permission/role/edit.vue @@ -36,6 +36,18 @@ + + + + + + + + @@ -58,6 +70,7 @@ const formData = reactive({ name: '', desc: '', sort: 0, + data_scope: 1, menu_id: [] }) diff --git a/admin/src/views/permission/role/index.vue b/admin/src/views/permission/role/index.vue index 026c5aaa..ac06c78c 100644 --- a/admin/src/views/permission/role/index.vue +++ b/admin/src/views/permission/role/index.vue @@ -21,6 +21,11 @@ show-overflow-tooltip /> + + + @@ -98,6 +103,18 @@ const handleAuth = async (data: any) => { authRef.value?.setFormData(data) } +const dataScopeLabel = (scope: number | string | null | undefined) => { + const s = Number(scope) || 1 + return ( + ({ + 1: '全部数据(免隔离)', + 2: '本部门及下级部门', + 3: '仅本部门', + 4: '仅本人' + } as Record)[s] || '全部数据(免隔离)' + ) +} + // 删除角色 const handleDelete = async (id: number) => { await feedback.confirm('确定要删除?') diff --git a/admin/src/views/tcm/diagnosis/index_h5.vue b/admin/src/views/tcm/diagnosis/index_h5.vue index 76b20a6d..ad860cfd 100644 --- a/admin/src/views/tcm/diagnosis/index_h5.vue +++ b/admin/src/views/tcm/diagnosis/index_h5.vue @@ -1,137 +1,488 @@