105 lines
2.4 KiB
Vue
105 lines
2.4 KiB
Vue
<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() {
|
|
return this.$store.state.app.width - 2;
|
|
},
|
|
height() {
|
|
return this.$store.state.app.height - 72;
|
|
}
|
|
},
|
|
created() {
|
|
document.title = '运行图编辑工具'
|
|
this.PlanConvert = this.$theme.loadPlanConvert(this.lineCode);
|
|
// const project = getSessionStorage('project');
|
|
// if (project) {
|
|
// document.querySelector("link[rel*='icon']").href =;
|
|
// }
|
|
},
|
|
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>
|