From fb8b0a5ac6f87e5adf2ac1b6e6cc80357447df15 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com>
Date: Tue, 21 Nov 2023 21:21:58 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E6=9D=83?=
=?UTF-8?q?=E9=99=90=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
1.更新字段管理
---
.../views/system/dept/components/DeptFormCom/index.vue | 2 +-
.../views/system/dept/components/DeptUserCom/crud.tsx | 1 -
.../views/system/dept/components/DeptUserCom/index.vue | 2 +-
web/src/views/system/messageCenter/crud.tsx | 9 +++++++++
4 files changed, 11 insertions(+), 3 deletions(-)
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,