sunlupeng 1 tahun lalu
induk
melakukan
c34e5fdb80
2 mengubah file dengan 9 tambahan dan 17 penghapusan
  1. 7 15
      src/views/bpm/task/todo/index.vue
  2. 2 2
      src/views/index.vue

+ 7 - 15
src/views/bpm/task/todo/index.vue

@@ -57,7 +57,7 @@
                 @pagination="getList"/>
 
      <el-dialog title="入职审批(修改)" :visible.sync="openEdit" width="800px" append-to-body>
-      <async-biz-form-component :id="id"></async-biz-form-component>
+      <async-biz-form-component :id="this.processInstance.businessKey"></async-biz-form-component>
     </el-dialog>
 
   </div>
@@ -73,6 +73,7 @@ export default {
   },
   data() {
     return {
+      processInstance:{},
     id: undefined, // 流程实例的编号
     //详情页面id
     businessKey:'',
@@ -120,19 +121,8 @@ export default {
     },
     /** 处理审批按钮 */
     handleAudit(row) {
-      //将业务表单,注册为动态组件
-      const path = '/oa/entry/detail';
-        console.log("path:" + path)
-        Vue.component("async-biz-form-component", function (resolve) {
-          require([`@/views${path}`], resolve);
-        });
-        this.openEdit = true;
-      // this.$router.push({ name: "BpmProcessInstanceDetail", query: { id: row.processInstance.id}});
-    },
-      /** 获得流程实例 */
-      getDetail() {
-      // 获得流程实例相关
-      getProcessInstance(this.id).then(response => {
+        // 获得流程实例相关
+      getProcessInstance(row.id).then(response => {
         if (!response.data) {
           this.$message.error('查询不到流程信息!');
           return;
@@ -142,12 +132,14 @@ export default {
 
         //将业务表单,注册为动态组件
         const path = this.processInstance.processDefinition.formCustomViewPath;
+        // const path = '/oa/entry/detail';
         console.log("path:" + path)
         Vue.component("async-biz-form-component", function (resolve) {
           require([`@/views${path}`], resolve);
         });
+        this.openEdit = true;
       });
-    },
+    }
   }
 };
 </script>

+ 2 - 2
src/views/index.vue

@@ -2,7 +2,7 @@
   <div>
     <div class="container">
 
-      <div v-if="tenantId==0" class="dashboard-no-corps">
+      <div v-if="tenantId==1" class="dashboard-no-corps">
         <div class="dashboard-no-corp-title">你当前没有任何企业</div>
         <div class="dashboard-no-corp-content" @click="joinOrCreateCorp('加入')">
           <div class="no-corp-pic">
@@ -174,7 +174,7 @@ import {getListByMenuId} from "@/api/home";
 import { mapGetters } from 'vuex'
 import {setTenantId} from "@/utils/auth";
 import { getUnreadNotifyMessageList } from "@/api/system/notify/message";
-import { createTenant, joinTenant,getOwnCreateTenants,getOwnJoinTenants } from "@/api/system/tenant";
+import { createTenant, joinTenant} from "@/api/system/tenant";
 import router from '@/router'
 import store from '@/store'
 import Homebar from '@/layout/components/Homebar'