Compare commits

...

2 Commits

Author SHA1 Message Date
duanxiaohai 767d39e056 Merge branch 'main' of https://git.cityme.com.cn/xiangshan/ggfwjsc 2024-11-18 13:57:16 +08:00
duanxiaohai 73bfc239eb gx 2024-11-18 13:57:12 +08:00
2 changed files with 55 additions and 20 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -247,11 +247,20 @@
</div> </div>
<div <div
class="btnBj" class="btnBj"
:class="{ collapsed: isCollapsed }"
v-if="!showEdit && !dialogShow && !openD" v-if="!showEdit && !dialogShow && !openD"
@click="openqx()"
> >
地图权限 <div class="arrow" @click="toggleCollapse">
<p :style="{ color: jsqx ? 'green' : 'red' }">{{ bjtitle }}</p> <span>{{ isCollapsed ? "◀" : "▶" }}</span>
</div>
<span v-show="!isCollapsed" style="margin-left: 10px">地图权限</span>
<p
v-show="!isCollapsed"
@click="openqx()"
:style="{ color: jsqx ? 'green' : 'red' }"
>
{{ bjtitle }}
</p>
</div> </div>
<Dialog <Dialog
:dialogShow="dialogShow" :dialogShow="dialogShow"
@ -1115,7 +1124,6 @@ const yaosuTotal = ref([
url: "/api/ggfwyth/ysyzt/getCdzxx", url: "/api/ggfwyth/ysyzt/getCdzxx",
tooltip: "zdmc", tooltip: "zdmc",
click: true, click: true,
}, },
{ {
id: 9, id: 9,
@ -5322,6 +5330,13 @@ const reset_font2 = () => {
document.querySelector(".detail").style.transform = document.querySelector(".detail").style.transform =
"scale(" + width / 1920 + "," + height / 1080 + ")"; "scale(" + width / 1920 + "," + height / 1080 + ")";
}; };
// const bjtitle = ref();
// const jsqx = ref(false);
const isCollapsed = ref(false);
const toggleCollapse = () => {
isCollapsed.value = !isCollapsed.value;
};
onMounted(async () => { onMounted(async () => {
// WebGL // WebGL
@ -5951,6 +5966,7 @@ onMounted(async () => {
border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0;
} }
} }
.btnBj { .btnBj {
cursor: pointer; cursor: pointer;
z-index: 100; z-index: 100;
@ -5964,7 +5980,26 @@ onMounted(async () => {
display: flex; display: flex;
align-items: center; align-items: center;
opacity: 0.8; opacity: 0.8;
transition: width 0.3s ease;
width: auto;
overflow: hidden;
.btnBj.collapsed {
width: 15px;
justify-content: center;
} }
.arrow {
cursor: pointer;
font-size: 16px;
color: #ffffff;
transition: color 0.2s ease;
}
.arrow:hover {
color: #000000;
}
}
.title { .title {
background-image: url(@/assets/images/map/map_title_bg.png); background-image: url(@/assets/images/map/map_title_bg.png);
background-repeat: no-repeat; background-repeat: no-repeat;