From b2bc0d8afe3976b42c7b8bbf068456393d7d24f3 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Fri, 10 Apr 2020 11:05:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=A8=E6=8A=A5=E9=A1=B5=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/workRecord/weekrecordinfo.vue | 8 +++++ .../workRecord/weekrecordinfoDetail.vue | 30 +++++++++++++++++-- 2 files changed, 35 insertions(+), 3 deletions(-) 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 () {