From 15bb6629a4cfdb03cb2544dce69ac87bfe82ccce Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期六, 22 六月 2024 23:15:15 +0800 Subject: [PATCH] 一些优化 --- src/views/tigerprojects/system/role/role.data.ts | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/views/tigerprojects/system/role/role.data.ts b/src/views/tigerprojects/system/role/role.data.ts index 09d301a..e348395 100644 --- a/src/views/tigerprojects/system/role/role.data.ts +++ b/src/views/tigerprojects/system/role/role.data.ts @@ -1,5 +1,4 @@ -import { BasicColumn } from '/@/components/Table'; -import { FormSchema } from '/@/components/Table'; +import { BasicColumn, FormSchema } from '/@/components/Table'; import { h } from 'vue'; import { Switch } from 'ant-design-vue'; import { setRoleStatus } from '/@/api/tigerapi/system'; @@ -55,7 +54,7 @@ }, }); }, - editDynamicDisabled:true + editDynamicDisabled: true, }, { title: '鍒涘缓鏃堕棿', @@ -91,7 +90,8 @@ const isMenu = (type: number) => type === 0; const isOrg = (type: number) => type === 1; -const isWh = (type: number) => type === 2; +const isFty = (type: number) => type === 2; +const isWh = (type: number) => type === 3; export const formSchema: FormSchema[] = [ { field: 'ROLE_DESC', @@ -145,11 +145,10 @@ options: [ { label: '鑿滃崟鍒嗛厤', value: 0 }, { label: '缁勭粐鍒嗛厤', value: 1 }, - { label: '浠撳簱鍒嗛厤', value: 2 }, + { label: '宸ュ巶鍒嗛厤', value: 2 }, + { label: '浠撳簱鍒嗛厤', value: 3 }, ], - onChange: (e) => { - - }, + onChange: (e) => {}, }; }, colProps: { lg: 24, md: 24 }, @@ -176,6 +175,16 @@ }, { label: ' ', + field: 'fty', + slot: 'fty', + component: 'Input', + colProps: { + span: 24, + }, + ifShow: ({ values }) => isFty(values.DATA_TYPE), + }, + { + label: ' ', field: 'wh', slot: 'wh', component: 'Input', -- Gitblit v1.9.3