运行图加载设置最大宽高
This commit is contained in:
parent
1314ae64b6
commit
2f5421605e
@ -2,7 +2,7 @@ export function getBaseUrl() {
|
||||
let BASE_API;
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// BASE_API = 'https://joylink.club/jlcloud';
|
||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
||||
BASE_API = 'https://test.joylink.club/jlcloud';
|
||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div v-show="show" class="run-plan-dialog">
|
||||
<div v-show="show" class="run-plan-dialog" :style="{width: width + 'px',height:height + 'px'}">
|
||||
<plan-schedule ref="planSchedule" :group="group" @back="doClose" />
|
||||
</div>
|
||||
</template>
|
||||
@ -29,6 +29,12 @@ export default {
|
||||
computed: {
|
||||
title() {
|
||||
return this.$t('display.runPlan.runDiagramPlanTool');
|
||||
},
|
||||
width() {
|
||||
return this.$store.state.app.width > 1920 ? 1920 : this.$store.state.app.width;
|
||||
},
|
||||
height() {
|
||||
return this.$store.state.app.height > 1080 ? 1080 : this.$store.state.app.height;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -72,9 +78,7 @@ export default {
|
||||
position: absolute;
|
||||
z-index: 36;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
right: 0px;
|
||||
background: white;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="plan-schedule" style="width: 100%">
|
||||
<div class="plan-schedule">
|
||||
<title-bar ref="titleBar" @back="back" />
|
||||
<menu-bar ref="menuBar" :line-code="lineCode" @dispatchDialog="dispatchDialog" />
|
||||
<schedule ref="schedule" :group="group" :line-code="lineCode" :max-height="height" :max-width="width" />
|
||||
@ -45,10 +45,10 @@ export default {
|
||||
return this.$route.query.skinCode;
|
||||
},
|
||||
width() {
|
||||
return this.$store.state.app.width;
|
||||
return this.$store.state.app.width > 1920 ? 1920 : this.$store.state.app.width;
|
||||
},
|
||||
height() {
|
||||
return this.$store.state.app.height;
|
||||
return this.$store.state.app.height > 1080 ? 1080 : this.$store.state.app.height;
|
||||
},
|
||||
lineCode() {
|
||||
return this.$route.query.lineCode;
|
||||
@ -85,6 +85,7 @@ export default {
|
||||
.plan-schedule {
|
||||
position: absolute;
|
||||
background: gray;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.plan-schedule .pop-menu {
|
||||
|
@ -50,7 +50,7 @@ export default {
|
||||
#PlanTitleBar {
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
position: absolute;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: $height;
|
||||
line-height: $height;
|
||||
|
Loading…
Reference in New Issue
Block a user