修改 流程状态

This commit is contained in:
GGJ
2024-08-22 16:55:38 +08:00
parent 5a57bd4e39
commit c6162fe10f

View File

@@ -2,8 +2,6 @@ import { defineStore } from 'pinia'
import { DICT_DATA } from '@/stores/constant/cacheKey' import { DICT_DATA } from '@/stores/constant/cacheKey'
import type { DictData } from '@/stores/interface/index' import type { DictData } from '@/stores/interface/index'
import { reactive } from 'vue' import { reactive } from 'vue'
import { useAdminInfo } from '@/stores/adminInfo'
const adminInfo = useAdminInfo()
export const useDictData = defineStore( export const useDictData = defineStore(
'dictData', 'dictData',
@@ -30,20 +28,13 @@ export const useDictData = defineStore(
} }
const statusSelect = () => { const statusSelect = () => {
if (adminInfo.deptLevel == 2) { return [
return [ { name: '待提交审批', id: 0 },
{ name: '审批中', id: 1 }, { name: '审批中', id: 1 },
{ name: '审批通过', id: 2 } { name: '审批通过', id: 2 },
] { name: '审批不通过', id: 3 },
} else { { name: '已取消', id: 4 }
return [ ]
{ name: '待提交审批', id: 0 },
{ name: '审批中', id: 1 },
{ name: '审批通过', id: 2 },
{ name: '审批不通过', id: 3 },
{ name: '已取消', id: 4 }
]
}
} }
return { return {