diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/config/JTAlarmRecordingParam.java b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/config/JTAlarmRecordingParam.java
index 136881cc8..299e8288b 100644
--- a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/config/JTAlarmRecordingParam.java
+++ b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/config/JTAlarmRecordingParam.java
@@ -9,7 +9,7 @@ import io.netty.buffer.Unpooled;
public class JTAlarmRecordingParam implements JTDeviceSubConfig{
/**
- * 特殊报警录像存储阈值, 分比,取值 特殊报警录像占用主存储器存储阈值百 1 ~ 99,默认值为 20
+ * 特殊报警录像存储阈值, 百分比,取值 特殊报警录像占用主存储器存储阈值百 1 ~ 99,默认值为 20
*/
private int storageLimit;
diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/config/JTIllegalDrivingPeriods.java b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/config/JTIllegalDrivingPeriods.java
index ad2250328..297a48882 100644
--- a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/config/JTIllegalDrivingPeriods.java
+++ b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/config/JTIllegalDrivingPeriods.java
@@ -2,10 +2,14 @@ package com.genersoft.iot.vmp.jt1078.bean.config;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
+import lombok.Getter;
+import lombok.Setter;
/**
* 违规行驶时段范围 ,精确到分
*/
+@Setter
+@Getter
public class JTIllegalDrivingPeriods implements JTDeviceSubConfig{
/**
* 违规行驶时段-开始时间 HH:mm
@@ -17,22 +21,6 @@ public class JTIllegalDrivingPeriods implements JTDeviceSubConfig{
*/
private String endTime;
- public String getStartTime() {
- return startTime;
- }
-
- public void setStartTime(String startTime) {
- this.startTime = startTime;
- }
-
- public String getEndTime() {
- return endTime;
- }
-
- public void setEndTime(String endTime) {
- this.endTime = endTime;
- }
-
@Override
public ByteBuf encode() {
ByteBuf byteBuf = Unpooled.buffer();
diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/codec/decode/Jt808Decoder.java b/src/main/java/com/genersoft/iot/vmp/jt1078/codec/decode/Jt808Decoder.java
index d531add76..dd1ad669d 100644
--- a/src/main/java/com/genersoft/iot/vmp/jt1078/codec/decode/Jt808Decoder.java
+++ b/src/main/java/com/genersoft/iot/vmp/jt1078/codec/decode/Jt808Decoder.java
@@ -83,6 +83,7 @@ public class Jt808Decoder extends ByteToMessageDecoder {
}
Rs decode = handler.decode(buf, header, session, service);
+ buf.release();
ApplicationEvent applicationEvent = handler.getEvent();
if (applicationEvent != null) {
applicationEventPublisher.publishEvent(applicationEvent);
@@ -90,7 +91,6 @@ public class Jt808Decoder extends ByteToMessageDecoder {
if (decode != null) {
out.add(decode);
}
- buf.release();
} finally {
in.skipBytes(in.readableBytes());
}
diff --git a/web/src/views/jtDevice/deviceParam/alarm.vue b/web/src/views/jtDevice/deviceParam/alarm.vue
index fdce276d5..af13c6150 100755
--- a/web/src/views/jtDevice/deviceParam/alarm.vue
+++ b/web/src/views/jtDevice/deviceParam/alarm.vue
@@ -3,22 +3,28 @@
- {form.alarmMaskingWord = data}">
+ {form.alarmMaskingWord = data}">
- {form.alarmSendsTextSmsSwitch = data}">
+ {form.alarmSendsTextSmsSwitch = data}">
- {form.alarmShootingSwitch = data}">
+ {form.alarmShootingSwitch = data}">
- {form.alarmShootingStorageFlags = data}">
+ {form.alarmShootingStorageFlags = data}">
- {form.keySign = data}">
+ {form.keySign = data}">
-
-
+
+ {form.videoAlarmBit = data}">
+
+
+
+
+
+
@@ -32,11 +38,12 @@
diff --git a/web/src/views/jtDevice/deviceParam/driving.vue b/web/src/views/jtDevice/deviceParam/driving.vue
index 4614e4832..74df199a6 100755
--- a/web/src/views/jtDevice/deviceParam/driving.vue
+++ b/web/src/views/jtDevice/deviceParam/driving.vue
@@ -2,42 +2,36 @@
-
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/web/src/views/jtDevice/deviceParam/imageConfig.vue b/web/src/views/jtDevice/deviceParam/imageConfig.vue
new file mode 100755
index 000000000..fe1106142
--- /dev/null
+++ b/web/src/views/jtDevice/deviceParam/imageConfig.vue
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确认
+ 取消
+
+
+
+
+
+
+
diff --git a/web/src/views/jtDevice/deviceParam/index.vue b/web/src/views/jtDevice/deviceParam/index.vue
index 452e3b938..4cc2f726c 100755
--- a/web/src/views/jtDevice/deviceParam/index.vue
+++ b/web/src/views/jtDevice/deviceParam/index.vue
@@ -27,8 +27,14 @@
-
-
+
+
+
+
+
+
+
+
@@ -42,12 +48,14 @@ import phoneNumber from './phoneNumber.vue'
import alarm from './alarm.vue'
import driving from './driving.vue'
import cameraTimer from './cameraTimer.vue'
-import media from './media.vue'
+import imageConfig from './imageConfig.vue'
+import videoParam from './videoParam.vue'
+import awakenParam from './awakenParam.vue'
export default {
name: 'JTDeviceParam',
components: {
- communication, server, position, phoneNumber, alarm, driving, cameraTimer, media
+ communication, server, position, phoneNumber, alarm, driving, cameraTimer, imageConfig, videoParam, awakenParam
},
props: {
phoneNumber: {
@@ -57,11 +65,7 @@ export default {
},
data() {
return {
- form: {
- collisionAlarmParams: {},
- illegalDrivingPeriods: {},
- cameraTimer: {}
- },
+ form: {},
rules: {
deviceId: [{ required: true, message: '请输入设备编号', trigger: 'blur' }]
},
diff --git a/web/src/views/jtDevice/deviceParam/media.vue b/web/src/views/jtDevice/deviceParam/media.vue
deleted file mode 100755
index 4614e4832..000000000
--- a/web/src/views/jtDevice/deviceParam/media.vue
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确认
- 取消
-
-
-
-
-
-
diff --git a/web/src/views/jtDevice/deviceParam/position.vue b/web/src/views/jtDevice/deviceParam/position.vue
index a93c7e441..865b24f6d 100755
--- a/web/src/views/jtDevice/deviceParam/position.vue
+++ b/web/src/views/jtDevice/deviceParam/position.vue
@@ -1,6 +1,6 @@
-
+
@@ -16,32 +16,42 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
@@ -66,6 +76,7 @@ export default {
},
data() {
return {
+ illegalDrivingPeriods: [new Date(), new Date()],
form: {},
isLoading: false
}
@@ -79,6 +90,12 @@ export default {
this.isLoading = true
this.$store.dispatch('jtDevice/queryConfig', this.phoneNumber)
.then((data) => {
+ if (!data.illegalDrivingPeriods) {
+ data.illegalDrivingPeriods = {
+ startTime: null,
+ endTime: null
+ }
+ }
this.form = data
})
.catch((e) => {
diff --git a/web/src/views/jtDevice/deviceParam/videoAlarmSign.vue b/web/src/views/jtDevice/deviceParam/videoAlarmSign.vue
new file mode 100755
index 000000000..7218c6185
--- /dev/null
+++ b/web/src/views/jtDevice/deviceParam/videoAlarmSign.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web/src/views/jtDevice/deviceParam/videoParam.vue b/web/src/views/jtDevice/deviceParam/videoParam.vue
new file mode 100755
index 000000000..964446dac
--- /dev/null
+++ b/web/src/views/jtDevice/deviceParam/videoParam.vue
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确认
+ 取消
+
+
+
+
+
+
+
diff --git a/web/src/views/jtDevice/jtDeviceParam.vue b/web/src/views/jtDevice/jtDeviceParam.vue
deleted file mode 100755
index 02e2e4eb7..000000000
--- a/web/src/views/jtDevice/jtDeviceParam.vue
+++ /dev/null
@@ -1,342 +0,0 @@
-
-
-
-
-
- 通讯参数
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 服务器参数
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 位置汇报
-
-
-
- 定时汇报
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 电话号码
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 定时汇报
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 报警参数
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 行驶参数
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 定时拍照控制
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确认
- 取消
-
-
-
-
-
-
-