vue2-client 0.1.1 → 1.2.0
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/.editorconfig +9 -0
- package/.env +14 -0
- package/.env.development +1 -0
- package/.eslintrc.js +81 -0
- package/.eslintrc.json +5 -0
- package/README.md +56 -36
- package/babel.config.js +14 -5
- package/docs/index.md +29 -0
- package/index.js +28 -35
- package/jest.config.js +3 -0
- package/package.json +68 -22
- package/public/index.html +27 -17
- package/src/App.vue +93 -0
- package/src/assets/img/alipay.png +0 -0
- package/src/assets/img/defect.png +0 -0
- package/src/assets/img/error.png +0 -0
- package/src/assets/img/logo.png +0 -0
- package/src/assets/img/preview-nine.png +0 -0
- package/src/assets/img/preview.png +0 -0
- package/src/assets/img/success.png +0 -0
- package/src/assets/img/success1.png +0 -0
- package/src/assets/img/wechatpay.png +0 -0
- package/src/base-client/all.js +57 -0
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +1159 -0
- package/src/base-client/components/common/CreateQuery/index.js +3 -0
- package/src/base-client/components/common/CreateQuery/index.md +42 -0
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +540 -0
- package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -0
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -0
- package/src/{components → base-client/components/common}/CustomColumnsDrawer/CustomColumnsDrawer.vue +21 -15
- package/src/{components → base-client/components/common}/CustomColumnsDrawer/index.js +0 -0
- package/src/{components → base-client/components/common}/CustomColumnsDrawer/index.md +46 -46
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +150 -0
- package/src/base-client/components/common/FormGroupEdit/index.js +3 -0
- package/src/base-client/components/common/FormGroupEdit/index.md +43 -0
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +163 -0
- package/src/base-client/components/common/FormGroupQuery/index.js +3 -0
- package/src/base-client/components/common/FormGroupQuery/index.md +43 -0
- package/src/base-client/components/common/JSONToTree/index.js +3 -0
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -0
- package/src/base-client/components/common/XAddForm/XAddForm.vue +323 -0
- package/src/base-client/components/common/XAddForm/index.js +3 -0
- package/src/base-client/components/common/XAddForm/index.md +60 -0
- package/src/base-client/components/common/XBadge/XBadge.vue +61 -0
- package/src/base-client/components/common/XBadge/index.js +3 -0
- package/src/base-client/components/common/XBadge/index.md +39 -0
- package/src/base-client/components/common/XCard/XCard.vue +59 -0
- package/src/base-client/components/common/XCard/index.js +3 -0
- package/src/base-client/components/common/XCard/index.md +43 -0
- package/src/base-client/components/common/XForm/XForm.vue +275 -0
- package/src/base-client/components/common/XForm/XFormItem.vue +217 -0
- package/src/base-client/components/common/XForm/index.js +3 -0
- package/src/base-client/components/common/XForm/index.md +196 -0
- package/src/{components/FormItem/FormItem.vue → base-client/components/common/XFormCol/XFormCol.vue} +16 -14
- package/src/base-client/components/common/XFormCol/index.js +3 -0
- package/src/{components/FormItem → base-client/components/common/XFormCol}/index.md +35 -35
- package/src/base-client/components/common/XFormTable/XFormTable.vue +405 -0
- package/src/base-client/components/common/XFormTable/index.js +3 -0
- package/src/base-client/components/common/XFormTable/index.md +89 -0
- package/src/base-client/components/common/XTable/XTable.vue +262 -0
- package/src/base-client/components/common/XTable/index.js +3 -0
- package/src/base-client/components/common/XTable/index.md +255 -0
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +105 -0
- package/src/base-client/components/common/XTreeOne/index.js +3 -0
- package/src/base-client/components/iot/CustomerDetailsView/CustomerDetailsView.vue +226 -0
- package/src/base-client/components/iot/CustomerDetailsView/index.js +3 -0
- package/src/base-client/components/iot/CustomerDetailsView/index.md +41 -0
- package/src/base-client/components/iot/DataAnalysisUser/DataAnalysisUser.vue +127 -0
- package/src/base-client/components/iot/DataAnalysisUser/index.js +3 -0
- package/src/base-client/components/iot/DataAnalysisView/DataAnalysisView.vue +250 -0
- package/src/base-client/components/iot/DataAnalysisView/index.js +3 -0
- package/src/base-client/components/iot/DataAnalysisViewGD/DataAnalysisViewGD.vue +548 -0
- package/src/base-client/components/iot/DataAnalysisViewGD/WindowTemplate/WindowInfotemp.vue +99 -0
- package/src/base-client/components/iot/DataAnalysisViewGD/WindowTemplate/index.js +3 -0
- package/src/base-client/components/iot/DataAnalysisViewGD/index.js +3 -0
- package/src/base-client/components/iot/DeviceBrandDetailsView/DeviceBrandDetailsView.vue +453 -0
- package/src/base-client/components/iot/DeviceBrandDetailsView/index.js +3 -0
- package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +231 -0
- package/src/base-client/components/iot/DeviceDetailsView/index.js +3 -0
- package/src/base-client/components/iot/DeviceDetailsView/index.md +43 -0
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +330 -0
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -0
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstruct.vue +122 -0
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsInstructOperate.vue +122 -0
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsMain.vue +225 -0
- package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +135 -0
- package/src/base-client/components/iot/DeviceDetailsView/part/index.js +8 -0
- package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +277 -0
- package/src/base-client/components/iot/DeviceTypeDetailsView/index.js +3 -0
- package/src/base-client/components/iot/InstructDetailsView/InstructDetailsView.vue +472 -0
- package/src/{components → base-client/components/iot}/InstructDetailsView/index.js +0 -0
- package/src/base-client/components/iot/InstructDetailsView/index.md +45 -0
- package/src/base-client/components/iot/LogDetailsView/LogDetailsView.vue +380 -0
- package/src/base-client/components/iot/LogDetailsView/index.js +3 -0
- package/src/base-client/components/iot/LogDetailsView/index.md +43 -0
- package/src/base-client/components/iot/MeterDetailsView/MeterDetailsView.vue +360 -0
- package/src/{components → base-client/components/iot}/MeterDetailsView/index.js +0 -0
- package/src/base-client/components/iot/MeterDetailsView/index.md +43 -0
- package/src/{components → base-client/components/iot}/MeterDetailsView/part/MeterDetailsCount.vue +335 -381
- package/src/{components → base-client/components/iot}/MeterDetailsView/part/MeterDetailsException.vue +185 -204
- package/src/{components → base-client/components/iot}/MeterDetailsView/part/MeterDetailsHandPlan.vue +292 -320
- package/src/{components → base-client/components/iot}/MeterDetailsView/part/MeterDetailsInstruct.vue +237 -278
- package/src/{components → base-client/components/iot}/MeterDetailsView/part/MeterDetailsMain.vue +257 -247
- package/src/{components → base-client/components/iot}/MeterDetailsView/part/MeterDetailsSellGas.vue +190 -211
- package/src/base-client/components/iot/MeterDetailsView/part/index.js +9 -0
- package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +723 -0
- package/src/base-client/components/iot/WebmeterAnalysisView/index.js +3 -0
- package/src/base-client/components/iot/WebmeterAnalysisView/index.md +48 -0
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -0
- package/src/base-client/components/system/DictionaryDetailsView/index.js +3 -0
- package/src/base-client/components/system/DictionaryDetailsView/index.md +41 -0
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +248 -0
- package/src/base-client/components/system/QueryParamsDetailsView/index.js +3 -0
- package/src/base-client/components/ticket/EmployeeDetailsView/EmployeeDetailsView.vue +406 -0
- package/src/base-client/components/ticket/EmployeeDetailsView/index.js +3 -0
- package/src/base-client/components/ticket/EmployeeDetailsView/index.md +28 -0
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +486 -0
- package/src/base-client/components/ticket/TicketDetailsView/index.js +3 -0
- package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -0
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +184 -0
- package/src/base-client/components/ticket/TicketDetailsView/part/index.js +3 -0
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +303 -0
- package/src/base-client/components/ticket/TicketSubmitSuccessView/index.js +3 -0
- package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -0
- package/src/base-client/plugins/AppData.js +69 -0
- package/src/{plugins → base-client/plugins}/Config.js +1 -1
- package/src/base-client/plugins/GetLoginInfoService.js +221 -0
- package/src/{plugins → base-client/plugins}/PagedList.js +0 -0
- package/src/base-client/plugins/authority-plugin.js +167 -0
- package/src/base-client/plugins/i18n-extend.js +32 -0
- package/src/base-client/plugins/index.js +21 -0
- package/src/{plugins → base-client/plugins}/moment.js +8 -8
- package/src/base-client/plugins/tabs-page-plugin.js +38 -0
- package/src/bootstrap.js +27 -0
- package/src/components/Charts/Bar.vue +62 -0
- package/src/components/Charts/ChartCard.vue +120 -0
- package/src/components/Charts/DataUserOrderSituation.vue +77 -0
- package/src/components/Charts/DataUserReporting.vue +74 -0
- package/src/components/Charts/DataUserSituation.vue +107 -0
- package/src/components/Charts/Liquid.vue +67 -0
- package/src/components/Charts/MiniArea.vue +39 -0
- package/src/components/Charts/MiniBar.vue +39 -0
- package/src/components/Charts/MiniProgress.vue +75 -0
- package/src/components/Charts/MiniSmoothArea.vue +40 -0
- package/src/components/Charts/Radar.vue +68 -0
- package/src/components/Charts/RankList.vue +77 -0
- package/src/components/Charts/TagCloud.vue +113 -0
- package/src/components/Charts/TransferBar.vue +64 -0
- package/src/components/Charts/Trend.vue +82 -0
- package/src/components/Charts/chart.less +13 -0
- package/src/components/Charts/smooth.area.less +14 -0
- package/src/components/Ellipsis/Ellipsis.vue +64 -0
- package/src/components/Ellipsis/index.js +3 -0
- package/src/components/Ellipsis/index.md +38 -0
- package/src/components/NumberInfo/NumberInfo.vue +54 -0
- package/src/components/NumberInfo/index.js +3 -0
- package/src/components/NumberInfo/index.less +55 -0
- package/src/components/NumberInfo/index.md +43 -0
- package/src/components/STable/README.md +341 -0
- package/src/components/STable/index.js +316 -0
- package/src/components/Trend/Trend.vue +41 -0
- package/src/components/Trend/index.js +3 -0
- package/src/components/Trend/index.less +42 -0
- package/src/components/Trend/index.md +45 -0
- package/src/components/_util/util.js +46 -0
- package/src/components/cache/AKeepAlive.js +172 -0
- package/src/components/card/ChartCard.vue +79 -0
- package/src/components/chart/Bar.vue +60 -0
- package/src/components/chart/MiniArea.vue +67 -0
- package/src/components/chart/MiniBar.vue +59 -0
- package/src/components/chart/MiniProgress.vue +57 -0
- package/src/components/chart/Radar.vue +80 -0
- package/src/components/chart/RankingList.vue +60 -0
- package/src/components/chart/Trend.vue +79 -0
- package/src/components/chart/index.less +9 -0
- package/src/components/checkbox/ColorCheckbox.vue +157 -0
- package/src/components/checkbox/ImgCheckbox.vue +163 -0
- package/src/components/checkbox/index.js +7 -0
- package/src/components/dataAnalysisView/UserData.vue +61 -0
- package/src/components/exception/ExceptionPage.vue +70 -0
- package/src/components/exception/typeConfig.js +19 -0
- package/src/components/form/FormRow.vue +52 -0
- package/src/components/index.js +36 -0
- package/src/components/index.less +6 -0
- package/src/components/input/IInput.vue +66 -0
- package/src/components/menu/Contextmenu.vue +84 -0
- package/src/components/menu/SideMenu.vue +62 -0
- package/src/components/menu/index.less +38 -0
- package/src/components/menu/menu.js +273 -0
- package/src/components/page/header/PageHeader.vue +64 -0
- package/src/components/page/header/index.less +40 -0
- package/src/components/result/Result.vue +77 -0
- package/src/components/setting/Setting.vue +237 -0
- package/src/components/setting/SettingItem.vue +26 -0
- package/src/components/setting/i18n.js +117 -0
- package/src/components/table/StandardTable.vue +142 -0
- package/src/components/table/advance/ActionColumns.vue +158 -0
- package/src/components/table/advance/ActionSize.vue +45 -0
- package/src/components/table/advance/AdvanceTable.vue +275 -0
- package/src/components/table/advance/SearchArea.vue +355 -0
- package/src/components/table/advance/index.js +2 -0
- package/src/components/table/api/ApiTable.vue +50 -0
- package/src/components/task/TaskGroup.vue +80 -0
- package/src/components/task/TaskItem.vue +26 -0
- package/src/components/tool/AStepItem.vue +60 -0
- package/src/components/tool/AvatarList.vue +69 -0
- package/src/components/tool/DetailList.vue +157 -0
- package/src/components/tool/Drawer.vue +142 -0
- package/src/components/tool/FooterToolBar.vue +30 -0
- package/src/components/tool/HeadInfo.vue +35 -0
- package/src/components/tool/TagSelect.vue +83 -0
- package/src/components/tool/TagSelectOption.vue +33 -0
- package/src/components/transition/PageToggleTransition.vue +97 -0
- package/src/config/config.js +13 -0
- package/src/config/default/admin.config.js +18 -0
- package/src/config/default/animate.config.js +21 -0
- package/src/config/default/antd.config.js +84 -0
- package/src/config/default/index.js +6 -0
- package/src/config/default/setting.config.js +33 -0
- package/src/config/index.js +6 -0
- package/src/config/replacer/index.js +10 -0
- package/src/config/replacer/resolve.config.js +67 -0
- package/src/layouts/AdminLayout.vue +174 -0
- package/src/layouts/BlankView.vue +22 -0
- package/src/layouts/CommonLayout.vue +42 -0
- package/src/layouts/ComponentLayoutOne.vue +47 -0
- package/src/layouts/PageLayout.vue +151 -0
- package/src/layouts/PageView.vue +55 -0
- package/src/layouts/SinglePageView.vue +74 -0
- package/src/layouts/footer/PageFooter.vue +46 -0
- package/src/layouts/header/AdminHeader.vue +109 -0
- package/src/layouts/header/HeaderAvatar.vue +60 -0
- package/src/layouts/header/HeaderNotice.vue +97 -0
- package/src/layouts/header/HeaderSearch.vue +67 -0
- package/src/layouts/header/index.less +92 -0
- package/src/layouts/tabs/TabsHead.vue +190 -0
- package/src/layouts/tabs/TabsView.vue +355 -0
- package/src/layouts/tabs/i18n.js +25 -0
- package/src/layouts/tabs/index.js +2 -0
- package/src/main.js +15 -7
- package/src/mock/common/activityData.js +32 -0
- package/src/mock/common/index.js +89 -0
- package/src/mock/common/reportData.js +20 -0
- package/src/mock/common/tableData.js +118 -0
- package/src/mock/extend/index.js +83 -0
- package/src/mock/goods/index.js +108 -0
- package/src/mock/index.js +12 -0
- package/src/mock/project/index.js +17 -0
- package/src/mock/user/current.js +13 -0
- package/src/mock/user/login.js +39 -0
- package/src/mock/user/routes.js +61 -0
- package/src/mock/workplace/index.js +15 -0
- package/src/pages/exception/403.vue +25 -0
- package/src/pages/exception/404.vue +25 -0
- package/src/pages/exception/500.vue +25 -0
- package/src/pages/login/Login.vue +194 -0
- package/src/pages/login/index.js +2 -0
- package/src/pages/report/ReportTable.js +125 -0
- package/src/pages/report/ReportTableHome.vue +28 -0
- package/src/pages/resourceManage/resourceManageMain.vue +55 -0
- package/src/pages/system/applyInstallView/Core.vue +570 -0
- package/src/pages/system/applyInstallView/LFComponents/AddPanel.vue +52 -0
- package/src/pages/system/applyInstallView/LFComponents/Control.vue +78 -0
- package/src/pages/system/applyInstallView/LFComponents/DataDialog.vue +24 -0
- package/src/pages/system/applyInstallView/LFComponents/NodePanel.vue +103 -0
- package/src/pages/system/applyInstallView/PropertySetting/Base.vue +124 -0
- package/src/pages/system/applyInstallView/PropertySetting/CommonProperty.vue +104 -0
- package/src/pages/system/applyInstallView/PropertySetting/PropertyDialog.vue +43 -0
- package/src/pages/system/applyInstallView/background/base.png +0 -0
- package/src/pages/system/applyInstallView/background/click.png +0 -0
- package/src/pages/system/applyInstallView/background/download.png +0 -0
- package/src/pages/system/applyInstallView/background/end.png +0 -0
- package/src/pages/system/applyInstallView/background/push.png +0 -0
- package/src/pages/system/applyInstallView/background/start.png +0 -0
- package/src/pages/system/applyInstallView/background/step.png +0 -0
- package/src/pages/system/applyInstallView/background/time.png +0 -0
- package/src/pages/system/applyInstallView/config.js +22 -0
- package/src/pages/system/applyInstallView/data.json +1284 -0
- package/src/pages/system/applyInstallView/index.vue +34 -0
- package/src/pages/system/applyInstallView/registerNode/Connect.vue +43 -0
- package/src/pages/system/applyInstallView/registerNode/index.js +16 -0
- package/src/pages/system/applyInstallView/registerNode/registerBackEdge.js +44 -0
- package/src/pages/system/applyInstallView/registerNode/registerBase.js +139 -0
- package/src/pages/system/applyInstallView/registerNode/registerConnect.js +60 -0
- package/src/pages/system/applyInstallView/registerNode/registerDownload.js +92 -0
- package/src/pages/system/applyInstallView/registerNode/registerEnd.js +110 -0
- package/src/pages/system/applyInstallView/registerNode/registerPolyline.js +14 -0
- package/src/pages/system/applyInstallView/registerNode/registerPush.js +127 -0
- package/src/pages/system/applyInstallView/registerNode/registerStart.js +105 -0
- package/src/pages/system/applyInstallView/registerNode/registerStep.js +209 -0
- package/src/pages/system/applyInstallView/registerNode/registerTask.js +29 -0
- package/src/pages/system/dictionary/index.vue +41 -0
- package/src/pages/system/queryParams/index.vue +41 -0
- package/src/router/async/config.async.js +25 -0
- package/src/router/async/router.map.js +59 -0
- package/src/router/guards.js +104 -0
- package/src/router/i18n.js +57 -0
- package/src/router/index.js +27 -0
- package/src/services/api/CustomerDetailsViewApi.js +6 -0
- package/src/services/api/DeviceBrandDetailsViewApi.js +14 -0
- package/src/services/api/DeviceDetailsViewApi.js +10 -0
- package/src/services/api/DeviceTypeDetailsViewApi.js +6 -0
- package/src/services/api/DictionaryDetailsViewApi.js +6 -0
- package/src/services/api/EmployeeDetailsViewApi.js +16 -0
- package/src/services/api/FormGroupEditApi.js +6 -0
- package/src/services/api/InstructDetailsViewApi.js +12 -0
- package/src/services/api/LogDetailsViewApi.js +10 -0
- package/src/services/api/MeterDetailsViewApi.js +24 -0
- package/src/services/api/QueryParamsDetailsViewApi.js +6 -0
- package/src/services/api/TicketDetailsViewApi.js +30 -0
- package/src/services/api/WebmeterAnalysisViewApi.js +30 -0
- package/src/services/api/common.js +39 -0
- package/src/services/api/iot.js +7 -0
- package/src/services/api/manage.js +12 -0
- package/src/services/api/restTools.js +23 -0
- package/src/services/api/service.js +12 -0
- package/src/services/api.js +11 -0
- package/src/services/dataSource.js +12 -0
- package/src/services/index.js +7 -0
- package/src/services/user.js +34 -0
- package/src/store/index.js +5 -0
- package/src/store/modules/account.js +103 -0
- package/src/store/modules/index.js +4 -0
- package/src/store/modules/setting.js +114 -0
- package/src/store/mutation-types.js +1 -0
- package/src/theme/antd/ant-menu.less +3 -0
- package/src/theme/antd/ant-message.less +3 -0
- package/src/theme/antd/ant-table.less +22 -0
- package/src/theme/antd/ant-time-picker.less +3 -0
- package/src/theme/antd/index.less +4 -0
- package/src/theme/default/color.less +43 -0
- package/src/theme/default/index.less +3 -0
- package/src/theme/default/nprogress.less +76 -0
- package/src/theme/default/style.less +33 -0
- package/src/theme/global.less +130 -0
- package/src/theme/index.less +5 -0
- package/src/theme/reportTable.less +58 -0
- package/src/theme/theme.less +1 -0
- package/src/utils/Objects.js +25 -0
- package/src/utils/authority-utils.js +85 -0
- package/src/utils/axios-interceptors.js +82 -0
- package/src/utils/colors.js +103 -0
- package/src/utils/excel/Blob.js +181 -0
- package/src/utils/excel/Export2Excel.js +142 -0
- package/src/utils/filter.js +21 -0
- package/src/utils/formatter.js +68 -0
- package/src/utils/i18n.js +80 -0
- package/src/utils/indexedDB.js +146 -0
- package/src/utils/request.js +197 -0
- package/src/utils/routerUtil.js +353 -0
- package/src/utils/theme-color-replacer-extend.js +92 -0
- package/src/utils/themeUtil.js +102 -0
- package/src/utils/util.js +134 -0
- package/tests/unit/ReportTable.spec.js +15 -0
- package/vue.config.js +153 -0
- package/webpack.config.js +12 -0
- package/src/api/business.js +0 -30
- package/src/api/common.js +0 -6
- package/src/assets/logo.png +0 -0
- package/src/components/Criteria/Criteria.vue +0 -191
- package/src/components/Criteria/CriteriaPaged.vue +0 -50
- package/src/components/Criteria/index.js +0 -7
- package/src/components/Criteria/index.md +0 -120
- package/src/components/DataGrid/DataGrid.vue +0 -206
- package/src/components/DataGrid/index.js +0 -3
- package/src/components/DataGrid/index.md +0 -195
- package/src/components/ExportExcel/ExportExcel.vue +0 -246
- package/src/components/ExportExcel/index.js +0 -3
- package/src/components/ExportExcel/index.md +0 -76
- package/src/components/FormItem/index.js +0 -3
- package/src/components/InstructDetailsView/InstructDetailsView.vue +0 -518
- package/src/components/InstructDetailsView/index.md +0 -40
- package/src/components/MetaAnalysis/MetaAnalysis.vue +0 -183
- package/src/components/MetaAnalysis/demo/A.vue +0 -31
- package/src/components/MetaAnalysis/demo/B.vue +0 -31
- package/src/components/MetaAnalysis/demo/C.vue +0 -31
- package/src/components/MetaAnalysis/demo/MetaTest.vue +0 -44
- package/src/components/MetaAnalysis/index.js +0 -3
- package/src/components/MetaAnalysis/index.md +0 -255
- package/src/components/MeterDetailsView/MeterDetailsView.vue +0 -317
- package/src/components/MeterDetailsView/index.md +0 -40
- package/src/components/MeterDetailsView/part/index.js +0 -9
- package/src/components/ModalView/Modal.vue +0 -100
- package/src/components/ModalView/index.js +0 -3
- package/src/components/WCriteria/WCriteria.vue +0 -191
- package/src/components/WCriteria/WCriteriaPaged.vue +0 -95
- package/src/components/WCriteria/index.js +0 -7
- package/src/components/WCriteria/index.md +0 -120
- package/src/components/WTable/WTable.vue +0 -216
- package/src/components/WTable/index.js +0 -3
- package/src/components/WTable/index.md +0 -195
- package/src/plugins/AppData.js +0 -39
- package/src/plugins/GetLoginInfoService.js +0 -475
- package/src/plugins/MessageBox.js +0 -15
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
# CustomColumnsDrawer 自定义表格列
|
|
2
|
-
|
|
3
|
-
提供一个可以自定义选择需要展示的表格列抽屉实现
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## 何时使用
|
|
8
|
-
|
|
9
|
-
允许用户自定义选择需要展示的表格列,常用于列较多的表格查询展示。
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
引用方式:
|
|
14
|
-
|
|
15
|
-
```javascript
|
|
16
|
-
import CustomColumnsDrawer from '
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
components: {
|
|
20
|
-
CustomColumnsDrawer
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## 代码演示
|
|
28
|
-
|
|
29
|
-
```html
|
|
30
|
-
<custom-columns-drawer
|
|
31
|
-
:visible.sync="visible"
|
|
32
|
-
:columns.sync="tableShowColumns"
|
|
33
|
-
:columns-meta="columnsMeta"
|
|
34
|
-
/>
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## API
|
|
38
|
-
|
|
39
|
-
参数 | 说明 | 类型 | 默认值
|
|
40
|
-
----|------|-----|------
|
|
41
|
-
placement | 抽屉的方向,详情参考Ant Design Vue的官方文档 | String, Object | right
|
|
42
|
-
width | 抽屉的宽度,详情参考Ant Design Vue的官方文档 | String, Object | 190
|
|
43
|
-
columnsMeta | 表格列配置的原始json数据 | Array | null
|
|
44
|
-
visible | 是否显示 | Boolean | false
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
# CustomColumnsDrawer 自定义表格列
|
|
2
|
+
|
|
3
|
+
提供一个可以自定义选择需要展示的表格列抽屉实现
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## 何时使用
|
|
8
|
+
|
|
9
|
+
允许用户自定义选择需要展示的表格列,常用于列较多的表格查询展示。
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
引用方式:
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import CustomColumnsDrawer from '@vue2-client/vue2-client/components/CustomColumnsDrawer'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
components: {
|
|
20
|
+
CustomColumnsDrawer
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 代码演示
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<custom-columns-drawer
|
|
31
|
+
:visible.sync="visible"
|
|
32
|
+
:columns.sync="tableShowColumns"
|
|
33
|
+
:columns-meta="columnsMeta"
|
|
34
|
+
/>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## API
|
|
38
|
+
|
|
39
|
+
参数 | 说明 | 类型 | 默认值
|
|
40
|
+
----|------|-----|------
|
|
41
|
+
placement | 抽屉的方向,详情参考Ant Design Vue的官方文档 | String, Object | right
|
|
42
|
+
width | 抽屉的宽度,详情参考Ant Design Vue的官方文档 | String, Object | 190
|
|
43
|
+
columnsMeta | 表格列配置的原始json数据 | Array | null
|
|
44
|
+
visible | 是否显示 | Boolean | false
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a-drawer
|
|
3
|
+
title="选择参数组"
|
|
4
|
+
placement="right"
|
|
5
|
+
:width="isMobile ? screenWidth : screenWidth * 0.85"
|
|
6
|
+
:visible="visible"
|
|
7
|
+
@close="onClose"
|
|
8
|
+
>
|
|
9
|
+
<x-add-form
|
|
10
|
+
business-title="参数设置"
|
|
11
|
+
business-type="编辑"
|
|
12
|
+
:visible.sync="editQueryVisible"
|
|
13
|
+
:json-data="formObj.formJson"
|
|
14
|
+
:modify-model-data="this.modifyModelData[this.formObj.groupName]"
|
|
15
|
+
:loading="loading"
|
|
16
|
+
@onSubmit="submit"/>
|
|
17
|
+
<a-list
|
|
18
|
+
:grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
|
|
19
|
+
:dataSource="columnJson.groups"
|
|
20
|
+
>
|
|
21
|
+
<a-list-item slot="renderItem" slot-scope="item">
|
|
22
|
+
<a-card :hoverable="true" @click="toEdit(item)">
|
|
23
|
+
<a-card-meta >
|
|
24
|
+
<div style="margin-bottom: 3px" slot="title">{{ item.group }}</div>
|
|
25
|
+
<a-icon type="tags" slot="avatar" :style="{ fontSize:'2em' }"/>
|
|
26
|
+
<div class="meta-content" slot="description">{{ item.describe }}</div>
|
|
27
|
+
</a-card-meta>
|
|
28
|
+
</a-card>
|
|
29
|
+
</a-list-item>
|
|
30
|
+
</a-list>
|
|
31
|
+
</a-drawer>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import { mapState } from 'vuex'
|
|
36
|
+
import XAddForm from '@vue2-client/base-client/components/common/XAddForm/XAddForm'
|
|
37
|
+
import { commonApi } from '@vue2-client/services/api/common'
|
|
38
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
name: 'FormGroupEdit',
|
|
42
|
+
components: {
|
|
43
|
+
XAddForm
|
|
44
|
+
},
|
|
45
|
+
data () {
|
|
46
|
+
return {
|
|
47
|
+
// 页面宽度
|
|
48
|
+
screenWidth: document.documentElement.clientWidth,
|
|
49
|
+
// 是否显示参数下发抽屉
|
|
50
|
+
editQueryVisible: false,
|
|
51
|
+
targetIndex: 0,
|
|
52
|
+
columnJson: {},
|
|
53
|
+
editIndex: -1,
|
|
54
|
+
formObj: {
|
|
55
|
+
groupName: '',
|
|
56
|
+
formJson: []
|
|
57
|
+
},
|
|
58
|
+
// 参数设置业务执行状态
|
|
59
|
+
loading: false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
mounted () {
|
|
63
|
+
this.initView()
|
|
64
|
+
},
|
|
65
|
+
computed: {
|
|
66
|
+
...mapState('setting', ['isMobile'])
|
|
67
|
+
},
|
|
68
|
+
props: {
|
|
69
|
+
visible: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
72
|
+
},
|
|
73
|
+
modifyModelData: {
|
|
74
|
+
type: Object,
|
|
75
|
+
default: () => {
|
|
76
|
+
return {}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
watch: {
|
|
81
|
+
visible (rel) {
|
|
82
|
+
if (rel) {
|
|
83
|
+
this.initView()
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
methods: {
|
|
88
|
+
// 初始化组件
|
|
89
|
+
initView () {
|
|
90
|
+
this.$emit('getColumnJson', val => {
|
|
91
|
+
this.columnJson = val
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
toEdit (item) {
|
|
95
|
+
post(commonApi.getColumnsJson, { queryObject: item }).then(res => {
|
|
96
|
+
this.formObj = res
|
|
97
|
+
this.editQueryVisible = true
|
|
98
|
+
})
|
|
99
|
+
},
|
|
100
|
+
onClose () {
|
|
101
|
+
this.$emit('update:visible', false)
|
|
102
|
+
},
|
|
103
|
+
submit (res) {
|
|
104
|
+
if (res.valid) {
|
|
105
|
+
this.loading = true
|
|
106
|
+
const requestParameters = {
|
|
107
|
+
paramsJson: {}
|
|
108
|
+
}
|
|
109
|
+
requestParameters.paramsJson[this.formObj.groupName] = {}
|
|
110
|
+
for (const key of Object.keys(res.form)) {
|
|
111
|
+
const realKey = key.substring(key.indexOf('_') + 1)
|
|
112
|
+
requestParameters.paramsJson[this.formObj.groupName][realKey] = res.form[key]
|
|
113
|
+
}
|
|
114
|
+
this.$emit('onSubmit', requestParameters, result => {
|
|
115
|
+
if (result) {
|
|
116
|
+
this.$message.success('参数设置成功!')
|
|
117
|
+
} else {
|
|
118
|
+
this.$message.error('参数设置失败!')
|
|
119
|
+
}
|
|
120
|
+
this.loading = false
|
|
121
|
+
this.editQueryVisible = false
|
|
122
|
+
})
|
|
123
|
+
} else {
|
|
124
|
+
return false
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
</script>
|
|
130
|
+
<style lang="less" scoped>
|
|
131
|
+
.card-avatar {
|
|
132
|
+
width: 48px;
|
|
133
|
+
height: 48px;
|
|
134
|
+
border-radius: 48px;
|
|
135
|
+
}
|
|
136
|
+
.new-btn{
|
|
137
|
+
border-radius: 2px;
|
|
138
|
+
width: 100%;
|
|
139
|
+
height: 187px;
|
|
140
|
+
}
|
|
141
|
+
.meta-content{
|
|
142
|
+
position: relative;
|
|
143
|
+
overflow: hidden;
|
|
144
|
+
text-overflow: ellipsis;
|
|
145
|
+
display: -webkit-box;
|
|
146
|
+
height: 64px;
|
|
147
|
+
-webkit-line-clamp: 3;
|
|
148
|
+
-webkit-box-orient: vertical;
|
|
149
|
+
}
|
|
150
|
+
</style>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# FormGroupEdit 表单参数组配置编辑
|
|
2
|
+
|
|
3
|
+
提供表单参数组配置编辑的快捷组件
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## 何时使用
|
|
8
|
+
|
|
9
|
+
允许通过表单参数组编辑参数
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
引用方式:
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import FormGroupEdit from '@vue2-client/base-client/components/FormGroupEdit'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
components: {
|
|
20
|
+
FormGroupEdit
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 代码演示
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<form-group-edit
|
|
31
|
+
@getColumnJson="getColumnJson"
|
|
32
|
+
:visible.sync="createQueryVisible"
|
|
33
|
+
@saveQueryParams="saveQueryParams"
|
|
34
|
+
/>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## API
|
|
38
|
+
|
|
39
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
40
|
+
|------------------|------------|---------|-------|
|
|
41
|
+
| visible | 是否显示 | Boolean | false |
|
|
42
|
+
| @getColumnJson | 获取表单配置方法 | event | - |
|
|
43
|
+
| @saveQueryParams | 存储查询配置信息事件 | event | - |
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a-drawer
|
|
3
|
+
title="表单参数组配置"
|
|
4
|
+
placement="right"
|
|
5
|
+
:width="isMobile ? screenWidth : screenWidth * 0.85"
|
|
6
|
+
:visible="visible"
|
|
7
|
+
@close="onClose"
|
|
8
|
+
>
|
|
9
|
+
<create-simple-form-query
|
|
10
|
+
:to-edit-json="editItem()"
|
|
11
|
+
:visible.sync="createQueryVisible"
|
|
12
|
+
@saveSimpleFormQueryParams="saveQueryParams"
|
|
13
|
+
/>
|
|
14
|
+
<a-list
|
|
15
|
+
:grid="{gutter: 24, lg: 4, md: 3, sm: 1, xs: 1}"
|
|
16
|
+
:dataSource="columnJsonCopy()"
|
|
17
|
+
>
|
|
18
|
+
<a-list-item slot="renderItem" slot-scope="item, index">
|
|
19
|
+
<template v-if="item.type">
|
|
20
|
+
<a-button class="new-btn" type="dashed" @click="toCreateQuery">
|
|
21
|
+
<a-icon type="plus" />新增参数组
|
|
22
|
+
</a-button>
|
|
23
|
+
</template>
|
|
24
|
+
<template v-else>
|
|
25
|
+
<a-card :hoverable="true">
|
|
26
|
+
<a-card-meta >
|
|
27
|
+
<div style="margin-bottom: 3px" slot="title">{{ item.group }}</div>
|
|
28
|
+
<a-icon type="tags" slot="avatar" :style="{ fontSize:'2em' }"/>
|
|
29
|
+
<div class="meta-content" slot="description">{{ item.describe }}</div>
|
|
30
|
+
</a-card-meta>
|
|
31
|
+
<a slot="actions" @click="toEditQuery(index)">编辑</a>
|
|
32
|
+
<a slot="actions" @click="toDelete(index)">删除</a>
|
|
33
|
+
</a-card>
|
|
34
|
+
</template>
|
|
35
|
+
</a-list-item>
|
|
36
|
+
</a-list>
|
|
37
|
+
</a-drawer>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
import { mapState } from 'vuex'
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
name: 'FormGroupQuery',
|
|
45
|
+
components: {
|
|
46
|
+
},
|
|
47
|
+
data () {
|
|
48
|
+
return {
|
|
49
|
+
// 页面宽度
|
|
50
|
+
screenWidth: document.documentElement.clientWidth,
|
|
51
|
+
// 是否显示生成查询配置抽屉
|
|
52
|
+
createQueryVisible: false,
|
|
53
|
+
targetIndex: 0,
|
|
54
|
+
columnJson: {},
|
|
55
|
+
editIndex: -1
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
mounted () {
|
|
59
|
+
this.initView()
|
|
60
|
+
},
|
|
61
|
+
computed: {
|
|
62
|
+
...mapState('setting', ['isMobile'])
|
|
63
|
+
},
|
|
64
|
+
props: {
|
|
65
|
+
visible: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: false
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
watch: {
|
|
71
|
+
visible (rel) {
|
|
72
|
+
if (rel) {
|
|
73
|
+
this.initView()
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
methods: {
|
|
78
|
+
// 初始化组件
|
|
79
|
+
initView () {
|
|
80
|
+
this.editIndex = -1
|
|
81
|
+
this.$emit('getColumnJson', val => {
|
|
82
|
+
this.columnJson = val
|
|
83
|
+
})
|
|
84
|
+
},
|
|
85
|
+
toCreateQuery () {
|
|
86
|
+
this.editIndex = -1
|
|
87
|
+
this.createQueryVisible = true
|
|
88
|
+
},
|
|
89
|
+
toEditQuery (index) {
|
|
90
|
+
this.editIndex = index
|
|
91
|
+
this.createQueryVisible = true
|
|
92
|
+
},
|
|
93
|
+
toDelete (index) {
|
|
94
|
+
const _this = this
|
|
95
|
+
this.$confirm({
|
|
96
|
+
title: '您确定要删除该参数组?',
|
|
97
|
+
content: '删除的参数组无法恢复',
|
|
98
|
+
okText: '确定',
|
|
99
|
+
okType: 'danger',
|
|
100
|
+
cancelText: '取消',
|
|
101
|
+
onOk () {
|
|
102
|
+
_this.columnJson.groups.splice(index, 1)
|
|
103
|
+
_this.$emit('saveQueryParams', _this.columnJson)
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
},
|
|
107
|
+
onClose () {
|
|
108
|
+
this.$emit('update:visible', false)
|
|
109
|
+
},
|
|
110
|
+
// 存储查询配置信息
|
|
111
|
+
saveQueryParams (source) {
|
|
112
|
+
if (!this.columnJson.groups) {
|
|
113
|
+
this.columnJson.groups = []
|
|
114
|
+
}
|
|
115
|
+
if (this.editIndex !== -1) {
|
|
116
|
+
this.columnJson.groups[this.editIndex] = source
|
|
117
|
+
} else {
|
|
118
|
+
this.columnJson.groups.push(source)
|
|
119
|
+
}
|
|
120
|
+
this.$emit('saveQueryParams', this.columnJson)
|
|
121
|
+
this.createQueryVisible = false
|
|
122
|
+
},
|
|
123
|
+
columnJsonCopy () {
|
|
124
|
+
let groups
|
|
125
|
+
if (this.columnJson.groups) {
|
|
126
|
+
groups = JSON.parse(JSON.stringify(this.columnJson.groups))
|
|
127
|
+
} else {
|
|
128
|
+
groups = []
|
|
129
|
+
}
|
|
130
|
+
groups.push({ type: 'add' })
|
|
131
|
+
return groups
|
|
132
|
+
},
|
|
133
|
+
editItem () {
|
|
134
|
+
if (this.editIndex !== -1) {
|
|
135
|
+
return JSON.parse(JSON.stringify(this.columnJson.groups[this.editIndex]))
|
|
136
|
+
} else {
|
|
137
|
+
return {}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
</script>
|
|
143
|
+
<style lang="less" scoped>
|
|
144
|
+
.card-avatar {
|
|
145
|
+
width: 48px;
|
|
146
|
+
height: 48px;
|
|
147
|
+
border-radius: 48px;
|
|
148
|
+
}
|
|
149
|
+
.new-btn{
|
|
150
|
+
border-radius: 2px;
|
|
151
|
+
width: 100%;
|
|
152
|
+
height: 187px;
|
|
153
|
+
}
|
|
154
|
+
.meta-content{
|
|
155
|
+
position: relative;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
text-overflow: ellipsis;
|
|
158
|
+
display: -webkit-box;
|
|
159
|
+
height: 64px;
|
|
160
|
+
-webkit-line-clamp: 3;
|
|
161
|
+
-webkit-box-orient: vertical;
|
|
162
|
+
}
|
|
163
|
+
</style>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# FormGroupQuery 表单参数组配置生成
|
|
2
|
+
|
|
3
|
+
提供表单参数组配置生成的快捷组件
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## 何时使用
|
|
8
|
+
|
|
9
|
+
允许生成表单参数组
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
引用方式:
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import FormGroupQuery from '@vue2-client/base-client/components/FormGroupQuery'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
components: {
|
|
20
|
+
FormGroupQuery
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 代码演示
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<form-group-query
|
|
31
|
+
@getColumnJson="getColumnJson"
|
|
32
|
+
:visible.sync="createQueryVisible"
|
|
33
|
+
@saveQueryParams="saveQueryParams"
|
|
34
|
+
/>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## API
|
|
38
|
+
|
|
39
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
40
|
+
|------------------|------------|---------|-------|
|
|
41
|
+
| visible | 是否显示 | Boolean | false |
|
|
42
|
+
| @getColumnJson | 获取表单配置方法 | event | - |
|
|
43
|
+
| @saveQueryParams | 存储查询配置信息事件 | event | - |
|