From 0990f596791ebc4518e293a2d60407ff1165b53c Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期五, 21 六月 2024 18:09:31 +0800 Subject: [PATCH] 菜单更新 --- src/api/sys/menu.ts | 35 +++++++++++++++++++++++++++++++++-- 1 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/api/sys/menu.ts b/src/api/sys/menu.ts index 9354907..2e2c35f 100644 --- a/src/api/sys/menu.ts +++ b/src/api/sys/menu.ts @@ -1,3 +1,11 @@ +/* + * @Description: 鑿滃崟Api鐩稿叧 + * @Author: Ben Lin + * @version: + * @Date: 2024-06-18 15:09:47 + * @LastEditors: Ben Lin + * @LastEditTime: 2024-06-21 16:50:45 + */ import { defHttp } from '/@/utils/http/axios'; import { getMenuListResultModel } from './model/menuModel'; import { genAction, Api } from '../tigerapi/system'; @@ -29,8 +37,11 @@ ); }; -// params: string -// 鑿滃崟鏉冮檺 +/** + * @description: 鑿滃崟鏉冮檺 + * @param {string} params + * @return {*} + */ export const getMenuAuthList = async (params: string) => { const usParams = genAction('V_USER_MENU', { QueryAble_T: '', @@ -45,3 +56,23 @@ }, ); }; + +/** + * @description: 鑾峰彇鑿滃崟涓嬬殑鎸夐挳 + * @param {string} params + * @return {*} + */ +export const getMenuButtons = async (params: string) =>{ + const usParams = genAction('SYS_MENU', { + QueryAble_T: '', + where: "PFUNC_CODE = '" + params + "'", + order: '', + }); + return await defHttp.post( + { url: Api.QueryUrl, params: usParams }, + { + errorMessageMode: 'none', + isTransformResponse: false, + }, + ); +}; -- Gitblit v1.9.3