huangbin 4 år sedan
förälder
incheckning
c7b0fbee30

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

@@ -11,7 +11,8 @@
                class="topTable"
                :pagination="false"
                rowKey="key"
-               :data-source="tableList">
+               :data-source="tableList"
+               :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }">
       </a-table>
       <ThridMenu :list="tabList"
                  @selectMenu="changeTab" />

+ 4 - 3
src/views/business/exposure/list/realTime/index.vue

@@ -5,12 +5,13 @@
     <filterCustomTable @search="updateColumn">
     </filterCustomTable>
     <a-table :columns="columns"
-             class="topTable"
+             class="topOrderTable"
+             :pagination="false"
              :expandedRowKeys="expandedRowKeys"
              :customRow="Rowclick"
-             :pagination="false"
              rowKey="key"
-             :data-source="tableList">
+             :data-source="tableList"
+             :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }">
     </a-table>
     <!-- 明细 -->
     <Description v-if="visible"

+ 5 - 2
src/views/report/finance-report/list/finance_report_finance/index.vue

@@ -44,14 +44,16 @@ export default defineComponent({
         Description,
     },
     setup() {
+        let cycletime = '';
         // 表格列表数据
         const { loading, tableList, queryTable } = queryTableList<Ermcp3FinanceReport>();
         // 获取列表数据
         const queryTableAction = () => {
             const { getInitTime, getInitType } = handleInitTypeAndTime();
+            cycletime = getInitTime();
             const param: FinanceReportReq = {
                 cycletype: getInitType(),
-                cycletime: getInitTime(),
+                cycletime,
                 querytype: 1,
             };
             // 获取列表数据
@@ -80,7 +82,7 @@ export default defineComponent({
         function changeTab(index: number, current: TabList) {
             const { code } = current;
             const data = selectedRow.value as Ermcp3FinanceReport;
-            const { cycletype, cycletime, currencyid } = data;
+            const { cycletype, currencyid } = data;
             const param: FinanceReportReq = {
                 querytype: 2,
                 cycletype,
@@ -115,6 +117,7 @@ export default defineComponent({
             }
         });
         function search(value: TypeAndTime) {
+            cycletime = value.cycletime;
             const obj = Object.assign(value, { querytype: 1 });
             queryTable(qryFinanceReport, obj);
         }