From 15a6c5f6643455384a46bea7e7c1f0b3df469da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BC=9F=E5=BA=9A?= Date: Fri, 4 Nov 2022 15:00:55 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=E4=BC=98=E5=8C=96=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E7=AE=A1=E7=90=86=E6=A0=91=E5=BD=A2=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=92=8C=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/main/system/organization/tree.vue | 2 +- src/page/main/system/role/add/role_form.vue | 9 +++++++-- src/page/main/system/role/index.vue | 13 ++++++++++++- src/router/function.js | 14 ++++++++------ 4 files changed, 28 insertions(+), 10 deletions(-) diff --git a/src/page/main/system/organization/tree.vue b/src/page/main/system/organization/tree.vue index da865a1..5987287 100644 --- a/src/page/main/system/organization/tree.vue +++ b/src/page/main/system/organization/tree.vue @@ -74,7 +74,7 @@ import { useRouter } from 'vue-router'; const actionFlag = ref(false) const selectData = ref(null) const selectDataParent = ref(null) - const mvDataParent = ref(null) + const mvDataParent = ref([]) const treeRef = ref(null) const orgData = ref([]) diff --git a/src/page/main/system/role/add/role_form.vue b/src/page/main/system/role/add/role_form.vue index d30f790..71bf4c8 100644 --- a/src/page/main/system/role/add/role_form.vue +++ b/src/page/main/system/role/add/role_form.vue @@ -17,7 +17,7 @@ class="role_form" > - + - + 全平台所有 本组织所有 仅自己 @@ -54,6 +55,7 @@ inline-prompt active-text="是" inactive-text="否" + :disabled="rowType != 0" /> @@ -117,6 +119,7 @@ const roleState = reactive({ children: 'Child', }, // 菜单框默认配置 permissionData: [], // 菜单数据 + rowType: 0, }) const getMenuTree = () => { axios @@ -140,6 +143,7 @@ const getRoleDetail = () => { .then((res) => { if (res.data.code == 200) { let { role_name, role_desc, data_purview, state, menus } = res.data.data + roleState.rowType = res.data.data.role_type let permission_arr = [] if (menus && menus.length > 0) { menus.forEach(e => { @@ -214,6 +218,7 @@ const { rules, defaultProps, permissionData, + rowType, } = toRefs(roleState) diff --git a/src/page/main/system/role/index.vue b/src/page/main/system/role/index.vue index 1f23d5d..5f594eb 100644 --- a/src/page/main/system/role/index.vue +++ b/src/page/main/system/role/index.vue @@ -56,7 +56,7 @@ {{ row.created_time.split("+")[0].replace("T", " ").replace("Z", " ") }}