Skip to content

Commit fb6374e

Browse files
committed
完善工作流的注释
1 parent d1afe60 commit fb6374e

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

src/views/bpm/processInstance/detail.vue

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<el-col v-if="this.processInstance.processDefinition && this.processInstance.processDefinition.formType === 10"
3636
:span="16" :offset="6">
3737
<div >
38-
<parser :key="new Date().getTime()" :form-conf="detailForm" @submit="submitForm" />
38+
<parser :key="new Date().getTime()" :form-conf="detailForm" />
3939
</div>
4040
</el-col>
4141
<div v-if="this.processInstance.processDefinition && this.processInstance.processDefinition.formType === 20">
@@ -290,31 +290,6 @@ export default {
290290
// 这里暂时无需加载流程图,因为跳出到另外个 Tab;
291291
}
292292
},
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-
},
318293
getDateStar(ms) {
319294
return getDate(ms);
320295
},

0 commit comments

Comments
 (0)