vue2-client 0.1.1 → 1.0.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 +46 -36
- package/babel.config.js +11 -2
- package/docs/index.md +29 -0
- package/jest.config.js +3 -0
- package/package.json +68 -22
- package/public/index.html +13 -3
- 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 +0 -0
- 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 +2 -2
- 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 +222 -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 +25 -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/index.js +29 -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 +8 -8
- 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/config.js +23 -0
- package/src/router/guards.js +104 -0
- package/src/router/i18n.js +57 -0
- package/src/router/index.js +31 -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 +8 -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 +152 -0
- package/index.js +0 -35
- 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
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
const avatars = [
|
|
2
|
+
'https://gw.alipayobjects.com/zos/rmsportal/cnrhVkzwxjPwAaCfPbdc.png',
|
|
3
|
+
'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
|
|
4
|
+
'https://gw.alipayobjects.com/zos/rmsportal/gaOngJwsRYRaVAuXXcmB.png',
|
|
5
|
+
'https://gw.alipayobjects.com/zos/rmsportal/WhxKECPNujWoWEFNdnJE.png',
|
|
6
|
+
'https://gw.alipayobjects.com/zos/rmsportal/ubnKSIfAJTxIgXOKlciN.png',
|
|
7
|
+
'https://gw.alipayobjects.com/zos/rmsportal/jZUIxmJycoymBprLOUbT.png'
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
const positions = [
|
|
11
|
+
{
|
|
12
|
+
CN: '营业员 | 铜川燃气-营业厅',
|
|
13
|
+
HK: 'Java工程師 | 螞蟻金服-計算服務事業群-微信平台部',
|
|
14
|
+
US: 'Java engineer | Ant financial - Computing services business group - WeChat platform division'
|
|
15
|
+
}, {
|
|
16
|
+
CN: '部长 | 铜川燃气-信息部',
|
|
17
|
+
HK: '前端工程師 | 螞蟻金服-計算服務事業群-VUE平台',
|
|
18
|
+
US: 'Front-end engineer | Ant Financial - Computing services business group - VUE platform'
|
|
19
|
+
}, {
|
|
20
|
+
CN: '运维人员 | 铜川燃气-运维部',
|
|
21
|
+
HK: '前端工程師 | 螞蟻金服-計算服務事業群-REACT平台',
|
|
22
|
+
US: 'Front-end engineer | Ant Financial - Computing services business group - REACT platform'
|
|
23
|
+
}, {
|
|
24
|
+
CN: '售后人员 | 奥枫软件-售后部',
|
|
25
|
+
HK: '產品分析師 | 螞蟻金服-計算服務事業群-IOS平台部',
|
|
26
|
+
US: 'Product analyst | Ant Financial - Computing services business group - IOS platform division'
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
const sayings = [
|
|
31
|
+
'那是一种内在的东西,他们到达不了,也无法触及的',
|
|
32
|
+
'希望是一个好东西,也许是最好的,好东西是不会消亡的',
|
|
33
|
+
'城镇中有那么多的酒馆,她却偏偏走进了我的酒馆',
|
|
34
|
+
'那时候我只会想自己想要什么,从不想自己拥有什么'
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
const logos = [
|
|
38
|
+
'https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png',
|
|
39
|
+
'https://gw.alipayobjects.com/zos/rmsportal/zOsKZmFRdUtvpqCImOVY.png',
|
|
40
|
+
'https://gw.alipayobjects.com/zos/rmsportal/dURIMkkrRFpPgTuzkwnB.png',
|
|
41
|
+
'https://gw.alipayobjects.com/zos/rmsportal/kZzEzemZyKLKFsojXItE.png',
|
|
42
|
+
'https://gw.alipayobjects.com/zos/rmsportal/sfjbOqnsXXJgNCjCzDBL.png'
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
const admins = ['ICZER', 'JACK', 'LUIS', 'DAVID']
|
|
46
|
+
|
|
47
|
+
const groups = ['高逼格设计天团', '中二少女团', '科学搬砖组', '骗你学计算机', '程序员日常']
|
|
48
|
+
|
|
49
|
+
const users = [
|
|
50
|
+
{
|
|
51
|
+
name: '曲丽丽',
|
|
52
|
+
avatar: avatars[0],
|
|
53
|
+
groupId: 0
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: '付晓晓',
|
|
57
|
+
avatar: avatars[1],
|
|
58
|
+
groupId: 0
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: '林东东',
|
|
62
|
+
avatar: avatars[2],
|
|
63
|
+
groupId: 1
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: '周星星',
|
|
67
|
+
avatar: avatars[3],
|
|
68
|
+
groupId: 2
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: '朱偏右',
|
|
72
|
+
avatar: avatars[4],
|
|
73
|
+
groupId: 3
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: '勒个',
|
|
77
|
+
avatar: avatars[5],
|
|
78
|
+
groupId: 4
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
const teams = groups.map((item, index) => {
|
|
83
|
+
return {
|
|
84
|
+
name: item,
|
|
85
|
+
avatar: avatars[index]
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
export { logos, sayings, positions, avatars, admins, groups, users, teams }
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const reportData = [
|
|
2
|
+
{ '气费': { 'span': 8 } },
|
|
3
|
+
['付款方式', '用户类型', '用气性质', '笔数', '气量', '应收金额', '实收金额', '滞纳金'],
|
|
4
|
+
{
|
|
5
|
+
'刷卡': {
|
|
6
|
+
'非民用': {
|
|
7
|
+
'公服用气': [3, 2777, 6998.04, 7000, 0],
|
|
8
|
+
'商业用气': [17, 28720, 83811.50, 83806.70, 0]
|
|
9
|
+
},
|
|
10
|
+
'民用': {
|
|
11
|
+
'居民用气': [255, 19310, 44219.70, 44345.50, 0]
|
|
12
|
+
},
|
|
13
|
+
'合计': { 'span': 2, 'value': [275, 50807, 135029.24, 135152.20, 0] }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
reportData
|
|
20
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
const operation1 = [
|
|
2
|
+
{
|
|
3
|
+
key: 'op1',
|
|
4
|
+
type: '订购关系生效',
|
|
5
|
+
name: '曲丽丽',
|
|
6
|
+
status: 'agree',
|
|
7
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
8
|
+
memo: '-'
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
key: 'op2',
|
|
12
|
+
type: '财务复审',
|
|
13
|
+
name: '付小小',
|
|
14
|
+
status: 'reject',
|
|
15
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
16
|
+
memo: '不通过原因'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
key: 'op3',
|
|
20
|
+
type: '部门初审',
|
|
21
|
+
name: '周毛毛',
|
|
22
|
+
status: 'agree',
|
|
23
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
24
|
+
memo: '-'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: 'op4',
|
|
28
|
+
type: '提交订单',
|
|
29
|
+
name: '林东东',
|
|
30
|
+
status: 'agree',
|
|
31
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
32
|
+
memo: '很棒'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
key: 'op5',
|
|
36
|
+
type: '创建订单',
|
|
37
|
+
name: '汗牙牙',
|
|
38
|
+
status: 'agree',
|
|
39
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
40
|
+
memo: '-'
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
const operation2 = [
|
|
45
|
+
{
|
|
46
|
+
key: 'op2',
|
|
47
|
+
type: '财务复审',
|
|
48
|
+
name: '付小小',
|
|
49
|
+
status: 'reject',
|
|
50
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
51
|
+
memo: '不通过原因'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: 'op3',
|
|
55
|
+
type: '部门初审',
|
|
56
|
+
name: '周毛毛',
|
|
57
|
+
status: 'agree',
|
|
58
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
59
|
+
memo: '-'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
key: 'op4',
|
|
63
|
+
type: '提交订单',
|
|
64
|
+
name: '林东东',
|
|
65
|
+
status: 'agree',
|
|
66
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
67
|
+
memo: '很棒'
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
const operation3 = [
|
|
72
|
+
{
|
|
73
|
+
key: 'op2',
|
|
74
|
+
type: '财务复审',
|
|
75
|
+
name: '付小小',
|
|
76
|
+
status: 'reject',
|
|
77
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
78
|
+
memo: '不通过原因'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: 'op3',
|
|
82
|
+
type: '部门初审',
|
|
83
|
+
name: '周毛毛',
|
|
84
|
+
status: 'agree',
|
|
85
|
+
updatedAt: '2017-10-03 19:23:12',
|
|
86
|
+
memo: '-'
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
|
|
90
|
+
const operationColumns = [
|
|
91
|
+
{
|
|
92
|
+
title: '操作类型',
|
|
93
|
+
dataIndex: 'type',
|
|
94
|
+
key: 'type'
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title: '操作人',
|
|
98
|
+
dataIndex: 'name',
|
|
99
|
+
key: 'name'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
title: '执行结果',
|
|
103
|
+
dataIndex: 'status',
|
|
104
|
+
key: 'status'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
title: '操作时间',
|
|
108
|
+
dataIndex: 'updatedAt',
|
|
109
|
+
key: 'updatedAt'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: '备注',
|
|
113
|
+
dataIndex: 'memo',
|
|
114
|
+
key: 'memo'
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
|
|
118
|
+
export { operation1, operation2, operation3, operationColumns }
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import Mock from 'mockjs'
|
|
2
|
+
import { logos, sayings, positions, avatars, admins } from '../common'
|
|
3
|
+
|
|
4
|
+
const Random = Mock.Random
|
|
5
|
+
|
|
6
|
+
const timeList = [
|
|
7
|
+
{
|
|
8
|
+
CN: '早上好',
|
|
9
|
+
HK: '早晨啊',
|
|
10
|
+
US: 'Good morning'
|
|
11
|
+
}, {
|
|
12
|
+
CN: '上午好',
|
|
13
|
+
HK: '上午好',
|
|
14
|
+
US: 'Good morning'
|
|
15
|
+
}, {
|
|
16
|
+
CN: '中午好',
|
|
17
|
+
HK: '中午好',
|
|
18
|
+
US: 'Good afternoon'
|
|
19
|
+
}, {
|
|
20
|
+
CN: '下午好',
|
|
21
|
+
HK: '下午好',
|
|
22
|
+
US: 'Good afternoon'
|
|
23
|
+
}, {
|
|
24
|
+
CN: '晚上好',
|
|
25
|
+
HK: '晚上好',
|
|
26
|
+
US: 'Good evening'
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
const welcomeMessages = [
|
|
31
|
+
{
|
|
32
|
+
CN: '休息一会儿吧',
|
|
33
|
+
HK: '休息一會兒吧',
|
|
34
|
+
US: 'you may need a break'
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
CN: '准备吃什么呢',
|
|
38
|
+
HK: '準備吃什麼呢',
|
|
39
|
+
US: 'what are you going to eat'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
CN: '要不要打一把 LOL',
|
|
43
|
+
HK: '要不要打一把 LOL',
|
|
44
|
+
US: 'how about a game of DOTA'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
CN: '我猜你可能累了',
|
|
48
|
+
HK: '我猜你可能累了',
|
|
49
|
+
US: 'i guess you might be tired'
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
const goods = ['运动鞋', '短裤', 'T恤', '七分裤', '风衣', '寸衫']
|
|
54
|
+
|
|
55
|
+
Random.extend({
|
|
56
|
+
admin () {
|
|
57
|
+
return this.pick(admins)
|
|
58
|
+
},
|
|
59
|
+
welcome () {
|
|
60
|
+
return this.pick(welcomeMessages)
|
|
61
|
+
},
|
|
62
|
+
timeFix () {
|
|
63
|
+
const time = new Date()
|
|
64
|
+
const hour = time.getHours()
|
|
65
|
+
return hour < 9
|
|
66
|
+
? timeList[0] : (hour <= 11 ? timeList[1] : (hour <= 13 ? timeList[2] : (hour <= 20 ? timeList[3] : timeList[4])))
|
|
67
|
+
},
|
|
68
|
+
avatar () {
|
|
69
|
+
return this.pick(avatars)
|
|
70
|
+
},
|
|
71
|
+
position () {
|
|
72
|
+
return this.pick(positions)
|
|
73
|
+
},
|
|
74
|
+
goods () {
|
|
75
|
+
return this.pick(goods)
|
|
76
|
+
},
|
|
77
|
+
saying () {
|
|
78
|
+
return this.pick(sayings)
|
|
79
|
+
},
|
|
80
|
+
logo () {
|
|
81
|
+
return this.pick(logos)
|
|
82
|
+
}
|
|
83
|
+
})
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import Mock from 'mockjs'
|
|
2
|
+
import '@/mock/extend'
|
|
3
|
+
import { parseUrlParams } from '@/utils/request'
|
|
4
|
+
|
|
5
|
+
const current = new Date().getTime()
|
|
6
|
+
|
|
7
|
+
const goodsList = Mock.mock({
|
|
8
|
+
'list|100': [{
|
|
9
|
+
'id|+1': 0,
|
|
10
|
+
'name': '@GOODS',
|
|
11
|
+
'orderId': `${current}-@integer(1,100)`,
|
|
12
|
+
'status|1-4': 1,
|
|
13
|
+
'send': '@BOOLEAN',
|
|
14
|
+
'sendTime': '@DATETIME',
|
|
15
|
+
'orderDate': '@DATE',
|
|
16
|
+
'auditTime': '@TIME'
|
|
17
|
+
}]
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
Mock.mock(RegExp(`${process.env.VUE_APP_API_BASE_URL}/goods` + '.*'), 'get', ({ url }) => {
|
|
21
|
+
const params = parseUrlParams(decodeURI(url))
|
|
22
|
+
let { page, pageSize } = params
|
|
23
|
+
// eslint-disable-next-line no-eval
|
|
24
|
+
page = eval(page) - 1 || 0
|
|
25
|
+
// eslint-disable-next-line no-eval
|
|
26
|
+
pageSize = eval(pageSize) || 10
|
|
27
|
+
delete params.page
|
|
28
|
+
delete params.pageSize
|
|
29
|
+
let result = goodsList.list.filter(item => {
|
|
30
|
+
for (const [key, value] of Object.entries(params)) {
|
|
31
|
+
if (item[key] != value) {
|
|
32
|
+
return false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return true
|
|
36
|
+
})
|
|
37
|
+
const total = result.length
|
|
38
|
+
if ((page) * pageSize > total) {
|
|
39
|
+
result = []
|
|
40
|
+
} else {
|
|
41
|
+
result = result.slice(page * pageSize, (page + 1) * pageSize)
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
code: 0,
|
|
45
|
+
message: 'success',
|
|
46
|
+
data: {
|
|
47
|
+
page: page + 1,
|
|
48
|
+
pageSize,
|
|
49
|
+
total,
|
|
50
|
+
list: result
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
const columnsConfig = [
|
|
56
|
+
{
|
|
57
|
+
title: '商品名称',
|
|
58
|
+
dataIndex: 'name',
|
|
59
|
+
searchAble: true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title: '订单号',
|
|
63
|
+
dataIndex: 'orderId'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
searchAble: true,
|
|
67
|
+
dataIndex: 'status',
|
|
68
|
+
dataType: 'select',
|
|
69
|
+
slots: { title: 'statusTitle' },
|
|
70
|
+
scopedSlots: { customRender: 'status' },
|
|
71
|
+
search: {
|
|
72
|
+
selectOptions: [
|
|
73
|
+
{ title: '已下单', value: 1 },
|
|
74
|
+
{ title: '已付款', value: 2 },
|
|
75
|
+
{ title: '已审核', value: 3 }
|
|
76
|
+
// {title: '已发货', value: 4}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: '发货',
|
|
82
|
+
searchAble: true,
|
|
83
|
+
dataIndex: 'send',
|
|
84
|
+
dataType: 'boolean',
|
|
85
|
+
scopedSlots: { customRender: 'send' }
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: '发货时间',
|
|
89
|
+
dataIndex: 'sendTime',
|
|
90
|
+
dataType: 'datetime'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: '下单日期',
|
|
94
|
+
searchAble: true,
|
|
95
|
+
dataIndex: 'orderDate',
|
|
96
|
+
dataType: 'date',
|
|
97
|
+
visible: false
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: '审核时间',
|
|
101
|
+
dataIndex: 'auditTime',
|
|
102
|
+
dataType: 'time'
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
|
|
106
|
+
Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/columns`, 'get', () => {
|
|
107
|
+
return columnsConfig
|
|
108
|
+
})
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Mock from 'mockjs'
|
|
2
|
+
import '@/mock/extend'
|
|
3
|
+
|
|
4
|
+
const projectArr = Mock.mock({
|
|
5
|
+
'list|6': [
|
|
6
|
+
{
|
|
7
|
+
logo: '@LOGO',
|
|
8
|
+
desc: '@SAYING'
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}).list
|
|
12
|
+
|
|
13
|
+
Mock.mock('/project', 'get', () => {
|
|
14
|
+
return projectArr
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export { projectArr }
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// import Mock from 'mockjs'
|
|
2
|
+
// import '@/mock/extend'
|
|
3
|
+
|
|
4
|
+
// const user = Mock.mock({
|
|
5
|
+
// name: '@ADMIN',
|
|
6
|
+
// avatar: '@AVATAR',
|
|
7
|
+
// address: '@CITY',
|
|
8
|
+
// position: '@POSITION'
|
|
9
|
+
// })
|
|
10
|
+
// Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/login`, 'post', ({body}) => {
|
|
11
|
+
// let result = {data: {}}
|
|
12
|
+
// const {name, password} = JSON.parse(body)
|
|
13
|
+
//
|
|
14
|
+
// let success = false
|
|
15
|
+
//
|
|
16
|
+
// if (name === 'admin' && password === '888888') {
|
|
17
|
+
// success = true
|
|
18
|
+
// result.data.permissions = [{id: 'queryForm', operation: ['add', 'edit']}]
|
|
19
|
+
// result.data.roles = [{id: 'admin', operation: ['add', 'edit', 'delete']}]
|
|
20
|
+
// } else if (name === 'test' || password === '888888') {
|
|
21
|
+
// success = true
|
|
22
|
+
// result.data.permissions = [{id: 'queryForm', operation: ['add', 'edit']}]
|
|
23
|
+
// result.data.roles = [{id: 'test', operation: ['add', 'edit', 'delete']}]
|
|
24
|
+
// } else {
|
|
25
|
+
// success = false
|
|
26
|
+
// }
|
|
27
|
+
//
|
|
28
|
+
// if (success) {
|
|
29
|
+
// result.code = 0
|
|
30
|
+
// result.message = Mock.mock('@TIMEFIX').CN + ',欢迎回来'
|
|
31
|
+
// result.data.user = user
|
|
32
|
+
// result.data.token = 'Authorization:' + Math.random()
|
|
33
|
+
// result.data.expireAt = new Date(new Date().getTime() + 30 * 60 * 1000)
|
|
34
|
+
// } else {
|
|
35
|
+
// result.code = -1
|
|
36
|
+
// result.message = '账户名或密码错误(admin/888888 or test/888888)'
|
|
37
|
+
// }
|
|
38
|
+
// return result
|
|
39
|
+
// })
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import Mock from 'mockjs'
|
|
2
|
+
|
|
3
|
+
const router = [{
|
|
4
|
+
router: 'root',
|
|
5
|
+
children: [
|
|
6
|
+
{
|
|
7
|
+
router: 'dashboard',
|
|
8
|
+
icon: 'dashboard',
|
|
9
|
+
name: '仪表盘',
|
|
10
|
+
children: [
|
|
11
|
+
{
|
|
12
|
+
router: 'workplace',
|
|
13
|
+
name: '工作台'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
router: 'analysis',
|
|
17
|
+
name: '分析页'
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
// {
|
|
22
|
+
// router: 'webmeter',
|
|
23
|
+
// children: ['userFilesManage', 'gasAnalysisManage', 'handAnalysisManage', 'exceptionManage']
|
|
24
|
+
// },
|
|
25
|
+
// {
|
|
26
|
+
// router: 'iot',
|
|
27
|
+
// children: ['iotDeviceType', 'iotDeviceBrand', 'iotDevice', 'iotSetDeviceParams', 'instructManage', 'reportedDataQuery', 'deviceException', 'deviceManage']
|
|
28
|
+
// },
|
|
29
|
+
// {
|
|
30
|
+
// router: 'dataAnalyze',
|
|
31
|
+
// children: ['DataAnalysisView']
|
|
32
|
+
// },
|
|
33
|
+
// {
|
|
34
|
+
// router: 'system',
|
|
35
|
+
// children: ['dictionaryManage', 'queryParamsManage', 'customerManage', 'safeguardSearchLog', 'runtime', 'createQuery']
|
|
36
|
+
// },
|
|
37
|
+
{
|
|
38
|
+
router: 'antdv',
|
|
39
|
+
path: 'antdv',
|
|
40
|
+
name: 'Ant Design Vue',
|
|
41
|
+
icon: 'ant-design',
|
|
42
|
+
link: 'https://www.antdv.com/docs/vue/introduce-cn/'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
router: 'document',
|
|
46
|
+
path: 'document',
|
|
47
|
+
name: '使用文档',
|
|
48
|
+
icon: 'file-word',
|
|
49
|
+
link: 'https://iczer.gitee.io/vue-antd-admin-docs/'
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}]
|
|
53
|
+
|
|
54
|
+
Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/routes`, 'get', () => {
|
|
55
|
+
const result = {}
|
|
56
|
+
result.code = 0
|
|
57
|
+
result.data = router
|
|
58
|
+
return result
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
export { router }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Mock from 'mockjs'
|
|
2
|
+
import { activities, templates } from '../common/activityData'
|
|
3
|
+
import { teams } from '@/mock/common'
|
|
4
|
+
|
|
5
|
+
activities.forEach(item => {
|
|
6
|
+
item.template = templates[item.activity.type](item.user, item.activity)
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
Mock.mock('/work/activity', 'get', () => {
|
|
10
|
+
return activities
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
Mock.mock('/work/team', 'get', () => {
|
|
14
|
+
return teams
|
|
15
|
+
})
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<exception-page :home-route="homePage" :style="`min-height: ${minHeight}`" type="403" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import ExceptionPage from '@/components/exception/ExceptionPage'
|
|
7
|
+
import { mapState } from 'vuex'
|
|
8
|
+
const { homePage } = require('@/config')
|
|
9
|
+
export default {
|
|
10
|
+
name: 'Exp403',
|
|
11
|
+
components: { ExceptionPage },
|
|
12
|
+
computed: {
|
|
13
|
+
homePage () {
|
|
14
|
+
return homePage
|
|
15
|
+
},
|
|
16
|
+
...mapState('setting', ['pageMinHeight']),
|
|
17
|
+
minHeight () {
|
|
18
|
+
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="less">
|
|
25
|
+
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<exception-page :home-route="homePage" :style="`min-height: ${minHeight}`" type="404" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import ExceptionPage from '@/components/exception/ExceptionPage'
|
|
7
|
+
import { mapState } from 'vuex'
|
|
8
|
+
const { homePage } = require('@/config')
|
|
9
|
+
export default {
|
|
10
|
+
name: 'Exp404',
|
|
11
|
+
components: { ExceptionPage },
|
|
12
|
+
computed: {
|
|
13
|
+
homePage () {
|
|
14
|
+
return homePage
|
|
15
|
+
},
|
|
16
|
+
...mapState('setting', ['pageMinHeight']),
|
|
17
|
+
minHeight () {
|
|
18
|
+
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="less">
|
|
25
|
+
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<exception-page :home-route="homePage" :style="`min-height: ${minHeight}`" type="500" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import ExceptionPage from '@/components/exception/ExceptionPage'
|
|
7
|
+
import { mapState } from 'vuex'
|
|
8
|
+
const { homePage } = require('@/config')
|
|
9
|
+
export default {
|
|
10
|
+
name: 'Exp500',
|
|
11
|
+
components: { ExceptionPage },
|
|
12
|
+
computed: {
|
|
13
|
+
homePage () {
|
|
14
|
+
return homePage
|
|
15
|
+
},
|
|
16
|
+
...mapState('setting', ['pageMinHeight']),
|
|
17
|
+
minHeight () {
|
|
18
|
+
return this.pageMinHeight ? this.pageMinHeight + 'px' : '100vh'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style scoped lang="less">
|
|
25
|
+
</style>
|