perf: 修复account、dc、promserver的resize时的bug

This commit is contained in:
chenjinsong
2020-07-17 19:39:48 +08:00
parent 972ba5e6d9
commit b5dd3800c0
5 changed files with 10 additions and 1 deletions

View File

@@ -484,4 +484,8 @@ export const chartResizeTool = {
}
}
}
};
export function blankPromise() {
return new Promise(resolve => {resolve();});
}

View File

@@ -399,6 +399,7 @@
}
},
showSubList(n) {
let vm = this;
this.$bottomBoxWindow.showSubListWatch(vm, n);
}
},

View File

@@ -492,6 +492,7 @@
}
},
showSubList(n) {
let vm = this;
this.$bottomBoxWindow.showSubListWatch(vm, n);
}
},

View File

@@ -497,6 +497,7 @@
}
},
showSubList(n) {
let vm = this;
this.$bottomBoxWindow.showSubListWatch(vm, n);
}
}

View File

@@ -19,7 +19,8 @@ import plTable from 'pl-table'
import 'pl-table/themes/index.css'
import {post, get, put, del} from './http.js'
import {toTop, clickoutside, scrollBar, bottomBoxWindow, stringTimeParseToUnix, unixTimeParseToString, chartResizeTool} from './components/common/js/tools.js'
import {toTop, clickoutside, scrollBar, bottomBoxWindow, stringTimeParseToUnix, unixTimeParseToString, chartResizeTool} from './components/common/js/tools.js';
import * as tools from './components/common/js/tools.js';
import * as constants from './components/common/js/constants.js'
@@ -75,6 +76,7 @@ Vue.prototype.$get = get;
Vue.prototype.$put = put;
Vue.prototype.$delete = del;
Vue.prototype.$CONSTANTS = constants;
Vue.prototype.$TOOLS = tools;
Vue.prototype.$toTop = toTop; //toTop置顶按钮方法
Vue.prototype.$bottomBoxWindow = bottomBoxWindow; //底部上滑框控制
Vue.prototype.$stringTimeParseToUnix = stringTimeParseToUnix;