fix: 页面字段/接口调整

This commit is contained in:
TsMask
2025-02-20 10:47:23 +08:00
parent 814bae0b94
commit 485fa89833
85 changed files with 1133 additions and 1792 deletions

View File

@@ -481,7 +481,7 @@ function fnGetList() {
listAllNeInfo({
bandHost: true,
}).then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
if (res.code === RESULT_CODE_SUCCESS) {
tabState.panes = [];
res.data.forEach((item: any, index: any) => {
if (item.neType === 'OMC' || !Array.isArray(item.hosts)) return;

View File

@@ -81,7 +81,7 @@ function fnGetList() {
getPara5GFilee(),
listNeInfo({
pageNum: 1,
pageSize: 20,
pageSize: 100,
}),
]).then(resArr => {
// 已保存的配置
@@ -89,11 +89,9 @@ function fnGetList() {
state.from = resArr[0].data;
}
// 填充固定网元类型的ip
if (
resArr[1].code === RESULT_CODE_SUCCESS &&
Array.isArray(resArr[1].rows)
) {
for (const item of resArr[1].rows) {
if (resArr[1].code === RESULT_CODE_SUCCESS) {
const { rows } = resArr[1].data;
for (const item of rows) {
switch (item.neType) {
case 'OMC':
state.from.sbi.omc_ip = item.ip;

View File

@@ -206,13 +206,13 @@ function fnGetList() {
pageNum: 1,
pageSize: 20,
}).then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
if (res.code === RESULT_CODE_SUCCESS) {
// 取消勾选
if (state.selectedRowKeys.length > 0) {
state.selectedRowKeys = [];
state.selectedRowOne = { neType: '' };
}
state.data = res.rows.filter(s => s.neType !== 'OMC');
state.data = res.data.rows.filter((s: any) => s.neType !== 'OMC');
}
state.loading = false;
});

View File

@@ -194,12 +194,12 @@ function fnGetList() {
pageNum: 1,
pageSize: 20,
}).then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
if (res.code === RESULT_CODE_SUCCESS) {
// 取消勾选
if (state.selectedRowKeys.length > 0) {
state.selectedRowKeys = [];
}
state.data = res.rows.filter(s => s.neType !== 'OMC');
state.data = res.data.rows.filter((s: any) => s.neType !== 'OMC');
}
state.loading = false;
});