From d582f081e148c5df7c1b334a94fa1df1cd2655a9 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 04 七月 2024 22:40:20 +0800 Subject: [PATCH] 班制更新 --- src/views/tigerprojects/system/menu/menu.data.ts | 41 ++++++++++++++++++++++++++--------------- 1 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/views/tigerprojects/system/menu/menu.data.ts b/src/views/tigerprojects/system/menu/menu.data.ts index bddeaf6..effe051 100644 --- a/src/views/tigerprojects/system/menu/menu.data.ts +++ b/src/views/tigerprojects/system/menu/menu.data.ts @@ -60,6 +60,11 @@ dataIndex: 'btnType', ifShow: false, }, + { + title: '鎵ц鏂规硶', + dataIndex: 'doMethod', + ifShow: false, + }, ]; const isDir = (type: string) => type === '0'; @@ -73,18 +78,18 @@ component: 'Input', colProps: { span: 8 }, }, - { - field: 'status', - label: '鐘舵��', - component: 'Select', - componentProps: { - options: [ - { label: '鍚敤', value: '1' }, - { label: '鍋滅敤', value: '0' }, - ], - }, - colProps: { span: 8 }, - }, + // { + // field: 'status', + // label: '鐘舵��', + // component: 'Select', + // componentProps: { + // options: [ + // { label: '鍚敤', value: '1' }, + // { label: '鍋滅敤', value: '0' }, + // ], + // }, + // colProps: { span: 8 }, + // }, ]; export const formSchema: FormSchema[] = [ @@ -134,7 +139,7 @@ label: '鍥炬爣', component: 'IconPicker', required: ({ values }) => isDir(values.func_type), - ifShow: ({ values }) => !isButton(values.func_type), + ifShow: ({ values }) => true, //!isButton(values.func_type), }, { @@ -154,18 +159,24 @@ field: 'btnType', label: '鎸夐挳绫诲瀷', component: 'ApiSelect', - defaultValue: '', + defaultValue: 0, componentProps: { api: GetEnum, params: { name: 'SYS_MENU+BUTTON_TYPEs' }, resultField: 'Data', labelField: unref(getLocale) == 'zh_CN' ? 'Desc' : 'Name', valueField: 'Value', - placeholder: '璇烽�夋嫨鎸夐挳绫诲瀷' + placeholder: '璇烽�夋嫨鎸夐挳绫诲瀷', }, ifShow: ({ values }) => isButton(values.func_type), }, { + field: 'doMethod', + label: '鎵ц鏂规硶鍚�', + component: 'Input', + ifShow: ({ values }) => isButton(values.func_type), + }, + { field: 'func_code', label: '鏉冮檺鏍囪瘑', component: 'Input', -- Gitblit v1.9.3