放大按钮位置调整,代码优化

This commit is contained in:
zxy
2024-02-22 14:07:13 +08:00
parent 4d8505d3f0
commit 08cfce88c5

View File

@@ -2,12 +2,10 @@
<div id="large-screen" class="benchWarp"> <div id="large-screen" class="benchWarp">
<!-- top --> <!-- top -->
<div class="benchTop" style="position: relative;"> <div class="benchTop" style="position: relative;">
<!-- <span style="position: absolute;right: 0;top: 0;">最大化</span> -->
<!-- 合作企业概况 --> <!-- 合作企业概况 -->
<div class="bgWhite survey" style="height: calc(100vh - 120px);"> <div class="bgWhite survey" style="height: calc(100vh - 120px);">
<i style="position: absolute;right: 10px;top: 0;color:#fff;" class="el-icon-full-screen" @click="changeFullScreen"></i> <i style="position: absolute;right: 10px;top: 10px;color:#fff;" class="el-icon-full-screen" @click="changeFullScreen"></i>
<!-- <img src="./index.jpeg" width="100%" height="100%"> -->
<iframe <iframe
name="iframeMap" name="iframeMap"
id="iframeMapViewComponent" id="iframeMapViewComponent"
@@ -20,9 +18,6 @@
></iframe> ></iframe>
</div> </div>
</div> </div>
<!-- bottom -->
<!-- 占位 -->
<!-- <div style="height: 35px;"></div> -->
</div> </div>
</template> </template>
@@ -59,30 +54,12 @@ export default {
tags.setAttribute('style', 'display: none'); tags.setAttribute('style', 'display: none');
const el = document.getElementsByClassName('avue-main')[0] const el = document.getElementsByClassName('avue-main')[0]
el.setAttribute('style', 'left: 0;height: 100vh;width:100vw;padding-bottom:0;'); el.setAttribute('style', 'left: 0;height: 100vh;width:100vw;padding-bottom:0;');
// const el1 = document.getElementsByClassName('avue-view')[0]
// el1.setAttribute('style', 'padding:0;')
// const el2 = document.getElementsByClassName('benchWarp')[0]
// el2.setAttribute('style', 'padding:0;')
const screen = document.getElementsByClassName('survey')[0] const screen = document.getElementsByClassName('survey')[0]
screen.setAttribute('style', 'height: 100vh;width:100vw;margin-right:0;'); screen.setAttribute('style', 'height: 100vh;width:100vw;margin-right:0;');
const large = document.getElementById('large-screen'); const large = document.getElementById('large-screen');
large.setAttribute('style', 'padding:0 !important;') large.setAttribute('style', 'padding:0 !important;')
// this.leftTableHeight += 30
this.fullScreenFlag = !this.fullScreenFlag this.fullScreenFlag = !this.fullScreenFlag
} else { } else {
// this.leftTableHeight -= 30
// const element = document.getElementsByClassName('sidebar-container')[0];
// element.setAttribute('style', 'display: block');
// const nav = document.getElementsByClassName('navbar')[0]
// nav.setAttribute('style', 'display: block');
// const tags = document.getElementById('tags-view-container')
// tags.setAttribute('style', 'display: block');
// const el = document.getElementsByClassName('main-container')[0]
// el.setAttribute('style', 'height: calc(100vh-84px)');
// el.removeAttribute('margin-left')
// const screen = document.getElementsByClassName('screen-home')[0]
// screen.setAttribute('style', 'height: calc(100vh-84px)');
// this.fullScreenFlag = !this.fullScreenFlag
const element = document.getElementsByClassName('avue-header')[0]; const element = document.getElementsByClassName('avue-header')[0];
element.setAttribute('style', 'display: block'); element.setAttribute('style', 'display: block');
const nav = document.getElementsByClassName('avue-tags')[0] const nav = document.getElementsByClassName('avue-tags')[0]
@@ -147,36 +124,25 @@ p {
} }
.content .box .surveyTitle, .content .box .surveyTitle,
.pendingTitle { .pendingTitle {
/*width: 71px;*/
height: 25px; height: 25px;
font-size: 18px; font-size: 18px;
/*font-family: Alibaba-PuHuiTi-R, Alibaba-PuHuiTi;*/
font-weight: normal; font-weight: normal;
color: #333333; color: #333333;
line-height: 25px; line-height: 25px;
/*font-size: 13px;*/
/*color: #999999;*/
margin-top: 30px !important; margin-top: 30px !important;
} }
.content .box .surveyNum, .content .box .surveyNum,
.pendingNum { .pendingNum {
/*width: 36px;*/
height: 42px; height: 42px;
font-size: 30px; font-size: 30px;
/*font-family: Alibaba-PuHuiTi-B, Alibaba-PuHuiTi;*/
font-weight: normal; font-weight: normal;
color: #333333; color: #333333;
line-height: 42px; line-height: 42px;
/*font-size: 16px;*/
/*font-weight: 650;*/
margin: 15px 0 !important; margin: 15px 0 !important;
} }
.content .box .lookDetail { .content .box .lookDetail {
font-size: 18px; font-size: 18px;
/*font-family: Alibaba-PuHuiTi-R, Alibaba-PuHuiTi;*/
font-weight: normal; font-weight: normal;
color: #3f9eff; color: #3f9eff;
line-height: 25px; line-height: 25px;
@@ -184,12 +150,7 @@ p {
height: 39px; height: 39px;
border-radius: 4px; border-radius: 4px;
border: 1px solid #3f9eff; border: 1px solid #3f9eff;
/*color: #999999;*/
/*border: 1px solid #999999;*/
background: #ffffff; background: #ffffff;
/*border-radius: 10px;*/
/*font-size: 12px;*/
} }
.content .box .goJob { .content .box .goJob {
width: 80px; width: 80px;
@@ -215,11 +176,8 @@ p {
} }
.customerService { .customerService {
width: 414px; width: 414px;
/*height: 224px;*/
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
/*height: 120px;*/
margin-bottom: 20px; margin-bottom: 20px;
padding: 18px 30px; padding: 18px 30px;
} }
@@ -238,21 +196,14 @@ p {
background-size: 115px 115px; background-size: 115px 115px;
} }
.customerService .customerContent .font { .customerService .customerContent .font {
/*width: 96px;*/
height: 30px; height: 30px;
font-size: 16px; font-size: 16px;
/*font-family: PingFangSC-Regular, PingFang SC;*/
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
/*line-height: 30px;*/
/*font-size: 12px;*/
/*color: #666666;*/
} }
.tip { .tip {
padding: 18px 30px; padding: 18px 30px;
width: 414px; width: 414px;
/*height: 375px;*/
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
} }
@@ -264,7 +215,6 @@ p {
cursor: pointer; cursor: pointer;
height: 22px; height: 22px;
font-size: 16px; font-size: 16px;
/*font-family: Alibaba-PuHuiTi-R, Alibaba-PuHuiTi;*/
font-weight: normal; font-weight: normal;
color: #3f9eff; color: #3f9eff;
line-height: 22px; line-height: 22px;
@@ -281,13 +231,9 @@ p {
width: 400px; width: 400px;
height: 30px; height: 30px;
font-size: 16px; font-size: 16px;
/*font-family: PingFangSC-Regular, PingFang SC;*/
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
line-height: 30px; line-height: 30px;
/*margin: 7px 0 !important;*/
/*font-size: 12px;*/
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;