调整x轴间距
This commit is contained in:
@@ -9,8 +9,8 @@ import { parseObjLineToHump } from '@/utils/parse-utils';
|
|||||||
*/
|
*/
|
||||||
export async function listBase5G(query: Record<string, any>) {
|
export async function listBase5G(query: Record<string, any>) {
|
||||||
query.nbId = query.id;
|
query.nbId = query.id;
|
||||||
let realName=query.neName.split("_")[0].toLowerCase();
|
const realName=query.neType;
|
||||||
delete query['neName'];
|
//delete query['neName'];
|
||||||
const result = await request({
|
const result = await request({
|
||||||
url: `/api/rest/ueManagement/v1/elementType/${realName}/objectType/nbInfo`,
|
url: `/api/rest/ueManagement/v1/elementType/${realName}/objectType/nbInfo`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ function initPicture() {
|
|||||||
value: [upValue, downValue],
|
value: [upValue, downValue],
|
||||||
};
|
};
|
||||||
|
|
||||||
var color = ['rgba(92, 123, 217', 'rgba(166, 215, 144'];
|
var color = ['rgba(230, 234, 101', 'rgba(92, 123, 217'];
|
||||||
var lineY: any = [];
|
var lineY: any = [];
|
||||||
|
|
||||||
for (var i = 0; i < charts.names.length; i++) {
|
for (var i = 0; i < charts.names.length; i++) {
|
||||||
@@ -201,6 +201,7 @@ function initPicture() {
|
|||||||
formatter: function (params: any) {
|
formatter: function (params: any) {
|
||||||
return params.split(' ')[0] + '\n' + params.split(' ')[1];
|
return params.split(' ')[0] + '\n' + params.split(' ')[1];
|
||||||
},
|
},
|
||||||
|
fontSize:12
|
||||||
},
|
},
|
||||||
axisLine: {
|
axisLine: {
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
@@ -233,6 +234,7 @@ function initPicture() {
|
|||||||
],
|
],
|
||||||
series: lineY,
|
series: lineY,
|
||||||
};
|
};
|
||||||
|
console.log(optionData)
|
||||||
fnDesign(upfFlow.value, optionData);
|
fnDesign(upfFlow.value, optionData);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ let neOtions = ref<Record<string, any>[]>([]);
|
|||||||
let queryParams = reactive({
|
let queryParams = reactive({
|
||||||
/**网元ID */
|
/**网元ID */
|
||||||
neId: undefined,
|
neId: undefined,
|
||||||
/**网元名称 */
|
/**网元类型 */
|
||||||
neName: undefined,
|
neType: undefined,
|
||||||
/**GNB_ID */
|
/**GNB_ID */
|
||||||
id: '',
|
id: '',
|
||||||
/**当前页数 */
|
/**当前页数 */
|
||||||
@@ -169,13 +169,13 @@ onMounted(() => {
|
|||||||
let arr: Record<string, any>[] = [];
|
let arr: Record<string, any>[] = [];
|
||||||
res.data.forEach(i => {
|
res.data.forEach(i => {
|
||||||
if (i.neType === 'AMF' || i.neType === 'MME') {
|
if (i.neType === 'AMF' || i.neType === 'MME') {
|
||||||
arr.push({ value: i.neName, label: i.neName });
|
arr.push({ value: i.neType, label: i.neName });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
neOtions.value = arr;
|
neOtions.value = arr;
|
||||||
if (arr.length > 0) {
|
if (arr.length > 0) {
|
||||||
queryParams.neName = arr[0].value;
|
queryParams.neType = arr[0].value;
|
||||||
queryParams.neId = arr[0].value.split('_')[1];
|
queryParams.neId = arr[0].label.split('_')[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -205,7 +205,7 @@ onMounted(() => {
|
|||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item :label="t('views.neUser.base5G.neType')" name="neId ">
|
<a-form-item :label="t('views.neUser.base5G.neType')" name="neId ">
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="queryParams.neName"
|
v-model:value="queryParams.neType"
|
||||||
:options="neOtions"
|
:options="neOtions"
|
||||||
:placeholder="t('common.selectPlease')"
|
:placeholder="t('common.selectPlease')"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user