Elements-SY

modify

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