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,486 @@
|
|
|
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
|
+
<a-modal
|
|
10
|
+
title="移交工单"
|
|
11
|
+
:visible="transVisible"
|
|
12
|
+
@ok="handleTransferOk"
|
|
13
|
+
@cancel="handleTransferCancel"
|
|
14
|
+
:zIndex="1001"
|
|
15
|
+
>
|
|
16
|
+
<a-input placeholder="请输入要转移工单的员工名" v-model="transferTo" @blur="checkEmp()"/>
|
|
17
|
+
<span v-if="!transferCheck" style="color: red">您输入的员工不存在,请检查后再试</span>
|
|
18
|
+
<span v-if="transferCheck" style="color: green">您输入的员工已确认,可以进行工单转移</span>
|
|
19
|
+
<a-form-model-item label="留言">
|
|
20
|
+
<a-input v-model="note" type="textarea" />
|
|
21
|
+
</a-form-model-item>
|
|
22
|
+
</a-modal>
|
|
23
|
+
<a-modal
|
|
24
|
+
title="关闭工单"
|
|
25
|
+
:visible="closeVisible"
|
|
26
|
+
@ok="handleCloseOk"
|
|
27
|
+
@cancel="handleCloseCancel"
|
|
28
|
+
:zIndex="1002"
|
|
29
|
+
>
|
|
30
|
+
<p>是否确认手动关闭工单?</p>
|
|
31
|
+
<p style="color: red">(该操作不可撤销,请谨慎操作!)</p>
|
|
32
|
+
</a-modal>
|
|
33
|
+
<a-spin :spinning="loadTicketDetails">
|
|
34
|
+
<a-page-header :title="'订单:' + this.details.serial_number">
|
|
35
|
+
<div class="row">
|
|
36
|
+
<div class="content">
|
|
37
|
+
<a-descriptions size="small" :column="isMobile ? 1 : 2">
|
|
38
|
+
<a-descriptions-item label="优先级">
|
|
39
|
+
<a-alert
|
|
40
|
+
:type="showPriorityColorControl()"
|
|
41
|
+
:message="showPriority()"
|
|
42
|
+
:show-icon="true"/>
|
|
43
|
+
</a-descriptions-item>
|
|
44
|
+
<a-descriptions-item label="发起人">{{ details.uploader }}</a-descriptions-item>
|
|
45
|
+
<a-descriptions-item label="问题类型">{{ details.category }}</a-descriptions-item>
|
|
46
|
+
</a-descriptions>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<!-- 按钮 -->
|
|
50
|
+
<template v-slot:extra>
|
|
51
|
+
<a-button-group style="margin-right: 4px;">
|
|
52
|
+
<a-popover title="开始处理" placement="bottomLeft">
|
|
53
|
+
<template slot="content">
|
|
54
|
+
<p>开始处理当前工单</p>
|
|
55
|
+
</template>
|
|
56
|
+
<a-button type="primary" @click="confirmTicketBtn()" :disabled="handlerBtnDisable()">开始处理</a-button>
|
|
57
|
+
</a-popover>
|
|
58
|
+
<a-popover title="移交他人" placement="bottomLeft">
|
|
59
|
+
<template slot="content">
|
|
60
|
+
<p>将工单转交他人处理</p>
|
|
61
|
+
</template>
|
|
62
|
+
<a-button type="primary" @click="transferBtn()" :disabled="transferBtnDisable()">移交他人</a-button>
|
|
63
|
+
</a-popover>
|
|
64
|
+
<a-popover title="关闭工单" placement="bottomLeft">
|
|
65
|
+
<template slot="content">
|
|
66
|
+
<p>强制关闭当前工单</p>
|
|
67
|
+
<p style="color: red">此操作不可撤销,请谨慎使用</p>
|
|
68
|
+
</template>
|
|
69
|
+
<a-button type="danger" @click="closeBtn()" :disabled="closeBtnDisable()">关闭工单</a-button>
|
|
70
|
+
</a-popover>
|
|
71
|
+
</a-button-group>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<br/>
|
|
75
|
+
<br/>
|
|
76
|
+
<br/>
|
|
77
|
+
|
|
78
|
+
<!-- 进度条 -->
|
|
79
|
+
<a-card :bordered="false">
|
|
80
|
+
<a-steps :direction="'horizontal'" :current="step">
|
|
81
|
+
<a-step>
|
|
82
|
+
<template v-slot:title><span>待处理</span></template>
|
|
83
|
+
<template v-slot:description>
|
|
84
|
+
<div>工单已提交,等待处理<div>{{ format(details.created_time,'yyyy-MM-dd hh:mm:ss') }}</div></div>
|
|
85
|
+
</template>
|
|
86
|
+
</a-step>
|
|
87
|
+
<a-step>
|
|
88
|
+
<template v-slot:title><span>处理中</span></template>
|
|
89
|
+
<template v-slot:description>
|
|
90
|
+
<div v-if="step >= 1"><strong>{{ details.name }}</strong> 处理中...<div>{{ format(details.confirm_time,'yyyy-MM-dd hh:mm:ss') }}</div></div>
|
|
91
|
+
</template>
|
|
92
|
+
</a-step>
|
|
93
|
+
<a-step>
|
|
94
|
+
<template v-slot:title><span>{{ getStatus() }}</span></template>
|
|
95
|
+
<template v-slot:description>
|
|
96
|
+
<div v-if="step >= 2">{{ format(details.finished_time,'yyyy-MM-dd hh:mm:ss') }}</div>
|
|
97
|
+
</template>
|
|
98
|
+
</a-step>
|
|
99
|
+
</a-steps>
|
|
100
|
+
</a-card>
|
|
101
|
+
<br/>
|
|
102
|
+
<br/>
|
|
103
|
+
<br/>
|
|
104
|
+
|
|
105
|
+
<a-card title="问题详细描述" style="width: 100%">
|
|
106
|
+
<p>{{ details.description }}</p>
|
|
107
|
+
</a-card>
|
|
108
|
+
|
|
109
|
+
<ticket-details-flow v-if="details.id" :ticketId="ticketId" :disableCloseBtn="disableCloseBtn" :id="details.id"/>
|
|
110
|
+
</a-page-header>
|
|
111
|
+
</a-spin>
|
|
112
|
+
</a-drawer>
|
|
113
|
+
</template>
|
|
114
|
+
|
|
115
|
+
<script>
|
|
116
|
+
import JsonViewer from 'vue-json-viewer'
|
|
117
|
+
import { formatDate } from '@vue2-client/utils/util'
|
|
118
|
+
import { TicketDetailsViewApi } from '@vue2-client/services/api/TicketDetailsViewApi'
|
|
119
|
+
import { EmployeeDetailsViewApi } from '@vue2-client/services/api/EmployeeDetailsViewApi'
|
|
120
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
121
|
+
import XTable from '@vue2-client/base-client/components/common/XTable/XTable'
|
|
122
|
+
import { mapState } from 'vuex'
|
|
123
|
+
import TicketDetailsFlow from './part/TicketDetailsFlow'
|
|
124
|
+
|
|
125
|
+
export default {
|
|
126
|
+
name: 'TicketDetailsView',
|
|
127
|
+
components: {
|
|
128
|
+
TicketDetailsFlow,
|
|
129
|
+
JsonViewer,
|
|
130
|
+
XTable
|
|
131
|
+
},
|
|
132
|
+
data () {
|
|
133
|
+
return {
|
|
134
|
+
// 页面宽度
|
|
135
|
+
screenWidth: document.documentElement.clientWidth,
|
|
136
|
+
// 工单详情
|
|
137
|
+
details: {
|
|
138
|
+
// 当前负责人ID
|
|
139
|
+
id: undefined,
|
|
140
|
+
name: '',
|
|
141
|
+
uploader: '',
|
|
142
|
+
status: undefined,
|
|
143
|
+
priority: undefined,
|
|
144
|
+
description: '',
|
|
145
|
+
created_time: '',
|
|
146
|
+
confirm_time: '',
|
|
147
|
+
finished_time: '',
|
|
148
|
+
category: '',
|
|
149
|
+
serial_number: ''
|
|
150
|
+
},
|
|
151
|
+
// 当前步骤
|
|
152
|
+
step: 0,
|
|
153
|
+
// 校验转移员工是否存在
|
|
154
|
+
transferCheck: false,
|
|
155
|
+
// 移交工单窗口可见性
|
|
156
|
+
transVisible: false,
|
|
157
|
+
// 转移工单对象
|
|
158
|
+
transferTo: '',
|
|
159
|
+
// 新增留言
|
|
160
|
+
note: '',
|
|
161
|
+
// 控制关闭订单按钮可用性
|
|
162
|
+
disableCloseBtn: false,
|
|
163
|
+
// 控制关闭工单确认框显示
|
|
164
|
+
closeVisible: false,
|
|
165
|
+
// 控制加载过程
|
|
166
|
+
loadTicketDetails: false,
|
|
167
|
+
// 工单类型字典
|
|
168
|
+
categoryDictionary: []
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
mounted () {
|
|
172
|
+
this.getTicketCategory()
|
|
173
|
+
this.initView()
|
|
174
|
+
},
|
|
175
|
+
computed: {
|
|
176
|
+
...mapState('account', { currUser: 'user' }),
|
|
177
|
+
...mapState('setting', ['isMobile'])
|
|
178
|
+
},
|
|
179
|
+
props: {
|
|
180
|
+
ticketId: {
|
|
181
|
+
type: String,
|
|
182
|
+
required: true
|
|
183
|
+
},
|
|
184
|
+
visible: {
|
|
185
|
+
type: Boolean,
|
|
186
|
+
default: false
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
// 初始化组件
|
|
191
|
+
initView () {
|
|
192
|
+
this.loadTicketDetails = true
|
|
193
|
+
this.getTicketDetail(this.ticketId)
|
|
194
|
+
this.loadTicketDetails = false
|
|
195
|
+
},
|
|
196
|
+
// 解析工单类型
|
|
197
|
+
resolveCategory (key) {
|
|
198
|
+
for (let i = 0; i < this.categoryDictionary.length; i++) {
|
|
199
|
+
if (this.categoryDictionary[i].value == key) {
|
|
200
|
+
return this.categoryDictionary[i].name
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
// 关闭工单确认后业务逻辑
|
|
205
|
+
handleCloseOk () {
|
|
206
|
+
return post(TicketDetailsViewApi.manualCloseTicket, {
|
|
207
|
+
ticketId: this.ticketId,
|
|
208
|
+
time: new Date()
|
|
209
|
+
})
|
|
210
|
+
.then(res => {
|
|
211
|
+
if (res !== 0) {
|
|
212
|
+
this.$message.success(
|
|
213
|
+
'操作成功',
|
|
214
|
+
5
|
|
215
|
+
)
|
|
216
|
+
this.initView()
|
|
217
|
+
this.closeVisible = false
|
|
218
|
+
} else {
|
|
219
|
+
this.$message.error(
|
|
220
|
+
'操作失败',
|
|
221
|
+
5
|
|
222
|
+
)
|
|
223
|
+
}
|
|
224
|
+
}, err => {
|
|
225
|
+
console.error(err)
|
|
226
|
+
})
|
|
227
|
+
},
|
|
228
|
+
// 关闭工单取消后业务逻辑
|
|
229
|
+
handleCloseCancel () {
|
|
230
|
+
this.closeVisible = false
|
|
231
|
+
},
|
|
232
|
+
// 确认工单按钮业务逻辑
|
|
233
|
+
confirmTicketBtn () {
|
|
234
|
+
const currentEmpId = this.getCurrentEmpId()
|
|
235
|
+
return post(TicketDetailsViewApi.confirmTicket, {
|
|
236
|
+
ticketId: this.ticketId,
|
|
237
|
+
empId: currentEmpId,
|
|
238
|
+
time: new Date()
|
|
239
|
+
})
|
|
240
|
+
.then(res => {
|
|
241
|
+
if (res !== 0) {
|
|
242
|
+
this.$message.success(
|
|
243
|
+
'操作成功',
|
|
244
|
+
5
|
|
245
|
+
)
|
|
246
|
+
this.initView()
|
|
247
|
+
} else {
|
|
248
|
+
this.$message.error(
|
|
249
|
+
'操作失败',
|
|
250
|
+
5
|
|
251
|
+
)
|
|
252
|
+
}
|
|
253
|
+
}, err => {
|
|
254
|
+
console.error(err)
|
|
255
|
+
})
|
|
256
|
+
},
|
|
257
|
+
// 获取当前登陆员工ID
|
|
258
|
+
getCurrentEmpId () {
|
|
259
|
+
return this.currUser.id
|
|
260
|
+
},
|
|
261
|
+
// 转移工单按钮业务逻辑
|
|
262
|
+
transferBtn () {
|
|
263
|
+
this.transVisible = true
|
|
264
|
+
},
|
|
265
|
+
checkEmp () {
|
|
266
|
+
return post(EmployeeDetailsViewApi.findEmpName, {
|
|
267
|
+
empName: this.transferTo
|
|
268
|
+
})
|
|
269
|
+
.then(res => {
|
|
270
|
+
const num = res.number
|
|
271
|
+
this.transferCheck = num !== 0
|
|
272
|
+
}, err => {
|
|
273
|
+
console.error(err)
|
|
274
|
+
})
|
|
275
|
+
},
|
|
276
|
+
// 获取工单状态撤销or关闭
|
|
277
|
+
getStatus () {
|
|
278
|
+
if (this.details.status === 2) {
|
|
279
|
+
return '已撤销'
|
|
280
|
+
} else {
|
|
281
|
+
return '已关闭'
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
// 关闭工单按钮业务逻辑
|
|
285
|
+
closeBtn () {
|
|
286
|
+
this.closeVisible = true
|
|
287
|
+
},
|
|
288
|
+
// 转移工单确认后逻辑
|
|
289
|
+
handleTransferOk () {
|
|
290
|
+
if (!this.transferCheck) {
|
|
291
|
+
this.$message.error(
|
|
292
|
+
'请先检查您输入的员工名',
|
|
293
|
+
2
|
|
294
|
+
)
|
|
295
|
+
} else {
|
|
296
|
+
return post(TicketDetailsViewApi.transferTicketToOthers, {
|
|
297
|
+
ticketId: this.ticketId,
|
|
298
|
+
endTime: new Date(),
|
|
299
|
+
transferTo: this.transferTo,
|
|
300
|
+
note: this.note
|
|
301
|
+
})
|
|
302
|
+
.then(res => {
|
|
303
|
+
const result = res
|
|
304
|
+
this.note = ''
|
|
305
|
+
this.transVisible = false
|
|
306
|
+
if (result === 1) {
|
|
307
|
+
this.$message.success(
|
|
308
|
+
'操作成功',
|
|
309
|
+
5
|
|
310
|
+
)
|
|
311
|
+
this.initView()
|
|
312
|
+
} else {
|
|
313
|
+
this.$message.error(
|
|
314
|
+
'操作失败',
|
|
315
|
+
5
|
|
316
|
+
)
|
|
317
|
+
}
|
|
318
|
+
this.handleCancel()
|
|
319
|
+
this.initView()
|
|
320
|
+
}, err => {
|
|
321
|
+
console.error(err)
|
|
322
|
+
this.transVisible = false
|
|
323
|
+
})
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
// 转移工单取消后逻辑
|
|
327
|
+
handleTransferCancel () {
|
|
328
|
+
this.transferTo = ''
|
|
329
|
+
this.note = ''
|
|
330
|
+
this.transVisible = false
|
|
331
|
+
this.transferCheck = false
|
|
332
|
+
},
|
|
333
|
+
// 关闭抽屉时回调
|
|
334
|
+
onClose () {
|
|
335
|
+
this.disableCloseBtn = false
|
|
336
|
+
this.$emit('update:visible', false)
|
|
337
|
+
},
|
|
338
|
+
// 获取工单详情信息
|
|
339
|
+
getTicketDetail (num) {
|
|
340
|
+
this.loadTicketDetails = true
|
|
341
|
+
return post(TicketDetailsViewApi.getTicketDetails, {
|
|
342
|
+
ticketId: num
|
|
343
|
+
})
|
|
344
|
+
.then(res => {
|
|
345
|
+
this.details = res[0]
|
|
346
|
+
this.step = res[0].status
|
|
347
|
+
if (this.details.status === 3) {
|
|
348
|
+
this.disableCloseBtn = true
|
|
349
|
+
}
|
|
350
|
+
const categoryValue = this.details.category
|
|
351
|
+
this.details.category = this.resolveCategory(categoryValue)
|
|
352
|
+
}, err => {
|
|
353
|
+
console.error(err)
|
|
354
|
+
})
|
|
355
|
+
},
|
|
356
|
+
// 获取工单类别字典
|
|
357
|
+
getTicketCategory () {
|
|
358
|
+
return post(TicketDetailsViewApi.getTicketCategoryDictionary)
|
|
359
|
+
.then(res => {
|
|
360
|
+
this.categoryDictionary = res
|
|
361
|
+
}, err => {
|
|
362
|
+
console.log(err)
|
|
363
|
+
})
|
|
364
|
+
},
|
|
365
|
+
// 日期格式化
|
|
366
|
+
format (date, format) {
|
|
367
|
+
return formatDate(date, format)
|
|
368
|
+
},
|
|
369
|
+
// 转换JSON
|
|
370
|
+
toJSON (value) {
|
|
371
|
+
try {
|
|
372
|
+
return JSON.parse(value)
|
|
373
|
+
} catch (e) {
|
|
374
|
+
return value
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
// 控制开始处理按钮可用状态
|
|
378
|
+
handlerBtnDisable () {
|
|
379
|
+
return this.step !== 0
|
|
380
|
+
},
|
|
381
|
+
// 控制移交他人按钮可用状态
|
|
382
|
+
transferBtnDisable () {
|
|
383
|
+
return this.step === 0
|
|
384
|
+
},
|
|
385
|
+
// 控制关闭工单按钮可用状态
|
|
386
|
+
closeBtnDisable () {
|
|
387
|
+
return this.step === 0 || this.disableCloseBtn || this.details.id != this.currUser.id
|
|
388
|
+
},
|
|
389
|
+
// 优先级文字显示
|
|
390
|
+
showPriority () {
|
|
391
|
+
if (this.details.priority === 2) {
|
|
392
|
+
return '一般'
|
|
393
|
+
} else if (this.details.priority === 1) {
|
|
394
|
+
return '紧急'
|
|
395
|
+
} else {
|
|
396
|
+
return '非常紧急'
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
// 优先度颜色控制
|
|
400
|
+
showPriorityColorControl () {
|
|
401
|
+
if (this.details.priority === 2) {
|
|
402
|
+
return 'info'
|
|
403
|
+
} else if (this.details.priority === 1) {
|
|
404
|
+
return 'warning'
|
|
405
|
+
} else {
|
|
406
|
+
return 'error'
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
watch: {
|
|
411
|
+
'visible' (val) {
|
|
412
|
+
if (val) {
|
|
413
|
+
this.initView()
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
</script>
|
|
419
|
+
|
|
420
|
+
<style lang="less" scoped>
|
|
421
|
+
.high-priority{
|
|
422
|
+
background-color: rgba(163, 30, 30, 0.66);
|
|
423
|
+
border: red solid 1px;
|
|
424
|
+
font-size: large;
|
|
425
|
+
padding: 5px;
|
|
426
|
+
color: white;
|
|
427
|
+
border-radius: 10px;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.detail-layout {
|
|
431
|
+
margin-left: 44px;
|
|
432
|
+
}
|
|
433
|
+
.text {
|
|
434
|
+
color: rgba(0, 0, 0, .45);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.heading {
|
|
438
|
+
color: rgba(0, 0, 0, .85);
|
|
439
|
+
font-size: 20px;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.no-data {
|
|
443
|
+
color: rgba(0, 0, 0, .25);
|
|
444
|
+
text-align: center;
|
|
445
|
+
line-height: 64px;
|
|
446
|
+
font-size: 16px;
|
|
447
|
+
|
|
448
|
+
i {
|
|
449
|
+
font-size: 24px;
|
|
450
|
+
margin-right: 16px;
|
|
451
|
+
position: relative;
|
|
452
|
+
top: 3px;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.mobile {
|
|
457
|
+
.detail-layout {
|
|
458
|
+
margin-left: unset;
|
|
459
|
+
}
|
|
460
|
+
.text {
|
|
461
|
+
|
|
462
|
+
}
|
|
463
|
+
.status-list {
|
|
464
|
+
text-align: left;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.row {
|
|
469
|
+
display: flex;
|
|
470
|
+
|
|
471
|
+
.content {
|
|
472
|
+
-webkit-box-flex: 1;
|
|
473
|
+
flex: auto;
|
|
474
|
+
-ms-flex: auto;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.extra {
|
|
478
|
+
flex: 0 1 auto;
|
|
479
|
+
-webkit-box-flex: 0;
|
|
480
|
+
-ms-flex: 0 1 auto;
|
|
481
|
+
min-width: 242px;
|
|
482
|
+
margin-left: 88px;
|
|
483
|
+
text-align: right;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
</style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# TicketDetailsView 工单详情页
|
|
2
|
+
|
|
3
|
+
提供一个可以对单个工单进行一系列通用业务操作的抽屉实现
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## 何时使用
|
|
8
|
+
|
|
9
|
+
允许用户对单个工单进行一系列通用业务操作
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## 代码演示
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<ticket-details-view
|
|
17
|
+
:visible.sync="detailVisible"
|
|
18
|
+
:ticketId="ticketId"
|
|
19
|
+
v-if="ticketId"
|
|
20
|
+
/>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## API
|
|
24
|
+
|
|
25
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
26
|
+
|---------------|-------|---------|-------|
|
|
27
|
+
| detailVisible | 是否显示 | Boolean | false |
|
|
28
|
+
| ticketId | 工单编号 | String | null |
|
|
29
|
+
| id | 负责人id | String | null |
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<a-card :bordered="false" title="工单流转历史" :loading="loading">
|
|
4
|
+
<a-timeline ref="timeline" :pending="pendingText" :reverse="true" mode="alternate" style="max-width: 800px;margin: 0 auto;">
|
|
5
|
+
<a-timeline-item v-if="index < 3 ? true : advanced" :key="index" v-for="(value,index) in workFLowList" color="green">
|
|
6
|
+
<div style="color: #0d1a26;font-weight: 500;">
|
|
7
|
+
<span style="font-size: 16px;">{{ value.name }}</span>
|
|
8
|
+
<span style="margin-left: 5px;">({{ format(value.created_time,'yyyy-MM-dd hh:mm:ss') }} 至 {{ format(value.end_time,'yyyy-MM-dd hh:mm:ss') }})</span>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="antd-pro-pages-profile-advanced-style-stepDescription" >
|
|
11
|
+
留言:{{ value.note }}
|
|
12
|
+
</div>
|
|
13
|
+
</a-timeline-item>
|
|
14
|
+
</a-timeline>
|
|
15
|
+
<a-col :md="!advanced && 8 || 24" :sm="24" v-if="workFLowList.length > 3">
|
|
16
|
+
<span class="table-page-search-submitButtons" :style="advanced && { float: 'right', overflow: 'hidden' } || {} ">
|
|
17
|
+
<a @click="toggleAdvanced" style="margin-left: 8px">
|
|
18
|
+
{{ advanced ? '收起' : '展开' }}
|
|
19
|
+
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
20
|
+
</a>
|
|
21
|
+
</span>
|
|
22
|
+
</a-col>
|
|
23
|
+
</a-card>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
<script>
|
|
27
|
+
import { formatDate } from '@vue2-client/utils/util'
|
|
28
|
+
import { mapState } from 'vuex'
|
|
29
|
+
import { TicketDetailsViewApi } from '@vue2-client/services/api/TicketDetailsViewApi'
|
|
30
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
name: 'TicketDetailsFlow',
|
|
34
|
+
props: {
|
|
35
|
+
ticketId: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: true
|
|
38
|
+
},
|
|
39
|
+
disableCloseBtn: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
required: true
|
|
42
|
+
},
|
|
43
|
+
id: {
|
|
44
|
+
type: Number,
|
|
45
|
+
required: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
...mapState('setting', ['isMobile'])
|
|
50
|
+
},
|
|
51
|
+
data () {
|
|
52
|
+
return {
|
|
53
|
+
// 历史操作 展开/关闭
|
|
54
|
+
advanced: false,
|
|
55
|
+
workFLowList: [],
|
|
56
|
+
loading: false,
|
|
57
|
+
pendingText: '持续记录中...'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
mounted () {
|
|
61
|
+
this.getTicketWorkFlowDetail(this.ticketId)
|
|
62
|
+
},
|
|
63
|
+
methods: {
|
|
64
|
+
format (date, format) {
|
|
65
|
+
return formatDate(date, format)
|
|
66
|
+
},
|
|
67
|
+
// 获取流转工单详情
|
|
68
|
+
getTicketWorkFlowDetail (num) {
|
|
69
|
+
if (this.disableCloseBtn) {
|
|
70
|
+
this.pendingText = ''
|
|
71
|
+
} else {
|
|
72
|
+
this.pendingText = '持续记录中...'
|
|
73
|
+
}
|
|
74
|
+
this.loading = true
|
|
75
|
+
return post(TicketDetailsViewApi.getTicketWorkFlowDetails, {
|
|
76
|
+
ticketId: num
|
|
77
|
+
}).then(res => {
|
|
78
|
+
this.workFLowDetails = res
|
|
79
|
+
// 解析workFLowDetails数据
|
|
80
|
+
this.workFLowList = []
|
|
81
|
+
const len = this.workFLowDetails.length
|
|
82
|
+
for (let i = 0; i < len; i++) {
|
|
83
|
+
this.workFLowList.push({
|
|
84
|
+
name: this.workFLowDetails[i].name,
|
|
85
|
+
created_time: this.workFLowDetails[i].created_time,
|
|
86
|
+
end_time: this.workFLowDetails[i].end_time,
|
|
87
|
+
note: this.workFLowDetails[i].note
|
|
88
|
+
})
|
|
89
|
+
}
|
|
90
|
+
this.workFLowList = this.workFLowList.reverse()
|
|
91
|
+
this.loading = false
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
toggleAdvanced () {
|
|
95
|
+
this.advanced = !this.advanced
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
watch: {
|
|
99
|
+
'ticketId' () {
|
|
100
|
+
this.getTicketWorkFlowDetail(this.ticketId)
|
|
101
|
+
},
|
|
102
|
+
'disableCloseBtn' () {
|
|
103
|
+
this.getTicketWorkFlowDetail(this.ticketId)
|
|
104
|
+
},
|
|
105
|
+
'id' () {
|
|
106
|
+
this.getTicketWorkFlowDetail(this.ticketId)
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
</script>
|
|
111
|
+
|
|
112
|
+
<style lang="less" scoped>
|
|
113
|
+
.card_view {
|
|
114
|
+
width: 70%;
|
|
115
|
+
min-width: 700px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.card_view_mobile {
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.card_details_title {
|
|
123
|
+
margin: 4px 0;
|
|
124
|
+
font-size: 14px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.card_details_value {
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
font-weight: bold;
|
|
130
|
+
color: #444;
|
|
131
|
+
margin-bottom: 0;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
text-overflow:ellipsis;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.card_guid {
|
|
138
|
+
width: 25%;
|
|
139
|
+
text-align:left;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.card_guid_mobile {
|
|
143
|
+
width: 50%;
|
|
144
|
+
text-align:left;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.detail-layout {
|
|
148
|
+
margin-left: 44px;
|
|
149
|
+
}
|
|
150
|
+
.text {
|
|
151
|
+
color: rgba(0, 0, 0, .45);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.heading {
|
|
155
|
+
color: rgba(0, 0, 0, .85);
|
|
156
|
+
font-size: 20px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.no-data {
|
|
160
|
+
color: rgba(0, 0, 0, .25);
|
|
161
|
+
text-align: center;
|
|
162
|
+
line-height: 64px;
|
|
163
|
+
font-size: 16px;
|
|
164
|
+
|
|
165
|
+
i {
|
|
166
|
+
font-size: 24px;
|
|
167
|
+
margin-right: 16px;
|
|
168
|
+
position: relative;
|
|
169
|
+
top: 3px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.mobile {
|
|
174
|
+
.detail-layout {
|
|
175
|
+
margin-left: unset;
|
|
176
|
+
}
|
|
177
|
+
.text {
|
|
178
|
+
|
|
179
|
+
}
|
|
180
|
+
.status-list {
|
|
181
|
+
text-align: left;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
</style>
|