From d16d044a7ed81d9281073e8eb6534f6d6b0edbe0 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 1 Nov 2023 15:19:45 +0800 Subject: [PATCH] =?UTF-8?q?style:=20UDM=E9=89=B4=E6=9D=83=E7=AD=BE?= =?UTF-8?q?=E7=BA=A6=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/neUser/auth/index.vue | 99 +++++++++++++++++++++++++++++++-- src/views/neUser/sub/index.vue | 16 +++++- 2 files changed, 110 insertions(+), 5 deletions(-) diff --git a/src/views/neUser/auth/index.vue b/src/views/neUser/auth/index.vue index 8b651f31..f4d08022 100644 --- a/src/views/neUser/auth/index.vue +++ b/src/views/neUser/auth/index.vue @@ -83,36 +83,45 @@ let tableColumns: ColumnsType = [ title: 'IMSI', dataIndex: 'imsi', align: 'center', + fixed: 'left', + width: 5, }, { title: 'AMF', dataIndex: 'amf', align: 'center', + width: 3, }, { title: 'STATUS', dataIndex: 'status', align: 'center', + width: 2, }, { title: 'KI', dataIndex: 'ki', align: 'center', + width: 10, }, { title: 'OPC', dataIndex: 'opc', align: 'center', + width: 10, }, { title: 'ALGO_INDEX', dataIndex: 'algoIndex', align: 'center', + width: 4, }, { title: t('common.operate'), key: 'imsi', align: 'center', + fixed: 'right', + width: 5, }, ]; @@ -236,6 +245,28 @@ const modalStateBatchDelFrom = Form.useForm( }) ); +/** + * 对话框弹出显示为 详情框 + * @param imsi 网元id, 不传为新增 + */ +function fnModalVisibleByVive(imsi: string) { + if (modalState.confirmLoading) return; + const hide = message.loading('正在打开...', 0); + modalState.confirmLoading = true; + const neID = queryParams.neId || '-'; + getAuth(neID, imsi).then(res => { + modalState.confirmLoading = false; + hide(); + if (res.code === RESULT_CODE_SUCCESS) { + modalState.from = Object.assign(modalState.from, res.data); + modalState.title = '查看鉴权信息'; + modalState.visibleByView = true; + } else { + message.error(`获取鉴权信息失败`, 2); + } + }); +} + /** * 对话框弹出显示为 新增或者修改 * @param noticeId 网元id, 不传为新增 @@ -803,11 +834,22 @@ onMounted(() => { :data-source="tableState.data" :size="tableState.size" :pagination="tablePagination" - :scroll="{ x: true, y: 400 }" + :scroll="{ x: 1500, y: 400 }" >