fix: cbc表格列宽设置
This commit is contained in:
@@ -51,7 +51,7 @@ let queryParams = reactive({
|
||||
function fnQueryReset() {
|
||||
queryParams = Object.assign(queryParams, {
|
||||
eventName: '',
|
||||
status: '',
|
||||
status: undefined,
|
||||
sortField: 'id',
|
||||
sortOrder: 'asc',
|
||||
pageNum: 1,
|
||||
@@ -98,7 +98,7 @@ let tableColumns: ColumnsType = [
|
||||
title: t('views.cbc.cbe.eventName'),
|
||||
dataIndex: 'messageJson',
|
||||
align: 'left',
|
||||
width: 150,
|
||||
width: 100,
|
||||
customRender(opt) {
|
||||
const messageJson = opt.value;
|
||||
return messageJson.eventName;
|
||||
@@ -108,7 +108,7 @@ let tableColumns: ColumnsType = [
|
||||
title: t('views.cbc.cbe.repetitionPeriod'),
|
||||
dataIndex: 'messageJson',
|
||||
align: 'left',
|
||||
width: 150,
|
||||
width: 100,
|
||||
customRender(opt) {
|
||||
const messageJson = opt.value;
|
||||
return messageJson.repetitionPeriod;
|
||||
@@ -118,7 +118,7 @@ let tableColumns: ColumnsType = [
|
||||
title: t('views.cbc.cbe.numOfBcast'),
|
||||
dataIndex: 'messageJson',
|
||||
align: 'left',
|
||||
width: 150,
|
||||
width: 100,
|
||||
customRender(opt) {
|
||||
const messageJson = opt.value;
|
||||
return messageJson.numOfBcast;
|
||||
@@ -128,7 +128,7 @@ let tableColumns: ColumnsType = [
|
||||
title: t('views.cbc.cbe.startTime'),
|
||||
dataIndex: 'messageJson',
|
||||
align: 'left',
|
||||
width: 250,
|
||||
width: 150,
|
||||
customRender(opt) {
|
||||
const messageJson = opt.value;
|
||||
return messageJson.startTime;
|
||||
@@ -145,14 +145,14 @@ let tableColumns: ColumnsType = [
|
||||
title: t('views.cbc.cbe.detail'),
|
||||
dataIndex: 'detail',
|
||||
align: 'center',
|
||||
width: 250,
|
||||
width: 150,
|
||||
},
|
||||
|
||||
{
|
||||
title: t('views.cbc.cbe.createdAt'),
|
||||
dataIndex: 'createdAt',
|
||||
align: 'center',
|
||||
width: 250,
|
||||
width: 200,
|
||||
customRender(opt) {
|
||||
if (!opt.value) return '';
|
||||
return parseDateToStr(opt.value / 1000);
|
||||
@@ -161,13 +161,11 @@ let tableColumns: ColumnsType = [
|
||||
{
|
||||
title: t('common.operate'),
|
||||
key: 'cbeId',
|
||||
width: 100,
|
||||
align: 'left',
|
||||
},
|
||||
];
|
||||
|
||||
/**表格字段列排序 */
|
||||
let tableColumnsDnd = ref<ColumnsType>([]);
|
||||
|
||||
/**表格分页器参数 */
|
||||
let tablePagination = reactive({
|
||||
/**当前页数 */
|
||||
@@ -1017,12 +1015,6 @@ onMounted(() => {
|
||||
:pagination="tablePagination"
|
||||
:scroll="{ y: 'calc(100vh - 480px)' }"
|
||||
@change="fnTableChange"
|
||||
@resizeColumn="(w: number, col: any) => (col.width = w)"
|
||||
:row-selection="{
|
||||
type: 'checkbox',
|
||||
selectedRowKeys: tableState.selectedRowKeys,
|
||||
onChange: fnTableSelectedRowKeys,
|
||||
}"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'cbeId'">
|
||||
|
||||
Reference in New Issue
Block a user