diff --git a/src/api/eqpt/document/index.ts b/src/api/eqpt/document/index.ts index 636a5e4..4c59b53 100644 --- a/src/api/eqpt/document/index.ts +++ b/src/api/eqpt/document/index.ts @@ -5,9 +5,9 @@ // 分页列表 export function getListPage(params: object) { return request({ - url: '/file/listPage', - method: 'get', - params, + url: `/file/listPage?offset=${params.offset}&limit=${params.limit}`, + method: 'post', + data: params, }) } // 新建 diff --git a/src/api/eqpt/document/index.ts b/src/api/eqpt/document/index.ts index 636a5e4..4c59b53 100644 --- a/src/api/eqpt/document/index.ts +++ b/src/api/eqpt/document/index.ts @@ -5,9 +5,9 @@ // 分页列表 export function getListPage(params: object) { return request({ - url: '/file/listPage', - method: 'get', - params, + url: `/file/listPage?offset=${params.offset}&limit=${params.limit}`, + method: 'post', + data: params, }) } // 新建 diff --git a/src/views/tested/MeasurementPlan/plan/components/list.vue b/src/views/tested/MeasurementPlan/plan/components/list.vue index 8b9a022..f5eedcb 100644 --- a/src/views/tested/MeasurementPlan/plan/components/list.vue +++ b/src/views/tested/MeasurementPlan/plan/components/list.vue @@ -12,12 +12,14 @@ import { getAdminDept, getUserDept, getUserDeptSon, getUserList } from '@/api/system/user' import { getDeptTreeList } from '@/api/system/dept' import { toTreeList } from '@/utils/structure' +import useUserStore from '@/store/modules/user' const $props = defineProps({ statusName: { type: String, default: '', }, }) +const userStore = useUserStore() const applyDict = ref<{ [key: string]: string }>({ 审批: '', 草稿箱: '1', @@ -369,6 +371,9 @@ reject: '/tested/pmetering/plan/reject', add: '/tested/pmetering/plan/add', }) +const isAdmin = computed(() => { + return userStore.roleNames.join().includes('管理员') +})