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 }" >