From abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 07 May 2024 10:19:31 +0800
Subject: [PATCH] xxx
---
src/views/position/components/futures-flat.vue | 90 ++++++++++++++++++++++----------------------
1 files changed, 45 insertions(+), 45 deletions(-)
diff --git a/src/views/position/components/futures-flat.vue b/src/views/position/components/futures-flat.vue
index 1c00086..375f395 100644
--- a/src/views/position/components/futures-flat.vue
+++ b/src/views/position/components/futures-flat.vue
@@ -60,7 +60,7 @@
icon="search"
style="margin-left: 8px"
@click=";(queryParam.pageNum = 1), getlist()"
- >查询
+ >查询
</a-button>
</span>
</a-form-item>
@@ -152,8 +152,8 @@
clickitem.now_price - clickitem.buyOrderPrice > 0
? 'reds'
: clickitem.now_price - clickitem.buyOrderPrice < 0
- ? 'greens'
- : ''
+ ? 'greens'
+ : ''
"
>
{{ clickitem.now_price }}
@@ -224,7 +224,7 @@
import moment from 'moment'
export default {
name: 'Setting',
- data() {
+ data () {
return {
columns: [
{
@@ -234,13 +234,13 @@
width: 180,
customRender: (text, row, index) => {
return `${row.futuresName}(${row.futuresCode})`
- },
+ }
},
{
title: '账户类型',
dataIndex: 'positionType',
align: 'center',
- scopedSlots: { customRender: 'positionType' },
+ scopedSlots: { customRender: 'positionType' }
},
{
title: '用户名称(ID)',
@@ -248,7 +248,7 @@
align: 'center',
customRender: (text, row, index) => {
return `${row.realName}(${row.userId})`
- },
+ }
},
{
title: '持仓订单号(ID)',
@@ -256,13 +256,13 @@
align: 'center',
customRender: (text, row, index) => {
return `${row.positionSn}(${row.id})`
- },
+ }
},
{
title: '买卖方向',
dataIndex: 'orderDirection',
align: 'center',
- scopedSlots: { customRender: 'orderDirection' },
+ scopedSlots: { customRender: 'orderDirection' }
},
{
title: '买入点数',
@@ -270,34 +270,34 @@
align: 'center',
customRender: (text, row, index) => {
return text.toFixed(2)
- },
+ }
},
{
title: '卖出点数',
dataIndex: 'sellOrderPrice',
- align: 'center',
+ align: 'center'
},
{
title: '保证金(CNY)',
dataIndex: 'allDepositAmt',
- align: 'center',
+ align: 'center'
},
{
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: '每标准手',
@@ -305,7 +305,7 @@
align: 'center',
customRender: (text, row, index) => {
return row.futuresStandard + row.futuresUnit
- },
+ }
},
{
title: '手续费',
@@ -313,7 +313,7 @@
align: 'center',
customRender: (text, row, index) => {
return `${row.orderFee} ${row.coinCode} ≈ ${(row.orderFee * row.coinRate).toFixed(2)} CNY`
- },
+ }
},
{
title: '当前汇率',
@@ -321,12 +321,12 @@
align: 'center',
customRender: (text, row, index) => {
return `1${row.coinCode} ≈ ${row.coinRate}CNY`
- },
+ }
},
{
title: '锁定原因',
dataIndex: 'lockMsg',
- align: 'center',
+ align: 'center'
},
{
title: '买入时间',
@@ -335,7 +335,7 @@
width: 180,
customRender: (text, row, index) => {
return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
- },
+ }
},
{
title: '卖出时间',
@@ -344,7 +344,7 @@
width: 180,
customRender: (text, row, index) => {
return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
- },
+ }
},
{
title: '操作',
@@ -352,8 +352,8 @@
align: 'center',
fixed: 'right',
width: 150,
- scopedSlots: { customRender: 'action' },
- },
+ scopedSlots: { customRender: 'action' }
+ }
],
// 表头
pagination: {
@@ -363,7 +363,7 @@
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: {
@@ -375,7 +375,7 @@
positionSn: '',
state: 1,
beginTime: '',
- endTime: '',
+ endTime: ''
},
datalist: [],
agentlist: [],
@@ -385,24 +385,24 @@
clickitem: {},
agentqueryParam: {
pageNum: 1,
- pageSize: 100,
- },
+ pageSize: 100
+ }
}
},
- created() {},
+ created () {},
methods: {
- getFuturesdetails(item) {
+ getFuturesdetails (item) {
this.clickitem = item
this.futuresDialog = true
},
- getDelflat(val) {
+ getDelflat (val) {
var that = this
this.$confirm({
title: '提示',
content: '确认删除平仓单吗?此操作不可恢复',
- onOk() {
+ onOk () {
var data = {
- positionId: val,
+ positionId: val
}
futurespositiondel(data).then((res) => {
if (res.status == 0) {
@@ -413,12 +413,12 @@
}
})
},
- onCancel() {
+ onCancel () {
console.log('Cancel')
- },
+ }
})
},
- getinit() {
+ getinit () {
this.queryParam = {
pageNum: 1,
pageSize: 10,
@@ -428,12 +428,12 @@
positionSn: '',
state: 1,
beginTime: '',
- endTime: '',
+ endTime: ''
}
this.times = []
this.getlist()
},
- getqueryParam() {
+ getqueryParam () {
this.queryParam = {
pageNum: 1,
pageSize: 10,
@@ -443,15 +443,15 @@
positionSn: '',
state: 1,
beginTime: '',
- endTime: '',
+ endTime: ''
}
this.times = []
},
- onChangeRangeDate(value, dateString) {
+ onChangeRangeDate (value, dateString) {
this.queryParam.beginTime = dateString[0]
this.queryParam.endTime = dateString[1]
},
- getagentlist() {
+ getagentlist () {
var that = this
this.agentloading = true
nextagent(this.agentqueryParam).then((res) => {
@@ -461,7 +461,7 @@
}, 500)
})
},
- getlist() {
+ getlist () {
this.loading = true
futurespositionlist(this.queryParam).then((res) => {
this.datalist = res.data.list
@@ -469,16 +469,16 @@
this.loading = false
})
},
- onPageChange(page, pageSize) {
+ onPageChange (page, pageSize) {
this.queryParam.pageNum = page
this.getlist()
},
- onSizeChange(current, pageSize) {
+ onSizeChange (current, pageSize) {
this.queryParam.pageNum = current
this.queryParam.pageSize = pageSize
this.getlist()
- },
- },
+ }
+ }
}
</script>
<style scoped>
--
Gitblit v1.9.3