|
@@ -2,20 +2,27 @@
|
|
|
<!-- 成交 -->
|
|
<!-- 成交 -->
|
|
|
<section>
|
|
<section>
|
|
|
<a-table :columns="columns"
|
|
<a-table :columns="columns"
|
|
|
- class="srcollYTable"
|
|
|
|
|
- :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }"
|
|
|
|
|
|
|
+ class="srcollYTable expandLeftTable"
|
|
|
|
|
+ :scroll="{ x: '100%', y: '227px' }"
|
|
|
:pagination="false"
|
|
:pagination="false"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
:expandedRowKeys="expandedRowKeys"
|
|
:expandedRowKeys="expandedRowKeys"
|
|
|
:customRow="Rowclick"
|
|
:customRow="Rowclick"
|
|
|
|
|
+ :expandIcon="expandIcon"
|
|
|
|
|
+ :expandIconAsCell="false"
|
|
|
rowKey="key"
|
|
rowKey="key"
|
|
|
:data-source="tableList">
|
|
:data-source="tableList">
|
|
|
<!-- 额外的展开行 -->
|
|
<!-- 额外的展开行 -->
|
|
|
<template #expandedRowRender="{ record }">
|
|
<template #expandedRowRender="{ record }">
|
|
|
<BtnList :btnList="btnList"
|
|
<BtnList :btnList="btnList"
|
|
|
:record="record"
|
|
:record="record"
|
|
|
|
|
+ class="btn-list-sticky"
|
|
|
@click="openComponent" />
|
|
@click="openComponent" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <!-- 挂牌类型 -->
|
|
|
|
|
+ <template #wrtradetype="{ record }">
|
|
|
|
|
+ <a>{{ getWrOrderTypeName(record.buyorsell, record.wrtradetype) }}</a>
|
|
|
|
|
+ </template>
|
|
|
</a-table>
|
|
</a-table>
|
|
|
<component :is="componentId"
|
|
<component :is="componentId"
|
|
|
v-if="componentId"
|
|
v-if="componentId"
|
|
@@ -32,6 +39,9 @@ import { QueryWrSpecialMatchOrderReq, WrSpecialMatchOrder } from '@/services/go/
|
|
|
import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
|
import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
|
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
|
|
|
+import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
|
|
+import { getWrOrderTypeName } from '@/common/constants/enumsName';
|
|
|
|
|
+
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: enumOrderComponents.spot_warrant_deal,
|
|
name: enumOrderComponents.spot_warrant_deal,
|
|
|
components: {
|
|
components: {
|
|
@@ -53,10 +63,31 @@ export default defineComponent({
|
|
|
tableName: 'table_pcweb_spot_trade_bottom_spot_warrant_deal',
|
|
tableName: 'table_pcweb_spot_trade_bottom_spot_warrant_deal',
|
|
|
recordList: getRecordItemTab(),
|
|
recordList: getRecordItemTab(),
|
|
|
};
|
|
};
|
|
|
|
|
+ //仓单贸易类型 - 1:挂牌 2:摘牌 3:提货卖(文化中国) 4:提货买(文化中国)
|
|
|
|
|
+ function getType(type: number) {
|
|
|
|
|
+ let result = '--';
|
|
|
|
|
+ switch (type) {
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ result = '挂牌';
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ result = '摘牌';
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 3:
|
|
|
|
|
+ result = '提货卖';
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 4:
|
|
|
|
|
+ result = '提货买';
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
return {
|
|
return {
|
|
|
...handleComposeOrderTable<WrSpecialMatchOrder>(param),
|
|
...handleComposeOrderTable<WrSpecialMatchOrder>(param),
|
|
|
loading,
|
|
loading,
|
|
|
tableList,
|
|
tableList,
|
|
|
|
|
+ expandIcon,
|
|
|
|
|
+ getWrOrderTypeName,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|