| | |
| | | // 根据id查询记录 |
| | | export function getHonor(id) { |
| | | return request({ |
| | | url: '/zHonor/id=${id}', |
| | | url: '/zHonor/'+ id, |
| | | method: 'get', |
| | | |
| | | }) |
| | |
| | | data: data |
| | | }) |
| | | } |
| | | //上传文件 |
| | | export function enload(data) { |
| | | return request({ |
| | | url: '/zIdea/importData', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | //下载文件 |
| | | export function download(data) { |
| | | return request({ |
| | |
| | | responseType: 'blob' |
| | | }) |
| | | } |
| | | //导入模板 |
| | | export function downloadModel(data) { |
| | | return request({ |
| | | url: '/zIdea/model', |
| | | method: 'get', |
| | | params: data, |
| | | responseType: 'blob' |
| | | }) |
| | | } |
| | | // //导入模板 |
| | | // export function downloadModel(data) { |
| | | // return request({ |
| | | // url: '/zIdea/model', |
| | | // method: 'get', |
| | | // params: data, |
| | | // responseType: 'blob' |
| | | // }) |
| | | // } |
| | |
| | | |
| | | |
| | | //导入接口函数 |
| | | import {listWish, getWish, addWish,updateWish, delWish,uploadPic,downloadModel} from "@/api/wish/index"; |
| | | import {enload} from "@/api/doctor"; |
| | | import {listWish, getWish, addWish,updateWish, delWish,uploadPic,downloadModel,enload} from "@/api/wish/index"; |
| | | |
| | | import {Message} from "element-ui"; |
| | | |
| | | |
| | |
| | | |
| | | if(Ids.length==0) |
| | | { |
| | | this.download('zIdea/export', { |
| | | this.download('/zIdea/export', { |
| | | ...this.queryParams |
| | | }, `zIdea_${new Date().getTime()}.xlsx`) |
| | | }else{ |
| | | this.download('zIdea/export1/'+Ids, { |
| | | this.download('/zIdea/export1/'+Ids, { |
| | | }, `zIdea_${new Date().getTime()}.xlsx`) |
| | | } |
| | | }, |