From b4153d1848cc14ec3134f947439d7fe8e5956e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BC=BA?= <1206709430@qq.com> Date: Wed, 27 Dec 2023 19:14:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96commonCrudConfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/utils/commonCrud.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/src/utils/commonCrud.ts b/web/src/utils/commonCrud.ts index b601882..40e08f7 100644 --- a/web/src/utils/commonCrud.ts +++ b/web/src/utils/commonCrud.ts @@ -38,7 +38,7 @@ export const commonCrudConfig = (options = { title: '所属部门', type: 'dict-cascader', search: { - show: false + show: options.dept_belong_id?.search || false }, dict: dict({ url: '/api/system/dept/all_dept/', @@ -49,7 +49,7 @@ export const commonCrudConfig = (options = { }), column: { align: 'center', - width: 200, + width: 300, show: options.dept_belong_id?.table || false, component:{ name: shallowRef(deptFormat), @@ -156,6 +156,12 @@ export const commonCrudConfig = (options = { column: { width: 160, show: options.create_datetime?.table || false, + }, + form: { + show: false, + }, + viewForm: { + show: true } } }