|
@@ -70,7 +70,7 @@
|
|
|
<!-- 右键 -->
|
|
<!-- 右键 -->
|
|
|
<contextMenu :contextMenu="contextMenu"
|
|
<contextMenu :contextMenu="contextMenu"
|
|
|
@cancel="closeContext"
|
|
@cancel="closeContext"
|
|
|
- :list="btnList"></contextMenu>
|
|
|
|
|
|
|
+ :list="handleBtnList(selectedRow)"></contextMenu>
|
|
|
<component :is="componentId"
|
|
<component :is="componentId"
|
|
|
v-if="componentId"
|
|
v-if="componentId"
|
|
|
:selectedRow="selectedRow"
|
|
:selectedRow="selectedRow"
|
|
@@ -86,7 +86,7 @@ import { contextMenu, defineAsyncComponent, defineComponent } from '@/common/exp
|
|
|
import { handleDeliveryRelation } from '../setup';
|
|
import { handleDeliveryRelation } from '../setup';
|
|
|
|
|
|
|
|
import { handleSubcriteOnDemandQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration, handleNoneValue } from '@/common/setup/table/tableQuote';
|
|
import { handleSubcriteOnDemandQuote, handleQuotePriceColor, quoteChange, quoteAmplitude, quoteAmplituOfVibration, handleNoneValue } from '@/common/setup/table/tableQuote';
|
|
|
-import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
|
|
|
|
+import { QueryDeliveryRelationReq, QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
import { columnsList } from '../setup';
|
|
import { columnsList } from '../setup';
|
|
|
|
|
|
|
|
import { handleTableEventAndData } from '@/common/setup/table/compose';
|
|
import { handleTableEventAndData } from '@/common/setup/table/compose';
|
|
@@ -95,6 +95,7 @@ import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
|
|
+import { Tradesfer } from './interface';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: EnumRouterName.spot_trade_order_transaction_listing_transfer,
|
|
name: EnumRouterName.spot_trade_order_transaction_listing_transfer,
|
|
@@ -112,21 +113,26 @@ export default defineComponent({
|
|
|
queryFn: () => {},
|
|
queryFn: () => {},
|
|
|
clickName: 'BuyAndSell',
|
|
clickName: 'BuyAndSell',
|
|
|
};
|
|
};
|
|
|
- const btnList: BtnListType[] = [
|
|
|
|
|
- { lable: '挂牌求购', code: 'Listing', className: 'btnDeafault' },
|
|
|
|
|
- { lable: '图表', code: 'BuyAndSell', className: 'btnDeafault' },
|
|
|
|
|
- { lable: '详情', code: 'Detail', className: 'btnDeafault' },
|
|
|
|
|
- // { lable: '买卖大厅', code: 'BuyAndSell', className: 'btnDeafault' },
|
|
|
|
|
- ];
|
|
|
|
|
|
|
+ function handleBtnList(record: Tradesfer) {
|
|
|
|
|
+ const result: BtnListType[] = [
|
|
|
|
|
+ { lable: '挂牌求购', code: 'Listing', className: 'btnDeafault' },
|
|
|
|
|
+ { lable: '图表', code: 'BuyAndSell', className: 'btnDeafault' },
|
|
|
|
|
+ ];
|
|
|
|
|
+ if (record && record.deliverytype) {
|
|
|
|
|
+ result.push({ lable: '详情', code: 'Detail', className: 'btnDeafault' });
|
|
|
|
|
+ }
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const { deliverGoods, getQuoteList, goodsList, findDeilverGoodsByGoodsCode } = handleDeliveryRelation([1, 3]);
|
|
const { deliverGoods, getQuoteList, goodsList, findDeilverGoodsByGoodsCode } = handleDeliveryRelation([1, 3]);
|
|
|
// 行情按需订阅
|
|
// 行情按需订阅
|
|
|
handleSubcriteOnDemandQuote<QueryDeliveryRelationRsp>(deliverGoods);
|
|
handleSubcriteOnDemandQuote<QueryDeliveryRelationRsp>(deliverGoods);
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
isBottom,
|
|
isBottom,
|
|
|
- ...handleTableEventAndData<QueryQuoteDayRsp>(param),
|
|
|
|
|
|
|
+ ...handleTableEventAndData<Tradesfer>(param),
|
|
|
deliverGoods,
|
|
deliverGoods,
|
|
|
- btnList,
|
|
|
|
|
|
|
+ handleBtnList,
|
|
|
handleQuotePriceColor,
|
|
handleQuotePriceColor,
|
|
|
quoteChange,
|
|
quoteChange,
|
|
|
quoteAmplitude,
|
|
quoteAmplitude,
|