| | |
| | | dataIndex: 'stockName', |
| | | align: 'center', |
| | | width: 180, |
| | | scopedSlots: { customRender: 'stockName' }, |
| | | scopedSlots: { customRender: 'stockName' } |
| | | }, |
| | | { |
| | | title: '账户类型', |
| | | dataIndex: 'positionType', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'positionType' }, |
| | | scopedSlots: { customRender: 'positionType' } |
| | | }, |
| | | { |
| | | title: '用户名称(ID)', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return `${row.nickName}(${row.userId})` |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '持仓订单号(ID)', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return `${row.positionSn}(${row.id})` |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '买卖方向', |
| | | dataIndex: 'orderDirection', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'orderDirection' }, |
| | | scopedSlots: { customRender: 'orderDirection' } |
| | | }, |
| | | { |
| | | title: '买入价', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return text.toFixed(2) |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '卖出价', |
| | |
| | | align: 'center', |
| | | customRender: (text, row, index) => { |
| | | return text.toFixed(2) |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '浮动盈亏', |
| | | dataIndex: 'profitAndLose', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'profitAndLose' }, |
| | | scopedSlots: { customRender: 'profitAndLose' } |
| | | }, |
| | | { |
| | | title: '总盈亏', |
| | | dataIndex: 'allProfitAndLose', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'allProfitAndLose' }, |
| | | scopedSlots: { customRender: 'allProfitAndLose' } |
| | | }, |
| | | { |
| | | title: '数量(股)', |
| | | dataIndex: 'orderNum', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '总市值', |
| | | dataIndex: 'orderTotalPrice', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '杠杆倍数', |
| | | dataIndex: 'orderLever', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '手续费', |
| | | dataIndex: 'orderFee', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '印花税', |
| | | dataIndex: 'orderSpread', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '留仓费', |
| | | dataIndex: 'orderStayFee', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '留仓天数', |
| | | dataIndex: 'orderStayDays', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '锁定原因', |
| | | dataIndex: 'lockMsg', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '买入时间', |
| | |
| | | width: 180, |
| | | customRender: (text, row, index) => { |
| | | return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '' |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | 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: { |
| | |
| | | positionSn: '', |
| | | state: 1, |
| | | beginTime: '', |
| | | endTime: '', |
| | | endTime: '' |
| | | }, |
| | | datalist: [], |
| | | agentlist: [], |
| | |
| | | clickitem: {}, |
| | | agentqueryParam: { |
| | | pageNum: 1, |
| | | pageSize: 100, |
| | | }, |
| | | pageSize: 100 |
| | | } |
| | | } |
| | | }, |
| | | created() {}, |
| | |
| | | content: '确认删除平仓单吗?此操作不可恢复', |
| | | onOk() { |
| | | var data = { |
| | | positionId: val, |
| | | positionId: val |
| | | } |
| | | positiondel(data).then((res) => { |
| | | if (res.status == 0) { |
| | |
| | | }, |
| | | onCancel() { |
| | | console.log('Cancel') |
| | | }, |
| | | } |
| | | }) |
| | | }, |
| | | getinit() { |
| | |
| | | positionSn: '', |
| | | state: 1, |
| | | beginTime: '', |
| | | endTime: '', |
| | | endTime: '' |
| | | } |
| | | this.times = [] |
| | | this.getlist() |
| | |
| | | positionSn: '', |
| | | state: 1, |
| | | beginTime: '', |
| | | endTime: '', |
| | | endTime: '' |
| | | } |
| | | this.times = [] |
| | | }, |
| | |
| | | this.queryParam.pageNum = current |
| | | this.queryParam.pageSize = pageSize |
| | | this.getlist() |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |