2020-10-14 18:50:03 +08:00
|
|
|
<template>
|
|
|
|
<div class="plan-tool">
|
|
|
|
<schedule
|
|
|
|
ref="schedule"
|
|
|
|
:line-code="lineCode"
|
|
|
|
:plan-convert="PlanConvert"
|
|
|
|
:max-height="height"
|
|
|
|
:max-width="width"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Schedule from './schedule';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Schedule
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
PlanConvert: {}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
lineCode() {
|
|
|
|
return '00';
|
|
|
|
},
|
|
|
|
width() {
|
2020-10-15 16:05:55 +08:00
|
|
|
return this.$store.state.app.width - 2;
|
2020-10-14 18:50:03 +08:00
|
|
|
},
|
|
|
|
height() {
|
2020-10-15 16:05:55 +08:00
|
|
|
return this.$store.state.app.height - 72;
|
2020-10-14 18:50:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
2020-10-16 15:40:04 +08:00
|
|
|
document.title = '运行图编辑工具'
|
|
|
|
this.PlanConvert = this.$theme.loadPlanConvert(this.lineCode);
|
|
|
|
// const project = getSessionStorage('project');
|
|
|
|
// if (project) {
|
|
|
|
// document.querySelector("link[rel*='icon']").href =;
|
|
|
|
// }
|
2020-10-14 18:50:03 +08:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
setPosition() {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$refs.schedule.setPosition();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
dispatchDialog(dialogObj) {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
if (this.$refs[dialogObj.name]) {
|
|
|
|
this.$refs[dialogObj.name].doShow(dialogObj.params);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
dispatchOperate(operateObj) {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
if (this.$refs[operateObj.dialogName]) {
|
|
|
|
this.$refs[operateObj.dialogName][operateObj.operate](operateObj.params);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.plan-tool {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.plan-tool .pop-menu {
|
|
|
|
background: #F0F0F0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.plan-tool .pop-menu span {
|
|
|
|
color: #000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.plan-tool .system-close {
|
|
|
|
cursor: pointer;
|
|
|
|
height: 25px;
|
|
|
|
width: 25px;
|
|
|
|
background: -webkit-linear-gradient(#CD98A0, #C27D6E, #B63022, #C68770);
|
|
|
|
background: -o-linear-gradient(#CD98A0, #C27D6E, #B63022, #C68770);
|
|
|
|
background: -moz-linear-gradient(#CD98A0, #C27D6E, #B63022, #C68770);
|
|
|
|
background: linear-gradient(#CD98A0, #C27D6E, #B63022, #C68770);
|
|
|
|
border: 1px solid white;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.plan-tool .system-close::before {
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
font-size: x-large;
|
|
|
|
}
|
|
|
|
|
|
|
|
.planEdit__tool {
|
|
|
|
overflow: hidden !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|