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