1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import { BasicColumn } from '@/components/Table';
- export const columns: BasicColumn[] = [
- {
- title: '序号',
- dataIndex: '',
- key: 'rowIndex',
- width: 60,
- align: 'center',
- customRender: function ({ index }) {
- return parseInt(index) + 1;
- },
- },
- {
- title: '站点名称',
- align: 'center',
- dataIndex: 'siteName',
- },
- {
- title: '关键词',
- align: 'center',
- dataIndex: 'word',
- },
- {
- title: '黑白名单',
- align: 'center',
- dataIndex: 'blackOrWhite',
- width: 180,
- sorter: true,
- },
- {
- title: '询盘数量',
- align: 'center',
- dataIndex: 'wasteEnquiryNum',
- },
- {
- title: '创建日期',
- align: 'center',
- dataIndex: 'createTime',
- customRender: function ({ text }) {
- return !text ? '' : text.length > 10 ? text.substr(0, 10) : text;
- },
- },
- ];
|