Commit 7dbf6501 authored by 纪泽龙's avatar 纪泽龙

右边滚动要跟报警稍微同步一下

parent ae3be04e
/* /*
* @Author: your name * @Author: your name
* @Date: 2022-01-26 10:47:44 * @Date: 2022-01-26 10:47:44
* @LastEditTime: 2022-03-01 16:07:06 * @LastEditTime: 2022-03-02 11:28:29
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/config.js * @FilePath: /test/hello-world/src/utils/config.js
...@@ -20,6 +20,9 @@ export const pipePressure = { ...@@ -20,6 +20,9 @@ export const pipePressure = {
3: "次高压", 3: "次高压",
4: "高压", 4: "高压",
}; };
// 这是报警轮询的时间
export const alarmtime = 10000;
export const svgUrl = { export const svgUrl = {
2: require("@/assets/image/tiaoyaxiang1.svg"), 2: require("@/assets/image/tiaoyaxiang1.svg"),
3: require("@/assets/image/famen1.svg"), 3: require("@/assets/image/famen1.svg"),
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-01-11 13:44:17 * @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-03-01 16:08:52 * @LastEditTime: 2022-03-02 11:47:13
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/views/Home.vue * @FilePath: /test/hello-world/src/views/Home.vue
...@@ -144,6 +144,7 @@ import { ...@@ -144,6 +144,7 @@ import {
changzhan, changzhan,
jiankong, jiankong,
user, user,
alarmtime
} from "@/utils/mapClass/config.js"; } from "@/utils/mapClass/config.js";
import { import {
getPipe, getPipe,
...@@ -321,7 +322,7 @@ export default { ...@@ -321,7 +322,7 @@ export default {
this.alarmTimer = setInterval(() => { this.alarmTimer = setInterval(() => {
this.userAlarm(); this.userAlarm();
// console.log("查询报警"); // console.log("查询报警");
}, 6000); }, alarmtime);
}); });
} }
this.currentTime(); this.currentTime();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment