From fb150da97a18e7651fc36dc76154736544366fac Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Tue, 22 Jul 2025 06:05:20 +0800 Subject: [PATCH] =?UTF-8?q?[1078]=20=E5=AE=8C=E5=96=84=E7=BB=88=E7=AB=AF?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/jt1078/bean/JTDeviceConfig.java | 2 +- .../deviceParam/canCollectionParam.vue | 86 +++++++++++++++++++ .../views/jtDevice/deviceParam/gnssParam.vue | 83 ++++++++++++------ web/src/views/jtDevice/deviceParam/index.vue | 6 +- 4 files changed, 149 insertions(+), 28 deletions(-) create mode 100755 web/src/views/jtDevice/deviceParam/canCollectionParam.vue diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTDeviceConfig.java b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTDeviceConfig.java index 8905bcab4..fef0d6708 100644 --- a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTDeviceConfig.java +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTDeviceConfig.java @@ -258,7 +258,7 @@ public class JTDeviceConfig { @ConfigAttribute(id = 0x92, type="Short", description = "GNSS 模块详细定位数据输出频率,定义如下: 0: 500ms, 1:1000ms(默认值), 2:2000ms, 3:3000ms, 4:4000ms") private Short gnssOutputFrequency; - @ConfigAttribute(id = 0x93, type="Long", description = "GNSS 模块详细定位数据采集频率 ,单位为秒(s) ,默认为1") + @ConfigAttribute(id = 0x93, type="Long", description = "GNSS 模块详细定位数据采集频率 ,单位为秒(s) ,默认为1") private Long gnssCollectionFrequency; @ConfigAttribute(id = 0x94, type="Short", description = "GNSS 模块详细定位数据上传方式:,定义如下: " + diff --git a/web/src/views/jtDevice/deviceParam/canCollectionParam.vue b/web/src/views/jtDevice/deviceParam/canCollectionParam.vue new file mode 100755 index 000000000..42b9102e8 --- /dev/null +++ b/web/src/views/jtDevice/deviceParam/canCollectionParam.vue @@ -0,0 +1,86 @@ + + + diff --git a/web/src/views/jtDevice/deviceParam/gnssParam.vue b/web/src/views/jtDevice/deviceParam/gnssParam.vue index 6ca611d05..2398249ae 100755 --- a/web/src/views/jtDevice/deviceParam/gnssParam.vue +++ b/web/src/views/jtDevice/deviceParam/gnssParam.vue @@ -2,36 +2,52 @@
- - - - - - - - - - - - - + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

@@ -46,7 +62,22 @@ export default { name: 'communication', - components: { + components: {}, + computed: { + gnssDataUploadMethodUnitLable(){ + switch (this.form.gnssDataUploadMethod) { + case 1: + case 11: + return '上传设置(秒)' + case 2: + case 12: + return '上传设置(米)' + case 13: + return '上传设置(条)' + default: + return '上传设置' + } + } }, props: { phoneNumber: { diff --git a/web/src/views/jtDevice/deviceParam/index.vue b/web/src/views/jtDevice/deviceParam/index.vue index f9c75c3bd..a3441956d 100755 --- a/web/src/views/jtDevice/deviceParam/index.vue +++ b/web/src/views/jtDevice/deviceParam/index.vue @@ -42,6 +42,9 @@ + + +

@@ -59,11 +62,12 @@ import videoParam from './videoParam.vue' import awakenParam from './awakenParam.vue' import carInfo from './carInfo.vue' import gnssParam from './gnssParam.vue' +import canCollectionParam from './canCollectionParam.vue' export default { name: 'JTDeviceParam', components: { - communication, server, position, phoneNumber, alarm, driving, cameraTimer, imageConfig, videoParam, awakenParam, carInfo, gnssParam + communication, server, position, phoneNumber, alarm, driving, cameraTimer, imageConfig, videoParam, awakenParam, carInfo, gnssParam, canCollectionParam }, props: { phoneNumber: {