服务器管理列表列间距调整、PPPo的配置方式切换展示效果优化

This commit is contained in:
康冉冉
2026-01-13 18:52:57 +08:00
parent 7af2e86404
commit 43c8a84aba
3 changed files with 87 additions and 63 deletions
@@ -121,6 +121,7 @@
outSpeed: { label: `上传速度(Mbps)`, minWidth: '120', visible: readonly},
totalInSpeed: { label: `已接收流量(GB)`, minWidth: '120', visible: readonly},
totalOutSpeed: { label: `已发送流量(GB)`, minWidth: '120', visible: readonly},
netRunTime: { label: `拨号时长`, minWidth: '80', visible: readonly},
status: { label: `连通状态`, minWidth: '80', slotName: 'tempStatus', visible: readonly},
};
if (!readonly && this.ruleForm.pppoeConfigMode === '1') {
@@ -193,6 +194,9 @@
} else {
this.ruleForm = Object.assign({}, this.ruleForm, {typeName: 111});
this.roleList = this.roleList.length > 0 ? this.roleList : [{targetIndexNum: 1, serialNumber: 1, vlanId: undefined, ipv4Address: undefined, ipv4MaskBits: undefined, ipv4Gateway: undefined, bandwidthResult: undefined}];
if (this.ruleForm && this.ruleForm.pppoeConfigMode == '2') {
this.roleList = this.roleList.length > 0 ? this.roleList : [];
}
this.readonly = !this.readonly;
this.fnFormList(this.readonly);
}
@@ -278,6 +282,14 @@
case 'pppoeConfigMode':
if (dataVal === '1') {
this.formList[0].controls.pppoeInterface['hidden'] = false;
let newModel = JSON.parse(JSON.stringify(this.modelVal));
newModel[0].subList.map((item,index) => {
item['targetIndexNum'] = index + 1;
if (index !== 0) {
item['showNum'] = '1';
}
});
this.roleList = newModel[0].subList.length > 0 ? newModel[0].subList : [{targetIndexNum: 1, serialNumber: 1, vlanId: undefined, ipv4Address: undefined, ipv4MaskBits: undefined, ipv4Gateway: undefined, bandwidthResult: undefined}];
this.config = {
colHiddenCheck: true, colTopHiddenIcon: true,
tableButton: {
@@ -288,7 +300,7 @@
}
};
} else if (dataVal === '2') {
if (this.modelVal[0].pppoeConfigMode.toString() === '2') {
if (this.modelVal[0].pppoeConfigMode && this.modelVal[0].pppoeConfigMode.toString() === '2') {
let newModel = JSON.parse(JSON.stringify(this.modelVal));
newModel[0].subList.map((item,index) => {
item['targetIndexNum'] = index + 1;