UNPKG

ttk-app-core

Version:
48 lines (47 loc) 1.37 kB
import React from 'react' /** * * @param {number} type 展示类型 */ export default function renderColumns() { let columns = [{ title: '序号', name: 'rowNo', dataIndex: 'rowNo', key: 'rowNo', render: (text, record, index) => { return <span > { index + 1 } < /span> } }, { title: '资产类别', name: 'assetClassName', dataIndex: 'assetClassName', key: 'assetClassName' }, { title: '资产原值', name: 'origValueStr', dataIndex: 'origValueStr', key: 'origValueStr' }, { title: '本期折旧', name: 'accuDepreciationStr', dataIndex: 'accuDepreciationStr', key: 'accuDepreciationStr' }, { title: '年初至本期折旧', name: 'yearBeginingToThePeriodDepreciationStr', dataIndex: 'yearBeginingToThePeriodDepreciationStr', key: 'yearBeginingToThePeriodDepreciationStr' }, { title: '累计折旧', name: 'queryPeriodDepreciationStr', dataIndex: 'queryPeriodDepreciationStr', key: 'queryPeriodDepreciationStr' }, { title: '资产净值', name: 'netWorthStr', dataIndex: 'netWorthStr', key: 'netWorthStr' }] return columns }