update 流程详情-流程图

This commit is contained in:
赵霄
2023-10-11 12:00:08 +08:00
parent 03088b4729
commit 6148febfff
5 changed files with 414 additions and 272 deletions
+8 -3
View File
@@ -71,6 +71,8 @@
</div>
</div>
</div>
<flow-chart-modal ref="flowChartModal" />
</div>
</template>
@@ -82,6 +84,7 @@ import { ACCESS_TOKEN } from '../store/mutation-types.js'
import { downloadFile, getFileAccessHttpUrl } from '../api/manage.js'
import { previewPdf } from '../utils/previewPdf.js'
import { Base64 } from 'js-base64'
import FlowChartModal from './FlowChartModal.vue'
// 支持预览的文件后缀
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'raw', 'pdf', 'docx', 'doc']
@@ -90,7 +93,7 @@ const FILE_TYPE_PDF = 'pdf'
export default {
name: 'ProcessDetailList',
components: { JTable },
components: { JTable, FlowChartModal },
mixins: [JeroListMixin],
props: {
// 需要有list属性,用于混入里的接口获取
@@ -131,7 +134,7 @@ export default {
},
// 任务受理人
{
dataIndex: 'projectName',
dataIndex: 'projectName1',
title: this.$t('workCenter.processDetail.taskHandler'),
width: 120
},
@@ -143,7 +146,7 @@ export default {
},
// 完成时间
{
dataIndex: 'nameWorkNo',
dataIndex: 'nameWorkNo1',
title: this.$t('workCenter.processDetail.completionTime'),
width: 150
},
@@ -192,6 +195,8 @@ export default {
* 跳转流程图页面
*/
viewFlowChart () {
this.$refs.flowChartModal.processId = '62507'
this.$refs.flowChartModal.open()
},
handlePreview (file) {
if (!file || !file.url) {