2019-08-29 17:16:33 +08:00
|
|
|
<template>
|
|
|
|
<div class="script-parent">
|
2019-10-15 15:24:41 +08:00
|
|
|
<div class="script-card" :style="{width: widthLeft+'px'}">
|
|
|
|
<tip-script-record ref="tipTaskRecord" :group="group" :width="widthLeft" />
|
2019-08-29 17:16:33 +08:00
|
|
|
</div>
|
2019-10-15 15:24:41 +08:00
|
|
|
<drap-left :width-left="widthLeft" :min="780" :max="980" @drapWidth="drapWidth" />
|
2019-08-29 17:16:33 +08:00
|
|
|
<div class="script-display">
|
|
|
|
<display ref="display" :size="size" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Display from '@/views/display/index';
|
|
|
|
import TipScriptRecord from './tipScriptRecord';
|
2019-10-15 15:24:41 +08:00
|
|
|
import drapLeft from '@/views/components/drapLeft/index';
|
2019-08-29 17:16:33 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'ScriptDisplay',
|
|
|
|
components: {
|
|
|
|
Display,
|
2019-10-15 15:24:41 +08:00
|
|
|
TipScriptRecord,
|
|
|
|
drapLeft
|
2019-08-29 17:16:33 +08:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
2019-10-15 15:24:41 +08:00
|
|
|
widthLeft: 780,
|
2019-08-29 17:16:33 +08:00
|
|
|
size: {
|
|
|
|
width: document.documentElement.clientWidth - 780,
|
|
|
|
height: document.documentElement.clientHeight
|
|
|
|
},
|
2019-09-02 15:37:57 +08:00
|
|
|
group: this.$route.query.group
|
2019-08-29 17:16:33 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
},
|
2019-09-02 15:37:57 +08:00
|
|
|
watch: {
|
|
|
|
'$store.state.app.windowSizeCount': function() {
|
|
|
|
this.size = { width: this.$store.state.app.width - 780, height: this.$store.state.app.height};
|
2019-10-15 15:24:41 +08:00
|
|
|
},
|
|
|
|
widthLeft: function(val) {
|
|
|
|
this.size = { width: this.$store.state.app.width - val, height: this.$store.state.app.height};
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
drapWidth(width) {
|
|
|
|
this.widthLeft = Number(width);
|
2019-08-29 17:16:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
|
@import "src/styles/mixin.scss";
|
|
|
|
.script-parent {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row;
|
|
|
|
.script-card {
|
|
|
|
width: 780px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|