From eb7f7333a40291f2e5e71e3ef9b101d3cb06da3d Mon Sep 17 00:00:00 2001
From: guoshipeng <3194674006@qq.com>
Date: Wed, 09 Aug 2023 09:18:09 +0800
Subject: [PATCH] fix:五分钟报
---
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