Commit 721385ad authored by 张牧越's avatar 张牧越

bugfix

parent c7303944
No preview for this file type
...@@ -159,6 +159,11 @@ export default { ...@@ -159,6 +159,11 @@ export default {
this.weekDay = str; this.weekDay = str;
}, },
bodyScale() { bodyScale() {
// window.innerHeight 窗口内高度 //document.getElementsByTagName("html")[0].offsetHeight
// var windowHeight = window.innerHeight;
// var documentHeight =
// document.getElementsByTagName("html")[0].offsetHeight;
// console.log(windowHeight - documentHeight);
var deviceHeight = window.screen.height; var deviceHeight = window.screen.height;
var scale = deviceHeight / 1220; var scale = deviceHeight / 1220;
document.body.style.zoom = scale; document.body.style.zoom = scale;
...@@ -191,21 +196,12 @@ export default { ...@@ -191,21 +196,12 @@ export default {
getBaseInfo().then((res) => { getBaseInfo().then((res) => {
this.screenDetail = res.data; this.screenDetail = res.data;
document.title = res.data.project_name; document.title = res.data.project_name;
if (window.screen.width < 1800) {
if (res.data.menu.length >= 3) { if (res.data.menu.length >= 3) {
this.leftNav = res.data.menu.slice(0, 3); this.leftNav = res.data.menu.slice(0, 3);
this.rightNav = res.data.menu.slice(3, res.data.menu.length); this.rightNav = res.data.menu.slice(3, res.data.menu.length);
} else { } else {
this.leftNav = [...res.data.menu]; this.leftNav = [...res.data.menu];
} }
} else {
if (res.data.menu.length >= 4) {
this.leftNav = res.data.menu.slice(0, 4);
this.rightNav = res.data.menu.slice(4, res.data.menu.length);
} else {
this.leftNav = [...res.data.menu];
}
}
}); });
this.bodyScale(); this.bodyScale();
...@@ -276,7 +272,7 @@ a, ...@@ -276,7 +272,7 @@ a,
text-align: center; text-align: center;
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
margin-right: 8px; margin-right: 30px;
color: #80a1c6; color: #80a1c6;
padding: 9px 12px; padding: 9px 12px;
border: 1px solid #0f5da6; border: 1px solid #0f5da6;
...@@ -351,7 +347,7 @@ a, ...@@ -351,7 +347,7 @@ a,
} }
} }
.el-dropdown { .el-dropdown {
margin-right: 8px; margin-right: 30px;
} }
.el-dropdown-menu { .el-dropdown-menu {
padding: 0; padding: 0;
......
...@@ -646,7 +646,7 @@ export default { ...@@ -646,7 +646,7 @@ export default {
} }
.no-data { .no-data {
text-align: center; text-align: center;
font-size: 24px; font-size: 14px;
color: #1abcec; color: #1abcec;
img { img {
width: 300px; width: 300px;
......
...@@ -800,7 +800,7 @@ export default { ...@@ -800,7 +800,7 @@ export default {
} }
.no-data { .no-data {
text-align: center; text-align: center;
font-size: 24px; font-size: 14px;
color: #1abcec; color: #1abcec;
img { img {
width: 200px; width: 200px;
......
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