|
@@ -11,7 +11,6 @@
|
|
|
<rect x="1008.969" y="29.538" fill="#B21F63" width="1.537" height="50.888"/>
|
|
|
<rect x="500.114" y="80.427" fill="#B21F63" width="595.531" height="1.537"/>
|
|
|
<text transform="matrix(1 0 0 1 1032.9893 52.8999)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="14.0484">105</text>
|
|
|
- <rect x="1004.063" y="35.898" fill="#ED2024" width="9.836" height="18.318"/>
|
|
|
</g>
|
|
|
<g>
|
|
|
<rect x="71.679" y="130.277" fill="#B6065C" width="862.731" height="1.537"/>
|
|
@@ -27,7 +26,6 @@
|
|
|
<rect x="213.391" y="131.412" fill="#B6065C" width="1.537" height="14.906"/>
|
|
|
<rect x="791.16" y="130.294" fill="#B6065C" width="1.537" height="14.906"/>
|
|
|
<rect x="502.733" y="131.412" fill="#B6065C" width="1.537" height="14.906"/>
|
|
|
- <rect x="495.033" y="89.119" fill="#02A434" width="16.937" height="30.677"/>
|
|
|
<rect x="70.142" y="131.564" fill="#B6065C" width="1.537" height="14.906"/>
|
|
|
<rect x="934.41" y="132.152" fill="#B6065C" width="1.537" height="14.905"/>
|
|
|
</g>
|
|
@@ -1979,7 +1977,6 @@
|
|
|
<rect x="213.078" y="365.332" fill="#B6065C" width="1.537" height="14.906"/>
|
|
|
<rect x="790.85" y="364.215" fill="#B6065C" width="1.537" height="14.906"/>
|
|
|
<rect x="502.421" y="365.332" fill="#B6065C" width="1.537" height="14.906"/>
|
|
|
- <rect x="494.721" y="323.04" fill="#02A434" width="16.937" height="30.677"/>
|
|
|
<rect x="69.828" y="365.484" fill="#B6065C" width="1.537" height="14.906"/>
|
|
|
<rect x="934.098" y="366.072" fill="#B6065C" width="1.537" height="14.905"/>
|
|
|
<rect x="1048.693" y="81.964" fill="#B6065C" width="1.537" height="233.92"/>
|
|
@@ -5126,6 +5123,11 @@
|
|
|
</g>
|
|
|
</g>
|
|
|
</g>
|
|
|
+ <g id="sc">
|
|
|
+ <rect x="1004.063" y="35.898" fill="#ED2024" width="9.836" height="18.318"/>
|
|
|
+ <rect x="495.033" y="89.119" fill="#02A434" width="16.937" height="30.677"/>
|
|
|
+ <rect x="494.721" y="323.04" fill="#02A434" width="16.937" height="30.677"/>
|
|
|
+ </g>
|
|
|
</svg>
|
|
|
</template>
|
|
|
</previewPicture>
|
|
@@ -5159,25 +5161,19 @@
|
|
|
// 渲染每个机箱的表格参数
|
|
|
renderData(data) {
|
|
|
// 取出开关的 DOM
|
|
|
- const switchDom = $("#data").find("rect");
|
|
|
+ const switchDom = $("#sc").find("rect");
|
|
|
// 遍历数据,首先取出开关单独写逻辑渲染颜色,除了开关以外的就是每个机箱的数据
|
|
|
for (let key in data) {
|
|
|
// 渲染开关
|
|
|
const item = data[key];
|
|
|
- if (key === "dwkdqmx310") {
|
|
|
+ if (key === "hzj105") {
|
|
|
switchDom.eq(0).attr("fill", item ? this.green : this.red);
|
|
|
- } else if (key === "dwkdqmx314") {
|
|
|
+ } else if (key === "hzj361") {
|
|
|
switchDom.eq(1).attr("fill", item ? this.green : this.red);
|
|
|
- } else if (key === "dwkdqmx315") {
|
|
|
+ } else if (key === "hzj362") {
|
|
|
switchDom.eq(2).attr("fill", item ? this.green : this.red);
|
|
|
} else {
|
|
|
- // var str = 'hzj0101gl';
|
|
|
- // $('#alldata').find('#data'+str.slice(3,5)).find('g').eq(parseInt(str.slice(5,7)) - 1).find('text').eq(0).html('564654')
|
|
|
- // 渲染电柜参数数据
|
|
|
- const spKey = key.replace(/[^0-9]/gi, "");
|
|
|
- // const dgDom = $("#_x23_" + spKey).find("text");
|
|
|
- const dgDom = $("#_x23_" + spKey).find("text");
|
|
|
-
|
|
|
+ const dgDom = $('#alldata').find('#data'+key.slice(3,5)).find('g').eq(parseInt(key.slice(5,7)) - 1).find('text');
|
|
|
if (dgDom && key.indexOf("dl") !== -1) {
|
|
|
dgDom.eq(0).html(item);
|
|
|
} else if (dgDom && key.indexOf("dy") !== -1) {
|