2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Aufgrund des Lizenzproblems dieses Projekts kann es nicht als Open Source bereitgestellt werden. Für weitere technische Unterstützung und Dienste treten Sie bitte meinem Knowledge Planet bei.
1. Änderung der Back-End-Rolle
- 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. Wählen Sie den Charakter aus und verwenden Sie stattdessen Jeecg-Komponenten.
- <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. Wählen Sie eine gute Rollenbehandlung
- 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. Aktualisieren Sie gleichzeitig die ApprovalNode-Informationen
- 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. Effektzeichnung