huangbin 4 yıl önce
ebeveyn
işleme
ab03e755cb

+ 2 - 0
src/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_swap/components/delisting/index.vue

@@ -175,6 +175,7 @@ import { FormParam } from './interface';
 import { handleForm, useBlocksPrice, useBlocksNumber } from './setup';
 import { useTodayMargin } from '@/hooks/margin';
 import { getSelectedAccountId } from '@/services/bus/account';
+import Bus from '@/utils/eventBus/index';
 
 export default defineComponent({
     emits: ['cancel', 'update'],
@@ -282,6 +283,7 @@ export default defineComponent({
                 // }
                 requestResultLoadingAndInfo(diaoQiOrder, param, loading, ['摘牌求购成功', '摘牌求购失败:']).then(() => {
                     cancel(true);
+                    Bus.$emit('spotTrade', true);
                 });
             });
         }

+ 2 - 0
src/views/order/commodity_contract/components/commodity_contract_summary/index.vue

@@ -74,6 +74,7 @@ import { useIsDiaoQi, findGoodsCode } from './setup';
 import { getSwapList } from '@/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_swap/setup';
 import { ref } from 'vue';
 import { QueryQuoteGoodsListRsp } from '@/services/go/Tjmd/interface';
+import Bus from '@/utils/eventBus/index';
 
 const tabColumns = [
     {
@@ -226,6 +227,7 @@ export default defineComponent({
                 subscribeAction([...goodsSet]);
             });
         };
+        Bus.$on('spotTrade', queryTableAction);
         // 表格通用逻辑
         const param: ComposeOrderTableParam = {
             queryFn: queryTableAction,