|
@@ -304,10 +304,6 @@ const scroll = reactive({
|
|
|
y: 180,
|
|
|
});
|
|
|
let departmentInfo: Null | Object = null;
|
|
|
-let gaspatrol = ref(null);
|
|
|
-let gasreport = ref(null);
|
|
|
-let gasreportcount = ref(null);
|
|
|
-let station = ref(null);
|
|
|
function tabChange(activeKeyVal) {
|
|
|
activeKey.value = activeKeyVal;
|
|
|
}
|
|
@@ -321,20 +317,7 @@ function getMonitor(flag?) {
|
|
|
if (Object.prototype.toString.call(timer) === '[object Null]') {
|
|
|
timer = setTimeout(
|
|
|
async () => {
|
|
|
- if (deviceType.value.startsWith('gasDay_normal') && gaspatrol.value) {
|
|
|
- gaspatrol.value.queryNowGasInsInfoList(); //人工瓦斯巡检
|
|
|
- } else if (deviceType.value.startsWith('gasDayReport')) {
|
|
|
- if (glob.sysOrgCode == 'sdmtjtbetmk') {
|
|
|
- gasreportcount.value.getSearchReport();
|
|
|
- } else {
|
|
|
- gasreport.value.getSearchReport(); //瓦斯日报
|
|
|
- }
|
|
|
- } else if (deviceType.value.startsWith('substation') && station.value) {
|
|
|
- //分站
|
|
|
- station.value.getStationList();
|
|
|
- } else {
|
|
|
- await getDataSource();
|
|
|
- }
|
|
|
+ await getDataSource();
|
|
|
if (timer) {
|
|
|
getMonitor();
|
|
|
}
|