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