feat: 基站状态页面添加租户名显示列
This commit is contained in:
@@ -125,7 +125,7 @@ let tableColumns = ref<ColumnsType>([
|
||||
dataIndex: 'address',
|
||||
align: 'left',
|
||||
resizable: true,
|
||||
width: 100,
|
||||
width: 150,
|
||||
minWidth: 100,
|
||||
maxWidth: 200,
|
||||
},
|
||||
@@ -134,7 +134,7 @@ let tableColumns = ref<ColumnsType>([
|
||||
dataIndex: 'nbName',
|
||||
align: 'left',
|
||||
resizable: true,
|
||||
width: 100,
|
||||
width: 150,
|
||||
minWidth: 100,
|
||||
maxWidth: 200,
|
||||
},
|
||||
@@ -143,9 +143,9 @@ let tableColumns = ref<ColumnsType>([
|
||||
dataIndex: 'ueNum',
|
||||
align: 'left',
|
||||
resizable: true,
|
||||
width: 80,
|
||||
minWidth: 80,
|
||||
maxWidth: 120,
|
||||
width: 120,
|
||||
minWidth: 100,
|
||||
maxWidth: 200,
|
||||
},
|
||||
{
|
||||
title: t('views.neData.baseStation.state'),
|
||||
@@ -160,7 +160,7 @@ let tableColumns = ref<ColumnsType>([
|
||||
{
|
||||
title: t('views.neData.baseStation.time'),
|
||||
align: 'left',
|
||||
width: 150,
|
||||
width: 200,
|
||||
customRender(opt) {
|
||||
const record = opt.value;
|
||||
if (record.state === 'OFF') {
|
||||
@@ -169,6 +169,11 @@ let tableColumns = ref<ColumnsType>([
|
||||
return record.onTime || '-';
|
||||
},
|
||||
},
|
||||
{
|
||||
title: t('views.dashboard.cdr.tenantName'),
|
||||
dataIndex: 'tenantName',
|
||||
align: 'left',
|
||||
},
|
||||
]);
|
||||
|
||||
/**表格分页器参数 */
|
||||
@@ -491,6 +496,7 @@ function fnExportList() {
|
||||
}
|
||||
});
|
||||
data[t('views.neData.baseStation.time')] = row.time || '-';
|
||||
data[t('views.dashboard.cdr.tenantName')] = row.tenantName || '-';
|
||||
dataArr.push(data);
|
||||
}
|
||||
|
||||
@@ -504,6 +510,7 @@ function fnExportList() {
|
||||
t('views.neData.baseStation.ueNum'),
|
||||
t('views.neData.baseStation.state'),
|
||||
t('views.neData.baseStation.time'),
|
||||
t('views.dashboard.cdr.tenantName'),
|
||||
],
|
||||
}).then(fileBlob =>
|
||||
saveAs(fileBlob, `nb_state_records_export_${Date.now()}.xlsx`)
|
||||
@@ -728,7 +735,11 @@ onMounted(() => {
|
||||
<a-col :lg="6" :md="12" :xs="24">
|
||||
<a-form-item>
|
||||
<a-space :size="8">
|
||||
<a-button type="primary" @click.prevent="fnGetList()" v-perms:has="['nedata:basestation:search']">
|
||||
<a-button
|
||||
type="primary"
|
||||
@click.prevent="fnGetList()"
|
||||
v-perms:has="['nedata:basestation:search']"
|
||||
>
|
||||
<template #icon><SearchOutlined /></template>
|
||||
{{ t('common.search') }}
|
||||
</a-button>
|
||||
@@ -747,7 +758,11 @@ onMounted(() => {
|
||||
<!-- 插槽-卡片左侧侧 -->
|
||||
<template #title>
|
||||
<a-space :size="8" align="center">
|
||||
<a-button type="primary" @click.prevent="fnModalVisibleByEdit()" v-perms:has="['nedata:basestation:add']">
|
||||
<a-button
|
||||
type="primary"
|
||||
@click.prevent="fnModalVisibleByEdit()"
|
||||
v-perms:has="['nedata:basestation:add']"
|
||||
>
|
||||
<template #icon>
|
||||
<PlusOutlined />
|
||||
</template>
|
||||
@@ -774,15 +789,27 @@ onMounted(() => {
|
||||
<template #icon><DeleteOutlined /></template>
|
||||
{{ t('common.deleteText') }}
|
||||
</a-button>
|
||||
<a-button type="dashed" @click.prevent="fnModalImportOpen()" v-perms:has="['nedata:basestation:import']">
|
||||
<a-button
|
||||
type="dashed"
|
||||
@click.prevent="fnModalImportOpen()"
|
||||
v-perms:has="['nedata:basestation:import']"
|
||||
>
|
||||
<template #icon><ImportOutlined /></template>
|
||||
{{ t('common.import') }}
|
||||
</a-button>
|
||||
<a-button type="dashed" @click.prevent="fnExportList()" v-perms:has="['nedata:basestation:export']">
|
||||
<a-button
|
||||
type="dashed"
|
||||
@click.prevent="fnExportList()"
|
||||
v-perms:has="['nedata:basestation:export']"
|
||||
>
|
||||
<template #icon><ExportOutlined /></template>
|
||||
{{ t('common.export') }}
|
||||
</a-button>
|
||||
<a-button type="default" @click.prevent="fnHistoryView()" v-perms:has="['nedata:basestation:history']">
|
||||
<a-button
|
||||
type="default"
|
||||
@click.prevent="fnHistoryView()"
|
||||
v-perms:has="['nedata:basestation:history']"
|
||||
>
|
||||
<template #icon><ContainerOutlined /></template>
|
||||
{{ t('views.neData.baseStation.history') }}
|
||||
</a-button>
|
||||
@@ -836,7 +863,7 @@ onMounted(() => {
|
||||
selectedRowKeys: tableState.selectedRowKeys,
|
||||
onChange: fnTableSelectedRowKeys,
|
||||
}"
|
||||
:scroll="{ x: tableColumns.length * 120, y: 'calc(100vh - 480px)' }"
|
||||
:scroll="{ x: tableColumns.length * 150, y: 'calc(100vh - 480px)' }"
|
||||
@resizeColumn="(w:number, col:any) => (col.width = w)"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
|
||||
Reference in New Issue
Block a user