diff --git a/web/src/views/system/dept/components/DeptFormCom/index.vue b/web/src/views/system/dept/components/DeptFormCom/index.vue index f28851f..445069b 100644 --- a/web/src/views/system/dept/components/DeptFormCom/index.vue +++ b/web/src/views/system/dept/components/DeptFormCom/index.vue @@ -19,7 +19,7 @@ - + diff --git a/web/src/views/system/dept/components/DeptUserCom/crud.tsx b/web/src/views/system/dept/components/DeptUserCom/crud.tsx index 0eaa096..afeaf9a 100644 --- a/web/src/views/system/dept/components/DeptUserCom/crud.tsx +++ b/web/src/views/system/dept/components/DeptUserCom/crud.tsx @@ -266,7 +266,6 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp url: '/api/system/role/', value: 'id', label: 'name', - isTree: true, getData: async ({ url }: { url: string }) => { return request({ url: url, diff --git a/web/src/views/system/dept/components/DeptUserCom/index.vue b/web/src/views/system/dept/components/DeptUserCom/index.vue index 922a8fb..6538f20 100644 --- a/web/src/views/system/dept/components/DeptUserCom/index.vue +++ b/web/src/views/system/dept/components/DeptUserCom/index.vue @@ -251,10 +251,10 @@ const handleResetPwdSubmit = async () => { }; onMounted(() => { - crudExpose.doRefresh(); deptCountChart = init(deptCountBar.value as HTMLElement); deptSexChart = init(deptSexPie.value as HTMLElement); getDeptInfo(); + crudExpose.doRefresh(); }); defineExpose({ diff --git a/web/src/views/system/messageCenter/crud.tsx b/web/src/views/system/messageCenter/crud.tsx index aebef1e..427e699 100644 --- a/web/src/views/system/messageCenter/crud.tsx +++ b/web/src/views/system/messageCenter/crud.tsx @@ -47,6 +47,15 @@ export const createCrudOptions = function ({ crudExpose, tabActivted }: { crudEx editRequest, delRequest, }, + actionbar:{ + buttons:{ + add:{ + show:computed(() =>{ + return tabActivted.value !== 'receive' + }) + }, + } + }, rowHandle: { fixed:'right', width:150,