From df438ecd2e03416f0454cf98a667d9e53a1b5dd8 Mon Sep 17 00:00:00 2001 From: guoshipeng <3194674006@qq.com> Date: Mon, 09 Jan 2023 13:19:18 +0800 Subject: [PATCH] 1.空气质量报告模板修改,2.走航监测报告模板修改,3.道路尘负荷页面03区间修改,4.尘负荷走航报告模板名字修改 --- src/views/sectionReport/index.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/sectionReport/index.vue b/src/views/sectionReport/index.vue index 5b6c504..3bb6094 100644 --- a/src/views/sectionReport/index.vue +++ b/src/views/sectionReport/index.vue @@ -199,6 +199,7 @@ return time.getTime() > new Date() } }, + reportName: '' }, } }, @@ -310,8 +311,7 @@ this.valueDate.list1 = res.data.list1 this.valueDate.list2 = res.data.list2 this.valueDate.time = res.data.time - exportLUImage('/Section.docx', this.valueDate, `������������������������.docx`) - + exportLUImage('/Section.docx', this.valueDate, `${this.reportName}.docx`) }) }, handleRemove(file, fileList) { @@ -335,7 +335,7 @@ }, selectReport() { - if (this.carInput == '') { + if (this.carInput === '') { this.$message('������������������') return false } @@ -361,8 +361,13 @@ } info.map((v) => { console.log(v) - var time = v.time.substring(0, 10) - v.time = `������������������������������������${time}` + var time = v.time.substring(0, 10).split('-').join('') + if (this.cityChoose === 'gx') { + v.time = `���������������������������������������������������${time}` + } else { + v.time = `������������������������������������${time}` + } + this.reportName = v.time }) this.tableData = info }) @@ -445,4 +450,4 @@ /deep/.el-upload-list__item { width: 30%; } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0