YunaiV 8b7a3ac7c1 完善 MALL、CRM、ERP 文档说明
(cherry picked from commit 249fe126eeaff7c6c3e8dfb1de9d1c397c0a110b)
2024-03-11 20:51:43 +08:00

42 lines
1.1 KiB
Vue

<template>
<doc-alert title="工作流手册" url="https://doc.iocoder.cn/bpm/" />
<ContentWrap>
<XTable @register="registerTable">
<template #suspensionState_default="{ row }">
<el-tag type="success" v-if="row.suspensionState === 1">激活</el-tag>
<el-tag type="warning" v-if="row.suspensionState === 2">挂起</el-tag>
</template>
<template #actionbtns_default="{ row }">
<!-- 操作: 审批进度 -->
<XTextButton preIcon="ep:view" title="详情" @click="handleAudit(row)" />
</template>
</XTable>
</ContentWrap>
</template>
<script lang="ts" setup>
// 业务相关的 import
import { allSchemas } from './done.data'
import * as TaskApi from '@/api/bpm/task'
defineOptions({ name: 'BpmDoneTask' })
const { push } = useRouter() // 路由
const [registerTable] = useXTable({
allSchemas: allSchemas,
topActionSlots: false,
getListApi: TaskApi.getDoneTaskPage
})
// 处理审批按钮
const handleAudit = (row) => {
push({
name: 'BpmProcessInstanceDetail',
query: {
id: row.processInstance.id
}
})
}
</script>