[update] 点击审批信息的节点名称跳转查看

This commit is contained in:
lideqin
2024-07-11 15:16:05 +08:00
parent 4bcae00320
commit 8cc3371698
3 changed files with 82 additions and 16 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ export default {
font-size: 10px;
width: 20px;
height: 20px;
background: #FAE6E5;
background: rgba(0, 100, 250, 0.08);
border-radius: 10px 10px 10px 10px;
opacity: 1;
line-height: 20px;
+42 -10
View File
@@ -46,15 +46,14 @@
:scroll="{x: '100%', y: yScrollHeight}"
@change="handleTableChange">
<!-- 耗时 -->
<!--<template v-slot:timeConsuming="{text, record}">-->
<!-- <a-tooltip overlay-class-name="tooltip-style">-->
<!-- <template slot="title">{{ record.endTime && record.createTime ? computedTimeConsuming(record) : global.emptyLine }}</template>-->
<!-- <div class="table-text">-->
<!-- {{ record.endTime && record.createTime ? computedTimeConsuming(record) : global.emptyLine }}-->
<!-- </div>-->
<!-- </a-tooltip>-->
<!--</template>-->
<!-- 任务节点 -->
<template v-slot:taskNode="{text, record}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<a v-if="text" class="link-a" @click="handleLookDetail(record)">{{ text }}</a>
<div v-else class="table-text">{{ global.emptyLine }}</div>
</a-tooltip>
</template>
<!--审批意见-->
<template v-slot:approvalOpinion="{text, record}">
@@ -173,7 +172,8 @@ export default {
{
dataIndex: 'taskName',
title: this.$t('workCenter.processDetail.taskNode'),
width: 150
width: 150,
scopedSlots: { customRender: 'taskNode' }
},
// 任务受理人
{
@@ -372,6 +372,38 @@ export default {
}
// 其余可预览文件仍使用KKFile进行预览
kkFilePreview(fileFullUrl)
},
// 跳转流程基本信息页面
handleLookDetail (record) {
let path = ''
// 跳转到对应流程页面
switch (record.prcType + '') {
// 新法规导入流程
case '1':
path = '/workCenter/NewRegulationIntroductionProcess'
break
// 标准解读流程
case '2':
path = '/workCenter/StandardInterpretationProcess'
break
// 法规符合性排查流程
case '3':
path = '/workCenter/RegulatoryComplianceCheckProcess'
break
// 市场清单发布流程
case '4':
path = '/workCenter/MarketListReleaseProcess'
break
}
const query = {}
query.taskName = record.taskName
query.snapshotId = record.snapshotId // 快照id
query.nodeId = record.nodeId // 节点的id
this.$router.push({
path: path,
query: query,
isLook: 1
})
}
}
}