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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
| import createAxios from '@/utils/axios'
|
| // 产品提报
| const url: string = '/report/product'
|
| const productService = {
| // 获取列表 分页
| optionListUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/page`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 获取审核数量
| optionListCountUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/listCount`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 新增草稿
| optionCreateUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/create`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 新增富文本
| optionCreateDetailUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/createDetail`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 更新草稿
| optionUpdateUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/update`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 更新富文本
| optionUpdateDetailUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/updateDetail`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 获取图片URL
| getPicUrlUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `/admin/common/url`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 分类字典
| categoryListUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/categoryByParent`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 根据ID获取详情
| getIdListUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/get`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 删除列表
| deleteListUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/delete`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 发布范围下拉列表
| companyListUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `/admin/sysDepartment/list`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 保存文件-文档
| fileSaveListUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/createProductDocument`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 保存文件-视频
| videoSaveListUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/createProductVideo`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 保存产品试用信息
| saveProductProbationUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/saveProductProbation`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 根据ID查询产品试用信息
| getProbationByIdUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/getProbationById`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 提交
| submitUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/submit`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
|
| // 获取接入申请审核数量
| accessApplyListCountUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/accessApplyListCount`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
|
| // 获取接入申请列表 分页
| accessApplyListUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/accessApplyList`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
|
| // 根据产品id查询上传文档
| getDocByProductIdUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/getDocByProductId`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
|
| // 保存接受申请-基本信息
| accessApplyUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/accessApply`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
|
| // 保存接受申请-使用手册、技术手册
| createProductDocumentUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/createProductDocument`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
|
| // 查询上传文档
| getDocBySchemeIdUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/getDocByProductId`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 查询上传视频
| getVideoBySchemeIdUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/getVideoByProductId`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 查看接入申请
| queryAccessApplyUrl(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/queryAccessApply`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| // 撤回
| setWithdraw(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/withdraw`,
| headers: {
| 'Content-Type': 'application/json;charset=UTF-8',
| },
| data: data,
| }) as ApiPromise
| },
| getResourceCategory(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/resourceCategory`,
| data: data,
| }) as ApiPromise
| },
| //获取空模板
| getReadTemplate(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/readTemplate`,
| data: data,
| }) as ApiPromise
| },
| // 新增产品提报
| createProductInfo(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/addSecond`,
| data: data,
| }) as ApiPromise
| },
| getProductDetail(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/detailSecond`,
| data: data,
| }) as ApiPromise
| },
| updateProductInfo(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/updateSecond`,
| data: data,
| }) as ApiPromise
| },
| // 产品分类字典
| getProductDict(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/categoryListByParentCode`,
| data: data,
| }) as ApiPromise
| },
| // 产品分类新增的保存
| setProductAddCategory(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/addCategory`,
| data: data,
| }) as ApiPromise
| },
| // 产品分类修改的保存
| setProductUpdateCategory(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/updateCategory`,
| data: data,
| }) as ApiPromise
| },
| // 产品分类字典删除
| setProductDeleteCategory(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/deleteCategory`,
| data: data,
| }) as ApiPromise
| },
| // 获取产品分类字典详情
| getProductCategoryById(data: object = {}): ApiPromise {
| return createAxios({
| url: `${url}/getCategoryById`,
| data: data,
| }) as ApiPromise
| },
| }
|
| export default productService
|
|