File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed
src/views/bpm/processInstance Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change 35
35
<el-col v-if =" this.processInstance.processDefinition && this.processInstance.processDefinition.formType === 10"
36
36
:span =" 16" :offset =" 6" >
37
37
<div >
38
- <parser :key =" new Date().getTime()" :form-conf =" detailForm" @submit = " submitForm " />
38
+ <parser :key =" new Date().getTime()" :form-conf =" detailForm" />
39
39
</div >
40
40
</el-col >
41
41
<div v-if =" this.processInstance.processDefinition && this.processInstance.processDefinition.formType === 20" >
@@ -290,31 +290,6 @@ export default {
290
290
// 这里暂时无需加载流程图,因为跳出到另外个 Tab;
291
291
}
292
292
},
293
- /** 提交按钮 */
294
- submitForm (params ) {
295
- if (! params) {
296
- return ;
297
- }
298
- // 设置表单禁用
299
- const conf = params .conf ;
300
- conf .disabled = true ; // 表单禁用
301
- conf .formBtns = false ; // 按钮隐藏
302
-
303
- // 提交表单,创建流程
304
- const variables = params .values ;
305
- createProcessInstance ({
306
- processDefinitionId: this .selectProcessInstance .id ,
307
- variables: variables
308
- }).then (response => {
309
- this .$modal .msgSuccess (" 发起流程成功" );
310
- // 关闭当前窗口
311
- this .$tab .closeOpenPage ();
312
- this .$router .go (- 1 );
313
- }).catch (() => {
314
- conf .disabled = false ; // 表单开启
315
- conf .formBtns = true ; // 按钮展示
316
- })
317
- },
318
293
getDateStar (ms ) {
319
294
return getDate (ms);
320
295
},
You can’t perform that action at this time.
0 commit comments