fix: 页面字段/接口调整
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user