From 6adb1dc728931556f8d0639a3cda761c596cae40 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Wed, 3 Jul 2024 17:10:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E9=A1=B5=E9=9D=A2=E6=90=AD?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/public/index.html | 3 + sgzb-ui/src/assets/images/endIcon.png | Bin 0 -> 4595 bytes sgzb-ui/src/assets/images/startIcon.png | Bin 0 -> 4084 bytes .../machinery/coding/component/MapDIalog.vue | 176 +++++++++++++++++- .../machinery/coding/index.vue | 15 +- 5 files changed, 179 insertions(+), 15 deletions(-) create mode 100644 sgzb-ui/src/assets/images/endIcon.png create mode 100644 sgzb-ui/src/assets/images/startIcon.png diff --git a/sgzb-ui/public/index.html b/sgzb-ui/public/index.html index 63e9fadc..82b4e090 100644 --- a/sgzb-ui/public/index.html +++ b/sgzb-ui/public/index.html @@ -11,6 +11,9 @@ <%= webpackConfig.name %> + + + + diff --git a/sgzb-ui/src/views/warehouseManage/machinery/coding/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/coding/index.vue index 6eb7a8f8..768b29c1 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/coding/index.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/coding/index.vue @@ -533,7 +533,7 @@ - +
@@ -557,13 +557,13 @@ import { listHouseTree } from '@/api/store/shelves' import Treeselect from '@riophae/vue-treeselect' import '@riophae/vue-treeselect/dist/vue-treeselect.css' import QRCode from 'qrcodejs2' -import BindIOT from './component/BindIOT.vue' -import MapDIalog from './component/MapDIalog.vue' +import BindIOT from './component/BindIOT' +import MapDialog from './component/MapDialog' export default { name: 'Devices', dicts: ['sys_normal_disable'], - components: { Treeselect, BindIOT, MapDIalog }, + components: { Treeselect, BindIOT, MapDialog }, data() { return { openMap: false, @@ -820,8 +820,13 @@ export default { }, handleMap(row) { console.log('~ handleMap ~ 地图', row) + const params = { + deviceType: row.deviceType, + } // 点击打开弹框 - this.openMap = true + this.$refs.mapDIalog.openMapDialog(true) + this.$refs.mapDIalog.getEquipmentInfo(params) + this.$refs.mapDIalog.initMap() } }, }