From 5a465d99e842d2d828fe58629d81034d7987e6cc Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期五, 07 七月 2023 10:16:35 +0800
Subject: [PATCH] 项目优化
---
src/main/webapp/views/home/map.html | 23 ++++++++++-------------
1 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/src/main/webapp/views/home/map.html b/src/main/webapp/views/home/map.html
index 4a1c26c..7c60b79 100644
--- a/src/main/webapp/views/home/map.html
+++ b/src/main/webapp/views/home/map.html
@@ -16,7 +16,7 @@
<style>
.pointContainer {
display: flex;
- justify-content: center;
+ justify-content: flex-start;
margin-top: 1px;
}
@@ -35,8 +35,8 @@
.pointBox {
background: #fffef9;
- width: 40px;
- height: 40px;
+ width: 35px;
+ height: 35px;
margin-right: 1px;
display: flex;
justify-content: center;
@@ -424,9 +424,9 @@
</style>
</head>
<body>
-<div id="app" style="display: flex;justify-content: space-around;margin-top: 50px;flex-wrap: nowrap; scale: 0.9" @click="bgClick()">
- <div style="flex: 3;" :style="{scale:showScale/100.0,marginTop:(showScale-100)*5 + 'px'}">
- <div>
+<div id="app" style="display: flex;justify-content: space-around;margin-top: 50px;flex-wrap: nowrap; " @click="bgClick()">
+ <div style="flex: 3;overflow: auto; " :style="{scale:showScale/100.0,marginTop:(showScale-100)*5 + 'px'}">
+ <div style="width: 100%;overflow: auto;">
<div class="pointContainer" v-for="(x,index) in map" :key="index">
<div v-if="index != 0 && (index != map.length-1)" v-for="(y,idx) in x" :key="idx">
<div v-if="idx != 0 && (idx != map[index].length-1)">
@@ -465,7 +465,7 @@
</div>
</div>
- <div style="width: 40px;display: flex;justify-content: center;align-items: center;">
+ <div style="width: 40px; display: flex;justify-content: flex-end;align-items: center;">
{{ getRealRowByX(index) }}
</div>
@@ -820,7 +820,7 @@
val.searchStatus = false//鎼滅储鏍囪
data2.push(val)
})
- this.pointContainerWidth = item.length * (40+1)
+ this.pointContainerWidth = item.length * (35+1)
data.push(data2)
})
this.map = data
@@ -839,10 +839,10 @@
let locNo = rowData[i].locNo;
return "#" + parseInt(locNo.substr(0, 2));
}
- }else if (this.area > 10){
+ }else if (this.area == 6){
if (rowData[i].locNo != undefined) {
let locNo = rowData[i].locNo;
- return "#" + parseInt(locNo.substr(8, 2));
+ return "#" + parseInt(locNo.substr(7, 2));
}
}
else {
@@ -851,9 +851,6 @@
return "#" + parseInt(locNo.substr(7, 2));
}
}
-
-
-
}
return "";
--
Gitblit v1.9.1