|
@@ -153,7 +153,6 @@ function getMonitor() {
|
|
|
//时间选项切换
|
|
|
function onDataChange(value, dateString) {
|
|
|
TimeRange.value = [value[0], value[1]]
|
|
|
- console.log(TimeRange, 'TimeRange')
|
|
|
}
|
|
|
|
|
|
//获取左侧菜单树
|
|
@@ -168,7 +167,6 @@ async function getFireAreaInfos() {
|
|
|
})
|
|
|
areaCode.value = areaCode.value ? areaCode.value : treeData[0]['areaCode']
|
|
|
warningLevel.value = treeData[0].warningLevel == 1 ? '低风险' : treeData[0].warningLevel == 2 ? '中风险' : treeData[0].warningLevel == 3 ? '较高风险' : treeData[0].warningLevel == 4 ? '重大风险' : '--'
|
|
|
- console.log(treeData, 'treeData-------')
|
|
|
cardContentList[0]['val'] = parseFloat(treeData[0].infoTypeTwo.maxTemperature).toFixed(2)
|
|
|
cardContentList[1]['val'] = parseFloat(treeData[0].infoTypeTwo.minTemperature).toFixed(2)
|
|
|
cardContentList[2]['val'] = parseFloat(treeData[0].infoTypeTwo.aveTemperature).toFixed(2)
|
|
@@ -199,7 +197,6 @@ async function getFireAreaInfos() {
|
|
|
|
|
|
//点击左侧树节点
|
|
|
function selectChange(treeNode) {
|
|
|
- console.log(treeNode, 'treeNode---')
|
|
|
areaCode.value = treeData.filter((v) => v.name == treeNode.node.dataRef.title)[0]['areaCode']
|
|
|
let level = treeData.filter((m) => m.name == treeNode.node.dataRef.title)[0]['warningLevel']
|
|
|
warningLevel.value = level == 1 ? '低风险' : level == 2 ? '中风险' : level == 3 ? '较高风险' : level == 4 ? '重大风险' : '--'
|
|
@@ -236,9 +233,7 @@ function selectChange(treeNode) {
|
|
|
|
|
|
//获取光钎条数及测点编号
|
|
|
async function getInfosByAreaCodeList() {
|
|
|
-
|
|
|
let res = await getInfosByAreaCode({ areaCode: areaCode.value })
|
|
|
- console.log(res, '光钎条数及测点编号')
|
|
|
if (res.length != 0) {
|
|
|
workBtnList.length = 0
|
|
|
res.forEach(el => {
|
|
@@ -256,16 +251,13 @@ async function getInfosByAreaCodeList() {
|
|
|
|
|
|
//光钎选项切换
|
|
|
function btnToggle(item) {
|
|
|
- console.log(item, 'item----=====')
|
|
|
gxSelect.value = item.value
|
|
|
getGxcwHistoryDataByPointCodeList()
|
|
|
}
|
|
|
|
|
|
//获取光钎测温图表数据
|
|
|
async function getGxcwHistoryDataByPointCodeList() {
|
|
|
-
|
|
|
let res = await getGxcwHistoryDataByPointCode({ pointCode: gxSelect.value })
|
|
|
- console.log(res, '光钎测温图表数据')
|
|
|
echartDataGx.xData.length = 0
|
|
|
echartDataGx.yData.length = 0
|
|
|
echartDataGx.yData1.length = 0
|
|
@@ -282,9 +274,7 @@ async function getGxcwHistoryDataByPointCodeList() {
|
|
|
|
|
|
//获取烟雾传感器监测数据
|
|
|
async function getYwRealDataList() {
|
|
|
-
|
|
|
let res = await getYwRealData({ areaCode: areaCode.value })
|
|
|
- console.log(res, '烟雾传感器监测数据')
|
|
|
if (res.length != 0) {
|
|
|
botCardList[0].sensorList.length = 0
|
|
|
res.forEach(el => {
|
|
@@ -297,9 +287,7 @@ async function getYwRealDataList() {
|
|
|
|
|
|
//获取火焰传感器监测数据
|
|
|
async function getHyRealDataList() {
|
|
|
-
|
|
|
let res = await getHyRealData({ areaCode: areaCode.value })
|
|
|
- console.log(res, '火焰传感器监测数据')
|
|
|
if (res.length != 0) {
|
|
|
botCardList[1].sensorList.length = 0
|
|
|
res.forEach(el => {
|
|
@@ -312,9 +300,7 @@ async function getHyRealDataList() {
|
|
|
|
|
|
//获取喷淋设备监测数据
|
|
|
async function getPlzzRealDataList() {
|
|
|
-
|
|
|
let res = await getPlzzRealData({ areaCode: areaCode.value })
|
|
|
- console.log(res, '自动喷淋灭火装置数据')
|
|
|
if (res.length != 0) {
|
|
|
botCardList[2].sensorList.length = 0
|
|
|
res.forEach(el => {
|
|
@@ -333,7 +319,6 @@ function changeSg(val){
|
|
|
//获取束管测点编号列表
|
|
|
async function getSgjcPointInfoList() {
|
|
|
let res = await getSgjcPointInfo({ areaCode: areaCode.value })
|
|
|
- console.log(res, '束管测点编号列表')
|
|
|
if (res.length != 0) {
|
|
|
selectListSg.length=0
|
|
|
res.forEach(el=>{
|
|
@@ -353,9 +338,7 @@ function toggleChange(title) {
|
|
|
|
|
|
//获取束管测点实时数据
|
|
|
async function getSgjcRealDataByPointCodeList() {
|
|
|
-
|
|
|
let res = await getSgjcRealDataByPointCode({ pointCode: pointCode.value })
|
|
|
- console.log(res, '束管测点实时数据======')
|
|
|
if (res.length != 0) {
|
|
|
card3List.length = 0
|
|
|
res.forEach(el => {
|
|
@@ -372,7 +355,6 @@ async function getSgjcHistoryDataList() {
|
|
|
let startTime=`${dayjs(TimeRange.value[0]).format('YYYY-MM-DD')} 00:00:00`
|
|
|
let endTime=`${dayjs(TimeRange.value[1]).format('YYYY-MM-DD')} 00:00:00`
|
|
|
let res = await getSgjcHistoryData({ pointCode: pointCode.value, type: gasType.value, startTime: startTime, endTime: endTime })
|
|
|
- console.log(res, '束管曲线数据-------')
|
|
|
echartData.xData.length = 0
|
|
|
echartData.yData.length = 0
|
|
|
echartData.yData1.length = 0
|