diff --git a/src/stores/dictData.ts b/src/stores/dictData.ts index 4061fc39..9c86b31b 100644 --- a/src/stores/dictData.ts +++ b/src/stores/dictData.ts @@ -2,6 +2,8 @@ import { defineStore } from 'pinia' import { DICT_DATA } from '@/stores/constant/cacheKey' import type { DictData } from '@/stores/interface/index' import { reactive } from 'vue' +import { useAdminInfo } from '@/stores/adminInfo' +const adminInfo = useAdminInfo() export const useDictData = defineStore( 'dictData', @@ -28,13 +30,20 @@ export const useDictData = defineStore( } const statusSelect = () => { - return [ - { name: '待提交审批', id: 0 }, - { name: '审批中', id: 1 }, - { name: '审批通过', id: 2 }, - { name: '审批不通过', id: 3 }, - { name: '已取消', id: 4 } - ] + if (adminInfo.deptLevel == 2) { + return [ + { name: '审批中', id: 1 }, + { name: '审批通过', id: 2 } + ] + } else { + return [ + { name: '待提交审批', id: 0 }, + { name: '审批中', id: 1 }, + { name: '审批通过', id: 2 }, + { name: '审批不通过', id: 3 }, + { name: '已取消', id: 4 } + ] + } } return { diff --git a/src/views/pqs/supervise/electricalEnergy/components1/testRun.vue b/src/views/pqs/supervise/electricalEnergy/components1/testRun.vue index b55e7afa..dcc9ebcf 100644 --- a/src/views/pqs/supervise/electricalEnergy/components1/testRun.vue +++ b/src/views/pqs/supervise/electricalEnergy/components1/testRun.vue @@ -4,7 +4,13 @@