From 66f77fbbd46f462ed286757a1299eddad1d5edf4 Mon Sep 17 00:00:00 2001 From: easy <1358086367@qq.com> Date: Wed, 1 Feb 2023 11:00:20 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/Menu/Detail/ButtonMange.vue | 16 +++++----- src/views/system/Menu/Detail/index.vue | 5 ++++ .../Menu/components/ButtonAddDialog.vue | 30 +++++++++++++++---- .../system/Menu/components/PermissChoose.vue | 6 +++- src/views/system/Menu/index.vue | 8 ++++- 5 files changed, 49 insertions(+), 16 deletions(-) diff --git a/src/views/system/Menu/Detail/ButtonMange.vue b/src/views/system/Menu/Detail/ButtonMange.vue index ec037a7d..861b510f 100644 --- a/src/views/system/Menu/Detail/ButtonMange.vue +++ b/src/views/system/Menu/Detail/ButtonMange.vue @@ -4,13 +4,13 @@ ref="tableRef" :columns="table.columns" model="TABLE" - :dataSource="table.data" + :dataSource="table.tableData" > @@ -21,7 +21,7 @@ @@ -31,7 +31,7 @@ @@ -81,8 +81,8 @@ const routeParams = { const dialogRef = ref(null); const dialog = { // 打开弹窗 - openDialog: (row?: object) => { - dialogRef.value && dialogRef.value.openDialog(row); + openDialog: (mode: string, row?: object) => { + dialogRef.value && dialogRef.value.openDialog(mode, row); }, confirm: () => {}, }; @@ -114,11 +114,11 @@ const table = reactive({ width: 240, }, ], - data: [] as tableDataItem[], + tableData: [] as tableDataItem[], getList: () => { routeParams.id && getMenuInfo_api(routeParams.id).then((resp: any) => { - table.data = resp.result.buttons as tableDataItem[]; + table.tableData = resp.result.buttons as tableDataItem[]; }); }, }); diff --git a/src/views/system/Menu/Detail/index.vue b/src/views/system/Menu/Detail/index.vue index 08de6fd6..9c40f0e1 100644 --- a/src/views/system/Menu/Detail/index.vue +++ b/src/views/system/Menu/Detail/index.vue @@ -17,6 +17,11 @@ const activeKey = ref('basic'); +