|
|
@@ -108,8 +108,7 @@ export default {
|
|
|
dateYear: null,
|
|
|
dateWeek: null,
|
|
|
weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
|
|
|
- decorationColor: ['#568aea', '#000000'],
|
|
|
- fromComponent: ''
|
|
|
+ decorationColor: ['#568aea', '#000000']
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -117,14 +116,6 @@ export default {
|
|
|
leftdown1,
|
|
|
leftup1
|
|
|
},
|
|
|
- beforeRouteEnter(to, from, next) {
|
|
|
- next(vm => {
|
|
|
- console.log(from.meta.title)
|
|
|
- if (from.meta.title == '组装看板' || from.meta.title == '车间看板') {
|
|
|
- vm.fromComponent = from.meta.title;
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
created() {
|
|
|
this.isFullScreen = document.fullscreenElement;
|
|
|
},
|
|
|
@@ -139,12 +130,6 @@ export default {
|
|
|
type: 'warning'
|
|
|
});
|
|
|
})
|
|
|
-
|
|
|
- if (this.fromComponent) {
|
|
|
- setTimeout(() => {
|
|
|
- this.$router.go(-1);
|
|
|
- }, 60000)
|
|
|
- }
|
|
|
},
|
|
|
beforeDestroy () {
|
|
|
clearInterval(this.timing);
|