|
|
@ -33,9 +33,10 @@ |
|
|
|
<div class="listcon"> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width:100%" @selection-change="handleSelectionChange"> |
|
|
|
<el-table-column width="60px" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
|
<el-table-column width="180px" label="操作" align="center"> |
|
|
|
<el-table-column width="230" label="操作" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" size="small" @click="handleCheck(scope.row)">详情</el-button> |
|
|
|
<el-button type="primary" size="small" v-if="scope.row.endTime == null" @click="handlePress(scope.row)">催办</el-button> |
|
|
|
<el-button type="danger" v-show="scope.row.endTime === null && scope.row.startUserSid === listQuery.params.userSid" size="small" @click="handleTerminate(scope.row)">终止 |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
@ -145,7 +146,7 @@ import flowRecords from '@/components/flow/flowRecord' |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import { getStorage } from '@/utils/auth' |
|
|
|
import { getList, selectUrl, readXml, getFlowViewer, breakProcess, commentSave, sysstaffinfo } from '@/api/flow/todo' |
|
|
|
import { getList, selectUrl, readXml, getFlowViewer, manualReminder, commentSave, sysstaffinfo } from '@/api/flow/todo' |
|
|
|
import { flowRecord } from '@/api/workflow/finished' |
|
|
|
import { loginDetails } from '@/api/user' |
|
|
|
import upload from '@/components/uploadFile/upload' |
|
|
@ -344,6 +345,15 @@ export default { |
|
|
|
this.url = '' |
|
|
|
this.centerDialogVisible = false |
|
|
|
}, |
|
|
|
handlePress(row) { |
|
|
|
manualReminder({ proDefId: row.procDefId, procInstId: row.procInsId }).then((resp) => { |
|
|
|
if (resp.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: ' 催办成功' }) |
|
|
|
} else { |
|
|
|
this.$message({ showClose: true, type: 'error', message: ' 操作失败' }) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleTerminate(row) { |
|
|
|
this.breakProcessVisible = true |
|
|
|
this.dialogList.comment = '' |
|
|
|