feat: 更新getAllNeConfig函数,支持传入neId参数
This commit is contained in:
@@ -5,10 +5,11 @@ import { request } from '@/plugins/http-fetch';
|
|||||||
* @param query 查询参数
|
* @param query 查询参数
|
||||||
* @returns object
|
* @returns object
|
||||||
*/
|
*/
|
||||||
export function getAllNeConfig(neType: string) {
|
export function getAllNeConfig(neType: string, neId: string) {
|
||||||
return request({
|
return request({
|
||||||
url: `/ne/config/list/${neType}`,
|
url: `/ne/config/list/${neType}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: { neId },
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ function fnActiveConfigNode(key: string | number) {
|
|||||||
|
|
||||||
/**查询配置可选属性值列表 */
|
/**查询配置可选属性值列表 */
|
||||||
function fnGetNeConfig() {
|
function fnGetNeConfig() {
|
||||||
const neType = neTypeSelect.value[0];
|
const [neType, neId] = neTypeSelect.value;
|
||||||
if (!neType) {
|
if (!neType) {
|
||||||
message.warning({
|
message.warning({
|
||||||
content: t('views.ne.neConfig.neTypePleace'),
|
content: t('views.ne.neConfig.neTypePleace'),
|
||||||
@@ -220,7 +220,7 @@ function fnGetNeConfig() {
|
|||||||
|
|
||||||
treeState.loading = true;
|
treeState.loading = true;
|
||||||
// 获取数据
|
// 获取数据
|
||||||
getAllNeConfig(neType).then(res => {
|
getAllNeConfig(neType, neId).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||||
const arr = [];
|
const arr = [];
|
||||||
for (const item of res.data) {
|
for (const item of res.data) {
|
||||||
@@ -438,7 +438,11 @@ onMounted(() => {
|
|||||||
<PageContainer>
|
<PageContainer>
|
||||||
<template #content> </template>
|
<template #content> </template>
|
||||||
<template #contentExtra>
|
<template #contentExtra>
|
||||||
<a-button type="primary" @click="fnBaseOpen" v-perms:has="['ne:neConfig:edit']">
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
@click="fnBaseOpen"
|
||||||
|
v-perms:has="['ne:neConfig:edit']"
|
||||||
|
>
|
||||||
Quickly Modify PLMN
|
Quickly Modify PLMN
|
||||||
</a-button>
|
</a-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user