| | |
| | | plain |
| | | icon="Download" |
| | | @click="handleExport" |
| | | v-hasPermi="['apsPartRouteStat:apsPartRouteStat:export']" |
| | | v-hasPermi="['apsPartRouteStat:export']" |
| | | >导出</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="info" |
| | | plain |
| | | icon="Refresh" |
| | | @click="handleRefresh" |
| | | v-hasPermi="['apsPartRouteStat:export']" |
| | | >更新</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <vxe-grid ref="gridRef" v-bind="gridOptions"></vxe-grid> |
| | | <vxe-grid ref="gridRef" v-bind="gridOptions" :loading="loading"></vxe-grid> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup name="apsPartRouteStat"> |
| | | import { query } from "@/api/apsPartRouteStat/apsPartRouteStat"; |
| | | import { query,updateStat } from "@/api/apsPartRouteStat/apsPartRouteStat"; |
| | | import { ref } from "vue"; |
| | | import * as XLSX from 'xlsx'; |
| | | |
| | |
| | | XLSX.writeFile(wb, `apsPartRouteStat_${new Date().getTime()}.xlsx`); |
| | | } |
| | | |
| | | /** 刷新按钮操作 */ |
| | | function handleRefresh(){ |
| | | updateStat().then(response => { |
| | | console.log(response); |
| | | if(response.code == '200'){ |
| | | getList(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | getList(); |
| | | </script> |