Commit c11e840d authored by forevertyler's avatar forevertyler

add:export

parent 700509ec
......@@ -51,6 +51,13 @@
icon="el-icon-setting"
@click="resetTable"
>重置</el-button>
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出</el-button>
</el-form-item>
</el-form>
<el-table :data="dmList"
......@@ -91,6 +98,8 @@ export default {
dicts: ['microseismequipment'],
data() {
return {
// 根路径
baseURL: process.env.VUE_APP_BASE_API,
// 总条数
total: 0,
dmList: [],
......@@ -155,8 +164,13 @@ export default {
this.queryParams.deviceName ="";
this.queryParams.createTime ="";
this.allData()
},
/** 导出按钮操作 */
handleExport() {
this.download('business/tun/data/exportData', {
...this.queryParams
}, `断面收敛_${new Date().getTime()}.xlsx`)
}
}
};
</script>
......
......@@ -410,9 +410,9 @@
},
/** 导出按钮操作 */
handleExport() {
this.download('business/szData/export', {
this.download('business/szData/exportData', {
...this.queryParams
}, `szData_${new Date().getTime()}.xlsx`)
}, `环境监测_${new Date().getTime()}.xlsx`)
}
}
};
......
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