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,472 @@
|
|
|
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-spin :spinning="loadInstructDetails">
|
|
10
|
+
<meter-details-view
|
|
11
|
+
:visible.sync="detailVisible"
|
|
12
|
+
:select-org-name="selectOrgName"
|
|
13
|
+
:userid="selectUserId"
|
|
14
|
+
v-if="selectUserId && isShowUserFiles"
|
|
15
|
+
/>
|
|
16
|
+
<a-page-header
|
|
17
|
+
:title="'指令:' + details.f_instruct_type"
|
|
18
|
+
>
|
|
19
|
+
<div class="row">
|
|
20
|
+
<div class="content">
|
|
21
|
+
<a-descriptions size="small" :column="isMobile ? 1 : 2">
|
|
22
|
+
<a-descriptions-item label="指令编号" :span="isMobile ? 1 : 2">{{ details.id }}</a-descriptions-item>
|
|
23
|
+
<a-descriptions-item label="表编号">
|
|
24
|
+
<a v-if="isShowUserFiles" @click="openUserFilesDetails">{{ details.userid }}</a>
|
|
25
|
+
<span v-else>{{ details.userid }}</span>
|
|
26
|
+
</a-descriptions-item>
|
|
27
|
+
<a-descriptions-item label="表号">{{ details.f_meternumber }}</a-descriptions-item>
|
|
28
|
+
<a-descriptions-item label="操作人员">{{ details.f_inputtor }}</a-descriptions-item>
|
|
29
|
+
<a-descriptions-item label="指令说明">{{ details.f_instruct_title }}</a-descriptions-item>
|
|
30
|
+
<a-descriptions-item label="生成时间">{{ format(details.f_instruct_date,'yyyy-MM-dd hh:mm:ss') }}</a-descriptions-item>
|
|
31
|
+
<a-descriptions-item label="表厂别名">{{ details.f_alias }}</a-descriptions-item>
|
|
32
|
+
<a-descriptions-item label="最后发送时间">{{ format(details.f_send_date,'yyyy-MM-dd hh:mm:ss') }}</a-descriptions-item>
|
|
33
|
+
<a-descriptions-item label="最后响应时间">{{ format(details.f_callback_date,'yyyy-MM-dd hh:mm:ss') }}</a-descriptions-item>
|
|
34
|
+
</a-descriptions>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="extra">
|
|
37
|
+
<a-row class="status-list">
|
|
38
|
+
<a-col :xs="12" :sm="24">
|
|
39
|
+
<div class="text">指令状态</div>
|
|
40
|
+
<div class="heading">
|
|
41
|
+
<x-badge :value="details.f_instruct_state" badge-key="instructStateMap" :is-external-text="true"/>
|
|
42
|
+
</div>
|
|
43
|
+
</a-col>
|
|
44
|
+
</a-row>
|
|
45
|
+
<p></p>
|
|
46
|
+
<a-row class="status-list">
|
|
47
|
+
<a-col :xs="12" :sm="24">
|
|
48
|
+
<div class="text">响应结果</div>
|
|
49
|
+
<div class="heading">{{ details.f_receive_state }}</div>
|
|
50
|
+
</a-col>
|
|
51
|
+
</a-row>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<!-- actions -->
|
|
56
|
+
<template v-slot:extra>
|
|
57
|
+
<a-button-group style="margin-right: 4px;">
|
|
58
|
+
<a-button type="dashed" @click="initView" :loading="loadInstructDetails">刷新</a-button>
|
|
59
|
+
</a-button-group>
|
|
60
|
+
<a-button-group style="margin-right: 4px;">
|
|
61
|
+
<a-popover title="重新发送" placement="bottomLeft">
|
|
62
|
+
<template slot="content">
|
|
63
|
+
<p>将指令标记为待发送状态</p>
|
|
64
|
+
<p>指令将在 定时器轮询/表具上报 后重新发送</p>
|
|
65
|
+
<p style="color: red">此操作不可撤销</p>
|
|
66
|
+
</template>
|
|
67
|
+
<a-button type="primary" @click="againSend(details.id)" :disabled="againSendBtnHide()">重新发送</a-button>
|
|
68
|
+
</a-popover>
|
|
69
|
+
<a-popover title="取消发送" placement="bottomLeft">
|
|
70
|
+
<template slot="content">
|
|
71
|
+
<p>该指令将被<span style="color: red;font-weight: bold">取消</span>,请谨慎操作</p>
|
|
72
|
+
<p>只有待发送或已发送的指令可以取消发送</p>
|
|
73
|
+
<p style="color: red">此操作不可撤销</p>
|
|
74
|
+
</template>
|
|
75
|
+
<a-button type="danger" @click="cancelSend(details.id)" :disabled="cancelSendBtnHide()">取消发送</a-button>
|
|
76
|
+
</a-popover>
|
|
77
|
+
</a-button-group>
|
|
78
|
+
</template>
|
|
79
|
+
|
|
80
|
+
<!-- 操作 -->
|
|
81
|
+
<a-card :bordered="false" title="指令状态">
|
|
82
|
+
<a-steps :direction="'horizontal'" :current="step" :status="status">
|
|
83
|
+
<a-step>
|
|
84
|
+
<template v-slot:title><span>待发送</span></template>
|
|
85
|
+
<template v-slot:description>
|
|
86
|
+
<div>指令已经就绪,待发送<div>{{ format(details.f_instruct_date,'yyyy-MM-dd hh:mm:ss') }}</div></div>
|
|
87
|
+
</template>
|
|
88
|
+
</a-step>
|
|
89
|
+
<a-step>
|
|
90
|
+
<template v-slot:title><span>已发送</span></template>
|
|
91
|
+
<template v-slot:description>
|
|
92
|
+
<div>{{ getIntroduction() }}<div>{{ format(details.f_send_date,'yyyy-MM-dd hh:mm:ss') }}</div></div>
|
|
93
|
+
</template>
|
|
94
|
+
</a-step>
|
|
95
|
+
<a-step>
|
|
96
|
+
<template v-slot:title><span>{{ instructResult }}</span></template>
|
|
97
|
+
<template v-slot:description>
|
|
98
|
+
<div>{{ getResultText(instructResult) }}<div>{{ format(details.f_callback_date,'yyyy-MM-dd hh:mm:ss') }}</div></div>
|
|
99
|
+
</template>
|
|
100
|
+
</a-step>
|
|
101
|
+
</a-steps>
|
|
102
|
+
</a-card>
|
|
103
|
+
<a-card
|
|
104
|
+
style="margin-top: 24px"
|
|
105
|
+
:bordered="false"
|
|
106
|
+
:tabList="operationTabList"
|
|
107
|
+
:activeTabKey="operationActiveTabKey"
|
|
108
|
+
@tabChange="(key) => {this.operationActiveTabKey = key}"
|
|
109
|
+
>
|
|
110
|
+
<div v-if="operationActiveTabKey === '1'">
|
|
111
|
+
<a-card type="inner" title="指令内容">
|
|
112
|
+
<json-viewer :copyable="{copyText: '复制', copiedText: '已复制'}" :value="details.f_instruct_content === undefined ? {} : toJSON(details.f_instruct_content)"></json-viewer>
|
|
113
|
+
</a-card>
|
|
114
|
+
<a-card type="inner" title="指令元数据">
|
|
115
|
+
<json-viewer :copyable="{copyText: '复制', copiedText: '已复制'}" :value="details.f_instruct_meta_data === undefined ? {} : toJSON(details.f_instruct_meta_data)"></json-viewer>
|
|
116
|
+
</a-card>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<x-table
|
|
120
|
+
v-if="loaded && operationActiveTabKey === '2'"
|
|
121
|
+
:json-data="showColumns"
|
|
122
|
+
:queryParamsName="queryParamsName"
|
|
123
|
+
@loadData="loadData"
|
|
124
|
+
:form="form"
|
|
125
|
+
/>
|
|
126
|
+
<div v-else-if="operationActiveTabKey === '3'" class="no-data"><a-icon type="frown-o"/>暂无数据</div>
|
|
127
|
+
</a-card>
|
|
128
|
+
</a-page-header>
|
|
129
|
+
</a-spin>
|
|
130
|
+
</a-drawer>
|
|
131
|
+
</template>
|
|
132
|
+
|
|
133
|
+
<script>
|
|
134
|
+
import JsonViewer from 'vue-json-viewer'
|
|
135
|
+
import { formatDate } from '@vue2-client/utils/util'
|
|
136
|
+
import { InstructDetailsViewApi } from '@vue2-client/services/api/InstructDetailsViewApi'
|
|
137
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
138
|
+
import { query, commonApi } from '@vue2-client/services/api/common'
|
|
139
|
+
import XTable from '@vue2-client/base-client/components/common/XTable/XTable'
|
|
140
|
+
import { mapState } from 'vuex'
|
|
141
|
+
|
|
142
|
+
export default {
|
|
143
|
+
name: 'InstructDetailsView',
|
|
144
|
+
components: {
|
|
145
|
+
JsonViewer,
|
|
146
|
+
XTable
|
|
147
|
+
},
|
|
148
|
+
data () {
|
|
149
|
+
return {
|
|
150
|
+
// 页面宽度
|
|
151
|
+
screenWidth: document.documentElement.clientWidth,
|
|
152
|
+
// 指令详情
|
|
153
|
+
details: {
|
|
154
|
+
id: 0,
|
|
155
|
+
userid: 0,
|
|
156
|
+
f_meternumber: '',
|
|
157
|
+
f_instruct_type: '',
|
|
158
|
+
f_instruct_title: '',
|
|
159
|
+
f_instruct_state: '待发送',
|
|
160
|
+
f_receive_state: '',
|
|
161
|
+
f_inputtor: '',
|
|
162
|
+
f_alias: '',
|
|
163
|
+
f_instruct_date: '',
|
|
164
|
+
f_send_date: '',
|
|
165
|
+
f_callback_date: '',
|
|
166
|
+
f_instruct_meta_data: {},
|
|
167
|
+
f_instruct_content: {}
|
|
168
|
+
},
|
|
169
|
+
// 当前步骤
|
|
170
|
+
step: 0,
|
|
171
|
+
// 当前状态,
|
|
172
|
+
status: 'process',
|
|
173
|
+
// 指令状态结果
|
|
174
|
+
instructResult: '执行成功',
|
|
175
|
+
// 档案详情组件显示
|
|
176
|
+
detailVisible: false,
|
|
177
|
+
// 查询的档案id
|
|
178
|
+
selectUserId: undefined,
|
|
179
|
+
// 档案id
|
|
180
|
+
userId: undefined,
|
|
181
|
+
// 指令详情加载
|
|
182
|
+
loadInstructDetails: true,
|
|
183
|
+
// 查询配置文件名
|
|
184
|
+
queryParamsName: 'recordQueryParams',
|
|
185
|
+
// 查询列集合
|
|
186
|
+
showColumns: [],
|
|
187
|
+
// queryJson加载是否完成
|
|
188
|
+
loaded: false,
|
|
189
|
+
// 查询操作日志表单
|
|
190
|
+
form: {
|
|
191
|
+
f_data_id: this.instructid,
|
|
192
|
+
f_org_name: this.selectOrgName
|
|
193
|
+
},
|
|
194
|
+
operationTabList: [
|
|
195
|
+
{
|
|
196
|
+
key: '1',
|
|
197
|
+
tab: '开发者信息'
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
key: '2',
|
|
201
|
+
tab: '操作日志'
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
key: '3',
|
|
205
|
+
tab: '维护教程'
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
operationActiveTabKey: '1'
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
created () {
|
|
212
|
+
this.getColumnsJson()
|
|
213
|
+
},
|
|
214
|
+
mounted () {
|
|
215
|
+
this.initView()
|
|
216
|
+
},
|
|
217
|
+
computed: {
|
|
218
|
+
...mapState('account', { currUser: 'user' }),
|
|
219
|
+
...mapState('setting', ['isMobile'])
|
|
220
|
+
},
|
|
221
|
+
props: {
|
|
222
|
+
instructid: {
|
|
223
|
+
type: String,
|
|
224
|
+
required: true
|
|
225
|
+
},
|
|
226
|
+
selectOrgName: {
|
|
227
|
+
type: String,
|
|
228
|
+
required: true
|
|
229
|
+
},
|
|
230
|
+
visible: {
|
|
231
|
+
type: Boolean,
|
|
232
|
+
default: false
|
|
233
|
+
},
|
|
234
|
+
isShowUserFiles: {
|
|
235
|
+
type: Boolean,
|
|
236
|
+
default: true
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
methods: {
|
|
240
|
+
// 初始化组件
|
|
241
|
+
initView () {
|
|
242
|
+
this.getInstruct(this.instructid, this.selectOrgName)
|
|
243
|
+
},
|
|
244
|
+
// 获取查询配置JSON
|
|
245
|
+
getColumnsJson () {
|
|
246
|
+
post(commonApi.getColumnsJson, { str: this.queryParamsName }).then((res) => {
|
|
247
|
+
this.showColumns = res.columnJson
|
|
248
|
+
this.loaded = true
|
|
249
|
+
})
|
|
250
|
+
},
|
|
251
|
+
// 关闭抽屉时回调
|
|
252
|
+
onClose () {
|
|
253
|
+
this.$emit('update:visible', false)
|
|
254
|
+
},
|
|
255
|
+
// 加载xTable数据
|
|
256
|
+
loadData (requestParameters, callback) {
|
|
257
|
+
callback(query(requestParameters))
|
|
258
|
+
},
|
|
259
|
+
// 获取指令详情信息
|
|
260
|
+
getInstruct (instructId, selectOrgName) {
|
|
261
|
+
this.loadInstructDetails = true
|
|
262
|
+
return post(InstructDetailsViewApi.getInstructDetails, {
|
|
263
|
+
id: instructId,
|
|
264
|
+
orgName: selectOrgName
|
|
265
|
+
})
|
|
266
|
+
.then(res => {
|
|
267
|
+
this.details = res
|
|
268
|
+
this.userId = res.userid + ''
|
|
269
|
+
// 判断当前指令状态是不是最终流程
|
|
270
|
+
if (this.details.f_instruct_state === '待发送') {
|
|
271
|
+
this.status = 'process'
|
|
272
|
+
this.step = 0
|
|
273
|
+
this.instructResult = '执行成功'
|
|
274
|
+
} else if (this.details.f_instruct_state === '已发送') {
|
|
275
|
+
this.status = 'process'
|
|
276
|
+
this.step = 1
|
|
277
|
+
this.instructResult = '执行成功'
|
|
278
|
+
} else {
|
|
279
|
+
this.step = 2
|
|
280
|
+
this.instructResult = this.details.f_instruct_state
|
|
281
|
+
if (this.details.f_instruct_state === '发送失败' || this.details.f_instruct_state === '执行失败' ||
|
|
282
|
+
this.details.f_instruct_state === '响应超时') {
|
|
283
|
+
this.status = 'error'
|
|
284
|
+
} else if (this.details.f_instruct_state === '忽略冗余' || this.details.f_instruct_state === '无响应' || this.details.f_instruct_state === '已延迟') {
|
|
285
|
+
this.status = 'wait'
|
|
286
|
+
} else {
|
|
287
|
+
this.status = 'finish'
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
this.loadInstructDetails = false
|
|
291
|
+
}, err => {
|
|
292
|
+
this.loadInstructDetails = false
|
|
293
|
+
console.error(err)
|
|
294
|
+
})
|
|
295
|
+
},
|
|
296
|
+
// 获取指令操作记录
|
|
297
|
+
getRecord (requestParameters) {
|
|
298
|
+
return post(InstructDetailsViewApi.getInstructRecordList, requestParameters)
|
|
299
|
+
.then(res => {
|
|
300
|
+
return res
|
|
301
|
+
})
|
|
302
|
+
},
|
|
303
|
+
// 日期格式化
|
|
304
|
+
format (date, format) {
|
|
305
|
+
return formatDate(date, format)
|
|
306
|
+
},
|
|
307
|
+
// 重新发送指令
|
|
308
|
+
againSend (id) {
|
|
309
|
+
const _this = this
|
|
310
|
+
this.$confirm({
|
|
311
|
+
title: '您确定要重新发送该指令吗?',
|
|
312
|
+
content: '指令状态将被标记为待发送',
|
|
313
|
+
okText: '确定',
|
|
314
|
+
okType: 'danger',
|
|
315
|
+
cancelText: '取消',
|
|
316
|
+
onOk () {
|
|
317
|
+
return post(InstructDetailsViewApi.againSendInstruct, {
|
|
318
|
+
id: id,
|
|
319
|
+
orgName: _this.selectOrgName,
|
|
320
|
+
username: _this.currUser.username
|
|
321
|
+
}).then(res => {
|
|
322
|
+
_this.getInstruct(id, _this.selectOrgName)
|
|
323
|
+
if (res.nums === 1) {
|
|
324
|
+
_this.$message.success('操作成功')
|
|
325
|
+
} else {
|
|
326
|
+
_this.$message.error('操作失败')
|
|
327
|
+
}
|
|
328
|
+
})
|
|
329
|
+
}
|
|
330
|
+
})
|
|
331
|
+
},
|
|
332
|
+
// 取消发送指令
|
|
333
|
+
cancelSend (id) {
|
|
334
|
+
const _this = this
|
|
335
|
+
this.$confirm({
|
|
336
|
+
title: '您确定要取消发送该指令吗?',
|
|
337
|
+
content: '指令状态将被标记为忽略冗余',
|
|
338
|
+
okText: '确定',
|
|
339
|
+
okType: 'danger',
|
|
340
|
+
cancelText: '取消',
|
|
341
|
+
onOk () {
|
|
342
|
+
return post(InstructDetailsViewApi.cancelSendInstruct, {
|
|
343
|
+
id: id,
|
|
344
|
+
orgName: _this.selectOrgName,
|
|
345
|
+
username: _this.currUser.username
|
|
346
|
+
}).then(res => {
|
|
347
|
+
_this.getInstruct(id, _this.selectOrgName)
|
|
348
|
+
if (res.nums === 1) {
|
|
349
|
+
_this.$message.success('操作成功')
|
|
350
|
+
} else {
|
|
351
|
+
_this.$message.error('操作失败')
|
|
352
|
+
}
|
|
353
|
+
})
|
|
354
|
+
}
|
|
355
|
+
})
|
|
356
|
+
},
|
|
357
|
+
// 控制重新发送按钮的显示
|
|
358
|
+
againSendBtnHide () {
|
|
359
|
+
return this.step === 0 || this.loadInstructDetails
|
|
360
|
+
},
|
|
361
|
+
// 控制取消发送按钮的显示
|
|
362
|
+
cancelSendBtnHide () {
|
|
363
|
+
return (this.step !== 0 && this.step !== 1 && this.details.f_instruct_state !== '已延迟') || this.loadInstructDetails
|
|
364
|
+
},
|
|
365
|
+
// 转换JSON
|
|
366
|
+
toJSON (value) {
|
|
367
|
+
try {
|
|
368
|
+
return JSON.parse(value)
|
|
369
|
+
} catch (e) {
|
|
370
|
+
return value
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
// 获取指令过程说明
|
|
374
|
+
getIntroduction () {
|
|
375
|
+
if (this.step > 0) {
|
|
376
|
+
return '已发送,等待响应结果'
|
|
377
|
+
} else if (this.step === 0) {
|
|
378
|
+
return ''
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
// 获取指令结果说明
|
|
382
|
+
getResultText (value) {
|
|
383
|
+
if (this.step === 2) {
|
|
384
|
+
if (value === '执行成功') {
|
|
385
|
+
return '指令已发送成功'
|
|
386
|
+
} else if (value === '执行失败') {
|
|
387
|
+
return '失败,请查看响应结果'
|
|
388
|
+
} else if (value === '忽略冗余') {
|
|
389
|
+
return '指令已被取消发送'
|
|
390
|
+
} else if (value === '无响应') {
|
|
391
|
+
return '无法得到指令响应结果'
|
|
392
|
+
} else if (value === '响应超时') {
|
|
393
|
+
return '未得到指令响应结果'
|
|
394
|
+
} else if (value === '已延迟') {
|
|
395
|
+
return '由于表具限制,指令已被延迟发送'
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
// 打开档案详情抽屉
|
|
400
|
+
openUserFilesDetails () {
|
|
401
|
+
this.selectUserId = this.userId
|
|
402
|
+
this.detailVisible = true
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
watch: {
|
|
406
|
+
'visible' (val) {
|
|
407
|
+
if (val) {
|
|
408
|
+
this.initView()
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
</script>
|
|
414
|
+
|
|
415
|
+
<style lang="less" scoped>
|
|
416
|
+
.detail-layout {
|
|
417
|
+
margin-left: 44px;
|
|
418
|
+
}
|
|
419
|
+
.text {
|
|
420
|
+
color: rgba(0, 0, 0, .45);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.heading {
|
|
424
|
+
color: rgba(0, 0, 0, .85);
|
|
425
|
+
font-size: 20px;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.no-data {
|
|
429
|
+
color: rgba(0, 0, 0, .25);
|
|
430
|
+
text-align: center;
|
|
431
|
+
line-height: 64px;
|
|
432
|
+
font-size: 16px;
|
|
433
|
+
|
|
434
|
+
i {
|
|
435
|
+
font-size: 24px;
|
|
436
|
+
margin-right: 16px;
|
|
437
|
+
position: relative;
|
|
438
|
+
top: 3px;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.mobile {
|
|
443
|
+
.detail-layout {
|
|
444
|
+
margin-left: unset;
|
|
445
|
+
}
|
|
446
|
+
.text {
|
|
447
|
+
|
|
448
|
+
}
|
|
449
|
+
.status-list {
|
|
450
|
+
text-align: left;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.row {
|
|
455
|
+
display: flex;
|
|
456
|
+
|
|
457
|
+
.content {
|
|
458
|
+
-webkit-box-flex: 1;
|
|
459
|
+
flex: auto;
|
|
460
|
+
-ms-flex: auto;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.extra {
|
|
464
|
+
flex: 0 1 auto;
|
|
465
|
+
-webkit-box-flex: 0;
|
|
466
|
+
-ms-flex: 0 1 auto;
|
|
467
|
+
min-width: 242px;
|
|
468
|
+
margin-left: 88px;
|
|
469
|
+
text-align: right;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
</style>
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# InstructDetailsView 指令详情页
|
|
2
|
+
|
|
3
|
+
提供一个可以对单个指令进行一系列通用业务操作的抽屉实现
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## 何时使用
|
|
8
|
+
|
|
9
|
+
允许用户对单个指令进行一系列通用业务操作,常用于作为指令详情页的通用实现。
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
引用方式:
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import InstructDetailsView from '@vue2-client/base-client/components/InstructDetailsView'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
components: {
|
|
20
|
+
InstructDetailsView
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 代码演示
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<instruct-details-view
|
|
31
|
+
:visible.sync="detailVisible"
|
|
32
|
+
:select-org-name="selectOrgName"
|
|
33
|
+
:instructid="selectInstructId"
|
|
34
|
+
:isShowUserFiles="isShowUserFiles"
|
|
35
|
+
v-if="selectInstructId" />
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## API
|
|
39
|
+
|
|
40
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
41
|
+
|-----------------|-------------|---------|-------|
|
|
42
|
+
| visible | 是否显示 | Boolean | false |
|
|
43
|
+
| selectOrgName | 燃气公司客户名 | String | null |
|
|
44
|
+
| instructid | 指令ID | String | null |
|
|
45
|
+
| isShowUserFiles | 是否允许跳转到档案详情 | Boolean | true |
|