Commit d4dd5029 authored by xinzhedeai's avatar xinzhedeai

fix: merge recolve

parents 8f3aeeb7 c11e840d
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期" placeholder="选择日期"
style="margin-left: 40px;"
></el-date-picker> ></el-date-picker>
<span slot="footer"> <span slot="footer">
<el-button @click="exportDialogVisible = false">取消</el-button> <el-button @click="exportDialogVisible = false">取消</el-button>
...@@ -112,7 +113,8 @@ export default { ...@@ -112,7 +113,8 @@ export default {
return { return {
exportDialogVisible: false, exportDialogVisible: false,
exportDate: "", exportDate: "",
// 根路径
baseURL: process.env.VUE_APP_BASE_API,
// 总条数 // 总条数
total: 0, total: 0,
dmList: [], dmList: [],
...@@ -193,8 +195,14 @@ export default { ...@@ -193,8 +195,14 @@ export default {
this.queryParams.deviceName =""; this.queryParams.deviceName ="";
this.queryParams.createTime =""; this.queryParams.createTime ="";
this.allData() this.allData()
},
/** 导出按钮操作 */
handleExport() {
this.download('business/tun/data/exportData', {
...this.queryParams,
day: this.exportDate,
}, `断面收敛_${new Date().getTime()}.xlsx`)
} }
} }
}; };
</script> </script>
......
...@@ -237,6 +237,7 @@ ...@@ -237,6 +237,7 @@
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期" placeholder="选择日期"
style="margin-left: 40px;"
></el-date-picker> ></el-date-picker>
<span slot="footer"> <span slot="footer">
<el-button @click="exportDialogVisible = false">取消</el-button> <el-button @click="exportDialogVisible = false">取消</el-button>
...@@ -436,7 +437,7 @@ ...@@ -436,7 +437,7 @@
day: this.exportDate, day: this.exportDate,
...this.queryParams, ...this.queryParams,
}, },
`szData_${new Date().getTime()}.xlsx` `环境监测_${new Date().getTime()}.xlsx`
); );
this.exportDialogVisible = false this.exportDialogVisible = false
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment