From 289fc5744145044f7dc25b966fad2609806542de Mon Sep 17 00:00:00 2001
From: TsMask <340112800@qq.com>
Date: Mon, 18 Sep 2023 12:03:48 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E9=85=8D=E7=BD=AE=E7=AE=A1=E7=90=86>?=
=?UTF-8?q?=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/configManage/configParam.ts | 30 +
src/views/configManage/configParam/index.vue | 718 +++----------------
2 files changed, 111 insertions(+), 637 deletions(-)
diff --git a/src/api/configManage/configParam.ts b/src/api/configManage/configParam.ts
index 23fef755..cd2fee16 100644
--- a/src/api/configManage/configParam.ts
+++ b/src/api/configManage/configParam.ts
@@ -2,6 +2,36 @@ import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { request } from '@/plugins/http-fetch';
import { parseObjLineToHump } from '@/utils/parse-utils';
+/**
+ * 查询配置参数标签栏
+ * @param neType 网元类型
+ * @returns object
+ */
+export async function getParamConfigTopTab(neType : string ) {
+ // 发起请求
+ const result = await request({
+ url: `/databaseManagement/v1/elementType/omc_db/objectType/param_config`,
+ method: 'get',
+ params: {
+ SQL: `SELECT top_display,top_tag FROM param_config WHERE ne_type = '${neType}'`,
+ },
+ });
+ // 解析数据
+ if (result.code === RESULT_CODE_SUCCESS && Array.isArray(result.data.data)) {
+ let data = result.data.data[0];
+ data = data['param_config']
+ if(Array.isArray(data)){
+ return Object.assign(result, {
+ data: parseObjLineToHump(data),
+ });
+ }
+ return Object.assign(result, {
+ data: [],
+ });
+ }
+ return result;
+}
+
/**
* 查询网元列表
* @param query 查询参数
diff --git a/src/views/configManage/configParam/index.vue b/src/views/configManage/configParam/index.vue
index 883addb4..1f0d1b69 100644
--- a/src/views/configManage/configParam/index.vue
+++ b/src/views/configManage/configParam/index.vue
@@ -1,21 +1,13 @@
- {{ value }}
+
-
+
- {{ t('common.search') }}
-
-
-
- {{ t('common.reset') }}
+ {{ t('common.ok') }}
@@ -425,283 +119,33 @@ onMounted(() => {
-
+
-
+
{{ t('common.addText') }}
-
-
-
-
- {{ t('common.searchBarText') }}
-
-
-
- {{ t('common.reloadText') }}
-
-
-
-
-
- {{ t('common.sizeText') }}
-
-
-
-
-
-
- {{
- t('common.size.default')
- }}
- {{
- t('common.size.middle')
- }}
- {{
- t('common.size.small')
- }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ t('common.editText') }}
-
-
-
-
-
- {{ t('common.deleteText') }}
-
-
-
-
-
-
-
-
+
+
+ Content of tab {{ tab.topDisplay }}
+
+
+
-
-
-
-
-
-
-
-
-
-
- 填写创建的网元类型,如:SMF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PNF
-
-
- VNF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 最大范围0~65535
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 能够定位网元的物理地址(MAC)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-