Selaa lähdekoodia

修改发起任务时识别名称不识别id

余思翰 1 vuosi sitten
vanhempi
commit
f84e65f084

+ 3
- 1
oa-ui/src/views/flowable/task/myProcess/index.vue Näytä tiedosto

260
     },
260
     },
261
     /**  发起流程申请 */
261
     /**  发起流程申请 */
262
     handleStartProcess(row) {
262
     handleStartProcess(row) {
263
+      console.log(row);
263
       this.$router.push({
264
       this.$router.push({
264
         path: '/flowable/task/myProcess/send/index',
265
         path: '/flowable/task/myProcess/send/index',
265
         query: {
266
         query: {
266
           deployId: row.deploymentId,
267
           deployId: row.deploymentId,
267
-          procDefId: row.id
268
+          procDefId: row.id,
269
+          name: row.name
268
         }
270
         }
269
       })
271
       })
270
     },
272
     },

+ 7
- 5
oa-ui/src/views/flowable/task/myProcess/send/index.vue Näytä tiedosto

17
           </el-col>
17
           </el-col>
18
         </el-tab-pane> -->
18
         </el-tab-pane> -->
19
         <el-tab-pane label="表单信息" name="1">
19
         <el-tab-pane label="表单信息" name="1">
20
-          <sc-form @submit="submitForm" v-if="deployId == '7653'"></sc-form>
21
-          <jy-form @submit="submitForm" v-else-if="deployId == '10018'"></jy-form>
22
-          <zh-form @submit="submitForm" v-else-if="deployId == '10022'"></zh-form>
23
-          <js-form @submit="submitForm" v-else-if="deployId == '12501'"></js-form>
24
-          <xm-form @submit="submitForm" v-else-if="deployId == '12505'"></xm-form>
20
+          <sc-form @submit="submitForm" v-if="deployName == '生产部门考核'"></sc-form>
21
+          <jy-form @submit="submitForm" v-else-if="deployName == '经营发展部考核'"></jy-form>
22
+          <zh-form @submit="submitForm" v-else-if="deployName == '综合事务部考核'"></zh-form>
23
+          <js-form @submit="submitForm" v-else-if="deployName == '技术质量部考核'"></js-form>
24
+          <xm-form @submit="submitForm" v-else-if="deployName == '项目管理部考核'"></xm-form>
25
           <el-col :span="16" :offset="4" v-else>
25
           <el-col :span="16" :offset="4" v-else>
26
             <div class="test-form">
26
             <div class="test-form">
27
               <parser :key="new Date().getTime()" :form-conf="formConf" @submit="submitForm" ref="parser"
27
               <parser :key="new Date().getTime()" :form-conf="formConf" @submit="submitForm" ref="parser"
92
       // 遮罩层
92
       // 遮罩层
93
       loading: true,
93
       loading: true,
94
       deployId: "",  // 流程定义编号
94
       deployId: "",  // 流程定义编号
95
+      deployName:"",//流程定义名称
95
       procDefId: "",  // 流程实例编号
96
       procDefId: "",  // 流程实例编号
96
       formConf: {}, // 默认表单数据
97
       formConf: {}, // 默认表单数据
97
       variables: [], // 流程变量数据
98
       variables: [], // 流程变量数据
110
     this.deployId = this.$route.query && this.$route.query.deployId;
111
     this.deployId = this.$route.query && this.$route.query.deployId;
111
     // 初始化表单
112
     // 初始化表单
112
     this.procDefId = this.$route.query && this.$route.query.procDefId;
113
     this.procDefId = this.$route.query && this.$route.query.procDefId;
114
+    this.deployName = this.$route.query && this.$route.query.name;
113
     // this.getNextFlowNodeByStart(this.deployId);
115
     // this.getNextFlowNodeByStart(this.deployId);
114
     this.getFlowFormData(this.deployId);
116
     this.getFlowFormData(this.deployId);
115
   },
117
   },

Loading…
Peruuta
Tallenna