diff --git a/src/api/index.ts b/src/api/index.ts index b84bc37..0dd5840 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -51,8 +51,6 @@ class RequestHttp { this.service.interceptors.response.use( (response: AxiosResponse) => { const { data } = response; - console.log(data); - const globalStore = GlobalStore(); // * 在请求结束后,并关闭请求 loading tryHideFullScreenLoading(); diff --git a/src/api/modules/jxjview.ts b/src/api/modules/jxjview.ts index bc45e6a..8c56ce2 100644 --- a/src/api/modules/jxjview.ts +++ b/src/api/modules/jxjview.ts @@ -52,6 +52,10 @@ export const getDictionaryList = (params: User.ReqUserParams) => { export const getDictionaryDetail = (params: User.ReqUserParams) => { return http.post>(PORT1 + `/xmgl/systemDictData/page`, params); }; +// 查询字典 +export const getDicList = (params: User.ReqUserParams) => { + return http.post>(PORT1 + `/xmgl/systemDictData/list`, params); +}; // * 新增用户 export const addDictionary = (params: FormData) => { return http.post(PORT1 + `/xmgl/systemDictType/add`, params); @@ -111,13 +115,33 @@ export const editMenu = (params: { id: string }) => { }; // * 编辑用户 export const editMenubase = (params: { id: string }) => { - return http.post(PORT1 + `/xmgl/baseModule/edit`, params); + return http.post(PORT1 + `/xmgl/baseMenu/edit`, params); }; // 最外层的删除 export const deleteMunu = (params: { id: number }) => { return http.post(PORT1 + `/xmgl/baseModule/delete`, params); }; +// 删除系统菜单信息 +export const deletesysMenu = (params: { menuId: number }) => { + return http.post(PORT1 + `/xmgl/baseMenu/delete`, params); +}; // 菜单管理的表格查询 export const menuList = (params: { moduleId: string }) => { return http.post>(PORT1 + `/xmgl/baseMenu/list`, params); }; +// 获取菜单下所有操作 点击按钮管理的table +export const btnList = (params: { moduleId: string }) => { + return http.post>(PORT1 + `/xmgl/action/list`, params); +}; +// 按钮管理的新增 +export const addAction = (params: FormData) => { + return http.post(PORT1 + `/xmgl/action/add`, params); +}; +// 按钮管理的编辑 +export const editAction = (params: { actionId: number }) => { + return http.post(PORT1 + `/xmgl/action/edit`, params); +}; +// 删除按钮管理 +export const deleteAction = (params: { actionId: number }) => { + return http.post(PORT1 + `/xmgl/action/delete`, params); +}; diff --git a/src/views/jxjview/dictionary/index.vue b/src/views/jxjview/dictionary/index.vue index 8b9485c..d646b11 100644 --- a/src/views/jxjview/dictionary/index.vue +++ b/src/views/jxjview/dictionary/index.vue @@ -258,8 +258,9 @@ const typeVisable = async (dictType: string) => { // console.log(111); dialogTableVisible.value = true; form.dictType = dictType; + diaTableData.dictType = dictType; const res = await getDiaTabList(diaTableData); - console.log(dictType); + // console.log(dictType); gridData.value = res.result.records; }; diff --git a/src/views/jxjview/menumanage/index.vue b/src/views/jxjview/menumanage/index.vue index 7eb0f69..fd2f36b 100644 --- a/src/views/jxjview/menumanage/index.vue +++ b/src/views/jxjview/menumanage/index.vue @@ -1,11 +1,11 @@ - - 新增 + + 新增 - + + + +