|
|
@@ -21,7 +21,7 @@
|
|
|
<div class="title-icon">
|
|
|
<label class="legend-item legend-normal"><input type="checkbox" id="filterNormal" checked> 正常设备</label>
|
|
|
<label class="legend-item legend-yellow"><input type="checkbox" id="filterPlanned" checked> 问题设备</label>
|
|
|
- <!-- <label class="legend-item legend-red"><input type="checkbox" id="filterUnplanned" checked> 非计划性维修设备</label>-->
|
|
|
+ <label class="legend-item legend-red"><input type="checkbox" id="filterStopped" checked> 停机设备</label>
|
|
|
</div>
|
|
|
<div style="display:flex;width:1920px;justify-content:space-between;align-items:center;">
|
|
|
<div id="echart" class="echart"></div>
|
|
|
@@ -279,7 +279,7 @@
|
|
|
data: [
|
|
|
]
|
|
|
}, {
|
|
|
- name: '红色非计划性报修异常点',
|
|
|
+ name: '红色停机设备异常点',
|
|
|
type: 'effectScatter',
|
|
|
coordinateSystem: 'geo',
|
|
|
data: [
|
|
|
@@ -305,7 +305,7 @@
|
|
|
},
|
|
|
zlevel: 1
|
|
|
}, {
|
|
|
- name: '红色非计划性报修异常点编号',
|
|
|
+ name: '红色停机设备异常点编号',
|
|
|
type: 'scatter',
|
|
|
coordinateSystem: 'geo',
|
|
|
symbol: 'pin', // 气泡
|
|
|
@@ -329,7 +329,7 @@
|
|
|
data: [
|
|
|
]
|
|
|
}, {
|
|
|
- name: '黄色计划性报修异常点',
|
|
|
+ name: '黄色报修中异常点',
|
|
|
type: 'effectScatter',
|
|
|
coordinateSystem: 'geo',
|
|
|
data: [
|
|
|
@@ -355,7 +355,7 @@
|
|
|
},
|
|
|
zlevel: 1
|
|
|
}, {
|
|
|
- name: '黄色计划性报修异常点编号',
|
|
|
+ name: '黄色报修中异常点编号',
|
|
|
type: 'scatter',
|
|
|
coordinateSystem: 'geo',
|
|
|
symbol: 'pin', // 气泡
|
|
|
@@ -539,30 +539,30 @@
|
|
|
};
|
|
|
option.series[0].data = normalSbInfoList;// 正常数据:
|
|
|
option.series[1].data = normalSbInfoList;// 正常数据的编号
|
|
|
- option.series[2].data = repairSbInfoListRed;// 非计划性报修 红色编号
|
|
|
- option.series[3].data = repairSbInfoListRed;// 非计划性报修 红色
|
|
|
- option.series[4].data = repairSbInfoListYellow;// 计划性报修 黃色编号
|
|
|
- option.series[5].data = repairSbInfoListYellow;// 计划性报修 黃色
|
|
|
+ option.series[2].data = repairSbInfoListRed;// 停机设备 红色编号
|
|
|
+ option.series[3].data = repairSbInfoListRed;// 停机设备 红色
|
|
|
+ option.series[4].data = repairSbInfoListYellow;// 有进行中报修单 黃色编号
|
|
|
+ option.series[5].data = repairSbInfoListYellow;// 有进行中报修单 黃色
|
|
|
applyFilter();
|
|
|
}
|
|
|
|
|
|
function applyFilter() {
|
|
|
const showNormal = $('#filterNormal').is(':checked');
|
|
|
const showPlanned = $('#filterPlanned').is(':checked');
|
|
|
- const showUnplanned = $('#filterUnplanned').is(':checked');
|
|
|
+ const showStopped = $('#filterStopped').is(':checked');
|
|
|
const orig = option._originalData || { normal: [], red: [], yellow: [] };
|
|
|
|
|
|
option.series[0].data = showNormal ? orig.normal : [];
|
|
|
option.series[1].data = showNormal ? orig.normal : [];
|
|
|
- option.series[2].data = showUnplanned ? orig.red : [];
|
|
|
- option.series[3].data = showUnplanned ? orig.red : [];
|
|
|
+ option.series[2].data = showStopped ? orig.red : [];
|
|
|
+ option.series[3].data = showStopped ? orig.red : [];
|
|
|
option.series[4].data = showPlanned ? orig.yellow : [];
|
|
|
option.series[5].data = showPlanned ? orig.yellow : [];
|
|
|
|
|
|
myChart.setOption(option, true);
|
|
|
}
|
|
|
|
|
|
- $('#filterNormal, #filterPlanned, #filterUnplanned').on('change', function () {
|
|
|
+ $('#filterNormal, #filterPlanned, #filterStopped').on('change', function () {
|
|
|
applyFilter();
|
|
|
});
|
|
|
function getHeader() {
|