首页待办中心接受任务后重新加载

This commit is contained in:
zyn
2023-04-04 19:08:50 +08:00
parent d8c9407f9f
commit 92d1115eb1
+25 -1
View File
@@ -1,6 +1,6 @@
<!-- 待办任务 --> <!-- 待办任务 -->
<template> <template>
<div class="to-do-list"> <div class="to-do-list" v-loading="Loading">
<div style="border-bottom: 2px solid #f4f4f4"> <div style="border-bottom: 2px solid #f4f4f4">
<span class="task"> <span class="task">
<i class="el-icon-s-goods"></i> 待办任务 <i class="el-icon-s-goods"></i> 待办任务
@@ -45,6 +45,7 @@ export default {
total: 0, total: 0,
pageNo: 1, pageNo: 1,
showreceive:true, showreceive:true,
Loading:false
} }
}, },
computed: {}, computed: {},
@@ -76,6 +77,7 @@ export default {
}, },
// 接受按钮 // 接受按钮
handleReceive(item) { handleReceive(item) {
this.Loading = true
this.isSubmit = true this.isSubmit = true
// execTask({ // execTask({
// todoId: this.todoId // 当前节点ID // todoId: this.todoId // 当前节点ID
@@ -109,9 +111,31 @@ export default {
this.showreceive = false this.showreceive = false
// this.$router.push('/processCenter') // this.$router.push('/processCenter')
// } // }
this.queryProcessPrmise().then(() => {
this.Loading = false
})
}) })
}) })
}, },
queryProcessPrmise () { // 查询待办流程
return new Promise((resolve,reject)=>{
this.$http.postData('lawss/activiti/todoTaskList', {
current: this.pageNo,
size: 10,
userId: this.$store.getters.userInfo.usid || this.$store.getters.userInfo.userId,
},
{
loading: 'loading',
_this: this
}, res => {
this.toDoTaskList = res.list
resolve()
}, e => {
reject()
})
})
},
dealWith (row) { // 办理 dealWith (row) { // 办理
const prcType = row.prcType const prcType = row.prcType
switch(prcType) { switch(prcType) {