| | |
| | | import { getToken } from "@/utils/auth"; |
| | | import errorCode from "@/utils/errorCode"; |
| | | import { blobValidate } from "@/utils/ruoyi"; |
| | | import Vue from "vue"; |
| | | |
| | | const baseURL = process.env.VUE_APP_BASE_API; |
| | | let downloadLoadingInstance; |
| | |
| | | // 将文件转换为 Blob |
| | | const blob = await response.blob(); |
| | | // 使用 saveAs 保存文件 |
| | | saveAs(blob, filename); |
| | | saveAs(blob, name); |
| | | Message.success("数据导出成功"); |
| | | } catch (error) { |
| | | Message.error(error); |
| | |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | .box { |
| | | height: calc(100vh - 11em); |
| | | } |
| | | |
| | | .el-tabs>>>.el-tabs--border-card { |
| | | box-shadow: unset; |
| | | border: unset; |
| | |
| | | |
| | | .main { |
| | | display: flex; |
| | | padding: 15px 0; |
| | | padding-top: 10px; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .main_left { |
| | |
| | | background-color: #fff; |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: end; |
| | | justify-content: flex-end; |
| | | } |
| | | |
| | | .search_thing { |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row style="width: 100%; margin-top: 8px"> |
| | | <el-col :span="24" style="display: flex; align-items: center; justify-content: end"> |
| | | <el-col :span="24" style="display: flex; align-items: center; justify-content: flex-end"> |
| | | <el-button @click="clearProduct(1)" size="small" type="danger">重置单价</el-button> |
| | | <el-button @click="clearProduct(2)" size="small" type="danger">重置工时系数</el-button> |
| | | <el-button type="primary" size="small" @click="sectionUp(moreSelects)">设置区间</el-button> |