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
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="search-area" ref="root">
|
|
3
|
+
<div class="select-root" ref="selectRoot"></div>
|
|
4
|
+
<div class="search-item" :key="index" v-for="(col, index) in searchCols">
|
|
5
|
+
<div v-if="col.dataType === 'boolean'" :class="['title', {active: col.search.value !== undefined}]">
|
|
6
|
+
<template v-if="col.title">
|
|
7
|
+
{{ col.title }}:
|
|
8
|
+
</template>
|
|
9
|
+
<slot v-else-if="col.slots && col.slots.title" :name="col.slots.title"></slot>
|
|
10
|
+
<a-switch
|
|
11
|
+
@change="onSwitchChange(col)"
|
|
12
|
+
class="switch"
|
|
13
|
+
v-model="col.search.value"
|
|
14
|
+
size="small"
|
|
15
|
+
:checked-children="(col.search.switchOptions && col.search.switchOptions.checkedText) || '是'"
|
|
16
|
+
:un-checked-children="(col.search.switchOptions && col.search.switchOptions.uncheckedText) || '否'"
|
|
17
|
+
/>
|
|
18
|
+
<a-icon v-if="col.search.value !== undefined" class="close" @click="e => onCloseClick(e, col)" type="close-circle" theme="filled" />
|
|
19
|
+
</div>
|
|
20
|
+
<div v-else-if="col.dataType === 'time'" :class="['title', {active: col.search.value}]">
|
|
21
|
+
<template v-if="col.title">
|
|
22
|
+
{{ col.title }}:
|
|
23
|
+
</template>
|
|
24
|
+
<slot v-else-if="col.slots && col.slots.title" :name="col.slots.title"></slot>
|
|
25
|
+
<a-time-picker
|
|
26
|
+
:format="col.search.format"
|
|
27
|
+
v-model="col.search.value"
|
|
28
|
+
placeholder="选择时间"
|
|
29
|
+
@change="(time, timeStr) => onCalendarChange(time, timeStr, col)"
|
|
30
|
+
@openChange="open => onCalendarOpenChange(open, col)"
|
|
31
|
+
class="time-picker"
|
|
32
|
+
size="small"
|
|
33
|
+
:get-popup-container="() => $refs.root"/>
|
|
34
|
+
</div>
|
|
35
|
+
<div v-else-if="col.dataType === 'date'" :class="['title', {active: col.search.value}]">
|
|
36
|
+
<template v-if="col.title">
|
|
37
|
+
{{ col.title }}:
|
|
38
|
+
</template>
|
|
39
|
+
<slot v-else-if="col.slots && col.slots.title" :name="col.slots.title"></slot>
|
|
40
|
+
<a-date-picker
|
|
41
|
+
:format="col.search.format"
|
|
42
|
+
v-model="col.search.value"
|
|
43
|
+
@change="onDateChange(col)"
|
|
44
|
+
class="date-picker"
|
|
45
|
+
size="small"
|
|
46
|
+
:getCalendarContainer="() => $refs.root"/>
|
|
47
|
+
</div>
|
|
48
|
+
<div v-else-if="col.dataType === 'datetime'" class="title datetime active">
|
|
49
|
+
<template v-if="col.title">
|
|
50
|
+
{{ col.title }}:
|
|
51
|
+
</template>
|
|
52
|
+
<slot v-else-if="col.slots && col.slots.title" :name="col.slots.title"></slot>
|
|
53
|
+
<a-date-picker
|
|
54
|
+
:format="col.search.format"
|
|
55
|
+
v-model="col.search.value"
|
|
56
|
+
@change="(date, dateStr) => onCalendarChange(date, dateStr, col)"
|
|
57
|
+
@openChange="open => onCalendarOpenChange(open, col)"
|
|
58
|
+
class="datetime-picker"
|
|
59
|
+
size="small"
|
|
60
|
+
show-time
|
|
61
|
+
:getCalendarContainer="() => $refs.root"/>
|
|
62
|
+
</div>
|
|
63
|
+
<div v-else-if="col.dataType === 'select'" :class="['title', {active: col.search.value !== undefined}]">
|
|
64
|
+
<template v-if="col.title">
|
|
65
|
+
{{ col.title }}:
|
|
66
|
+
</template>
|
|
67
|
+
<slot v-else-if="col.slots && col.slots.title" :name="col.slots.title"></slot>
|
|
68
|
+
<a-select
|
|
69
|
+
:allowClear="true"
|
|
70
|
+
:options="col.search.selectOptions"
|
|
71
|
+
v-model="col.search.value"
|
|
72
|
+
placeholder="请选择..."
|
|
73
|
+
@change="onSelectChange(col)"
|
|
74
|
+
class="select"
|
|
75
|
+
slot="content"
|
|
76
|
+
size="small"
|
|
77
|
+
:get-popup-container="() => $refs.selectRoot">
|
|
78
|
+
</a-select>
|
|
79
|
+
</div>
|
|
80
|
+
<div v-else :class="['title', {active: col.search.value}]">
|
|
81
|
+
<a-popover @visibleChange="onVisibleChange(col, index)" v-model="col.search.visible" placement="bottom" :trigger="['click']" :get-popup-container="() => $refs.root">
|
|
82
|
+
<template v-if="col.title">
|
|
83
|
+
{{ col.title }}
|
|
84
|
+
</template>
|
|
85
|
+
<slot v-else-if="col.slots && col.slots.title" :name="col.slots.title"></slot>
|
|
86
|
+
<div class="value " v-if="col.search.value">: {{ col.search.format && typeof col.search.format === 'function' ? col.search.format(col.search.value) : col.search.value }}</div>
|
|
87
|
+
<a-icon v-if="!col.search.value" class="icon-down" type="down"/>
|
|
88
|
+
<div class="operations" slot="content">
|
|
89
|
+
<a-button @click="onCancel(col)" class="btn" size="small" type="link">取消</a-button>
|
|
90
|
+
<a-button @click="onConfirm(col)" class="btn" size="small" type="primary">确认</a-button>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="search-overlay" slot="title">
|
|
93
|
+
<a-input
|
|
94
|
+
:id="`${searchIdPrefix}${index}`"
|
|
95
|
+
:allow-clear="true"
|
|
96
|
+
@keyup.esc="onCancel(col)"
|
|
97
|
+
@keyup.enter="onConfirm(col)"
|
|
98
|
+
v-model="col.search.value"
|
|
99
|
+
size="small" />
|
|
100
|
+
</div>
|
|
101
|
+
</a-popover>
|
|
102
|
+
<a-icon v-if="col.search.value" @click="e => onCloseClick(e, col)" class="close" type="close-circle" theme="filled"/>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
107
|
+
|
|
108
|
+
<script>
|
|
109
|
+
import fastEqual from 'fast-deep-equal'
|
|
110
|
+
import moment from 'moment'
|
|
111
|
+
|
|
112
|
+
export default {
|
|
113
|
+
name: 'SearchArea',
|
|
114
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
115
|
+
props: ['columns', 'formatConditions'],
|
|
116
|
+
inject: ['table'],
|
|
117
|
+
created () {
|
|
118
|
+
this.formatColumns(this.columns)
|
|
119
|
+
},
|
|
120
|
+
watch: {
|
|
121
|
+
columns (newVal, oldVal) {
|
|
122
|
+
if (newVal != oldVal) {
|
|
123
|
+
this.formatColumns(newVal)
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
searchCols (newVal, oldVal) {
|
|
127
|
+
if (newVal.length != oldVal.length) {
|
|
128
|
+
const newConditions = this.getConditions(newVal)
|
|
129
|
+
const newSearchOptions = this.getSearchOptions(newVal)
|
|
130
|
+
if (!fastEqual(newConditions, this.conditions)) {
|
|
131
|
+
this.conditions = newConditions
|
|
132
|
+
this.searchOptions = newSearchOptions
|
|
133
|
+
this.$emit('change', this.conditions, this.searchOptions)
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
data () {
|
|
139
|
+
return {
|
|
140
|
+
conditions: {},
|
|
141
|
+
searchOptions: []
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
computed: {
|
|
145
|
+
searchCols () {
|
|
146
|
+
return this.columns.filter(item => item.searchAble)
|
|
147
|
+
},
|
|
148
|
+
searchIdPrefix () {
|
|
149
|
+
return this.table.id + '-ipt-'
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
methods: {
|
|
153
|
+
onCloseClick (e, col) {
|
|
154
|
+
e.preventDefault()
|
|
155
|
+
e.stopPropagation()
|
|
156
|
+
col.search.value = undefined
|
|
157
|
+
const { backup, value } = col.search
|
|
158
|
+
if (backup !== value) {
|
|
159
|
+
this.backupAndEmitChange(col)
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
onCancel (col) {
|
|
163
|
+
col.search.value = col.search.backup
|
|
164
|
+
col.search.visible = false
|
|
165
|
+
},
|
|
166
|
+
onConfirm (col) {
|
|
167
|
+
const { backup, value } = col.search
|
|
168
|
+
col.search.visible = false
|
|
169
|
+
if (backup !== value) {
|
|
170
|
+
this.backupAndEmitChange(col)
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
onSwitchChange (col) {
|
|
174
|
+
const { backup, value } = col.search
|
|
175
|
+
if (backup !== value) {
|
|
176
|
+
this.backupAndEmitChange(col)
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
onSelectChange (col) {
|
|
180
|
+
this.backupAndEmitChange(col)
|
|
181
|
+
},
|
|
182
|
+
onCalendarOpenChange (open, col) {
|
|
183
|
+
col.search.visible = open
|
|
184
|
+
const { momentEqual, backupAndEmitChange } = this
|
|
185
|
+
const { value, backup, format } = col.search
|
|
186
|
+
if (!open && !momentEqual(value, backup, format)) {
|
|
187
|
+
backupAndEmitChange(col, moment(value))
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
onCalendarChange (date, dateStr, col) {
|
|
191
|
+
const { momentEqual, backupAndEmitChange } = this
|
|
192
|
+
const { value, backup, format } = col.search
|
|
193
|
+
if (!col.search.visible && !momentEqual(value, backup, format)) {
|
|
194
|
+
backupAndEmitChange(col, moment(value))
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
onDateChange (col) {
|
|
198
|
+
const { momentEqual, backupAndEmitChange } = this
|
|
199
|
+
const { value, backup, format } = col.search
|
|
200
|
+
if (!momentEqual(value, backup, format)) {
|
|
201
|
+
backupAndEmitChange(col, moment(value))
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
getFormat (col) {
|
|
205
|
+
if (col.search && col.search.format) {
|
|
206
|
+
return col.search.format
|
|
207
|
+
}
|
|
208
|
+
const dataType = col.dataType
|
|
209
|
+
switch (dataType) {
|
|
210
|
+
case 'time': return 'HH:mm:ss'
|
|
211
|
+
case 'date': return 'YYYY-MM-DD'
|
|
212
|
+
case 'datetime': return 'YYYY-MM-DD HH:mm:ss'
|
|
213
|
+
default: return undefined
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
backupAndEmitChange (col, backValue = col.search.value) {
|
|
217
|
+
const { getConditions, getSearchOptions } = this
|
|
218
|
+
col.search.backup = backValue
|
|
219
|
+
this.conditions = getConditions(this.searchCols)
|
|
220
|
+
this.searchOptions = getSearchOptions(this.searchCols)
|
|
221
|
+
this.$emit('change', this.conditions, this.searchOptions)
|
|
222
|
+
},
|
|
223
|
+
getConditions (columns) {
|
|
224
|
+
const conditions = {}
|
|
225
|
+
columns.filter(item => item.search.value !== undefined && item.search.value !== '' && item.search.value !== null)
|
|
226
|
+
.forEach(col => {
|
|
227
|
+
const { value, format } = col.search
|
|
228
|
+
if (this.formatConditions && format) {
|
|
229
|
+
if (typeof format === 'function') {
|
|
230
|
+
conditions[col.dataIndex] = format(col.search.value)
|
|
231
|
+
} else if (typeof format === 'string' && value.constructor.name === 'Moment') {
|
|
232
|
+
conditions[col.dataIndex] = value.format(format)
|
|
233
|
+
} else {
|
|
234
|
+
conditions[col.dataIndex] = value
|
|
235
|
+
}
|
|
236
|
+
} else {
|
|
237
|
+
conditions[col.dataIndex] = value
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
return conditions
|
|
241
|
+
},
|
|
242
|
+
getSearchOptions (columns) {
|
|
243
|
+
return columns.filter(item => item.search.value !== undefined && item.search.value !== '' && item.search.value !== null)
|
|
244
|
+
.map(({ dataIndex, search }) => ({ field: dataIndex, value: search.value, format: search.format }))
|
|
245
|
+
},
|
|
246
|
+
onVisibleChange (col, index) {
|
|
247
|
+
if (!col.search.visible) {
|
|
248
|
+
col.search.value = col.search.backup
|
|
249
|
+
} else {
|
|
250
|
+
let input = document.getElementById(`${this.searchIdPrefix}${index}`)
|
|
251
|
+
if (input) {
|
|
252
|
+
setTimeout(() => { input.focus() }, 0)
|
|
253
|
+
} else {
|
|
254
|
+
this.$nextTick(() => {
|
|
255
|
+
input = document.getElementById(`${this.searchIdPrefix}${index}`)
|
|
256
|
+
input.focus()
|
|
257
|
+
})
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
momentEqual (target, source, format) {
|
|
262
|
+
if (target === source) {
|
|
263
|
+
return true
|
|
264
|
+
} else if (target && source && target.format(format) === source.format(format)) {
|
|
265
|
+
return true
|
|
266
|
+
}
|
|
267
|
+
return false
|
|
268
|
+
},
|
|
269
|
+
formatColumns (columns) {
|
|
270
|
+
columns.forEach(item => {
|
|
271
|
+
this.$set(item, 'search', { ...item.search, visible: false, value: undefined, format: this.getFormat(item) })
|
|
272
|
+
})
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
</script>
|
|
277
|
+
|
|
278
|
+
<style scoped lang="less">
|
|
279
|
+
.search-area{
|
|
280
|
+
.select-root{
|
|
281
|
+
text-align: left;
|
|
282
|
+
}
|
|
283
|
+
margin: -4px 0;
|
|
284
|
+
.search-item{
|
|
285
|
+
margin: 4px 4px;
|
|
286
|
+
display: inline-block;
|
|
287
|
+
.title{
|
|
288
|
+
padding: 4px 8px;
|
|
289
|
+
cursor: pointer;
|
|
290
|
+
border-radius: 4px;
|
|
291
|
+
user-select: none;
|
|
292
|
+
display: inline-flex;
|
|
293
|
+
align-items: center;
|
|
294
|
+
.close{
|
|
295
|
+
color: @text-color-second;
|
|
296
|
+
margin-left: 4px;
|
|
297
|
+
font-size: 12px;
|
|
298
|
+
vertical-align: middle;
|
|
299
|
+
:hover{
|
|
300
|
+
color: @text-color;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
.switch{
|
|
304
|
+
margin-left: 4px;
|
|
305
|
+
}
|
|
306
|
+
.time-picker{
|
|
307
|
+
margin-left: 4px;
|
|
308
|
+
width: 96px;
|
|
309
|
+
}
|
|
310
|
+
.date-picker{
|
|
311
|
+
margin-left: 4px;
|
|
312
|
+
width: 120px;
|
|
313
|
+
}
|
|
314
|
+
.datetime-picker{
|
|
315
|
+
margin-left: 4px;
|
|
316
|
+
width: 195px;
|
|
317
|
+
}
|
|
318
|
+
.value{
|
|
319
|
+
display: inline-block;
|
|
320
|
+
overflow: hidden;
|
|
321
|
+
flex:1;
|
|
322
|
+
vertical-align: middle;
|
|
323
|
+
max-width: 144px;
|
|
324
|
+
text-overflow: ellipsis;
|
|
325
|
+
word-break: break-all;
|
|
326
|
+
white-space: nowrap;
|
|
327
|
+
}
|
|
328
|
+
&.active{
|
|
329
|
+
background-color: @layout-bg-color;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
.icon-down{
|
|
333
|
+
vertical-align: middle;
|
|
334
|
+
font-size: 12px;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
.search-overlay{
|
|
338
|
+
padding: 8px 0px;
|
|
339
|
+
text-align: center;
|
|
340
|
+
}
|
|
341
|
+
.select{
|
|
342
|
+
margin-left: 4px;
|
|
343
|
+
max-width: 144px;
|
|
344
|
+
min-width: 96px;
|
|
345
|
+
text-align: left;
|
|
346
|
+
}
|
|
347
|
+
.operations{
|
|
348
|
+
display: flex;
|
|
349
|
+
margin: -6px 0;
|
|
350
|
+
justify-content: space-between;
|
|
351
|
+
.btn{
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
</style>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a-table :data-source="apiSource" :pagination="false">
|
|
3
|
+
<h2 v-if="title" style="margin: 0 16px 0" slot="title">{{ title }}</h2>
|
|
4
|
+
<a-table-column width="20%" data-index="param" title="参数">
|
|
5
|
+
<div slot-scope="text" v-html="text"></div>
|
|
6
|
+
</a-table-column>
|
|
7
|
+
<a-table-column width="50%" data-index="desc" title="说明">
|
|
8
|
+
<div slot-scope="text" v-html="text"></div>
|
|
9
|
+
</a-table-column>
|
|
10
|
+
<a-table-column v-if="isApi" width="15%" data-index="type" title="类型">
|
|
11
|
+
<div slot-scope="text" v-html="text"></div>
|
|
12
|
+
</a-table-column>
|
|
13
|
+
<a-table-column v-if="isApi" width="15%" data-index="default" title="默认值">
|
|
14
|
+
<div slot-scope="text" v-html="text"></div>
|
|
15
|
+
</a-table-column>
|
|
16
|
+
<a-table-column v-if="!isApi" width="30%" data-index="callback" title="回调函数">
|
|
17
|
+
<div slot-scope="text" v-html="text"></div>
|
|
18
|
+
</a-table-column>
|
|
19
|
+
</a-table>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
export default {
|
|
24
|
+
name: 'ApiTable',
|
|
25
|
+
props: {
|
|
26
|
+
title: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: 'API'
|
|
29
|
+
},
|
|
30
|
+
type: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: 'api',
|
|
33
|
+
validator (value) {
|
|
34
|
+
return ['api', 'event'].includes(value)
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
// eslint-disable-next-line vue/require-default-prop
|
|
38
|
+
apiSource: Array
|
|
39
|
+
},
|
|
40
|
+
computed: {
|
|
41
|
+
isApi () {
|
|
42
|
+
return this.type === 'api'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style scoped>
|
|
49
|
+
|
|
50
|
+
</style>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="task-group">
|
|
3
|
+
<div class="task-head">
|
|
4
|
+
<h3 class="title"><span v-if="count">{{ count }}</span>{{ title }}</h3>
|
|
5
|
+
<div class="actions" style="float: right">
|
|
6
|
+
<a-icon class="add" type="plus" draggable="true"/>
|
|
7
|
+
<a-icon class="more" style="margin-left: 8px" type="ellipsis" />
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="task-content">
|
|
11
|
+
<draggable :options="dragOptions">
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</draggable>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import Draggable from 'vuedraggable'
|
|
20
|
+
|
|
21
|
+
const dragOptions = {
|
|
22
|
+
sort: true,
|
|
23
|
+
scroll: true,
|
|
24
|
+
scrollSpeed: 2,
|
|
25
|
+
animation: 150,
|
|
26
|
+
ghostClass: 'dragable-ghost',
|
|
27
|
+
chosenClass: 'dragable-chose',
|
|
28
|
+
dragClass: 'dragable-drag'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: 'TaskGroup',
|
|
33
|
+
components: { Draggable },
|
|
34
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
35
|
+
props: ['title', 'group'],
|
|
36
|
+
data () {
|
|
37
|
+
return {
|
|
38
|
+
dragOptions: { ...dragOptions, group: this.group }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
computed: {
|
|
42
|
+
count () {
|
|
43
|
+
return this.$slots.default.length
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<style lang="less">
|
|
50
|
+
.task-group{
|
|
51
|
+
width: 33.33%;
|
|
52
|
+
padding: 8px 8px;
|
|
53
|
+
background-color: @background-color-light;
|
|
54
|
+
border-radius: 6px;
|
|
55
|
+
border: 1px solid @shadow-color;
|
|
56
|
+
.task-head{
|
|
57
|
+
margin-bottom: 8px;
|
|
58
|
+
.title{
|
|
59
|
+
display: inline-block;
|
|
60
|
+
span{
|
|
61
|
+
display: inline-block;
|
|
62
|
+
border-radius: 10px;
|
|
63
|
+
margin: 0 8px;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
padding: 2px 6px;
|
|
66
|
+
background-color: @base-bg-color;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.actions{
|
|
70
|
+
display: inline-block;
|
|
71
|
+
float: right;
|
|
72
|
+
font-size: 18px;
|
|
73
|
+
font-weight: bold;
|
|
74
|
+
i{
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
</style>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a-card class="task-item" type="inner">
|
|
3
|
+
{{ content }}
|
|
4
|
+
</a-card>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'TaskItem',
|
|
10
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
11
|
+
props: ['content']
|
|
12
|
+
}
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<style lang="less" scoped>
|
|
16
|
+
.task-item{
|
|
17
|
+
margin-bottom: 16px;
|
|
18
|
+
box-shadow: 0 1px 1px @shadow-color;
|
|
19
|
+
border-radius: 6px;
|
|
20
|
+
& :hover{
|
|
21
|
+
cursor: move;
|
|
22
|
+
box-shadow: 0 1px 2px @shadow-color;
|
|
23
|
+
border-radius: 6px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:class="['step-item', link ? 'linkable' : null]"
|
|
4
|
+
@click="go"
|
|
5
|
+
>
|
|
6
|
+
<span :style="titleStyle">{{ title }}</span>
|
|
7
|
+
<a-icon v-if="icon" :style="iconStyle" :type="icon" />
|
|
8
|
+
<slot></slot>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
const Group = {
|
|
14
|
+
name: 'AStepItemGroup',
|
|
15
|
+
props: {
|
|
16
|
+
align: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'center',
|
|
19
|
+
validator (value) {
|
|
20
|
+
return ['left', 'center', 'right'].indexOf(value) != -1
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
render (h) {
|
|
25
|
+
return h(
|
|
26
|
+
'div',
|
|
27
|
+
{ attrs: { style: `text-align: ${this.align}; margin-top: 8px` } },
|
|
28
|
+
[h('div', { attrs: { style: 'text-align: left; display: inline-block;' } }, [this.$slots.default])]
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
name: 'AStepItem',
|
|
35
|
+
Group: Group,
|
|
36
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
37
|
+
props: ['title', 'icon', 'link', 'titleStyle', 'iconStyle'],
|
|
38
|
+
methods: {
|
|
39
|
+
go () {
|
|
40
|
+
const link = this.link
|
|
41
|
+
if (link) {
|
|
42
|
+
this.$router.push(link)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<style lang="less" scoped>
|
|
50
|
+
.step-item{
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
:global{
|
|
54
|
+
.ant-steps-item-process{
|
|
55
|
+
.linkable{
|
|
56
|
+
color: @primary-color;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="avatar-list">
|
|
3
|
+
<slot>
|
|
4
|
+
</slot>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import AAvatar from 'ant-design-vue/es/avatar/Avatar'
|
|
10
|
+
import ATooltip from 'ant-design-vue/es/tooltip/Tooltip'
|
|
11
|
+
const Item = {
|
|
12
|
+
name: 'AvatarListItem',
|
|
13
|
+
props: {
|
|
14
|
+
size: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false,
|
|
17
|
+
default: 'small'
|
|
18
|
+
},
|
|
19
|
+
src: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
tips: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
renderAvatar (h, size, src) {
|
|
30
|
+
return h(AAvatar, { props: { size: size, src: src } }, [])
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
render (h) {
|
|
34
|
+
const avatar = this.renderAvatar(h, this.$props.size, this.$props.src)
|
|
35
|
+
return h(
|
|
36
|
+
'li',
|
|
37
|
+
{ class: 'avatar-item' },
|
|
38
|
+
[this.$props.tips ? h(ATooltip, { props: { title: this.$props.tips } }, [avatar]) : avatar]
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export default {
|
|
43
|
+
name: 'AvatarList',
|
|
44
|
+
Item: Item
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style lang="less" scoped>
|
|
49
|
+
.avatar-list {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
margin-left: 8px;
|
|
53
|
+
font-size: 0;
|
|
54
|
+
.avatar-item {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
margin-left: -8px;
|
|
58
|
+
width: 20px;
|
|
59
|
+
height: 20px;
|
|
60
|
+
:global {
|
|
61
|
+
.ant-avatar {
|
|
62
|
+
border: 1px solid #fff;
|
|
63
|
+
width: 20px;
|
|
64
|
+
height: 20px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
</style>
|