|
@@ -146,52 +146,22 @@
|
|
|
</div>
|
|
|
|
|
|
<div v-if="isActive === 'card'"
|
|
|
- style="height: 100%;width:100%;overflow-y: auto;" ref="bodyList">
|
|
|
+ style="height: 899px;width:100%;overflow-y: auto;" ref="bodyList">
|
|
|
<light-card :test="test" :lightList="lightList"
|
|
|
:electTarget="electTarget"/>
|
|
|
|
|
|
</div>
|
|
|
<div v-if="isActive === 'list'">
|
|
|
- <el-table
|
|
|
-
|
|
|
- :data="test"
|
|
|
- ref="multipleTable"
|
|
|
- :cell-style="cellStyle"
|
|
|
- :header-cell-style="headerStyle"
|
|
|
- height="900px"
|
|
|
- style="width: 100%"
|
|
|
- fit
|
|
|
- empty-text=" "
|
|
|
- v-loading="loading"
|
|
|
- stripe>
|
|
|
- <light-list ref="childred" :lightList="lightList.aname" :test="test"
|
|
|
+
|
|
|
+ <light-list ref="childred" :lightList="lightList.aname" :test="test" :loading="loading"
|
|
|
:electTarget="electTarget"/>
|
|
|
- </el-table>
|
|
|
+
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <el-dialog width="90%" top="80px" v-model="displayZhi" :show-close="true"
|
|
|
- :destroy-on-close="true">
|
|
|
- <template #title>
|
|
|
- <div class="dialog-title">
|
|
|
- <img class="dialog-title-img" src="@assets/img/images/dialog-title.png"/>
|
|
|
- <div class="title">支路</div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <img class="dialog-img" style="position:absolute;right: 0px;bottom: 40px"
|
|
|
- src="@assets/img/images/dialog.png"/>
|
|
|
- <div class="dialog-body" style="height:66vh;position: relative">
|
|
|
|
|
|
- <by-pase :zzdlNum="zzdlNum" :sbssglGray="sbssglGray" :sbssglIng="sbssglIng" :sbssglLength="sbssglLength"
|
|
|
- :data2="data2" @tableApi="tableApi" :valTndex="valTndex"
|
|
|
- :valArea="valArea"
|
|
|
- :valLine="valLine" :inverterData="inverterData" :dataesed="dataesed"
|
|
|
- :heigth="'62vh'"></by-pase>
|
|
|
- </div>
|
|
|
-
|
|
|
- </el-dialog>
|
|
|
<el-dialog width="50%" top="80px" v-model="displaySet" :show-close="true"
|
|
|
:destroy-on-close="true">
|
|
|
<template #title>
|
|
@@ -238,6 +208,7 @@
|
|
|
import {GetBranchEquipments, GetEquipmentsBySquareId} from "@api/factoryMonitor";
|
|
|
import byPase from "@com/byPase";
|
|
|
import utils from "@/utils/downXlsx";
|
|
|
+import { rtDataRefreshTime } from "../../../../../../../config";
|
|
|
|
|
|
export default {
|
|
|
name: 'matrixMatrix',
|
|
@@ -316,7 +287,6 @@
|
|
|
color: ["#1985de", "#ff8300", "#06a746", "#3eede7", "#eb0f7c", "#dfdc0a", "#de0feb", "#cca4e3"],
|
|
|
stationName: '',
|
|
|
displayMatrix: false,
|
|
|
- displayZhi: false,
|
|
|
activeName: '',
|
|
|
chartsDatas: [],
|
|
|
dialogDetail: false,
|
|
@@ -570,20 +540,7 @@
|
|
|
this.$nextTick(() => this.addRollListener())
|
|
|
},
|
|
|
methods: {
|
|
|
- cellStyle({row, column, rowIndex, columnIndex}) {
|
|
|
- if (columnIndex > 2) {
|
|
|
- return {'font-family': 'Arial', 'padding': '7px 0', 'font-size': '13px'}
|
|
|
- } else {
|
|
|
- return {'backdrop-filter': 'blur(10px)', 'padding': '7px 0', 'font-size': '13px'}
|
|
|
- }
|
|
|
- },
|
|
|
- headerStyle({row, column, rowIndex, columnIndex}){
|
|
|
- if (columnIndex < 3){
|
|
|
- return {'backdrop-filter': 'blur(10px)','padding':'6px 0'}
|
|
|
- }else {
|
|
|
- return {'padding':'6px 0'}
|
|
|
- }
|
|
|
- },
|
|
|
+
|
|
|
downXlsxFn() {
|
|
|
this.data3 = this.data2.datas
|
|
|
let headers = []
|
|
@@ -595,28 +552,38 @@
|
|
|
headers.push(it.name )
|
|
|
}
|
|
|
})
|
|
|
- console.log(this.lightList,"99")
|
|
|
- setTimeout(() => {
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
utils.exportExcel(this.$refs['multipleTable'].$el, '序号'+'设备名称'+headers, this.lightList.aname)
|
|
|
}, 1000)
|
|
|
},
|
|
|
+ // 切换矩阵
|
|
|
changeCard() {
|
|
|
+ this.numList=40
|
|
|
+ this.data3=[]
|
|
|
let s = this.deepClone(this.setTarget)
|
|
|
- this.electTarget = s.splice(0, 4)
|
|
|
+ this.electTarget = s.splice(0, 4) //改变指标
|
|
|
this.isActive = 'card'
|
|
|
this.getPoint(this.stationCode)
|
|
|
+ setTimeout(() => {
|
|
|
+ this.addRollListener()
|
|
|
+ }, 100);
|
|
|
},
|
|
|
+
|
|
|
+ // 切换列表
|
|
|
changeList() {
|
|
|
+ this.numList=25
|
|
|
this.data3=[]
|
|
|
this.loading = true
|
|
|
this.isActive = 'list'
|
|
|
- this.electTarget = this.setTarget
|
|
|
+ this.electTarget = this.setTarget //改变指标
|
|
|
this.getPoint(this.stationCode)
|
|
|
setTimeout(() => {
|
|
|
this.addRollListener()
|
|
|
}, 100);
|
|
|
},
|
|
|
+
|
|
|
+ // 切换场站
|
|
|
getHeaderNum(name, stationCode, type, headerIndex, numList, sortCode, changeLength, current) {
|
|
|
this.stationName = name;
|
|
|
this.stationCode = stationCode;
|
|
@@ -640,7 +607,7 @@
|
|
|
},
|
|
|
addRollListener() {
|
|
|
|
|
|
- if (this.isActive == 'list') {
|
|
|
+ if (this.isActive === 'list') {
|
|
|
let doms = document.getElementsByClassName("el-table__body-wrapper")[0]
|
|
|
doms.addEventListener('scroll', () => {
|
|
|
const scrollTop = doms.scrollTop
|
|
@@ -649,28 +616,30 @@
|
|
|
const scrollHeight = doms.scrollHeight
|
|
|
|
|
|
if (clientHeight + scrollTop + 1 > scrollHeight || offsetHeight + scrollTop >= scrollHeight) {
|
|
|
- this.numList += 10
|
|
|
+ this.numList += 15
|
|
|
+ let ss = this.deepClone(this.data2.datas)
|
|
|
+ this.data3 = ss.splice(0, this.numList)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ const dom = this.$refs.bodyList
|
|
|
+ dom.addEventListener('scroll', () => {
|
|
|
+ const scrollTop = dom.scrollTop
|
|
|
+ const windowHeight = window.innerHeight;
|
|
|
+ const scrollHeight = dom.scrollHeight
|
|
|
+
|
|
|
+ if (scrollHeight - (scrollTop + windowHeight) < 10 && this.data2.datas.length !== this.data3.length) {
|
|
|
+ this.numList += 16
|
|
|
let ss = this.deepClone(this.data2.datas)
|
|
|
this.data3 = ss.splice(0, this.numList)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- const dom = this.$refs.bodyList
|
|
|
- dom.addEventListener('scroll', () => {
|
|
|
- const scrollTop = dom.scrollTop
|
|
|
- const windowHeight = window.innerHeight;
|
|
|
- const scrollHeight = dom.scrollHeight
|
|
|
-
|
|
|
- if (scrollHeight - (scrollTop + windowHeight) < 10 && this.data2.datas.length != this.data3.length) {
|
|
|
- this.numList += 10
|
|
|
- let ss = this.deepClone(this.data2.datas)
|
|
|
- this.data3 = ss.splice(0, this.numList)
|
|
|
- }
|
|
|
- })
|
|
|
|
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
|
|
+ // 点击自定义指标修改指标
|
|
|
change(val) {
|
|
|
if (val.length > 4) {
|
|
|
this.$message({
|
|
@@ -685,11 +654,6 @@
|
|
|
|
|
|
},
|
|
|
|
|
|
- handleCurrentChange(val) {
|
|
|
- this.pageVal = val
|
|
|
- this.page.currentPage = val;
|
|
|
- this.getRtValuesByTagName();
|
|
|
- },
|
|
|
// 点击场站
|
|
|
handTitle() {
|
|
|
this.changeLength = ''
|
|
@@ -697,20 +661,19 @@
|
|
|
this.secondMenuIndex = -1
|
|
|
this.thridMenuIndex = -1
|
|
|
this.stationCode = this.lightList.nemCode
|
|
|
-
|
|
|
- this.getPoint(this.lightList.nemCode, this.electType)
|
|
|
+ this.getPoint(this.lightList.nemCode)
|
|
|
},
|
|
|
//排序方式改变
|
|
|
sortTypechange() {
|
|
|
this.sortType = !this.sortType;
|
|
|
this.sortFilterchange()
|
|
|
},
|
|
|
-
|
|
|
+ // 点击期次请求数据
|
|
|
handleClicked(val, nemu, it) {
|
|
|
this.changeLength = ''
|
|
|
this.stationCode = nemu.nemCode
|
|
|
this.secondMenuIndex = '-1'
|
|
|
- this.getPoint(nemu.nemCode, this.electType)
|
|
|
+ this.getPoint(nemu.nemCode)
|
|
|
this.menuIndex = val
|
|
|
},
|
|
|
// 切换title
|
|
@@ -762,14 +725,14 @@
|
|
|
list.push(s.type)
|
|
|
})
|
|
|
this.electType = list
|
|
|
- this.getPoint(this.stationCode, this.electType)
|
|
|
+ this.getPoint(this.stationCode)
|
|
|
this.current = 'all'
|
|
|
this.changeLength = ''
|
|
|
this.sortCode = ''
|
|
|
this.displaySet = false
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ // 点击期次收合图标收起
|
|
|
handleClickBottom(val, nemu, it) {
|
|
|
this.itemIndex5 = '-1'
|
|
|
this.thridMenuIndexs = -1
|
|
@@ -779,6 +742,7 @@
|
|
|
this.itemIndex = '0'
|
|
|
this.menuIndex = -1
|
|
|
},
|
|
|
+ // 点击期次收合图标展开并请求数据
|
|
|
handleClickRight(val, nemu, it) {
|
|
|
this.itemIndex5 = '-1'
|
|
|
this.thridMenuIndexs = -1
|
|
@@ -789,10 +753,10 @@
|
|
|
this.changeLength = ''
|
|
|
|
|
|
this.stationCode = nemu.nemCode
|
|
|
- this.getPoint(nemu.nemCode, this.electType)
|
|
|
+ this.getPoint(nemu.nemCode)
|
|
|
this.menuIndex = val
|
|
|
},
|
|
|
-
|
|
|
+ // 获取左侧树型结构
|
|
|
async getSquareEquipmentsOfTree() {
|
|
|
let s;
|
|
|
if (this.$route.query.nemCode != undefined) {
|
|
@@ -823,22 +787,23 @@
|
|
|
})
|
|
|
})
|
|
|
|
|
|
- this.getPoint(s, '')
|
|
|
+ this.getPoint(s)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
-
|
|
|
+ // 点击线路
|
|
|
handleClick2(val, ined, index) {
|
|
|
this.changeLength = ''
|
|
|
-
|
|
|
this.stationCode = ined.nemCode
|
|
|
this.thridMenuIndex = "-1"
|
|
|
- this.getPoint(ined.nemCode, this.electType)
|
|
|
+ this.getPoint(ined.nemCode)
|
|
|
this.secondMenuIndex = val
|
|
|
|
|
|
},
|
|
|
+
|
|
|
+ // 点击右侧收合展开并请求数据
|
|
|
handleClick2Right(val, ined, index) {
|
|
|
this.itemIndex7 = '-1'
|
|
|
this.itemIndex5 = '-1'
|
|
@@ -847,9 +812,11 @@
|
|
|
this.itemIndex = "0-0"
|
|
|
this.changeLength = ''
|
|
|
this.stationCode = ined.nemCode
|
|
|
- this.getPoint(ined.nemCode, this.electType)
|
|
|
+ this.getPoint(ined.nemCode)
|
|
|
this.secondMenuIndex = val
|
|
|
},
|
|
|
+
|
|
|
+ // 点击右侧收合收起
|
|
|
handleClick2Bottom(val, ined, index) {
|
|
|
this.itemIndex7 = '-1'
|
|
|
this.itemIndex5 = '-1'
|
|
@@ -858,7 +825,7 @@
|
|
|
this.itemIndex = "0-0"
|
|
|
this.secondMenuIndex = -1
|
|
|
},
|
|
|
-
|
|
|
+ // 点击阵区请求数据
|
|
|
dataToggle(val1, index, menu, va, ind) {
|
|
|
this.changeLength = ''
|
|
|
this.itemIndex7 = '-1'
|
|
@@ -867,28 +834,9 @@
|
|
|
this.thridMenuIndexs = ind + '-' + index
|
|
|
this.thridMenuIndex = index
|
|
|
this.stationCode = val1.nemCode
|
|
|
- this.getPoint(val1.nemCode, this.electType)
|
|
|
+ this.getPoint(val1.nemCode)
|
|
|
},
|
|
|
|
|
|
- //转换时间
|
|
|
- getchangeTime(data) {
|
|
|
- if (data != undefined && data != '') {
|
|
|
- var date = new Date(data)
|
|
|
- var y = date.getFullYear();
|
|
|
- var m = date.getMonth() + 1;
|
|
|
- var d = date.getDate()
|
|
|
- var h = date.getHours()
|
|
|
- var f = date.getMinutes()
|
|
|
- var s = date.getSeconds();
|
|
|
- m = m < 10 ? ('0' + m) : m;
|
|
|
- d = d < 10 ? ('0' + d) : d;
|
|
|
- return y + '-' + m + '-' + d + ' ' + h + ':' + f + ':' + s
|
|
|
- } else {
|
|
|
- return ''
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
-
|
|
|
resetData() {
|
|
|
this.menuIndex = 0
|
|
|
this.secondMenuIndex = 0
|
|
@@ -899,123 +847,16 @@
|
|
|
sortFilterchange() {
|
|
|
this.getRtValuesByTagName()
|
|
|
},
|
|
|
- getColor(state) {
|
|
|
- switch (state) {
|
|
|
- case 0:
|
|
|
- return "blue"
|
|
|
- case 1:
|
|
|
- return "orange"
|
|
|
- case 2:
|
|
|
- return "red"
|
|
|
- case 3:
|
|
|
- return "gray"
|
|
|
- case "":
|
|
|
- return "gray"
|
|
|
- default:
|
|
|
- return "gray"
|
|
|
- }
|
|
|
- },
|
|
|
|
|
|
|
|
|
- curveSwitchData(e) {
|
|
|
- this.value = e.showy
|
|
|
- let option = "{";
|
|
|
- this.detailsValue.forEach((value, index) => {
|
|
|
- option += "'" + value.name + "'" + ":" + value.showy + ","
|
|
|
- })
|
|
|
- option = option.substring(0, option.length - 1)
|
|
|
- option += "}";
|
|
|
- let json = eval("(" + option + ")");
|
|
|
- this.$refs.windChartCom.changDateVisible(json)
|
|
|
- },
|
|
|
- tagCellStyle({row, column, rowIndex, columnIndex}) {
|
|
|
- if (!row.showy) {
|
|
|
- return {color: '#525252', fontSize: '11px'};
|
|
|
- }
|
|
|
- if ((columnIndex == 0 || columnIndex == 1) && row.showy) {
|
|
|
- return {color: this.color[rowIndex], fontSize: '13px'};
|
|
|
- } else {
|
|
|
- return {padding: '6px 0px'};
|
|
|
- }
|
|
|
- },
|
|
|
- tableApi(pag) {
|
|
|
- let padTitle = this.deepClone(this.inverterDatas)
|
|
|
- this.pageSize = pag
|
|
|
- this.inverterData = padTitle.splice(0, pag)
|
|
|
- },
|
|
|
-
|
|
|
- handleClicks(item1, code, index, index1, index2, index3) {
|
|
|
-
|
|
|
- let obj = {
|
|
|
- eqType: 'IN',
|
|
|
- conqType: 'ZC',
|
|
|
- namesed: '1',
|
|
|
-
|
|
|
- }
|
|
|
- this.displayMatrix = true
|
|
|
- setTimeout(() => {
|
|
|
- this.$refs.lightDetial.render(obj, code.nemCode, index);
|
|
|
- }, 100);
|
|
|
- },
|
|
|
- handleCurveClick(inde, index) {
|
|
|
- if (inde >= 5) {
|
|
|
- let s = this.deepClone(this.stsee[index])
|
|
|
- let y = this.deepClone(this.stse)
|
|
|
-
|
|
|
- y?.forEach(val => {
|
|
|
- for (let key in val) {
|
|
|
- for (let k in s) {
|
|
|
- if (val[key] == k) {
|
|
|
- val[key] = s[k]
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- this.$refs.child.openCurvDatas(y)
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
-
|
|
|
- dataToFix(obj) {
|
|
|
- if (obj) {
|
|
|
- if (obj == '' && obj == "undefined") {
|
|
|
- return '0'
|
|
|
- } else {
|
|
|
- return obj.toFixed(0)
|
|
|
- }
|
|
|
- } else {
|
|
|
- return "0"
|
|
|
- }
|
|
|
- },
|
|
|
dataToFix2(obj) {
|
|
|
- if (obj) {
|
|
|
- if (obj == '' || obj == "undefined") {
|
|
|
- return '0.00'
|
|
|
- } else {
|
|
|
- return obj.toFixed(2)
|
|
|
- }
|
|
|
+ if (obj === '' || obj === undefined) {
|
|
|
+ return '--'
|
|
|
} else {
|
|
|
- return "0.00"
|
|
|
+ return obj.toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- affectedCic(i) {
|
|
|
- switch (i) {
|
|
|
- case 0:
|
|
|
- return "zcyx"
|
|
|
- case 1:
|
|
|
- return "dzyx"
|
|
|
- case 2:
|
|
|
- return "sbtj"
|
|
|
- case 3:
|
|
|
- return "txzd"
|
|
|
- case "":
|
|
|
- return "txzd"
|
|
|
- default:
|
|
|
- return "txzd"
|
|
|
- }
|
|
|
- },
|
|
|
affected(i) {
|
|
|
switch (i) {
|
|
|
case 0:
|
|
@@ -1049,37 +890,15 @@
|
|
|
s.unite = s.type + '-UNIT'
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
this.setTarget = this.deepClone(data)
|
|
|
-
|
|
|
- let list = [];
|
|
|
this.electTarget = data.splice(0, 4)
|
|
|
- this.electTarget.forEach(s => {
|
|
|
- list.push(s.type)
|
|
|
- })
|
|
|
- this.electType = list
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- async a() {
|
|
|
|
|
|
- },
|
|
|
- ListClick(data, val, mes, index1, index2, index3, value) {
|
|
|
- this.displayZhi = true
|
|
|
- this.Listval = val?.SQMC
|
|
|
- this.Listmes = mes?.XLMC
|
|
|
- this.valTndex = index1
|
|
|
- this.valLine = index2
|
|
|
- this.valArea = index3
|
|
|
- this.getEquipmentsBySquareId(value.QCBM, mes.XLBM, data);
|
|
|
- },
|
|
|
+ }
|
|
|
|
|
|
- tabChick(index) {
|
|
|
- this.activeName = index
|
|
|
- this.a()
|
|
|
},
|
|
|
|
|
|
- async getPoint(val, uniformCodes) {
|
|
|
+ // 请求数据接口
|
|
|
+ async getPoint(val) {
|
|
|
|
|
|
const data = await GetequipmentsByStationCode({
|
|
|
stationCode: val,
|
|
@@ -1108,6 +927,7 @@
|
|
|
// }
|
|
|
// this.activeNames = arr
|
|
|
this.data1 = this.deepClone(data)
|
|
|
+
|
|
|
this.electTarget.forEach(item => {
|
|
|
if (item.name == "转换率") {
|
|
|
item.unit = '%'
|
|
@@ -1117,34 +937,34 @@
|
|
|
})
|
|
|
let str = '';
|
|
|
let result = '';
|
|
|
- let dat = data?.DZYXTS + "|" + data?.TXZDTS + "|" + data?.ZCYXTS + "|" + data?.SBTJTS
|
|
|
let date1 = data?.datas.flatMap(s => {
|
|
|
this.electTarget.forEach(item => {
|
|
|
- str = str + '|' + s[item.type]
|
|
|
+ str = str + s[item.type] + '|'
|
|
|
})
|
|
|
result = str + '|' + s.SBZT + '|' + s.AIG007 + '|' + s.AIG010
|
|
|
return result
|
|
|
|
|
|
})
|
|
|
|
|
|
- let n = date1.join("|") + "|" + dat;
|
|
|
-
|
|
|
+ let n = date1.join("|");
|
|
|
let v = n.split("|").filter(d => {
|
|
|
return !(d == "undefined" || d == "");
|
|
|
})
|
|
|
- if (n.length == 0) {
|
|
|
- return
|
|
|
- }
|
|
|
+
|
|
|
this.z = v.join("|")
|
|
|
this.getRtValuesByTagName()
|
|
|
|
|
|
} else {
|
|
|
+ this.loading = false
|
|
|
+ this.ststionName=''
|
|
|
this.data1 = ''
|
|
|
this.z = ''
|
|
|
this.data3 = []
|
|
|
this.data2 = []
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ // 请求实时数据接口
|
|
|
async getRtValuesByTagName() {
|
|
|
|
|
|
if (this.z.length == 0) {
|
|
@@ -1162,7 +982,7 @@
|
|
|
let data1 = this.deepClone(this.data1)
|
|
|
this.electTarget?.forEach(s => {
|
|
|
data1?.datas.forEach(function (item) {
|
|
|
- item[s.type + 'Num'] = map.get(item[s.type]) ? map.get(item[s.type]) : ''
|
|
|
+ item[s.type + 'Num'] = map.get(item[s.type])
|
|
|
item[s.type + 'Time'] = maps.get(item[s.type])
|
|
|
|
|
|
})
|
|
@@ -1171,7 +991,7 @@
|
|
|
|
|
|
data1.datas.flatMap(s => {
|
|
|
s.zhUnit = '%'
|
|
|
- s.ZHLNum = (map.get(s.AIG007) / map.get(s.AIG010)) * 100 ? (map.get(s.AIG007) / map.get(s.AIG010)) * 100 : ''
|
|
|
+ s.ZHLNum = (map.get(s.AIG007) / map.get(s.AIG010)) * 100
|
|
|
s.ZHLTime = maps.get(s.AIG007)
|
|
|
s.SBZT = map.get(s.SBZT) ? Number(map.get(s.SBZT).toFixed(0)) : ''
|
|
|
|
|
@@ -1180,7 +1000,6 @@
|
|
|
let sortCo = this.sortCode;
|
|
|
|
|
|
data1.datas = data1.datas.sort(function (a, b) {
|
|
|
-
|
|
|
if (sort) {
|
|
|
return b[sortCo] - a[sortCo]
|
|
|
} else {
|
|
@@ -1207,8 +1026,8 @@
|
|
|
data1.TJZT = list3.length
|
|
|
data1.ZDZT = list4.length
|
|
|
this.loading = false
|
|
|
- this.data2 = this.deepClone(data1)
|
|
|
- this.data3 = data1?.datas.splice(0, this.numList);
|
|
|
+ this.data2 =this.deepClone(data1)
|
|
|
+ this.data3 = data1?.datas;
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -1217,49 +1036,12 @@
|
|
|
var objClone = JSON.parse(obj)
|
|
|
return objClone
|
|
|
},
|
|
|
- handleDetailClickList(val, data) {
|
|
|
-
|
|
|
- let s = this.deepClone(val)
|
|
|
- let y = this.deepClone(this.ssPv)
|
|
|
|
|
|
- y?.forEach(val => {
|
|
|
- for (let key in val) {
|
|
|
- for (let k in s) {
|
|
|
- if (val[key] == k) {
|
|
|
- val[key] = s[k]
|
|
|
- } else if (val[key] == 'stse') {
|
|
|
|
|
|
- val[key] = data + s.SBAMC
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- this.$refs.child.openCurvDatas(y, 2)
|
|
|
- },
|
|
|
- handleDetailClick(val, index) {
|
|
|
- let s = val
|
|
|
- let y = this.deepClone(this.ssPv)
|
|
|
- y?.forEach(val => {
|
|
|
- for (let key in val) {
|
|
|
- for (let k in s) {
|
|
|
- if (val[key] == k) {
|
|
|
- val[key] = s[k]
|
|
|
- } else if (val[key] == 'stse') {
|
|
|
- val[key] = s.name
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- this.$refs.child.openCurvDatas(y, 2)
|
|
|
- },
|
|
|
// 点击筛选
|
|
|
handleClick(val, index) {
|
|
|
- console.log(index,"index")
|
|
|
this.changeLength = index
|
|
|
this.current = val
|
|
|
- this.numList = 40
|
|
|
},
|
|
|
// handleStationCurveClick() {
|
|
|
// let s = this.deepClone(this.glStsee)
|
|
@@ -1279,193 +1061,43 @@
|
|
|
},
|
|
|
computed: {
|
|
|
test: function () {
|
|
|
-
|
|
|
+ var newData=[]
|
|
|
if (this.current !== 'all') {
|
|
|
- this.v = this.deepClone(this.data2.datas)
|
|
|
+ this.v = this.deepClone(this.data3)
|
|
|
switch (this.current) {
|
|
|
case '0':
|
|
|
- this.v = this.v?.filter(f => {
|
|
|
- return (f.SBZT === 0 || f.eqType != "IN")
|
|
|
- })
|
|
|
- this.v.forEach((m, index) => {
|
|
|
- m.codes = m.codes?.filter(f => {
|
|
|
- return (f.SBZT === 0 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m.codes?.forEach((m2, ind) => {
|
|
|
- m2.codes = m2.codes?.filter(f => {
|
|
|
- return (f.SBZT === 0 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m2.codes?.forEach((m1, ined) => {
|
|
|
- m1.codes = m1.codes.filter(f => {
|
|
|
- return f.SBZT === 0
|
|
|
- })
|
|
|
- m2.codes = m2.codes.filter(s => {
|
|
|
- return s.codes.length != 0
|
|
|
- })
|
|
|
-
|
|
|
- })
|
|
|
-
|
|
|
- })
|
|
|
+ this.v = this.v.filter(f => {
|
|
|
+ return (f.SBZT === 0)
|
|
|
});
|
|
|
- this.v = this.v.splice(0, this.numList)
|
|
|
- return this.v;
|
|
|
+ newData = this.v.splice(0, this.numList)
|
|
|
+ return newData;
|
|
|
|
|
|
case '1':
|
|
|
- this.v = this.v?.filter(f => {
|
|
|
- return (f.SBZT === 1 || f.eqType != "IN")
|
|
|
- })
|
|
|
- this.v.forEach((m, index) => {
|
|
|
- m.codes = m.codes?.filter(f => {
|
|
|
- return (f.SBZT === 1 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m.codes?.forEach((m2, ind) => {
|
|
|
- m2.codes = m2.codes?.filter(f => {
|
|
|
- return (f.SBZT === 1 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m2.codes?.forEach((m1, ined) => {
|
|
|
-
|
|
|
- m1.codes = m1.codes.filter(f => {
|
|
|
- return f.SBZT === 1
|
|
|
- })
|
|
|
- m2.codes = m2.codes.filter(s => {
|
|
|
- return s.codes.length != 0
|
|
|
- })
|
|
|
- })
|
|
|
-
|
|
|
- })
|
|
|
+ this.v = this.v?.filter(f => {
|
|
|
+ return f.SBZT === 1
|
|
|
});
|
|
|
- this.v = this.v.splice(0, this.numList)
|
|
|
- return this.v;
|
|
|
+ newData = this.v.splice(0, this.numList)
|
|
|
+ return newData;
|
|
|
|
|
|
case '2':
|
|
|
- this.v = this.v?.filter(f => {
|
|
|
- return (f.SBZT === 2 || f.eqType != "IN")
|
|
|
- })
|
|
|
- this.v.forEach((m, index) => {
|
|
|
- m.codes = m.codes?.filter(f => {
|
|
|
- return (f.SBZT === 2 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m.codes?.forEach((m2, ind) => {
|
|
|
- m2.codes = m2.codes?.filter(f => {
|
|
|
- return (f.SBZT === 2 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m2.codes?.forEach((m1, ined) => {
|
|
|
-
|
|
|
- m1.codes = m1.codes.filter(f => {
|
|
|
- return f.SBZT === 2
|
|
|
- })
|
|
|
- m2.codes = m2.codes.filter(s => {
|
|
|
- return s.codes.length != 0
|
|
|
- })
|
|
|
- })
|
|
|
-
|
|
|
- })
|
|
|
-
|
|
|
+ this.v = this.v.filter(f => {
|
|
|
+ return f.SBZT === 2
|
|
|
});
|
|
|
- this.v = this.v.splice(0, this.numList)
|
|
|
- return this.v;
|
|
|
+ newData = this.v.splice(0, this.numList)
|
|
|
+ return newData;
|
|
|
|
|
|
case '3':
|
|
|
- this.v = this.v?.filter(f => {
|
|
|
- return (f.SBZT != 0 && f.SBZT != 1 && f.SBZT != 2 || f.eqType != "IN")
|
|
|
- })
|
|
|
- this.v.forEach((m, index) => {
|
|
|
- m.codes = m.codes?.filter(f => {
|
|
|
- return (f.SBZT != 0 && f.SBZT != 1 && f.SBZT != 2 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m.codes?.forEach((m2, ind) => {
|
|
|
- m2.codes = m2.codes?.filter(f => {
|
|
|
- return (f.SBZT != 0 && f.SBZT != 1 && f.SBZT != 2 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m2.codes?.forEach((m1, ined) => {
|
|
|
-
|
|
|
- m1.codes = m1.codes.filter(f => {
|
|
|
- return (f.SBZT != 0 && f.SBZT != 1 && f.SBZT != 2)
|
|
|
- })
|
|
|
- m2.codes = m2.codes.filter(s => {
|
|
|
- return s.codes.length != 0
|
|
|
- })
|
|
|
-
|
|
|
-
|
|
|
- })
|
|
|
- })
|
|
|
- });
|
|
|
- this.v = this.v.splice(0, this.numList)
|
|
|
- return this.v;
|
|
|
|
|
|
- case 'xd':
|
|
|
- this.v = this.v?.filter(f => {
|
|
|
- return (f.SBZT === 4 || f.eqType != "IN")
|
|
|
- })
|
|
|
- this.v.forEach((m, index) => {
|
|
|
- m.codes = m.codes?.filter(f => {
|
|
|
- return (f.SBZT === 4 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m.codes.forEach((m2, ind) => {
|
|
|
- m2.codes = m2.codes?.filter(f => {
|
|
|
- return (f.SBZT === 4 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m2.codes.forEach((m1, ined) => {
|
|
|
-
|
|
|
- m1.codes = m1.codes.filter(f => {
|
|
|
- return f.SBZT === 4
|
|
|
- })
|
|
|
- })
|
|
|
- })
|
|
|
- });
|
|
|
- this.v = this.v.splice(0, this.numList)
|
|
|
- return this.v;
|
|
|
-
|
|
|
- case 'sl':
|
|
|
- this.v = this.v?.filter(f => {
|
|
|
- return (f.SBZT === 5 || f.eqType != "IN")
|
|
|
- })
|
|
|
- this.v.forEach((m, index) => {
|
|
|
- m.codes = m.codes?.filter(f => {
|
|
|
- return (f.SBZT === 5 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m.codes.forEach((m2, ind) => {
|
|
|
- m2.codes = m2.codes?.filter(f => {
|
|
|
- return (f.SBZT === 5 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m2.codes.forEach((m1, ined) => {
|
|
|
-
|
|
|
- m1.codes = m1.codes.filter(f => {
|
|
|
- return f.SBZT === 5
|
|
|
- })
|
|
|
- })
|
|
|
- })
|
|
|
+ this.v = this.v.filter(f => {
|
|
|
+ return (f.SBZT != 0 && f.SBZT != 1 && f.SBZT != 2 )
|
|
|
});
|
|
|
- this.v = this.v.splice(0, this.numList)
|
|
|
- return this.v;
|
|
|
-
|
|
|
- case 'lx':
|
|
|
- this.v = this.v?.filter(f => {
|
|
|
- return (f.SBZT === 6 || f.eqType != "IN")
|
|
|
- })
|
|
|
- this.v.forEach((m, index) => {
|
|
|
- m.codes = m.codes?.filter(f => {
|
|
|
- return (f.SBZT === 6 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m.codes.forEach((m2, ind) => {
|
|
|
- m2.codes = m2.codes?.filter(f => {
|
|
|
- return (f.SBZT === 6 || f.eqType != "IN")
|
|
|
- })
|
|
|
- m2.codes.forEach((m1, ined) => {
|
|
|
-
|
|
|
- m1.codes = m1.codes.filter(f => {
|
|
|
- return f.SBZT === 6
|
|
|
- })
|
|
|
- })
|
|
|
- })
|
|
|
- });
|
|
|
- this.v = this.v.splice(0, this.numList)
|
|
|
- return this.v;
|
|
|
+ newData = this.v.splice(0, this.numList)
|
|
|
+ return newData;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
} else {
|
|
|
- return this.data3
|
|
|
+ newData = this.data3.splice(0, this.numList)
|
|
|
+ return newData
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1473,7 +1105,7 @@
|
|
|
mounted() {
|
|
|
this.timer = setInterval(() => {
|
|
|
this.getRtValuesByTagName()
|
|
|
- }, 3000);
|
|
|
+ }, rtDataRefreshTime);
|
|
|
},
|
|
|
unmounted() {
|
|
|
clearInterval(this.timer);
|