From cc844b6b7c6a012ac41237c58cb598886694c6a6 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 25 Apr 2022 10:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=91=E5=BD=A2=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=99=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/index.vue | 18 ++++++++++-------- src/views/system/menu/index.vue | 18 ++++++++++-------- src/views/system/user/index.vue | 10 ++++++---- 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 090384e..7df4b61 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -97,11 +97,13 @@ - @@ -222,9 +224,9 @@ function resetQuery() { handleQuery(); } /** 新增按钮操作 */ -async function handleAdd(row) { +function handleAdd(row) { reset(); - await listDept().then(response => { + listDept().then(response => { deptOptions.value = proxy.handleTree(response.data, "deptId"); }); if (row != undefined) { @@ -242,9 +244,9 @@ function toggleExpandAll() { }); } /** 修改按钮操作 */ -async function handleUpdate(row) { +function handleUpdate(row) { reset(); - await listDeptExcludeChild(row.deptId).then(response => { + listDeptExcludeChild(row.deptId).then(response => { deptOptions.value = proxy.handleTree(response.data, "deptId"); }); getDept(row.deptId).then(response => { diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index c7362a6..6ead733 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -103,11 +103,13 @@ - @@ -332,9 +334,9 @@ function getList() { }); } /** 查询菜单下拉树结构 */ -async function getTreeselect() { +function getTreeselect() { menuOptions.value = []; - await listMenu().then(response => { + listMenu().then(response => { const menu = { menuId: 0, menuName: "主类目", children: [] }; menu.children = proxy.handleTree(response.data, "menuId"); menuOptions.value.push(menu); @@ -386,9 +388,9 @@ function resetQuery() { handleQuery(); } /** 新增按钮操作 */ -async function handleAdd(row) { +function handleAdd(row) { reset(); - await getTreeselect(); + getTreeselect(); if (row != null && row.menuId) { form.value.parentId = row.menuId; } else { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index e5616f0..491ba1a 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -207,11 +207,13 @@ -