From a3c868db4d017961be2d394eadb7d428045d5adc Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期四, 13 七月 2023 11:13:16 +0800
Subject: [PATCH] 业务类型页面增加生命周期的处理

---
 Source/UBCS-WEB/src/views/work/process/leave/handle.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/work/process/leave/handle.vue b/Source/UBCS-WEB/src/views/work/process/leave/handle.vue
index 665405d..3dcbcb4 100644
--- a/Source/UBCS-WEB/src/views/work/process/leave/handle.vue
+++ b/Source/UBCS-WEB/src/views/work/process/leave/handle.vue
@@ -5,7 +5,7 @@
         <el-card class="dialogwarp_tab_card">
           <el-tabs v-model="activeName" @tab-click="handleClick">
             <el-tab-pane label="涓氬姟鏁版嵁淇℃伅" name="first">
-
+              <businesswork ref="businesswork":ids="ids" :templateId="templateId" :taskId="taskId" :modelKey="modelKey" :codeClassifyOid="codeClassifyOid"></businesswork>
             </el-tab-pane>
             <el-tab-pane label="娴佺▼璺熻釜" name="second">
               <avue-crud :data="flowList" :option="option" ref="crud">
@@ -75,7 +75,11 @@
 export default {
   data() {
     return {
+      ids:[],
+      templateId:'',
       taskId: '',
+      modelKey:'',
+      codeClassifyOid:'',
       businessId: '',
       processInstanceId: '',
       src: '',
@@ -138,9 +142,14 @@
     async apiGetBtnTask(id) {
       const response = await getBtnTask({ processInstanceId: id })
       const res = response.data
+      this.ids=res.data.variables.ids;
+      this.templateId=res.data.variables.templateId;
+      this.modelKey=res.data.variables.modelKey;
+      this.codeClassifyOid=res.data.variables.codeClassifyOid;
+      this.taskId=res.data.variables.taskId;
       if (res.success) {
         console.log(res)
-        this.btnList = res.data.toTasks
+        this.btnList = res.data.toTasks;
       }
     },
     async apiExamineTask(param) {

--
Gitblit v1.9.3