Commit d7ed1c31 authored by youjie's avatar youjie

no message

parent 12c0a74b
......@@ -286,25 +286,12 @@
};
},
watch: {
document: {
ViewType: {
handler: function (val, oldVal) {
var clientWidth = document.body.clientWidth;
var w = clientWidth;
//设置table的屏幕宽度
this.tableWidth = w;
if(this.ViewType==1) return
if(this.tableWidth>=1920){
this.msg.pageSize = 16
}else if(this.tableWidth>=1200){
this.msg.pageSize = 16
}else if(this.tableWidth>=992){
this.msg.pageSize = 12
}else if(this.tableWidth>=768){
this.msg.pageSize = 12
}else if(this.tableWidth<768){
this.msg.pageSize = 10
this.com_onresize();
window.onresize = () => {
this.com_onresize();
}
this.getList()
},
deep: true
},
......@@ -393,6 +380,19 @@
var w = clientWidth;
//设置table的屏幕宽度
this.tableWidth = w;
if(this.ViewType==1) return
if(this.tableWidth>=1920){
this.msg.pageSize = 16
}else if(this.tableWidth>=1200){
this.msg.pageSize = 16
}else if(this.tableWidth>=992){
this.msg.pageSize = 12
}else if(this.tableWidth>=768){
this.msg.pageSize = 12
}else if(this.tableWidth<768){
this.msg.pageSize = 10
}
this.getList()
},
},
......@@ -401,7 +401,7 @@
},
created() {
this.getProvinceList("651", 1);
this.getList()
if(this.ViewType==1) this.getList()
this.com_onresize();
window.onresize = () => {
this.com_onresize();
......
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