소스 검색

【修改】资金明细-台账管理 807

howie 2 년 전
부모
커밋
b71eb67feb
3개의 변경된 파일14개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 1
      src/layout/components/AppMain.vue
  2. 4 4
      src/utils/table-sticky.js
  3. 9 2
      src/views/finance/standbook_list.vue

+ 1 - 1
src/layout/components/AppMain.vue

@@ -29,7 +29,7 @@ export default {
   min-height: calc(100vh - 50px);
   width: 100%;
   position: relative;
-  /*overflow: inherit;*/
+  overflow: hidden;
 }
 .fixed-header + .app-main {
   /* padding-top: 50px; */

+ 4 - 4
src/utils/table-sticky.js

@@ -190,7 +190,7 @@ export default {
             width: getComputedStyle(this.fixedRightDom[0]).width,
             scrollLeft: fixedRightHeaderDom.scrollWidth
           })
-          fixedRightBox.style.top = 0
+          fixedRightBox.style.top = 83 + 'px'
         }
         // 左侧固定
         if (fixedLeftHeaderDom) {
@@ -200,13 +200,13 @@ export default {
             width: getComputedStyle(this.fixedLeftDom[0]).width,
             scrollLeft: 0
           })
-          fixedLeftBox.style.top = 0
+          fixedLeftBox.style.top = 83 + 'px'
         }
         dom.classList.add('fixed') //加一个固定标识
         this.updateWidth()
         dom.style.position = 'fixed'
         dom.style.zIndex = '2000'
-        dom.style.top = 0 + 'px'
+        dom.style.top = 83 + 'px'
         dom.style.overflow = 'hidden'
       } else {
         this.clearFixedStyle()
@@ -217,7 +217,7 @@ export default {
       let { dom, scrollLeft, width, left } = data
       dom.style.zIndex = '2000'
       dom.style.position = 'fixed'
-      dom.style.top = '0'
+      dom.style.top = 83 + 'px'
       dom.scrollLeft = scrollLeft
       dom.style.width = width
       dom.style.overflow = 'hidden'

+ 9 - 2
src/views/finance/standbook_list.vue

@@ -461,8 +461,9 @@
 import { getWalletCustomerList } from '@/api/finance/change_apply'
 import { getAmountCount, getCustomerList, getStandbookList } from '@/api/finance/standbook_list'
 import { numToFixed } from '@/filters'
-
+import sticky from '@/utils/table-sticky'
 export default {
+  mixins: [sticky],
   data() {
     return {
       isShow: false,
@@ -476,6 +477,7 @@ export default {
       dataList: [],
       isCollapse: true,
       walletList: [],
+      parent: 'mymain-container',
       // dictList: [],
       customerName: '',
       customerNumber: '',
@@ -1213,7 +1215,12 @@ export default {
   }
 }
 </script>
-
+<style>
+.main-container {
+  height: 100vh !important;
+  overflow: auto;
+}
+</style>
 <style lang="scss" scoped>
 ::v-deep .ulStyle {
   //position: sticky;