| | |
| | | let params: API.SaveMenuCommand = { |
| | | userType: state.userType, |
| | | clientType: state.clientType, |
| | | enterpriseType: state.enterpriseType, |
| | | // enterpriseType: state.enterpriseType, |
| | | code: editForm.enCode, |
| | | name: editForm.name, |
| | | type: editForm.isMenu ? EnumMenuType.Menu : EnumMenuType.Page, |
| | |
| | | isDisabled: !editForm.enabledMark, |
| | | sort: editForm.sortCode, |
| | | }; |
| | | if (state.userType === EnumUserType.Enterprise) { |
| | | params.enterpriseType = state.enterpriseType; |
| | | } |
| | | if (editForm.showCacheSelect) { |
| | | params.isCache = editForm.isCache; |
| | | } |
| | |
| | | group.fields = columnModuleList.map((c) => ({ |
| | | code: c.enCode, |
| | | name: c.name, |
| | | width: c.width.toString(), |
| | | width: c.width ? c.width.toString() : '', |
| | | sort: c.sortCode, |
| | | id: c.id, |
| | | })); |
| | | } |
| | | return group; |
| | |
| | | fields: columnModuleList.map((c) => ({ |
| | | code: c.enCode, |
| | | name: c.name, |
| | | width: c.width.toString(), |
| | | width: c.width ? c.width.toString() : '', |
| | | sort: c.sortCode, |
| | | id: c.id, |
| | | })), |
| | | }; |
| | | groups.push(group); |