| | |
| | | {points: [47, 480, 47, 420], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ]; |
| | | |
| | | //放电 |
| | | const list1 = [ |
| | | {points: [47, 480, 47, 420], direction: status.state == 2 ? 'top' : 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [47, 420, 752, 420], direction: status.state == 2 ? 'right' : 'left', fillStyle: BALLCOLOR, ballNum: 5} |
| | | ,{points: [752, 420, 752, 700], direction: status.state == 2 ? 'bottom' : 'top', fillStyle: BALLCOLOR, ballNum: 3} |
| | | {points: [47, 480, 47, 420], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [47, 420, 752, 420], direction: 'right', fillStyle: BALLCOLOR, ballNum: 5} |
| | | ,{points: [752, 420, 752, 700], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 3} |
| | | ]; |
| | | // 充电 |
| | | const list11 = [ |
| | | {points: [47, 480, 47, 420], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [47, 420, 752, 420], direction: 'left', fillStyle: BALLCOLOR, ballNum: 5} |
| | | ,{points: [752, 604, 752, 700], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [752, 420, 752, 496], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [752, 604, 810, 604], direction: 'right', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [752, 496, 810, 496], direction: 'left', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [810, 496, 810, 604], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ]; |
| | | |
| | | const list2 = [ |
| | | {points: [495, 420, 495, 240], direction: 'top', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ,{points: [495, 120, 495, 180], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [495, 120, 752, 120], direction: 'right', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ,{points: [752, 120, 752, 216], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [752, 276, 752, 420], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [495, 420, 752, 420], direction: 'left', fillStyle: BALLCOLOR, ballNum: 2} |
| | | {points: [495, 420, 495, 240], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ,{points: [495, 120, 495, 180], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [495, 120, 752, 120], direction: 'left', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ,{points: [752, 120, 752, 196], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [810, 196, 752, 196], direction: 'left', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [810, 304, 752, 304], direction: 'right', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [810, 304, 810, 196], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [752, 304, 752, 420], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [495, 420, 752, 420], direction: 'right', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ]; |
| | | |
| | | const list3 = [ |
| | |
| | | ,y: 420 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | | ,isOn: Q1 || Q5 |
| | | ,isOn: status.state == 2 || status.state == 4 |
| | | ,name: 'K3' |
| | | ,description: '80A' |
| | | }); |
| | | stateL.draw_switch({ |
| | | x: 752 |
| | | ,y: 520 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | | ,isOn: Q1 || Q5 |
| | | ,direction: 'ver' |
| | | }); |
| | | |
| | | |
| | | stateL.draw_switch({ |
| | | x: 495 |
| | | ,y: 300 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | | ,isOn: Q2 |
| | | ,isOn: status.state == 2 |
| | | ,name: 'K5' |
| | | ,description: '80A' |
| | | ,direction: 'ver' |
| | |
| | | ,y: 220 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | | ,isOn: Q2 || Q4 |
| | | ,isOn: Q4 |
| | | ,direction: 'ver' |
| | | }); |
| | | |
| | | stateL.draw_switch({ |
| | | x: 752 |
| | | ,y: 520 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | | ,isOn: Q1 |
| | | ,direction: 'ver' |
| | | }); |
| | | |
| | | stateL.draw_switch({ |
| | | x: 300 |
| | | ,y: 120 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | | ,isOn: Q4 |
| | | ,isOn: status.state == 4 |
| | | ,name: 'K1' |
| | | ,description: '80A' |
| | | }); |
| | |
| | | ,y: 330 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | | ,isOn: Q4 |
| | | ,isOn: status.state == 4 |
| | | ,name: 'K2' |
| | | ,description: '80A' |
| | | }); |
| | |
| | | }) |
| | | |
| | | |
| | | if (Q1 || Q5) { |
| | | if (Q1) { |
| | | ballList.push(...list1, ...list0, ...list30); |
| | | // console.log('q3', ballList); |
| | | } |
| | | if (Q5) { |
| | | ballList.push(...list11, ...list0, ...list30); |
| | | } |
| | | if (Q2) { |
| | | |
| | | ballList.push(...list2); |
| | |
| | | wrap-class="wrap" |
| | | :levelArr="['staticL', 'stateL', 'flushL']" |
| | | @ratioChanged="ratioChanged" |
| | | :debug="true" |
| | | @debugClick="debugClick" |
| | | > |
| | | <div class="info-panel title" :style="getStyle('title', 1)">{{diagram.desc}}</div> |