vue2-client 1.10.21 → 1.10.26
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.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 +21 -21
- 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 +174 -174
- package/index.js +31 -31
- package/jest-transform-stub.js +8 -8
- package/jest.config.js +21 -21
- package/jest.setup.js +7 -7
- package/jsconfig.json +19 -19
- package/package.json +107 -107
- 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/App.vue +196 -196
- 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/CitySelect.vue +342 -342
- 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/Upload.vue +322 -322
- 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/demo.vue +43 -43
- 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/XAddReport.vue +207 -207
- 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/XConversation/XConversation.vue +263 -263
- package/src/base-client/components/common/XConversation/XConversationDemo.vue +28 -28
- package/src/base-client/components/common/XDataCard/XDataCard.vue +565 -411
- 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 +259 -259
- package/src/base-client/components/common/XDescriptions/XDescriptions.vue +169 -169
- package/src/base-client/components/common/XDescriptions/XDescriptionsGroup.vue +304 -304
- package/src/base-client/components/common/XDescriptions/demo.vue +50 -50
- 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 +393 -393
- package/src/base-client/components/common/XForm/XFormItem.vue +1286 -1286
- package/src/base-client/components/common/XForm/XStatusButton.vue +54 -54
- package/src/base-client/components/common/XForm/XTreeSelect.vue +250 -250
- 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/XFormCol/XFormCol.vue +157 -157
- package/src/base-client/components/common/XFormGroup/XFormGroup.vue +304 -304
- package/src/base-client/components/common/XFormGroup/demo.vue +46 -46
- 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/XFormTable.vue +856 -856
- package/src/base-client/components/common/XFormTable/demo.vue +60 -60
- 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/XReport/XReport.vue +892 -892
- package/src/base-client/components/common/XReport/XReportDemo.vue +71 -304
- 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/XReportTrGroup.vue +816 -808
- 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/XReportDrawer/XReportDrawer.vue +201 -201
- package/src/base-client/components/common/XReportDrawer/index.js +3 -3
- package/src/base-client/components/common/XReportGrid/XReport.vue +1070 -1070
- package/src/base-client/components/common/XReportGrid/XReportDemo.vue +47 -47
- package/src/base-client/components/common/XReportGrid/XReportDesign.vue +628 -628
- package/src/base-client/components/common/XReportGrid/XReportJsonRender.vue +380 -380
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +1104 -1104
- 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/XReportGrid/print.js +184 -184
- 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/XTab.vue +201 -201
- 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/ExportExcel.vue +276 -284
- package/src/base-client/components/common/XTable/TableCellRenderer.vue +161 -161
- package/src/base-client/components/common/XTable/XTable.vue +1431 -1431
- 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 -423
- package/src/base-client/components/common/XTree/XTreePro.vue +452 -451
- 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/RenderRow.vue +63 -63
- 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/STable/index.js +390 -390
- 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 +45 -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/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/ReportGrid/index.vue +76 -76
- package/src/pages/ServiceReview/index.vue +284 -284
- package/src/pages/SubExample/index.vue +26 -26
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +32 -32
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +230 -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 +864 -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 +124 -124
- package/src/router/async/config.async.js +35 -35
- package/src/router/async/router.map.js +188 -188
- package/src/router/guards.js +263 -263
- 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 +15 -15
- package/src/services/user.js +90 -90
- 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/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 +263 -263
- 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/microAppUtils.js +40 -40
- package/src/utils/reg.js +95 -95
- package/src/utils/request.js +362 -362
- package/src/utils/routerUtil.js +450 -450
- package/src/utils/runEvalFunction.js +14 -14
- package/src/utils/util.js +329 -329
- package/src/utils/waterMark.js +31 -31
- package/test/Amis.spec.js +163 -163
- package/test/Tree.spec.js +167 -167
- package/test/myDialog.spec.js +46 -46
- package/test/util.test.js +52 -52
- package/test/v3Api.test.js +1983 -1983
- package/vue.config.js +213 -213
- package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
|
@@ -1,411 +1,565 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div v-if="render" class="XCard">
|
|
4
|
-
<template v-for="(card, itemIndex) in data">
|
|
5
|
-
<
|
|
6
|
-
<!--
|
|
7
|
-
<div
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
</
|
|
93
|
-
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
this.
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
.
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
411
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div v-if="render" class="XCard">
|
|
4
|
+
<template v-for="(card, itemIndex) in data">
|
|
5
|
+
<a-card :key="'card' + itemIndex" class="data-card">
|
|
6
|
+
<!-- 绑带 -->
|
|
7
|
+
<div v-if="config.bandage && card[config.bandage.ribbon] && card[config.bandage.ribbonColor]"
|
|
8
|
+
class="ribbon"
|
|
9
|
+
:style="{ backgroundColor: getRibbonColor(card[config.bandage.ribbonColor]) }">
|
|
10
|
+
{{ card[config.bandage.ribbon] }}
|
|
11
|
+
</div>
|
|
12
|
+
<!-- 自定义标题 -->
|
|
13
|
+
<template #title>
|
|
14
|
+
<div class="custom-title">
|
|
15
|
+
<div class="title-main">
|
|
16
|
+
<span v-if="card[config.id]" class="title-id ellipsis">
|
|
17
|
+
<a-tooltip :title="card[config.id]">
|
|
18
|
+
<span>{{ card[config.id] }}</span>
|
|
19
|
+
</a-tooltip>
|
|
20
|
+
</span>
|
|
21
|
+
<span class="title-name">{{ card[config.title] }}</span>
|
|
22
|
+
<span class="title-info">{{ card[config.title2] }}</span>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="additional-info">
|
|
25
|
+
<span class="subtitle2">
|
|
26
|
+
<a-tooltip :title="card[config.subtitle2]">
|
|
27
|
+
<span>{{ card[config.subtitle2] }}</span>
|
|
28
|
+
</a-tooltip>
|
|
29
|
+
</span>
|
|
30
|
+
<span class="subtitle3">
|
|
31
|
+
<a-tooltip :title="card[config.subtitle3]">
|
|
32
|
+
<span>{{ card[config.subtitle3] }}</span>
|
|
33
|
+
</a-tooltip>
|
|
34
|
+
</span>
|
|
35
|
+
<span class="subtitle4">{{ card[config.subtitle4] }}</span>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
<!-- 主体 -->
|
|
40
|
+
<div class="body">
|
|
41
|
+
<div class="body-text">
|
|
42
|
+
<a-tooltip :title="card[config.text]">
|
|
43
|
+
<span class="text-ellipsis">{{ card[config.text] }}</span>
|
|
44
|
+
</a-tooltip>
|
|
45
|
+
</div>
|
|
46
|
+
<template v-for="(item, bodyIndex) in config.content" v-if="bodyIndex < 6">
|
|
47
|
+
<div :key="'body' + bodyIndex" class="body-item">
|
|
48
|
+
<span class="body-item-label">{{ item.label }}:</span>
|
|
49
|
+
<template v-if="item.type === 'progress'">
|
|
50
|
+
<div class="progress">
|
|
51
|
+
<div class="progress-bar">
|
|
52
|
+
<div class="progress-done" :style="'width:' + card[item.key] * 100 + '%;backgroundColor: ' + determineRatioColor(card[item.key] * 100)"></div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="progress-num">{{ card[item.key] * 100 }}%</div>
|
|
56
|
+
</template>
|
|
57
|
+
<template v-else-if="item.type === 'custom' && tableColumns">
|
|
58
|
+
<!-- 根据 tableColumns 显示自定义内容 -->
|
|
59
|
+
<span v-for="column in tableColumns" v-if="column.dataIndex === item.key" :key="column.dataIndex">
|
|
60
|
+
<template v-if="column.slotType === 'badge'">
|
|
61
|
+
<x-badge
|
|
62
|
+
:service-name="serviceName"
|
|
63
|
+
:env="env"
|
|
64
|
+
:dataCard="true"
|
|
65
|
+
:badge-key="column.slotKeyMap"
|
|
66
|
+
:value="card[item.key]" />
|
|
67
|
+
</template>
|
|
68
|
+
<template v-else>
|
|
69
|
+
<slot :name="column.slots.customRender">{{ card[item.key] }}</slot>
|
|
70
|
+
</template>
|
|
71
|
+
</span>
|
|
72
|
+
</template>
|
|
73
|
+
<template v-else>
|
|
74
|
+
<span class="body-item-value">{{ card[item.key] }}</span>
|
|
75
|
+
</template>
|
|
76
|
+
</div>
|
|
77
|
+
<a-divider
|
|
78
|
+
v-if="bodyIndex !== config.content.length - 1"
|
|
79
|
+
dashed
|
|
80
|
+
:key="'body' + bodyIndex + 'after'"
|
|
81
|
+
class="body-split" />
|
|
82
|
+
</template>
|
|
83
|
+
</div>
|
|
84
|
+
<!-- 下方按钮 -->
|
|
85
|
+
<template #actions>
|
|
86
|
+
<a-row align="middle">
|
|
87
|
+
<template v-for="(item, footerIndex) in config.footer">
|
|
88
|
+
<a-col :key="'footer_' + footerIndex" class="footer-item" :span="11" @click="clickFooter(card, item.emit)">
|
|
89
|
+
<span>
|
|
90
|
+
<a-icon :type="item.icon" class="footer-icon" />
|
|
91
|
+
<span>{{ item.label }}</span>
|
|
92
|
+
</span>
|
|
93
|
+
</a-col>
|
|
94
|
+
<a-col
|
|
95
|
+
v-if="footerIndex !== config.footer.length - 1"
|
|
96
|
+
:span="1"
|
|
97
|
+
:key="'footer_' + footerIndex + 'after'"
|
|
98
|
+
class="footer-item-split">
|
|
99
|
+
|
|
|
100
|
+
</a-col>
|
|
101
|
+
</template>
|
|
102
|
+
</a-row>
|
|
103
|
+
</template>
|
|
104
|
+
</a-card>
|
|
105
|
+
</template>
|
|
106
|
+
</div>
|
|
107
|
+
<div v-else>
|
|
108
|
+
<a-skeleton />
|
|
109
|
+
</div>
|
|
110
|
+
<div v-if="this.showPagination">
|
|
111
|
+
<a-divider />
|
|
112
|
+
<a-pagination
|
|
113
|
+
v-model="pageNum"
|
|
114
|
+
style="float: right"
|
|
115
|
+
:total="total"
|
|
116
|
+
show-less-items
|
|
117
|
+
:page-size="pageSize"
|
|
118
|
+
:page-size-options="pageSizeOptions"
|
|
119
|
+
show-size-changer
|
|
120
|
+
@change="pageNumChange"
|
|
121
|
+
:showTotal="paginationShowTotal"
|
|
122
|
+
@showSizeChange="pageSizeChange">
|
|
123
|
+
</a-pagination>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</template>
|
|
127
|
+
|
|
128
|
+
<script>
|
|
129
|
+
import XBadge from '@vue2-client/base-client/components/common/XBadge'
|
|
130
|
+
|
|
131
|
+
export default {
|
|
132
|
+
name: 'XDataCard',
|
|
133
|
+
components: {
|
|
134
|
+
XBadge,
|
|
135
|
+
},
|
|
136
|
+
props: {
|
|
137
|
+
// 卡片数据更新方法
|
|
138
|
+
cardData: {
|
|
139
|
+
type: Function,
|
|
140
|
+
default: undefined
|
|
141
|
+
},
|
|
142
|
+
// 卡片的配置
|
|
143
|
+
cardConfig: {
|
|
144
|
+
type: Object,
|
|
145
|
+
default: undefined
|
|
146
|
+
},
|
|
147
|
+
showPagination: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: false
|
|
150
|
+
},
|
|
151
|
+
// 临时
|
|
152
|
+
testData: {
|
|
153
|
+
type: Array,
|
|
154
|
+
default: undefined
|
|
155
|
+
},
|
|
156
|
+
tableColumns: {
|
|
157
|
+
type: Array,
|
|
158
|
+
default: undefined
|
|
159
|
+
},
|
|
160
|
+
// 服务名称
|
|
161
|
+
serviceName: undefined,
|
|
162
|
+
// 当前环境
|
|
163
|
+
env: {
|
|
164
|
+
type: String,
|
|
165
|
+
default: 'prod'
|
|
166
|
+
},
|
|
167
|
+
// pageSize参数
|
|
168
|
+
prePageSize: {
|
|
169
|
+
type: Number,
|
|
170
|
+
default: undefined
|
|
171
|
+
},
|
|
172
|
+
// 初始是否加载数据
|
|
173
|
+
createdQuery: {
|
|
174
|
+
type: Boolean,
|
|
175
|
+
default: false
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
data () {
|
|
179
|
+
return {
|
|
180
|
+
// 配置
|
|
181
|
+
config: {},
|
|
182
|
+
// 数据
|
|
183
|
+
data: {},
|
|
184
|
+
// 当前页码
|
|
185
|
+
pageNum: 1,
|
|
186
|
+
// 控制渲染
|
|
187
|
+
render: true,
|
|
188
|
+
// 分页大小
|
|
189
|
+
pageSize: 10,
|
|
190
|
+
// 分页大小选项
|
|
191
|
+
pageSizeOptions: ['4', '6', '8', '10'],
|
|
192
|
+
// 数据总数
|
|
193
|
+
total: 0
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
created () {
|
|
197
|
+
// 根据参数初始化数据值
|
|
198
|
+
if (this.prePageSize) {
|
|
199
|
+
this.pageSize = this.prePageSize
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
mounted () {
|
|
203
|
+
// 配置初始化
|
|
204
|
+
if (this.cardConfig) {
|
|
205
|
+
this.config = this.cardConfig
|
|
206
|
+
} else {
|
|
207
|
+
this.config = {
|
|
208
|
+
id: '未获取到配置',
|
|
209
|
+
title: '未获取到配置',
|
|
210
|
+
title2: '未获取到配置',
|
|
211
|
+
subtitle2: '未获取到配置',
|
|
212
|
+
subtitle3: '未获取到配置',
|
|
213
|
+
subtitle4: '未获取到配置',
|
|
214
|
+
text: '未获取到配置',
|
|
215
|
+
bandage: {
|
|
216
|
+
ribbon: '未获取到配置',
|
|
217
|
+
ribbonColor: '未获取到配置',
|
|
218
|
+
},
|
|
219
|
+
content: [
|
|
220
|
+
{
|
|
221
|
+
label: '未获取到配置',
|
|
222
|
+
key: 'one'
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
label: '未获取到配置',
|
|
226
|
+
key: 'two'
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
label: '未获取到配置',
|
|
230
|
+
key: 'three'
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
label: '未获取到配置',
|
|
234
|
+
key: 'four'
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
label: '未获取到配置',
|
|
238
|
+
key: 'five'
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
label: '未获取到配置',
|
|
242
|
+
key: 'six',
|
|
243
|
+
type: 'progress'
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
footer: [
|
|
247
|
+
{
|
|
248
|
+
icon: 'edit',
|
|
249
|
+
label: '未获取到配置',
|
|
250
|
+
emit: 'planEdit'
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
icon: 'user',
|
|
254
|
+
label: '未获取到配置',
|
|
255
|
+
emit: 'user'
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
console.warn(this.config)
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// 数据初始化
|
|
263
|
+
if (this.cardData) {
|
|
264
|
+
// if (this.createdQuery) {
|
|
265
|
+
// this.loadData()
|
|
266
|
+
// }
|
|
267
|
+
} else {
|
|
268
|
+
this.data = {
|
|
269
|
+
one: '14534331231',
|
|
270
|
+
two: '2',
|
|
271
|
+
three: '3',
|
|
272
|
+
four: '4',
|
|
273
|
+
five: '5',
|
|
274
|
+
six: 70,
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
// 测试数据初始化
|
|
278
|
+
if (this.testData) {
|
|
279
|
+
this.data = this.testData
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
methods: {
|
|
283
|
+
// 根据比例计算出颜色
|
|
284
|
+
determineRatioColor (ratio, isNum = false) {
|
|
285
|
+
let result
|
|
286
|
+
// 如果是数字,并且比例大于79,则将数字显示为黑色
|
|
287
|
+
if (isNum && ratio > 79) {
|
|
288
|
+
return 'rgb(0,0,0)'
|
|
289
|
+
}
|
|
290
|
+
if (ratio >= 90) {
|
|
291
|
+
result = 'rgb( 1,245, 38 )'
|
|
292
|
+
} else if (ratio >= 75) {
|
|
293
|
+
result = 'rgb( 139,245, 0)'
|
|
294
|
+
} else if (ratio >= 40) {
|
|
295
|
+
result = 'rgb(245,163, 0)'
|
|
296
|
+
} else if (ratio >= 20) {
|
|
297
|
+
result = 'rgb(244, 96, 0)'
|
|
298
|
+
} else {
|
|
299
|
+
result = 'rgb(255, 0, 0)'
|
|
300
|
+
}
|
|
301
|
+
return result
|
|
302
|
+
},
|
|
303
|
+
// 点击按钮
|
|
304
|
+
clickFooter (data, eventName) {
|
|
305
|
+
this.$emit('cardEmit', data, eventName)
|
|
306
|
+
},
|
|
307
|
+
// 获取数据
|
|
308
|
+
loadData () {
|
|
309
|
+
this.render = false
|
|
310
|
+
const parameter = Object.assign({
|
|
311
|
+
querySummary: false, // 分页查询的情况不重新获取汇总数据
|
|
312
|
+
pageNo: this.pageNum,
|
|
313
|
+
pageSize: this.pageSize
|
|
314
|
+
}
|
|
315
|
+
)
|
|
316
|
+
this.cardData(parameter).then(res => {
|
|
317
|
+
this.data = res.data
|
|
318
|
+
this.total = res.totalCount
|
|
319
|
+
this.render = true
|
|
320
|
+
})
|
|
321
|
+
},
|
|
322
|
+
// 页码改变
|
|
323
|
+
pageNumChange (page, pageSize) {
|
|
324
|
+
this.pageNum = page
|
|
325
|
+
this.pageSize = pageSize
|
|
326
|
+
this.loadData()
|
|
327
|
+
},
|
|
328
|
+
// 分页大小改变
|
|
329
|
+
pageSizeChange (current, pageSize) {
|
|
330
|
+
this.pageSize = pageSize
|
|
331
|
+
this.loadData()
|
|
332
|
+
},
|
|
333
|
+
// 刷新
|
|
334
|
+
refresh () {
|
|
335
|
+
this.loadData()
|
|
336
|
+
},
|
|
337
|
+
// 分页前展示当前项和总数
|
|
338
|
+
paginationShowTotal () {
|
|
339
|
+
return `${(this.pageNum - 1) * this.pageSize + 1 } - ${ this.pageNum * this.pageSize } | 共 ${ this.total } 项`
|
|
340
|
+
},
|
|
341
|
+
getRibbonColor (color) {
|
|
342
|
+
switch (color) {
|
|
343
|
+
case 'red':
|
|
344
|
+
return '#ff4d4f'
|
|
345
|
+
case 'blue':
|
|
346
|
+
return '#1890ff'
|
|
347
|
+
case 'yellow':
|
|
348
|
+
return '#fadb14'
|
|
349
|
+
default:
|
|
350
|
+
return '#ff4d4f' // 默认红色
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
</script>
|
|
356
|
+
|
|
357
|
+
<style lang="less" scoped>
|
|
358
|
+
.hide-page-numbers /deep/ .ant-pagination-item,
|
|
359
|
+
.hide-page-numbers /deep/ .ant-pagination-jump-next {
|
|
360
|
+
display: none !important; /* 隐藏数字页码和多页跳转 */
|
|
361
|
+
}
|
|
362
|
+
.hide-page-numbers /deep/ .ant-pagination-prev,
|
|
363
|
+
.hide-page-numbers /deep/ .ant-pagination-next {
|
|
364
|
+
display: inline-block !important; /* 保留左右跳转按钮 */
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.XCard {
|
|
368
|
+
display: flex;
|
|
369
|
+
flex-wrap: wrap;
|
|
370
|
+
justify-content: flex-start;
|
|
371
|
+
overflow-y: auto;
|
|
372
|
+
overflow-x: hidden;
|
|
373
|
+
max-height: 85vh;
|
|
374
|
+
|
|
375
|
+
.data-card {
|
|
376
|
+
width: 100%;
|
|
377
|
+
max-width: 300px;
|
|
378
|
+
border: 2px solid rgb(244,244,244);
|
|
379
|
+
border-radius: 5px;
|
|
380
|
+
margin: 5px;
|
|
381
|
+
overflow: hidden;
|
|
382
|
+
|
|
383
|
+
.header {
|
|
384
|
+
width: 100%;
|
|
385
|
+
background-color: rgb(244,244,244);
|
|
386
|
+
padding: 5px 15px;
|
|
387
|
+
|
|
388
|
+
span {
|
|
389
|
+
font-weight: bold;
|
|
390
|
+
font-size: 1.1em;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.body {
|
|
395
|
+
.body-text{
|
|
396
|
+
width: 500px;
|
|
397
|
+
font-weight: bold;
|
|
398
|
+
font-size: 1.1em;
|
|
399
|
+
.text-ellipsis{
|
|
400
|
+
display: inline-block;
|
|
401
|
+
max-width: 260px; /* 控制文本的最大宽度 */
|
|
402
|
+
white-space: nowrap;
|
|
403
|
+
overflow: hidden;
|
|
404
|
+
text-overflow: ellipsis;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.body-item {
|
|
409
|
+
padding: 5px 15px;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.body-split {
|
|
413
|
+
margin: 1px 0;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.body-item-label {
|
|
417
|
+
color: rgba(117, 117, 117, 0.8);
|
|
418
|
+
font-size: 0.95em;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.body-item-value {
|
|
422
|
+
color: black;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.progress {
|
|
426
|
+
display: inline-block;
|
|
427
|
+
width: 60%;
|
|
428
|
+
height: 60%;
|
|
429
|
+
float: right;
|
|
430
|
+
padding-right: 1.5%;
|
|
431
|
+
margin-top: 0.5%;
|
|
432
|
+
|
|
433
|
+
.progress-bar {
|
|
434
|
+
width: 100%;
|
|
435
|
+
height: 90%;
|
|
436
|
+
display: inline-block;
|
|
437
|
+
border-radius: 10%;
|
|
438
|
+
background-color: rgba(212,217,218, 0.6);
|
|
439
|
+
|
|
440
|
+
.progress-done {
|
|
441
|
+
float: left;
|
|
442
|
+
display: inline-block;
|
|
443
|
+
height: 100%;
|
|
444
|
+
border-radius: 10%;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
.progress-num {
|
|
449
|
+
position: relative;
|
|
450
|
+
top: -83%;
|
|
451
|
+
left: -3%;
|
|
452
|
+
text-align: end;
|
|
453
|
+
font-size: 0.9em;
|
|
454
|
+
color: black;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.footer {
|
|
459
|
+
padding: 5px 15px;
|
|
460
|
+
background-color: rgb(244,244,244);
|
|
461
|
+
.footer-icon {
|
|
462
|
+
margin-right: 5px;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.footer-item-split {
|
|
466
|
+
color: rgba(220, 220, 220, 0.59);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.footer-item {
|
|
470
|
+
color: rgba(117, 117, 117, 0.8);
|
|
471
|
+
font-size: 1em;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.footer-item:hover {
|
|
475
|
+
color: rgb( 24,144,255 );
|
|
476
|
+
cursor: pointer;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.custom-title {
|
|
482
|
+
display: flex;
|
|
483
|
+
flex-direction: column;
|
|
484
|
+
.title-main {
|
|
485
|
+
display: flex;
|
|
486
|
+
align-items: center;
|
|
487
|
+
.title-id {
|
|
488
|
+
color: #1890ff;
|
|
489
|
+
font-size: 16px;
|
|
490
|
+
font-weight: bold;
|
|
491
|
+
padding: 4px 2px;
|
|
492
|
+
border: 1px solid #1890ff;
|
|
493
|
+
border-radius: 4px;
|
|
494
|
+
line-height: 1.4;
|
|
495
|
+
width: 60px;
|
|
496
|
+
text-align: center;
|
|
497
|
+
white-space: nowrap;
|
|
498
|
+
overflow: hidden;
|
|
499
|
+
text-overflow: ellipsis;
|
|
500
|
+
margin-right: 8px;
|
|
501
|
+
}
|
|
502
|
+
.title-name {
|
|
503
|
+
font-weight: bold;
|
|
504
|
+
margin-right: 8px;
|
|
505
|
+
}
|
|
506
|
+
.title-info {
|
|
507
|
+
font-size: 14px;
|
|
508
|
+
color: #888;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
.additional-info {
|
|
512
|
+
display: flex;
|
|
513
|
+
justify-content: flex-start;
|
|
514
|
+
margin-top: 4px;
|
|
515
|
+
margin-left: 68px;
|
|
516
|
+
|
|
517
|
+
.subtitle2,
|
|
518
|
+
.subtitle3 {
|
|
519
|
+
color: #555;
|
|
520
|
+
white-space: nowrap;
|
|
521
|
+
overflow: hidden;
|
|
522
|
+
text-overflow: ellipsis;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
.subtitle2 {
|
|
526
|
+
font-size: 12px;
|
|
527
|
+
width: 60px;
|
|
528
|
+
margin-right: 8px;
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
.subtitle3 {
|
|
532
|
+
font-size: 12px;
|
|
533
|
+
width: 80px;
|
|
534
|
+
margin-right: 8px;
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
.subtitle4 {
|
|
538
|
+
color: #1890ff;
|
|
539
|
+
margin-right: 16px;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.ribbon {
|
|
545
|
+
position: absolute;
|
|
546
|
+
top: 16px;
|
|
547
|
+
right: -6px;
|
|
548
|
+
background-color: #ff4d4f;
|
|
549
|
+
color: white;
|
|
550
|
+
padding: 5px 25px;
|
|
551
|
+
font-size: 12px;
|
|
552
|
+
transform: rotate(45deg) translateX(30%);
|
|
553
|
+
transform-origin: top right;
|
|
554
|
+
z-index: 1;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.ellipsis {
|
|
559
|
+
display: inline-block;
|
|
560
|
+
max-width: 60px;
|
|
561
|
+
white-space: nowrap;
|
|
562
|
+
overflow: hidden;
|
|
563
|
+
text-overflow: ellipsis;
|
|
564
|
+
}
|
|
565
|
+
</style>
|