From ee07dda69225aa5d88bf92e465633988413b76fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=86=89=E5=86=89?= Date: Wed, 25 Feb 2026 18:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=B7=BB=E5=8A=A0=E5=86=85=E5=AD=98=E8=AF=A6?= =?UTF-8?q?=E7=BB=86=E4=BF=A1=E6=81=AFtab=E6=A0=8F=EF=BC=8C=E8=81=94?= =?UTF-8?q?=E8=B0=83=E5=86=85=E5=AD=98=E8=AF=A6=E7=BB=86=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/disRevenue/resource.js | 8 +++++ src/views/resource/serverRegister/details.vue | 25 ++++++++++++++-- src/views/resource/serverRegister/table.vue | 30 ++++++++++++++++++- 3 files changed, 60 insertions(+), 3 deletions(-) diff --git a/src/api/disRevenue/resource.js b/src/api/disRevenue/resource.js index fa40320..bb6b5b2 100644 --- a/src/api/disRevenue/resource.js +++ b/src/api/disRevenue/resource.js @@ -791,6 +791,14 @@ export function removeServer(query) { data: query }) } +// 内存详细信息 +export function initialMemoryDetails(query) { + return request({ + url: '/rocketmq/initialMemoryDetailsInfo/list', + method: 'post', + data: query + }) +} export function bindBusByClient(query) { return request({ diff --git a/src/views/resource/serverRegister/details.vue b/src/views/resource/serverRegister/details.vue index 1660fcb..e5ef963 100644 --- a/src/views/resource/serverRegister/details.vue +++ b/src/views/resource/serverRegister/details.vue @@ -97,6 +97,10 @@ + + + + @@ -111,7 +115,7 @@ import diskSizeImg from '@/assets/images/diskSize.png'; import {getHandle, trafficSerDetails, agentIsNew, virNetInterfaceChild, frpMsgByClient, getPppoeConfig, updateAgentManage, postInterFaceName, mountNameList, diskNameList, diskAllNames, trafficEcharts, spaceRate, speedEcharts, trafficIPv4Echarts, trafficIPv6Echarts,cpuTemperatureChartData, - cpuLoadData, memoryUtilization, usedSpacechartsData, networkList, pingDroppedEchars, getAlarmLogServerMsg} from "@/api/disRevenue/resource"; + cpuLoadData, memoryUtilization, usedSpacechartsData, networkList, pingDroppedEchars, getAlarmLogServerMsg, initialMemoryDetails} from "@/api/disRevenue/resource"; import {listBandWidth} from "@/api/disRevenue/earnManage"; import serRegisFormOther from './formOther'; import serRegisTable from './table'; @@ -390,13 +394,19 @@ this.serverBandWidth(this.activeName); } else if (this.activeName === 'PPPoE配置') { this.fnPppoeConfig(this.activeName); + } else if (this.activeName === '内存详细信息') { + this.fnInitialMemory(this.activeName); } // if (!this.mapDataList[this.activeName] || this.mapDataList[this.activeName].length <= 0) { // } }, // 收益信息的分页回调 fnPaging(val) { - this.serverBandWidth(this.activeName,val); + if (this.activeName === '收益查看') { + this.serverBandWidth(this.activeName,val); + } else if (this.activeName === '内存详细信息') { + this.fnInitialMemory(this.activeName,val); + } }, // 收益信息 serverBandWidth(keyName, val) { @@ -406,6 +416,14 @@ this.$set(this.mapDataList, keyName, [{tableList: res && res.rows, queryParams: newParams}]); }) }, + // 内存详细信息 + fnInitialMemory(keyName, val) { + let newParams = Object.assign({}, {pageNum: 1, pageSize: 10, clientId: this.paramsData.clientId}, val); + initialMemoryDetails(newParams).then(res => { + newParams['total'] = res && res.total; + this.$set(this.mapDataList, keyName, [{tableList: res && res.rows, queryParams: newParams}]); + }); + }, // FRP信息 fnFRPData(keyName) { frpMsgByClient({clientId: this.paramsData.clientId}).then(res => { @@ -978,4 +996,7 @@ border: 1px solid #ddd; padding: 15px 5px 15px 15px; } + ::v-deep .el-tabs__item { + padding: 0 18px!important; + } diff --git a/src/views/resource/serverRegister/table.vue b/src/views/resource/serverRegister/table.vue index 53b3923..2d16d7e 100644 --- a/src/views/resource/serverRegister/table.vue +++ b/src/views/resource/serverRegister/table.vue @@ -24,6 +24,12 @@ + + @@ -37,7 +43,7 @@ import {diskIssuanceOperat, delDiskName} from "@/api/disRevenue/resource"; export default { name: "serRegisTable", - dicts: ['disk_status', 'disk_omount_flag'], + dicts: ['disk_status', 'disk_omount_flag', 'mem_health_status'], components: {TableList, relevantData}, props: { activeName: { @@ -194,6 +200,28 @@ ] } }; + } else if (this.activeName === '内存详细信息') { + // 列显隐信息 + this.columns = { + id: {label: `ID`, width: '50'}, + clientId: {label: `clientID`, minWidth: '280'}, + name: {label: `名称`, minWidth: '90', visible: true}, + location: {label: `位置`, minWidth: '90', visible: true}, + manufacturer: {label: `厂商`, minWidth: '90',visible: true}, + capacity: {label: `容量`, minWidth: '90', slotName: 'tempAddUnit', unit: 'MB', visible: true}, + frequency: {label: `主频`, minWidth: '90', slotName: 'tempAddUnit', unit: 'MHz', visible: true}, + serialNumber: {label: `序列号`, minWidth: '110',visible: true}, + type: {label: `类型`, minWidth: '70',visible: true}, + minVoltage: {label: `最小电压`, minWidth: '90', slotName: 'tempAddUnit', unit: 'mV', visible: true}, + rank: {label: `RANK(列)`, minWidth: '80',visible: true}, + bitWidth: {label: `位宽`, minWidth: '60',visible: true}, + technology: {label: `技术`, minWidth: '90', visible: true}, + healthStatus: {label: `健康状态`, minWidth: '80', slotName: 'tempHealthStatus', visible: true}, + partNumber: {label: `部件编码`, minWidth: '90', visible: true}, + }; + this.config = { + colHiddenCheck: true, colTopHiddenIcon: true, + }; } this.$nextTick(() => { if (this.$refs.tabref) {