poi导入显示
This commit is contained in:
@ -38,10 +38,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="file_name">
|
<div class="file_name">
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
<span>{{ item.createdAt }}</span>
|
<span class="pdfPath" :title="item.path">{{ item.path }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_right">
|
<div class="item_right">
|
||||||
|
<span style="color: rgba(var(--color-text2), 1)">{{ item.createdAt }}</span>
|
||||||
|
<div class="but">
|
||||||
<span v-if="item.isEnable">已启用</span>
|
<span v-if="item.isEnable">已启用</span>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
@ -64,6 +66,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<div class="engineering_title2">
|
<div class="engineering_title2">
|
||||||
<span class="fankuai"></span>
|
<span class="fankuai"></span>
|
||||||
@ -91,10 +94,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="file_name">
|
<div class="file_name">
|
||||||
<span>{{ item.name }}</span>
|
<span>{{ item.name }}</span>
|
||||||
<span>{{ item.createdAt }}</span>
|
<!-- <span>{{ item.createdAt }}</span> -->
|
||||||
|
<span class="pdfPath" :title="item.path">{{ item.path }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_right">
|
<div class="item_right">
|
||||||
|
<span style="color: rgba(var(--color-text2), 1)">{{ item.createdAt }}</span>
|
||||||
|
<div class="but">
|
||||||
<span v-if="item.isEnable">已启用</span>
|
<span v-if="item.isEnable">已启用</span>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
@ -117,6 +123,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<div class="engineering_title2">
|
<div class="engineering_title2">
|
||||||
<span class="fankuai"></span>
|
<span class="fankuai"></span>
|
||||||
@ -242,6 +249,10 @@ const poiImport = () => {
|
|||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
PoiApi.getPoiList().then((list) => {
|
PoiApi.getPoiList().then((list) => {
|
||||||
poiList.splice(0, poiList.length, ...list.data)
|
poiList.splice(0, poiList.length, ...list.data)
|
||||||
|
poiList.map((item) => {
|
||||||
|
let arr = item.path.split('/')
|
||||||
|
item.name = arr[arr.length - 1]
|
||||||
|
})
|
||||||
//只有一个poi时默认启用
|
//只有一个poi时默认启用
|
||||||
if (poiList.length == 1) {
|
if (poiList.length == 1) {
|
||||||
let formData = new FormData()
|
let formData = new FormData()
|
||||||
@ -390,6 +401,10 @@ var routeList: any = reactive([])
|
|||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
let list = await RouteApi.getRouteList()
|
let list = await RouteApi.getRouteList()
|
||||||
routeList.splice(0, routeList.length, ...list.data)
|
routeList.splice(0, routeList.length, ...list.data)
|
||||||
|
routeList.map((item) => {
|
||||||
|
let arr = item.path.split('/')
|
||||||
|
item.name = arr[arr.length - 1]
|
||||||
|
})
|
||||||
}
|
}
|
||||||
getList()
|
getList()
|
||||||
|
|
||||||
@ -398,6 +413,10 @@ var poiList: any = reactive([])
|
|||||||
const getPoiList = async () => {
|
const getPoiList = async () => {
|
||||||
let list = await PoiApi.getPoiList()
|
let list = await PoiApi.getPoiList()
|
||||||
poiList.splice(0, poiList.length, ...list.data)
|
poiList.splice(0, poiList.length, ...list.data)
|
||||||
|
poiList.map((item) => {
|
||||||
|
let arr = item.path.split('/')
|
||||||
|
item.name = arr[arr.length - 1]
|
||||||
|
})
|
||||||
}
|
}
|
||||||
getPoiList()
|
getPoiList()
|
||||||
|
|
||||||
@ -680,7 +699,7 @@ function derive() {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
line-height: 32px; // padding: 20px 0;
|
line-height: 32px; // padding: 20px 0;
|
||||||
padding: 0 0 20px 0;
|
padding: 0 0 15px 0;
|
||||||
.fankuai {
|
.fankuai {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
@ -723,10 +742,10 @@ function derive() {
|
|||||||
.fileList {
|
.fileList {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
// height: 20vh;
|
// height: 20vh;
|
||||||
max-height: 20vh;
|
max-height: 15vh;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 0 20px 0;
|
// padding: 0 0 16px 0;
|
||||||
|
overflow-y: auto;
|
||||||
.fileList_nav {
|
.fileList_nav {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -734,7 +753,7 @@ function derive() {
|
|||||||
overflow-y: auto; /* 垂直方向超出时显示滚动条 */
|
overflow-y: auto; /* 垂直方向超出时显示滚动条 */
|
||||||
.fileList_nav_item {
|
.fileList_nav_item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 8vh;
|
height: 7vh;
|
||||||
// background-color: aqua;
|
// background-color: aqua;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
@ -759,28 +778,57 @@ function derive() {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
width: calc(100% - 45px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 滚动条优化
|
// 滚动条优化
|
||||||
.fileList_nav::-webkit-scrollbar {
|
// .fileList::-webkit-scrollbar {
|
||||||
|
// width: 5px;
|
||||||
|
// height: 5px;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// .fileList::-webkit-scrollbar-thumb {
|
||||||
|
// background-color: rgba(var(--color-base1), 1);
|
||||||
|
// border-radius: 5px;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// .fileList::-webkit-scrollbar-track {
|
||||||
|
// background-color: rgba(var(--color-base1), 0.2);
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
// 滚动条优化
|
||||||
|
.fileList::-webkit-scrollbar {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fileList_nav::-webkit-scrollbar-thumb {
|
.fileList::-webkit-scrollbar-thumb {
|
||||||
background-color: rgba(var(--color-base1), 1);
|
background-color: rgba(var(--color-base1), 1);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fileList_nav::-webkit-scrollbar-track {
|
.fileList::-webkit-scrollbar-track {
|
||||||
background-color: rgba(var(--color-base1), 0.2);
|
background-color: rgba(var(--color-base1), 0.2);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.line {
|
.line {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background-color: rgba(204, 204, 204, 0.2);
|
background-color: rgba(204, 204, 204, 0.2);
|
||||||
}
|
}
|
||||||
|
.pdfPath {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
color: rgba(var(--color-text2), 1);
|
||||||
|
}
|
||||||
|
.but {
|
||||||
|
display: inline-block;
|
||||||
|
width: 140px;
|
||||||
|
text-align: right;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user