From 5100281c1f0bec1aad47bcc76333b5faadccb0f4 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Tue, 18 Jun 2024 20:43:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E6=94=B9=E5=BE=81=E9=9B=86?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=BA=E5=AD=97=E5=85=B8=E3=80=81=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E4=B8=8A=E6=8A=A5=E6=97=B6=E8=AF=A6=E6=83=85=E4=B8=93?= =?UTF-8?q?=E9=A1=B9=E8=B5=84=E9=87=91=E5=9B=9E=E6=98=BE=E3=80=81=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=BD=92=E6=A1=A3-=E9=9C=80=E6=B1=82=E5=BE=81?= =?UTF-8?q?=E9=9B=86=E6=96=87=E4=BB=B6=E5=9B=9E=E6=98=BE=E3=80=81=E9=87=8D?= =?UTF-8?q?=E5=A4=A7=E9=A1=B9=E7=9B=AE=E5=89=8D=E7=BD=AE=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/menuman.js | 4 +-- src/components/AttachmentUpload.vue | 16 +++++---- .../DetailComponent/ProjectApply.vue | 24 +++++++++----- src/components/PopoverDelete.vue | 3 +- src/views/project-demand/requirement/add.vue | 21 +++++------- src/views/project-demand/summary/add.vue | 1 + .../project-management/filing/attachment.vue | 33 ++++++++++--------- .../implementation/detail.vue | 1 + src/views/system/role/add.vue | 7 ++-- 9 files changed, 61 insertions(+), 49 deletions(-) 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 () => {