提交“

This commit is contained in:
zlwu committed 2026-05-30 14:03:11 +08:00
1 parent 69ee0f505c
commit 9b88581450
614 files changed
+90318 -689022

No files matched your search

@@ -4,22 +4,16 @@
</template>
<script setup lang="ts">
import { useDictStore } from '@/store/modules/dict'
defineOptions({ name: 'ProcessStatusTag' })
const dictStore = useDictStore()
const props = defineProps<{
status: string
}>()
const statusMap: Record<string, { type: string; label: string }> = {
running: { type: 'warning', label: '进行中' },
completed: { type: 'success', label: '已完成' },
rejected: { type: 'danger', label: '已驳回' },
cancelled: { type: 'info', label: '已取消' },
pending: { type: 'warning', label: '待处理' },
approved: { type: 'success', label: '已通过' },
withdrawn: { type: 'info', label: '已撤回' }
}
const tagType = computed(() => statusMap[props.status]?.type ?? 'info')
const label = computed(() => statusMap[props.status]?.label ?? props.status)
const tagType = computed(() => dictStore.getTagType('wf_process_status', props.status))
const label = computed(() => dictStore.getLabel('wf_process_status', props.status))
</script>