| | |
| | | </template> |
| | | |
| | | <script> |
| | | import axiosInstance from '../../../utils/request.js' |
| | | import axiosInstanceInstance from '../../../utils/request.js' |
| | | import * as XLSX from 'xlsx/xlsx.mjs'; |
| | | export default { |
| | | data() { |
| | |
| | | }, |
| | | mounted(){ |
| | | //发送一部请求,获取数据 |
| | | axiosInstance.get("/data/id").then((result)=>{ |
| | | axiosInstanceInstance.get("/data/id").then((result)=>{ |
| | | this.tableData=result.data.data |
| | | //this.tableData=result.data.data.rows 当访问/tiaojian 时 |
| | | this.total = this.tableData.length; |
| | |
| | | params['end'] = this.form.end; |
| | | } |
| | | |
| | | axiosInstance.get('http://192.168.0.144:8080/data/id', { |
| | | axiosInstanceInstance.get('/data/id', { |
| | | params: params |
| | | }).then(response => { |
| | | this.tableData = response.data.data; |