| | |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="procDefName" |
| | | prop="processName" |
| | | label="流程名称" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="startUserName" |
| | | prop="promoterName" |
| | | label="发起人" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="startDeptName" |
| | | prop="promoterUnitName" |
| | | label="发起单位" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="assigneeDeptName" |
| | | prop="handlerUnitName" |
| | | label="处理单位" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="assigneeName" |
| | | prop="handlerName" |
| | | label="实际处理人" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="taskStatus" |
| | | label="任务状态" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | label="操作" |
| | | width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="goToProcessDetail(scope.row)" type="text" size="small">查看</el-button> |
| | | <el-button @click="goToDo(scope.row)" type="text" size="small">办理</el-button> |
| | | <el-button v-if="scope.row.taskStatus !== '未开始'" @click="goToProcessDetail(scope.row)" type="text" size="small">查看</el-button> |
| | | <el-button v-if="scope.row.taskStatus === '待办'" @click="goToDo(scope.row)" type="text" size="small">办理</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div> |
| | | <el-pagination |
| | | v-if="total > pageSize" |
| | | :page-size="pageSize" |
| | | :current-page="pageNum" |
| | | v-if="total > queryParams.pageSize" |
| | | :page-size="queryParams.pageSize" |
| | | :current-page="queryParams.currentPage" |
| | | :total="total" |
| | | layout="total, prev, pager, next" |
| | | @current-change="getList" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {getProjectProcessDetail} from "@/api/projectProcess/projectProcess"; |
| | | import {getProjectProcessDetail, getProjectProcessDetailTaskList} from "@/api/projectProcess/projectProcess"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | projectId: null, |
| | | processId: null, |
| | | detailData: {}, |
| | | selectTabId: 2, |
| | | taskList: [], |
| | | total: 0, |
| | | pageSize: 5, |
| | | pageNum: 1, |
| | | selectTabId: 2, |
| | | queryParams: { |
| | | taskName: '' |
| | | taskName: '', |
| | | taskType: 'todo', |
| | | pageSize: 5, |
| | | currentPage: 1, |
| | | projectId: null, |
| | | processDefId: null, |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.projectId = this.$route.query.projectId |
| | | this.processId = this.$route.query.processId |
| | | this.queryParams.projectId = this.$route.query.projectId |
| | | this.queryParams.processDefId = this.$route.query.processDefId |
| | | this.getProjectProcessInfo() |
| | | }, |
| | | methods: { |
| | |
| | | this.$router.push({ |
| | | path: '/flowable/task/todo/detail/index', |
| | | query: { |
| | | taskName: row.procDefName, |
| | | startUser: row.startUserName, |
| | | taskName: row.taskName, |
| | | startUser: row.promoterName, |
| | | deployId: row.deployId, |
| | | taskId: row.taskId, |
| | | procInsId: row.procInsId, |
| | | procInsId: row.processInsId, |
| | | executionId: row.executionId |
| | | } |
| | | }) |
| | |
| | | path: '/flowable/task/myProcess/send/index', |
| | | query: { |
| | | deployId: row.deployId, |
| | | procDefId: row.procDefId, |
| | | procDefId: row.processDefId, |
| | | processName: row.taskName, |
| | | taskId: row.taskId |
| | | } |
| | |
| | | goToProcessDetail(row) { |
| | | this.$router.push({ path: '/flowable/task/myProcess/detail/index', |
| | | query: { |
| | | procInsId: row.procInsId, |
| | | procInsId: row.processInsId, |
| | | deployId: row.deployId, |
| | | taskId: row.taskId |
| | | }}) |
| | | }, |
| | | getList() { |
| | | // 获取任务列表 |
| | | getProjectProcessDetailTaskList(this.queryParams).then(res => { |
| | | this.taskList = res.data |
| | | this.total = res.total |
| | | }) |
| | | }, |
| | | // 查询详情 |
| | | getProjectProcessInfo() { |
| | | getProjectProcessDetail(this.projectId, this.processId).then(res => { |
| | | getProjectProcessDetail(this.queryParams.projectId, this.queryParams.processDefId).then(res => { |
| | | this.detailData = res.data |
| | | this.taskList = res.taskList |
| | | }) |
| | | }, |
| | | changeTab(id, event) { |
| | | let beforeId = this.selectTabId |
| | | this.selectTabId = id |
| | | this.queryParams.taskType = event |
| | | if (beforeId !== id) { |
| | | this.getList() |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |