This commit is contained in:
@jyuhsin
2026-02-04 09:30:39 +08:00
parent 86b99646da
commit da5cce6286
3 changed files with 4 additions and 4 deletions
@@ -94,7 +94,7 @@ public class OpinionWriteController {
args.set(FlowConst.SUBMIT_TYPE, ProcessSubmitTypeEnum.APPLY.getCode());
args.set(FlowConst.FORM_DATA, opinionInfo);
ProcessInstance instance = flowEngine.startProcessInstanceByKey("JDHYJ", opinionInfo.getId(), SecurityUtil.getUserId(), args);
ProcessInstance instance = flowEngine.startProcessInstanceByKey("JDHYJ", opinionInfo.getId(), opinionInfo.getCreateUserId(), args);
// 自动完成第一个申请任务
List<ProcessTask> doingTaskList = flowEngine.processTaskService().getDoingTaskList(instance.getId(), null);
@@ -7,7 +7,7 @@ const BASIC_FORM = {
<el-col :span="12">
<el-form-item label="代表姓名" prop="createUserId">
<user-select
:disabled="school"
:disabled="school || !$auth.hasRoleOr(['SYSADMIN', 'SCHOOL_UNION_ADMIN'])"
ref="userSelectRef"
v-model="formData.createUserId"
style="width: 100%"
@@ -13,8 +13,8 @@ layout("/layouts/platform.html"){
<template slot="footer">
<el-button type="primary" @click="$refs.formRef?.onSave()">保存</el-button>
<el-button type="primary" @click="$refs.formRef?.onSubmit()" v-if="!$refs.formRef?.taskId">提交</el-button>
<el-button type="primary" @click="$refs.formRef?.onSubmitAgain()" v-else>提交</el-button>
<el-button type="primary" @click="$refs.formRef?.onSubmit()" v-if="!taskId">提交1</el-button>
<el-button type="primary" @click="$refs.formRef?.onSubmitAgain()" v-else>提交2</el-button>
</template>
</custom-card>
</div>