From 7441fb8cc9fe7468f097cd2ef297cf08f5a9af7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=86=89=E5=86=89?= Date: Mon, 13 Apr 2026 17:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=B3=A8=E9=87=8A=E3=80=81?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E6=95=88=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/resource/serverRegister/index.vue | 40 ++------------------- 1 file changed, 3 insertions(+), 37 deletions(-) diff --git a/src/views/resource/serverRegister/index.vue b/src/views/resource/serverRegister/index.vue index fc3868d..be7c76a 100644 --- a/src/views/resource/serverRegister/index.vue +++ b/src/views/resource/serverRegister/index.vue @@ -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;