更改table cell width

master
飘泊客 11 months ago
parent c6b90e1b62
commit 7bdd36e3de

@ -437,7 +437,8 @@ const columns: ProColumns[] = [
{ {
title: '创建日期', title: '创建日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 200 align: 'center',
width: 150
} }
// title: '', // title: '',
// dataIndex: 'operate', // dataIndex: 'operate',

@ -380,12 +380,14 @@ const columns: ProColumns[] = [
{ {
title: '创建日期', title: '创建日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 200 align: 'center',
width: 150
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'operate', dataIndex: 'operate',
width: '50px' align: 'center',
width: 70
// sorter: true // sorter: true
} }
] ]

@ -162,12 +162,12 @@ const columns: ProColumns[] = [
{ {
title: '分发总量', title: '分发总量',
dataIndex: 'distributeNum', dataIndex: 'distributeNum',
width: '120px' width: 120
}, },
{ {
title: '创建日期', title: '创建日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 300, width: 150,
ellipsis: true, ellipsis: true,
align: 'center', align: 'center',
customRender: function ({ record }: any) { customRender: function ({ record }: any) {
@ -180,7 +180,9 @@ const columns: ProColumns[] = [
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'operate' dataIndex: 'operate',
align: 'center',
width: 70
} }
// //
// { // {

@ -234,7 +234,7 @@ const columns: ProColumns[] = [
{ {
title: '创建日期', title: '创建日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 230, width: 150,
align: 'center', align: 'center',
customRender: function ({ record }: any) { customRender: function ({ record }: any) {
if (record.createTime) { if (record.createTime) {
@ -248,7 +248,7 @@ const columns: ProColumns[] = [
key: 'operate', key: 'operate',
title: '操作', title: '操作',
align: 'center', align: 'center',
width: 160, width: 180,
fixed: 'right' fixed: 'right'
} }
] ]

@ -150,7 +150,6 @@ const columns: ProColumns[] = [
title: '号码', title: '号码',
dataIndex: 'nid', dataIndex: 'nid',
width: '120px', width: '120px',
align: 'center',
customRender: function ({ record }: any) { customRender: function ({ record }: any) {
if (record.nid) { if (record.nid) {
return record.nid return record.nid
@ -194,27 +193,28 @@ const columns: ProColumns[] = [
{ {
title: '备注', title: '备注',
dataIndex: 'remark', dataIndex: 'remark',
width: 180,
ellipsis: true, ellipsis: true,
align: 'center' align: 'center'
}, },
{ {
title: '线索日期', title: '线索日期',
dataIndex: 'clueTime', dataIndex: 'clueTime',
width: 180, width: 150,
align: 'center',
ellipsis: true ellipsis: true
}, },
{ {
title: '创建日期', title: '创建日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 180, width: 150,
align: 'center',
ellipsis: true ellipsis: true
}, },
{ {
key: 'operate', key: 'operate',
title: '操作', title: '操作',
align: 'center',
width: 100, width: 100,
align: 'center',
fixed: 'right' fixed: 'right'
} }
// { // {

@ -136,7 +136,7 @@ const columns: ProColumns[] = [
{ {
title: '录入日期', title: '录入日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 230, width: 150,
align: 'center', align: 'center',
customRender: function ({ record }: any) { customRender: function ({ record }: any) {
if (record.createTime) { if (record.createTime) {

@ -161,7 +161,7 @@ const columns: ProColumns[] = [
{ {
title: '录入日期', title: '录入日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 230, width: 150,
align: 'center', align: 'center',
customRender: function ({ record }: any) { customRender: function ({ record }: any) {
if (record.createTime) { if (record.createTime) {
@ -175,7 +175,7 @@ const columns: ProColumns[] = [
key: 'operate', key: 'operate',
title: '操作', title: '操作',
align: 'center', align: 'center',
width: 160, width: 100,
fixed: 'right' fixed: 'right'
} }
] ]

@ -135,7 +135,7 @@ const columns: ProColumns[] = [
{ {
title: '分发日期', title: '分发日期',
dataIndex: 'distributeTime', dataIndex: 'distributeTime',
width: 230, width: 150,
align: 'center', align: 'center',
customRender: function ({ record }: any) { customRender: function ({ record }: any) {
if (record.distributeTime) { if (record.distributeTime) {
@ -148,7 +148,7 @@ const columns: ProColumns[] = [
{ {
title: '录入日期', title: '录入日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 230, width: 150,
align: 'center', align: 'center',
customRender: function ({ record }: any) { customRender: function ({ record }: any) {
if (record.createTime) { if (record.createTime) {
@ -166,7 +166,7 @@ const columns: ProColumns[] = [
key: 'operate', key: 'operate',
title: '操作', title: '操作',
align: 'center', align: 'center',
width: 160, width: 70,
fixed: 'right' fixed: 'right'
} }
] ]

@ -156,14 +156,15 @@ const columns: ProColumns[] = [
{ {
title: '创建日期', title: '创建日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 300, align: 'center',
width: 150,
ellipsis: true ellipsis: true
}, },
{ {
key: 'operate', key: 'operate',
title: '操作', title: '操作',
align: 'center', align: 'center',
width: 150, width: 100,
fixed: 'right' fixed: 'right'
} }
] ]

@ -166,7 +166,7 @@ const columns: ProColumns[] = [
{ {
title: '创建日期', title: '创建日期',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 230, width: 150,
align: 'center', align: 'center',
customRender: function ({ record }: any) { customRender: function ({ record }: any) {
if (record.createTime) { if (record.createTime) {
@ -180,7 +180,7 @@ const columns: ProColumns[] = [
key: 'operate', key: 'operate',
title: '操作', title: '操作',
align: 'center', align: 'center',
width: 180, width: 150,
fixed: 'right' fixed: 'right'
} }
] ]

@ -128,6 +128,7 @@ const columns: ProColumns[] = [
{ {
title: '创建时间', title: '创建时间',
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'center',
width: 150, width: 150,
sorter: true sorter: true
}, },

@ -166,6 +166,7 @@ const columns: ProColumns[] = [
{ {
title: '创建时间', title: '创建时间',
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'center',
width: 150, width: 150,
sorter: true sorter: true
}, },

@ -137,6 +137,7 @@ const columns: ProColumns[] = [
title: '创建时间', title: '创建时间',
dataIndex: 'createTime', dataIndex: 'createTime',
width: 150, width: 150,
align: 'center',
sorter: true sorter: true
}, },
{ {

@ -116,7 +116,7 @@ const columns: ProColumns[] = [
key: 'operate', key: 'operate',
title: '操作', title: '操作',
align: 'center', align: 'center',
width: 50 width: 70
} }
] ]

Loading…
Cancel
Save