diff --git a/src/api/models.js b/src/api/models.js
index bdb75dd..f910541 100644
--- a/src/api/models.js
+++ b/src/api/models.js
@@ -25,7 +25,7 @@
const gitNewVls = (data) => {
return request.get(`device/level/${data}`)
}
-
+// 视频地址
const getVideoUrl = (code) => {
return request({
url: '/hkvideo/getVideoUrl',
@@ -45,4 +45,11 @@
}
})
}
-export { request, configWarn, listPage, warnList, batchCancelled, getDevInfo, gitNewVls, getVideoUrl }
+// 获取报警开关状态
+const getAlarmSwitchStatus = () => {
+ return request.get('alarm/push/query', { params: { scene: 'H2S' }})
+}
+const setAlarmSwitch = (params) => {
+ return request.get('alarm/push/config', { params})
+}
+export { configWarn, listPage, warnList, batchCancelled, getDevInfo, gitNewVls, getVideoUrl, getAlarmSwitchStatus, setAlarmSwitch }
diff --git a/src/api/models.js b/src/api/models.js
index bdb75dd..f910541 100644
--- a/src/api/models.js
+++ b/src/api/models.js
@@ -25,7 +25,7 @@
const gitNewVls = (data) => {
return request.get(`device/level/${data}`)
}
-
+// 视频地址
const getVideoUrl = (code) => {
return request({
url: '/hkvideo/getVideoUrl',
@@ -45,4 +45,11 @@
}
})
}
-export { request, configWarn, listPage, warnList, batchCancelled, getDevInfo, gitNewVls, getVideoUrl }
+// 获取报警开关状态
+const getAlarmSwitchStatus = () => {
+ return request.get('alarm/push/query', { params: { scene: 'H2S' }})
+}
+const setAlarmSwitch = (params) => {
+ return request.get('alarm/push/config', { params})
+}
+export { configWarn, listPage, warnList, batchCancelled, getDevInfo, gitNewVls, getVideoUrl, getAlarmSwitchStatus, setAlarmSwitch }
diff --git a/src/components/homeComp/curveTableCH4.vue b/src/components/homeComp/curveTableCH4.vue
index b54d0b6..c0b1c1e 100644
--- a/src/components/homeComp/curveTableCH4.vue
+++ b/src/components/homeComp/curveTableCH4.vue
@@ -110,7 +110,7 @@
this.options.xAxis.data = newVal
this.options.series[0].data = this.line
const max = Math.floor(Math.max(...this.line) * 1.5)
- this.options.yAxis.max = max > 10 ? max : 10
+ this.options.yAxis.max = max>1?max:1
this.refreshChart()
}
},
diff --git a/src/api/models.js b/src/api/models.js
index bdb75dd..f910541 100644
--- a/src/api/models.js
+++ b/src/api/models.js
@@ -25,7 +25,7 @@
const gitNewVls = (data) => {
return request.get(`device/level/${data}`)
}
-
+// 视频地址
const getVideoUrl = (code) => {
return request({
url: '/hkvideo/getVideoUrl',
@@ -45,4 +45,11 @@
}
})
}
-export { request, configWarn, listPage, warnList, batchCancelled, getDevInfo, gitNewVls, getVideoUrl }
+// 获取报警开关状态
+const getAlarmSwitchStatus = () => {
+ return request.get('alarm/push/query', { params: { scene: 'H2S' }})
+}
+const setAlarmSwitch = (params) => {
+ return request.get('alarm/push/config', { params})
+}
+export { configWarn, listPage, warnList, batchCancelled, getDevInfo, gitNewVls, getVideoUrl, getAlarmSwitchStatus, setAlarmSwitch }
diff --git a/src/components/homeComp/curveTableCH4.vue b/src/components/homeComp/curveTableCH4.vue
index b54d0b6..c0b1c1e 100644
--- a/src/components/homeComp/curveTableCH4.vue
+++ b/src/components/homeComp/curveTableCH4.vue
@@ -110,7 +110,7 @@
this.options.xAxis.data = newVal
this.options.series[0].data = this.line
const max = Math.floor(Math.max(...this.line) * 1.5)
- this.options.yAxis.max = max > 10 ? max : 10
+ this.options.yAxis.max = max>1?max:1
this.refreshChart()
}
},
diff --git a/src/components/homeComp/showConfig.vue b/src/components/homeComp/showConfig.vue
index 5503286..6a65695 100644
--- a/src/components/homeComp/showConfig.vue
+++ b/src/components/homeComp/showConfig.vue
@@ -14,12 +14,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/api/models.js b/src/api/models.js
index bdb75dd..f910541 100644
--- a/src/api/models.js
+++ b/src/api/models.js
@@ -25,7 +25,7 @@
const gitNewVls = (data) => {
return request.get(`device/level/${data}`)
}
-
+// 视频地址
const getVideoUrl = (code) => {
return request({
url: '/hkvideo/getVideoUrl',
@@ -45,4 +45,11 @@
}
})
}
-export { request, configWarn, listPage, warnList, batchCancelled, getDevInfo, gitNewVls, getVideoUrl }
+// 获取报警开关状态
+const getAlarmSwitchStatus = () => {
+ return request.get('alarm/push/query', { params: { scene: 'H2S' }})
+}
+const setAlarmSwitch = (params) => {
+ return request.get('alarm/push/config', { params})
+}
+export { configWarn, listPage, warnList, batchCancelled, getDevInfo, gitNewVls, getVideoUrl, getAlarmSwitchStatus, setAlarmSwitch }
diff --git a/src/components/homeComp/curveTableCH4.vue b/src/components/homeComp/curveTableCH4.vue
index b54d0b6..c0b1c1e 100644
--- a/src/components/homeComp/curveTableCH4.vue
+++ b/src/components/homeComp/curveTableCH4.vue
@@ -110,7 +110,7 @@
this.options.xAxis.data = newVal
this.options.series[0].data = this.line
const max = Math.floor(Math.max(...this.line) * 1.5)
- this.options.yAxis.max = max > 10 ? max : 10
+ this.options.yAxis.max = max>1?max:1
this.refreshChart()
}
},
diff --git a/src/components/homeComp/showConfig.vue b/src/components/homeComp/showConfig.vue
index 5503286..6a65695 100644
--- a/src/components/homeComp/showConfig.vue
+++ b/src/components/homeComp/showConfig.vue
@@ -14,12 +14,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index 0dcdb37..c4d29df 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -2,6 +2,10 @@