From bdc375c177dfff0d940560d83d5e3741a23fcda8 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Mon, 09 Oct 2023 10:19:45 +0800 Subject: [PATCH] Merge branch 'feature_1.0' --- src/views/sectionReport/index.vue | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/views/sectionReport/index.vue b/src/views/sectionReport/index.vue index 5b6c504..62a0d31 100644 --- a/src/views/sectionReport/index.vue +++ b/src/views/sectionReport/index.vue @@ -47,7 +47,7 @@ start-placeholder="������������" end-placeholder="������������" :picker-options="pickerOptions" - value-format="yyyy-MM-dd" + value-format="yyyy-MM-dd HH:mm:ss" > </el-date-picker> </div> @@ -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