私の連絡先情報
郵便メール:
2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
このプロジェクトはライセンスの問題のため、オープンソース化できません。さらなる技術サポートとサービスについては、私の Knowledge Planet に参加してください。
1. バックエンドの役割の変更
- else if(this.getAssigneeType() == AssigneeTypeEnum.ROLE) {
- ExtensionAttribute extDataTypeAttribute = new ExtensionAttribute();
- extDataTypeAttribute.setNamespace(ProcessConstants.NAMASPASE);
- extDataTypeAttribute.setName("dataType");
- extDataTypeAttribute.setValue("ROLES");
- userTask.addAttribute(extDataTypeAttribute);
- ExtensionAttribute extTextAttribute = new ExtensionAttribute();
- extTextAttribute.setNamespace(ProcessConstants.NAMASPASE);
- extTextAttribute.setName("text");
- extTextAttribute.setValue(String.join(",", this.getApprovalText()));
- userTask.addAttribute(extTextAttribute);
- List<String> roleslist = this.getRoles();
- userTask.setCandidateGroups(roleslist);
- userTask.setAssignee("${assignee}");
- }
2. キャラクターを選択し、代わりに jeecg コンポーネントを使用します。
- <div v-if="dataType === 'ROLES'" style="width: 100%;">
- <j-select-role v-model:value="roleIds" :multi="false" @getSelectResult="selRole" placeholder="请选择角色"></j-select-role>
- </div>
3. 適切な役割の治療法を選択する
- function selRole(option,deptList) {
- console.log("selRole option",option)
- console.log("selRole deptList",deptList)
- let groups = null;
- let text = null;
- if (option && option.length > 0) {
- userTaskForm.value.dataType = 'ROLES';
- groups = deptList.join(",") || null;
- text = option?.map(k => k.label).join(",") || null;
- } else {
- userTaskForm.value.dataType = '';
- multiLoopType.value = 'Null';
- }
- userTaskForm.value.candidateGroups = groups;
- userTaskForm.value.text = text;
- updateElementTask();
- changeMultiLoopType();
- }
4. 同時にapprovalNode情報も更新します
- else if (assigneeType === 'role') {
- console.log("assigneeType === 'role'")
- if (roles.length > 0) {
- const all = roles.map((id) => getRoleById({id: id}).then(res => {
- console.log("getRoleById res",res)
- if(res.code === 200) {
- return res.result.roleName;
- }
- })
- )
- Promise.all(all).then((roles) => {
- console.log("all roles",roles)
- content.value = roles.map((role) => role).join('、')
- })
- }
5.エフェクト描画