Commit d4f5c124 authored by 纪泽龙's avatar 纪泽龙

1. 场站的工艺和上面内容最好有个明显的分界线。

2. 场站图片可以点击打开新页面放大。
parent 93dbb098
/* /*
* @Author: your name * @Author: your name
* @Date: 2022-01-11 13:45:12 * @Date: 2022-01-11 13:45:12
* @LastEditTime: 2026-09-23 10:12:29 * @LastEditTime: 2026-10-10 14:23:44
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js * @FilePath: /test/hello-world/src/utils/mapClass.js
...@@ -184,6 +184,8 @@ export class EditorMap { ...@@ -184,6 +184,8 @@ export class EditorMap {
}); });
this.loca.add(layer); this.loca.add(layer);
this.loca.animate.start(); this.loca.animate.start();
this.locaLayer = layer;
} }
frbj() { frbj() {
townsData.forEach((item) => { townsData.forEach((item) => {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2025-12-20 09:20:39 * @Date: 2025-12-20 09:20:39
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-09-23 10:01:11 * @LastEditTime: 2026-10-10 14:36:07
* @FilePath: /test-ranqi/src/views/Index.vue * @FilePath: /test-ranqi/src/views/Index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
this.getList(); this.getList();
this.getpipe(); this.getpipe();
this.getPointList(); this.getPointList();
this.gaoMap.addLocalPipe(this.pipeFeatures); // this.gaoMap.addLocalPipe(this.pipeFeatures);
setInterval(() => { setInterval(() => {
this.gaoMap.pipeArrold = this.gaoMap.pipeArr2; this.gaoMap.pipeArrold = this.gaoMap.pipeArr2;
...@@ -360,6 +360,9 @@ export default { ...@@ -360,6 +360,9 @@ export default {
this.gaoMap.pipefilter(ind, val); this.gaoMap.pipefilter(ind, val);
} }
if (ind >= 0) { if (ind >= 0) {
if (val == 0) {
this.gaoMap.locaLayer.hide();
}
if (val == 3) { if (val == 3) {
this.gaoMap.tyxlabelsLayer.hide(); this.gaoMap.tyxlabelsLayer.hide();
} else if (val == 4) { } else if (val == 4) {
...@@ -372,6 +375,9 @@ export default { ...@@ -372,6 +375,9 @@ export default {
this.hideMarker(6); this.hideMarker(6);
} }
} else { } else {
if (val == 0) {
this.gaoMap.locaLayer.show();
}
if (val == 3) { if (val == 3) {
this.gaoMap.tyxlabelsLayer.show(); this.gaoMap.tyxlabelsLayer.show();
} else if (val == 4) { } else if (val == 4) {
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<div class="left">储罐容积:</div> <div class="left">储罐容积:</div>
<div class="right zzz">{{ deviceData.volume }}</div> <div class="right zzz">{{ deviceData.volume }}</div>
</div> </div>
<div class="group"> <div class="group gy">
<div class="left">工艺名称:</div> <div class="left">工艺名称:</div>
<div class="right zzz">{{ deviceData.technologyProcess }}</div> <div class="right zzz">{{ deviceData.technologyProcess }}</div>
</div> </div>
...@@ -93,18 +93,31 @@ ...@@ -93,18 +93,31 @@
<div class="left">危险源名称:</div> <div class="left">危险源名称:</div>
<div class="right zzz">{{ deviceData.dangerousName }}</div> <div class="right zzz">{{ deviceData.dangerousName }}</div>
</div> </div>
<div class="group"> <div class="dashed"></div>
<div class="group gy">
<div class="left">工艺照片:</div> <div class="left">工艺照片:</div>
<div class="right zzz"> <div class="right zzz cup">
<el-image <!-- <el-image
v-if="deviceData.processRelationList" v-if="deviceData.processRelationList"
style="width: 80px; height: 80px" style="width: 80px; height: 80px"
:src="deviceData.processRelationList" :src="deviceData.processRelationList"
:preview-src-list="[deviceData.processRelationList]" :preview-src-list="[deviceData.processRelationList]"
:z-index="999999" :z-index="999999"
> >
</el-image> </el-image> -->
<div class="imgtext" v-else>暂无图片</div> <templete v-if="this.deviceData.processRelationList">
<div
v-for="item in JSON.parse(
this.deviceData.processRelationList[0].attachment
)"
style="color: blue; font-size: 16px"
:key="item.url"
@click="openUrl(item.url)"
>
{{ '查看' }}
</div>
</templete>
<div v-else>暂无图片</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -186,6 +199,9 @@ export default { ...@@ -186,6 +199,9 @@ export default {
close() { close() {
this.mapClass.infowindowClose(); this.mapClass.infowindowClose();
}, },
openUrl(url) {
window.open(url);
},
//场站类型 //场站类型
getStationType() { getStationType() {
this.getDicts("t_station_type").then((response) => { this.getDicts("t_station_type").then((response) => {
...@@ -226,7 +242,7 @@ export default { ...@@ -226,7 +242,7 @@ export default {
background-color: #071738; background-color: #071738;
padding: 10px; padding: 10px;
position: relative; position: relative;
width: 670px; min-width: 760px;
border-radius: 7px; border-radius: 7px;
.title { .title {
// padding-top: 10px; // padding-top: 10px;
...@@ -247,7 +263,7 @@ export default { ...@@ -247,7 +263,7 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
box-sizing: border-box; box-sizing: border-box;
.top-left { .top-left {
flex: 1.8; flex: 1.5;
.group { .group {
height: 30px; height: 30px;
flex: 1; flex: 1;
...@@ -274,7 +290,7 @@ export default { ...@@ -274,7 +290,7 @@ export default {
} }
} }
.top-center { .top-center {
flex: 1.2; flex: 1.5;
.group { .group {
height: 30px; height: 30px;
flex: 1; flex: 1;
...@@ -357,4 +373,20 @@ export default { ...@@ -357,4 +373,20 @@ export default {
justify-content: space-between; justify-content: space-between;
} }
} }
.gy {
margin-top: 8px;
// border-top:1px solid #fff;
}
.dashed {
width: 600px;
height: 1px;
border-top: 1px dotted #f0f0f0f0;
position: absolute;
margin-top: 2px;
left: 30px;
}
.cup {
cursor: pointer;
}
</style> </style>
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