From c94ba268402dbea8817fe85e07971e078493fb62 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 16 May 2025 09:08:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E8=8A=AF=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E5=92=8C=E8=B4=A8=E6=A3=80=E7=BB=9F=E8=AE=A1=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bigScreen/index_gx.vue | 4 +- src/views/statistics/good_check_gx.vue | 97 +++++++++++++++++++++++++- 2 files changed, 97 insertions(+), 4 deletions(-) diff --git a/src/views/bigScreen/index_gx.vue b/src/views/bigScreen/index_gx.vue index 1a91e0f2..f91b42d1 100644 --- a/src/views/bigScreen/index_gx.vue +++ b/src/views/bigScreen/index_gx.vue @@ -1181,7 +1181,7 @@ export default { } .block1NumberWrap{ - width:7.5vw; + width:11vw; border: 1px solid rgba(54, 217, 187, 0.3); padding: 3px; text-align: center; @@ -1202,7 +1202,7 @@ export default { font-size: 0.8vh; } .block1Number{ - font-size: 1.6vh; + font-size: 3vh; vertical-align: bottom; margin: 0 0.5em; color: orange; diff --git a/src/views/statistics/good_check_gx.vue b/src/views/statistics/good_check_gx.vue index 4450ca46..655290e5 100644 --- a/src/views/statistics/good_check_gx.vue +++ b/src/views/statistics/good_check_gx.vue @@ -47,165 +47,242 @@ id="exportDiv" stripe > - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -222,7 +299,7 @@ export default { return { params: { ordering:'-last_time', - batch__startswith__in:'ZJ2,G05', + data__has_key:"尺寸检验_日期", }, query:{ batch__contains:'', @@ -234,10 +311,26 @@ export default { tableData:[], }; }, + mounted() { + let that = this; + let date = new Date(); + let year = date.getFullYear(); + let month = date.getMonth() + 1; + let day = date.getDate(); + month = month < 10 ? "0" + month : month; + day = day < 10 ? "0" + day : day; + let queryDate = year + "-" + month + "-" + day; + that.query.start_date = that.query.end_date = that.currentDate = queryDate; + }, methods: { handleQuery(){ this.$refs.table.queryData(this.query); }, + handleExport() { + this.exportLoading = true; + this.$XLSX("#exportDiv", "过程检验统计"); + this.exportLoading = false; + }, }, };