|
|
@@ -1,24 +1,41 @@
|
|
|
<template>
|
|
|
- <!-- 成交 -->
|
|
|
- <section>
|
|
|
- <a-table :columns="columns" class="srcollYTable expandLeftTable" :scroll="{ x: '100%', y: '190px' }" :pagination="false" :loading="loading" :expandedRowKeys="expandedRowKeys" :customRow="Rowclick" :expandIcon="expandIcon" :expandIconAsCell="false" rowKey="key" :data-source="tableList">
|
|
|
- <!-- 额外的展开行 -->
|
|
|
- <template #expandedRowRender="{ record }">
|
|
|
- <BtnList :btnList="btnList" :record="record" class="btn-list-sticky" @click="openComponent" />
|
|
|
- </template>
|
|
|
+ <!-- 成交 -->
|
|
|
+ <section>
|
|
|
+ <a-table :columns="columns"
|
|
|
+ class="srcollYTable expandLeftTable"
|
|
|
+ :scroll="{ x: '100%', y: '190px' }"
|
|
|
+ :pagination="false"
|
|
|
+ :loading="loading"
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
+ :customRow="Rowclick"
|
|
|
+ :expandIcon="expandIcon"
|
|
|
+ :expandIconAsCell="false"
|
|
|
+ rowKey="key"
|
|
|
+ :data-source="tableList">
|
|
|
+ <!-- 额外的展开行 -->
|
|
|
+ <template #expandedRowRender="{ record }">
|
|
|
+ <BtnList :btnList="btnList"
|
|
|
+ :record="record"
|
|
|
+ class="btn-list-sticky"
|
|
|
+ @click="openComponent" />
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- 成交金额 -->
|
|
|
- <template #amount="{ record }">
|
|
|
- <a>{{ record.tradeqty * record.tradeprice }}</a>
|
|
|
- </template>
|
|
|
+ <!-- 成交金额 -->
|
|
|
+ <template #amount="{ record }">
|
|
|
+ <a>{{ (record.tradeqty * record.tradeprice).toFixed(2) }}</a>
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- 挂牌类型 -->
|
|
|
- <template #wrtradetype="{ record }">
|
|
|
- <a>{{ getWrOrderTypeName(record.buyorsell, record.wrtradetype) }}</a>
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- <component :is="componentId" v-if="componentId" :tableName="tableName" :selectedRow="selectedRow" @cancel="closeComponent"></component>
|
|
|
- </section>
|
|
|
+ <!-- 挂牌类型 -->
|
|
|
+ <template #wrtradetype="{ record }">
|
|
|
+ <a>{{ getWrOrderTypeName(record.buyorsell, record.wrtradetype) }}</a>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ <component :is="componentId"
|
|
|
+ v-if="componentId"
|
|
|
+ :tableName="tableName"
|
|
|
+ :selectedRow="selectedRow"
|
|
|
+ @cancel="closeComponent"></component>
|
|
|
+ </section>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|