|
@@ -3,7 +3,7 @@
|
|
|
<app-modal direction="right" height="100%" v-model:show="showModal" :refresh="refresh">
|
|
<app-modal direction="right" height="100%" v-model:show="showModal" :refresh="refresh">
|
|
|
<app-view class="g-form">
|
|
<app-view class="g-form">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
- <app-navbar title="掉期持仓-平仓" @back="closed" />
|
|
|
|
|
|
|
+ <app-navbar title="掉期持仓-明细" @back="closed" />
|
|
|
</template>
|
|
</template>
|
|
|
<div style="padding: 0.15rem 0.2rem; color: #333;">
|
|
<div style="padding: 0.15rem 0.2rem; color: #333;">
|
|
|
<span>商品:{{ selectedRow.goodsname }}/{{ selectedRow.goodscode }}</span>
|
|
<span>商品:{{ selectedRow.goodsname }}/{{ selectedRow.goodscode }}</span>
|
|
@@ -50,7 +50,7 @@
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="g-order-list__btnbar">
|
|
<div class="g-order-list__btnbar">
|
|
|
- <Button size="small" @click="onCloseSubmit(item)" round>平仓</Button>
|
|
|
|
|
|
|
+ <Button size="small" v-if="useStore.userType === 5" @click="onCloseSubmit(item)" round>平仓</Button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -69,7 +69,7 @@ import { getBuyOrSellName } from '@/constants/order'
|
|
|
import { formatDate, formatDecimal, handleRequestBigNumber, handlePriceColor } from '@/filters'
|
|
import { formatDate, formatDecimal, handleRequestBigNumber, handlePriceColor } from '@/filters'
|
|
|
import { useHolderClose } from '@/business/trade'
|
|
import { useHolderClose } from '@/business/trade'
|
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
|
-import { useFuturesStore } from '@/stores'
|
|
|
|
|
|
|
+import { useFuturesStore, useUserStore } from '@/stores'
|
|
|
import { BuyOrSell } from '@/constants/order'
|
|
import { BuyOrSell } from '@/constants/order'
|
|
|
import quoteSocket from '@/services/websocket/quote'
|
|
import quoteSocket from '@/services/websocket/quote'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
@@ -82,7 +82,7 @@ const showModal = shallowRef(true)
|
|
|
const refresh = shallowRef(false)
|
|
const refresh = shallowRef(false)
|
|
|
const error = shallowRef(false)
|
|
const error = shallowRef(false)
|
|
|
const subscribe = quoteSocket.createSubscribe()
|
|
const subscribe = quoteSocket.createSubscribe()
|
|
|
-
|
|
|
|
|
|
|
+const useStore = useUserStore()
|
|
|
const { holderCloseSubmit, formData } = useHolderClose()
|
|
const { holderCloseSubmit, formData } = useHolderClose()
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|