From a26301af1ecc1cbee2267b46a1db830b3f03072f Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Tue, 18 Jun 2024 16:38:30 +0800 Subject: [PATCH] =?UTF-8?q?UE=E5=9C=A8=E7=BA=BF=E4=BF=A1=E6=81=AF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9A=94=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/neUser/ue/index.vue | 43 ++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/src/views/neUser/ue/index.vue b/src/views/neUser/ue/index.vue index 587e85a1..948a8685 100644 --- a/src/views/neUser/ue/index.vue +++ b/src/views/neUser/ue/index.vue @@ -9,6 +9,9 @@ import { listUEInfoBySMF } from '@/api/neUser/smf'; import useNeInfoStore from '@/store/modules/neinfo'; import useI18n from '@/hooks/useI18n'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; +import TableColumnsDnd from '@/components/TableColumnsDnd/index.vue'; +import useUserStore from '@/store/modules/user'; + const { t } = useI18n(); /**网元参数 */ @@ -22,6 +25,8 @@ let queryParams = reactive({ imsi: '', /**msisdn */ msisdn: '', + /** 租户名称*/ + tenantName: '', /**当前页数 */ pageNum: 1, /**每页条数 */ @@ -33,6 +38,7 @@ function fnQueryReset() { queryParams = Object.assign(queryParams, { imsi: '', msisdn: '', + tenantName: '', pageNum: 1, pageSize: 20, }); @@ -118,6 +124,13 @@ let tableColumns: ColumnsType = [ }, width: 150, }, + { + title: 'Tenant Name', + dataIndex: 'tenantName', + align: 'center', + key: 'tenantName', + width: 150, + }, { title: t('common.operate'), key: 'imsi', @@ -125,6 +138,9 @@ let tableColumns: ColumnsType = [ }, ]; +/**表格字段列排序 */ +let tableColumnsDnd = ref([]); + /**表格分页器参数 */ let tablePagination = reactive({ /**当前页数 */ @@ -274,6 +290,14 @@ onMounted(() => { } }) .finally(() => { + if (useUserStore().roles.includes('tenant')) { + const operateColumnIndex = tableColumns.findIndex( + column => column.key === 'tenantName' + ); + if (operateColumnIndex !== -1) { + tableColumns.splice(operateColumnIndex, 1); + } + } // 获取列表数据 fnGetList(); }); @@ -310,6 +334,18 @@ onMounted(() => { + + + + + + @@ -350,6 +386,11 @@ onMounted(() => { + @@ -381,7 +422,7 @@ onMounted(() => {