Handy_Cao vor 2 Jahren
Ursprung
Commit
6a2b1d3757

+ 0 - 2
src/packages/pc/views/market/trade/swap/detail/listing/index.vue

@@ -94,8 +94,6 @@ const qtyStepList = [1, 5, 10, 20, 30, 50] // 数量步长列表
 const qtyStep = shallowRef(qtyStepList[0]) // 数量步长
 const { maxspread, minspread, marketid, goodsid } = futuresStore.getGoods(props.quoteGoods.goodsid) ?? {}
 
-console.log(maxspread, minspread)
-
 // 商品盘面
 const quote = futuresStore.getGoodsQuote(props.quoteGoods.refgoodsid) ?? {}
 /// 估算价

+ 8 - 11
src/packages/pc/views/market/trade/swap/detail/order/index.vue

@@ -163,22 +163,19 @@ const showComponent = (componentName: string, row: Model.TjmdTradeOrderDetailRsp
     openComponent(componentName)
 }
 
-// 监听行情变动
-watch(() => quote.value, () => {
-    getBuyList()
-    getSellList()
-})
-
 onUnmounted(() => {
     notify.cancel()
 })
 
 // 推送委托回应通知
-const notify = eventBus.$on('OrderRsp', () => {
-    // 获取买大厅数据
-    getBuyList()
-    // 获取卖大厅数据
-    getSellList()
+const notify = eventBus.$on('OrderRsp', (res) => {
+    const rsp = res as Proto.OrderRsp
+    if (rsp.Header.GoodsID === props.goodsId) {
+       // 获取买大厅数据
+        getBuyList()
+        // 获取卖大厅数据
+        getSellList() 
+    }
 })
 
 </script>