hzh 7 months ago
parent
commit
4bff43c20b
1 changed files with 20 additions and 0 deletions
  1. 20 0
      pages/workflowTask/approveCenter/ccList.vue

+ 20 - 0
pages/workflowTask/approveCenter/ccList.vue

@@ -18,6 +18,12 @@
 					<di-descriptions-item label="流程名称" :value="item.processDefinitionName" :ellipsis="true"/>
 					<di-descriptions-item label="节点名称" :value="item.name" :ellipsis="true"/>
 					<di-descriptions-item label="开始时间" :value="item.createTime" :ellipsis="true"/>
+					<u-row style="justify-content: flex-end;">
+					    <u-col :span="2">
+					      <u-button type="primary" plain size="mini"  @click="handleRead(item.id, 'read')">已读</u-button>
+					     </u-col>
+					   
+					</u-row>
 	<!-- 				<di-descriptions-item label="办结时间" :value="item.endTime" :ellipsis="true"/> -->
 				</di-descriptions>
 			</u-swipe-action>
@@ -63,6 +69,20 @@
 			  } */
 			  this.handle2ProcessTask(id, item.procInstId, item.category, item.procDefId, true)
 			},
+			async handleRead(taskId,taskOperate) {
+				let {code,msg} = await this.$dibootApi.put('/workflow/task/taskOperate', {
+				  taskId,
+				  taskOperate
+				})
+				if (code == 0) {
+					uni.showToast({
+					    title: msg,
+					    icon: 'none'
+					})
+					this.page.pageIndex = 1
+					this.getList(true)
+				}
+			},
 		}
 	}
 </script>