fix:页面请求
This commit is contained in:
@@ -75,7 +75,6 @@
|
||||
const getConditionalJudgment = (data: any) => {
|
||||
const formattedValue = data.conditionalJudgment.replace(/(\d+)\.00/g, '$1');
|
||||
// 返回处理后的值
|
||||
console.log(formattedValue, 'value');
|
||||
return formattedValue;
|
||||
};
|
||||
const clickSwitch = (data: any) => {
|
||||
|
@@ -302,7 +302,6 @@
|
||||
const getConditionalJudgment = (data: any) => {
|
||||
const formattedValue = data.conditionalJudgment.replace(/(\d+)\.00/g, '$1');
|
||||
// 返回处理后的值
|
||||
console.log(formattedValue, 'value');
|
||||
return formattedValue;
|
||||
};
|
||||
return {
|
||||
|
@@ -127,7 +127,8 @@
|
||||
type: 'shadow',
|
||||
},
|
||||
formatter: function (params: any) {
|
||||
let res = params[0].marker + ' ' + params[0].seriesName + ' : ' + params[0].data;
|
||||
let res =
|
||||
params[0].marker + ' ' + params[0].seriesName + ' : ' + params[0].data + 'V';
|
||||
return res;
|
||||
},
|
||||
},
|
||||
|
@@ -548,12 +548,12 @@
|
||||
getTempSysCtrlList();
|
||||
};
|
||||
//实时获取数据 暂定一分钟
|
||||
// const intervalId = setInterval(fetchData, 60000);
|
||||
const intervalId = setInterval(fetchData, 60000);
|
||||
onMounted(() => {
|
||||
fetchData();
|
||||
});
|
||||
onUnmounted(() => {
|
||||
// clearInterval(intervalId);
|
||||
clearInterval(intervalId);
|
||||
});
|
||||
</script>
|
||||
<style lang="less">
|
||||
|
Reference in New Issue
Block a user