@kengic/vue 0.30.1-beta.96 → 0.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +503 -0
- package/README.md +10 -0
- package/bin/bin.mjs +9 -24
- package/bin/postinstall.mjs +24 -4
- package/dist/aim-outlined.8d38a0f9.mjs +8 -0
- package/dist/align-left-outlined.579b01c6.mjs +8 -0
- package/dist/audit-outlined.4555f723.mjs +8 -0
- package/dist/bubble-loading.cd2fe007.mjs +8 -0
- package/dist/bulb-outlined.a5bf22d8.mjs +8 -0
- package/dist/card-text-outline.6e053122.mjs +8 -0
- package/dist/caret-down-outlined.c0564a3f.mjs +8 -0
- package/dist/caret-left-outlined.35b1d7d1.mjs +8 -0
- package/dist/caret-right-filled.dbbda237.mjs +8 -0
- package/dist/caret-right-outlined-Btgsw6a_.7ce8e8fe.mjs +8 -0
- package/dist/caret-right-outlined.12fe6699.mjs +8 -0
- package/dist/caret-up-outlined.81b559ad.mjs +8 -0
- package/dist/check-box-outline-blank.d01a2055.mjs +8 -0
- package/dist/check-circle-outlined.b219949f.mjs +8 -0
- package/dist/check-outlined.59c42074.mjs +8 -0
- package/dist/check-square-outlined.233589d8.mjs +8 -0
- package/dist/checkbox-indeterminate.e5386a53.mjs +8 -0
- package/dist/clock-circle-outline.b9d0b3dc.mjs +8 -0
- package/dist/close-circle-outlined.85f75690.mjs +8 -0
- package/dist/close-outlined-DMcSQWxQ.ce961fd1.mjs +8 -0
- package/dist/close-outlined.5757472a.mjs +8 -0
- package/dist/collapse-all-rounded.26ee73fc.mjs +8 -0
- package/dist/control-outlined.d66ac4d2.mjs +8 -0
- package/dist/copy-filled.a3dcd299.mjs +8 -0
- package/dist/copy-outlined.6a695d8a.mjs +8 -0
- package/dist/delete-outlined.20afb717.mjs +8 -0
- package/dist/delete-twotone.1d40696a.mjs +8 -0
- package/dist/double-right-outlined.f057a6b2.mjs +8 -0
- package/dist/down-circle-outlined.8ba93393.mjs +8 -0
- package/dist/download-outlined.e78b5364.mjs +8 -0
- package/dist/edit-outlined.0aae2217.mjs +8 -0
- package/dist/edit-twotone.67c952fa.mjs +8 -0
- package/dist/email-resend-outline.780506de.mjs +8 -0
- package/dist/exception-outlined.8c0003a2.mjs +8 -0
- package/dist/exclamation-circle-outlined-DZrXCnvM.07559897.mjs +8 -0
- package/dist/expand-all-rounded.e01e6cb9.mjs +8 -0
- package/dist/eye-invisible-outlined.5f8d6151.mjs +8 -0
- package/dist/eye-outlined.b25b4d28.mjs +8 -0
- package/dist/file-text-outline.2fbccab6.mjs +8 -0
- package/dist/fit-screen-outline.7341560f.mjs +8 -0
- package/dist/fullscreen-exit-outlined-X1iYkFc4.d7884311.mjs +8 -0
- package/dist/fullscreen-exit-outlined.b77fa876.mjs +8 -0
- package/dist/fullscreen-outlined-DDBrsRcy.d174b06a.mjs +8 -0
- package/dist/fullscreen-outlined.cd572ef8.mjs +8 -0
- package/dist/holder-outlined.9e698750.mjs +8 -0
- package/dist/index.css +1 -0
- package/dist/info-circle-outlined.7ddbd554.mjs +8 -0
- package/dist/kengic-vue.js +224279 -0
- package/dist/key-return-thin.ce6f074c.mjs +8 -0
- package/dist/loading-outlined.13a15197.mjs +8 -0
- package/dist/more-outlined.8e1202ac.mjs +8 -0
- package/dist/one-to-one-outlined.ac265beb.mjs +8 -0
- package/dist/palette-swatch-variant.f7258843.mjs +8 -0
- package/dist/partition-outlined.1bcf4f37.mjs +8 -0
- package/dist/pause-circle-outlined.cd534f5f.mjs +8 -0
- package/dist/pause-outlined.fca0d0f9.mjs +8 -0
- package/dist/pause-rounded.1ed7cc39.mjs +8 -0
- package/dist/play-arrow-rounded.90fc4173.mjs +8 -0
- package/dist/plus-outlined.bdaa6481.mjs +8 -0
- package/dist/printer-outlined.a8d0d92b.mjs +8 -0
- package/dist/profile-outlined.1059fb0d.mjs +8 -0
- package/dist/project/build/generate/generateModifyVars.ts +39 -0
- package/dist/project/index.ts +1 -0
- package/dist/project/types/global.d.ts +184 -0
- package/dist/release-gate-check.8c1ba629.mjs +8 -0
- package/dist/reload-outlined.d320578b.mjs +8 -0
- package/dist/retweet-outlined.bfa9b123.mjs +8 -0
- package/dist/save-as-outline-rounded.c65d61b2.mjs +8 -0
- package/dist/save-outline-rounded.c9c3f880.mjs +8 -0
- package/dist/search-outlined-Od1M_oxf.4a68e7e4.mjs +8 -0
- package/dist/search-outlined.ba5c5a3f.mjs +8 -0
- package/dist/setting-outlined.a3caf743.mjs +8 -0
- package/dist/src/api/WMS/Controllers/DescriptionController/List.d.ts +51 -0
- package/dist/src/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/DescriptionController/index.d.ts +2 -0
- package/dist/src/api/WMS/Controllers/SqlClientController/Execute.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/SqlClientController/ExecutePage.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/SqlClientController/index.d.ts +2 -0
- package/dist/src/api/WMS/Controllers/SysPermissionController/List.d.ts +73 -0
- package/dist/src/api/WMS/Controllers/SysPermissionController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/ListByFormId.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
- package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarController/GetAll.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/Create.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/index.d.ts +9 -0
- package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
- package/dist/src/api/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
- package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
- package/dist/src/api/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarVariableController/Delete.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarVariableController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/WarehouseController/ListVO.d.ts +25 -0
- package/dist/src/api/WMS/Controllers/WorkstationController/List.d.ts +25 -0
- package/dist/src/api/WMS/Controllers/WorkstationController/index.d.ts +1 -0
- package/dist/src/api/WMS/index.d.ts +2 -0
- package/dist/src/api/WMS/models.d.ts +1128 -0
- package/dist/src/api/api.d.ts +1 -0
- package/dist/src/api/def.d.ts +1 -0
- package/dist/src/api/index.d.ts +2 -0
- package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +46 -0
- package/dist/src/component/KgAppSelect/KgAppSelect.event.d.ts +31 -0
- package/dist/src/component/KgAppSelect/KgAppSelect.hooks.d.ts +18 -0
- package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +33 -0
- package/dist/src/component/KgAppSelect/index.d.ts +3 -0
- package/dist/src/component/KgButton/KgButton.Copy.d.ts +40 -0
- package/dist/src/component/KgButton/KgButton.Create.d.ts +40 -0
- package/dist/src/component/KgButton/KgButton.Delete.d.ts +40 -0
- package/dist/src/component/KgButton/KgButton.Export.d.ts +40 -0
- package/dist/src/component/KgButton/KgButton.Import.d.ts +40 -0
- package/dist/src/component/KgButton/KgButton.ImportTemplate.d.ts +40 -0
- package/dist/src/component/KgButton/KgButton.Item.d.ts +39 -0
- package/dist/src/component/KgButton/KgButton.Other.d.ts +40 -0
- package/dist/src/component/KgButton/KgButton.Search.d.ts +40 -0
- package/dist/src/component/KgButton/KgButton.Update.d.ts +40 -0
- package/dist/src/component/KgButton/KgButton.d.ts +39 -0
- package/dist/src/component/KgButton/KgButton.event.d.ts +81 -0
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +67 -0
- package/dist/src/component/KgButton/KgButton.model.d.ts +31 -0
- package/dist/src/component/KgButton/KgButton.store.d.ts +92 -0
- package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +100 -0
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Fullscreen.d.ts +37 -0
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +7 -0
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.OverviewScale.d.ts +37 -0
- package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +27 -0
- package/dist/src/component/KgCanvas/KgCanvas.d.ts +232 -0
- package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +216 -0
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +100 -0
- package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +27 -0
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +17 -0
- package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +9 -0
- package/dist/src/component/KgCanvas/index.d.ts +4 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.d.ts +63 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts +33 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.d.ts +29 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.d.ts +127 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts +354 -0
- package/dist/src/component/KgCircularShuttleMonitor/index.d.ts +3 -0
- package/dist/src/component/KgForm/KgForm.d.ts +413 -0
- package/dist/src/component/KgForm/KgForm.event.d.ts +202 -0
- package/dist/src/component/KgForm/KgForm.hooks.d.ts +92 -0
- package/dist/src/component/KgForm/KgForm.store.d.ts +23 -0
- package/dist/src/component/KgForm/index.d.ts +4 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.Modal.d.ts +16 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.d.ts +31 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Checkbox.d.ts +98 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.CheckboxGroup.d.ts +95 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Date.d.ts +95 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.DateRange.d.ts +95 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Image.d.ts +90 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Input.d.ts +94 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.InputNumber.d.ts +94 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.InputPassword.d.ts +94 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Link.d.ts +93 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.RadioGroup.d.ts +96 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Select.d.ts +95 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Select.service.d.ts +28 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.Switch.d.ts +94 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.TextArea.d.ts +94 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +95 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +111 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +17 -0
- package/dist/src/component/KgImage/KgImage.d.ts +100 -0
- package/dist/src/component/KgLayoutHeader/KgLayoutHeader.Locale.d.ts +38 -0
- package/dist/src/component/KgLayoutHeader/KgLayoutHeader.hooks.d.ts +4 -0
- package/dist/src/component/KgLayoutHeader/index.d.ts +2 -0
- package/dist/src/component/KgModal/KgModal.d.ts +817 -0
- package/dist/src/component/KgModal/KgModal.model.d.ts +8 -0
- package/dist/src/component/KgModal/KgModal.service.d.ts +37 -0
- package/dist/src/component/KgModal/KgModalHeaderButtons.d.ts +92 -0
- package/dist/src/component/KgModal02/KgModal02.d.ts +470 -0
- package/dist/src/component/KgModal02/KgModal02.model.d.ts +1 -0
- package/dist/src/component/KgProgressA/KgProgressA.d.ts +85 -0
- package/dist/src/component/KgResizable/KgResizable.d.ts +119 -0
- package/dist/src/component/KgResizable/KgResizable.service.d.ts +12 -0
- package/dist/src/component/KgSearch/KgSearch.d.ts +26 -0
- package/dist/src/component/KgSearch/KgSearch.event.d.ts +31 -0
- package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +72 -0
- package/dist/src/component/KgSearch/KgSearch.service.d.ts +32 -0
- package/dist/src/component/KgSearch/KgSearch.store.d.ts +103 -0
- package/dist/src/component/KgSearch/index.d.ts +3 -0
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +11 -0
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +11 -0
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +80 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +36 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +36 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.Prefab.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.Property.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.Scene.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +97 -0
- package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +108 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +113 -0
- package/dist/src/component/KgSimulator/KgSimulator.d.ts +33 -0
- package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +93 -0
- package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +103 -0
- package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +10 -0
- package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +1502 -0
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +474 -0
- package/dist/src/component/KgSimulator/KgSimulator.utils.d.ts +21 -0
- package/dist/src/component/KgSimulator/index.d.ts +3 -0
- package/dist/src/component/KgSubmit/KgSubmit.d.ts +21 -0
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +135 -0
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +358 -0
- package/dist/src/component/KgSubmit/KgSubmit.model.d.ts +57 -0
- package/dist/src/component/KgSubmit/KgSubmit.service.d.ts +29 -0
- package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +112 -0
- package/dist/src/component/KgSubmit/index.d.ts +4 -0
- package/dist/src/component/KgTable/KgTable.BodyCell.d.ts +60 -0
- package/dist/src/component/KgTable/KgTable.HeadCell.d.ts +51 -0
- package/dist/src/component/KgTable/KgTable.Info.d.ts +57 -0
- package/dist/src/component/KgTable/KgTable.Setting.VarGridMaster.SaveAs.d.ts +4 -0
- package/dist/src/component/KgTable/KgTable.Setting.d.ts +20 -0
- package/dist/src/component/KgTable/KgTable.Setting.service.d.ts +22 -0
- package/dist/src/component/KgTable/KgTable.d.ts +39 -0
- package/dist/src/component/KgTable/KgTable.event.d.ts +111 -0
- package/dist/src/component/KgTable/KgTable.hooks.d.ts +135 -0
- package/dist/src/component/KgTable/KgTable.model.d.ts +65 -0
- package/dist/src/component/KgTable/KgTable.service.d.ts +34 -0
- package/dist/src/component/KgTable/KgTable.store.d.ts +91 -0
- package/dist/src/component/KgTable/index.d.ts +4 -0
- package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +72 -0
- package/dist/src/component/KgTable02/KgTable02.d.ts +46 -0
- package/dist/src/component/KgTable02/KgTable02.event.d.ts +123 -0
- package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +62 -0
- package/dist/src/component/KgTable02/KgTable02.store.d.ts +62 -0
- package/dist/src/component/KgTable02/index.d.ts +4 -0
- package/dist/src/component/KgVar/KgVar.Factory.d.ts +106 -0
- package/dist/src/component/KgVar/KgVar.d.ts +120 -0
- package/dist/src/component/KgVar/KgVar.event.d.ts +75 -0
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +307 -0
- package/dist/src/component/KgVar/KgVar.model.d.ts +70 -0
- package/dist/src/component/KgVar/KgVar.store.d.ts +269 -0
- package/dist/src/component/KgVar/index.d.ts +5 -0
- package/dist/src/component/KgVarConfig/KgVarConfig.d.ts +3 -0
- package/dist/src/component/KgVarConfig/KgVarConfig.hooks.d.ts +3 -0
- package/dist/src/component/KgVarConfig/KgVarConfig.model.d.ts +42 -0
- package/dist/src/component/KgVarConfig/KgVarConfig.store.d.ts +16 -0
- package/dist/src/component/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +27 -0
- package/dist/src/component/KgVarConfig/components/KgVarConfigModal.d.ts +53 -0
- package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +17 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +23 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
- package/dist/src/component/KgVarConfig/index.d.ts +3 -0
- package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +50 -0
- package/dist/src/component/KgWarehouse/KgWarehouse.event.d.ts +30 -0
- package/dist/src/component/KgWarehouse/KgWarehouse.guard.d.ts +8 -0
- package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +41 -0
- package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +27 -0
- package/dist/src/component/KgWarehouse/index.d.ts +4 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.d.ts +44 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.event.d.ts +27 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.hooks.d.ts +28 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.store.d.ts +37 -0
- package/dist/src/component/KgYesOrNo/KgYesOrNo.d.ts +60 -0
- package/dist/src/component/index.d.ts +22 -0
- package/dist/src/config/config.hooks.d.ts +10 -0
- package/dist/src/config/config.store.d.ts +304 -0
- package/dist/src/config/index.d.ts +63 -0
- package/dist/src/i18n/cs_CZ.d.ts +2 -0
- package/dist/src/i18n/en.d.ts +237 -0
- package/dist/src/i18n/es_ES.d.ts +2 -0
- package/dist/src/i18n/fr_FR.d.ts +2 -0
- package/dist/src/i18n/i18n.setup.d.ts +20 -0
- package/dist/src/i18n/index.d.ts +2 -0
- package/dist/src/i18n/km_KH.d.ts +2 -0
- package/dist/src/i18n/ko_KR.d.ts +2 -0
- package/dist/src/i18n/vi_VN.d.ts +2 -0
- package/dist/src/i18n/zh_CN.d.ts +238 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/model/index.d.ts +1976 -0
- package/dist/src/page/KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.d.ts +11 -0
- package/dist/src/page/KgPageDda/KgPageDda.d.ts +10 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.d.ts +6 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Button.d.ts +6 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Menu.d.ts +6 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Search.d.ts +6 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Submit.d.ts +6 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Table.d.ts +6 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.d.ts +32 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +39 -0
- package/dist/src/page/KgPageDda/index.d.ts +5 -0
- package/dist/src/page/KgPageSqlClient/KgPageSqlClient.d.ts +12 -0
- package/dist/src/page/KgPageSqlClient/components/KgSqlClient.Editor.d.ts +13 -0
- package/dist/src/page/KgPageSqlClient/components/KgSqlClient.ResultTab.d.ts +36 -0
- package/dist/src/page/KgPageSqlClient/components/KgSqlClient.Toolbar.Top.d.ts +7 -0
- package/dist/src/page/KgPageSqlClient/components/KgSqlClient.d.ts +5 -0
- package/dist/src/page/index.d.ts +8 -0
- package/dist/src/project/build/getConfigFileName.d.ts +5 -0
- package/dist/src/project/build/index.d.ts +1 -0
- package/dist/src/project/index.d.ts +3 -0
- package/dist/src/project/src/api/sys/menu.d.ts +4 -0
- package/dist/src/project/src/api/sys/model/menuModel.d.ts +15 -0
- package/dist/src/project/src/api/sys/model/userModel.d.ts +46 -0
- package/dist/src/project/src/components/Application/src/useAppContext.d.ts +9 -0
- package/dist/src/project/src/components/index.d.ts +2 -0
- package/dist/src/project/src/enums/CompTypeEnum.d.ts +19 -0
- package/dist/src/project/src/enums/DateTypeEnum.d.ts +8 -0
- package/dist/src/project/src/enums/appEnum.d.ts +40 -0
- package/dist/src/project/src/enums/breakpointEnum.d.ts +18 -0
- package/dist/src/project/src/enums/cacheEnum.d.ts +18 -0
- package/dist/src/project/src/enums/exceptionEnum.d.ts +17 -0
- package/dist/src/project/src/enums/httpEnum.d.ts +38 -0
- package/dist/src/project/src/enums/jeecgEnum.d.ts +16 -0
- package/dist/src/project/src/enums/menuEnum.d.ts +35 -0
- package/dist/src/project/src/enums/pageEnum.d.ts +14 -0
- package/dist/src/project/src/enums/roleEnum.d.ts +4 -0
- package/dist/src/project/src/enums/sizeEnum.d.ts +18 -0
- package/dist/src/project/src/hooks/component/useFormItem.d.ts +2 -0
- package/dist/src/project/src/hooks/component/usePageContext.d.ts +10 -0
- package/dist/src/project/src/hooks/core/onMountedOrActivated.d.ts +1 -0
- package/dist/src/project/src/hooks/core/useAttrs.d.ts +9 -0
- package/dist/src/project/src/hooks/core/useContext.d.ts +11 -0
- package/dist/src/project/src/hooks/core/useRefs.d.ts +2 -0
- package/dist/src/project/src/hooks/core/useTimeout.d.ts +10 -0
- package/dist/src/project/src/hooks/event/useBreakpoint.d.ts +22 -0
- package/dist/src/project/src/hooks/event/useEventListener.d.ts +14 -0
- package/dist/src/project/src/hooks/event/useIntersectionObserver.d.ts +13 -0
- package/dist/src/project/src/hooks/event/useScrollTo.d.ts +10 -0
- package/dist/src/project/src/hooks/event/useWindowSizeFn.d.ts +7 -0
- package/dist/src/project/src/hooks/index.d.ts +21 -0
- package/dist/src/project/src/hooks/jeecg/useAdaptiveWidth.d.ts +18 -0
- package/dist/src/project/src/hooks/setting/index.d.ts +2 -0
- package/dist/src/project/src/hooks/web/useAppInject.d.ts +3 -0
- package/dist/src/project/src/hooks/web/useContentHeight.d.ts +24 -0
- package/dist/src/project/src/hooks/web/useCopyToClipboard.d.ts +10 -0
- package/dist/src/project/src/hooks/web/useDesign.d.ts +4 -0
- package/dist/src/project/src/hooks/web/usePage.d.ts +10 -0
- package/dist/src/project/src/hooks/web/usePagination.d.ts +7 -0
- package/dist/src/project/src/hooks/web/useWebSocket.d.ts +18 -0
- package/dist/src/project/src/layouts/default/content/useContentContext.d.ts +9 -0
- package/dist/src/project/src/layouts/default/content/useContentViewHeight.d.ts +7 -0
- package/dist/src/project/src/locales/helper.d.ts +4 -0
- package/dist/src/project/src/locales/setupI18n.d.ts +4 -0
- package/dist/src/project/src/locales/useLocale.d.ts +11 -0
- package/dist/src/project/src/router/constant2.d.ts +3 -0
- package/dist/src/project/src/router/types.d.ts +61 -0
- package/dist/src/project/src/settings/componentSetting.d.ts +44 -0
- package/dist/src/project/src/settings/designSetting.d.ts +6 -0
- package/dist/src/project/src/settings/encryptionSetting.d.ts +6 -0
- package/dist/src/project/src/settings/projectSetting.d.ts +3 -0
- package/dist/src/project/src/store/modules/locale.d.ts +38 -0
- package/dist/src/project/src/utils/auth/index.d.ts +19 -0
- package/dist/src/project/src/utils/bem.d.ts +15 -0
- package/dist/src/project/src/utils/cache/index.d.ts +7 -0
- package/dist/src/project/src/utils/cache/memory.d.ts +22 -0
- package/dist/src/project/src/utils/cache/persistent.d.ts +33 -0
- package/dist/src/project/src/utils/cache/storageCache.d.ts +8 -0
- package/dist/src/project/src/utils/cipher.d.ts +19 -0
- package/dist/src/project/src/utils/color.d.ts +29 -0
- package/dist/src/project/src/utils/common/compUtils.d.ts +87 -0
- package/dist/src/project/src/utils/common/functionUtils.d.ts +6 -0
- package/dist/src/project/src/utils/dateUtil.d.ts +4 -0
- package/dist/src/project/src/utils/domUtils.d.ts +28 -0
- package/dist/src/project/src/utils/encryption/signMd5Utils.d.ts +29 -0
- package/dist/src/project/src/utils/env.d.ts +16 -0
- package/dist/src/project/src/utils/event/index.d.ts +3 -0
- package/dist/src/project/src/utils/factory/createAsyncComponent.d.ts +9 -0
- package/dist/src/project/src/utils/file/base64Conver.d.ts +4 -0
- package/dist/src/project/src/utils/file/download.d.ts +9 -0
- package/dist/src/project/src/utils/helper/treeHelper.d.ts +34 -0
- package/dist/src/project/src/utils/helper/tsxHelper.d.ts +13 -0
- package/dist/src/project/src/utils/index.index.d.ts +42 -0
- package/dist/src/project/src/utils/is.d.ts +17 -0
- package/dist/src/project/src/utils/mitt.d.ts +26 -0
- package/dist/src/project/src/utils/propTypes.d.ts +9 -0
- package/dist/src/project/src/utils/props.d.ts +68 -0
- package/dist/src/project/src/utils/uuid.d.ts +2 -0
- package/dist/src/project/types/axios.d.ts +35 -0
- package/dist/src/project/types/config.d.ts +108 -0
- package/dist/src/project/types/store.d.ts +43 -0
- package/dist/src/project/types/utils.d.ts +4 -0
- package/dist/src/service/http-client.d.ts +98 -0
- package/dist/src/util/ant-design-vue.d.ts +347 -0
- package/dist/src/util/event.util.d.ts +15 -0
- package/dist/src/util/kg-auth.util.d.ts +12 -0
- package/dist/src/util/kg-route.util.d.ts +18 -0
- package/dist/src/util/kg.util.d.ts +347 -0
- package/dist/src/util/tsx.helper.d.ts +23 -0
- package/dist/stop-outlined.9f2c4f61.mjs +8 -0
- package/dist/stop.ea3dde55.mjs +8 -0
- package/dist/three-dots-loading-bIlrTJYR.ebceb73e.mjs +8 -0
- package/dist/upload-outlined.c576b26a.mjs +8 -0
- package/package.json +68 -10
- package/api/WMS/Controllers/DescriptionController/List.ts +0 -84
- package/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.ts +0 -21
- package/api/WMS/Controllers/DescriptionController/index.ts +0 -2
- package/api/WMS/Controllers/SqlClientController/Execute.ts +0 -21
- package/api/WMS/Controllers/SqlClientController/ExecutePage.ts +0 -21
- package/api/WMS/Controllers/SqlClientController/index.ts +0 -2
- package/api/WMS/Controllers/SysPermissionController/List.ts +0 -117
- package/api/WMS/Controllers/SysPermissionController/index.ts +0 -1
- package/api/WMS/Controllers/VarConfigDescriptionController/Add.ts +0 -21
- package/api/WMS/Controllers/VarConfigDescriptionController/ListByFormId.ts +0 -21
- package/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.ts +0 -36
- package/api/WMS/Controllers/VarConfigPossibilityController/index.ts +0 -1
- package/api/WMS/Controllers/VarController/GetAll.ts +0 -21
- package/api/WMS/Controllers/VarController/index.ts +0 -1
- package/api/WMS/Controllers/VarDdaController/Create.ts +0 -21
- package/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.ts +0 -21
- package/api/WMS/Controllers/VarDdaController/ValidateCopySql.ts +0 -21
- package/api/WMS/Controllers/VarDdaController/ValidateCreateSql.ts +0 -21
- package/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.ts +0 -21
- package/api/WMS/Controllers/VarDdaController/ValidateFrmId.ts +0 -21
- package/api/WMS/Controllers/VarDdaController/ValidateSearchSql.ts +0 -21
- package/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.ts +0 -21
- package/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.ts +0 -21
- package/api/WMS/Controllers/VarDdaController/index.ts +0 -9
- package/api/WMS/Controllers/VarGridMasterController/QueryByID.ts +0 -36
- package/api/WMS/Controllers/VarGridMasterController/Update.ts +0 -21
- package/api/WMS/Controllers/VarGridMasterController/index.ts +0 -2
- package/api/WMS/Controllers/VarProfileMasterController/QueryByID.ts +0 -36
- package/api/WMS/Controllers/VarProfileMasterController/index.ts +0 -1
- package/api/WMS/Controllers/VarVariableController/Delete.ts +0 -21
- package/api/WMS/Controllers/VarVariableController/index.ts +0 -1
- package/api/WMS/Controllers/WarehouseController/ListVO.ts +0 -45
- package/api/WMS/Controllers/WorkstationController/List.ts +0 -45
- package/api/WMS/Controllers/WorkstationController/index.ts +0 -1
- package/api/WMS/index.ts +0 -2
- package/api/WMS/models.ts +0 -2113
- package/api/api.ts +0 -1
- package/api/def.ts +0 -1
- package/api/index.ts +0 -2
- package/asset/ant.less +0 -678
- package/asset/element-plus.css +0 -112
- package/asset/flag/cs_CZ.png +0 -0
- package/asset/flag/en.png +0 -0
- package/asset/flag/es_ES.png +0 -0
- package/asset/flag/fr_FR.png +0 -0
- package/asset/flag/km_KH.png +0 -0
- package/asset/flag/ko_KR.png +0 -0
- package/asset/flag/vi_VN.png +0 -0
- package/asset/flag/zh_CN.png +0 -0
- package/asset/images/warehouse.000000.svg +0 -9
- package/asset/images/warehouse.1890ff.svg +0 -9
- package/asset/index.less +0 -347
- package/asset/jeecg.less +0 -382
- package/asset/var.less +0 -3
- package/asset/vxe.less +0 -51
- package/component/KgAppSelect/KgAppSelect.event.ts +0 -52
- package/component/KgAppSelect/KgAppSelect.hooks.ts +0 -50
- package/component/KgAppSelect/KgAppSelect.less +0 -30
- package/component/KgAppSelect/KgAppSelect.store.ts +0 -162
- package/component/KgAppSelect/KgAppSelect.tsx +0 -60
- package/component/KgAppSelect/index.ts +0 -4
- package/component/KgButton/KgButton.Copy.tsx +0 -143
- package/component/KgButton/KgButton.Create.tsx +0 -208
- package/component/KgButton/KgButton.Delete.tsx +0 -156
- package/component/KgButton/KgButton.Export.tsx +0 -294
- package/component/KgButton/KgButton.Import.tsx +0 -247
- package/component/KgButton/KgButton.ImportTemplate.tsx +0 -214
- package/component/KgButton/KgButton.Item.tsx +0 -128
- package/component/KgButton/KgButton.Other.tsx +0 -292
- package/component/KgButton/KgButton.Search.tsx +0 -146
- package/component/KgButton/KgButton.Update.tsx +0 -210
- package/component/KgButton/KgButton.event.ts +0 -157
- package/component/KgButton/KgButton.hooks.ts +0 -117
- package/component/KgButton/KgButton.less +0 -187
- package/component/KgButton/KgButton.model.tsx +0 -39
- package/component/KgButton/KgButton.store.ts +0 -333
- package/component/KgButton/KgButton.tsx +0 -221
- package/component/KgCanvas/KgCanvas.ContextMenu.tsx +0 -181
- package/component/KgCanvas/KgCanvas.ToolbarButton.Fullscreen.tsx +0 -80
- package/component/KgCanvas/KgCanvas.ToolbarButton.Mode.tsx +0 -68
- package/component/KgCanvas/KgCanvas.ToolbarButton.OverviewScale.tsx +0 -66
- package/component/KgCanvas/KgCanvas.Tooltip.tsx +0 -118
- package/component/KgCanvas/KgCanvas.css +0 -128
- package/component/KgCanvas/KgCanvas.event.ts +0 -380
- package/component/KgCanvas/KgCanvas.hooks.ts +0 -181
- package/component/KgCanvas/KgCanvas.model.ts +0 -31
- package/component/KgCanvas/KgCanvas.service.tsx +0 -116
- package/component/KgCanvas/KgCanvas.store.ts +0 -68
- package/component/KgCanvas/KgCanvas.tsx +0 -632
- package/component/KgCanvas/index.ts +0 -5
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.tsx +0 -107
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.tsx +0 -3053
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.tsx +0 -606
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.tsx +0 -71
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.tsx +0 -50
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.tsx +0 -169
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.tsx +0 -30
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.tsx +0 -672
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.css +0 -510
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.ts +0 -78
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.ts +0 -161
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.tsx +0 -744
- package/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.tsx +0 -171
- package/component/KgCircularShuttleMonitor/index.ts +0 -4
- package/component/KgForm/KgForm.event.ts +0 -328
- package/component/KgForm/KgForm.hooks.ts +0 -158
- package/component/KgForm/KgForm.less +0 -0
- package/component/KgForm/KgForm.store.ts +0 -36
- package/component/KgForm/KgForm.tsx +0 -61
- package/component/KgForm/index.ts +0 -10
- package/component/KgForm.Item/KgForm.Item.Addon.DynamicQueryOperator.tsx +0 -88
- package/component/KgForm.Item/KgForm.Item.Addon.Lookup.Modal.tsx +0 -191
- package/component/KgForm.Item/KgForm.Item.Addon.Lookup.tsx +0 -76
- package/component/KgForm.Item/KgForm.Item.Checkbox.tsx +0 -61
- package/component/KgForm.Item/KgForm.Item.CheckboxGroup.tsx +0 -176
- package/component/KgForm.Item/KgForm.Item.Date.tsx +0 -88
- package/component/KgForm.Item/KgForm.Item.DateRange.tsx +0 -110
- package/component/KgForm.Item/KgForm.Item.Image.tsx +0 -35
- package/component/KgForm.Item/KgForm.Item.Input.tsx +0 -72
- package/component/KgForm.Item/KgForm.Item.InputNumber.tsx +0 -68
- package/component/KgForm.Item/KgForm.Item.InputPassword.tsx +0 -72
- package/component/KgForm.Item/KgForm.Item.Link.tsx +0 -37
- package/component/KgForm.Item/KgForm.Item.RadioGroup.tsx +0 -91
- package/component/KgForm.Item/KgForm.Item.Select.service.tsx +0 -317
- package/component/KgForm.Item/KgForm.Item.Select.tsx +0 -236
- package/component/KgForm.Item/KgForm.Item.Switch.tsx +0 -49
- package/component/KgForm.Item/KgForm.Item.TextArea.tsx +0 -99
- package/component/KgForm.Item/KgForm.Item.less +0 -476
- package/component/KgForm.Item/KgForm.Item.model.ts +0 -129
- package/component/KgForm.Item/KgForm.Item.service.tsx +0 -479
- package/component/KgForm.Item/KgForm.Item.tsx +0 -642
- package/component/KgImage/KgImage.less +0 -12
- package/component/KgImage/KgImage.tsx +0 -73
- package/component/KgLayoutHeader/KgLayoutHeader.Locale.tsx +0 -118
- package/component/KgLayoutHeader/KgLayoutHeader.hooks.ts +0 -31
- package/component/KgLayoutHeader/KgLayoutHeader.less +0 -14
- package/component/KgLayoutHeader/index.ts +0 -3
- package/component/KgModal/KgModal.css +0 -234
- package/component/KgModal/KgModal.model.ts +0 -9
- package/component/KgModal/KgModal.service.ts +0 -560
- package/component/KgModal/KgModal.tsx +0 -207
- package/component/KgModal/KgModalHeaderButtons.tsx +0 -130
- package/component/KgModal02/KgModal02.css +0 -11
- package/component/KgModal02/KgModal02.model.ts +0 -1
- package/component/KgModal02/KgModal02.tsx +0 -93
- package/component/KgProgressA/KgProgressA.less +0 -35
- package/component/KgProgressA/KgProgressA.tsx +0 -90
- package/component/KgResizable/KgResizable.less +0 -114
- package/component/KgResizable/KgResizable.service.tsx +0 -41
- package/component/KgResizable/KgResizable.tsx +0 -239
- package/component/KgSearch/KgSearch.event.ts +0 -78
- package/component/KgSearch/KgSearch.hooks.ts +0 -160
- package/component/KgSearch/KgSearch.less +0 -251
- package/component/KgSearch/KgSearch.service.tsx +0 -236
- package/component/KgSearch/KgSearch.store.ts +0 -609
- package/component/KgSearch/KgSearch.tsx +0 -506
- package/component/KgSearch/index.ts +0 -4
- package/component/KgSimulator/KgSimulator.Canvas.Title.tsx +0 -71
- package/component/KgSimulator/KgSimulator.Canvas.service.tsx +0 -3403
- package/component/KgSimulator/KgSimulator.Canvas.tsx +0 -1105
- package/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.tsx +0 -258
- package/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.tsx +0 -214
- package/component/KgSimulator/KgSimulator.Menu.tsx +0 -446
- package/component/KgSimulator/KgSimulator.Panel.Prefab.tsx +0 -87
- package/component/KgSimulator/KgSimulator.Panel.Property.tsx +0 -1120
- package/component/KgSimulator/KgSimulator.Panel.Scene.tsx +0 -819
- package/component/KgSimulator/KgSimulator.Panel.tsx +0 -149
- package/component/KgSimulator/KgSimulator.Prefab.tsx +0 -142
- package/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.tsx +0 -44
- package/component/KgSimulator/KgSimulator.ToolbarButton.Property.tsx +0 -40
- package/component/KgSimulator/KgSimulator.ToolbarButton.Scene.tsx +0 -40
- package/component/KgSimulator/KgSimulator.ToolbarButton.tsx +0 -130
- package/component/KgSimulator/KgSimulator.css +0 -610
- package/component/KgSimulator/KgSimulator.event.ts +0 -197
- package/component/KgSimulator/KgSimulator.hooks.ts +0 -237
- package/component/KgSimulator/KgSimulator.icons.tsx +0 -148
- package/component/KgSimulator/KgSimulator.model.ts +0 -2629
- package/component/KgSimulator/KgSimulator.store.tsx +0 -1192
- package/component/KgSimulator/KgSimulator.tsx +0 -235
- package/component/KgSimulator/KgSimulator.utils.ts +0 -30
- package/component/KgSimulator/index.ts +0 -4
- package/component/KgSubmit/KgSubmit.event.ts +0 -272
- package/component/KgSubmit/KgSubmit.hooks.ts +0 -662
- package/component/KgSubmit/KgSubmit.less +0 -174
- package/component/KgSubmit/KgSubmit.model.ts +0 -82
- package/component/KgSubmit/KgSubmit.service.tsx +0 -368
- package/component/KgSubmit/KgSubmit.store.ts +0 -568
- package/component/KgSubmit/KgSubmit.tsx +0 -1132
- package/component/KgSubmit/index.ts +0 -5
- package/component/KgTable/KgTable.BodyCell.tsx +0 -475
- package/component/KgTable/KgTable.HeadCell.tsx +0 -333
- package/component/KgTable/KgTable.Info.tsx +0 -133
- package/component/KgTable/KgTable.Setting.VarGridMaster.SaveAs.tsx +0 -63
- package/component/KgTable/KgTable.Setting.service.tsx +0 -285
- package/component/KgTable/KgTable.Setting.tsx +0 -377
- package/component/KgTable/KgTable.event.ts +0 -206
- package/component/KgTable/KgTable.hooks.ts +0 -235
- package/component/KgTable/KgTable.less +0 -912
- package/component/KgTable/KgTable.model.ts +0 -73
- package/component/KgTable/KgTable.service.tsx +0 -781
- package/component/KgTable/KgTable.store.ts +0 -390
- package/component/KgTable/KgTable.tsx +0 -1105
- package/component/KgTable/index.ts +0 -5
- package/component/KgTable02/KgTable02.BodyCell.tsx +0 -407
- package/component/KgTable02/KgTable02.css +0 -199
- package/component/KgTable02/KgTable02.event.ts +0 -224
- package/component/KgTable02/KgTable02.hooks.ts +0 -111
- package/component/KgTable02/KgTable02.store.ts +0 -186
- package/component/KgTable02/KgTable02.tsx +0 -865
- package/component/KgTable02/index.ts +0 -5
- package/component/KgVar/KgVar.Factory.tsx +0 -146
- package/component/KgVar/KgVar.css +0 -125
- package/component/KgVar/KgVar.event.ts +0 -122
- package/component/KgVar/KgVar.hooks.ts +0 -543
- package/component/KgVar/KgVar.model.ts +0 -86
- package/component/KgVar/KgVar.store.ts +0 -2966
- package/component/KgVar/KgVar.tsx +0 -276
- package/component/KgVar/index.ts +0 -6
- package/component/KgVarConfig/KgVarConfig.hooks.ts +0 -19
- package/component/KgVarConfig/KgVarConfig.less +0 -499
- package/component/KgVarConfig/KgVarConfig.model.ts +0 -56
- package/component/KgVarConfig/KgVarConfig.store.ts +0 -29
- package/component/KgVarConfig/KgVarConfig.tsx +0 -139
- package/component/KgVarConfig/components/KgVarConfig.SelectFormIdModal.tsx +0 -138
- package/component/KgVarConfig/components/KgVarConfigModal.tsx +0 -228
- package/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.tsx +0 -647
- package/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.tsx +0 -64
- package/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.tsx +0 -44
- package/component/KgVarConfig/components/child/KgVarConfig.Modal.Child.tsx +0 -265
- package/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.tsx +0 -64
- package/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.tsx +0 -408
- package/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.tsx +0 -399
- package/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.tsx +0 -44
- package/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.tsx +0 -336
- package/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.tsx +0 -165
- package/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.tsx +0 -44
- package/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.tsx +0 -209
- package/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.tsx +0 -567
- package/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.tsx +0 -398
- package/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.tsx +0 -44
- package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.tsx +0 -162
- package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.tsx +0 -119
- package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.tsx +0 -322
- package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.tsx +0 -222
- package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.tsx +0 -194
- package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.tsx +0 -134
- package/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.tsx +0 -129
- package/component/KgVarConfig/index.ts +0 -6
- package/component/KgWarehouse/KgWarehouse.event.ts +0 -63
- package/component/KgWarehouse/KgWarehouse.guard.ts +0 -77
- package/component/KgWarehouse/KgWarehouse.hooks.ts +0 -92
- package/component/KgWarehouse/KgWarehouse.less +0 -78
- package/component/KgWarehouse/KgWarehouse.store.ts +0 -135
- package/component/KgWarehouse/KgWarehouse.tsx +0 -321
- package/component/KgWarehouse/index.ts +0 -5
- package/component/KgWorkStation/KgWorkStation.css +0 -8
- package/component/KgWorkStation/KgWorkStation.event.ts +0 -54
- package/component/KgWorkStation/KgWorkStation.hooks.ts +0 -59
- package/component/KgWorkStation/KgWorkStation.store.ts +0 -144
- package/component/KgWorkStation/KgWorkStation.tsx +0 -254
- package/component/KgYesOrNo/KgYesOrNo.less +0 -3
- package/component/KgYesOrNo/KgYesOrNo.tsx +0 -50
- package/component/index.ts +0 -23
- package/config/config.hooks.ts +0 -32
- package/config/config.store.ts +0 -705
- package/config/index.ts +0 -347
- package/i18n/cs_CZ.ts +0 -1
- package/i18n/en.ts +0 -236
- package/i18n/es_ES.ts +0 -1
- package/i18n/fr_FR.ts +0 -1
- package/i18n/i18n.setup.ts +0 -61
- package/i18n/index.ts +0 -23
- package/i18n/km_KH.ts +0 -1
- package/i18n/ko_KR.ts +0 -1
- package/i18n/vi_VN.ts +0 -1
- package/i18n/zh_CN.ts +0 -237
- package/index.ts +0 -15
- package/model/index.ts +0 -1695
- package/page/KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.tsx +0 -13
- package/page/KgPageDda/KgPageDda.css +0 -0
- package/page/KgPageDda/KgPageDda.tsx +0 -140
- package/page/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.tsx +0 -65
- package/page/KgPageDda/components/KgPageDda.Create.Basic.tsx +0 -219
- package/page/KgPageDda/components/KgPageDda.Create.Button.tsx +0 -427
- package/page/KgPageDda/components/KgPageDda.Create.Menu.tsx +0 -148
- package/page/KgPageDda/components/KgPageDda.Create.Search.tsx +0 -371
- package/page/KgPageDda/components/KgPageDda.Create.Submit.tsx +0 -362
- package/page/KgPageDda/components/KgPageDda.Create.Table.tsx +0 -372
- package/page/KgPageDda/components/KgPageDda.Create.less +0 -362
- package/page/KgPageDda/components/KgPageDda.Create.store.ts +0 -437
- package/page/KgPageDda/components/KgPageDda.Create.tsx +0 -330
- package/page/KgPageDda/index.ts +0 -4
- package/page/KgPageSqlClient/KgPageSqlClient.tsx +0 -14
- package/page/KgPageSqlClient/components/KgSqlClient.Editor.tsx +0 -84
- package/page/KgPageSqlClient/components/KgSqlClient.ResultTab.tsx +0 -145
- package/page/KgPageSqlClient/components/KgSqlClient.Toolbar.Top.tsx +0 -132
- package/page/KgPageSqlClient/components/KgSqlClient.css +0 -171
- package/page/KgPageSqlClient/components/KgSqlClient.tsx +0 -110
- package/page/index.ts +0 -55
- package/project/build/generate/generateModifyVars.ts +0 -40
- package/project/index.ts +0 -2
- package/project/src/api/sys/menu.ts +0 -37
- package/project/src/api/sys/model/menuModel.ts +0 -17
- package/project/src/api/sys/model/userModel.ts +0 -58
- package/project/src/components/Application/src/useAppContext.ts +0 -17
- package/project/src/components/index.ts +0 -3
- package/project/src/enums/CompTypeEnum.ts +0 -32
- package/project/src/enums/DateTypeEnum.ts +0 -8
- package/project/src/enums/appEnum.ts +0 -58
- package/project/src/enums/breakpointEnum.ts +0 -28
- package/project/src/enums/cacheEnum.ts +0 -39
- package/project/src/enums/exceptionEnum.ts +0 -27
- package/project/src/enums/httpEnum.ts +0 -50
- package/project/src/enums/jeecgEnum.ts +0 -23
- package/project/src/enums/menuEnum.ts +0 -50
- package/project/src/enums/pageEnum.ts +0 -19
- package/project/src/enums/roleEnum.ts +0 -7
- package/project/src/enums/sizeEnum.ts +0 -27
- package/project/src/hooks/component/useFormItem.ts +0 -44
- package/project/src/hooks/component/usePageContext.ts +0 -18
- package/project/src/hooks/core/onMountedOrActivated.ts +0 -18
- package/project/src/hooks/core/useAttrs.ts +0 -41
- package/project/src/hooks/core/useContext.ts +0 -30
- package/project/src/hooks/core/useRefs.ts +0 -16
- package/project/src/hooks/core/useTimeout.ts +0 -45
- package/project/src/hooks/event/useBreakpoint.ts +0 -89
- package/project/src/hooks/event/useEventListener.ts +0 -52
- package/project/src/hooks/event/useIntersectionObserver.ts +0 -42
- package/project/src/hooks/event/useScrollTo.ts +0 -59
- package/project/src/hooks/event/useWindowSizeFn.ts +0 -36
- package/project/src/hooks/index.ts +0 -26
- package/project/src/hooks/jeecg/useAdaptiveWidth.ts +0 -82
- package/project/src/hooks/setting/index.ts +0 -27
- package/project/src/hooks/web/useAppInject.ts +0 -10
- package/project/src/hooks/web/useContentHeight.ts +0 -175
- package/project/src/hooks/web/useCopyToClipboard.ts +0 -70
- package/project/src/hooks/web/useDesign.ts +0 -10
- package/project/src/hooks/web/usePage.ts +0 -87
- package/project/src/hooks/web/usePagination.ts +0 -31
- package/project/src/hooks/web/useWebSocket.ts +0 -95
- package/project/src/layouts/default/content/useContentContext.ts +0 -17
- package/project/src/layouts/default/content/useContentViewHeight.ts +0 -42
- package/project/src/locales/helper.ts +0 -36
- package/project/src/locales/setupI18n.ts +0 -43
- package/project/src/locales/useLocale.ts +0 -77
- package/project/src/router/constant2.ts +0 -5
- package/project/src/router/types.ts +0 -73
- package/project/src/settings/componentSetting.ts +0 -88
- package/project/src/settings/designSetting.ts +0 -14
- package/project/src/settings/encryptionSetting.ts +0 -11
- package/project/src/settings/projectSetting.ts +0 -194
- package/project/src/store/modules/locale.ts +0 -49
- package/project/src/utils/auth/index.ts +0 -42
- package/project/src/utils/bem.ts +0 -45
- package/project/src/utils/cache/index.ts +0 -31
- package/project/src/utils/cache/memory.ts +0 -99
- package/project/src/utils/cache/persistent.ts +0 -132
- package/project/src/utils/cache/storageCache.ts +0 -102
- package/project/src/utils/cipher.ts +0 -54
- package/project/src/utils/color.ts +0 -93
- package/project/src/utils/common/compUtils.ts +0 -292
- package/project/src/utils/common/functionUtils.ts +0 -14
- package/project/src/utils/dateUtil.ts +0 -14
- package/project/src/utils/domUtils.ts +0 -158
- package/project/src/utils/encryption/signMd5Utils.ts +0 -122
- package/project/src/utils/env.ts +0 -40
- package/project/src/utils/event/index.ts +0 -39
- package/project/src/utils/factory/createAsyncComponent.tsx +0 -50
- package/project/src/utils/file/base64Conver.ts +0 -15
- package/project/src/utils/file/download.ts +0 -37
- package/project/src/utils/helper/treeHelper.ts +0 -145
- package/project/src/utils/helper/tsxHelper.ts +0 -35
- package/project/src/utils/index.index.ts +0 -158
- package/project/src/utils/is.ts +0 -85
- package/project/src/utils/mitt.ts +0 -101
- package/project/src/utils/propTypes.ts +0 -34
- package/project/src/utils/props.ts +0 -139
- package/project/src/utils/uuid.ts +0 -29
- package/project/types/axios.ts +0 -57
- package/project/types/config.ts +0 -180
- package/project/types/global.d.ts +0 -191
- package/project/types/store.ts +0 -60
- package/project/types/utils.ts +0 -5
- package/service/http-client.ts +0 -257
- package/tsconfig.json +0 -26
- package/type/env.d.ts +0 -7
- package/type/index.d.ts +0 -1
- package/util/ant-design-vue.ts +0 -146
- package/util/event.util.ts +0 -24
- package/util/kg-auth.util.ts +0 -16
- package/util/kg-route.util.ts +0 -25
- package/util/kg.util.tsx +0 -2997
- package/util/tsx.helper.tsx +0 -45
- /package/{project → dist/project}/build/config/themeConfig.ts +0 -0
- /package/{project → dist/project}/build/constant.ts +0 -0
- /package/{project → dist/project}/build/generate/icon/index.ts +0 -0
- /package/{project → dist/project}/build/getConfigFileName.ts +0 -0
- /package/{project → dist/project}/build/index.ts +0 -0
- /package/{project → dist/project}/build/script/buildConf.ts +0 -0
- /package/{project → dist/project}/build/script/postBuild.ts +0 -0
- /package/{project → dist/project}/build/utils.ts +0 -0
- /package/{project → dist/project}/build/vite/plugin/compress.ts +0 -0
- /package/{project → dist/project}/build/vite/plugin/html.ts +0 -0
- /package/{project → dist/project}/build/vite/plugin/imagemin.ts +0 -0
- /package/{project → dist/project}/build/vite/plugin/index.ts +0 -0
- /package/{project → dist/project}/build/vite/plugin/pwa.ts +0 -0
- /package/{project → dist/project}/build/vite/plugin/styleImport.ts +0 -0
- /package/{project → dist/project}/build/vite/plugin/svgSprite.ts +0 -0
- /package/{project → dist/project}/build/vite/plugin/theme.ts +0 -0
- /package/{project → dist/project}/build/vite/plugin/visualizer.ts +0 -0
- /package/{project → dist/project}/build/vite/proxy.ts +0 -0
- /package/{api/WMS/Controllers/VarConfigDescriptionController/index.ts → dist/src/api/WMS/Controllers/VarConfigDescriptionController/index.d.ts} +0 -0
- /package/{api/WMS/Controllers/WarehouseController/index.ts → dist/src/api/WMS/Controllers/WarehouseController/index.d.ts} +0 -0
- /package/{api/WMS/Controllers/index.ts → dist/src/api/WMS/Controllers/index.d.ts} +0 -0
- /package/{component/KgButton/index.ts → dist/src/component/KgButton/index.d.ts} +0 -0
- /package/{component/KgForm.Item/index.ts → dist/src/component/KgForm.Item/index.d.ts} +0 -0
- /package/{component/KgImage/index.ts → dist/src/component/KgImage/index.d.ts} +0 -0
- /package/{component/KgModal/index.ts → dist/src/component/KgModal/index.d.ts} +0 -0
- /package/{component/KgModal02/index.ts → dist/src/component/KgModal02/index.d.ts} +0 -0
- /package/{component/KgProgressA/index.ts → dist/src/component/KgProgressA/index.d.ts} +0 -0
- /package/{component/KgResizable/index.ts → dist/src/component/KgResizable/index.d.ts} +0 -0
- /package/{component/KgSearch/KgSearch.model.ts → dist/src/component/KgSearch/KgSearch.model.d.ts} +0 -0
- /package/{component/KgTable02/KgTable02.model.ts → dist/src/component/KgTable02/KgTable02.model.d.ts} +0 -0
- /package/{component/KgWorkStation/index.ts → dist/src/component/KgWorkStation/index.d.ts} +0 -0
- /package/{component/KgYesOrNo/index.ts → dist/src/component/KgYesOrNo/index.d.ts} +0 -0
- /package/{page/KgPageCircularShuttleMonitor/index.ts → dist/src/page/KgPageCircularShuttleMonitor/index.d.ts} +0 -0
- /package/{page/KgPageSqlClient/index.ts → dist/src/page/KgPageSqlClient/index.d.ts} +0 -0
- /package/{project/src/api/index.ts → dist/src/project/src/api/index.d.ts} +0 -0
- /package/{project/src/api/sys/model/uploadModel.ts → dist/src/project/src/api/sys/model/uploadModel.d.ts} +0 -0
- /package/{project/src/components/Dropdown/index.ts → dist/src/project/src/components/Dropdown/index.d.ts} +0 -0
- /package/{project/src/components/Dropdown/src/typing.ts → dist/src/project/src/components/Dropdown/src/typing.d.ts} +0 -0
- /package/{project/src/enums/index.ts → dist/src/project/src/enums/index.d.ts} +0 -0
- /package/{project/src/index.ts → dist/src/project/src/index.d.ts} +0 -0
- /package/{project/src/layouts/index.ts → dist/src/project/src/layouts/index.d.ts} +0 -0
- /package/{project/src/locales/index.ts → dist/src/project/src/locales/index.d.ts} +0 -0
- /package/{project/src/router/index.ts → dist/src/project/src/router/index.d.ts} +0 -0
- /package/{project/src/settings/index.ts → dist/src/project/src/settings/index.d.ts} +0 -0
- /package/{project/src/store/index.ts → dist/src/project/src/store/index.d.ts} +0 -0
- /package/{project/src/store/modules/index.ts → dist/src/project/src/store/modules/index.d.ts} +0 -0
- /package/{project/src/utils/index.ts → dist/src/project/src/utils/index.d.ts} +0 -0
- /package/{project/types/index.ts → dist/src/project/types/index.d.ts} +0 -0
- /package/{service/index.ts → dist/src/service/index.d.ts} +0 -0
- /package/{util/index.ts → dist/src/util/index.d.ts} +0 -0
|
@@ -1,1132 +0,0 @@
|
|
|
1
|
-
import { Icon } from '@iconify/vue';
|
|
2
|
-
import { Button, Divider, Menu, notification, Row, Spin } from 'ant-design-vue';
|
|
3
|
-
import { Key } from 'ant-design-vue/es/_util/type';
|
|
4
|
-
import { SelectInfo } from 'ant-design-vue/lib/menu/src/interface';
|
|
5
|
-
import dayjs from 'dayjs';
|
|
6
|
-
import { isFunction, sortBy } from 'lodash-es';
|
|
7
|
-
import { computed, defineComponent, ExtractPropTypes, inject, nextTick, onUnmounted, PropType, ref, toRaw, watch } from 'vue';
|
|
8
|
-
import { VarSubmitDetail } from '../../api/WMS/models';
|
|
9
|
-
import { useKg } from '../../config';
|
|
10
|
-
import { KG, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT, KG_FORM_CONTEXT } from '../../model';
|
|
11
|
-
import { httpClient, IRequestConfig } from '../../service';
|
|
12
|
-
import { KgUtil } from '../../util';
|
|
13
|
-
import { KgForm, KgFormItem } from '../KgForm';
|
|
14
|
-
import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/KgForm.Item.model';
|
|
15
|
-
import { KgModal } from '../KgModal';
|
|
16
|
-
import { useKgVar } from '../KgVar';
|
|
17
|
-
import {
|
|
18
|
-
emit,
|
|
19
|
-
IKgSubmit$EventListenerParameter$onAfterValidate,
|
|
20
|
-
IKgSubmit$EventListenerParameter$onBeforeCancel,
|
|
21
|
-
IKgSubmit$EventListenerParameter$onBeforeOk,
|
|
22
|
-
IKgSubmit$EventListenerParameter$onBeforeOpen,
|
|
23
|
-
IKgSubmit$EventListenerParameter$onBeforeRequest,
|
|
24
|
-
IKgSubmit$EventListenerParameter$onCancel,
|
|
25
|
-
IKgSubmit$EventListenerParameter$onClose,
|
|
26
|
-
IKgSubmit$EventListenerParameter$onError,
|
|
27
|
-
IKgSubmit$EventListenerParameter$onOk,
|
|
28
|
-
IKgSubmit$EventListenerParameter$onOpen,
|
|
29
|
-
} from './KgSubmit.event';
|
|
30
|
-
import { SUBMIT_DEFAULT_MIN_WIDTH } from './KgSubmit.model';
|
|
31
|
-
import { _useClass, _useDefaultWidth, _useResizeObserver, _useTitle, useFormModel } from './KgSubmit.service';
|
|
32
|
-
import './KgSubmit.less';
|
|
33
|
-
|
|
34
|
-
export const getProps = () => ({
|
|
35
|
-
/**
|
|
36
|
-
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
|
37
|
-
*/
|
|
38
|
-
kgClass: String as PropType<string>,
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
export type KgSubmitProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
42
|
-
|
|
43
|
-
// 表单提交弹窗
|
|
44
|
-
export default defineComponent({
|
|
45
|
-
name: 'KgSubmit',
|
|
46
|
-
props: getProps(),
|
|
47
|
-
setup(props) {
|
|
48
|
-
const $dayjs = inject('$dayjs', dayjs);
|
|
49
|
-
const kgSlots = inject(KG.DI.KG_VAR.KG_SLOTS, null);
|
|
50
|
-
const kgProps = inject(KG.DI.KG_VAR.KG_PROPS, null);
|
|
51
|
-
|
|
52
|
-
const kg = useKg();
|
|
53
|
-
const kgVar = useKgVar();
|
|
54
|
-
|
|
55
|
-
kgVar.kgSubmit.onOkButtonClick(async () => {
|
|
56
|
-
await onOk();
|
|
57
|
-
return false;
|
|
58
|
-
});
|
|
59
|
-
kgVar.kgSubmit.onCancelButtonClick(async () => {
|
|
60
|
-
await onCancel();
|
|
61
|
-
return false;
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
useFormModel();
|
|
65
|
-
|
|
66
|
-
//region DATA
|
|
67
|
-
//----------------------------------------------------------------------------------------------------
|
|
68
|
-
const selectedData$$ = computed(() => {
|
|
69
|
-
if (kgVar.varGridConfig$Props$$.value?.componentVersion === '02') {
|
|
70
|
-
return kgVar.kgTable02.selectedData;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return kgVar.kgTable.selectedRow.value;
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const selectedDataList$$ = computed(() => {
|
|
77
|
-
if (kgVar.varGridConfig$Props$$.value?.componentVersion === '02') {
|
|
78
|
-
return kgVar.kgTable02.selectedDataList;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return kgVar.kgTable.selectedRows.value;
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* <p>当前是否是「删除」操作, 并且没有表单字段.</p>
|
|
86
|
-
* <p>大多数情况下, 删除时只会有一个确认弹窗, 弹窗中显示提示消息'是否确认删除', 此时没有任何表单字段,</p>
|
|
87
|
-
* <p>但是有的时候, 删除时会有一些表单字段, 需要像「编辑」时一样, 填写一些数据然后提交,</p>
|
|
88
|
-
*/
|
|
89
|
-
const isDeletingWithoutSubmitDetail = computed(() => kgVar.isDeleting.value && (kgVar.kgSubmit.currentVarSubmitDetailsForKey.value?.length ?? 0) === 0 && (kgVar.kgSubmit.currentVarSubmitDetailsForNotKey.value?.length ?? 0) === 0);
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* 是否正在请求接口.
|
|
93
|
-
*/
|
|
94
|
-
const isRequesting = computed<boolean>(
|
|
95
|
-
() => kgVar.kgButton.isCurrentButtonRequesting || !!kgVar.isCreatingRequesting$$.value || !!kgVar.isUpdatingRequesting$$.value || !!kgVar.isCopyingRequesting$$.value || !!kgVar.isDeletingRequesting$$.value,
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
/** 取消按钮是否禁用. */
|
|
99
|
-
const isButtonCancelDisabled = computed<boolean>(() => kgVar.kgSubmit.isLoading.value || isRequesting.value);
|
|
100
|
-
/** 确定按钮是否禁用. */
|
|
101
|
-
const isButtonOkDisabled = computed<boolean>(() => kgVar.kgSubmit.isLoading.value || isRequesting.value);
|
|
102
|
-
|
|
103
|
-
/** 是否默认全屏. */
|
|
104
|
-
const isDefaultFullscreen = ref<boolean>(false);
|
|
105
|
-
|
|
106
|
-
const minWidth$$ = computed<number>(() => {
|
|
107
|
-
if (isDeletingWithoutSubmitDetail.value) {
|
|
108
|
-
return SUBMIT_DEFAULT_MIN_WIDTH;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
return kgVar.kgSubmit.currentVarSubmitConfig.value?.min_width!;
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
const maxWidth$$ = computed<number | undefined>(() => {
|
|
115
|
-
if (isDeletingWithoutSubmitDetail.value) {
|
|
116
|
-
return SUBMIT_DEFAULT_MIN_WIDTH;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return kgVar.kgSubmit.currentVarSubmitConfig.value?.max_width ?? undefined;
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
const minHeight$$ = computed<number | undefined>(() => {
|
|
123
|
-
if (isDeletingWithoutSubmitDetail.value) {
|
|
124
|
-
return 154;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return undefined;
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
const maxHeight$$ = computed<number | undefined>(() => {
|
|
131
|
-
if (isDeletingWithoutSubmitDetail.value) {
|
|
132
|
-
return 154;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
return undefined;
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
const getShowFullscreenButton = computed<boolean | undefined>(() => {
|
|
139
|
-
if (isDeletingWithoutSubmitDetail.value) {
|
|
140
|
-
return false;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
return undefined;
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
const kgFormRef = ref<HTMLDivElement | null>(null);
|
|
147
|
-
_useResizeObserver(kgFormRef);
|
|
148
|
-
const { title } = _useTitle();
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* 宽度.
|
|
152
|
-
*/
|
|
153
|
-
const width$$ = computed<string | number>(() => {
|
|
154
|
-
// 删除, 并且没有表单字段, 固定宽度
|
|
155
|
-
if (isDeletingWithoutSubmitDetail.value) {
|
|
156
|
-
return SUBMIT_DEFAULT_MIN_WIDTH;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return getDefaultWidth.value;
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* 是否显示提交弹窗.
|
|
164
|
-
*/
|
|
165
|
-
const isVisible = computed<boolean>(() => {
|
|
166
|
-
// 宽度为 0 时隐藏, 避免屏闪
|
|
167
|
-
if (width$$.value === 0) {
|
|
168
|
-
return false;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
return true;
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
const { class$$, wrapClass$$ } = _useClass(props);
|
|
175
|
-
const { getDefaultWidth } = _useDefaultWidth();
|
|
176
|
-
|
|
177
|
-
const labelCol$$ = computed(() => {
|
|
178
|
-
switch (kgVar.kgSubmit.currentVarSubmitConfig$Layout.value) {
|
|
179
|
-
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL: {
|
|
180
|
-
switch (kgVar.kgSubmit.currentVarSubmitConfig.value?.label_col_unit) {
|
|
181
|
-
case KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.SPAN:
|
|
182
|
-
return { span: kgVar.kgSubmit.currentVarSubmitConfig.value?.label_col! };
|
|
183
|
-
|
|
184
|
-
case KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.PX:
|
|
185
|
-
default:
|
|
186
|
-
return { style: { width: `${kgVar.kgSubmit.currentVarSubmitConfig.value?.label_col}px` } };
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
default:
|
|
191
|
-
return undefined;
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
const wrapperCol$$ = computed(() => {
|
|
195
|
-
switch (kgVar.kgSubmit.currentVarSubmitConfig$Layout.value) {
|
|
196
|
-
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL: {
|
|
197
|
-
switch (kgVar.kgSubmit.currentVarSubmitConfig.value?.label_col_unit) {
|
|
198
|
-
case KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.SPAN:
|
|
199
|
-
return { span: 24 - kgVar.kgSubmit.currentVarSubmitConfig.value?.label_col! };
|
|
200
|
-
|
|
201
|
-
default:
|
|
202
|
-
return undefined;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
default:
|
|
207
|
-
return undefined;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* 确定按钮上的文本.
|
|
213
|
-
*/
|
|
214
|
-
const okButtonText$$ = computed<string>(() => {
|
|
215
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$Props.value.okButton?.textVarName) {
|
|
216
|
-
return kgVar.t2(kgVar.kgSubmit.currentVarSubmitConfig$Props.value.okButton?.textVarName);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
return kg.t('kg.ok', {}, '确定');
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* 取消按钮上的文本.
|
|
224
|
-
*/
|
|
225
|
-
const cancelButtonText$$ = computed<string>(() => {
|
|
226
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$Props.value.cancelButton?.textVarName) {
|
|
227
|
-
return kgVar.t2(kgVar.kgSubmit.currentVarSubmitConfig$Props.value.cancelButton?.textVarName);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
return kg.t('kg.cancel', {}, '取消');
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
/** 当前选中的分组. */
|
|
234
|
-
const sectionSelectedKeys$$ = ref<Array<Key>>([kgVar.kgSubmit.currentVarSubmitDetailSectionsForVisible.value[0] ?? '']);
|
|
235
|
-
|
|
236
|
-
//endregion
|
|
237
|
-
|
|
238
|
-
//region WATCH
|
|
239
|
-
//----------------------------------------------------------------------------------------------------
|
|
240
|
-
//region isVisible
|
|
241
|
-
//----------------------------------------------------------------------------------------------------
|
|
242
|
-
watch(
|
|
243
|
-
isVisible,
|
|
244
|
-
(visible, oldVisible) => {
|
|
245
|
-
if (visible === true) {
|
|
246
|
-
onOpen();
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// oldVisible 为 true, 并且 visible 为 false, 才表示是由打开状态变成关闭状态
|
|
250
|
-
if (oldVisible === true && visible === false) {
|
|
251
|
-
onClose();
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
{ immediate: true },
|
|
255
|
-
);
|
|
256
|
-
//endregion
|
|
257
|
-
//endregion
|
|
258
|
-
|
|
259
|
-
//region FUNCTION
|
|
260
|
-
//----------------------------------------------------------------------------------------------------
|
|
261
|
-
function getContainer() {
|
|
262
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$DisplayType.value === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.INLINE) {
|
|
263
|
-
const target = kgVar.kgSubmit.currentVarSubmitConfig$Props.value.displayType?.INLINE?.target;
|
|
264
|
-
if (target) {
|
|
265
|
-
return document.querySelector<HTMLElement>(target) ?? document.body;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
return document.body;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/** 打开. */
|
|
273
|
-
async function onOpen(): Promise<void> {
|
|
274
|
-
const eventResult$onBeforeOpen = await emit<IKgSubmit$EventListenerParameter$onBeforeOpen>({
|
|
275
|
-
id: kgVar.fid,
|
|
276
|
-
event: 'onBeforeOpen',
|
|
277
|
-
parameter: {
|
|
278
|
-
isCopying: kgVar.isCopying.value,
|
|
279
|
-
isCreating: kgVar.isCreating.value,
|
|
280
|
-
isDeleting: kgVar.isDeleting.value,
|
|
281
|
-
isUpdating: kgVar.isUpdating.value,
|
|
282
|
-
row: selectedData$$.value,
|
|
283
|
-
},
|
|
284
|
-
});
|
|
285
|
-
if (eventResult$onBeforeOpen) {
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
return new Promise((resolve, reject) => {
|
|
290
|
-
// 弹窗打开之后, 等待表单数据对象初始完成, 然后触发 open 事件,
|
|
291
|
-
const stopWatch = watch(
|
|
292
|
-
kgVar.kgSubmit.formModel,
|
|
293
|
-
async (formModel) => {
|
|
294
|
-
if (formModel && Object.keys(formModel).length > 0) {
|
|
295
|
-
setTimeout(() => stopWatch());
|
|
296
|
-
|
|
297
|
-
const eventResult$onOpen = await emit<IKgSubmit$EventListenerParameter$onOpen>({
|
|
298
|
-
id: kgVar.fid,
|
|
299
|
-
event: 'onOpen',
|
|
300
|
-
parameter: {
|
|
301
|
-
isCopying: kgVar.isCopying.value,
|
|
302
|
-
isCreating: kgVar.isCreating.value,
|
|
303
|
-
isDeleting: kgVar.isDeleting.value,
|
|
304
|
-
isUpdating: kgVar.isUpdating.value,
|
|
305
|
-
model: kgVar.kgSubmit.formModel,
|
|
306
|
-
row: selectedData$$.value,
|
|
307
|
-
},
|
|
308
|
-
});
|
|
309
|
-
|
|
310
|
-
resolve();
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
{ immediate: true },
|
|
314
|
-
);
|
|
315
|
-
|
|
316
|
-
// 全屏,
|
|
317
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig.value?.dft_fullscreen_flg === 1 && !isDeletingWithoutSubmitDetail.value) {
|
|
318
|
-
isDefaultFullscreen.value = true;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$DisplayType.value === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.INLINE) {
|
|
322
|
-
isDefaultFullscreen.value = true;
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/** 关闭. */
|
|
328
|
-
async function onClose() {
|
|
329
|
-
await emit<IKgSubmit$EventListenerParameter$onClose>({ id: kgVar.fid, event: 'onClose', parameter: null });
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/** 取消. */
|
|
333
|
-
async function onCancel() {
|
|
334
|
-
const eventResult$onBeforeCancel = await emit<IKgSubmit$EventListenerParameter$onBeforeCancel>({
|
|
335
|
-
id: kgVar.fid,
|
|
336
|
-
event: 'onBeforeCancel',
|
|
337
|
-
parameter: {},
|
|
338
|
-
});
|
|
339
|
-
if (eventResult$onBeforeCancel) {
|
|
340
|
-
return;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
await kgVar.kgButton.setCurrentButton(null);
|
|
344
|
-
|
|
345
|
-
const eventResult$onCancel = await emit<IKgSubmit$EventListenerParameter$onCancel>({ id: kgVar.fid, event: 'onCancel', parameter: {} });
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
/** 提交. */
|
|
349
|
-
async function onOk() {
|
|
350
|
-
try {
|
|
351
|
-
// 表单尚未加载完成
|
|
352
|
-
if (!kgVar.kgSubmit.formRef.value) {
|
|
353
|
-
return;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
const eventResult$onBeforeOk = await emit<IKgSubmit$EventListenerParameter$onBeforeOk>({
|
|
357
|
-
id: kgVar.fid,
|
|
358
|
-
event: 'onBeforeOk',
|
|
359
|
-
parameter: {
|
|
360
|
-
model: kgVar.kgSubmit.formModel,
|
|
361
|
-
},
|
|
362
|
-
});
|
|
363
|
-
if (eventResult$onBeforeOk) {
|
|
364
|
-
return;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
await nextTick();
|
|
368
|
-
|
|
369
|
-
// 如果在 beforeOk 事件回调中修改了表单数据, 则第一次表单验证会不通过, 因此需要重新验证一次
|
|
370
|
-
try {
|
|
371
|
-
await kgVar.kgSubmit.formRef.value?.validate();
|
|
372
|
-
} catch (e) {
|
|
373
|
-
KgUtil.throwNotFormValidationError({ error: e, formID: kgVar.fid, isShowFormValidationErrorMessage: false });
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
await kgVar.kgSubmit.formRef.value?.validate();
|
|
377
|
-
|
|
378
|
-
const eventResult$onAfterValidate = await emit<IKgSubmit$EventListenerParameter$onAfterValidate>({
|
|
379
|
-
id: kgVar.fid,
|
|
380
|
-
event: 'onAfterValidate',
|
|
381
|
-
parameter: {
|
|
382
|
-
isCopying: kgVar.isCopying.value,
|
|
383
|
-
isCreating: kgVar.isCreating.value,
|
|
384
|
-
isDeleting: kgVar.isDeleting.value,
|
|
385
|
-
isUpdating: kgVar.isUpdating.value,
|
|
386
|
-
model: kgVar.kgSubmit.formModel,
|
|
387
|
-
row: selectedData$$.value,
|
|
388
|
-
rows: selectedDataList$$.value,
|
|
389
|
-
},
|
|
390
|
-
});
|
|
391
|
-
if (eventResult$onAfterValidate) {
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
switch (true) {
|
|
396
|
-
case kgVar.isCreating.value:
|
|
397
|
-
await doCreate();
|
|
398
|
-
break;
|
|
399
|
-
|
|
400
|
-
case kgVar.isUpdating.value:
|
|
401
|
-
await doUpdate();
|
|
402
|
-
break;
|
|
403
|
-
|
|
404
|
-
case kgVar.isCopying.value:
|
|
405
|
-
await doCopy();
|
|
406
|
-
break;
|
|
407
|
-
|
|
408
|
-
case kgVar.isDeleting.value:
|
|
409
|
-
await doDelete();
|
|
410
|
-
break;
|
|
411
|
-
|
|
412
|
-
default: {
|
|
413
|
-
await doOther();
|
|
414
|
-
break;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
} catch (e) {
|
|
418
|
-
KgUtil.throwNotFormValidationError({ error: e, formID: kgVar.fid });
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/** 创建. */
|
|
423
|
-
async function doCreate() {
|
|
424
|
-
kgVar.store.setIsCreatingRequesting(kgVar.fid, true);
|
|
425
|
-
|
|
426
|
-
try {
|
|
427
|
-
const requestUrl = kgVar.varButtonCreate.value?.cmd;
|
|
428
|
-
|
|
429
|
-
const requestMethod = (kgVar.varButtonCreate.value?.cmd_method as any) ?? 'POST';
|
|
430
|
-
|
|
431
|
-
let paramRecord$ = ref(KgUtil.parseParams(KgUtil.parseRequestParamsToJSON(kgVar.varButtonCreate.value?.cmd_prm ?? ''), kgVar.fid, $dayjs));
|
|
432
|
-
let data$ = ref<Record<string, any>>({
|
|
433
|
-
...KgUtil.parseParams(toRaw(kgVar.kgSubmit.formModel.value), kgVar.fid, $dayjs),
|
|
434
|
-
// 将表格中当前勾选的行通过下面这个参数传给后端接口,
|
|
435
|
-
selectedRows: selectedDataList$$.value ?? [],
|
|
436
|
-
});
|
|
437
|
-
|
|
438
|
-
const requestConfig: IRequestConfig = {
|
|
439
|
-
url: requestUrl!,
|
|
440
|
-
method: requestMethod,
|
|
441
|
-
params: paramRecord$.value,
|
|
442
|
-
data: data$.value,
|
|
443
|
-
headers: {
|
|
444
|
-
[KG.HTTP_HEADER__KG_BUTTON_VAR_NAME]: kgVar.varButtonCreate.value?.var_nam ?? '',
|
|
445
|
-
[KG.HTTP_HEADER__KG_FORM_ID]: kgVar.fid,
|
|
446
|
-
},
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
const eventResult$onBeforeRequest = await emit<IKgSubmit$EventListenerParameter$onBeforeRequest>({
|
|
450
|
-
event: 'onBeforeRequest',
|
|
451
|
-
id: kgVar.fid,
|
|
452
|
-
parameter: {
|
|
453
|
-
data: data$,
|
|
454
|
-
isCopying: kgVar.isCopying.value,
|
|
455
|
-
isCreating: kgVar.isCreating.value,
|
|
456
|
-
isDeleting: kgVar.isDeleting.value,
|
|
457
|
-
isUpdating: kgVar.isUpdating.value,
|
|
458
|
-
model: kgVar.kgSubmit.formModel,
|
|
459
|
-
params: paramRecord$,
|
|
460
|
-
requestConfig: requestConfig,
|
|
461
|
-
row: kgVar.kgTable.selectedFirstRow.value,
|
|
462
|
-
rows: selectedDataList$$.value,
|
|
463
|
-
},
|
|
464
|
-
});
|
|
465
|
-
if (eventResult$onBeforeRequest) {
|
|
466
|
-
return;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
if (!requestConfig.url) {
|
|
470
|
-
notification.error({ message: kg.t('kg.KgButton.noApiUrl', {}, '按钮没有配置接口地址') });
|
|
471
|
-
throw new Error('没有配置接口地址');
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
const result = await httpClient().request(requestConfig);
|
|
475
|
-
if (kgVar.varButtonCreate.value?.show_success_message_flg !== 0) {
|
|
476
|
-
notification.success({ message: title.value + kg.t('kg.succeed', {}, '成功') });
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
await emit<IKgSubmit$EventListenerParameter$onOk>({
|
|
480
|
-
id: kgVar.fid,
|
|
481
|
-
event: 'onOk',
|
|
482
|
-
parameter: {
|
|
483
|
-
isCopying: false,
|
|
484
|
-
isCreating: true,
|
|
485
|
-
isDeleting: false,
|
|
486
|
-
isUpdating: false,
|
|
487
|
-
model: kgVar.kgSubmit.formModel,
|
|
488
|
-
result: result,
|
|
489
|
-
row: kgVar.kgTable.selectedFirstRow.value,
|
|
490
|
-
},
|
|
491
|
-
});
|
|
492
|
-
|
|
493
|
-
// 关闭弹窗
|
|
494
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$Props.value.isCloseModalAfterOk !== false) {
|
|
495
|
-
kgVar.kgButton.setCurrentButton(null);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
// 重新查询列表数据
|
|
499
|
-
if (kgVar.varButtonCreate.value?.reload_all_after_done_flg !== 0) {
|
|
500
|
-
kgVar.kgSearch.search({ isSearchFirstPage: true });
|
|
501
|
-
}
|
|
502
|
-
} catch (e) {
|
|
503
|
-
console.error(e);
|
|
504
|
-
emit<IKgSubmit$EventListenerParameter$onError>({
|
|
505
|
-
id: kgVar.fid,
|
|
506
|
-
event: 'onError',
|
|
507
|
-
parameter: e as any,
|
|
508
|
-
});
|
|
509
|
-
} finally {
|
|
510
|
-
kgVar.store.setIsCreatingRequesting(kgVar.fid, false);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
/** 更新. */
|
|
515
|
-
async function doUpdate() {
|
|
516
|
-
try {
|
|
517
|
-
kgVar.store.setIsUpdatingRequesting(kgVar.fid, true);
|
|
518
|
-
|
|
519
|
-
const requestUrl = kgVar.varButtonUpdate.value?.cmd;
|
|
520
|
-
const requestMethod = (kgVar.varButtonUpdate.value?.cmd_method as any) ?? 'POST';
|
|
521
|
-
|
|
522
|
-
let paramRecord$ = ref(KgUtil.parseParams(KgUtil.parseRequestParamsToJSON(kgVar.varButtonUpdate.value?.cmd_prm ?? ''), kgVar.fid, $dayjs));
|
|
523
|
-
let data$ = ref<Record<string, any>>({
|
|
524
|
-
...KgUtil.parseParams(toRaw(kgVar.kgSubmit.formModel.value), kgVar.fid, $dayjs),
|
|
525
|
-
// 将表格中当前勾选的行通过下面这个参数传给后端接口,
|
|
526
|
-
selectedRows: selectedDataList$$.value ?? [],
|
|
527
|
-
});
|
|
528
|
-
|
|
529
|
-
const requestConfig: IRequestConfig = {
|
|
530
|
-
url: requestUrl!,
|
|
531
|
-
method: requestMethod,
|
|
532
|
-
params: paramRecord$.value,
|
|
533
|
-
data: data$.value,
|
|
534
|
-
headers: {
|
|
535
|
-
[KG.HTTP_HEADER__KG_BUTTON_VAR_NAME]: kgVar.varButtonUpdate.value?.var_nam ?? '',
|
|
536
|
-
[KG.HTTP_HEADER__KG_FORM_ID]: kgVar.fid,
|
|
537
|
-
},
|
|
538
|
-
};
|
|
539
|
-
|
|
540
|
-
const eventResult$onBeforeRequest = await emit<IKgSubmit$EventListenerParameter$onBeforeRequest>({
|
|
541
|
-
id: kgVar.fid,
|
|
542
|
-
event: 'onBeforeRequest',
|
|
543
|
-
parameter: {
|
|
544
|
-
data: data$,
|
|
545
|
-
isCopying: kgVar.isCopying.value,
|
|
546
|
-
isCreating: kgVar.isCreating.value,
|
|
547
|
-
isDeleting: kgVar.isDeleting.value,
|
|
548
|
-
isUpdating: kgVar.isUpdating.value,
|
|
549
|
-
model: kgVar.kgSubmit.formModel,
|
|
550
|
-
params: paramRecord$,
|
|
551
|
-
requestConfig: requestConfig,
|
|
552
|
-
row: selectedData$$.value,
|
|
553
|
-
rows: selectedDataList$$.value,
|
|
554
|
-
},
|
|
555
|
-
});
|
|
556
|
-
if (eventResult$onBeforeRequest) {
|
|
557
|
-
return;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
if (!requestConfig.url) {
|
|
561
|
-
notification.error({ message: kg.t('kg.KgButton.noApiUrl', {}, '按钮没有配置接口地址') });
|
|
562
|
-
throw new Error('没有配置接口地址');
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
const result = await httpClient().request(requestConfig);
|
|
566
|
-
|
|
567
|
-
if (kgVar.varButtonUpdate.value?.show_success_message_flg !== 0) {
|
|
568
|
-
notification.success({
|
|
569
|
-
message:
|
|
570
|
-
(() => {
|
|
571
|
-
const text = kgVar.t2(kgVar.varButtonUpdate.value?.var_nam);
|
|
572
|
-
|
|
573
|
-
if (text !== kgVar.varButtonUpdate.value?.var_nam) {
|
|
574
|
-
return text;
|
|
575
|
-
} else {
|
|
576
|
-
return kg.t('kg.update', {}, '更新');
|
|
577
|
-
}
|
|
578
|
-
})() + kg.t('succeeded', {}, '成功'),
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
await emit<IKgSubmit$EventListenerParameter$onOk>({
|
|
583
|
-
id: kgVar.fid,
|
|
584
|
-
event: 'onOk',
|
|
585
|
-
parameter: {
|
|
586
|
-
isCopying: false,
|
|
587
|
-
isCreating: false,
|
|
588
|
-
isDeleting: false,
|
|
589
|
-
isUpdating: true,
|
|
590
|
-
model: kgVar.kgSubmit.formModel,
|
|
591
|
-
result: result,
|
|
592
|
-
row: kgVar.kgTable.selectedFirstRow.value,
|
|
593
|
-
},
|
|
594
|
-
});
|
|
595
|
-
|
|
596
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$Props.value.isCloseModalAfterOk !== false) {
|
|
597
|
-
// 关闭弹窗
|
|
598
|
-
kgVar.kgButton.setCurrentButton(null);
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
// 重新查询列表数据
|
|
602
|
-
if (kgVar.varButtonUpdate.value?.reload_all_after_done_flg !== 0) {
|
|
603
|
-
kgVar.kgSearch.search({ isPreserveSelectedRows: true });
|
|
604
|
-
}
|
|
605
|
-
} catch (e) {
|
|
606
|
-
console.error(e);
|
|
607
|
-
emit<IKgSubmit$EventListenerParameter$onError>({ id: kgVar.fid, event: 'onError', parameter: e as any });
|
|
608
|
-
} finally {
|
|
609
|
-
kgVar.store.setIsUpdatingRequesting(kgVar.fid, false);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
/** 复制. */
|
|
614
|
-
async function doCopy() {
|
|
615
|
-
try {
|
|
616
|
-
kgVar.store.setIsCopyingRequesting(kgVar.fid, true);
|
|
617
|
-
|
|
618
|
-
const requestUrl = kgVar.varButtonCopy.value?.cmd;
|
|
619
|
-
const requestMethod = (kgVar.varButtonCopy.value?.cmd_method as any) ?? 'POST';
|
|
620
|
-
|
|
621
|
-
let paramRecord$ = ref(KgUtil.parseParams(KgUtil.parseRequestParamsToJSON(kgVar.varButtonCopy.value?.cmd_prm ?? ''), kgVar.fid, $dayjs));
|
|
622
|
-
let data$ = ref<Record<string, any>>({
|
|
623
|
-
...KgUtil.parseParams({ ...(kgVar.kgTable.selectedFirstRow.value ?? {}), ...toRaw(kgVar.kgSubmit.formModel.value) }, kgVar.fid, $dayjs),
|
|
624
|
-
// 将表格中当前勾选的行通过下面这个参数传给后端接口,
|
|
625
|
-
selectedRows: selectedDataList$$.value ?? [],
|
|
626
|
-
});
|
|
627
|
-
|
|
628
|
-
// 清空 ID 字段
|
|
629
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig.value?.set_id_to_null_flag !== 0) {
|
|
630
|
-
delete data$.value.id;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
const requestConfig: IRequestConfig = {
|
|
634
|
-
url: requestUrl!,
|
|
635
|
-
method: requestMethod,
|
|
636
|
-
params: paramRecord$.value,
|
|
637
|
-
data: data$.value,
|
|
638
|
-
headers: {
|
|
639
|
-
[KG.HTTP_HEADER__KG_BUTTON_VAR_NAME]: kgVar.varButtonCopy.value?.var_nam ?? '',
|
|
640
|
-
[KG.HTTP_HEADER__KG_FORM_ID]: kgVar.fid,
|
|
641
|
-
},
|
|
642
|
-
};
|
|
643
|
-
const eventResult$onBeforeRequest = await emit<IKgSubmit$EventListenerParameter$onBeforeRequest>({
|
|
644
|
-
id: kgVar.fid,
|
|
645
|
-
event: 'onBeforeRequest',
|
|
646
|
-
parameter: {
|
|
647
|
-
isCreating: kgVar.isCreating.value,
|
|
648
|
-
isUpdating: kgVar.isUpdating.value,
|
|
649
|
-
isCopying: kgVar.isCopying.value,
|
|
650
|
-
isDeleting: kgVar.isDeleting.value,
|
|
651
|
-
row: selectedData$$.value,
|
|
652
|
-
rows: selectedDataList$$.value,
|
|
653
|
-
model: kgVar.kgSubmit.formModel,
|
|
654
|
-
params: paramRecord$,
|
|
655
|
-
requestConfig: requestConfig,
|
|
656
|
-
data: data$,
|
|
657
|
-
},
|
|
658
|
-
});
|
|
659
|
-
if (eventResult$onBeforeRequest) {
|
|
660
|
-
return;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
if (!requestConfig.url) {
|
|
664
|
-
notification.error({ message: kg.t('kg.KgButton.noApiUrl', {}, '按钮没有配置接口地址') });
|
|
665
|
-
throw new Error('没有配置接口地址');
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
const result = await httpClient().request(requestConfig);
|
|
669
|
-
|
|
670
|
-
if (kgVar.varButtonCopy.value?.show_success_message_flg !== 0) {
|
|
671
|
-
notification.success({ message: kg.t('kg.copySuccess', {}, '复制成功') });
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
await emit<IKgSubmit$EventListenerParameter$onOk>({
|
|
675
|
-
id: kgVar.fid,
|
|
676
|
-
event: 'onOk',
|
|
677
|
-
parameter: {
|
|
678
|
-
isCopying: true,
|
|
679
|
-
isCreating: false,
|
|
680
|
-
isDeleting: false,
|
|
681
|
-
isUpdating: false,
|
|
682
|
-
model: kgVar.kgSubmit.formModel,
|
|
683
|
-
result: result,
|
|
684
|
-
row: kgVar.kgTable.selectedFirstRow.value,
|
|
685
|
-
},
|
|
686
|
-
});
|
|
687
|
-
|
|
688
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$Props.value.isCloseModalAfterOk !== false) {
|
|
689
|
-
// 关闭弹窗
|
|
690
|
-
kgVar.kgButton.setCurrentButton(null);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
if (kgVar.varButtonCopy.value?.reload_all_after_done_flg !== 0) {
|
|
694
|
-
// 重新查询列表数据
|
|
695
|
-
kgVar.kgSearch.search({ isSearchFirstPage: true });
|
|
696
|
-
}
|
|
697
|
-
} catch (e) {
|
|
698
|
-
console.error(e);
|
|
699
|
-
emit<IKgSubmit$EventListenerParameter$onError>({ id: kgVar.fid, event: 'onError', parameter: e as any });
|
|
700
|
-
} finally {
|
|
701
|
-
kgVar.store.setIsCopyingRequesting(kgVar.fid, false);
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/** 删除. */
|
|
706
|
-
async function doDelete() {
|
|
707
|
-
try {
|
|
708
|
-
kgVar.store.setIsDeletingRequesting(kgVar.fid, true);
|
|
709
|
-
|
|
710
|
-
const requestUrl = kgVar.varButtonDelete.value?.cmd;
|
|
711
|
-
const requestMethod = (kgVar.varButtonDelete.value?.cmd_method as any) ?? 'POST';
|
|
712
|
-
|
|
713
|
-
let paramRecord$ = ref(KgUtil.parseParams(KgUtil.parseRequestParamsToJSON(kgVar.varButtonDelete.value?.cmd_prm ?? ''), kgVar.fid, $dayjs));
|
|
714
|
-
let data$ = ref<Array<Record<string, any>>>(selectedDataList$$.value ?? []);
|
|
715
|
-
|
|
716
|
-
//region 如果 del_param_clm 为特殊值 '__kg__new_delete_param', 表示要将勾选的多行数据作为列表传给接口,
|
|
717
|
-
// TODO 等到所有的删除接口的参数都改造成列表之后, 就可以删除 del_param_clm 字段, 以及下面这段代码,
|
|
718
|
-
//----------------------------------------------------------------------------------------------------
|
|
719
|
-
if (kgVar.varButtonDelete.value?.del_param_clm !== '__kg__new_delete_param') {
|
|
720
|
-
paramRecord$ = ref({
|
|
721
|
-
ids: selectedDataList$$.value?.map((i) => i[kgVar.varButtonDelete.value?.del_param_clm ?? 'id'] ?? '') ?? [],
|
|
722
|
-
});
|
|
723
|
-
}
|
|
724
|
-
//endregion
|
|
725
|
-
|
|
726
|
-
const requestConfig: IRequestConfig = {
|
|
727
|
-
url: requestUrl!,
|
|
728
|
-
method: requestMethod,
|
|
729
|
-
params: paramRecord$.value,
|
|
730
|
-
data: data$.value,
|
|
731
|
-
headers: {
|
|
732
|
-
[KG.HTTP_HEADER__KG_BUTTON_VAR_NAME]: kgVar.varButtonDelete.value?.var_nam ?? '',
|
|
733
|
-
[KG.HTTP_HEADER__KG_FORM_ID]: kgVar.fid,
|
|
734
|
-
},
|
|
735
|
-
};
|
|
736
|
-
|
|
737
|
-
const eventResult$onBeforeRequest = await emit<IKgSubmit$EventListenerParameter$onBeforeRequest>({
|
|
738
|
-
event: 'onBeforeRequest',
|
|
739
|
-
id: kgVar.fid,
|
|
740
|
-
parameter: {
|
|
741
|
-
data: data$,
|
|
742
|
-
isCopying: kgVar.isCopying.value,
|
|
743
|
-
isCreating: kgVar.isCreating.value,
|
|
744
|
-
isDeleting: kgVar.isDeleting.value,
|
|
745
|
-
isUpdating: kgVar.isUpdating.value,
|
|
746
|
-
model: kgVar.kgSubmit.formModel,
|
|
747
|
-
params: paramRecord$,
|
|
748
|
-
requestConfig: requestConfig,
|
|
749
|
-
row: kgVar.kgTable.selectedFirstRow.value,
|
|
750
|
-
rows: selectedDataList$$.value,
|
|
751
|
-
},
|
|
752
|
-
});
|
|
753
|
-
if (eventResult$onBeforeRequest) {
|
|
754
|
-
return;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
if (!requestConfig.url) {
|
|
758
|
-
notification.error({ message: kg.t('kg.KgButton.noApiUrl', {}, '按钮没有配置接口地址') });
|
|
759
|
-
throw new Error('没有配置接口地址');
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
const result = await httpClient().request(requestConfig, { joinParamsToUrl: true });
|
|
763
|
-
|
|
764
|
-
if (kgVar.varButtonDelete.value?.show_success_message_flg !== 0) {
|
|
765
|
-
notification.success({ message: kg.t('kg.deleteSuccess', {}, '删除成功') });
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
await emit<IKgSubmit$EventListenerParameter$onOk>({
|
|
769
|
-
id: kgVar.fid,
|
|
770
|
-
event: 'onOk',
|
|
771
|
-
parameter: {
|
|
772
|
-
isCopying: false,
|
|
773
|
-
isCreating: false,
|
|
774
|
-
isDeleting: true,
|
|
775
|
-
isUpdating: false,
|
|
776
|
-
model: kgVar.kgSubmit.formModel,
|
|
777
|
-
result: result,
|
|
778
|
-
row: kgVar.kgTable.selectedFirstRow.value,
|
|
779
|
-
},
|
|
780
|
-
});
|
|
781
|
-
|
|
782
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$Props.value.isCloseModalAfterOk !== false) {
|
|
783
|
-
// 关闭弹窗
|
|
784
|
-
kgVar.kgButton.setCurrentButton(null);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
// 重新查询表格数据
|
|
788
|
-
if (kgVar.varButtonDelete.value?.reload_all_after_done_flg !== 0) {
|
|
789
|
-
kgVar.kgSearch.search({ isSearchFirstPage: true });
|
|
790
|
-
}
|
|
791
|
-
} catch (e) {
|
|
792
|
-
console.error(e);
|
|
793
|
-
emit<IKgSubmit$EventListenerParameter$onError>({
|
|
794
|
-
id: kgVar.fid,
|
|
795
|
-
event: 'onError',
|
|
796
|
-
parameter: e as any,
|
|
797
|
-
});
|
|
798
|
-
} finally {
|
|
799
|
-
kgVar.store.setIsDeletingRequesting(kgVar.fid, false);
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
/** 其他按钮. */
|
|
804
|
-
async function doOther() {
|
|
805
|
-
try {
|
|
806
|
-
kgVar.kgButton.setIsCurrentButtonRequesting({ isRequesting: true });
|
|
807
|
-
|
|
808
|
-
const button = kgVar.kgButton.currentButton;
|
|
809
|
-
|
|
810
|
-
const requestUrl = button?.cmd;
|
|
811
|
-
const requestMethod = (button?.cmd_method as any) ?? 'POST';
|
|
812
|
-
|
|
813
|
-
let paramRecord$ = ref(KgUtil.parseParams(KgUtil.parseRequestParamsToJSON(button?.cmd_prm ?? ''), kgVar.fid, $dayjs));
|
|
814
|
-
let data$ = ref<Record<string, any>>({
|
|
815
|
-
...KgUtil.parseParams(toRaw(kgVar.kgSubmit.formModel.value), kgVar.fid, $dayjs),
|
|
816
|
-
// 将表格中当前勾选的行通过下面这个参数传给后端接口,
|
|
817
|
-
selectedRows: selectedDataList$$.value ?? [],
|
|
818
|
-
});
|
|
819
|
-
|
|
820
|
-
const requestConfig: IRequestConfig = {
|
|
821
|
-
url: requestUrl!,
|
|
822
|
-
method: requestMethod,
|
|
823
|
-
params: paramRecord$.value,
|
|
824
|
-
data: data$.value,
|
|
825
|
-
headers: {
|
|
826
|
-
[KG.HTTP_HEADER__KG_BUTTON_VAR_NAME]: button?.var_nam ?? '',
|
|
827
|
-
[KG.HTTP_HEADER__KG_FORM_ID]: kgVar.fid,
|
|
828
|
-
},
|
|
829
|
-
};
|
|
830
|
-
|
|
831
|
-
const eventResult$onBeforeRequest = await emit<IKgSubmit$EventListenerParameter$onBeforeRequest>({
|
|
832
|
-
event: 'onBeforeRequest',
|
|
833
|
-
id: kgVar.fid,
|
|
834
|
-
parameter: {
|
|
835
|
-
data: data$,
|
|
836
|
-
isCopying: kgVar.isCopying.value,
|
|
837
|
-
isCreating: kgVar.isCreating.value,
|
|
838
|
-
isDeleting: kgVar.isDeleting.value,
|
|
839
|
-
isUpdating: kgVar.isUpdating.value,
|
|
840
|
-
model: kgVar.kgSubmit.formModel,
|
|
841
|
-
params: paramRecord$,
|
|
842
|
-
requestConfig: requestConfig,
|
|
843
|
-
row: selectedData$$.value,
|
|
844
|
-
rows: selectedDataList$$.value,
|
|
845
|
-
},
|
|
846
|
-
});
|
|
847
|
-
if (eventResult$onBeforeRequest) {
|
|
848
|
-
return;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
if (!requestConfig.url) {
|
|
852
|
-
notification.error({ message: kg.t('kg.KgButton.noApiUrl', {}, '按钮没有配置接口地址') });
|
|
853
|
-
throw new Error('没有配置接口地址');
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
const result = await httpClient().request(requestConfig);
|
|
857
|
-
|
|
858
|
-
if (button?.show_success_message_flg !== 0) {
|
|
859
|
-
notification.success({ message: kg.t('kg.executeSuccess', {}, '执行成功') });
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
await emit<IKgSubmit$EventListenerParameter$onOk>({
|
|
863
|
-
id: kgVar.fid,
|
|
864
|
-
event: 'onOk',
|
|
865
|
-
parameter: {
|
|
866
|
-
isCopying: false,
|
|
867
|
-
isCreating: false,
|
|
868
|
-
isDeleting: false,
|
|
869
|
-
isUpdating: true,
|
|
870
|
-
model: kgVar.kgSubmit.formModel,
|
|
871
|
-
result: result,
|
|
872
|
-
row: kgVar.kgTable.selectedFirstRow.value,
|
|
873
|
-
},
|
|
874
|
-
});
|
|
875
|
-
|
|
876
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$Props.value.isCloseModalAfterOk !== false) {
|
|
877
|
-
// 关闭弹窗
|
|
878
|
-
kgVar.kgButton.setCurrentButton(null);
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
// 重新查询列表数据
|
|
882
|
-
if (button?.reload_all_after_done_flg !== 0) {
|
|
883
|
-
kgVar.kgSearch.search({ isSearchFirstPage: true });
|
|
884
|
-
}
|
|
885
|
-
} catch (e) {
|
|
886
|
-
console.error(e);
|
|
887
|
-
emit<IKgSubmit$EventListenerParameter$onError>({ id: kgVar.fid, event: 'onError', parameter: e as any });
|
|
888
|
-
} finally {
|
|
889
|
-
kgVar.kgButton.setIsCurrentButtonRequesting({ isRequesting: false });
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
/**
|
|
894
|
-
* 渲染某个表单字段.
|
|
895
|
-
* @param varSubmitDetail
|
|
896
|
-
*/
|
|
897
|
-
function renderFormItem(varSubmitDetail: VarSubmitDetail) {
|
|
898
|
-
const vname = varSubmitDetail.var_nam!;
|
|
899
|
-
|
|
900
|
-
const controlSlot = (kgSlots ?? kgVar.slots.value)?.KgSubmit?.['KgForm.Item.control']?.[vname];
|
|
901
|
-
const controlRightSlot = (kgSlots ?? kgVar.slots.value)?.KgSubmit?.['KgForm.Item.controlRight']?.[vname];
|
|
902
|
-
|
|
903
|
-
return (
|
|
904
|
-
<KgFormItem
|
|
905
|
-
key={vname}
|
|
906
|
-
kgVarName={vname}
|
|
907
|
-
kgContext={KG_FORM_CONTEXT.SUBMIT}
|
|
908
|
-
onKgSubmit={onOk}
|
|
909
|
-
>
|
|
910
|
-
{{
|
|
911
|
-
control: isFunction(controlSlot) ? (param: IKgFormItemSlotControlParameter) => controlSlot(param) : undefined,
|
|
912
|
-
controlRight: isFunction(controlRightSlot) ? (param: IKgFormItemSlotControlRightParameter) => controlRightSlot(param) : undefined,
|
|
913
|
-
}}
|
|
914
|
-
</KgFormItem>
|
|
915
|
-
);
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* <p>渲染所有表单字段: 根据字段所属分组.<p>
|
|
920
|
-
*/
|
|
921
|
-
const renderFormItemsBySection = () => {
|
|
922
|
-
return (
|
|
923
|
-
<div class="section">
|
|
924
|
-
<Menu
|
|
925
|
-
mode={'inline'}
|
|
926
|
-
selectedKeys={sectionSelectedKeys$$.value}
|
|
927
|
-
onSelect={onSectionSelect}
|
|
928
|
-
>
|
|
929
|
-
{kgVar.kgSubmit.currentVarSubmitDetailSectionsForVisible.value.map((section) => (
|
|
930
|
-
<Menu.Item key={section}>{kgVar.t(section).value}</Menu.Item>
|
|
931
|
-
))}
|
|
932
|
-
</Menu>
|
|
933
|
-
|
|
934
|
-
<div>
|
|
935
|
-
{kgVar.kgSubmit.currentVarSubmitDetailSectionsForVisible.value.map((section: string) => {
|
|
936
|
-
return (
|
|
937
|
-
<>
|
|
938
|
-
<div
|
|
939
|
-
class="kg-section-header"
|
|
940
|
-
kg-section={section}
|
|
941
|
-
>
|
|
942
|
-
{kgVar.t(section).value}
|
|
943
|
-
</div>
|
|
944
|
-
<Row gutter={12}>{kgVar.kgSubmit.currentVarSubmitDetailsForVisible.value?.filter((i) => i.section === section)?.map(renderFormItem)}</Row>
|
|
945
|
-
</>
|
|
946
|
-
);
|
|
947
|
-
})}
|
|
948
|
-
</div>
|
|
949
|
-
</div>
|
|
950
|
-
);
|
|
951
|
-
};
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
* <p>渲染所有表单字段: 根据字段是否关键.</p>
|
|
955
|
-
* <p>关键字段放前面, 非关键字段放后面, 中间有间隔线.</p>
|
|
956
|
-
*/
|
|
957
|
-
const renderFormItemsByKey = () => (
|
|
958
|
-
<>
|
|
959
|
-
{(kgVar.kgSubmit.currentVarSubmitDetailsForKey.value?.length ?? 0) > 0 && <Row gutter={12}>{kgVar.kgSubmit.currentVarSubmitDetailsForKey.value?.map(renderFormItem)}</Row>}
|
|
960
|
-
|
|
961
|
-
{/* 关键字段和普通字段之间的分割线. */}
|
|
962
|
-
{(kgVar.kgSubmit.currentVarSubmitDetailsForKeyAndVisible.value?.length ?? 0) > 0 && (kgVar.kgSubmit.currentVarSubmitDetailsForNotKeyAndVisible.value?.length ?? 0) > 0 && <Divider />}
|
|
963
|
-
|
|
964
|
-
{(kgVar.kgSubmit.currentVarSubmitDetailsForNotKey.value?.length ?? 0) > 0 && <Row gutter={12}>{kgVar.kgSubmit.currentVarSubmitDetailsForNotKey.value?.map(renderFormItem)}</Row>}
|
|
965
|
-
|
|
966
|
-
{/* 删除时, 如果没有表单字段, 则显示提示文字. */}
|
|
967
|
-
{isDeletingWithoutSubmitDetail.value && <div style="text-align: center; padding: 6px 0 12px;">{kg.t('kg.confirmDelete', {}, '确认删除 ?')}</div>}
|
|
968
|
-
</>
|
|
969
|
-
);
|
|
970
|
-
|
|
971
|
-
/**
|
|
972
|
-
* <p>渲染所有表单字段.</p>
|
|
973
|
-
*/
|
|
974
|
-
function renderFormItems() {
|
|
975
|
-
// 当定义了字段的分组时, 优先按照分组进行显示, 其次才根据字段是否关键进行显示,
|
|
976
|
-
if (kgVar.kgSubmit.currentVarSubmitDetailSectionsForVisible.value.length > 0) {
|
|
977
|
-
return renderFormItemsBySection();
|
|
978
|
-
} else {
|
|
979
|
-
return renderFormItemsByKey();
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
/**
|
|
984
|
-
* 渲染整个表单.
|
|
985
|
-
*/
|
|
986
|
-
function renderDefault() {
|
|
987
|
-
return (
|
|
988
|
-
<Spin spinning={kgVar.kgSubmit.isLoading.value}>
|
|
989
|
-
<KgForm
|
|
990
|
-
ref={kgVar.kgSubmit.formRef}
|
|
991
|
-
model={kgVar.kgSubmit.formModel.value ?? undefined}
|
|
992
|
-
layout={kgVar.kgSubmit.currentVarSubmitConfig$Layout.value}
|
|
993
|
-
labelCol={labelCol$$.value}
|
|
994
|
-
wrapperCol={wrapperCol$$.value}
|
|
995
|
-
>
|
|
996
|
-
<div ref={kgFormRef}>{renderFormItems()}</div>
|
|
997
|
-
</KgForm>
|
|
998
|
-
</Spin>
|
|
999
|
-
);
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
/**
|
|
1003
|
-
* 渲染底部.
|
|
1004
|
-
*/
|
|
1005
|
-
function renderFooter() {
|
|
1006
|
-
return (
|
|
1007
|
-
<div>
|
|
1008
|
-
{sortBy(['CANCEL', 'OK'], (buttonCode) => {
|
|
1009
|
-
// 排序
|
|
1010
|
-
switch (buttonCode) {
|
|
1011
|
-
case 'CANCEL':
|
|
1012
|
-
return kgVar.kgSubmit.currentVarSubmitConfig$Props.value.cancelButton?.sort ?? 1;
|
|
1013
|
-
case 'OK':
|
|
1014
|
-
return kgVar.kgSubmit.currentVarSubmitConfig$Props.value.okButton?.sort ?? 2;
|
|
1015
|
-
default:
|
|
1016
|
-
return 0;
|
|
1017
|
-
}
|
|
1018
|
-
}).map((buttonCode) => {
|
|
1019
|
-
switch (buttonCode) {
|
|
1020
|
-
case 'CANCEL': {
|
|
1021
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$Props.value.cancelButton?.isShow !== false) {
|
|
1022
|
-
return (
|
|
1023
|
-
<Button
|
|
1024
|
-
type={'primary'}
|
|
1025
|
-
ghost={!isButtonCancelDisabled.value}
|
|
1026
|
-
disabled={isButtonCancelDisabled.value}
|
|
1027
|
-
onClick={onCancel}
|
|
1028
|
-
>
|
|
1029
|
-
{cancelButtonText$$.value}
|
|
1030
|
-
</Button>
|
|
1031
|
-
);
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
return null;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
case 'OK': {
|
|
1038
|
-
if (kgVar.kgSubmit.currentVarSubmitConfig$Props.value.okButton?.isShow !== false) {
|
|
1039
|
-
return (
|
|
1040
|
-
<Button
|
|
1041
|
-
type={'primary'}
|
|
1042
|
-
disabled={isButtonOkDisabled.value}
|
|
1043
|
-
danger={!!kgVar.isDeleting.value}
|
|
1044
|
-
onClick={onOk}
|
|
1045
|
-
>
|
|
1046
|
-
{isRequesting.value && (
|
|
1047
|
-
<Icon
|
|
1048
|
-
icon="eos-icons:bubble-loading"
|
|
1049
|
-
width={14}
|
|
1050
|
-
height={14}
|
|
1051
|
-
/>
|
|
1052
|
-
)}
|
|
1053
|
-
{okButtonText$$.value}
|
|
1054
|
-
</Button>
|
|
1055
|
-
);
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
return null;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
default:
|
|
1062
|
-
return null;
|
|
1063
|
-
}
|
|
1064
|
-
})}
|
|
1065
|
-
</div>
|
|
1066
|
-
);
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
/**
|
|
1070
|
-
* 渲染标题.
|
|
1071
|
-
*/
|
|
1072
|
-
function renderTitle() {
|
|
1073
|
-
return (
|
|
1074
|
-
<div
|
|
1075
|
-
title={title.value}
|
|
1076
|
-
innerHTML={title.value || ' '}
|
|
1077
|
-
/>
|
|
1078
|
-
);
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
/**
|
|
1082
|
-
* 点击左侧分组菜单.
|
|
1083
|
-
*/
|
|
1084
|
-
function onSectionSelect(selectInfo: SelectInfo) {
|
|
1085
|
-
sectionSelectedKeys$$.value = selectInfo.selectedKeys;
|
|
1086
|
-
|
|
1087
|
-
const section = String(selectInfo.selectedKeys[0]);
|
|
1088
|
-
kgFormRef.value?.querySelector(`div[kg-section="${section}"]`)?.scrollIntoView({ block: 'start' });
|
|
1089
|
-
}
|
|
1090
|
-
//endregion
|
|
1091
|
-
|
|
1092
|
-
//region LIFECYCLE
|
|
1093
|
-
//----------------------------------------------------------------------------------------------------
|
|
1094
|
-
onUnmounted(async () => {
|
|
1095
|
-
kgVar.kgSubmit.store.dispose(kgVar.fid);
|
|
1096
|
-
await onClose();
|
|
1097
|
-
});
|
|
1098
|
-
//endregion
|
|
1099
|
-
|
|
1100
|
-
return () => {
|
|
1101
|
-
return (
|
|
1102
|
-
<KgModal
|
|
1103
|
-
kg-form-id={kgVar.fid}
|
|
1104
|
-
visible={isVisible.value}
|
|
1105
|
-
mask={kgVar.kgSubmit.currentVarSubmitConfig$DisplayType.value === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.MODAL || kgVar.kgSubmit.currentVarSubmitConfig$DisplayType.value === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.DRAWER}
|
|
1106
|
-
maskClosable={false}
|
|
1107
|
-
keyboard={false}
|
|
1108
|
-
destroyOnClose={true}
|
|
1109
|
-
width={width$$.value}
|
|
1110
|
-
getContainer={getContainer}
|
|
1111
|
-
class={class$$.value}
|
|
1112
|
-
wrapClassName={wrapClass$$.value}
|
|
1113
|
-
kgFullHeight={false}
|
|
1114
|
-
kgMinWidth={minWidth$$.value}
|
|
1115
|
-
kgMaxWidth={maxWidth$$.value}
|
|
1116
|
-
kgMinHeight={minHeight$$.value}
|
|
1117
|
-
kgMaxHeight={maxHeight$$.value}
|
|
1118
|
-
kgIsDragToResize={kgVar.kgSubmit.currentVarSubmitConfig.value?.resizable_flg !== 0}
|
|
1119
|
-
kgIsShowFullscreenButton={getShowFullscreenButton.value}
|
|
1120
|
-
kgIsDefaultFullscreen={isDefaultFullscreen.value}
|
|
1121
|
-
onCancel={onCancel}
|
|
1122
|
-
>
|
|
1123
|
-
{{
|
|
1124
|
-
default: renderDefault,
|
|
1125
|
-
footer: renderFooter,
|
|
1126
|
-
title: renderTitle,
|
|
1127
|
-
}}
|
|
1128
|
-
</KgModal>
|
|
1129
|
-
);
|
|
1130
|
-
};
|
|
1131
|
-
},
|
|
1132
|
-
});
|