diff --git a/src/views/modules/workRecord/weekrecordinfo.vue b/src/views/modules/workRecord/weekrecordinfo.vue index 1bdebf50..3d98f12a 100644 --- a/src/views/modules/workRecord/weekrecordinfo.vue +++ b/src/views/modules/workRecord/weekrecordinfo.vue @@ -185,3 +185,11 @@ export default { } } + diff --git a/src/views/modules/workRecord/weekrecordinfoDetail.vue b/src/views/modules/workRecord/weekrecordinfoDetail.vue index 0d416db7..be21d8d6 100644 --- a/src/views/modules/workRecord/weekrecordinfoDetail.vue +++ b/src/views/modules/workRecord/weekrecordinfoDetail.vue @@ -13,7 +13,7 @@
- + @@ -24,7 +24,7 @@ 1220) { + this.colspan = 8 + } else if (document.body.clientWidth < 1220 && document.body.clientWidth > 750) { + this.colspan = 12 + } else if (document.body.clientWidth < 750) { + this.colspan = 24 + } else { + this.colspan = 6 + } + window.onresize = () => { + if (document.body.clientWidth < 1530 && document.body.clientWidth > 1220) { + this.colspan = 8 + } else if (document.body.clientWidth < 1220 && document.body.clientWidth > 750) { + this.colspan = 12 + } else if (document.body.clientWidth < 750) { + this.colspan = 24 + } else { + this.colspan = 6 + } + } + } }, methods: { init () {