修改页面log输出并修改tonken超时判断
This commit is contained in:
@@ -92,7 +92,7 @@ const tableStore: any = new TableStore({
|
||||
icon: 'el-icon-EditPen',
|
||||
render: 'basicButton',
|
||||
click: row => {
|
||||
console.log(row.portableOfflLogList)
|
||||
// console.log(row.portableOfflLogList)
|
||||
detailRef.value.open(row.portableOfflLogList)
|
||||
}
|
||||
}
|
||||
@@ -109,7 +109,7 @@ const tableStore: any = new TableStore({
|
||||
loadCallback: () => {
|
||||
// tableStore.table.data=[]
|
||||
tableStore.table.height = 400
|
||||
console.log(tableStore.table.publicHeight, 'tableStore.table.data')
|
||||
// console.log(tableStore.table.publicHeight, 'tableStore.table.data')
|
||||
}
|
||||
})
|
||||
provide('tableStore', tableStore)
|
||||
|
||||
@@ -73,7 +73,7 @@ const tableStore: any = new TableStore({
|
||||
icon: 'el-icon-EditPen',
|
||||
render: 'basicButton',
|
||||
click: row => {
|
||||
console.log(row.portableOfflLogList)
|
||||
// console.log(row.portableOfflLogList)
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -253,7 +253,6 @@ const init = () => {
|
||||
icon: 'path://M588.8 551.253333V512H352v39.253333h236.373333z m0 78.933334v-39.253334H352v39.253334h236.373333z m136.533333 78.933333V334.933333l-157.866666-157.866666H273.066667A59.306667 59.306667 0 0 0 213.333333 236.373333v551.253334a59.306667 59.306667 0 0 0 59.306667 59.306666h274.773333v42.666667H853.333333v-180.48zM568.746667 234.666667l100.266666 100.693333h-81.066666a20.053333 20.053333 0 0 1-19.626667-20.053333z m-20.48 573.013333H273.066667a19.2 19.2 0 0 1-17.493334-19.626667V236.373333a19.2 19.2 0 0 1 19.626667-19.626666h256v98.133333a58.88 58.88 0 0 0 58.88 59.306667h96.426667v334.933333h-98.133334v-39.68H352v39.68h196.266667z m100.266666 23.04a37.973333 37.973333 0 0 1-32 15.786667 38.826667 38.826667 0 0 1-32.426666-15.786667 53.76 53.76 0 0 1-10.24-32.853333 42.666667 42.666667 0 0 1 42.666666-47.786667 35.84 35.84 0 0 1 37.546667 29.866667h-12.8a23.893333 23.893333 0 0 0-24.746667-19.2c-17.066667 0-29.013333 14.08-29.013333 35.84s11.52 37.546667 28.586667 37.546666a26.453333 26.453333 0 0 0 26.453333-25.6h12.8a39.253333 39.253333 0 0 1-7.253333 22.186667z m59.733334 15.786667a35.84 35.84 0 0 1-40.106667-34.56H682.666667a23.893333 23.893333 0 0 0 26.88 23.04c12.8 0 22.613333-6.4 22.613333-15.786667s-4.266667-11.52-14.506667-13.653333l-21.333333-5.12c-17.066667-4.266667-24.32-11.52-24.32-23.893334s12.8-26.453333 34.133333-26.453333a31.573333 31.573333 0 0 1 35.413334 30.293333h-13.653334a19.626667 19.626667 0 0 0-22.613333-18.773333c-12.8 0-20.48 5.12-20.48 12.8s5.12 11.093333 17.066667 13.653333l14.933333 2.986667a42.666667 42.666667 0 0 1 20.906667 8.96 23.893333 23.893333 0 0 1 7.68 17.92c-0.426667 17.066667-14.506667 28.16-37.12 28.16z m88.746666 0h-14.506666l-32.426667-92.16h14.08l19.626667 59.733333 6.4 20.053333c0-9.386667 3.413333-12.8 5.546666-20.053333l19.2-59.733333h14.08z',
|
||||
onclick: (e) => {
|
||||
|
||||
console.log("🚀 ~ init ~ echartsData.value:", echartsData.value.options.series.map(item => item.data))
|
||||
|
||||
let list = echartsData.value.options.series.map(item => item.data)
|
||||
let dataList = list[0].map((item, index) => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="default-main device-control" :style="{ height: pageHeight.height }" v-loading="loading"
|
||||
style="position: relative">
|
||||
<!-- @init="nodeClick" -->
|
||||
<PointTree @node-click="nodeClick" @pointTypeChange="pointTypeChange"></PointTree>
|
||||
<PointTree @node-click="nodeClick" @pointTypeChange="pointTypeChange" style="width: 280px"></PointTree>
|
||||
<div class="device-control-right" v-if="deviceData">
|
||||
<el-descriptions title="监测点信息" class="mb10" width="180" :column="3" border>
|
||||
<template #extra>
|
||||
@@ -30,7 +30,8 @@
|
||||
{{ devData.volGrade }}kV
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="接线方式" width="160">
|
||||
{{ devData.conType == 0 ? '星型接线' : devData.conType == 1 ? '角型接线' : devData.conType == 2 ? 'V型接线' : '/' }}
|
||||
{{ devData.conType == 0 ? '星型接线' : devData.conType == 1 ? '角型接线' : devData.conType == 2 ? 'V型接线' :
|
||||
'/' }}
|
||||
</el-descriptions-item>
|
||||
|
||||
<!-- <el-descriptions-item label="安装位置" width="160">
|
||||
@@ -531,7 +532,7 @@ const handleTrend = async () => {
|
||||
//每隔30s调用一下接口,通知后台推送mqtt消息
|
||||
trendTimer.value = window.setInterval(() => {
|
||||
getHarmRealData(lineId.value, activeTrendName.value).then((res: any) => {
|
||||
console.log(res, '获取谐波频谱数据')
|
||||
// console.log(res, '获取谐波频谱数据')
|
||||
})
|
||||
}, 30000)
|
||||
mqttRef.value.on('message', (topic: any, message: any) => {
|
||||
@@ -587,7 +588,7 @@ const handleHarmonicSpectrum = async () => {
|
||||
|
||||
realDataTimer.value = window.setInterval(() => {
|
||||
getBasicRealData(lineId.value).then((res: any) => {
|
||||
console.log(res, '获取基础实时数据')
|
||||
// console.log(res, '获取基础实时数据')
|
||||
})
|
||||
}, 30000)
|
||||
}
|
||||
@@ -612,7 +613,7 @@ const handleReturn = async () => {
|
||||
// mqttMessage.value = {}
|
||||
realDataTimer.value = window.setInterval(() => {
|
||||
getBasicRealData(lineId.value).then((res: any) => {
|
||||
console.log(res, '获取基础实时数据')
|
||||
// console.log(res, '获取基础实时数据')
|
||||
})
|
||||
}, 30000)
|
||||
}
|
||||
@@ -690,10 +691,10 @@ const lineId: any = ref('')
|
||||
const dataLevel: any = ref('')
|
||||
const dataSource = ref([])
|
||||
const nodeClick = async (e: anyObj) => {
|
||||
console.log("🚀 ~ nodeClick ~ e:", e)
|
||||
// console.log("🚀 ~ nodeClick ~ e:", e)
|
||||
|
||||
|
||||
if (e==undefined || e.level == 2){
|
||||
|
||||
if (e == undefined || e.level == 2) {
|
||||
return loading.value = false
|
||||
}
|
||||
searchValue.value = ''
|
||||
@@ -824,7 +825,7 @@ const getRealDataMqttMsg = async () => {
|
||||
|
||||
realDataTimer.value = window.setInterval(async () => {
|
||||
await getBasicRealData(lineId.value).then((res: any) => {
|
||||
console.log(res, '获取基础实时数据')
|
||||
// console.log(res, '获取基础实时数据')
|
||||
})
|
||||
}, 30000)
|
||||
mqttRef.value.on('message', (topic: any, message: any) => {
|
||||
@@ -1015,7 +1016,7 @@ const handleClick = async (tab?: any) => {
|
||||
realTimeFlag.value = false
|
||||
//初始化点击tab隐藏子页面
|
||||
sonTab.value = null
|
||||
console.log(123, dataSet.value.includes('_history'));
|
||||
// console.log(123, dataSet.value.includes('_history'));
|
||||
|
||||
//查询历史指标
|
||||
if (dataSet.value.includes('_history')) {
|
||||
@@ -1251,6 +1252,10 @@ onBeforeUnmount(() => {
|
||||
.device-control {
|
||||
display: flex;
|
||||
|
||||
&-left {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
&-right {
|
||||
overflow: hidden;
|
||||
flex: 1;
|
||||
|
||||
@@ -140,7 +140,7 @@ const handleUpDevice = () => {
|
||||
|
||||
const radioChangeEvent: VxeTableEvents.RadioChange = ({ row }) => {
|
||||
selectRow.value = row
|
||||
console.log('单选事件')
|
||||
// console.log('单选事件')
|
||||
}
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ mqttRef.value.on('connect', () => {
|
||||
})
|
||||
const mqttMessage = ref<any>({})
|
||||
mqttRef.value.on('message', (topic: any, message: any) => {
|
||||
console.log('mqtt接收到消息', JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message)))))
|
||||
// console.log('mqtt接收到消息', JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message)))))
|
||||
loading.value = false
|
||||
let str = JSON.parse(JSON.stringify(JSON.parse(new TextDecoder().decode(message))))
|
||||
let regex1 = /allStep:(.*?),nowStep/
|
||||
@@ -192,7 +192,7 @@ mqttRef.value.on('message', (topic: any, message: any) => {
|
||||
allStep: str.match(regex1)[1],
|
||||
nowStep: str.match(regex2)[1]
|
||||
}
|
||||
console.log(mqttMessage.value)
|
||||
// console.log(mqttMessage.value)
|
||||
let checkedList = tableRef.value.getCheckboxRecords().map((item: any) => {
|
||||
return item.name
|
||||
})
|
||||
|
||||
@@ -296,7 +296,7 @@ const tableStore = new TableStore({
|
||||
portableDeviceRegister({
|
||||
nDid: row.ndid
|
||||
}).then(res => {
|
||||
console.log(res, '8888')
|
||||
// console.log(res, '8888')
|
||||
ElMessage.success(res.message)
|
||||
tableStore.index()
|
||||
})
|
||||
|
||||
@@ -106,7 +106,7 @@ const getWpData = (val: any, list: any) => {
|
||||
wp.value = val
|
||||
isWp.value = true
|
||||
boxoList.value = list
|
||||
console.log(wp.value, val, 'ggggghhhh')
|
||||
// console.log(wp.value, val, 'ggggghhhh')
|
||||
}
|
||||
const changeView = () => {
|
||||
showBoxi.value = false
|
||||
|
||||
@@ -548,7 +548,7 @@ const setRealData = (val: any) => {
|
||||
initRadioCharts()
|
||||
//新的
|
||||
echartsDataV1.value.options.series[0].max = realData.value.vRmsA == 0 ? 1 : Math.ceil(realData.value.vRmsA * 1.2)
|
||||
console.log("🚀 ~ setRealData ~ realData.value.vRmsA:", realData.value.vRmsA)
|
||||
// console.log("🚀 ~ setRealData ~ realData.value.vRmsA:", realData.value.vRmsA)
|
||||
echartsDataV1.value.options.series[0].data = [
|
||||
{
|
||||
name: 'A相',
|
||||
|
||||
@@ -76,7 +76,7 @@ const props = defineProps({
|
||||
type: Array,
|
||||
}
|
||||
})
|
||||
console.log("🚀 ~ props:", props.TrendList)
|
||||
// console.log("🚀 ~ props:", props.TrendList)
|
||||
const showEchart = ref(true)
|
||||
//电压等级
|
||||
const voltageLevelList = dictData.getBasicData('Dev_Voltage_Stand')
|
||||
@@ -281,7 +281,7 @@ const init = async () => {
|
||||
return acc
|
||||
}, {})
|
||||
let result = Object.values(groupedData)
|
||||
console.log("🚀 ~ .then ~ result:", result)
|
||||
// console.log("🚀 ~ .then ~ result:", result)
|
||||
// console.log("🚀 ~ .then ~ result:", result)
|
||||
if (chartsList.length > 0) {
|
||||
unitList = result.map((item: any) => {
|
||||
@@ -386,7 +386,7 @@ const init = async () => {
|
||||
series: []
|
||||
}
|
||||
}
|
||||
console.log("🚀 ~ unitList.forEach ~ unitList:", unitList)
|
||||
// console.log("🚀 ~ unitList.forEach ~ unitList:", unitList)
|
||||
|
||||
if (chartsList.length > 0) {
|
||||
echartsData.value.yAxis = []
|
||||
@@ -415,7 +415,7 @@ const init = async () => {
|
||||
// console.log("🚀 ~ result.forEach ~ result:", result)
|
||||
// '电压负序分量', '电压正序分量', '电压零序分量'
|
||||
let ABCName = [...new Set(chartsList.map((item: any) => { return item.anotherName == '电压负序分量' ? '电压不平衡' : item.anotherName == '电压正序分量' ? '电压不平衡' : item.anotherName == '电压零序分量' ? '电压不平衡' : item.anotherName }))];
|
||||
console.log("🚀 ~ .then ~ ABCName:", ABCName)
|
||||
// console.log("🚀 ~ .then ~ ABCName:", ABCName)
|
||||
result.forEach((item: any, index: any) => {
|
||||
let yMethodList: any = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user