|
@@ -49,7 +49,7 @@ import {listUnNotice} from "@/api/system/notice";
|
|
|
created() {
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.startMove()
|
|
|
+ // this.startMove()
|
|
|
},
|
|
|
methods: {
|
|
|
/** 查询报警记录管理列表 */
|
|
@@ -67,11 +67,11 @@ import {listUnNotice} from "@/api/system/notice";
|
|
|
//设置文字滚动一轮时间
|
|
|
let elem = document.querySelector('.inner-center');
|
|
|
let state = elem.style['animation'];
|
|
|
- let time = this.arr.length * 1 + 8
|
|
|
- elem.style['animation'] = 'myMove ' + time + 's linear infinite';
|
|
|
+ let time = this.arr.length * 1 + 5
|
|
|
+ elem.style['animation'] = 'myMove1 ' + time + 's linear infinite';
|
|
|
//设置文字无缝滚动高度
|
|
|
- let param = this.arr.length * 60
|
|
|
- let myFirstkeyframes = "@keyframes myMove{0% {transform: translateY(200px);}100% {transform: translateY(-" + param +"px);}}";
|
|
|
+ let param = this.arr.length * 30 + 5
|
|
|
+ let myFirstkeyframes = "@keyframes myMove1 {0% {transform: translateY(100px);}100% {transform: translateY(-" + param +"px);}}";
|
|
|
let style = document.createElement("style");
|
|
|
style.setAttribute("type", "text/css");
|
|
|
document.head.appendChild(style);
|
|
@@ -100,52 +100,20 @@ import {listUnNotice} from "@/api/system/notice";
|
|
|
this.$router.push("/reliability/safetyvavle");
|
|
|
}else if (type === "环保批文清单") {
|
|
|
this.$router.push("/ehs/environapproval");
|
|
|
- }else if (type === "消防批文清单") {
|
|
|
- this.$router.push("/ehs/fireapproval");
|
|
|
- }else if (type === "安全批文清单") {
|
|
|
- this.$router.push("/ehs/safetyapproval");
|
|
|
- }else if (type === "故障管理跟踪") {
|
|
|
- this.$router.push("/reliability/list");
|
|
|
- }else if (type === "MSDS管理") {
|
|
|
- this.$router.push("/ehs/msds");
|
|
|
- }else if (type === "管线清单") {
|
|
|
- this.$router.push("/reliability/pipe");
|
|
|
- }else if (type === "装置程序清单") {
|
|
|
- this.$router.push("/document/plantproglist");
|
|
|
- }else if (type === "PPE发放登记") {
|
|
|
- this.$router.push("/affair/ppe");
|
|
|
- }else if (type === "压力管道" || type === "锅炉证" || type === "加氢工艺" || type === "裂化工艺") {
|
|
|
- this.$router.push("/training/workcertificate");
|
|
|
- }else if (type === "上岗证一览表") {
|
|
|
- this.$router.push("/training/worklicense");
|
|
|
- }else if (type === "灭火器") {
|
|
|
- this.$router.push("/ehs/fireextinguisher");
|
|
|
- }else if (type === "洗眼器") {
|
|
|
- this.$router.push("/ehs/eyewasher");
|
|
|
- }else if (type === "消防水带箱") {
|
|
|
- this.$router.push("/ehs/firehose");
|
|
|
- }else if (type === "消防栓") {
|
|
|
- this.$router.push("/ehs/firehydrant");
|
|
|
- }else if (type === "高压消防炮") {
|
|
|
- this.$router.push("/ehs/highpresfire");
|
|
|
- }else if (type === "自动喷淋系统") {
|
|
|
- this.$router.push("/ehs/autosprinkler");
|
|
|
- }else if (type === "消防竖管") {
|
|
|
- this.$router.push("/ehs/firestandpipe");
|
|
|
- }
|
|
|
- },
|
|
|
- startMove() {
|
|
|
- if (this.remove === true) {
|
|
|
- let timer = setTimeout(() => {
|
|
|
- if (this.number === 3) {
|
|
|
- this.number = 0;
|
|
|
- } else {
|
|
|
- this.number += 1;
|
|
|
- }
|
|
|
- this.startMove();
|
|
|
- }, totalDuration)
|
|
|
}
|
|
|
},
|
|
|
+ // startMove() {
|
|
|
+ // if (this.remove === true) {
|
|
|
+ // let timer = setTimeout(() => {
|
|
|
+ // if (this.number === 3) {
|
|
|
+ // this.number = 0;
|
|
|
+ // } else {
|
|
|
+ // this.number += 1;
|
|
|
+ // }
|
|
|
+ // this.startMove();
|
|
|
+ // }, totalDuration)
|
|
|
+ // }
|
|
|
+ // },
|
|
|
},
|
|
|
}
|
|
|
</script>
|