补充注释、删除无效代码
This commit is contained in:
@@ -477,6 +477,7 @@
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 切换页签以及刷新列表
|
||||
handleClick(val) {
|
||||
if (val && val === 'noRequest' && this.cacheActiveName === this.activeName) return;
|
||||
if (this.cacheActiveName !== this.activeName) {
|
||||
@@ -485,9 +486,9 @@
|
||||
this.cacheActiveName = this.activeName;
|
||||
this.$refs.tabRef.showSearch = true;
|
||||
if (this.activeName === 'first') {
|
||||
this.getHightLight();
|
||||
this.getHightLight(); // 正常设备
|
||||
} else if (this.activeName === 'second') {
|
||||
this.fnGetLossList();
|
||||
this.fnGetLossList(); // 下架设备
|
||||
}
|
||||
},
|
||||
fnGetLossList() {
|
||||
@@ -495,9 +496,6 @@
|
||||
if (params && !params.queryParam) {
|
||||
params.queryParam = null;
|
||||
}
|
||||
// if (this.alarmFlagHight && !params.bandwidthResultSort) {
|
||||
// params = Object.assign({}, params, {bandwidthResultSort: 4});
|
||||
// }
|
||||
getLossList(this.addDateRange(params)).then(response => {
|
||||
this.config = {...this.secondConfig};
|
||||
this.roleList = response.rows;
|
||||
@@ -549,18 +547,6 @@
|
||||
// 高亮数据查询
|
||||
getHightLight() {
|
||||
this.getList();
|
||||
// 不要高亮展示了
|
||||
// getAlarmFlag().then(res => {
|
||||
// if (res && res.data) {
|
||||
// this.alarmFlagHight = true;
|
||||
// } else {
|
||||
// this.alarmFlagHight = false;
|
||||
// }
|
||||
// this.getList();
|
||||
// }).catch(() => {
|
||||
// this.alarmFlagHight = false;
|
||||
// this.getList();
|
||||
// });
|
||||
},
|
||||
/** 查询角色列表 */
|
||||
getList() {
|
||||
@@ -568,9 +554,6 @@
|
||||
if (params && !params.queryParam) {
|
||||
params.queryParam = null;
|
||||
}
|
||||
// if (this.alarmFlagHight && !params.bandwidthResultSort) {
|
||||
// params = Object.assign({}, params, {bandwidthResultSort: 4});
|
||||
// }
|
||||
listHandle(this.addDateRange(params)).then(response => {
|
||||
this.config = {...this.firstConfig};
|
||||
this.roleList = response.rows;
|
||||
@@ -629,21 +612,6 @@
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
/** 图形分析 */
|
||||
// graphicTraffic(list) {
|
||||
// // 生成唯一 key(避免数据冲突)
|
||||
// const storageKey = `temp_data_${Date.now()}`;
|
||||
// // 1. 将数据存入 localStorage(需序列化)
|
||||
// localStorage.setItem(storageKey, JSON.stringify({clientIdList: list}));
|
||||
// // 1. 用 Vue Router 解析目标路由的完整 URL
|
||||
// const routeLocation = this.$router.resolve({
|
||||
// name: 'TrafficChart',
|
||||
// query: { storageKey }
|
||||
// });
|
||||
// // 2. 打开新窗口(routeLocation.href 是完整路径)
|
||||
// window.open(routeLocation.href, '_blank');
|
||||
// // _blank:新标签页;_self:当前窗口(默认)
|
||||
// },
|
||||
async fnVirtualContent(rowData, content, formValCol) {
|
||||
let virtuaContent = '';
|
||||
let newVirtuaContent = '';
|
||||
@@ -776,8 +744,6 @@
|
||||
path:'/resource/serverRegister/trafficChart',
|
||||
query: {clientIdList: JSON.stringify(clientIdData)}
|
||||
});
|
||||
// 原打开新页面使用
|
||||
// this.graphicTraffic(clientIdData);
|
||||
break;
|
||||
case 'mtrChartVew':
|
||||
this.mtrChartOpen = true;
|
||||
|
||||
Reference in New Issue
Block a user