Tcsm
2023-07-30 cfa5f387337a497fed7e70775855d93f7cb6addf
7.30提交
3个文件已修改
36 ■■■■■ 已修改文件
ruoyi-ui/src/api/honor/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/wish/index.js 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/wish/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/api/honor/index.js
@@ -11,7 +11,7 @@
// 根据id查询记录
export function getHonor(id) {
  return request({
    url: '/zHonor/id=${id}',
    url: '/zHonor/'+ id,
    method: 'get',
  })
ruoyi-ui/src/api/wish/index.js
@@ -53,6 +53,14 @@
    data: data
  })
}
//上传文件
export function enload(data) {
  return request({
    url: '/zIdea/importData',
    method: 'post',
    data: data
  })
}
//下载文件
export function download(data) {
  return request({
@@ -62,12 +70,12 @@
    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'
//   })
// }
ruoyi-ui/src/views/wish/index.vue
@@ -395,8 +395,8 @@
//导入接口函数
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";
@@ -783,11 +783,11 @@
      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`)
      }
    },