| | |
| | | // 设计器右侧表单数据回显 |
| | | checkValuesEcho(formData) { |
| | | if (formData.expId) { |
| | | console.log("456") |
| | | this.getExpList(formData.expId); |
| | | this.typeButDisable = true |
| | | this.expButDisable = false |
| | | } else { |
| | | this.typeButDisable = false |
| | | this.expSelect = null |
| | | if ("candidateGroups" === formData.userType || "candidateDeptGroups" === formData.userType) { |
| | | this.getRoleOrDeptReview(formData.candidateGroups) |
| | | } else { |
| | | this.getUserList(formData[formData.userType], formData.userType); |
| | | } |
| | | } |
| | | if ("candidateGroups" === formData.userType || "candidateDeptGroups" === formData.userType) { |
| | | this.getRoleOrDeptReview(formData.candidateGroups) |
| | | } else { |
| | | this.getUserList(formData[formData.userType], formData.userType); |
| | | } |
| | | }, |
| | | |
| | |
| | | this.typeButDisable = false |
| | | // 根据id筛选出是角色还是部门 |
| | | const roleAndDeptIds = ids.split(","); |
| | | const deptIds = roleAndDeptIds.filter(item => item.includes("dept")); |
| | | const roleIds = roleAndDeptIds.filter(item => !item.includes("dept")); |
| | | console.log("woc", roleAndDeptIds) |
| | | const deptIds = roleAndDeptIds.filter(item => item.includes("dept") || item === '${data_launch}'); |
| | | const roleIds = roleAndDeptIds.filter(item => !item.includes("dept") && item !== '${data_launch}'); |
| | | |
| | | if (roleIds && roleIds.length > 0) { // 角色 |
| | | const targetRoleList = this.modelerStore.roleList?.filter(i => roleIds.includes(i.roleId.toString())) |