diff --git a/src/api/system/menuman.js b/src/api/system/menuman.js index 6e916a0..8d44d4b 100644 --- a/src/api/system/menuman.js +++ b/src/api/system/menuman.js @@ -40,7 +40,7 @@ export const getMenuInfo = (menuId) => { export const getMenuOpt = (excludeId=0) => { return request({ - url: '/admin/menu/option/'+excludeId, + url: '/admin/menu/option/role/'+excludeId, method: 'get' }) } @@ -50,4 +50,4 @@ export const getMenuOptRole = (roleId) => { url: '/admin/menu/option/role/'+roleId, method: 'get' }) -} \ No newline at end of file +} diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue index 34c444e..5a615de 100644 --- a/src/components/AttachmentUpload.vue +++ b/src/components/AttachmentUpload.vue @@ -7,9 +7,11 @@ {{ singleFile ? singleFile?.originalFileName : formData.singleFile?.originalFileName }} - 删除 + 删除 + - +
diff --git a/src/views/system/role/add.vue b/src/views/system/role/add.vue index 86d6c9a..faff5af 100644 --- a/src/views/system/role/add.vue +++ b/src/views/system/role/add.vue @@ -38,7 +38,7 @@ import { useTagsView } from '@/stores/tagsview.js' import { useAuthStore } from '@/stores/userstore.js' import fvRadio from '@/fvcomponents/fvRadio/index.vue' import { ElLoading, ElNotification } from 'element-plus'; -import { getMenuOpt } from '@/api/system/menuman.js' +import { getMenuOptRole } from '@/api/system/menuman.js' import { getRoleDetail, operate, getTemRoleOption } from "@/api/role/role"; const tagsViewStore = useTagsView() @@ -143,8 +143,9 @@ const init = async () => { form.value.setValues({state: '1', template: false}) const res = await getTemRoleOption() localData.tempRoleOpt = res.data - const { data } = await getMenuOpt(0) - localData.menuData = data + const { data } = await getMenuOptRole() + localData.menuData = data.menuOption + // localData.checked = data.checked } const getInfo = async () => {