diff --git a/chat-client/src/api/menuManagement.ts b/chat-client/src/api/menuManagement.ts index 657e551..7f8bf3f 100644 --- a/chat-client/src/api/menuManagement.ts +++ b/chat-client/src/api/menuManagement.ts @@ -58,7 +58,7 @@ export const removeMenuInfo = function (param) { return request({ url: `/brichat-service/menu/deleteMenu`, method: 'delete', - params: { menuId }, + params: menuId, }) } diff --git a/chat-client/src/views/permission/menuManage/components/edit.vue b/chat-client/src/views/permission/menuManage/components/edit.vue index 3c555f6..538fbdd 100644 --- a/chat-client/src/views/permission/menuManage/components/edit.vue +++ b/chat-client/src/views/permission/menuManage/components/edit.vue @@ -269,6 +269,7 @@ menuForm.apendixForm.icon = menuForm.definedFrom.icon if (menuForm.definedFrom.id) { //编辑 + menuForm.apendixForm.dispPriority = menuForm.definedFrom.dispPriority await editMenuApendix(menuForm.apendixForm) await editMenuInfo(menuForm.apendixForm) ElMessage.success('编辑成功') diff --git a/chat-client/src/views/permission/menuManage/index.vue b/chat-client/src/views/permission/menuManage/index.vue index e9344fa..b6e423c 100644 --- a/chat-client/src/views/permission/menuManage/index.vue +++ b/chat-client/src/views/permission/menuManage/index.vue @@ -189,11 +189,8 @@ } const handleRemove = (data) => { $baseConfirm('你确定要删除当前菜单吗', '菜单删除', async () => { - await removeMenu({ menuId: data.id }).then(async ()=>{ - await removeMenuInfo( data.id ).then(async ()=>{ - getMenuTree() - }) - }).catch(() => { + await removeMenu({ menuId: data.id }).catch(async () => { + await removeMenuInfo({ menuId: data.id }) getMenuTree() }) }) diff --git a/chat-server/src/main/resources/com/bjtds/brichat/mapper/opengauss/MenuMapper.xml b/chat-server/src/main/resources/com/bjtds/brichat/mapper/opengauss/MenuMapper.xml index 665813c..26bde58 100644 --- a/chat-server/src/main/resources/com/bjtds/brichat/mapper/opengauss/MenuMapper.xml +++ b/chat-server/src/main/resources/com/bjtds/brichat/mapper/opengauss/MenuMapper.xml @@ -26,14 +26,13 @@ dot = #{menu.dot}, dynamicnewtab = #{menu.dynamicnewtab}, breadcrumbhidden = #{menu.breadcrumbhidden}, - is_enable = #{menu.is_enable}, collect = #{menu.collect} WHERE id = #{id} - INSERT INTO tbl_infrastructure_menu_apendix (name, path, component, redirect, hidden, levelhidden, iscustomsvg, nokeepalive, noclosable, badge, tabhidden, target, activemenu, dot, dynamicnewtab, breadcrumbhidden, is_enable) - VALUES (#{name}, #{path}, #{component}, #{redirect}, #{hidden}, #{levelhidden}, #{iscustomsvg}, #{nokeepalive}, #{noclosable}, #{badge}, #{tabhidden}, #{target}, #{activemenu}, #{dot}, #{dynamicnewtab}, #{breadcrumbhidden}, #{is_enable}) + INSERT INTO tbl_infrastructure_menu_apendix ( name, path, component, redirect, hidden, levelhidden, iscustomsvg, nokeepalive, noclosable, badge, tabhidden, target, activemenu, dot, dynamicnewtab, breadcrumbhidden, is_enable) + VALUES ( #{name}, #{path}, #{component}, #{redirect}, #{hidden}, #{levelhidden}, #{iscustomsvg}, #{nokeepalive}, #{noclosable}, #{badge}, #{tabhidden}, #{target}, #{activemenu}, #{dot}, #{dynamicnewtab}, #{breadcrumbhidden}, #{is_enable})