Files
cmanager/src/views/workstation/workbench/index.vue

245 lines
5.5 KiB
Vue
Raw Normal View History

2024-02-02 15:04:47 +08:00
<template>
2024-02-20 14:39:34 +08:00
<div id="large-screen" class="benchWarp">
2024-02-05 10:16:53 +08:00
<!-- top -->
2024-02-20 12:05:45 +08:00
<div class="benchTop" style="position: relative;">
2024-03-18 21:20:34 +08:00
2024-02-05 10:16:53 +08:00
<!-- 合作企业概况 -->
<div class="bgWhite survey" style="height: calc(100vh - 120px);">
2024-02-22 14:07:13 +08:00
<i style="position: absolute;right: 10px;top: 10px;color:#fff;" class="el-icon-full-screen" @click="changeFullScreen"></i>
2024-02-05 10:16:53 +08:00
<iframe
name="iframeMap"
id="iframeMapViewComponent"
v-bind:src="getPageUrl"
width="100%"
height="100%"
frameborder="0"
scrolling="no"
ref="iframeDom"
></iframe>
2024-02-02 15:04:47 +08:00
</div>
</div>
2024-02-05 10:16:53 +08:00
</div>
2024-02-02 15:04:47 +08:00
</template>
2024-02-05 10:16:53 +08:00
<script>
2024-02-09 14:31:27 +08:00
import { getMapData } from '@/api/desk/notice'
2024-02-05 10:16:53 +08:00
export default {
data() {
return {
getPageUrl: "http://10.165.0.173/largescreen/",
2024-02-20 12:05:45 +08:00
fullScreenFlag: false,
fullScreenFlagKey: 0,
2024-02-05 10:16:53 +08:00
};
2024-02-09 14:31:27 +08:00
},
created() {
getMapData({
date: '2023-09',
province: '四川省'
}).then(res => {
console.log(res)
})
2024-02-20 12:05:45 +08:00
},
methods: {
// toFullScreen() {
// this.showFullScreen = true
// },
changeFullScreen() {
// this.fullScreenFlagKey +=1
if (!this.fullScreenFlag) {
const element = document.getElementsByClassName('avue-header')[0];
element.setAttribute('style', 'display: none');
const nav = document.getElementsByClassName('avue-tags')[0]
nav.setAttribute('style', 'display: none');
const tags = document.getElementsByClassName('avue-left')[0]
tags.setAttribute('style', 'display: none');
const el = document.getElementsByClassName('avue-main')[0]
2024-02-20 14:39:34 +08:00
el.setAttribute('style', 'left: 0;height: 100vh;width:100vw;padding-bottom:0;');
2024-02-20 12:05:45 +08:00
const screen = document.getElementsByClassName('survey')[0]
2024-02-20 14:39:34 +08:00
screen.setAttribute('style', 'height: 100vh;width:100vw;margin-right:0;');
const large = document.getElementById('large-screen');
large.setAttribute('style', 'padding:0 !important;')
2024-02-20 12:05:45 +08:00
this.fullScreenFlag = !this.fullScreenFlag
} else {
const element = document.getElementsByClassName('avue-header')[0];
element.setAttribute('style', 'display: block');
const nav = document.getElementsByClassName('avue-tags')[0]
nav.setAttribute('style', 'display: block');
const tags = document.getElementsByClassName('avue-left')[0]
tags.setAttribute('style', 'display: block');
const el = document.getElementsByClassName('avue-main')[0]
el.setAttribute('style', 'left: 240px;height:100vh;');
const screen = document.getElementsByClassName('survey')[0]
screen.setAttribute('style', 'height: 100vh;');
this.fullScreenFlag = !this.fullScreenFlag
}
},
2024-02-05 10:16:53 +08:00
}
};
</script>
2024-02-02 15:04:47 +08:00
<style scoped>
2024-02-05 10:16:53 +08:00
p {
margin: 0 !important;
}
/* 底色 */
.bgWhite {
background: #ffffff;
}
/* 标题 */
.title {
font-weight: bold;
height: 30px;
font-size: 22px;
color: #333333;
line-height: 30px;
}
.benchWarp {
2024-02-20 14:39:34 +08:00
/* padding: 0 20px !important; */
/* margin-top: 4px; */
2024-02-05 10:16:53 +08:00
}
.benchTop {
display: flex;
justify-content: space-between;
2024-02-20 14:39:34 +08:00
/* margin-bottom: 15px; */
2024-02-05 10:16:53 +08:00
}
.survey,
.pending {
flex: 1;
2024-02-20 14:39:34 +08:00
/* padding: 10px; */
/* border-radius: 4px; */
2024-02-05 10:16:53 +08:00
}
.survey {
2024-02-20 14:39:34 +08:00
/* margin-right: 10px; */
2024-02-05 10:16:53 +08:00
}
.pending {
margin-left: 10px;
}
.content {
display: flex;
justify-content: space-around;
padding: 0 30px;
}
.content .box {
text-align: center;
}
.content .box .surveyTitle,
.pendingTitle {
height: 25px;
font-size: 18px;
font-weight: normal;
color: #333333;
line-height: 25px;
margin-top: 30px !important;
}
.content .box .surveyNum,
.pendingNum {
height: 42px;
font-size: 30px;
font-weight: normal;
color: #333333;
line-height: 42px;
margin: 15px 0 !important;
}
2024-02-02 15:04:47 +08:00
2024-02-05 10:16:53 +08:00
.content .box .lookDetail {
font-size: 18px;
font-weight: normal;
color: #3f9eff;
line-height: 25px;
width: 119px;
height: 39px;
border-radius: 4px;
border: 1px solid #3f9eff;
background: #ffffff;
}
.content .box .goJob {
width: 80px;
height: 20px;
color: #0066ff;
border: 1px solid #0066ff;
background: #ffffff;
border-radius: 10px;
font-size: 12px;
}
2024-02-02 15:04:47 +08:00
2024-02-05 10:16:53 +08:00
.benchBottom {
display: flex;
}
.invitationCode {
width: calc(100% - 550px);
padding: 18px 30px;
border-radius: 4px;
}
.tips {
width: 250px;
margin-left: 15px;
}
.customerService {
width: 414px;
background: #ffffff;
border-radius: 4px;
margin-bottom: 20px;
padding: 18px 30px;
}
.customerService .customerContent {
display: flex;
align-items: center;
height: 100%;
}
.customerService .customerContent .img {
width: 115px;
height: 115px;
background: #d8d8d8;
margin-right: 15px;
margin-top: 20px;
background: url("/manage/img/kefu.jpg") no-repeat;
background-size: 115px 115px;
}
.customerService .customerContent .font {
height: 30px;
font-size: 16px;
font-weight: 400;
color: #333333;
}
.tip {
padding: 18px 30px;
width: 414px;
background: #ffffff;
border-radius: 4px;
}
.tip .tipTop {
display: flex;
justify-content: space-between;
}
.tip .tipTop .more {
cursor: pointer;
height: 22px;
font-size: 16px;
font-weight: normal;
color: #3f9eff;
line-height: 22px;
}
.tipListBox {
height: 276px;
overflow: auto;
}
.tipListBox div {
display: flex;
margin: 11px 0;
}
.tipListBox p {
width: 400px;
height: 30px;
font-size: 16px;
font-weight: 400;
color: #333333;
line-height: 30px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tipListBox span {
color: #3f9eff;
}
2024-02-02 15:04:47 +08:00
</style>