fix: 页面字段/接口调整
This commit is contained in:
@@ -329,10 +329,10 @@ function fnGetListTitle() {
|
||||
if (!state.neType[0]) return false;
|
||||
|
||||
// 获取表头文字
|
||||
listCustom({ neType: state.neType[0], status: 'Active' })
|
||||
listCustom({ neType: state.neType[0], status: '1' })
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||
if (res.data.length === 0) {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
if (res.data.rows.length === 0) {
|
||||
message.error({
|
||||
content: t('views.perfManage.customTarget.kpiIdTip'),
|
||||
duration: 2,
|
||||
@@ -346,7 +346,7 @@ function fnGetListTitle() {
|
||||
}
|
||||
tableColumns.value = [];
|
||||
const columns: any[] = [];
|
||||
for (const item of res.data) {
|
||||
for (const item of res.data.rows) {
|
||||
const kpiDisplay = item[`unit`]
|
||||
? item[`title`] + `(${item['unit']})`
|
||||
: item[`title`];
|
||||
@@ -407,7 +407,7 @@ function fnGetList() {
|
||||
listCustomData(toRaw(queryParams))
|
||||
.then(res => {
|
||||
tableState.loading = false;
|
||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
tablePagination.total = res.data.length;
|
||||
tableState.data = res.data;
|
||||
if (!res.data.length) {
|
||||
@@ -834,9 +834,9 @@ watch(
|
||||
onMounted(() => {
|
||||
// 目前支持的 AMF AUSF MME MOCNGW NSSF SMF UDM UPF PCF
|
||||
// 获取网元网元列表
|
||||
listCustom({ status: 'Active' }).then((res: any) => {
|
||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||
if (!res.data.length) {
|
||||
listCustom({ status: '1' }).then((res: any) => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
if (!res.data.rows.length) {
|
||||
message.warning({
|
||||
content: '无可用的自定义指标,请先添加自定义指标',
|
||||
duration: 2,
|
||||
@@ -844,12 +844,12 @@ onMounted(() => {
|
||||
return false;
|
||||
}
|
||||
let typeArr: any = [];
|
||||
res.data.forEach((item: any) => {
|
||||
res.data.rows.forEach((item: any) => {
|
||||
typeArr.push(item.neType);
|
||||
});
|
||||
typeArr = Array.from(new Set(typeArr));
|
||||
neInfoStore.fnNelist().then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||
neInfoStore.fnNelist().then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
if (res.data.length > 0) {
|
||||
// 过滤不可用的网元
|
||||
neCascaderOptions.value = neInfoStore.getNeCascaderOptions.filter(
|
||||
|
||||
Reference in New Issue
Block a user