From c6162fe10f886f42112ce878a831b4e2b0e5306d Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Thu, 22 Aug 2024 16:55:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=20=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/dictData.ts | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/stores/dictData.ts b/src/stores/dictData.ts index 9c86b31b..4061fc39 100644 --- a/src/stores/dictData.ts +++ b/src/stores/dictData.ts @@ -2,8 +2,6 @@ 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', @@ -30,20 +28,13 @@ export const useDictData = defineStore( } const statusSelect = () => { - 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 [ + { name: '待提交审批', id: 0 }, + { name: '审批中', id: 1 }, + { name: '审批通过', id: 2 }, + { name: '审批不通过', id: 3 }, + { name: '已取消', id: 4 } + ] } return {