he wei
2021-07-31 85497ffb0690fc56b8c5c4b427ea992ca07f9e1b
U 修改一体机拓扑图
2个文件已修改
68 ■■■■■ 已修改文件
src/pages/dataTest/js/draw_diagram.js 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/realTimeAio.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/dataTest/js/draw_diagram.js
@@ -275,19 +275,33 @@
        {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 = [
@@ -332,25 +346,17 @@
        ,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'
@@ -361,15 +367,25 @@
        ,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'
    });
@@ -379,7 +395,7 @@
        ,y: 330
        ,distance: 60
        ,method: 'drawSwitch'
        ,isOn: Q4
        ,isOn: status.state == 4
        ,name: 'K2'
        ,description: '80A'
    });
@@ -394,10 +410,13 @@
    })
    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);
src/pages/dataTest/realTimeAio.vue
@@ -223,6 +223,7 @@
                                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>