diff --git a/src/modules/smart-system/views/function/FunctionListView.config.ts b/src/modules/smart-system/views/function/FunctionListView.config.ts index 8516383c3..907c86edb 100644 --- a/src/modules/smart-system/views/function/FunctionListView.config.ts +++ b/src/modules/smart-system/views/function/FunctionListView.config.ts @@ -98,18 +98,16 @@ export const getAddEditForm = (t: Function): FormSchema[] => { show: false, }, { - field: 'parentName', - label: '上级', - component: 'Input', - componentProps: { - disabled: true, - }, + field: 'isTopAdd', + label: '', + component: 'Switch', + defaultValue: false, + show: false, }, { field: 'parentId', - label: '', - component: 'Input', - show: false, + label: '上级', + slot: 'addEdit-parentId', }, { field: 'functionName', diff --git a/src/modules/smart-system/views/function/FunctionListView.vue b/src/modules/smart-system/views/function/FunctionListView.vue index 5a2787dd9..e0d1d262a 100644 --- a/src/modules/smart-system/views/function/FunctionListView.vue +++ b/src/modules/smart-system/views/function/FunctionListView.vue @@ -25,12 +25,27 @@ +