2023西安数博会CIM演示-【前端】-Web
AdaKing88
2023-08-21 bc03b832caa49bbcd2674fe4cae3701b5059bf95
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// /*
//  * @Descripttion:
//  * @version: 1.0.0
//  * @Author: glc
//  * @Date: 2023-02-26 14:26:06
//  * @LastEditors: Andy
//  * @LastEditTime: 2023-02-26 14:27:34
//  */
// import request from "@/utils/request";
 
// export function getMaterialByCaseId(params) {
//   return request.get("/cim/material/getMaterialByCaseId", { params: params });
// }
 
// export function saveOrUpdateMaterial(params) {
//   return request({
//     url: "/cim/material/saveOrUpdateMaterial",
//     headers: { 'Content-Type': 'application/json;charset=UTF-8' },
//     method: 'post',
//     data: params
//   });
// }
 
// export function getCaseList(params) {
//   return request({
//     url: "/cim/material/case/getCaseList",
//     headers: { 'Content-Type': 'application/json;charset=UTF-8' },
//     method: 'post',
//     data: params
//   });
// }
 
// export function saveCase(params) {
//   return request({
//     url: "/cim/material/case/saveCase",
//     headers: { 'Content-Type': 'application/json;charset=UTF-8' },
//     method: 'post',
//     data: params
//   });
// }
 
// export function updateCase(params) {
//   return request({
//     url: "/cim/material/case/updateCase",
//     headers: { 'Content-Type': 'application/json;charset=UTF-8' },
//     method: 'post',
//     data: params
//   });
// }
 
// export function setDefaultCase(params) {
//   return request({
//     url: "/cim/material/case/saveDefaultCase",
//     headers: { 'Content-Type': 'application/json;charset=UTF-8' },
//     method: 'post',
//     data: params
//   });
// }
// export function deleteCase(params) {
//   return request({
//     url: "/cim/material/case/deleteCase?id=" + params.id,
//     method: 'get'
//   });
// }
 
/*
 * @Descripttion:
 * @version: 1.0.0
 * @Author: glc
 * @Date: 2023-02-26 14:26:06
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-26 14:27:34
 */
import request from "@/utils/request";
 
export function getMaterialByCaseId(params) {
  return request.get("/dataapi/scene/material/getMaterialByCaseId", { params: params });
}
 
export function saveOrUpdateMaterial(params) {
  return request({
    url: "/dataapi/scene/material/saveOrUpdateMaterial",
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
    method: 'post',
    data: params
  });
}
 
export function getCaseList(params) {
  return request({
    url: "/dataapi/scene/material/case/getCaseList",
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
    method: 'post',
    data: params
  });
}
 
export function saveCase(params) {
  return request({
    url: "/dataapi/scene/material/case/saveCase",
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
    method: 'post',
    data: params
  });
}
 
export function updateCase(params) {
  return request({
    url: "/dataapi/scene/material/case/updateCase",
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
    method: 'post',
    data: params
  });
}
 
export function setDefaultCase(params) {
  return request({
    url: "/dataapi/scene/material/case/saveDefaultCase",
    headers: { 'Content-Type': 'application/json;charset=UTF-8' },
    method: 'post',
    data: params
  });
}
export function deleteCase(params) {
  return request({
    url: "/dataapi/scene/material/case/deleteCase?id=" + params.id,
    method: 'get'
  });
}