From 354f3f5ac5860a76403adcecf7f5bf890b64fc27 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 9 Aug 2024 13:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/utils/globalUrl.js | 18 +- .../machinery/IOTequipment/index.vue | 868 ++++++++++-------- .../machinery/coding/component/MapDIalog.vue | 8 +- .../machinery/coding/index.vue | 5 +- 4 files changed, 503 insertions(+), 396 deletions(-) diff --git a/sgzb-ui/src/utils/globalUrl.js b/sgzb-ui/src/utils/globalUrl.js index 42a1416d..2e3ca13e 100644 --- a/sgzb-ui/src/utils/globalUrl.js +++ b/sgzb-ui/src/utils/globalUrl.js @@ -6,21 +6,15 @@ // const qrUrl = 'https://z.csgmall.com.cn/gl/qrCode/qrCodePage?qrCode='; //南网 // const qrUrl = process.env.NODE_ENV === 'production' ? 'http://192.168.0.14:18866/qrCode/qrCodePage?qrCode=' : 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode=' -let qrUrl = '' -const origin = window.location.origin -if (origin == 'http://112.29.103.165:21626') { - qrUrl = 'http://112.29.103.165:21626/qrCode/qrCodePage?qrCode=' -} else { - qrUrl = 'http://192.168.0.14:18866/qrCode/qrCodePage?qrCode=' + + + +const qrUrl = process.env.NODE_ENV === 'production' ? 'http://192.168.0.62:21624/sgzbgl/qrCode/qrCodePage?qrCode=' : 'http://192.168.0.14:18866/qrCode/qrCodePage?qrCode=' +export default { + qrUrl, } -// const qrUrl = process.env.NODE_ENV === 'production' ? 'https://z.csgmall.com.cn/sgzbgl/qrCode/qrCodePage?qrCode=' : 'http://192.168.0.14:18866/qrCode/qrCodePage?qrCode=' -// export default { -// qrUrl, -// } - - diff --git a/sgzb-ui/src/views/warehouseManage/machinery/IOTequipment/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/IOTequipment/index.vue index 86a4e859..a0dd38fd 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/IOTequipment/index.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/IOTequipment/index.vue @@ -1,405 +1,517 @@ diff --git a/sgzb-ui/src/views/warehouseManage/machinery/coding/component/MapDIalog.vue b/sgzb-ui/src/views/warehouseManage/machinery/coding/component/MapDIalog.vue index c6e4873d..66d12e90 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/coding/component/MapDIalog.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/coding/component/MapDIalog.vue @@ -13,9 +13,7 @@ ({{ deviceType }}) -
- 定位设备编号: {{ equipmentNumber }} -
+
定位设备编号: {{ iotCode }}
{{ engineering }}工程
@@ -253,6 +251,10 @@ export default { }, /** 查询按钮 */ async handleQuery() { + if (this.queryForm.date.length < 1) { + this.$message.error('请选择时间范围!') + return + } this.tripParams.iotId = this.iotCode const res = await getIotDeviceTripApi({ ...this.tripParams }) console.log(res, '行程信息--') diff --git a/sgzb-ui/src/views/warehouseManage/machinery/coding/index.vue b/sgzb-ui/src/views/warehouseManage/machinery/coding/index.vue index 5e5e4924..1299ec71 100644 --- a/sgzb-ui/src/views/warehouseManage/machinery/coding/index.vue +++ b/sgzb-ui/src/views/warehouseManage/machinery/coding/index.vue @@ -125,8 +125,7 @@ - - +