diff --git a/src/assets/js/mork2.js b/src/assets/js/mork2.js index ebd0844..8ad52cb 100644 --- a/src/assets/js/mork2.js +++ b/src/assets/js/mork2.js @@ -564,6 +564,10 @@ export const homepageEquipment = () => { { 'equipment': '码垛机械手5', 'status': '1' + }, + { + 'equipment': '码垛机械手6', + 'status': '1' } ], 'unloadLocation': [ @@ -638,14 +642,6 @@ export const homepageEquipment = () => { { 'equipment': '压机9下料位2', 'status': '3' - }, - { - 'equipment': '压机10下料位1', - 'status': '2' - }, - { - 'equipment': '压机10下料位2', - 'status': '3' } ], 'pressMachine': [ @@ -684,10 +680,6 @@ export const homepageEquipment = () => { { 'equipment': '压机9', 'status': '4' - }, - { - 'equipment': '压机10', - 'status': '1' } ], 'loadLocation': [ @@ -730,6 +722,14 @@ export const homepageEquipment = () => { { 'equipment': '压机10上料位1', 'status': '1' + }, + { + 'equipment': '压机11上料位1', + 'status': '1' + }, + { + 'equipment': '压机12上料位1', + 'status': '1' } ] }, diff --git a/src/components/canvas.vue b/src/components/canvas.vue index 294673f..5be81a2 100644 --- a/src/components/canvas.vue +++ b/src/components/canvas.vue @@ -8,7 +8,8 @@ export default { data () { return { - points: [{x1: 650, y1: 885, x2: 650, y2: 852}, {x1: 577, y1: 815, x2: 548, y2: 815}, {x1: 719, y1: 815, x2: 754, y2: 815}, {x1: 305, y1: 560, x2: 305, y2: 545}, {x1: 419, y1: 510, x2: 419, y2: 490}, {x1: 455, y1: 282, x2: 548, y2: 282}, {x1: 830, y1: 395, x2: 830, y2: 474}, {x1: 830, y1: 499, x2: 830, y2: 561}, {x1: 830, y1: 516, x2: 488, y2: 516}, {x1: 488, y1: 516, x2: 488, y2: 560}], + // points: [{x1: 650, y1: 885, x2: 650, y2: 852}, {x1: 577, y1: 815, x2: 548, y2: 815}, {x1: 719, y1: 815, x2: 754, y2: 815}, {x1: 305, y1: 560, x2: 305, y2: 545}, {x1: 419, y1: 510, x2: 419, y2: 490}, {x1: 455, y1: 282, x2: 548, y2: 282}, {x1: 830, y1: 395, x2: 830, y2: 474}, {x1: 830, y1: 499, x2: 830, y2: 561}, {x1: 830, y1: 516, x2: 488, y2: 516}, {x1: 488, y1: 516, x2: 488, y2: 560}], + points: [{x1: 305, y1: 560, x2: 305, y2: 545}, {x1: 419, y1: 510, x2: 419, y2: 490}, {x1: 455, y1: 282, x2: 548, y2: 282}, {x1: 830, y1: 395, x2: 830, y2: 474}, {x1: 830, y1: 499, x2: 830, y2: 561}, {x1: 830, y1: 516, x2: 488, y2: 516}, {x1: 488, y1: 516, x2: 488, y2: 560}], dot1: {x1: 650, y1: 885, x2: 650, y2: 852}, dot2: {x1: 577, y1: 815, x2: 548, y2: 815}, dot3: {x1: 719, y1: 815, x2: 754, y2: 815}, @@ -55,32 +56,32 @@ export default { let canvas = document.getElementById('myCanvas') let ctx = canvas.getContext('2d') ctx.clearRect(0, 0, canvas.width, canvas.height) - if (this.line1 === 1) { - this.dot1.y1 -= 1 - this.drawPoint(ctx, this.dot1.x1, this.dot1.y1) - if (this.dot1.y1 === this.dot1.y2) { - this.dot1.y1 = 885 - this.line1 = 2 - } - } - if (this.line1 === 2) { - this.dot2.x1 -= 1 - this.drawPoint(ctx, this.dot2.x1, this.dot2.y1) - // this.line1 = 3 - if (this.dot2.x1 === this.dot2.x2) { - this.dot2.x1 = 577 - this.line1 = 3 - } - } - if (this.line1 === 3) { - this.dot3.x1 += 1 - this.drawPoint(ctx, this.dot3.x1, this.dot3.y1) - // this.line1 = 2 - if (this.dot3.x1 === this.dot3.x2) { - this.dot3.x1 = 719 - this.line1 = 1 - } - } + // if (this.line1 === 1) { + // this.dot1.y1 -= 1 + // this.drawPoint(ctx, this.dot1.x1, this.dot1.y1) + // if (this.dot1.y1 === this.dot1.y2) { + // this.dot1.y1 = 885 + // this.line1 = 2 + // } + // } + // if (this.line1 === 2) { + // this.dot2.x1 -= 1 + // this.drawPoint(ctx, this.dot2.x1, this.dot2.y1) + // // this.line1 = 3 + // if (this.dot2.x1 === this.dot2.x2) { + // this.dot2.x1 = 577 + // this.line1 = 3 + // } + // } + // if (this.line1 === 3) { + // this.dot3.x1 += 1 + // this.drawPoint(ctx, this.dot3.x1, this.dot3.y1) + // // this.line1 = 2 + // if (this.dot3.x1 === this.dot3.x2) { + // this.dot3.x1 = 719 + // this.line1 = 1 + // } + // } if (this.line2 === 1) { this.dot4.y1 -= 1 this.drawPoint(ctx, this.dot4.x1, this.dot4.y1) diff --git a/src/components/workshop.vue b/src/components/workshop.vue index b870d53..3ebe2e8 100644 --- a/src/components/workshop.vue +++ b/src/components/workshop.vue @@ -27,12 +27,17 @@
+
+
-
-
-
-
@@ -344,22 +337,19 @@
-