123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- import { BasicColumn } from '/src/components/Table';
- import moment from 'moment';
- //列表数据
- export const columns: BasicColumn[] = [
- {
- title: '站点code',
- align: 'left',
- dataIndex: 'code',
- width: '130px',
- },
- {
- title: '客户名',
- align: 'left',
- dataIndex: 'uid_dictText',
- width: '160px',
- },
- {
- title: '渠道商',
- align: 'left',
- dataIndex: 'channelProviderName',
- customRender: function ({ text }) {
- if (text) {
- return text;
- } else {
- return '--';
- }
- },
- },
- {
- title: '站点名称',
- align: 'left',
- dataIndex: 'name',
- },
- {
- title: '站点域名',
- align: 'left',
- dataIndex: 'domain',
- width: '360px',
- },
- {
- title: '订阅套餐',
- align: 'left',
- dataIndex: 'subscribePlan',
- },
- {
- title: '当前状态',
- align: 'left',
- dataIndex: 'status_dictText',
- },
- {
- title: '建站状态',
- align: 'left',
- dataIndex: 'siteCurrentStep',
- },
- {
- title: '建站进度',
- align: 'left',
- dataIndex: 'completeProcess',
- },
- {
- title: '创建时间',
- align: 'left',
- dataIndex: 'ctime',
- },
- {
- title: '预计发布时间',
- align: 'left',
- dataIndex: 'publishTime',
- customRender: function ({ text, record }) {
- return moment(record.ctime).add(1, 'month').format('YYYY-MM-DD');
- },
- },
- {
- title: '实际发布时间',
- align: 'left',
- dataIndex: 'issueTime',
- customRender: function ({ text, record }) {
- return !text ? '-' : text.length > 16 ? text.substr(0, 16) : text;
- },
- },
- {
- title: '到期时间',
- align: 'left',
- dataIndex: 'etime',
- },
- ];
- // 高级查询数据
- export const superQuerySchema = {
- uid: { title: '用户ID,与用户表关联', order: 0, view: 'sel_user', type: 'string' },
- code: {
- title: '站点code,生成6位长度随机码,取值范围[a-z0-9],保证系统唯一',
- order: 1,
- view: 'text',
- type: 'string',
- },
- name: { title: '站点名称', order: 2, view: 'text', type: 'string' },
- domain: { title: '站点域名', order: 3, view: 'text', type: 'string' },
- status: {
- title: '当前状态:0:已删除;1:正常;2:未发布 3:拉取测试站点中 ;4:发布正式站点中 ;5:拉取异常',
- order: 4,
- view: 'number',
- type: 'number',
- },
- etime: { title: '到期时间,默认为ctime+1年', order: 5, view: 'datetime', type: 'string' },
- };
|