From 296a9ba02b398cb879472169f287af3b50ad7d82 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 21 Jun 2024 20:49:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20UDM=E7=AD=BE=E7=BA=A6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=B7=BB=E5=8A=A0CN=20Type=E5=8F=AF=E9=80=89=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/neUser/sub/index.vue | 53 ++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 6 deletions(-) diff --git a/src/views/neUser/sub/index.vue b/src/views/neUser/sub/index.vue index d901dda1..358aa2aa 100644 --- a/src/views/neUser/sub/index.vue +++ b/src/views/neUser/sub/index.vue @@ -8,6 +8,7 @@ import { ColumnsType } from 'ant-design-vue/lib/table'; import UploadModal from '@/components/UploadModal/index.vue'; import TableColumnsDnd from '@/components/TableColumnsDnd/index.vue'; import useNeInfoStore from '@/store/modules/neinfo'; +import useDictStore from '@/store/modules/dict'; import useI18n from '@/hooks/useI18n'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; import saveAs from 'file-saver'; @@ -25,6 +26,15 @@ import { } from '@/api/neData/udm_sub'; import { uploadFile } from '@/api/tool/file'; const { t } = useI18n(); +const { getDict } = useDictStore(); + +/**字典数据 */ +let dict: { + /**CN Type可选类型 */ + udmSubCNType: DictType[]; +} = reactive({ + udmSubCNType: [], +}); /**网元参数 */ let neOtions = ref[]>([]); @@ -139,6 +149,7 @@ let tableColumns = ref([ { title: 'CN Type', dataIndex: 'cn', + key: 'cn', align: 'center', width: 100, }, @@ -1189,6 +1200,13 @@ function delBigRow(bigIndex: any) { } onMounted(() => { + // 初始字典数据 + Promise.allSettled([getDict('udm_sub_cn_type')]).then(resArr => { + if (resArr[0].status === 'fulfilled') { + dict.udmSubCNType = resArr[0].value; + } + }); + // 获取网元网元列表 useNeInfoStore() .fnNelist() @@ -1234,7 +1252,7 @@ onMounted(() => { @@ -1456,6 +1474,9 @@ onMounted(() => { }" >