vue2-client 1.12.28 → 1.12.30
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/.cursorrules +19 -19
- package/.env +19 -19
- package/.env.gaslink +19 -19
- package/.env.his +19 -19
- package/.env.iot +19 -19
- package/.env.liuli +19 -19
- package/.env.revenue +19 -19
- package/.env.scada +19 -19
- package/.eslintrc.js +90 -90
- package/CHANGELOG.md +824 -824
- package/Components.md +60 -60
- package/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +45 -45
- package/docs/LowCode/lowcode.md +155 -155
- package/docs/LowCode/lowcodeForDeveloper.md +230 -230
- package/docs/index.md +30 -30
- package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +1 -0
- package/index.js +31 -31
- package/jest-transform-stub.js +8 -8
- package/jest.setup.js +7 -7
- package/jsconfig.json +19 -19
- package/package.json +108 -108
- package/public/his/editor/editor.html +51 -51
- package/public/his/editor/mock/bind_data.html +779 -779
- package/public/his/editor/mock/data_table.html +40 -40
- package/public/his/editor/mock/sign.html +75 -75
- package/public/his/editor/vender/JsBarcode.all.js +3669 -3669
- package/public/his/editor/vender/date97/My97DatePicker.htm +65 -65
- package/public/his/editor/vender/date97/WdatePicker.js +677 -677
- package/public/his/editor/vender/date97/calendar.js +4 -4
- package/public/his/editor/vender/date97/lang/en.js +13 -13
- package/public/his/editor/vender/date97/lang/zh-cn.js +13 -13
- package/public/his/editor/vender/date97/lang/zh-tw.js +13 -13
- package/public/his/editor/vender/date97/skin/WdatePicker.css +10 -10
- package/public/his/editor/vender/date97/skin/default/datepicker.css +328 -328
- package/public/his/editor/vender/date97/skin/ext/datepicker.css +308 -308
- package/public/his/editor/vender/date97/skin/whyGreen/datepicker.css +255 -255
- package/public/his/editor/vender/diff.js +1627 -1627
- package/public/his/editor/vender/editor.js +1 -1
- package/public/his/editor/vender/fabric.js +31187 -31187
- package/public/his/editor/vender/jquery/jquery.base64.js +190 -190
- package/public/his/editor/vender/jquery/jquery.js +10872 -10872
- package/public/his/editor/vender/jquery/jquery.print.js +255 -255
- package/public/his/editor/vender/jquery/zTreeStyle/zTreeStyle.css +96 -96
- package/public/his/editor/vender/mui/mui.min.css +4 -4
- package/public/his/editor/vender/mui/mui.min.js +5 -5
- package/public/his/editor/vender/mui/mui.picker.min.css +6 -6
- package/public/his/editor/vender/mui/mui.picker.min.js +6 -6
- package/public/his/editor/vender/qrcode.js +7 -7
- package/public/his/editor/vender/requirejs/require.js +2145 -2145
- package/public/his/editor/vender/signature/jSignature.CompressorSVG.js +518 -518
- package/public/his/editor/vender/signature/jSignature.UndoButton.js +164 -164
- package/public/his/editor/vender/signature/jSignature.js +1486 -1486
- package/public/his/editor/vender/validator.js +5094 -5094
- package/public/his/editor/vender/weui/weui.css +5659 -5659
- package/public/his/editor/vender/weui/weui.min.css +4 -4
- package/public/his/editor/vender/weui/weui.min.js +11 -11
- package/public/index.html +27 -27
- package/src/ReportView.js +19 -19
- package/src/assets/img/querySlotDemo.svg +15 -15
- package/src/assets/svg/badtwo.svg +1 -1
- package/src/assets/svg/goodtwo.svg +1 -1
- package/src/base-client/components/AI/AskAiBtn.vue +136 -136
- package/src/base-client/components/AI/demo.vue +31 -31
- package/src/base-client/components/common/AMisRender/index.js +3 -3
- package/src/base-client/components/common/AMisRender/index.vue +263 -263
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +470 -470
- package/src/base-client/components/common/AddressSearchCombobox/IcMapIcon.vue +16 -16
- package/src/base-client/components/common/AddressSearchCombobox/demo.vue +36 -36
- package/src/base-client/components/common/AddressSearchCombobox/ic_map.svg +6 -6
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
- package/src/base-client/components/common/CitySelect/index.js +3 -3
- package/src/base-client/components/common/CitySelect/index.md +109 -109
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +1014 -1014
- package/src/base-client/components/common/CreateQuery/index.js +3 -3
- package/src/base-client/components/common/CreateQuery/index.md +42 -42
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +452 -452
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +511 -511
- package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +149 -149
- package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
- package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
- package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
- package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
- package/src/base-client/components/common/LowCodeComponent/LowCodeEditorModal.vue +108 -108
- package/src/base-client/components/common/LowCodeComponent/LowCodeEditorPanel.vue +413 -413
- package/src/base-client/components/common/LowCodeComponent/LowCodePageOrganization.vue +502 -502
- package/src/base-client/components/common/LowCodeComponent/LowCodeRender.vue +728 -728
- package/src/base-client/components/common/LowCodeComponent/LowCodeRenderEnter.vue +29 -29
- package/src/base-client/components/common/LowCodeComponent/LowCodeUIStore.vue +219 -219
- package/src/base-client/components/common/LowCodeComponent/modal/lowCodeAddPageModal.vue +117 -117
- package/src/base-client/components/common/LowCodeComponent/modal/lowCodeCustomJSModal.vue +80 -80
- package/src/base-client/components/common/LowCodeComponent/modal/lowCodeEventEditorModal.vue +398 -398
- package/src/base-client/components/common/LowCodeComponent/modal/lowCodeLifeCycleModal.vue +65 -65
- package/src/base-client/components/common/LowCodeComponent/modal/lowCodeLogicCallbackModal.vue +64 -64
- package/src/base-client/components/common/LowCodeComponent/modal/lowCodeLogicParamModal.vue +73 -73
- package/src/base-client/components/common/LowCodeComponent/modal/lowCodeRunFunctionParamModal.vue +76 -76
- package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
- package/src/base-client/components/common/PersonSetting/index.js +3 -3
- package/src/base-client/components/common/Recording/Recording.vue +243 -243
- package/src/base-client/components/common/Recording/index.js +3 -3
- package/src/base-client/components/common/Tree/Tree.vue +149 -149
- package/src/base-client/components/common/Tree/index.js +2 -2
- package/src/base-client/components/common/Upload/index.js +3 -3
- package/src/base-client/components/common/XAddForm/XAddForm.vue +113 -113
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1146 -1146
- package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
- package/src/base-client/components/common/XAddNativeFormOA/XAddNativeFormOA.vue +303 -303
- package/src/base-client/components/common/XAddNativeFormOA/index.js +3 -3
- package/src/base-client/components/common/XAddNativeFormOA/index.md +146 -146
- package/src/base-client/components/common/XAddReport/index.js +3 -3
- package/src/base-client/components/common/XAddReport/index.md +56 -56
- package/src/base-client/components/common/XBadge/XBadge.vue +94 -94
- package/src/base-client/components/common/XButtons/XButtonDemo.vue +28 -28
- package/src/base-client/components/common/XButtons/XButtons.vue +71 -71
- package/src/base-client/components/common/XButtons/index.js +3 -3
- package/src/base-client/components/common/XButtons/index.md +61 -61
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XCheckList/XCheckList.vue +106 -106
- package/src/base-client/components/common/XCheckList/XCheckListDemo.vue +41 -41
- package/src/base-client/components/common/XCollapse/XCollapse.vue +154 -154
- package/src/base-client/components/common/XDataCard/XDataCard.vue +568 -568
- package/src/base-client/components/common/XDataCard/index.js +3 -3
- package/src/base-client/components/common/XDataCard/index.md +1 -1
- package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
- package/src/base-client/components/common/XDataDrawer/index.js +3 -3
- package/src/base-client/components/common/XDataDrawer/index.md +41 -41
- package/src/base-client/components/common/XDatePicker/demo.vue +153 -153
- package/src/base-client/components/common/XDatePicker/index.vue +269 -269
- package/src/base-client/components/common/XDescriptions/XDescriptions.vue +169 -169
- package/src/base-client/components/common/XDescriptions/index.js +3 -3
- package/src/base-client/components/common/XDescriptions/index.md +83 -83
- package/src/base-client/components/common/XDetailsView/XDetailsView.vue +238 -238
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XForm/XStatusButton.vue +54 -54
- package/src/base-client/components/common/XForm/XTreeSelect.vue +264 -264
- package/src/base-client/components/common/XForm/index.md +178 -178
- package/src/base-client/components/common/XForm/itemComponent/XClickChangeBtn/index.vue +49 -49
- package/src/base-client/components/common/XFormGroup/index.js +3 -3
- package/src/base-client/components/common/XFormGroup/index.md +38 -38
- package/src/base-client/components/common/XFormGroupDetails/XFormGroupDetails.vue +72 -72
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/common/XFormTable/demo.vue +9 -0
- package/src/base-client/components/common/XFormTable/index.md +92 -92
- package/src/base-client/components/common/XImportExcel/XImportExcel.vue +167 -167
- package/src/base-client/components/common/XLabelSelect/XLabelSelect.vue +110 -110
- package/src/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue +35 -35
- package/src/base-client/components/common/XLicensePlate/XLicensePlate.vue +193 -193
- package/src/base-client/components/common/XLicensePlate/XLicensePlateDemo.vue +48 -48
- package/src/base-client/components/common/XPrint/OpenInvoice.vue +21 -21
- package/src/base-client/components/common/XPrint/PrintBill.vue +302 -302
- package/src/base-client/components/common/XPrint/PrintHtml.js +98 -98
- package/src/base-client/components/common/XPrint/css/hiPrintCss.js +359 -359
- package/src/base-client/components/common/XPrint/css/lodopCss.js +26 -26
- package/src/base-client/components/common/XPrint/css/print-lock.css +351 -351
- package/src/base-client/components/common/XPrint/index.vue +97 -97
- package/src/base-client/components/common/XReport/XReport.vue +892 -892
- package/src/base-client/components/common/XReport/XReportDesign.vue +463 -463
- package/src/base-client/components/common/XReport/XReportJsonRender.vue +381 -381
- package/src/base-client/components/common/XReport/index.js +3 -3
- package/src/base-client/components/common/XReport/index.md +44 -44
- package/src/base-client/components/common/XReport/print.js +186 -186
- package/src/base-client/components/common/XReportDrawer/index.js +3 -3
- package/src/base-client/components/common/XReportGrid/XReport.vue +218 -163
- package/src/base-client/components/common/XReportGrid/XReportDesign.vue +68 -5
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +105 -126
- package/src/base-client/components/common/XReportGrid/index.js +3 -3
- package/src/base-client/components/common/XReportGrid/index.md +44 -44
- package/src/base-client/components/common/XReportSlot/XReportSlot.vue +110 -110
- package/src/base-client/components/common/XReportSlot/index.js +3 -3
- package/src/base-client/components/common/XReportSlot/index.md +48 -48
- package/src/base-client/components/common/XSimpleDescriptions/XSimpleDescriptions.vue +166 -166
- package/src/base-client/components/common/XSimpleDescriptions/index.js +3 -3
- package/src/base-client/components/common/XSimpleDescriptions/index.md +7 -7
- package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
- package/src/base-client/components/common/XStepView/index.js +3 -3
- package/src/base-client/components/common/XStepView/index.md +31 -31
- package/src/base-client/components/common/XTab/XTabDemo.vue +22 -22
- package/src/base-client/components/common/XTab/index.js +3 -3
- package/src/base-client/components/common/XTable/CustomFuncCel.vue +51 -51
- package/src/base-client/components/common/XTable/TableCellRenderer.vue +161 -161
- package/src/base-client/components/common/XTable/XTable.vue +3 -0
- package/src/base-client/components/common/XTable/XTableWrapper.vue +1 -1
- package/src/base-client/components/common/XTable/index.md +255 -255
- package/src/base-client/components/common/XTagGroup/index.vue +52 -52
- package/src/base-client/components/common/XTree/XTree.vue +424 -424
- package/src/base-client/components/common/XTree/index.js +3 -3
- package/src/base-client/components/common/XTree/index.md +36 -36
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +113 -113
- package/src/base-client/components/common/XTreeOne/XTreeOnePro.vue +128 -128
- package/src/base-client/components/common/richTextModal/index.vue +56 -56
- package/src/base-client/components/common/richTextModal/richDemo.vue +48 -48
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +359 -359
- package/src/base-client/components/his/XHisEditor/index.js +3 -3
- package/src/base-client/components/index.js +51 -51
- package/src/base-client/components/layout/XPageView/XErrorView.vue +11 -11
- package/src/base-client/components/layout/XPageView/XPageView.vue +155 -155
- package/src/base-client/components/layout/XPageView/index.js +3 -3
- package/src/base-client/components/layout/XPageView/index.md +38 -38
- package/src/base-client/components/layout/XTreeView/XTreeView.vue +130 -130
- package/src/base-client/components/layout/XTreeView/index.js +3 -3
- package/src/base-client/components/layout/XTreeView/index.md +46 -46
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
- package/src/base-client/plugins/AppData.js +121 -121
- package/src/base-client/plugins/Config.js +19 -19
- package/src/base-client/plugins/GetLoginInfoService.js +183 -183
- package/src/base-client/plugins/Recording.js +258 -258
- package/src/base-client/plugins/index.js +23 -23
- package/src/base-client/plugins/tabs-page-plugin.js +39 -39
- package/src/bootstrap.js +42 -42
- package/src/components/Charts/Bar.vue +62 -62
- package/src/components/Charts/ChartCard.vue +134 -134
- package/src/components/Charts/Liquid.vue +67 -67
- package/src/components/Charts/MiniArea.vue +39 -39
- package/src/components/Charts/MiniBar.vue +39 -39
- package/src/components/Charts/MiniProgress.vue +75 -75
- package/src/components/Charts/MiniSmoothArea.vue +40 -40
- package/src/components/Charts/Radar.vue +68 -68
- package/src/components/Charts/RankList.vue +77 -77
- package/src/components/Charts/TagCloud.vue +113 -113
- package/src/components/Charts/TransferBar.vue +64 -64
- package/src/components/Charts/Trend.vue +82 -82
- package/src/components/Charts/chart.less +12 -12
- package/src/components/Charts/smooth.area.less +13 -13
- package/src/components/CodeMirror/inedx.vue +118 -118
- package/src/components/CodeMirror/setting.js +40 -40
- package/src/components/FilePreview/FilePreview.vue +166 -166
- package/src/components/HeightScanner/index.vue +571 -571
- package/src/components/NumberInfo/NumberInfo.vue +54 -54
- package/src/components/NumberInfo/index.js +3 -3
- package/src/components/NumberInfo/index.less +54 -54
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/card/ChartCard.vue +79 -79
- package/src/components/chart/Bar.vue +60 -60
- package/src/components/chart/MiniArea.vue +67 -67
- package/src/components/chart/MiniBar.vue +59 -59
- package/src/components/chart/MiniProgress.vue +57 -57
- package/src/components/chart/Radar.vue +80 -80
- package/src/components/chart/RankingList.vue +60 -60
- package/src/components/chart/Trend.vue +79 -79
- package/src/components/chart/index.less +9 -9
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/checkbox/ImgCheckbox.vue +117 -117
- package/src/components/checkbox/ImgCheckboxGroup.vue +76 -76
- package/src/components/checkbox/index.js +9 -9
- package/src/components/exception/ExceptionPage.vue +70 -70
- package/src/components/g2Charts/constants.js +202 -202
- package/src/components/g2Charts/demo.vue +808 -808
- package/src/components/g2Charts/designer.vue +228 -228
- package/src/components/g2Charts/designerBaseConfig.vue +61 -61
- package/src/components/g2Charts/designerDataConfig.vue +259 -259
- package/src/components/g2Charts/designerStyleConfig.vue +16 -16
- package/src/components/g2Charts/index.vue +397 -397
- package/src/components/index.js +36 -36
- package/src/components/input/IInput.vue +66 -66
- package/src/components/menu/SideMenu.vue +75 -75
- package/src/components/menu/menu.js +273 -273
- package/src/components/setting/Setting.vue +234 -234
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/config/CreateQueryConfig.js +325 -325
- package/src/config/default/antd.config.js +89 -89
- package/src/config/default/setting.config.js +55 -55
- package/src/font-style/font.css +4 -4
- package/src/layouts/CommonLayout.vue +56 -56
- package/src/layouts/GridView.vue +0 -2
- package/src/layouts/PageLayout.vue +151 -151
- package/src/layouts/SinglePageView.vue +136 -136
- package/src/layouts/header/AdminHeader.vue +132 -132
- package/src/layouts/header/HeaderNotice.vue +177 -177
- package/src/layouts/header/InstitutionDetail.vue +181 -181
- package/src/layouts/tabs/TabsHead.vue +189 -189
- package/src/layouts/tabs/TabsView.vue +389 -389
- package/src/lib.js +1 -1
- package/src/main.js +34 -34
- package/src/mock/extend/index.js +84 -84
- package/src/mock/goods/index.js +108 -108
- package/src/pages/AMisDemo/AMisDemo.vue +325 -325
- package/src/pages/AMisDemo/AMisDemo2.vue +74 -74
- package/src/pages/DefaultExample/index.vue +77 -77
- package/src/pages/DynamicStatistics/ChartSelector.vue +331 -331
- package/src/pages/DynamicStatistics/DataTabs.vue +83 -83
- package/src/pages/DynamicStatistics/DynamicTable.vue +128 -128
- package/src/pages/DynamicStatistics/EvaluationArea.vue +69 -69
- package/src/pages/DynamicStatistics/FavoriteList.vue +50 -50
- package/src/pages/DynamicStatistics/QuestionHistoryAndFavorites.vue +591 -591
- package/src/pages/DynamicStatistics/SearchBar.vue +192 -192
- package/src/pages/DynamicStatistics/index.vue +282 -282
- package/src/pages/Example/childIndex.vue +15 -15
- package/src/pages/Example/index.vue +30 -30
- package/src/pages/NewDynamicStatistics/ChartSelector.vue +331 -331
- package/src/pages/NewDynamicStatistics/DataTabs.vue +122 -122
- package/src/pages/NewDynamicStatistics/DynamicTable.vue +128 -128
- package/src/pages/NewDynamicStatistics/EvaluationArea.vue +69 -69
- package/src/pages/NewDynamicStatistics/FavoriteList.vue +50 -50
- package/src/pages/NewDynamicStatistics/QuestionHistoryAndFavorites.vue +289 -289
- package/src/pages/NewDynamicStatistics/SearchBar.vue +193 -193
- package/src/pages/NewDynamicStatistics/index.vue +258 -258
- package/src/pages/Recording/index.vue +77 -77
- package/src/pages/ServiceReview/index.vue +284 -284
- package/src/pages/SubExample/index.vue +26 -26
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +235 -235
- package/src/pages/WorkflowDetail/WorkflowPageDetail/LeaveMessage.vue +131 -131
- package/src/pages/WorkflowDetail/WorkflowPageDetail/TrimTextTail.vue +23 -23
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +302 -302
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformationDetails.vue +276 -276
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandleReso.vue +997 -997
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowTimeline.vue +222 -222
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkOrderParentDetails.vue +233 -233
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowDetailResso.vue +261 -261
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowListResolution.vue +248 -248
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowLog.vue +73 -73
- package/src/pages/XPageViewExample/index.vue +38 -38
- package/src/pages/XReportView/index.vue +64 -64
- package/src/pages/XTreeOneProExample/index.vue +67 -67
- package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
- package/src/pages/login/Login.vue +378 -378
- package/src/pages/login/LoginV3.vue +389 -389
- package/src/pages/lowCode/lowCodeEditor.vue +1219 -1219
- package/src/pages/lowCode/lowCodeRenderPage.vue +43 -43
- package/src/pages/report/ReportTable.js +124 -124
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/pages/system/dictionary/index.vue +44 -44
- package/src/pages/system/monitor/loginInfor/index.vue +37 -37
- package/src/pages/system/monitor/operLog/index.vue +37 -37
- package/src/pages/system/settings/modifyPassword.vue +117 -117
- package/src/pages/system/ticket/index.vue +480 -480
- package/src/pages/system/ticket/submitTicketSuccess.vue +484 -484
- package/src/pages/userInfoDetailManage/ChangeMeterRecordQuery/index.vue +64 -64
- package/src/pages/userInfoDetailManage/FillCardRecordQuery/index.vue +76 -76
- package/src/pages/userInfoDetailManage/FillGasRecordQuery/index.vue +74 -74
- package/src/pages/userInfoDetailManage/InfoChangeRecordQuery/index.vue +64 -64
- package/src/pages/userInfoDetailManage/InstructRecordQuery/index.vue +64 -64
- package/src/pages/userInfoDetailManage/MachineRecordQuery/index.vue +74 -74
- package/src/pages/userInfoDetailManage/MeterParamRecordQuery/index.vue +64 -64
- package/src/pages/userInfoDetailManage/OtherChargeRecordQuery/index.vue +74 -74
- package/src/pages/userInfoDetailManage/TransferRecordQuery/index.vue +66 -66
- package/src/pages/userInfoDetailManage/UserChargeRecordQuery/index.vue +92 -92
- package/src/pages/userInfoDetailManage/UserHandRecordQuery/index.vue +86 -86
- package/src/pages/userInfoDetailManage/UserRecordQuery/index.vue +73 -73
- package/src/pages/userInfoDetailManage/WatchCollectionRecordQuery/index.vue +64 -64
- package/src/pages/userInfoDetailManage/userInfoDetailQueryTabs.vue +132 -132
- package/src/plugins/EventLogPlugin.js +33 -33
- package/src/plugins/FindParentsData.js +17 -17
- package/src/router/async/config.async.js +35 -35
- package/src/router/async/router.map.js +116 -118
- package/src/router/index.js +27 -27
- package/src/router.js +19 -19
- package/src/services/DataModel.js +30 -30
- package/src/services/LodopFuncs.js +137 -137
- package/src/services/api/TicketDetailsViewApi.js +46 -46
- package/src/services/api/cas.js +79 -79
- package/src/services/api/common.js +346 -346
- package/src/services/api/entity.js +18 -18
- package/src/services/api/index.js +17 -17
- package/src/services/api/restTools.js +145 -145
- package/src/services/api/workFlow.js +63 -63
- package/src/services/apiService.js +16 -16
- package/src/store/modules/account.js +115 -115
- package/src/store/modules/index.js +5 -5
- package/src/store/modules/lowCode.js +33 -33
- package/src/store/modules/setting.js +119 -119
- package/src/theme/default/style.less +58 -58
- package/src/theme/global.less +159 -159
- package/src/utils/authority-utils.js +85 -85
- package/src/utils/errorCode.js +6 -6
- package/src/utils/formatter.js +74 -74
- package/src/utils/htmlToPDF.js +108 -108
- package/src/utils/htmlToPDFApi.js +5 -5
- package/src/utils/login.js +188 -188
- package/src/utils/lowcode/lowcodeComponentMixin.js +120 -120
- package/src/utils/lowcode/lowcodeLog.js +29 -29
- package/src/utils/lowcode/lowcodeUtils.js +373 -373
- package/src/utils/lowcode/registerComponentForEditor.js +1 -1
- package/src/utils/lowcode/registerComponentForRender.js +11 -11
- package/src/utils/map-utils.js +47 -47
- package/src/utils/reg.js +95 -95
- package/src/utils/runEvalFunction.js +14 -14
- package/src/utils/theme-color-replacer-extend.js +92 -92
- package/src/utils/util.js +329 -329
- package/src/utils/waterMark.js +31 -31
- package/test/Amis.spec.js +164 -164
- package/test/Tree.spec.js +168 -168
- package/test/myDialog.spec.js +47 -47
- package/test/util.test.js +53 -53
- package/test/v3Api.test.js +1984 -1984
- package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
- package/src/base-client/components/common/XCollapse/XCollapseDemo.vue +0 -15
|
@@ -2,31 +2,28 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<!-- 骨架屏 -->
|
|
4
4
|
<a-card v-if="showSkeleton">
|
|
5
|
-
<a-skeleton active/>
|
|
5
|
+
<a-skeleton active />
|
|
6
6
|
</a-card>
|
|
7
7
|
<!-- 主体表格 -->
|
|
8
8
|
<XReportDesign
|
|
9
|
-
@updateImg="updateImg"
|
|
10
9
|
@selectRow="selectRow"
|
|
11
10
|
@slotRendered="slotRendered"
|
|
12
11
|
v-if="scanFinish"
|
|
13
|
-
:show-img-in-cell="showImgInCell"
|
|
14
|
-
:img-prefix="imgPrefix"
|
|
15
|
-
:use-oss-for-img="useOssForImg"
|
|
16
12
|
:display-only="displayOnly"
|
|
17
|
-
:config="
|
|
18
|
-
:slot-config-name="
|
|
19
|
-
:for-display="
|
|
13
|
+
:config="originalConfig"
|
|
14
|
+
:slot-config-name="undefined"
|
|
15
|
+
:for-display="true"
|
|
20
16
|
ref="XReportDesign"
|
|
21
17
|
:server-name="serverName"
|
|
22
18
|
:env="env"
|
|
23
19
|
:show-title="showTitle"
|
|
24
|
-
|
|
25
|
-
:no-top-border="noTopBorder"
|
|
26
|
-
:show-images="hasImages"
|
|
27
|
-
:image-list="imageList">
|
|
20
|
+
>
|
|
28
21
|
</XReportDesign>
|
|
29
|
-
<a-row
|
|
22
|
+
<a-row
|
|
23
|
+
type="flex"
|
|
24
|
+
justify="end"
|
|
25
|
+
v-if="showSaveButton"
|
|
26
|
+
>
|
|
30
27
|
<a-space>
|
|
31
28
|
<a-button @click="saveConfig">
|
|
32
29
|
提交
|
|
@@ -65,107 +62,109 @@ export default {
|
|
|
65
62
|
type: Array,
|
|
66
63
|
default: () => {
|
|
67
64
|
return []
|
|
68
|
-
}
|
|
65
|
+
},
|
|
69
66
|
},
|
|
70
67
|
// 控制用户权限,user和admin
|
|
71
68
|
authority: {
|
|
72
69
|
type: String,
|
|
73
|
-
default: 'user'
|
|
70
|
+
default: 'user',
|
|
74
71
|
},
|
|
75
72
|
// 是否为编辑模式
|
|
76
73
|
editMode: {
|
|
77
74
|
type: Boolean,
|
|
78
|
-
default: true
|
|
75
|
+
default: true,
|
|
79
76
|
},
|
|
80
77
|
// 配置名
|
|
81
78
|
configName: {
|
|
82
79
|
type: String,
|
|
83
|
-
required: true
|
|
80
|
+
required: true,
|
|
84
81
|
},
|
|
85
82
|
// 插槽名
|
|
86
83
|
activatedSlotName: {
|
|
87
84
|
type: String,
|
|
88
|
-
default: undefined
|
|
85
|
+
default: undefined,
|
|
89
86
|
},
|
|
90
87
|
// 本地配��,调试用
|
|
91
88
|
localConfig: {
|
|
92
89
|
type: Object,
|
|
93
|
-
default: undefined
|
|
90
|
+
default: undefined,
|
|
94
91
|
},
|
|
95
92
|
// 兼容老版本配置
|
|
96
93
|
dontFormat: {
|
|
97
94
|
type: Boolean,
|
|
98
|
-
default: true
|
|
95
|
+
default: true,
|
|
99
96
|
},
|
|
100
97
|
showImgInCell: {
|
|
101
98
|
type: Boolean,
|
|
102
|
-
default: false
|
|
99
|
+
default: false,
|
|
103
100
|
},
|
|
104
101
|
// 数据
|
|
105
102
|
configData: {
|
|
106
103
|
type: Object,
|
|
107
|
-
default: undefined
|
|
104
|
+
default: undefined,
|
|
108
105
|
},
|
|
109
106
|
// 命名空间
|
|
110
107
|
serverName: {
|
|
111
108
|
type: String,
|
|
112
|
-
default: process.env.VUE_APP_SYSTEM_NAME
|
|
109
|
+
default: process.env.VUE_APP_SYSTEM_NAME,
|
|
113
110
|
},
|
|
114
111
|
// 环境
|
|
115
112
|
env: {
|
|
116
113
|
type: String,
|
|
117
|
-
default: 'prod'
|
|
114
|
+
default: 'prod',
|
|
118
115
|
},
|
|
119
116
|
// 只做展示
|
|
120
117
|
displayOnly: {
|
|
121
118
|
type: Boolean,
|
|
122
|
-
default: true
|
|
119
|
+
default: true,
|
|
123
120
|
},
|
|
124
121
|
// 表格没有边距
|
|
125
122
|
noPadding: {
|
|
126
123
|
type: Boolean,
|
|
127
|
-
default: true
|
|
124
|
+
default: true,
|
|
128
125
|
},
|
|
129
126
|
// 表格没有上边框,与noPadding搭配可以实现连续表格
|
|
130
127
|
noTopBorder: {
|
|
131
128
|
type: Boolean,
|
|
132
|
-
default: false
|
|
129
|
+
default: false,
|
|
133
130
|
},
|
|
134
131
|
// 是否展示标题
|
|
135
132
|
showTitle: {
|
|
136
133
|
type: Boolean,
|
|
137
|
-
default: true
|
|
134
|
+
default: true,
|
|
138
135
|
},
|
|
139
136
|
// 是否展示保存按钮
|
|
140
137
|
showSaveButton: {
|
|
141
138
|
type: Boolean,
|
|
142
|
-
default: false
|
|
139
|
+
default: false,
|
|
143
140
|
},
|
|
144
141
|
// 是否将组件注册到外层提供的容器中,方便外侧统一保存
|
|
145
142
|
registerMap: {
|
|
146
143
|
type: Array,
|
|
147
|
-
default: undefined
|
|
144
|
+
default: undefined,
|
|
148
145
|
},
|
|
149
146
|
// 是否小插件模式,小插件模式不会有各种边境
|
|
150
147
|
isWidget: {
|
|
151
148
|
type: Boolean,
|
|
152
|
-
default: false
|
|
149
|
+
default: false,
|
|
153
150
|
},
|
|
154
151
|
// 图片是否使用OSS来保存
|
|
155
152
|
useOssForImg: {
|
|
156
153
|
type: Boolean,
|
|
157
|
-
default: true
|
|
154
|
+
default: true,
|
|
158
155
|
},
|
|
159
156
|
// 图片上传后添加前缀
|
|
160
157
|
imgPrefix: {
|
|
161
158
|
type: String,
|
|
162
|
-
default: undefined
|
|
163
|
-
}
|
|
159
|
+
default: undefined,
|
|
160
|
+
},
|
|
164
161
|
},
|
|
165
162
|
components: {
|
|
166
|
-
XAddReport: () =>
|
|
167
|
-
|
|
168
|
-
|
|
163
|
+
XAddReport: () =>
|
|
164
|
+
import('@vue2-client/base-client/components/common/XAddReport'),
|
|
165
|
+
XReportDrawer: () =>
|
|
166
|
+
import('@vue2-client/base-client/components/common/XReportDrawer'),
|
|
167
|
+
XReportDesign,
|
|
169
168
|
},
|
|
170
169
|
data () {
|
|
171
170
|
return {
|
|
@@ -198,7 +197,7 @@ export default {
|
|
|
198
197
|
dataCache: undefined,
|
|
199
198
|
// 判断哪些数据被更改了,存储对应的key
|
|
200
199
|
diff: [],
|
|
201
|
-
globalData: {}
|
|
200
|
+
globalData: {},
|
|
202
201
|
}
|
|
203
202
|
},
|
|
204
203
|
beforeDestroy () {
|
|
@@ -208,10 +207,15 @@ export default {
|
|
|
208
207
|
// 如果配置名更改了,重新获取配置
|
|
209
208
|
configName (val) {
|
|
210
209
|
if (val) {
|
|
211
|
-
getConfigByName(
|
|
212
|
-
this.
|
|
213
|
-
|
|
214
|
-
|
|
210
|
+
getConfigByName(
|
|
211
|
+
this.configName,
|
|
212
|
+
undefined,
|
|
213
|
+
(res) => {
|
|
214
|
+
this.config = res
|
|
215
|
+
this.configInit()
|
|
216
|
+
},
|
|
217
|
+
this.env === 'dev'
|
|
218
|
+
)
|
|
215
219
|
}
|
|
216
220
|
},
|
|
217
221
|
// 如果本地配置更改了,重新初始化
|
|
@@ -223,7 +227,7 @@ export default {
|
|
|
223
227
|
this.config = val
|
|
224
228
|
this.configInit()
|
|
225
229
|
}
|
|
226
|
-
}
|
|
230
|
+
},
|
|
227
231
|
},
|
|
228
232
|
},
|
|
229
233
|
provide () {
|
|
@@ -265,12 +269,20 @@ export default {
|
|
|
265
269
|
const outputList = []
|
|
266
270
|
for (const lst of inputList) {
|
|
267
271
|
// 如果列表为空或只有一个元素,则所有元素相等。比较列表中每个元素是否与第一个元素相等
|
|
268
|
-
if (
|
|
269
|
-
|
|
270
|
-
|
|
272
|
+
if (
|
|
273
|
+
lst.length >= 1 &&
|
|
274
|
+
!lst.every(
|
|
275
|
+
(x) =>
|
|
276
|
+
Array.isArray(x) ||
|
|
277
|
+
Array.isArray(lst[0]) ||
|
|
278
|
+
x.rowSpan === lst[0].rowSpan
|
|
279
|
+
)
|
|
280
|
+
) {
|
|
281
|
+
operationList = lst
|
|
282
|
+
break // 使用 break 退出整个循环
|
|
271
283
|
} else {
|
|
272
|
-
|
|
273
|
-
|
|
284
|
+
// 被操作的行
|
|
285
|
+
operationIndex += 1
|
|
274
286
|
}
|
|
275
287
|
}
|
|
276
288
|
|
|
@@ -278,62 +290,61 @@ export default {
|
|
|
278
290
|
|
|
279
291
|
// 没有需要合并的行,直接返回
|
|
280
292
|
if (operationList.length === 0) {
|
|
281
|
-
|
|
293
|
+
return inputList
|
|
282
294
|
} else {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
if (row.rowSpan !== maxRow) {
|
|
313
|
-
mergeIndexCol++ // 操作列转为下一列
|
|
314
|
-
}
|
|
295
|
+
// 当前行的最大值
|
|
296
|
+
const maxRow = Math.max(...operationList.map((item) => item.rowSpan))
|
|
297
|
+
let mergeIndexCol = 0
|
|
298
|
+
for (let index = 0; index < operationList.length; index++) {
|
|
299
|
+
const row = operationList[index]
|
|
300
|
+
let rowSpan = row.rowSpan
|
|
301
|
+
// 需要合并的行
|
|
302
|
+
let mergeIndexRow = operationIndex + 1
|
|
303
|
+
// 存放合并后的行
|
|
304
|
+
const rows = []
|
|
305
|
+
// 添加当前行
|
|
306
|
+
if (rowSpan < maxRow && mergeIndexRow < inputList.length) {
|
|
307
|
+
rows.push([row])
|
|
308
|
+
}
|
|
309
|
+
// 当前需要被操作并且操作行没有超出列表的高度
|
|
310
|
+
while (rowSpan < maxRow && mergeIndexRow < inputList.length) {
|
|
311
|
+
rowSpan += inputList[mergeIndexRow][mergeIndexCol].rowSpan
|
|
312
|
+
// 放一行到合并结果
|
|
313
|
+
rows.push([inputList[mergeIndexRow][mergeIndexCol]])
|
|
314
|
+
if (mergeIndexRow > maxMergeRow) {
|
|
315
|
+
// 记录最多操作到了哪行
|
|
316
|
+
maxMergeRow = mergeIndexRow
|
|
317
|
+
}
|
|
318
|
+
mergeIndexRow++
|
|
319
|
+
}
|
|
320
|
+
// operation_list赋值, 没有变化的,不处理
|
|
321
|
+
if (rows.length !== 0) {
|
|
322
|
+
operationList[index] = rows
|
|
315
323
|
}
|
|
324
|
+
if (row.rowSpan !== maxRow) {
|
|
325
|
+
mergeIndexCol++ // 操作列转为下一列
|
|
326
|
+
}
|
|
327
|
+
}
|
|
316
328
|
}
|
|
317
329
|
|
|
318
330
|
// 组成outputlist, operation_list前部填入
|
|
319
331
|
let putindex = 0
|
|
320
332
|
while (operationIndex > 0) {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
333
|
+
outputList.push(inputList[putindex])
|
|
334
|
+
putindex++
|
|
335
|
+
operationIndex -= 1
|
|
324
336
|
}
|
|
325
337
|
|
|
326
338
|
outputList.push(operationList)
|
|
327
339
|
|
|
328
340
|
// 组成outputlist, operation_list后部填入
|
|
329
341
|
while (maxMergeRow < inputList.length - 1) {
|
|
330
|
-
|
|
331
|
-
|
|
342
|
+
outputList.push(inputList[maxMergeRow + 1])
|
|
343
|
+
maxMergeRow += 1
|
|
332
344
|
}
|
|
333
345
|
|
|
334
346
|
return this.transformArray(outputList)
|
|
335
347
|
},
|
|
336
|
-
|
|
337
348
|
// 根据名字从注册到组件中获取组件
|
|
338
349
|
getComponentByName (componentName) {
|
|
339
350
|
console.log('内部取组件', this.$options.name, componentName)
|
|
@@ -360,7 +371,7 @@ export default {
|
|
|
360
371
|
selectedId: selectedId,
|
|
361
372
|
mixinData: mixinData,
|
|
362
373
|
outEnv: outEnv,
|
|
363
|
-
attr
|
|
374
|
+
attr,
|
|
364
375
|
})
|
|
365
376
|
},
|
|
366
377
|
openDrawer (configName, selectedId, mixinData, outEnv = {}, attr = {}) {
|
|
@@ -370,7 +381,7 @@ export default {
|
|
|
370
381
|
selectedId,
|
|
371
382
|
mixinData,
|
|
372
383
|
outEnv,
|
|
373
|
-
attr
|
|
384
|
+
attr,
|
|
374
385
|
})
|
|
375
386
|
},
|
|
376
387
|
// 向外暴露图片修改后的数据,某些外部需要自己管理图片的保存与修改
|
|
@@ -385,15 +396,19 @@ export default {
|
|
|
385
396
|
tempData = this.originalConfig.data
|
|
386
397
|
} else {
|
|
387
398
|
const tempDataKeys = Object.keys(this.activeConfig.tempData)
|
|
388
|
-
tempDataKeys.forEach(key => {
|
|
389
|
-
this.changeDeepObject(
|
|
399
|
+
tempDataKeys.forEach((key) => {
|
|
400
|
+
this.changeDeepObject(
|
|
401
|
+
this.activeConfig.data,
|
|
402
|
+
key,
|
|
403
|
+
this.activeConfig.tempData[key]
|
|
404
|
+
)
|
|
390
405
|
})
|
|
391
406
|
tempData = this.activeConfig.data
|
|
392
407
|
}
|
|
393
408
|
// 对比数据的差异
|
|
394
409
|
this.diff = []
|
|
395
410
|
this.compareProps(tempData, this.dataCache)
|
|
396
|
-
this.diff.forEach(eachDiff => {
|
|
411
|
+
this.diff.forEach((eachDiff) => {
|
|
397
412
|
const arr = eachDiff.split('.')
|
|
398
413
|
let targetData = tempData[arr[0]]
|
|
399
414
|
if (arr.length !== 1) {
|
|
@@ -419,7 +434,10 @@ export default {
|
|
|
419
434
|
this.diff.push(path + key)
|
|
420
435
|
}
|
|
421
436
|
// 如果都是对象,并且存在同样的key,递归子key
|
|
422
|
-
} else if (
|
|
437
|
+
} else if (
|
|
438
|
+
typeof obj1[key] === 'object' &&
|
|
439
|
+
typeof obj2[key] === 'object'
|
|
440
|
+
) {
|
|
423
441
|
this.compareProps(obj1[key], obj2[key], path + key + '.')
|
|
424
442
|
// 如果不是obj,对比其数据
|
|
425
443
|
} else if (obj1[key] !== obj2[key]) {
|
|
@@ -474,9 +492,9 @@ export default {
|
|
|
474
492
|
const slotsDeclare = config.slotsDeclare
|
|
475
493
|
const total = slotsDeclare.length
|
|
476
494
|
let count = 0
|
|
477
|
-
slotsDeclare.forEach(declare => {
|
|
478
|
-
config.columns.forEach(row => {
|
|
479
|
-
row.forEach(cell => {
|
|
495
|
+
slotsDeclare.forEach((declare) => {
|
|
496
|
+
config.columns.forEach((row) => {
|
|
497
|
+
row.forEach((cell) => {
|
|
480
498
|
if (cell.slotConfig === declare) {
|
|
481
499
|
count++
|
|
482
500
|
}
|
|
@@ -491,7 +509,10 @@ export default {
|
|
|
491
509
|
for (let i = 0; i < this.config.columns.length; i++) {
|
|
492
510
|
// 对原始数组进行递归,依次将该位置拆分为三个部分,当前处理位置之前的,当前处理位置,当前处理位置之后的
|
|
493
511
|
const before = this.config.columns.slice(0, i)
|
|
494
|
-
const after = this.config.columns.slice(
|
|
512
|
+
const after = this.config.columns.slice(
|
|
513
|
+
i + 1,
|
|
514
|
+
this.config.columns.length
|
|
515
|
+
)
|
|
495
516
|
|
|
496
517
|
// 将当前处理的数组交给处理的方法
|
|
497
518
|
const x = this.checkRow(this.config.columns[i])
|
|
@@ -501,7 +522,7 @@ export default {
|
|
|
501
522
|
// 拼接之前的数组
|
|
502
523
|
if (before.length > 0) {
|
|
503
524
|
if (before.length >= 1) {
|
|
504
|
-
before.forEach(item => {
|
|
525
|
+
before.forEach((item) => {
|
|
505
526
|
newArr.push(item)
|
|
506
527
|
})
|
|
507
528
|
} else {
|
|
@@ -525,7 +546,7 @@ export default {
|
|
|
525
546
|
// 拼接之后的数组
|
|
526
547
|
if (after.length > 0) {
|
|
527
548
|
if (after.length >= 1) {
|
|
528
|
-
after.forEach(item => {
|
|
549
|
+
after.forEach((item) => {
|
|
529
550
|
newArr.push(item)
|
|
530
551
|
})
|
|
531
552
|
} else {
|
|
@@ -575,21 +596,22 @@ export default {
|
|
|
575
596
|
let forEachCount = 0
|
|
576
597
|
|
|
577
598
|
// 标记所有数据
|
|
578
|
-
rowArr.forEach(cell => {
|
|
599
|
+
rowArr.forEach((cell) => {
|
|
579
600
|
forEachCount++
|
|
580
601
|
// 如果该行没有rowspan则默认其为1,不要影响统计结果
|
|
581
602
|
if (!cell.rowSpan) {
|
|
582
603
|
cell.rowSpan = 0
|
|
583
604
|
}
|
|
584
605
|
|
|
585
|
-
if (cell.text && total !== 0) {
|
|
606
|
+
if (cell.text && total !== 0) {
|
|
607
|
+
// 如果遇到了下一个声明行,证明rowspan少了一行,需要补充一个占位格
|
|
586
608
|
const nullObj = {
|
|
587
609
|
type: 'placeHolderColumn',
|
|
588
610
|
order: subRowIndex,
|
|
589
611
|
noBoarder: true,
|
|
590
612
|
needSplit: true,
|
|
591
613
|
colSpan: preColSpan,
|
|
592
|
-
dontShowRow: true
|
|
614
|
+
dontShowRow: true,
|
|
593
615
|
}
|
|
594
616
|
subRowIndex++
|
|
595
617
|
waitForAddArr.push(nullObj)
|
|
@@ -597,7 +619,10 @@ export default {
|
|
|
597
619
|
count = 0
|
|
598
620
|
titleCellFlag = false
|
|
599
621
|
firstSubLine = false
|
|
600
|
-
} else if (
|
|
622
|
+
} else if (
|
|
623
|
+
total !== count + cell.rowSpan &&
|
|
624
|
+
forEachCount === rowArr.length
|
|
625
|
+
) {
|
|
601
626
|
// 如果没有遇到了下一个声明行,但已经是当前行最后一个数据,也证明rowspan少了一行,需要补充一个占位格
|
|
602
627
|
const nullObj = {
|
|
603
628
|
type: 'placeHolderColumn',
|
|
@@ -605,7 +630,7 @@ export default {
|
|
|
605
630
|
noBoarder: true,
|
|
606
631
|
needSplit: true,
|
|
607
632
|
colSpan: preColSpan,
|
|
608
|
-
dontShowRow: true
|
|
633
|
+
dontShowRow: true,
|
|
609
634
|
}
|
|
610
635
|
subRowIndex++
|
|
611
636
|
waitForAddArr.push(nullObj)
|
|
@@ -624,13 +649,15 @@ export default {
|
|
|
624
649
|
subRowIndex = 1
|
|
625
650
|
cell.show = true
|
|
626
651
|
cell.showRowSpan = total
|
|
627
|
-
} else if (cell.rowSpan > 0 && !titleCellFlag && firstSubLine) {
|
|
652
|
+
} else if (cell.rowSpan > 0 && !titleCellFlag && firstSubLine) {
|
|
653
|
+
// 判断是否为声明行后首行,因为首行不需要移动
|
|
628
654
|
count += cell.rowSpan
|
|
629
655
|
firstSubLine = false
|
|
630
656
|
cell.noBoarder = true
|
|
631
657
|
cell.show = true
|
|
632
658
|
cell.showRowSpan = total
|
|
633
|
-
} else if (cell.rowSpan > 0 && !titleCellFlag && !firstSubLine) {
|
|
659
|
+
} else if (cell.rowSpan > 0 && !titleCellFlag && !firstSubLine) {
|
|
660
|
+
// 既非声明行,也非首行,需要移动
|
|
634
661
|
count += cell.rowSpan
|
|
635
662
|
// cell.type = 'notShow'
|
|
636
663
|
cell.needSplit = true
|
|
@@ -639,7 +666,10 @@ export default {
|
|
|
639
666
|
subRowIndex++
|
|
640
667
|
|
|
641
668
|
// 如果之前添加过空行补充位置,刚好最后一位还有内容,将其互换
|
|
642
|
-
if (
|
|
669
|
+
if (
|
|
670
|
+
forEachCount === rowArr.length &&
|
|
671
|
+
!waitForAddArr[waitForAddArr.length - 1].dataIndex
|
|
672
|
+
) {
|
|
643
673
|
waitForAddArr[waitForAddArr.length - 1].order += 1
|
|
644
674
|
cell.order -= 1
|
|
645
675
|
waitForAddArr.push(cell)
|
|
@@ -660,14 +690,14 @@ export default {
|
|
|
660
690
|
})
|
|
661
691
|
|
|
662
692
|
// 将所有不需要移动的放入original
|
|
663
|
-
rowArr.forEach(cell => {
|
|
693
|
+
rowArr.forEach((cell) => {
|
|
664
694
|
if (cell.needSplit !== true) {
|
|
665
695
|
original.push(cell)
|
|
666
696
|
}
|
|
667
697
|
})
|
|
668
698
|
|
|
669
699
|
// 增加新的数组
|
|
670
|
-
waitForAddArr.forEach(cell => {
|
|
700
|
+
waitForAddArr.forEach((cell) => {
|
|
671
701
|
const target = cell.order
|
|
672
702
|
// if (cell.type === 'notShow') {
|
|
673
703
|
// cell.type = 'inputs'
|
|
@@ -684,7 +714,7 @@ export default {
|
|
|
684
714
|
|
|
685
715
|
// 如果没有新增,将单元格边框设置为显示
|
|
686
716
|
if (addArr.length < 1) {
|
|
687
|
-
original.forEach(cell => {
|
|
717
|
+
original.forEach((cell) => {
|
|
688
718
|
if (cell.type === 'input' || cell.type === 'inputs') {
|
|
689
719
|
cell.noBoarder = false
|
|
690
720
|
}
|
|
@@ -693,7 +723,7 @@ export default {
|
|
|
693
723
|
|
|
694
724
|
return {
|
|
695
725
|
old: original,
|
|
696
|
-
add: addArr
|
|
726
|
+
add: addArr,
|
|
697
727
|
}
|
|
698
728
|
},
|
|
699
729
|
// 扫描配置,如果有插槽则拼接插槽
|
|
@@ -705,7 +735,10 @@ export default {
|
|
|
705
735
|
if (columnsArr[i][j].type === 'slot') {
|
|
706
736
|
const targetName = columnsArr[i][j].slotConfig
|
|
707
737
|
// 找不到目标插槽配置
|
|
708
|
-
if (
|
|
738
|
+
if (
|
|
739
|
+
!this.configFromWeb[targetName] ||
|
|
740
|
+
!this.configFromWeb[targetName].columns
|
|
741
|
+
) {
|
|
709
742
|
console.error('无法找到目标插槽的配置!')
|
|
710
743
|
return
|
|
711
744
|
}
|
|
@@ -716,9 +749,13 @@ export default {
|
|
|
716
749
|
let after = config.columns.slice(i + 1, config.columns.length)
|
|
717
750
|
|
|
718
751
|
const addArr = []
|
|
719
|
-
for (
|
|
752
|
+
for (
|
|
753
|
+
let k = 0;
|
|
754
|
+
k < this.configFromWeb[targetName].columns.length;
|
|
755
|
+
k++
|
|
756
|
+
) {
|
|
720
757
|
const temp = []
|
|
721
|
-
this.configFromWeb[targetName].columns[k].forEach(cell => {
|
|
758
|
+
this.configFromWeb[targetName].columns[k].forEach((cell) => {
|
|
722
759
|
temp.push(cell)
|
|
723
760
|
})
|
|
724
761
|
addArr.push(temp)
|
|
@@ -728,7 +765,7 @@ export default {
|
|
|
728
765
|
// 拼接之前的数组
|
|
729
766
|
if (before.length > 0) {
|
|
730
767
|
if (before.length >= 1) {
|
|
731
|
-
before.forEach(item => {
|
|
768
|
+
before.forEach((item) => {
|
|
732
769
|
newArr.push(item)
|
|
733
770
|
})
|
|
734
771
|
} else {
|
|
@@ -736,7 +773,7 @@ export default {
|
|
|
736
773
|
}
|
|
737
774
|
}
|
|
738
775
|
|
|
739
|
-
addArr.forEach(arr => {
|
|
776
|
+
addArr.forEach((arr) => {
|
|
740
777
|
newArr.push(arr)
|
|
741
778
|
})
|
|
742
779
|
|
|
@@ -748,7 +785,7 @@ export default {
|
|
|
748
785
|
}
|
|
749
786
|
if (after.length > 0) {
|
|
750
787
|
if (after.length >= 1) {
|
|
751
|
-
after.forEach(item => {
|
|
788
|
+
after.forEach((item) => {
|
|
752
789
|
newArr.push(item)
|
|
753
790
|
})
|
|
754
791
|
} else {
|
|
@@ -763,11 +800,20 @@ export default {
|
|
|
763
800
|
config.slotsDeclare = []
|
|
764
801
|
}
|
|
765
802
|
|
|
766
|
-
if (
|
|
767
|
-
config.data.images
|
|
803
|
+
if (
|
|
804
|
+
config.data.images &&
|
|
805
|
+
this.configFromWeb[targetName].data.images
|
|
806
|
+
) {
|
|
807
|
+
config.data.images = {
|
|
808
|
+
...config.data.images,
|
|
809
|
+
...this.configFromWeb[targetName].data.images,
|
|
810
|
+
}
|
|
768
811
|
delete this.configFromWeb[targetName].data.images
|
|
769
812
|
}
|
|
770
|
-
config.data = {
|
|
813
|
+
config.data = {
|
|
814
|
+
...config.data,
|
|
815
|
+
...this.configFromWeb[targetName].data,
|
|
816
|
+
}
|
|
771
817
|
}
|
|
772
818
|
}
|
|
773
819
|
}
|
|
@@ -776,7 +822,7 @@ export default {
|
|
|
776
822
|
// 扫描所有插槽名
|
|
777
823
|
scanConfigName (config, resut) {
|
|
778
824
|
if (config.slotsDeclare) {
|
|
779
|
-
config.slotsDeclare.forEach(name => {
|
|
825
|
+
config.slotsDeclare.forEach((name) => {
|
|
780
826
|
resut.push(name)
|
|
781
827
|
})
|
|
782
828
|
}
|
|
@@ -794,11 +840,16 @@ export default {
|
|
|
794
840
|
let count = 0
|
|
795
841
|
|
|
796
842
|
// 挨个获取插槽
|
|
797
|
-
waitForDownloadSlotName.forEach(configName => {
|
|
798
|
-
getConfigByName(
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
843
|
+
waitForDownloadSlotName.forEach((configName) => {
|
|
844
|
+
getConfigByName(
|
|
845
|
+
configName,
|
|
846
|
+
this.serverName,
|
|
847
|
+
(res) => {
|
|
848
|
+
this.configFromWeb[configName] = res
|
|
849
|
+
count++
|
|
850
|
+
},
|
|
851
|
+
this.env === 'dev'
|
|
852
|
+
)
|
|
802
853
|
})
|
|
803
854
|
|
|
804
855
|
// 使用定时器循环判断锁状态,用于多个插槽,要等待统一获取完成之后,再进行下一步初始化
|
|
@@ -838,20 +889,26 @@ export default {
|
|
|
838
889
|
this.activeConfig = this.config
|
|
839
890
|
this.showSkeleton = false
|
|
840
891
|
// 判断是否有动态Index
|
|
841
|
-
this.activeConfig.columns.forEach(row => {
|
|
842
|
-
row.forEach(cell => {
|
|
892
|
+
this.activeConfig.columns.forEach((row) => {
|
|
893
|
+
row.forEach((cell) => {
|
|
843
894
|
if (cell.dynamicDataIndex === true) {
|
|
844
895
|
// 如果有动态index,取其函数,运行函数得到真实index保存
|
|
845
896
|
// eslint-disable-next-line no-eval
|
|
846
|
-
const func = eval(
|
|
897
|
+
const func = eval(
|
|
898
|
+
'(' + cell.customFunctionForDynamicDataIndex + ')'
|
|
899
|
+
)
|
|
847
900
|
cell.dataIndex = func(this.config)
|
|
848
901
|
}
|
|
849
902
|
// 处理 自定义函数的旧逻辑
|
|
850
|
-
if (
|
|
903
|
+
if (
|
|
904
|
+
['action', 'click'].includes(cell.eventType) &&
|
|
905
|
+
cell.customFunction &&
|
|
906
|
+
!cell.events
|
|
907
|
+
) {
|
|
851
908
|
cell.events = []
|
|
852
909
|
cell.events.push({
|
|
853
910
|
type: cell.eventType,
|
|
854
|
-
customFunction: cell.customFunction
|
|
911
|
+
customFunction: cell.customFunction,
|
|
855
912
|
})
|
|
856
913
|
}
|
|
857
914
|
})
|
|
@@ -859,39 +916,32 @@ export default {
|
|
|
859
916
|
// 将数据复制到临时数据中,带有@@@的数据,我们将其整体作为一个key保存,当编辑完成后,再将其解析,回填到需要的数据中
|
|
860
917
|
this.activeConfig.tempData = {}
|
|
861
918
|
// 是否有@@@深层引用
|
|
862
|
-
this.activeConfig.columns.forEach(row => {
|
|
863
|
-
row.forEach(cell => {
|
|
919
|
+
this.activeConfig.columns.forEach((row) => {
|
|
920
|
+
row.forEach((cell) => {
|
|
864
921
|
// 将@@@解析
|
|
865
|
-
if (
|
|
866
|
-
|
|
922
|
+
if (
|
|
923
|
+
cell.dataIndex !== undefined &&
|
|
924
|
+
cell.dataIndex.indexOf('@@@') !== -1
|
|
925
|
+
) {
|
|
926
|
+
this.activeConfig.tempData[cell.dataIndex] = this.getDeepObject(
|
|
927
|
+
this.activeConfig.data,
|
|
928
|
+
cell.dataIndex
|
|
929
|
+
)
|
|
867
930
|
}
|
|
868
931
|
})
|
|
869
932
|
})
|
|
870
933
|
|
|
871
934
|
// 对配置进行转换
|
|
872
935
|
console.log('转换前配置', this.config)
|
|
873
|
-
this.originalConfig.columns = this.transformArray(
|
|
936
|
+
this.originalConfig.columns = this.transformArray(
|
|
937
|
+
JSON.parse(JSON.stringify(this.config.columns))
|
|
938
|
+
)
|
|
874
939
|
console.log('转换后的列描述', this.originalConfig.columns)
|
|
875
940
|
|
|
876
941
|
this.$nextTick(() => {
|
|
877
942
|
this.scanFinish = true
|
|
878
943
|
})
|
|
879
944
|
},
|
|
880
|
-
// 初始化JSON配置
|
|
881
|
-
jsonConfigInit () {
|
|
882
|
-
if (this.configData === undefined) {
|
|
883
|
-
console.error('未找到数据!')
|
|
884
|
-
} else {
|
|
885
|
-
this.originalConfig = Object.assign({}, this.config)
|
|
886
|
-
this.originalConfig.data = JSON.parse(JSON.stringify(this.configData))
|
|
887
|
-
this.type = 'display'
|
|
888
|
-
// this.onlyDisplay = true
|
|
889
|
-
this.showSkeleton = false
|
|
890
|
-
this.$nextTick(() => {
|
|
891
|
-
this.scanFinish = true
|
|
892
|
-
})
|
|
893
|
-
}
|
|
894
|
-
},
|
|
895
945
|
},
|
|
896
946
|
beforeMount () {
|
|
897
947
|
// 如果只是展示
|
|
@@ -912,23 +962,28 @@ export default {
|
|
|
912
962
|
this.configInit()
|
|
913
963
|
} else {
|
|
914
964
|
// 如果本地配置没有值,则从琉璃中获取
|
|
915
|
-
getConfigByName(
|
|
916
|
-
this.
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
965
|
+
getConfigByName(
|
|
966
|
+
this.configName,
|
|
967
|
+
this.serverName,
|
|
968
|
+
(res) => {
|
|
969
|
+
this.config = JSON.parse(JSON.stringify(res))
|
|
970
|
+
if (this.configData !== undefined) {
|
|
971
|
+
this.config.data = this.configData
|
|
972
|
+
}
|
|
973
|
+
if (this.config.data.images === undefined) {
|
|
974
|
+
this.config.data.images = {}
|
|
975
|
+
}
|
|
976
|
+
this.configInit()
|
|
977
|
+
},
|
|
978
|
+
this.env === 'dev'
|
|
979
|
+
)
|
|
925
980
|
}
|
|
926
981
|
},
|
|
927
982
|
computed: {
|
|
928
983
|
...mapState('account', { currUser: 'user' }),
|
|
929
984
|
widget () {
|
|
930
985
|
return this.isWidget // 返回isWidget的值
|
|
931
|
-
}
|
|
986
|
+
},
|
|
932
987
|
},
|
|
933
988
|
mounted () {
|
|
934
989
|
// 如果外界传来了registerMap,我们将本VM对象注册到map中
|
|
@@ -943,7 +998,7 @@ export default {
|
|
|
943
998
|
this.dataCache = JSON.parse(JSON.stringify(this.config.data))
|
|
944
999
|
}
|
|
945
1000
|
}
|
|
946
|
-
}
|
|
1001
|
+
},
|
|
947
1002
|
}
|
|
948
1003
|
</script>
|
|
949
1004
|
|