소스 검색

现货报表

huangbin 4 년 전
부모
커밋
a6e3c79b2c
1개의 변경된 파일39개의 추가작업 그리고 33개의 파일을 삭제
  1. 39 33
      src/views/report/spot-report/list/spot_report/index.vue

+ 39 - 33
src/views/report/spot-report/list/spot_report/index.vue

@@ -11,45 +11,51 @@
              :customRow="Rowclick"
              rowKey="key"
              :data-source="tableList">
-        <template #curaverageprice="{ record }">
-            <span>{{ record.curaverageprice.toFixed(2) }}</span>
-        </template>
-        <template #oriaverageprice="{ record }">
-            <span>{{ record.oriaverageprice.toFixed(2) }}</span>
-        </template>
-        <template #oriamount="{ record }">
-            <span>{{ record.oriamount.toFixed(2) }}</span>
-        </template>
-        <template #todaybuyamount="{ record }">
-            <span>{{ record.todaybuyamount.toFixed(2) }}</span>
-        </template>
-        <template #todaybuyaverageprice="{ record }">
-            <span>{{ record.todaybuyaverageprice.toFixed(2) }}</span>
-        </template>
-        <template #todaysellaverageprice="{ record }">
-            <span>{{ record.todaysellaverageprice.toFixed(2) }}</span>
-        </template>
-        <template #actualpl="{ record }">
-            <span>{{ record.actualpl.toFixed(2) }}</span>
-        </template>
-        <template #curspotprice="{ record }">
-            <span>{{ record.curspotprice.toFixed(2) }}</span>
-        </template>
-        <template #floatpl="{ record }">
-            <span>{{ record.floatpl.toFixed(2) }}</span>
-        </template>
-        <template #curmarketvalue="{ record }">
-            <span>{{ record.curmarketvalue.toFixed(2) }}</span>
-        </template>
+      <template #curaverageprice="{ record }">
+        <span>{{ record.curaverageprice.toFixed(2) }}</span>
+      </template>
+      <template #oriaverageprice="{ record }">
+        <span>{{ record.oriaverageprice.toFixed(2) }}</span>
+      </template>
+      <template #oriamount="{ record }">
+        <span>{{ record.oriamount.toFixed(2) }}</span>
+      </template>
+      <template #todaybuyamount="{ record }">
+        <span>{{ record.todaybuyamount.toFixed(2) }}</span>
+      </template>
+      <template #todaybuyaverageprice="{ record }">
+        <span>{{ record.todaybuyaverageprice.toFixed(2) }}</span>
+      </template>
+      <template #todaysellaverageprice="{ record }">
+        <span>{{ record.todaysellaverageprice.toFixed(2) }}</span>
+      </template>
+      <template #actualpl="{ record }">
+        <span>{{ record.actualpl.toFixed(2) }}</span>
+      </template>
+      <template #curspotprice="{ record }">
+        <span>{{ record.curspotprice.toFixed(2) }}</span>
+      </template>
+      <template #floatpl="{ record }">
+        <span>{{ record.floatpl.toFixed(2) }}</span>
+      </template>
+      <template #curmarketvalue="{ record }">
+        <span>{{ record.curmarketvalue.toFixed(2) }}</span>
+      </template>
 
     </a-table>
     <!-- 明细 -->
     <Description v-if="visible"
                  @close="closeDrawer"
                  @changeTab="changeTab"
-                 :columns="columnsDetail"
-                 :tabList="tabList"
-                 :tableList="detailTableList" />
+                 :tabList="tabList">
+      <a-table :columns="columnsDetail"
+               class="topTable"
+               :pagination="false"
+               rowKey="key"
+               :data-source="detailTableList"
+               :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }">
+      </a-table>
+    </Description>
   </div>
 </template>