feat: 候选角色组可选表达式
This commit is contained in:
@@ -39,7 +39,9 @@
|
||||
<!--候选角色-->
|
||||
<!-- <el-button slot="append" size="mini" icon="el-icon-user" @click="singleRoleCheck"></el-button>-->
|
||||
<!-- <el-divider direction="vertical"></el-divider>-->
|
||||
<el-button slot="append" size="mini" icon="el-icon-tickets" @click="multipleRoleCheck"></el-button>
|
||||
<el-button slot="append" size="mini" icon="el-icon-user" @click="multipleRoleCheck"></el-button>
|
||||
<!--选择表达式-->
|
||||
<el-button slot="append" size="mini" icon="el-icon-tickets" @click="singleExpCheck('candidateGroups')"></el-button>
|
||||
</el-input>
|
||||
</template>
|
||||
</x-form>
|
||||
@@ -628,6 +630,8 @@ export default {
|
||||
this.updateProperties({'flowable:assignee': selection.id.toString()});
|
||||
}else if ("candidateUsers" === this.expType) {
|
||||
this.updateProperties({'flowable:candidateUsers': selection.id.toString()});
|
||||
}else if ("candidateGroups" === this.expType) {
|
||||
this.updateProperties({'flowable:candidateGroups': selection.id.toString()});
|
||||
}
|
||||
this.checkValues = selection.name;
|
||||
this.expType = null;
|
||||
|
||||
@@ -443,18 +443,17 @@ export default {
|
||||
},
|
||||
/** 审批任务 */
|
||||
taskComplete() {
|
||||
const that = this
|
||||
if (!that.taskForm.values && that.checkSendUser){
|
||||
that.msgError("请选择流程接收人员");
|
||||
if (!this.taskForm.values && this.checkSendUser){
|
||||
this.msgError("请选择流程接收人员");
|
||||
return;
|
||||
}
|
||||
if (!that.taskForm.comment){
|
||||
that.msgError("请输入审批意见");
|
||||
if (!this.taskForm.comment){
|
||||
this.msgError("请输入审批意见");
|
||||
return;
|
||||
}
|
||||
complete(that.taskForm).then(response => {
|
||||
that.msgSuccess(response.msg);
|
||||
that.goBack();
|
||||
complete(this.taskForm).then(response => {
|
||||
this.msgSuccess(response.msg);
|
||||
this.goBack();
|
||||
});
|
||||
},
|
||||
/** 委派任务 */
|
||||
|
||||
Reference in New Issue
Block a user