|
|
@@ -1,30 +1,30 @@
|
|
|
<template>
|
|
|
- <!-- 卖大厅 -->
|
|
|
- <a-table
|
|
|
- :columns="columns"
|
|
|
- class="sellHallTable"
|
|
|
- :scroll="{ x: '100%', y: 'calc(100vh - 470px)' }"
|
|
|
- :pagination="false"
|
|
|
- :loading="loading"
|
|
|
- :expandedRowKeys="expandedRowKeys"
|
|
|
- :customRow="Rowclick"
|
|
|
- rowKey="key"
|
|
|
- :data-source="tableList"
|
|
|
- >
|
|
|
- <!-- 额外的展开行 -->
|
|
|
- <template #expandedRowRender="{ record }">
|
|
|
- <BtnList :btnList="btnList" :record="record" @click="openComponent" />
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- <component
|
|
|
- :is="componentId"
|
|
|
- v-if="componentId"
|
|
|
- :selectedRow="selectedRow"
|
|
|
- :enumName="enumName"
|
|
|
- :buyOrSell="BuyOrSell.sell"
|
|
|
- :parantSelectedRow="parantSelectedRow"
|
|
|
- @cancel="closeComponent"
|
|
|
- ></component>
|
|
|
+ <!-- 卖大厅 -->
|
|
|
+ <a-table :columns="columns"
|
|
|
+ class="sellHallTable"
|
|
|
+ :scroll="{ x: '100%', y: 'calc(100vh - 470px)' }"
|
|
|
+ :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"
|
|
|
+ @click="openComponent" />
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ <component :is="componentId"
|
|
|
+ v-if="componentId"
|
|
|
+ :selectedRow="selectedRow"
|
|
|
+ :enumName="enumName"
|
|
|
+ :buyOrSell="BuyOrSell.sell"
|
|
|
+ :parantSelectedRow="parantSelectedRow"
|
|
|
+ @cancel="closeComponent"></component>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -37,6 +37,7 @@ import { defineAsyncComponent, PropType } from 'vue';
|
|
|
import { BtnList as btnListType } from '@/common/components/btnList/interface';
|
|
|
import { getSellMarketParam } from '../../setup';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
+import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
|
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'openComponent'],
|
|
|
@@ -91,6 +92,7 @@ export default defineComponent({
|
|
|
tableList,
|
|
|
BuyOrSell,
|
|
|
enumName: props.enumName,
|
|
|
+ expandIcon,
|
|
|
};
|
|
|
},
|
|
|
});
|