|
|
@@ -1,42 +1,44 @@
|
|
|
<template>
|
|
|
- <!-- 仓单贸易 贸易圈挂牌 卖-->
|
|
|
- <div>
|
|
|
- <a-table :columns="columns"
|
|
|
- :class="['srcollYTable', isBottom ? 'condSecondTabTableHalfTop' : 'condSecondTabTableHalfTopNoBottom', 'halfBottom']"
|
|
|
- :scroll="{ x: '100%', y: isBottom ? 'calc((100vh- 443px)/2 - 14px)' : 'calc((100vh - 196px)/2 - 16px)' }"
|
|
|
- :pagination="false"
|
|
|
- :loading="loading"
|
|
|
- :expandedRowKeys="expandedRowKeys"
|
|
|
- :customRow="Rowclick"
|
|
|
- rowKey="key"
|
|
|
- :data-source="tableList">
|
|
|
- <template #index="{ index }">
|
|
|
- <span>{{ index + 1 }}</span>
|
|
|
- </template>
|
|
|
- <!-- 议价 -->
|
|
|
- <template #canbargain="{ text }">
|
|
|
- <span>{{ text ? '是' : '否' }}</span>
|
|
|
- </template>
|
|
|
- <!-- 整单 -->
|
|
|
- <template #canpart="{ text }">
|
|
|
- <span>{{ text ? '是' : '否' }}</span>
|
|
|
- </template>
|
|
|
- <!-- 挂牌有效期 -->
|
|
|
- <template #validtime="{ text }">
|
|
|
- <span>{{ formatTime(text, 'd') }}</span>
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- <!-- 右键 -->
|
|
|
- <contextMenu :contextMenu="contextMenu"
|
|
|
- @cancel="closeContext"
|
|
|
- :list="filterBtn(firstBtn)"></contextMenu>
|
|
|
- <component :is="componentId"
|
|
|
- v-if="componentId"
|
|
|
- :componentId="componentId"
|
|
|
- :selectedRow="selectedRow"
|
|
|
- :buyOrSell="BuyOrSell.Buy"
|
|
|
- @cancel="closeComponent"></component>
|
|
|
- </div>
|
|
|
+ <!-- 仓单贸易 贸易圈挂牌 卖-->
|
|
|
+ <div>
|
|
|
+ <a-table
|
|
|
+ :columns="columns"
|
|
|
+ :class="['srcollYTable', isBottom ? 'condSecondTabTableHalfTop' : 'condSecondTabTableHalfTopNoBottom', 'halfBottom', tableList.length ? 'noPlaceHolder' : 'hasPlaceHolder']"
|
|
|
+ :scroll="{ x: '100%', y: isBottom ? 'calc((100vh- 443px)/2 - 14px)' : 'calc((100vh - 196px)/2 - 16px)' }"
|
|
|
+ :pagination="false"
|
|
|
+ :loading="loading"
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
+ :customRow="Rowclick"
|
|
|
+ rowKey="key"
|
|
|
+ :data-source="tableList"
|
|
|
+ >
|
|
|
+ <template #index="{ index }">
|
|
|
+ <span>{{ index + 1 }}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 议价 -->
|
|
|
+ <template #canbargain="{ text }">
|
|
|
+ <span>{{ text ? '是' : '否' }}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 整单 -->
|
|
|
+ <template #canpart="{ text }">
|
|
|
+ <span>{{ text ? '是' : '否' }}</span>
|
|
|
+ </template>
|
|
|
+ <!-- 挂牌有效期 -->
|
|
|
+ <template #validtime="{ text }">
|
|
|
+ <span>{{ formatTime(text, 'd') }}</span>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ <!-- 右键 -->
|
|
|
+ <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="filterBtn(firstBtn)"></contextMenu>
|
|
|
+ <component
|
|
|
+ :is="componentId"
|
|
|
+ v-if="componentId"
|
|
|
+ :componentId="componentId"
|
|
|
+ :selectedRow="selectedRow"
|
|
|
+ :buyOrSell="BuyOrSell.Buy"
|
|
|
+ @cancel="closeComponent"
|
|
|
+ ></component>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|