|
@@ -208,7 +208,21 @@ const submitForm = () => {
|
|
|
return ruleFormRef.value!.validate(() => {});
|
|
return ruleFormRef.value!.validate(() => {});
|
|
|
};
|
|
};
|
|
|
const getChildValue = () => {
|
|
const getChildValue = () => {
|
|
|
- return ruleForm;
|
|
|
|
|
|
|
+ return {
|
|
|
|
|
+ recipientType: ruleForm.recipientType,
|
|
|
|
|
+ userGroupList:
|
|
|
|
|
+ ruleForm.recipientType === 3
|
|
|
|
|
+ ? []
|
|
|
|
|
+ : ruleForm.recipientType === 1
|
|
|
|
|
+ ? []
|
|
|
|
|
+ : ruleForm.userGroupList.map((item) => item),
|
|
|
|
|
+ customUserList:
|
|
|
|
|
+ ruleForm.recipientType === 2
|
|
|
|
|
+ ? []
|
|
|
|
|
+ : ruleForm.recipientType === 1
|
|
|
|
|
+ ? []
|
|
|
|
|
+ : ruleForm.customUserList.map((item) => item.userId),
|
|
|
|
|
+ };
|
|
|
};
|
|
};
|
|
|
const toggleExpand = (group) => {
|
|
const toggleExpand = (group) => {
|
|
|
group.isExpand = !group.isExpand;
|
|
group.isExpand = !group.isExpand;
|