[fix] 进出口流量转换成B、KB、MB、GB 支持展开显示

This commit is contained in:
wujiawei
2024-01-25 13:29:26 +08:00
parent 27219eea2d
commit 68c8deedb2
2 changed files with 24 additions and 1 deletions

View File

@@ -36,7 +36,25 @@
pageSize: size,
total: total,
}"
@expand-change="expandChange"
>
<el-table-column type="expand">
<template v-slot="scope">
<el-table
:data="scope.row.visitorPortFlowDTOList"
size="mini"
style="width: 95%; margin-left: 8%"
>
<el-table-column prop="clientId" label="客户端ID" />
<el-table-column prop="visitorPort" label="访客端口" />
<el-table-column
prop="outFlow"
label="客户端出口流量"
/>
<el-table-column prop="inFlow" label="客户端进口流量" />
</el-table>
</template>
</el-table-column>
<el-table-column prop="clientId" label="客户端ID"></el-table-column>
<el-table-column prop="outFlow" label="客户端出口流量">
</el-table-column>
@@ -106,6 +124,10 @@ const params = reactive({
});
const { clientId, size, current, total } = toRefs(params);
const expandChange = async () => {
// 设置当前行为选中行
// this.$refs.tableData.setCurrentRow(row);
};
/**
* @description: 获取列表数据
* @param {*}

View File

@@ -25,7 +25,8 @@ module.exports = {
},
"/": {
// 'demo'是请求地址中以demo开头都适用这个
target: "http://127.0.0.1:6001", // 真实的服务器地址
// target: "http://127.0.0.1:6001", // 真实的服务器地址
target: "http://124.222.48.62:30576", // 真实的服务器地址
changeOrigin: true, //
secure: false, // 默认情况下,不接受运行在 HTTPS 上且使用了无效证书的后端服务器。如果你想要接受设为false
ws: false, // 是否启用websockets