| | |
| | | </template> |
| | | <template v-else> |
| | | <el-tag type="success"> |
| | | {{ scope.row.assigneeName }} |
| | | {{ scope.row.assigneeName || '无'}} |
| | | </el-tag> |
| | | </template> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" prop="businessStatusName" label="流程状态" min-width="70"> |
| | | <el-table-column align="center" label="流程状态" min-width="70"> |
| | | <template #default="scope"> |
| | | <el-tag type="success">{{ scope.row.businessStatusName }}</el-tag> |
| | | <dict-tag :options="wf_business_status" :value="scope.row.businessStatus"></dict-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" width="200"> |
| | |
| | | <script lang="ts" setup> |
| | | import { getPageByTaskCopy} from '@/api/workflow/task'; |
| | | import { TaskQuery } from '@/api/workflow/task/types'; |
| | | import workflowCommon from '@/api/workflow/workflowCommon'; |
| | | import { RouterJumpVo } from '@/api/workflow/workflowCommon/types'; |
| | | //审批记录组件 |
| | | const queryFormRef = ref<ElFormInstance>(); |
| | | const { proxy } = getCurrentInstance() as ComponentInternalInstance; |
| | | const { wf_business_status } = toRefs<any>(proxy?.useDict('wf_business_status')); |
| | | // 遮罩层 |
| | | const loading = ref(true); |
| | | // 选中数组 |
| | |
| | | |
| | | /** 查看按钮操作 */ |
| | | const handleView = (row) => { |
| | | if(row.wfFormDefinitionVo){ |
| | | proxy.$tab.closePage(proxy.$route); |
| | | proxy.$router.push({ |
| | | path: `${row.wfFormDefinitionVo.path}`, |
| | | query: { |
| | | id: row.businessKey, |
| | | type: 'view' |
| | | } |
| | | }) |
| | | }else{ |
| | | proxy?.$modal.msgError('请到流程定义菜单配置路由!'); |
| | | } |
| | | const routerJumpVo = reactive<RouterJumpVo>({ |
| | | wfDefinitionConfigVo: row.wfDefinitionConfigVo, |
| | | wfNodeConfigVo: row.wfNodeConfigVo, |
| | | businessKey: row.businessKey, |
| | | taskId: row.id, |
| | | type: 'view' |
| | | }); |
| | | workflowCommon.routerJump(routerJumpVo,proxy) |
| | | }; |
| | | |
| | | |