Elements-SY

modify

...@@ -245,7 +245,7 @@ export function debounce(func, wait, immediate) { ...@@ -245,7 +245,7 @@ export function debounce(func, wait, immediate) {
245 return function (...args) { 245 return function (...args) {
246 context = this; 246 context = this;
247 timestamp = +new Date(); 247 timestamp = +new Date();
248 - data = args; 248 + data = args; // 把实参作为防抖回调函数的返回值
249 const callNow = immediate && !timeout; 249 const callNow = immediate && !timeout;
250 // 如果延时不存在,重新设定延时 250 // 如果延时不存在,重新设定延时
251 if (!timeout) timeout = setTimeout(later, wait); 251 if (!timeout) timeout = setTimeout(later, wait);
......
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
77 }); 77 });
78 }, 78 },
79 mounted() { 79 mounted() {
80 + // window视口的高减去除了Table表格的高;将这个差的结果值作为设置Table的高;
80 this.$nextTick(() => { 81 this.$nextTick(() => {
81 this.tableAttr.maxHeight = 82 this.tableAttr.maxHeight =
82 window.innerHeight - restTableHeight(this.$refs); 83 window.innerHeight - restTableHeight(this.$refs);
......
...@@ -32,8 +32,7 @@ import YlForm from "@/components/YlForm"; ...@@ -32,8 +32,7 @@ import YlForm from "@/components/YlForm";
32 import YlTable from "@/components/YlTable"; 32 import YlTable from "@/components/YlTable";
33 import { formConfig } from "./formConfig"; 33 import { formConfig } from "./formConfig";
34 import { tableAttr, columnHeader } from "./tableConfig"; 34 import { tableAttr, columnHeader } from "./tableConfig";
35 -import { restTableHeight, sortList } from "@/utils"; 35 +import { restTableHeight } from "@/utils";
36 -import store from '@/store'
37 import { 36 import {
38 findAllEtesRules, // ET86查询 37 findAllEtesRules, // ET86查询
39 deleteEtesRuleById, // 删除 38 deleteEtesRuleById, // 删除
...@@ -72,6 +71,7 @@ export default { ...@@ -72,6 +71,7 @@ export default {
72 }, 71 },
73 mounted() { 72 mounted() {
74 this.$nextTick(() => { 73 this.$nextTick(() => {
74 + // window视口的高减去除了Table表格的高;将这个差的结果值作为设置Table的高;
75 this.tableAttr.maxHeight = 75 this.tableAttr.maxHeight =
76 window.innerHeight - restTableHeight(this.$refs); 76 window.innerHeight - restTableHeight(this.$refs);
77 }); 77 });
......
...@@ -75,6 +75,7 @@ export default { ...@@ -75,6 +75,7 @@ export default {
75 }); 75 });
76 }, 76 },
77 mounted() { 77 mounted() {
78 + // window视口的高减去除了Table表格的高;将这个差的结果值作为设置Table的高;
78 this.$nextTick(() => { 79 this.$nextTick(() => {
79 this.tableAttr.maxHeight = 80 this.tableAttr.maxHeight =
80 window.innerHeight - restTableHeight(this.$refs); 81 window.innerHeight - restTableHeight(this.$refs);
......