|
@@ -2,7 +2,7 @@
|
|
<div class="fireHome">
|
|
<div class="fireHome">
|
|
<!-- 模型区域 -->
|
|
<!-- 模型区域 -->
|
|
<div class="moduleArea">
|
|
<div class="moduleArea">
|
|
- <iframe src="http://82.157.13.146:18224/" width="100%" height="100%" frameborder="0"></iframe>
|
|
|
|
|
|
+ <iframe src="http://82.157.13.146:18224/valkyrja" width="100%" height="100%" frameborder="0"></iframe>
|
|
</div>
|
|
</div>
|
|
<div class="main-container">
|
|
<div class="main-container">
|
|
<div class="left-area">
|
|
<div class="left-area">
|
|
@@ -137,6 +137,30 @@ let selectListAq = reactive<any[]>([
|
|
let safetyHead = reactive<any[]>([])
|
|
let safetyHead = reactive<any[]>([])
|
|
let safetyList = reactive<any[]>([])
|
|
let safetyList = reactive<any[]>([])
|
|
|
|
|
|
|
|
+// https获取监测数据
|
|
|
|
+let timer: null | NodeJS.Timeout = null;
|
|
|
|
+function getMonitor() {
|
|
|
|
+ timer = setTimeout(
|
|
|
|
+ async () => {
|
|
|
|
+ //工作面
|
|
|
|
+ await getFireAreaInfoList()
|
|
|
|
+ //密闭
|
|
|
|
+ await getFireAreaInfoListMb()
|
|
|
|
+ //带式
|
|
|
|
+ await getFireAreaInfoListDs()
|
|
|
|
+ //变电硐室
|
|
|
|
+ await getFireAreaInfoListBd()
|
|
|
|
+ //安全监控
|
|
|
|
+ await getTableList()
|
|
|
|
+ if (timer) {
|
|
|
|
+ timer = null;
|
|
|
|
+ }
|
|
|
|
+ getMonitor();
|
|
|
|
+ },
|
|
|
|
+ 5000
|
|
|
|
+ );
|
|
|
|
+}
|
|
|
|
+
|
|
//下拉选项切换
|
|
//下拉选项切换
|
|
function changeSelect(data) {
|
|
function changeSelect(data) {
|
|
console.log(data, '下拉------')
|
|
console.log(data, '下拉------')
|
|
@@ -167,13 +191,13 @@ function changeSelect(data) {
|
|
|
|
|
|
//获取工作面风险监测数据
|
|
//获取工作面风险监测数据
|
|
async function getFireAreaInfoList() {
|
|
async function getFireAreaInfoList() {
|
|
- echartDataWork.length = 0
|
|
|
|
- cardData.length = 0
|
|
|
|
|
|
+
|
|
let res = await getFireAreaInfo({ fireCauseType: 2 })
|
|
let res = await getFireAreaInfo({ fireCauseType: 2 })
|
|
|
|
|
|
if (res.length != 0) {
|
|
if (res.length != 0) {
|
|
|
|
+ echartDataWork.length = 0
|
|
|
|
+ cardData.length = 0
|
|
let data = res.filter(v => v.areaType == 2)
|
|
let data = res.filter(v => v.areaType == 2)
|
|
-
|
|
|
|
data.forEach(el => {
|
|
data.forEach(el => {
|
|
cardData.push({
|
|
cardData.push({
|
|
title: '风险',
|
|
title: '风险',
|
|
@@ -191,10 +215,11 @@ async function getFireAreaInfoList() {
|
|
|
|
|
|
//获取密闭下拉列表
|
|
//获取密闭下拉列表
|
|
async function getFireAreaInfoListMb() {
|
|
async function getFireAreaInfoListMb() {
|
|
- selectListMb.length = 0
|
|
|
|
|
|
+
|
|
let res = await getFireAreaInfo({ fireCauseType: 2 })
|
|
let res = await getFireAreaInfo({ fireCauseType: 2 })
|
|
console.log(res, '密闭数据')
|
|
console.log(res, '密闭数据')
|
|
if (res.length != 0) {
|
|
if (res.length != 0) {
|
|
|
|
+ selectListMb.length = 0
|
|
let dataMb = res.filter(m => m.areaType == 1)
|
|
let dataMb = res.filter(m => m.areaType == 1)
|
|
dataMb.forEach(m => {
|
|
dataMb.forEach(m => {
|
|
selectListMb.push({ label: m.areaName, value: m.areaCode })
|
|
selectListMb.push({ label: m.areaName, value: m.areaCode })
|
|
@@ -206,9 +231,10 @@ async function getFireAreaInfoListMb() {
|
|
}
|
|
}
|
|
//获取密闭监测实时信息
|
|
//获取密闭监测实时信息
|
|
async function getMbRealDataList() {
|
|
async function getMbRealDataList() {
|
|
- emptyData.length = 0
|
|
|
|
|
|
+
|
|
let res = await getMbRealData({ areaCode: areaCodeMb.value })
|
|
let res = await getMbRealData({ areaCode: areaCodeMb.value })
|
|
console.log(res, '密闭监测实时信息')
|
|
console.log(res, '密闭监测实时信息')
|
|
|
|
+ emptyData.length = 0
|
|
res.forEach(el => {
|
|
res.forEach(el => {
|
|
emptyData.push({ label: el.name, val: el.currentValue },)
|
|
emptyData.push({ label: el.name, val: el.currentValue },)
|
|
})
|
|
})
|
|
@@ -216,10 +242,11 @@ async function getMbRealDataList() {
|
|
|
|
|
|
//工作面束管监测
|
|
//工作面束管监测
|
|
async function getSgjcPointInfoList() {
|
|
async function getSgjcPointInfoList() {
|
|
- selectList.length = 0
|
|
|
|
|
|
+
|
|
let res = await getSgjcPointInfo({ areaCode: areaCode.value })
|
|
let res = await getSgjcPointInfo({ areaCode: areaCode.value })
|
|
console.log(res, '工作面束管列表---')
|
|
console.log(res, '工作面束管列表---')
|
|
if (res.length != 0) {
|
|
if (res.length != 0) {
|
|
|
|
+ selectList.length = 0
|
|
res.forEach(el => {
|
|
res.forEach(el => {
|
|
selectList.push({ label: el.pointName, value: el.pointCode })
|
|
selectList.push({ label: el.pointName, value: el.pointCode })
|
|
})
|
|
})
|
|
@@ -230,10 +257,11 @@ async function getSgjcPointInfoList() {
|
|
}
|
|
}
|
|
//获取工作面束管测点实时数据
|
|
//获取工作面束管测点实时数据
|
|
async function getSgjcRealDataByPointCodeList() {
|
|
async function getSgjcRealDataByPointCodeList() {
|
|
- bunbleData.length = 0
|
|
|
|
|
|
+
|
|
let res = await getSgjcRealDataByPointCode({ pointCode: pointCode.value })
|
|
let res = await getSgjcRealDataByPointCode({ pointCode: pointCode.value })
|
|
console.log(res, '束管测点实时数据---')
|
|
console.log(res, '束管测点实时数据---')
|
|
if (res.length != 0) {
|
|
if (res.length != 0) {
|
|
|
|
+ bunbleData.length = 0
|
|
res.forEach(el => {
|
|
res.forEach(el => {
|
|
bunbleData.push({
|
|
bunbleData.push({
|
|
type: el.type,
|
|
type: el.type,
|
|
@@ -250,10 +278,11 @@ async function getSgjcRealDataByPointCodeList() {
|
|
|
|
|
|
//带式输送机防灭火监控系统
|
|
//带式输送机防灭火监控系统
|
|
async function getFireAreaInfoListDs() {
|
|
async function getFireAreaInfoListDs() {
|
|
- selectListDs.length = 0
|
|
|
|
- outFireData.length = 0
|
|
|
|
|
|
+
|
|
const res = await getFireAreaInfo({})
|
|
const res = await getFireAreaInfo({})
|
|
if (res.length != 0) {
|
|
if (res.length != 0) {
|
|
|
|
+ selectListDs.length = 0
|
|
|
|
+ outFireData.length = 0
|
|
let dataDs = res.filter(m => m.areaType == 4)
|
|
let dataDs = res.filter(m => m.areaType == 4)
|
|
console.log(dataDs, '带式输送机防灭火')
|
|
console.log(dataDs, '带式输送机防灭火')
|
|
dataDs.forEach(el => {
|
|
dataDs.forEach(el => {
|
|
@@ -294,10 +323,11 @@ async function getFireAreaInfoListBd() {
|
|
}
|
|
}
|
|
//获取光钎条数及测点编号
|
|
//获取光钎条数及测点编号
|
|
async function getInfosByAreaCodeList() {
|
|
async function getInfosByAreaCodeList() {
|
|
- selectListBd.length = 0
|
|
|
|
|
|
+
|
|
let res = await getInfosByAreaCode({ areaCode: areaCodeBd.value })
|
|
let res = await getInfosByAreaCode({ areaCode: areaCodeBd.value })
|
|
console.log(res, 'res000999')
|
|
console.log(res, 'res000999')
|
|
if (res.length != 0) {
|
|
if (res.length != 0) {
|
|
|
|
+ selectListBd.length = 0
|
|
res.forEach(el => {
|
|
res.forEach(el => {
|
|
selectListBd.push({
|
|
selectListBd.push({
|
|
label: el.pointName,
|
|
label: el.pointName,
|
|
@@ -312,11 +342,12 @@ async function getInfosByAreaCodeList() {
|
|
|
|
|
|
//获取光钎测温图表数据
|
|
//获取光钎测温图表数据
|
|
async function getGxcwHistoryDataByPointCodeList() {
|
|
async function getGxcwHistoryDataByPointCodeList() {
|
|
|
|
+
|
|
|
|
+ let res = await getGxcwHistoryDataByPointCode({ pointCode: pointCodeBd.value })
|
|
|
|
+ console.log(res, '光钎测温图表数据-------')
|
|
echartDatas.xData.length = 0
|
|
echartDatas.xData.length = 0
|
|
echartDatas.yData.length = 0
|
|
echartDatas.yData.length = 0
|
|
echartDatas.yData1.length = 0
|
|
echartDatas.yData1.length = 0
|
|
- let res = await getGxcwHistoryDataByPointCode({ pointCode: pointCodeBd.value })
|
|
|
|
- console.log(res, '光钎测温图表数据-------')
|
|
|
|
res.time.forEach(el => {
|
|
res.time.forEach(el => {
|
|
echartDatas.xData.push(el)
|
|
echartDatas.xData.push(el)
|
|
})
|
|
})
|
|
@@ -350,10 +381,11 @@ function getTableList() {
|
|
}
|
|
}
|
|
//获取综放工作面传感器监测数据
|
|
//获取综放工作面传感器监测数据
|
|
async function getZcHfWdList() {
|
|
async function getZcHfWdList() {
|
|
- safetyHead.length = 0
|
|
|
|
- safetyList.length = 0
|
|
|
|
|
|
+
|
|
let res = await getZcHfWd()
|
|
let res = await getZcHfWd()
|
|
console.log(res, '综放工作面传感器监测数据')
|
|
console.log(res, '综放工作面传感器监测数据')
|
|
|
|
+ safetyHead.length = 0
|
|
|
|
+ safetyList.length = 0
|
|
safetyHead.push(
|
|
safetyHead.push(
|
|
{ label: '测点位置' },
|
|
{ label: '测点位置' },
|
|
{ label: '温度(°C)' },
|
|
{ label: '温度(°C)' },
|
|
@@ -369,9 +401,10 @@ async function getZcHfWdList() {
|
|
|
|
|
|
//获取掘进工作面传感器监测数据
|
|
//获取掘进工作面传感器监测数据
|
|
async function getHeadingFaceList() {
|
|
async function getHeadingFaceList() {
|
|
|
|
+
|
|
|
|
+ let res = await getHeadingFace()
|
|
safetyHead.length = 0
|
|
safetyHead.length = 0
|
|
safetyList.length = 0
|
|
safetyList.length = 0
|
|
- let res = await getHeadingFace()
|
|
|
|
safetyHead.push(
|
|
safetyHead.push(
|
|
{ label: '测点位置' },
|
|
{ label: '测点位置' },
|
|
{ label: 'CO浓度(%)' },
|
|
{ label: 'CO浓度(%)' },
|
|
@@ -388,9 +421,10 @@ async function getHeadingFaceList() {
|
|
}
|
|
}
|
|
//获取运输系统烟雾传感器数据
|
|
//获取运输系统烟雾传感器数据
|
|
async function getMainTrafficYwList() {
|
|
async function getMainTrafficYwList() {
|
|
|
|
+
|
|
|
|
+ let res = await getMainTrafficYw()
|
|
safetyHead.length = 0
|
|
safetyHead.length = 0
|
|
safetyList.length = 0
|
|
safetyList.length = 0
|
|
- let res = await getMainTrafficYw()
|
|
|
|
safetyHead.push(
|
|
safetyHead.push(
|
|
{ label: '测点位置' },
|
|
{ label: '测点位置' },
|
|
{ label: '温度(°C)' },
|
|
{ label: '温度(°C)' },
|
|
@@ -407,10 +441,11 @@ async function getMainTrafficYwList() {
|
|
|
|
|
|
//获取机电硐室传感器数据
|
|
//获取机电硐室传感器数据
|
|
async function getDsWdList() {
|
|
async function getDsWdList() {
|
|
- safetyHead.length = 0
|
|
|
|
- safetyList.length = 0
|
|
|
|
|
|
+
|
|
let res = await getDsWd()
|
|
let res = await getDsWd()
|
|
console.log(res, '机电硐室传感器数据')
|
|
console.log(res, '机电硐室传感器数据')
|
|
|
|
+ safetyHead.length = 0
|
|
|
|
+ safetyList.length = 0
|
|
safetyHead.push(
|
|
safetyHead.push(
|
|
{ label: '测点位置' },
|
|
{ label: '测点位置' },
|
|
{ label: '温度(°C)' },
|
|
{ label: '温度(°C)' },
|
|
@@ -434,9 +469,10 @@ onMounted(() => {
|
|
getFireAreaInfoListDs()
|
|
getFireAreaInfoListDs()
|
|
//变电硐室
|
|
//变电硐室
|
|
getFireAreaInfoListBd()
|
|
getFireAreaInfoListBd()
|
|
-
|
|
|
|
//安全监控
|
|
//安全监控
|
|
getTableList()
|
|
getTableList()
|
|
|
|
+ getMonitor()
|
|
|
|
+
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
|
|
|