Commit 2f28bccf authored by 周远喜's avatar 周远喜

okdata grid

parent 59bbf396
......@@ -277,23 +277,19 @@ export default {
} else {
this.easySearch();
}
// console.warn("this.$refs.main.clientX",this.$refs.main.offsetTop,this.$refs.main.offsetHeight)
if (this.height === 0) {
this.$nextTick(() => {
this.tableHeight = this.$refs.main.offsetHeight;
if (this.tableHeight < 300) {
this.tableHeight = window.screen.availHeight -this.$refs.main.offsetTop-200;
}
// console.warn("this.$refs.main.VVV",this.tableHeight)
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
console.warn(123)
this.tableHeight = this.$refs.main.offsetHeight;
if (this.tableHeight < 300) {
this.tableHeight = window.screen.availHeight -this.$refs.main.offsetTop-150;
}
console.warn("this.$refs.main.tableHeight",this.tableHeight)
})();
};
});
......@@ -302,7 +298,6 @@ export default {
}
//注册拖拽事件。
this.$dragging.$on("dragend", e => {
// console.log("dragend",e);
this.saveUserconfig();
});
},
......@@ -328,7 +323,6 @@ export default {
if (this.userConfig) {
var curColumns = [];
var config = JSON.parse(this.userConfig.content);
// console.warn("2:列比对",config)
if (config.length == this.columnsCur.length) {
config.map(u => {
var item = this.columnsCur.filter(c => {
......@@ -339,7 +333,6 @@ export default {
curColumns.push(item[0]);
}
});
// console.warn("3:初始化列")
this.columnsCur = curColumns;
}
}
......@@ -369,7 +362,6 @@ export default {
if (r.success) {
if (r.result.length == 1) {
this.userConfig = r.result[0];
// console.warn("1:加载用户配置")
this.columnInit();
}
if (!this.configLoad) {
......
......@@ -268,7 +268,7 @@ export default {
})
},
remove(id) {
Api.delete({ id: this.curId }).then((r) => {
Api.delete({ id: id}).then((r) => {
if (r.success) {
this.$refs.grid.load()
this.deletelModal = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment