@@ -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) ?? {}
/// 估算价
@@ -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', () => {
- // 获取买大厅数据
- // 获取卖大厅数据
+const notify = eventBus.$on('OrderRsp', (res) => {
+ const rsp = res as Proto.OrderRsp
+ if (rsp.Header.GoodsID === props.goodsId) {
+ // 获取买大厅数据
+ getBuyList()
+ // 获取卖大厅数据
+ getSellList()
+ }
</script>