vue2-client 1.12.2 → 1.12.3-9.alpha
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 -0
- 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/babel.config.js +4 -1
- 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 +175 -174
- package/index.js +31 -31
- package/jest-transform-stub.js +8 -8
- package/jest.config.js +22 -22
- 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/XCardSet/XCardSet.vue +300 -0
- 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 -0
- package/src/base-client/components/common/XConversation/XConversation.vue +87 -2
- package/src/base-client/components/common/XConversation/XConversationDemo.vue +28 -28
- package/src/base-client/components/common/XDataCard/XDataCard.vue +47 -21
- 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 -259
- 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/XForm.vue +1 -1
- package/src/base-client/components/common/XForm/XFormItem.vue +1264 -1254
- package/src/base-client/components/common/XForm/XStatusButton.vue +54 -54
- package/src/base-client/components/common/XForm/XTreeSelect.vue +1 -2
- package/src/base-client/components/common/XForm/demo.vue +105 -0
- 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 +11 -3
- 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/Demo.vue +41 -41
- 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/XRate/demo.vue +102 -0
- package/src/base-client/components/common/XRate/index.vue +136 -0
- 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 +240 -305
- package/src/base-client/components/common/XReportGrid/XReportDemo.vue +0 -2
- package/src/base-client/components/common/XReportGrid/XReportDesign.vue +115 -345
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +100 -723
- 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 +244 -240
- 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/XHDescriptions/XHDescriptions.vue +172 -0
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +360 -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 +43 -45
- 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/logic/plugins/common/DateTools.js +3 -0
- package/src/logic/plugins/common/VueTools.js +30 -0
- package/src/logic/plugins/index.js +3 -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/LogicCallExample/index.vue +10 -0
- 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/WorkFlowDemo.vue +47 -32
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +235 -230
- 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/WorkFlowHandle.vue +876 -864
- 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/index.vue +82 -82
- package/src/pages/userInfoDetailManage/userInfoDetailQueryTabs.vue +132 -132
- package/src/plugins/EventLogPlugin.js +33 -33
- package/src/plugins/FindParentsData.js +17 -17
- package/src/plugins/HiPrintPlugin.js +164 -124
- package/src/router/async/config.async.js +35 -35
- package/src/router/async/router.map.js +117 -116
- 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/services/v3Api.js +116 -116
- 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/EncryptUtil.js +6 -7
- 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/indexedDB.js +3 -1
- 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/request.js +4 -8
- package/src/utils/routerUtil.js +17 -0
- 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/request.test.js +17 -17
- 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/.babelrc +0 -3
- package/src/base-client/components/common/XReportGrid/XReportJsonRender.vue +0 -380
|
@@ -2,85 +2,37 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<a-button @click="cancelConfig">
|
|
37
|
-
取消
|
|
38
|
-
</a-button>
|
|
39
|
-
</a-space>
|
|
40
|
-
</a-row>
|
|
41
|
-
|
|
42
|
-
</template>
|
|
43
|
-
<template v-else>
|
|
44
|
-
<!-- 用以包裹整个页面 -->
|
|
45
|
-
<div v-if="!showSkeleton">
|
|
46
|
-
<!-- 切换菜单 -->
|
|
47
|
-
<a-radio-group
|
|
48
|
-
v-model="type"
|
|
49
|
-
default-value="a"
|
|
50
|
-
button-style="solid"
|
|
51
|
-
@change="tabChanged"
|
|
52
|
-
v-show="!onlyDisplay && editMode">
|
|
53
|
-
<a-radio-button value="design" v-if="!onlyDisplay">
|
|
54
|
-
设计
|
|
55
|
-
</a-radio-button>
|
|
56
|
-
<a-radio-button value="display" style="border-radius: 0">
|
|
57
|
-
预览
|
|
58
|
-
</a-radio-button>
|
|
59
|
-
</a-radio-group>
|
|
60
|
-
<!-- 主体表格 -->
|
|
61
|
-
<XReportDesign
|
|
62
|
-
v-if="scanFinish"
|
|
63
|
-
@updateImg="updateImg"
|
|
64
|
-
@selectRow="selectRow"
|
|
65
|
-
@slotRendered="slotRendered"
|
|
66
|
-
:show-img-in-cell="showImgInCell"
|
|
67
|
-
:img-prefix="imgPrefix"
|
|
68
|
-
:use-oss-for-img="useOssForImg"
|
|
69
|
-
:display-only="displayOnly"
|
|
70
|
-
:config="type === 'display' ? originalConfig : activeConfig"
|
|
71
|
-
:slot-config-name="type === 'display' ? undefined : activatedSlotName"
|
|
72
|
-
:for-display="type === 'display'"
|
|
73
|
-
:no-padding="noPadding"
|
|
74
|
-
:no-top-border="noTopBorder"
|
|
75
|
-
:show-title="showTitle"
|
|
76
|
-
ref="XReportDesign"
|
|
77
|
-
:server-name="serverName"
|
|
78
|
-
:env="env"
|
|
79
|
-
:show-images="hasImages"
|
|
80
|
-
:image-list="imageList">
|
|
81
|
-
</XReportDesign>
|
|
82
|
-
</div>
|
|
83
|
-
</template>
|
|
7
|
+
<!-- 主体表格 -->
|
|
8
|
+
<XReportDesign
|
|
9
|
+
@selectRow="selectRow"
|
|
10
|
+
@slotRendered="slotRendered"
|
|
11
|
+
v-if="scanFinish"
|
|
12
|
+
:display-only="displayOnly"
|
|
13
|
+
:config="originalConfig"
|
|
14
|
+
:slot-config-name="undefined"
|
|
15
|
+
:for-display="true"
|
|
16
|
+
ref="XReportDesign"
|
|
17
|
+
:server-name="serverName"
|
|
18
|
+
:env="env"
|
|
19
|
+
:show-title="showTitle"
|
|
20
|
+
>
|
|
21
|
+
</XReportDesign>
|
|
22
|
+
<a-row
|
|
23
|
+
type="flex"
|
|
24
|
+
justify="end"
|
|
25
|
+
v-if="showSaveButton"
|
|
26
|
+
>
|
|
27
|
+
<a-space>
|
|
28
|
+
<a-button @click="saveConfig">
|
|
29
|
+
提交
|
|
30
|
+
</a-button>
|
|
31
|
+
<a-button @click="cancelConfig">
|
|
32
|
+
取消
|
|
33
|
+
</a-button>
|
|
34
|
+
</a-space>
|
|
35
|
+
</a-row>
|
|
84
36
|
<!-- 弹出框 -->
|
|
85
37
|
<x-add-report
|
|
86
38
|
:env="env"
|
|
@@ -96,11 +48,9 @@
|
|
|
96
48
|
|
|
97
49
|
<script>
|
|
98
50
|
// 转PDF用
|
|
99
|
-
import HtmlToPdf from '@vue2-client/utils/htmlToPDF'
|
|
100
51
|
import { mapState } from 'vuex'
|
|
101
52
|
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
102
53
|
import XReportDesign from './XReportDesign.vue'
|
|
103
|
-
import { printElement } from './print'
|
|
104
54
|
import { executeStrFunctionByContext } from '@vue2-client/utils/runEvalFunction'
|
|
105
55
|
|
|
106
56
|
// import XAddReport from '@vue2-client/base-client/components/common/XAddReport'
|
|
@@ -112,107 +62,109 @@ export default {
|
|
|
112
62
|
type: Array,
|
|
113
63
|
default: () => {
|
|
114
64
|
return []
|
|
115
|
-
}
|
|
65
|
+
},
|
|
116
66
|
},
|
|
117
67
|
// 控制用户权限,user和admin
|
|
118
68
|
authority: {
|
|
119
69
|
type: String,
|
|
120
|
-
default: 'user'
|
|
70
|
+
default: 'user',
|
|
121
71
|
},
|
|
122
72
|
// 是否为编辑模式
|
|
123
73
|
editMode: {
|
|
124
74
|
type: Boolean,
|
|
125
|
-
default: true
|
|
75
|
+
default: true,
|
|
126
76
|
},
|
|
127
77
|
// 配置名
|
|
128
78
|
configName: {
|
|
129
79
|
type: String,
|
|
130
|
-
required: true
|
|
80
|
+
required: true,
|
|
131
81
|
},
|
|
132
82
|
// 插槽名
|
|
133
83
|
activatedSlotName: {
|
|
134
84
|
type: String,
|
|
135
|
-
default: undefined
|
|
85
|
+
default: undefined,
|
|
136
86
|
},
|
|
137
87
|
// 本地配��,调试用
|
|
138
88
|
localConfig: {
|
|
139
89
|
type: Object,
|
|
140
|
-
default: undefined
|
|
90
|
+
default: undefined,
|
|
141
91
|
},
|
|
142
92
|
// 兼容老版本配置
|
|
143
93
|
dontFormat: {
|
|
144
94
|
type: Boolean,
|
|
145
|
-
default: true
|
|
95
|
+
default: true,
|
|
146
96
|
},
|
|
147
97
|
showImgInCell: {
|
|
148
98
|
type: Boolean,
|
|
149
|
-
default: false
|
|
99
|
+
default: false,
|
|
150
100
|
},
|
|
151
101
|
// 数据
|
|
152
102
|
configData: {
|
|
153
103
|
type: Object,
|
|
154
|
-
default: undefined
|
|
104
|
+
default: undefined,
|
|
155
105
|
},
|
|
156
106
|
// 命名空间
|
|
157
107
|
serverName: {
|
|
158
108
|
type: String,
|
|
159
|
-
default: process.env.VUE_APP_SYSTEM_NAME
|
|
109
|
+
default: process.env.VUE_APP_SYSTEM_NAME,
|
|
160
110
|
},
|
|
161
111
|
// 环境
|
|
162
112
|
env: {
|
|
163
113
|
type: String,
|
|
164
|
-
default: 'prod'
|
|
114
|
+
default: 'prod',
|
|
165
115
|
},
|
|
166
116
|
// 只做展示
|
|
167
117
|
displayOnly: {
|
|
168
118
|
type: Boolean,
|
|
169
|
-
default: true
|
|
119
|
+
default: true,
|
|
170
120
|
},
|
|
171
121
|
// 表格没有边距
|
|
172
122
|
noPadding: {
|
|
173
123
|
type: Boolean,
|
|
174
|
-
default: true
|
|
124
|
+
default: true,
|
|
175
125
|
},
|
|
176
126
|
// 表格没有上边框,与noPadding搭配可以实现连续表格
|
|
177
127
|
noTopBorder: {
|
|
178
128
|
type: Boolean,
|
|
179
|
-
default: false
|
|
129
|
+
default: false,
|
|
180
130
|
},
|
|
181
131
|
// 是否展示标题
|
|
182
132
|
showTitle: {
|
|
183
133
|
type: Boolean,
|
|
184
|
-
default: true
|
|
134
|
+
default: true,
|
|
185
135
|
},
|
|
186
136
|
// 是否展示保存按钮
|
|
187
137
|
showSaveButton: {
|
|
188
138
|
type: Boolean,
|
|
189
|
-
default: false
|
|
139
|
+
default: false,
|
|
190
140
|
},
|
|
191
141
|
// 是否将组件注册到外层提供的容器中,方便外侧统一保存
|
|
192
142
|
registerMap: {
|
|
193
143
|
type: Array,
|
|
194
|
-
default: undefined
|
|
144
|
+
default: undefined,
|
|
195
145
|
},
|
|
196
146
|
// 是否小插件模式,小插件模式不会有各种边境
|
|
197
147
|
isWidget: {
|
|
198
148
|
type: Boolean,
|
|
199
|
-
default: false
|
|
149
|
+
default: false,
|
|
200
150
|
},
|
|
201
151
|
// 图片是否使用OSS来保存
|
|
202
152
|
useOssForImg: {
|
|
203
153
|
type: Boolean,
|
|
204
|
-
default: true
|
|
154
|
+
default: true,
|
|
205
155
|
},
|
|
206
156
|
// 图片上传后添加前缀
|
|
207
157
|
imgPrefix: {
|
|
208
158
|
type: String,
|
|
209
|
-
default: undefined
|
|
210
|
-
}
|
|
159
|
+
default: undefined,
|
|
160
|
+
},
|
|
211
161
|
},
|
|
212
162
|
components: {
|
|
213
|
-
XAddReport: () =>
|
|
214
|
-
|
|
215
|
-
|
|
163
|
+
XAddReport: () =>
|
|
164
|
+
import('@vue2-client/base-client/components/common/XAddReport'),
|
|
165
|
+
XReportDrawer: () =>
|
|
166
|
+
import('@vue2-client/base-client/components/common/XReportDrawer'),
|
|
167
|
+
XReportDesign,
|
|
216
168
|
},
|
|
217
169
|
data () {
|
|
218
170
|
return {
|
|
@@ -245,7 +197,7 @@ export default {
|
|
|
245
197
|
dataCache: undefined,
|
|
246
198
|
// 判断哪些数据被更改了,存储对应的key
|
|
247
199
|
diff: [],
|
|
248
|
-
globalData: {}
|
|
200
|
+
globalData: {},
|
|
249
201
|
}
|
|
250
202
|
},
|
|
251
203
|
beforeDestroy () {
|
|
@@ -255,10 +207,15 @@ export default {
|
|
|
255
207
|
// 如果配置名更改了,重新获取配置
|
|
256
208
|
configName (val) {
|
|
257
209
|
if (val) {
|
|
258
|
-
getConfigByName(
|
|
259
|
-
this.
|
|
260
|
-
|
|
261
|
-
|
|
210
|
+
getConfigByName(
|
|
211
|
+
this.configName,
|
|
212
|
+
undefined,
|
|
213
|
+
(res) => {
|
|
214
|
+
this.config = res
|
|
215
|
+
this.configInit()
|
|
216
|
+
},
|
|
217
|
+
this.env === 'dev'
|
|
218
|
+
)
|
|
262
219
|
}
|
|
263
220
|
},
|
|
264
221
|
// 如果本地配置更改了,重新初始化
|
|
@@ -270,13 +227,14 @@ export default {
|
|
|
270
227
|
this.config = val
|
|
271
228
|
this.configInit()
|
|
272
229
|
}
|
|
273
|
-
}
|
|
230
|
+
},
|
|
274
231
|
},
|
|
275
232
|
},
|
|
276
233
|
provide () {
|
|
277
234
|
return {
|
|
278
235
|
runLogic: runLogic,
|
|
279
236
|
openDialog: this.openDialog,
|
|
237
|
+
openDrawer: this.openDrawer,
|
|
280
238
|
registerComponent: this.registerComponent,
|
|
281
239
|
getComponentByName: this.getComponentByName,
|
|
282
240
|
getParentComponentByName: this.getComponentByName,
|
|
@@ -311,12 +269,20 @@ export default {
|
|
|
311
269
|
const outputList = []
|
|
312
270
|
for (const lst of inputList) {
|
|
313
271
|
// 如果列表为空或只有一个元素,则所有元素相等。比较列表中每个元素是否与第一个元素相等
|
|
314
|
-
if (
|
|
315
|
-
|
|
316
|
-
|
|
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 退出整个循环
|
|
317
283
|
} else {
|
|
318
|
-
|
|
319
|
-
|
|
284
|
+
// 被操作的行
|
|
285
|
+
operationIndex += 1
|
|
320
286
|
}
|
|
321
287
|
}
|
|
322
288
|
|
|
@@ -324,62 +290,61 @@ export default {
|
|
|
324
290
|
|
|
325
291
|
// 没有需要合并的行,直接返回
|
|
326
292
|
if (operationList.length === 0) {
|
|
327
|
-
|
|
293
|
+
return inputList
|
|
328
294
|
} else {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
if (row.rowSpan !== maxRow) {
|
|
359
|
-
mergeIndexCol++ // 操作列转为下一列
|
|
360
|
-
}
|
|
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
|
|
361
323
|
}
|
|
324
|
+
if (row.rowSpan !== maxRow) {
|
|
325
|
+
mergeIndexCol++ // 操作列转为下一列
|
|
326
|
+
}
|
|
327
|
+
}
|
|
362
328
|
}
|
|
363
329
|
|
|
364
330
|
// 组成outputlist, operation_list前部填入
|
|
365
331
|
let putindex = 0
|
|
366
332
|
while (operationIndex > 0) {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
333
|
+
outputList.push(inputList[putindex])
|
|
334
|
+
putindex++
|
|
335
|
+
operationIndex -= 1
|
|
370
336
|
}
|
|
371
337
|
|
|
372
338
|
outputList.push(operationList)
|
|
373
339
|
|
|
374
340
|
// 组成outputlist, operation_list后部填入
|
|
375
341
|
while (maxMergeRow < inputList.length - 1) {
|
|
376
|
-
|
|
377
|
-
|
|
342
|
+
outputList.push(inputList[maxMergeRow + 1])
|
|
343
|
+
maxMergeRow += 1
|
|
378
344
|
}
|
|
379
345
|
|
|
380
346
|
return this.transformArray(outputList)
|
|
381
347
|
},
|
|
382
|
-
|
|
383
348
|
// 根据名字从注册到组件中获取组件
|
|
384
349
|
getComponentByName (componentName) {
|
|
385
350
|
console.log('内部取组件', this.$options.name, componentName)
|
|
@@ -406,7 +371,7 @@ export default {
|
|
|
406
371
|
selectedId: selectedId,
|
|
407
372
|
mixinData: mixinData,
|
|
408
373
|
outEnv: outEnv,
|
|
409
|
-
attr
|
|
374
|
+
attr,
|
|
410
375
|
})
|
|
411
376
|
},
|
|
412
377
|
openDrawer (configName, selectedId, mixinData, outEnv = {}, attr = {}) {
|
|
@@ -416,7 +381,7 @@ export default {
|
|
|
416
381
|
selectedId,
|
|
417
382
|
mixinData,
|
|
418
383
|
outEnv,
|
|
419
|
-
attr
|
|
384
|
+
attr,
|
|
420
385
|
})
|
|
421
386
|
},
|
|
422
387
|
// 向外暴露图片修改后的数据,某些外部需要自己管理图片的保存与修改
|
|
@@ -431,15 +396,19 @@ export default {
|
|
|
431
396
|
tempData = this.originalConfig.data
|
|
432
397
|
} else {
|
|
433
398
|
const tempDataKeys = Object.keys(this.activeConfig.tempData)
|
|
434
|
-
tempDataKeys.forEach(key => {
|
|
435
|
-
this.changeDeepObject(
|
|
399
|
+
tempDataKeys.forEach((key) => {
|
|
400
|
+
this.changeDeepObject(
|
|
401
|
+
this.activeConfig.data,
|
|
402
|
+
key,
|
|
403
|
+
this.activeConfig.tempData[key]
|
|
404
|
+
)
|
|
436
405
|
})
|
|
437
406
|
tempData = this.activeConfig.data
|
|
438
407
|
}
|
|
439
408
|
// 对比数据的差异
|
|
440
409
|
this.diff = []
|
|
441
410
|
this.compareProps(tempData, this.dataCache)
|
|
442
|
-
this.diff.forEach(eachDiff => {
|
|
411
|
+
this.diff.forEach((eachDiff) => {
|
|
443
412
|
const arr = eachDiff.split('.')
|
|
444
413
|
let targetData = tempData[arr[0]]
|
|
445
414
|
if (arr.length !== 1) {
|
|
@@ -465,7 +434,10 @@ export default {
|
|
|
465
434
|
this.diff.push(path + key)
|
|
466
435
|
}
|
|
467
436
|
// 如果都是对象,并且存在同样的key,递归子key
|
|
468
|
-
} else if (
|
|
437
|
+
} else if (
|
|
438
|
+
typeof obj1[key] === 'object' &&
|
|
439
|
+
typeof obj2[key] === 'object'
|
|
440
|
+
) {
|
|
469
441
|
this.compareProps(obj1[key], obj2[key], path + key + '.')
|
|
470
442
|
// 如果不是obj,对比其数据
|
|
471
443
|
} else if (obj1[key] !== obj2[key]) {
|
|
@@ -520,9 +492,9 @@ export default {
|
|
|
520
492
|
const slotsDeclare = config.slotsDeclare
|
|
521
493
|
const total = slotsDeclare.length
|
|
522
494
|
let count = 0
|
|
523
|
-
slotsDeclare.forEach(declare => {
|
|
524
|
-
config.columns.forEach(row => {
|
|
525
|
-
row.forEach(cell => {
|
|
495
|
+
slotsDeclare.forEach((declare) => {
|
|
496
|
+
config.columns.forEach((row) => {
|
|
497
|
+
row.forEach((cell) => {
|
|
526
498
|
if (cell.slotConfig === declare) {
|
|
527
499
|
count++
|
|
528
500
|
}
|
|
@@ -532,66 +504,15 @@ export default {
|
|
|
532
504
|
|
|
533
505
|
return count === total
|
|
534
506
|
},
|
|
535
|
-
// 切换了标签页
|
|
536
|
-
tabChanged (key) {
|
|
537
|
-
this.scanFinish = false
|
|
538
|
-
this.originalConfig.data = { ...this.originalConfig.data, ...this.config.data }
|
|
539
|
-
this.config.data = this.originalConfig.data
|
|
540
|
-
if (this.type === 'display') {
|
|
541
|
-
const tempDataKeys = Object.keys(this.activeConfig.tempData)
|
|
542
|
-
tempDataKeys.forEach(key => {
|
|
543
|
-
this.changeDeepObject(this.activeConfig.data, key, this.activeConfig.tempData[key])
|
|
544
|
-
})
|
|
545
|
-
let count = 0
|
|
546
|
-
this.imageList = []
|
|
547
|
-
const keys = Object.keys(this.config.data.images)
|
|
548
|
-
keys.forEach(key => {
|
|
549
|
-
if (this.config.data.images[key].length > 0) {
|
|
550
|
-
this.imageList = [...this.imageList, ...this.config.data.images[key]]
|
|
551
|
-
count++
|
|
552
|
-
}
|
|
553
|
-
})
|
|
554
|
-
this.hasImages = count > 0
|
|
555
|
-
} else {
|
|
556
|
-
this.hasImages = false
|
|
557
|
-
}
|
|
558
|
-
this.$nextTick(() => {
|
|
559
|
-
this.scanFinish = true
|
|
560
|
-
})
|
|
561
|
-
},
|
|
562
|
-
// 获取当前日期,为保存文件命名用
|
|
563
|
-
getDate () {
|
|
564
|
-
const currentDate = new Date()
|
|
565
|
-
|
|
566
|
-
const year = currentDate.getFullYear()
|
|
567
|
-
const month = String(currentDate.getMonth() + 1).padStart(2, '0')
|
|
568
|
-
const day = String(currentDate.getDate()).padStart(2, '0')
|
|
569
|
-
|
|
570
|
-
const formattedDate = `${year}_${month}_${day}`
|
|
571
|
-
|
|
572
|
-
return formattedDate
|
|
573
|
-
},
|
|
574
|
-
// 打印
|
|
575
|
-
printDocument () {
|
|
576
|
-
// x-report
|
|
577
|
-
const printContent = window.rawDocument.getElementById('printReady')
|
|
578
|
-
printElement(printContent)
|
|
579
|
-
this.$message.success('操作成功!')
|
|
580
|
-
},
|
|
581
|
-
// 导出PDF
|
|
582
|
-
exportPDF () {
|
|
583
|
-
const date = this.getDate()
|
|
584
|
-
let title = this.config.title
|
|
585
|
-
title = title.replace(/<[^>]+>/g, '')
|
|
586
|
-
const fileName = date + '' + title
|
|
587
|
-
HtmlToPdf.getPdf(fileName, '#printReady')
|
|
588
|
-
},
|
|
589
507
|
// 用于分割配置中的colums,将需要处理的数组提取出来
|
|
590
508
|
formatConfigRow () {
|
|
591
509
|
for (let i = 0; i < this.config.columns.length; i++) {
|
|
592
510
|
// 对原始数组进行递归,依次将该位置拆分为三个部分,当前处理位置之前的,当前处理位置,当前处理位置之后的
|
|
593
511
|
const before = this.config.columns.slice(0, i)
|
|
594
|
-
const after = this.config.columns.slice(
|
|
512
|
+
const after = this.config.columns.slice(
|
|
513
|
+
i + 1,
|
|
514
|
+
this.config.columns.length
|
|
515
|
+
)
|
|
595
516
|
|
|
596
517
|
// 将当前处理的数组交给处理的方法
|
|
597
518
|
const x = this.checkRow(this.config.columns[i])
|
|
@@ -601,7 +522,7 @@ export default {
|
|
|
601
522
|
// 拼接之前的数组
|
|
602
523
|
if (before.length > 0) {
|
|
603
524
|
if (before.length >= 1) {
|
|
604
|
-
before.forEach(item => {
|
|
525
|
+
before.forEach((item) => {
|
|
605
526
|
newArr.push(item)
|
|
606
527
|
})
|
|
607
528
|
} else {
|
|
@@ -625,7 +546,7 @@ export default {
|
|
|
625
546
|
// 拼接之后的数组
|
|
626
547
|
if (after.length > 0) {
|
|
627
548
|
if (after.length >= 1) {
|
|
628
|
-
after.forEach(item => {
|
|
549
|
+
after.forEach((item) => {
|
|
629
550
|
newArr.push(item)
|
|
630
551
|
})
|
|
631
552
|
} else {
|
|
@@ -675,21 +596,22 @@ export default {
|
|
|
675
596
|
let forEachCount = 0
|
|
676
597
|
|
|
677
598
|
// 标记所有数据
|
|
678
|
-
rowArr.forEach(cell => {
|
|
599
|
+
rowArr.forEach((cell) => {
|
|
679
600
|
forEachCount++
|
|
680
601
|
// 如果该行没有rowspan则默认其为1,不要影响统计结果
|
|
681
602
|
if (!cell.rowSpan) {
|
|
682
603
|
cell.rowSpan = 0
|
|
683
604
|
}
|
|
684
605
|
|
|
685
|
-
if (cell.text && total !== 0) {
|
|
606
|
+
if (cell.text && total !== 0) {
|
|
607
|
+
// 如果遇到了下一个声明行,证明rowspan少了一行,需要补充一个占位格
|
|
686
608
|
const nullObj = {
|
|
687
609
|
type: 'placeHolderColumn',
|
|
688
610
|
order: subRowIndex,
|
|
689
611
|
noBoarder: true,
|
|
690
612
|
needSplit: true,
|
|
691
613
|
colSpan: preColSpan,
|
|
692
|
-
dontShowRow: true
|
|
614
|
+
dontShowRow: true,
|
|
693
615
|
}
|
|
694
616
|
subRowIndex++
|
|
695
617
|
waitForAddArr.push(nullObj)
|
|
@@ -697,7 +619,10 @@ export default {
|
|
|
697
619
|
count = 0
|
|
698
620
|
titleCellFlag = false
|
|
699
621
|
firstSubLine = false
|
|
700
|
-
} else if (
|
|
622
|
+
} else if (
|
|
623
|
+
total !== count + cell.rowSpan &&
|
|
624
|
+
forEachCount === rowArr.length
|
|
625
|
+
) {
|
|
701
626
|
// 如果没有遇到了下一个声明行,但已经是当前行最后一个数据,也证明rowspan少了一行,需要补充一个占位格
|
|
702
627
|
const nullObj = {
|
|
703
628
|
type: 'placeHolderColumn',
|
|
@@ -705,7 +630,7 @@ export default {
|
|
|
705
630
|
noBoarder: true,
|
|
706
631
|
needSplit: true,
|
|
707
632
|
colSpan: preColSpan,
|
|
708
|
-
dontShowRow: true
|
|
633
|
+
dontShowRow: true,
|
|
709
634
|
}
|
|
710
635
|
subRowIndex++
|
|
711
636
|
waitForAddArr.push(nullObj)
|
|
@@ -724,13 +649,15 @@ export default {
|
|
|
724
649
|
subRowIndex = 1
|
|
725
650
|
cell.show = true
|
|
726
651
|
cell.showRowSpan = total
|
|
727
|
-
} else if (cell.rowSpan > 0 && !titleCellFlag && firstSubLine) {
|
|
652
|
+
} else if (cell.rowSpan > 0 && !titleCellFlag && firstSubLine) {
|
|
653
|
+
// 判断是否为声明行后首行,因为首行不需要移动
|
|
728
654
|
count += cell.rowSpan
|
|
729
655
|
firstSubLine = false
|
|
730
656
|
cell.noBoarder = true
|
|
731
657
|
cell.show = true
|
|
732
658
|
cell.showRowSpan = total
|
|
733
|
-
} else if (cell.rowSpan > 0 && !titleCellFlag && !firstSubLine) {
|
|
659
|
+
} else if (cell.rowSpan > 0 && !titleCellFlag && !firstSubLine) {
|
|
660
|
+
// 既非声明行,也非首行,需要移动
|
|
734
661
|
count += cell.rowSpan
|
|
735
662
|
// cell.type = 'notShow'
|
|
736
663
|
cell.needSplit = true
|
|
@@ -739,7 +666,10 @@ export default {
|
|
|
739
666
|
subRowIndex++
|
|
740
667
|
|
|
741
668
|
// 如果之前添加过空行补充位置,刚好最后一位还有内容,将其互换
|
|
742
|
-
if (
|
|
669
|
+
if (
|
|
670
|
+
forEachCount === rowArr.length &&
|
|
671
|
+
!waitForAddArr[waitForAddArr.length - 1].dataIndex
|
|
672
|
+
) {
|
|
743
673
|
waitForAddArr[waitForAddArr.length - 1].order += 1
|
|
744
674
|
cell.order -= 1
|
|
745
675
|
waitForAddArr.push(cell)
|
|
@@ -760,14 +690,14 @@ export default {
|
|
|
760
690
|
})
|
|
761
691
|
|
|
762
692
|
// 将所有不需要移动的放入original
|
|
763
|
-
rowArr.forEach(cell => {
|
|
693
|
+
rowArr.forEach((cell) => {
|
|
764
694
|
if (cell.needSplit !== true) {
|
|
765
695
|
original.push(cell)
|
|
766
696
|
}
|
|
767
697
|
})
|
|
768
698
|
|
|
769
699
|
// 增加新的数组
|
|
770
|
-
waitForAddArr.forEach(cell => {
|
|
700
|
+
waitForAddArr.forEach((cell) => {
|
|
771
701
|
const target = cell.order
|
|
772
702
|
// if (cell.type === 'notShow') {
|
|
773
703
|
// cell.type = 'inputs'
|
|
@@ -784,7 +714,7 @@ export default {
|
|
|
784
714
|
|
|
785
715
|
// 如果没有新增,将单元格边框设置为显示
|
|
786
716
|
if (addArr.length < 1) {
|
|
787
|
-
original.forEach(cell => {
|
|
717
|
+
original.forEach((cell) => {
|
|
788
718
|
if (cell.type === 'input' || cell.type === 'inputs') {
|
|
789
719
|
cell.noBoarder = false
|
|
790
720
|
}
|
|
@@ -793,7 +723,7 @@ export default {
|
|
|
793
723
|
|
|
794
724
|
return {
|
|
795
725
|
old: original,
|
|
796
|
-
add: addArr
|
|
726
|
+
add: addArr,
|
|
797
727
|
}
|
|
798
728
|
},
|
|
799
729
|
// 扫描配置,如果有插槽则拼接插槽
|
|
@@ -805,7 +735,10 @@ export default {
|
|
|
805
735
|
if (columnsArr[i][j].type === 'slot') {
|
|
806
736
|
const targetName = columnsArr[i][j].slotConfig
|
|
807
737
|
// 找不到目标插槽配置
|
|
808
|
-
if (
|
|
738
|
+
if (
|
|
739
|
+
!this.configFromWeb[targetName] ||
|
|
740
|
+
!this.configFromWeb[targetName].columns
|
|
741
|
+
) {
|
|
809
742
|
console.error('无法找到目标插槽的配置!')
|
|
810
743
|
return
|
|
811
744
|
}
|
|
@@ -816,9 +749,13 @@ export default {
|
|
|
816
749
|
let after = config.columns.slice(i + 1, config.columns.length)
|
|
817
750
|
|
|
818
751
|
const addArr = []
|
|
819
|
-
for (
|
|
752
|
+
for (
|
|
753
|
+
let k = 0;
|
|
754
|
+
k < this.configFromWeb[targetName].columns.length;
|
|
755
|
+
k++
|
|
756
|
+
) {
|
|
820
757
|
const temp = []
|
|
821
|
-
this.configFromWeb[targetName].columns[k].forEach(cell => {
|
|
758
|
+
this.configFromWeb[targetName].columns[k].forEach((cell) => {
|
|
822
759
|
temp.push(cell)
|
|
823
760
|
})
|
|
824
761
|
addArr.push(temp)
|
|
@@ -828,7 +765,7 @@ export default {
|
|
|
828
765
|
// 拼接之前的数组
|
|
829
766
|
if (before.length > 0) {
|
|
830
767
|
if (before.length >= 1) {
|
|
831
|
-
before.forEach(item => {
|
|
768
|
+
before.forEach((item) => {
|
|
832
769
|
newArr.push(item)
|
|
833
770
|
})
|
|
834
771
|
} else {
|
|
@@ -836,7 +773,7 @@ export default {
|
|
|
836
773
|
}
|
|
837
774
|
}
|
|
838
775
|
|
|
839
|
-
addArr.forEach(arr => {
|
|
776
|
+
addArr.forEach((arr) => {
|
|
840
777
|
newArr.push(arr)
|
|
841
778
|
})
|
|
842
779
|
|
|
@@ -848,7 +785,7 @@ export default {
|
|
|
848
785
|
}
|
|
849
786
|
if (after.length > 0) {
|
|
850
787
|
if (after.length >= 1) {
|
|
851
|
-
after.forEach(item => {
|
|
788
|
+
after.forEach((item) => {
|
|
852
789
|
newArr.push(item)
|
|
853
790
|
})
|
|
854
791
|
} else {
|
|
@@ -863,11 +800,20 @@ export default {
|
|
|
863
800
|
config.slotsDeclare = []
|
|
864
801
|
}
|
|
865
802
|
|
|
866
|
-
if (
|
|
867
|
-
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
|
+
}
|
|
868
811
|
delete this.configFromWeb[targetName].data.images
|
|
869
812
|
}
|
|
870
|
-
config.data = {
|
|
813
|
+
config.data = {
|
|
814
|
+
...config.data,
|
|
815
|
+
...this.configFromWeb[targetName].data,
|
|
816
|
+
}
|
|
871
817
|
}
|
|
872
818
|
}
|
|
873
819
|
}
|
|
@@ -876,7 +822,7 @@ export default {
|
|
|
876
822
|
// 扫描所有插槽名
|
|
877
823
|
scanConfigName (config, resut) {
|
|
878
824
|
if (config.slotsDeclare) {
|
|
879
|
-
config.slotsDeclare.forEach(name => {
|
|
825
|
+
config.slotsDeclare.forEach((name) => {
|
|
880
826
|
resut.push(name)
|
|
881
827
|
})
|
|
882
828
|
}
|
|
@@ -894,11 +840,16 @@ export default {
|
|
|
894
840
|
let count = 0
|
|
895
841
|
|
|
896
842
|
// 挨个获取插槽
|
|
897
|
-
waitForDownloadSlotName.forEach(configName => {
|
|
898
|
-
getConfigByName(
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
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
|
+
)
|
|
902
853
|
})
|
|
903
854
|
|
|
904
855
|
// 使用定时器循环判断锁状态,用于多个插槽,要等待统一获取完成之后,再进行下一步初始化
|
|
@@ -938,20 +889,26 @@ export default {
|
|
|
938
889
|
this.activeConfig = this.config
|
|
939
890
|
this.showSkeleton = false
|
|
940
891
|
// 判断是否有动态Index
|
|
941
|
-
this.activeConfig.columns.forEach(row => {
|
|
942
|
-
row.forEach(cell => {
|
|
892
|
+
this.activeConfig.columns.forEach((row) => {
|
|
893
|
+
row.forEach((cell) => {
|
|
943
894
|
if (cell.dynamicDataIndex === true) {
|
|
944
895
|
// 如果有动态index,取其函数,运行函数得到真实index保存
|
|
945
896
|
// eslint-disable-next-line no-eval
|
|
946
|
-
const func = eval(
|
|
897
|
+
const func = eval(
|
|
898
|
+
'(' + cell.customFunctionForDynamicDataIndex + ')'
|
|
899
|
+
)
|
|
947
900
|
cell.dataIndex = func(this.config)
|
|
948
901
|
}
|
|
949
902
|
// 处理 自定义函数的旧逻辑
|
|
950
|
-
if (
|
|
903
|
+
if (
|
|
904
|
+
['action', 'click'].includes(cell.eventType) &&
|
|
905
|
+
cell.customFunction &&
|
|
906
|
+
!cell.events
|
|
907
|
+
) {
|
|
951
908
|
cell.events = []
|
|
952
909
|
cell.events.push({
|
|
953
910
|
type: cell.eventType,
|
|
954
|
-
customFunction: cell.customFunction
|
|
911
|
+
customFunction: cell.customFunction,
|
|
955
912
|
})
|
|
956
913
|
}
|
|
957
914
|
})
|
|
@@ -959,43 +916,32 @@ export default {
|
|
|
959
916
|
// 将数据复制到临时数据中,带有@@@的数据,我们将其整体作为一个key保存,当编辑完成后,再将其解析,回填到需要的数据中
|
|
960
917
|
this.activeConfig.tempData = {}
|
|
961
918
|
// 是否有@@@深层引用
|
|
962
|
-
this.activeConfig.columns.forEach(row => {
|
|
963
|
-
row.forEach(cell => {
|
|
919
|
+
this.activeConfig.columns.forEach((row) => {
|
|
920
|
+
row.forEach((cell) => {
|
|
964
921
|
// 将@@@解析
|
|
965
|
-
if (
|
|
966
|
-
|
|
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
|
+
)
|
|
967
930
|
}
|
|
968
931
|
})
|
|
969
932
|
})
|
|
970
933
|
|
|
971
934
|
// 对配置进行转换
|
|
972
935
|
console.log('转换前配置', this.config)
|
|
973
|
-
this.originalConfig.columns = this.transformArray(
|
|
936
|
+
this.originalConfig.columns = this.transformArray(
|
|
937
|
+
JSON.parse(JSON.stringify(this.config.columns))
|
|
938
|
+
)
|
|
974
939
|
console.log('转换后的列描述', this.originalConfig.columns)
|
|
975
940
|
|
|
976
941
|
this.$nextTick(() => {
|
|
977
942
|
this.scanFinish = true
|
|
978
943
|
})
|
|
979
944
|
},
|
|
980
|
-
// 初始化JSON配置
|
|
981
|
-
jsonConfigInit () {
|
|
982
|
-
if (this.configData === undefined) {
|
|
983
|
-
console.error('未找到数据!')
|
|
984
|
-
} else {
|
|
985
|
-
this.originalConfig = Object.assign({}, this.config)
|
|
986
|
-
this.originalConfig.data = JSON.parse(JSON.stringify(this.configData))
|
|
987
|
-
this.type = 'display'
|
|
988
|
-
// this.onlyDisplay = true
|
|
989
|
-
this.showSkeleton = false
|
|
990
|
-
this.$nextTick(() => {
|
|
991
|
-
this.scanFinish = true
|
|
992
|
-
})
|
|
993
|
-
}
|
|
994
|
-
},
|
|
995
|
-
onSubmit () {
|
|
996
|
-
console.log('this.table_selectedRowKeys', this.table_selectedRowKeys)
|
|
997
|
-
console.log('this.table_selectedRows', this.table_selectedRows)
|
|
998
|
-
},
|
|
999
945
|
},
|
|
1000
946
|
beforeMount () {
|
|
1001
947
|
// 如果只是展示
|
|
@@ -1005,34 +951,22 @@ export default {
|
|
|
1005
951
|
}
|
|
1006
952
|
// 如果有本地配置,优先使用本地配置
|
|
1007
953
|
if (this.localConfig) {
|
|
1008
|
-
//
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
this.config.data = this.configData
|
|
1013
|
-
}
|
|
1014
|
-
this.jsonConfigInit()
|
|
1015
|
-
} else {
|
|
1016
|
-
// 如果配置是普通渲染器
|
|
1017
|
-
this.config = this.localConfig
|
|
1018
|
-
if (this.configData !== undefined) {
|
|
1019
|
-
this.config.data = this.configData
|
|
1020
|
-
}
|
|
1021
|
-
if (this.config.data.images === undefined) {
|
|
1022
|
-
this.config.data.images = {}
|
|
1023
|
-
}
|
|
1024
|
-
this.configInit()
|
|
954
|
+
// 如果配置是普通渲染器
|
|
955
|
+
this.config = this.localConfig
|
|
956
|
+
if (this.configData !== undefined) {
|
|
957
|
+
this.config.data = this.configData
|
|
1025
958
|
}
|
|
959
|
+
if (this.config.data.images === undefined) {
|
|
960
|
+
this.config.data.images = {}
|
|
961
|
+
}
|
|
962
|
+
this.configInit()
|
|
1026
963
|
} else {
|
|
1027
964
|
// 如果本地配置没有值,则从琉璃中获取
|
|
1028
|
-
getConfigByName(
|
|
1029
|
-
this.
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
}
|
|
1034
|
-
this.jsonConfigInit()
|
|
1035
|
-
} else {
|
|
965
|
+
getConfigByName(
|
|
966
|
+
this.configName,
|
|
967
|
+
this.serverName,
|
|
968
|
+
(res) => {
|
|
969
|
+
this.config = JSON.parse(JSON.stringify(res))
|
|
1036
970
|
if (this.configData !== undefined) {
|
|
1037
971
|
this.config.data = this.configData
|
|
1038
972
|
}
|
|
@@ -1040,15 +974,16 @@ export default {
|
|
|
1040
974
|
this.config.data.images = {}
|
|
1041
975
|
}
|
|
1042
976
|
this.configInit()
|
|
1043
|
-
}
|
|
1044
|
-
|
|
977
|
+
},
|
|
978
|
+
this.env === 'dev'
|
|
979
|
+
)
|
|
1045
980
|
}
|
|
1046
981
|
},
|
|
1047
982
|
computed: {
|
|
1048
983
|
...mapState('account', { currUser: 'user' }),
|
|
1049
984
|
widget () {
|
|
1050
985
|
return this.isWidget // 返回isWidget的值
|
|
1051
|
-
}
|
|
986
|
+
},
|
|
1052
987
|
},
|
|
1053
988
|
mounted () {
|
|
1054
989
|
// 如果外界传来了registerMap,我们将本VM对象注册到map中
|
|
@@ -1063,7 +998,7 @@ export default {
|
|
|
1063
998
|
this.dataCache = JSON.parse(JSON.stringify(this.config.data))
|
|
1064
999
|
}
|
|
1065
1000
|
}
|
|
1066
|
-
}
|
|
1001
|
+
},
|
|
1067
1002
|
}
|
|
1068
1003
|
</script>
|
|
1069
1004
|
|