From 3672ab9c3051dd9911d84275b4c685b3e8540264 Mon Sep 17 00:00:00 2001 From: shizhongming Date: Tue, 23 Apr 2024 22:31:23 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E7=B3=BB=E7=BB=9F=E6=A8=A1=E5=9D=97-?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86):=201=E3=80=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=202=E3=80=81=E8=8F=9C=E5=8D=95=E5=8F=AF=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=88=B6=E7=BA=A7=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/function/FunctionListView.config.ts | 16 ++- .../views/function/FunctionListView.vue | 115 ++++++++++++++---- 2 files changed, 97 insertions(+), 34 deletions(-) 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 @@ +