|
|
@@ -62,7 +62,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, computed, watch, onMounted } from 'vue'
|
|
|
+import { shallowRef, computed, watch, onMounted, onUnmounted } from 'vue'
|
|
|
import { ElMessage, ElMessageBox, FormInstance, FormRules } from 'element-plus'
|
|
|
import { EPriceMode, EListingSelectType, EDelistingType, EBuildType, EValidType } from '@/constants/client'
|
|
|
import { BuyOrSell, getBuyOrSellList } from '@/constants/order'
|
|
|
@@ -72,6 +72,7 @@ import { useOrder } from '@/business/trade'
|
|
|
import { useFuturesStore, useSettingStore, i18n } from '@/stores'
|
|
|
import Forex from '@pc/components/modules/quote/forex/index.vue'
|
|
|
import Icon from '@pc/components/base/icon/index.vue'
|
|
|
+import eventBus from '@/services/bus'
|
|
|
|
|
|
const settingStore = useSettingStore()
|
|
|
const futuresStore = useFuturesStore()
|
|
|
@@ -259,6 +260,16 @@ onMounted(() => {
|
|
|
formData.OrderPrice = getOrderPrice()
|
|
|
formData.OrderQty = qtyStep.value
|
|
|
})
|
|
|
+
|
|
|
+// 接收委托回应通知
|
|
|
+const orderRspNotify = eventBus.$on('PosChangedNtf', () => {
|
|
|
+ getMineTradePositionExs()
|
|
|
+})
|
|
|
+
|
|
|
+onUnmounted(() => {
|
|
|
+ orderRspNotify.cancel()
|
|
|
+})
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|