|
@@ -62,7 +62,8 @@ const formProps = reactive<VxeFormProps<FormModel>>({
|
|
|
const formEmits: VxeFormListeners<FormModel> = {
|
|
const formEmits: VxeFormListeners<FormModel> = {
|
|
|
submit({ data }) {
|
|
submit({ data }) {
|
|
|
const indeterminate = menusRef.value?.getCheckboxIndeterminateNodes()?.map(item => item.id) ?? [];
|
|
const indeterminate = menusRef.value?.getCheckboxIndeterminateNodes()?.map(item => item.id) ?? [];
|
|
|
- const values = new Set([...indeterminate, ...selected.value])
|
|
|
|
|
|
|
+ const checkbox = menusRef.value?.getCheckboxNodes()?.map(item => item.id) ?? selected.value;
|
|
|
|
|
+ const values = new Set([...indeterminate, ...checkbox])
|
|
|
submit({ roleSort: 0, status: '0', ...data, menuIds: [...values] });
|
|
submit({ roleSort: 0, status: '0', ...data, menuIds: [...values] });
|
|
|
},
|
|
},
|
|
|
reset() { formProps.data = { ...props.data }; },
|
|
reset() { formProps.data = { ...props.data }; },
|