huangbin пре 4 година
родитељ
комит
d63e41c57e

+ 1 - 7
src/common/components/description/index.vue

@@ -7,13 +7,7 @@
             :wrap-style="{ position: 'absolute' }"
             @close="close">
     <div class="bottomTable">
-      <a-table :columns="columns"
-               class="topTable"
-               :pagination="false"
-               rowKey="key"
-               :data-source="tableList"
-               :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }">
-      </a-table>
+      <slot></slot>
       <ThridMenu :list="tabList"
                  @selectMenu="changeTab" />
     </div>

+ 9 - 3
src/views/report/finance-report/list/finance_report_finance/index.vue

@@ -16,9 +16,15 @@
     <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>