| | |
| | | { |
| | | title: '类型名称', |
| | | dataIndex: 'typeName', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '单位', |
| | | dataIndex: 'unit', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '开始区间', |
| | | dataIndex: 'startInterval', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '值', |
| | | dataIndex: 'zhi', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'zhi' }, |
| | | scopedSlots: { customRender: 'zhi' } |
| | | }, |
| | | { |
| | | title: '结束区间', |
| | | dataIndex: 'endInterval', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '点差费率', |
| | | dataIndex: 'spreadRate', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'spreadRate' }, |
| | | scopedSlots: { customRender: 'spreadRate' } |
| | | }, |
| | | { |
| | | title: '添加时间', |
| | |
| | | width: 180, |
| | | customRender: (text, row, index) => { |
| | | return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '' |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 150, |
| | | scopedSlots: { customRender: 'action' }, |
| | | }, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | // 表头 |
| | | pagination: { |
| | |
| | | pageSizeOptions: ['10', '20', '50', '100'], // 每页中显示的数据 |
| | | onShowSizeChange: (current, pageSize) => this.onSizeChange(current, pageSize), // 改变每页数量时更新显示 |
| | | onChange: (page, pageSize) => this.onPageChange(page, pageSize), // 点击页码事件 |
| | | showTotal: (total) => `共有 ${total} 条数据`, // 分页中显示总的数据 |
| | | showTotal: (total) => `共有 ${total} 条数据` // 分页中显示总的数据 |
| | | }, |
| | | loading: false, |
| | | queryParam: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | typeName: undefined, |
| | | typeName: undefined |
| | | }, |
| | | datalist: [], |
| | | |
| | |
| | | addUserform: this.$form.createForm(this), |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 7 }, |
| | | sm: { span: 7 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 13 }, |
| | | sm: { span: 13 } |
| | | }, |
| | | fields: ['typeName', 'unit', 'startInterval', 'endInterval', 'spreadRate'], |
| | | currentDetails: '', |
| | | currentDetails: '' |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.queryParam = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | typeName: undefined, |
| | | typeName: undefined |
| | | } |
| | | }, |
| | | getlist() { |
| | |
| | | this.queryParam.pageNum = current |
| | | this.queryParam.pageSize = pageSize |
| | | this.getlist() |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |