修改现场反馈问题
This commit is contained in:
@@ -115,7 +115,7 @@
|
||||
:value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item v-if="!dataSet.includes('_items')">
|
||||
<!-- <el-select style="min-width: 120px !important" v-model.trim="formInline.dataLevel"
|
||||
:disabled="dataLevel == 'Primary' && deviceType == '0'">
|
||||
@@ -531,6 +531,7 @@ const handleTrend = async () => {
|
||||
ElMessage.success('装置应答成功')
|
||||
//每隔30s调用一下接口,通知后台推送mqtt消息
|
||||
trendTimer.value = window.setInterval(() => {
|
||||
if (!dataSet.value.includes('_realtimedata')) return
|
||||
getHarmRealData(lineId.value, activeTrendName.value).then((res: any) => {
|
||||
// console.log(res, '获取谐波频谱数据')
|
||||
})
|
||||
@@ -587,6 +588,8 @@ const handleHarmonicSpectrum = async () => {
|
||||
// mqttMessage.value = {}
|
||||
|
||||
realDataTimer.value = window.setInterval(() => {
|
||||
if (!dataSet.value.includes('_realtimedata')) return
|
||||
|
||||
getBasicRealData(lineId.value).then((res: any) => {
|
||||
// console.log(res, '获取基础实时数据')
|
||||
})
|
||||
@@ -612,6 +615,7 @@ const handleReturn = async () => {
|
||||
ElMessage.success('装置应答成功')
|
||||
// mqttMessage.value = {}
|
||||
realDataTimer.value = window.setInterval(() => {
|
||||
if (!dataSet.value.includes('_realtimedata')) return
|
||||
getBasicRealData(lineId.value).then((res: any) => {
|
||||
// console.log(res, '获取基础实时数据')
|
||||
})
|
||||
@@ -826,6 +830,7 @@ const getRealDataMqttMsg = async () => {
|
||||
mqttMessage.value = {}
|
||||
|
||||
realDataTimer.value = window.setInterval(async () => {
|
||||
if (!dataSet.value.includes('_realtimedata')) return
|
||||
await getBasicRealData(lineId.value).then((res: any) => {
|
||||
// console.log(res, '获取基础实时数据')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user