feige
2024-03-04 0947adf188a83eecf0a6a545cea25c97f7ce17f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import request from '@/utils/request'
 
// 查询所有荣誉证书
export function listHonor(query) {
  return request({
    url: '/zHonor/all',
    method: 'get',
    params: query
  })
}
//名称数据
export function listType(query) {
  return request({
    url: '/zHonor/type',
    method: 'get',
    params: query
  })
}
// 根据id查询记录
export function getHonor(query) {
  return request({
    url: '/zHonor',
    method: 'get',
    params: query
  })
}
//新增荣誉证书
export function addHonor(data)
{
  return request({
    url: '/zHonor',
    method: 'post',
    data: data
  })
}
 
// 删除荣誉证书
export function delHonor(ids) {
  return request({
    url: '/zHonor/' + ids,
    method: 'delete'
  })
}
 
//修改荣誉证书
export function updateHonor(data) {
  return request({
    url: '/zHonor',
    method: 'put',
    data: data
  })
}
 
//上传文件
export function uploadPic(data) {
  return request({
    url: '/common/upload',
    method: 'post',
    data: data
  })
}
//下载文件
export function download(data) {
  return request({
    url: '/common/downLoadFile',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}
 
 
//上传文件
export function enload(data) {
  return request({
    url: '/zHonor/importData',
    method: 'post',
    data: data
  })
}
//拿到类别
export function getCategory()
{
  return request({
    url: '/zDict/byId',
    method: 'get',
    params: {'id':21}
  })
}