import moment from 'moment'
moment.locale('zh-cn')
return [{
        title: '产品',
        dataIndex: 'objPortfolio.portfolioName'
      }, {
        title: '更新时间',
        dataIndex: 'updateTime',
        customRender: (text, row, index) => {
          return moment(text).format('YYYY-MM-DD HH:mm:ss')
        },
        sorter: true,
        sortOrder: sortedInfo.columnKey === 'updateTime' && sortedInfo.order
      }, {
        title: '修改',
        dataIndex: 'operation',
        scopedSlots: { customRender: 'operation' },
        fixed: 'right',
        width: 120
      }]

 

Logo

前往低代码交流专区

更多推荐