|
@@ -69,7 +69,7 @@ import { useHolderprice, useProfitloss } from '@/services/bus/holdPosition';
|
|
|
import { queryTradePosition } from '@/services/go/ermcp/order';
|
|
import { queryTradePosition } from '@/services/go/ermcp/order';
|
|
|
import { QueryTradePositionRsp } from '@/services/go/ermcp/order/interface';
|
|
import { QueryTradePositionRsp } from '@/services/go/ermcp/order/interface';
|
|
|
import { getBuyOrSellName, getChannelBuildName } from '@/common/constants/enumsName';
|
|
import { getBuyOrSellName, getChannelBuildName } from '@/common/constants/enumsName';
|
|
|
-import { isInstitution } from '@/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_swap/components/setup';
|
|
|
|
|
|
|
+import { isInvestment } from '@/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_swap/components/setup';
|
|
|
import { useIsDiaoQi, findGoodsCode } from './setup';
|
|
import { useIsDiaoQi, findGoodsCode } from './setup';
|
|
|
import { getSwapList } from '@/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_swap/setup';
|
|
import { getSwapList } from '@/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_swap/setup';
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
@@ -246,7 +246,7 @@ export default defineComponent({
|
|
|
const listing = ['commodity_contract_summary_transfer', 'commodity_contract_summary_settlement'];
|
|
const listing = ['commodity_contract_summary_transfer', 'commodity_contract_summary_settlement'];
|
|
|
// 贸易圈
|
|
// 贸易圈
|
|
|
// 只有机构 才有平仓
|
|
// 只有机构 才有平仓
|
|
|
- const diaoqi = isInstitution() ? ['commodity_contract_summary_deal_closed', 'commodity_contract_summary_order_closed'] : ['commodity_contract_summary_deal_closed'];
|
|
|
|
|
|
|
+ const diaoqi = isInvestment() ? ['commodity_contract_summary_deal_closed', 'commodity_contract_summary_order_closed'] : ['commodity_contract_summary_deal_closed'];
|
|
|
const arr = findGoodsTradeModeById(record.goodsid) === TradeMode.DiaoQi ? diaoqi : listing;
|
|
const arr = findGoodsTradeModeById(record.goodsid) === TradeMode.DiaoQi ? diaoqi : listing;
|
|
|
return btnList.filter((e) => arr.includes(e.code));
|
|
return btnList.filter((e) => arr.includes(e.code));
|
|
|
}
|
|
}
|