全屏开发
This commit is contained in:
@@ -402,7 +402,7 @@ export default {
|
|||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: "岗位名称",
|
label: "岗位名称",
|
||||||
prop: "missionTitle",
|
prop: "jobName",
|
||||||
search: true,
|
search: true,
|
||||||
span: 24,
|
span: 24,
|
||||||
rules: [
|
rules: [
|
||||||
@@ -1121,7 +1121,7 @@ export default {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
add({
|
add({
|
||||||
|
|
||||||
missionTitle: row.missionTitle,
|
jobName: row.jobName,
|
||||||
stime: row.stime,
|
stime: row.stime,
|
||||||
etime: row.etime,
|
etime: row.etime,
|
||||||
etimePub: row.etimePub,
|
etimePub: row.etimePub,
|
||||||
@@ -1172,7 +1172,7 @@ export default {
|
|||||||
} else if (this.type === "edit") {
|
} else if (this.type === "edit") {
|
||||||
update({
|
update({
|
||||||
id: this.id,
|
id: this.id,
|
||||||
missionTitle: row.missionTitle,
|
jobName: row.jobName,
|
||||||
stime: row.stime,
|
stime: row.stime,
|
||||||
etime: row.etime,
|
etime: row.etime,
|
||||||
etimePub: row.etimePub,
|
etimePub: row.etimePub,
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="benchWarp">
|
<div class="benchWarp">
|
||||||
<!-- top -->
|
<!-- top -->
|
||||||
<div class="benchTop">
|
<div class="benchTop" style="position: relative;">
|
||||||
|
<!-- <span style="position: absolute;right: 0;top: 0;">最大化</span> -->
|
||||||
|
<i style="position: absolute;right: 10px;top: 0;" class="el-icon-full-screen" @click="changeFullScreen"></i>
|
||||||
<!-- 合作企业概况 -->
|
<!-- 合作企业概况 -->
|
||||||
<div class="bgWhite survey" style="height: calc(100vh - 120px);">
|
<div class="bgWhite survey" style="height: calc(100vh - 120px);">
|
||||||
<!-- <img src="./index.jpeg" width="100%" height="100%"> -->
|
<!-- <img src="./index.jpeg" width="100%" height="100%"> -->
|
||||||
@@ -28,7 +30,9 @@ import { getMapData } from '@/api/desk/notice'
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
getPageUrl: "/chengdu/index.html"
|
getPageUrl: "/chengdu/index.html",
|
||||||
|
fullScreenFlag: false,
|
||||||
|
fullScreenFlagKey: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -38,6 +42,53 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
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]
|
||||||
|
el.setAttribute('style', 'left: 0;height: 100vh;width:100vw;');
|
||||||
|
const screen = document.getElementsByClassName('survey')[0]
|
||||||
|
screen.setAttribute('style', 'height: 100vh;width:100vw;');
|
||||||
|
// this.leftTableHeight += 30
|
||||||
|
this.fullScreenFlag = !this.fullScreenFlag
|
||||||
|
} 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];
|
||||||
|
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
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
// target: 'http://127.0.0.1:8000', // 本地服务接口地址
|
// target: 'http://127.0.0.1:8000', // 本地服务接口地址
|
||||||
// target: "http://39.98.184.58:8000", // 阿里云后台地址
|
target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||||
target: "http://192.168.0.105:8000", // 本地
|
// target: "http://192.168.0.105:8000", // 本地
|
||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|||||||
Reference in New Issue
Block a user