|
@@ -252,17 +252,31 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
fan1: {
|
|
|
- motor1: new Array(10).fill(1),
|
|
|
- motor2: new Array(10).fill(1),
|
|
|
- pipeline: new Array(7).fill(1),
|
|
|
+ motor1: [1, 3, 3, 2, 3, 1, 1, 2, 2, 2],
|
|
|
+ motor2: [2, 3, 3, 1, 1, 1, 2, 3, 1, 1],
|
|
|
+ pipeline:[2, 3, 3, 2, 3, 2, 1],
|
|
|
},
|
|
|
fan2: {
|
|
|
- motor1: new Array(10).fill(2),
|
|
|
- motor2: new Array(10).fill(2),
|
|
|
- pipeline: new Array(7).fill(2),
|
|
|
+ motor1: [1, 3, 3, 2, 3, 1, 1, 2, 2, 2],
|
|
|
+ motor2: [1, 2, 2, 2, 3, 3, 3, 2, 2, 2],
|
|
|
+ pipeline: [1, 1, 1, 3, 1, 3, 3]
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
+ mounted(){
|
|
|
+ // setInterval(() => {
|
|
|
+ // this.fan1.motor1.shift();
|
|
|
+ // this.fan1.motor1.push(this.generate(1,3));
|
|
|
+
|
|
|
+ // console.log(this.fan1.motor1);
|
|
|
+ // }, 3000);
|
|
|
+
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ generate(min,max) {
|
|
|
+ return (parseInt(Math.random() * (max - min + 1) + min, 10));
|
|
|
+ },
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|