@focus-teach/ui 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/index.js +103 -1
- package/lib/ui.common.js +20176 -9541
- package/lib/ui.css +1 -1
- package/lib/ui.umd.js +20176 -9541
- package/lib/ui.umd.min.js +13 -5
- package/package.json +1 -1
package/api/index.js
CHANGED
|
@@ -105,6 +105,21 @@ export function getMaterialsGrades(options, success, error) {
|
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
|
+
//同步练习>试卷编辑>教材版本(张磊)
|
|
109
|
+
export function getMaterialsGradesApi(options) {
|
|
110
|
+
return new Promise(resolve => {
|
|
111
|
+
axios.get("/ybk/item/materialsGrades", {
|
|
112
|
+
params: options
|
|
113
|
+
}).then(
|
|
114
|
+
(res) => {
|
|
115
|
+
resolve([null, res])
|
|
116
|
+
},
|
|
117
|
+
(err) => {
|
|
118
|
+
resolve([err, null])
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
108
123
|
|
|
109
124
|
//同步练习>试卷编辑>课程集合(张磊)
|
|
110
125
|
export function getEditorCourse(options, success, error) {
|
|
@@ -119,6 +134,21 @@ export function getEditorCourse(options, success, error) {
|
|
|
119
134
|
}
|
|
120
135
|
);
|
|
121
136
|
}
|
|
137
|
+
//同步练习>试卷编辑>课程集合(张磊)
|
|
138
|
+
export function getEditorCourseApi(options) {
|
|
139
|
+
return new Promise(resolve => {
|
|
140
|
+
axios.get("/ybk/item/course", {
|
|
141
|
+
params: options
|
|
142
|
+
}).then(
|
|
143
|
+
(res) => {
|
|
144
|
+
resolve([null, res])
|
|
145
|
+
},
|
|
146
|
+
(err) => {
|
|
147
|
+
resolve([err, null])
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
})
|
|
151
|
+
}
|
|
122
152
|
|
|
123
153
|
//通用-获取国家省市
|
|
124
154
|
export function getProvince(options, success, error) {
|
|
@@ -209,6 +239,21 @@ export function getBankIndex(options, success, error) {
|
|
|
209
239
|
}
|
|
210
240
|
);
|
|
211
241
|
}
|
|
242
|
+
//题库列表查询【USP】(chenxianyong)
|
|
243
|
+
export function getBankIndexApi(options) {
|
|
244
|
+
return new Promise(resolve => {
|
|
245
|
+
axios.get("/ybk/item/index", {
|
|
246
|
+
params: options
|
|
247
|
+
}).then(
|
|
248
|
+
(res) => {
|
|
249
|
+
resolve([null, res])
|
|
250
|
+
},
|
|
251
|
+
(err) => {
|
|
252
|
+
resolve([err, null])
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
})
|
|
256
|
+
}
|
|
212
257
|
//题库分页查询【USP】(chenxianyong)
|
|
213
258
|
export function getBankData(options, success, error) {
|
|
214
259
|
axios.get("/ybk/item/bank", {
|
|
@@ -222,6 +267,21 @@ export function getBankData(options, success, error) {
|
|
|
222
267
|
}
|
|
223
268
|
);
|
|
224
269
|
}
|
|
270
|
+
//题库分页查询【USP】(chenxianyong)
|
|
271
|
+
export function getBankDataApi(options) {
|
|
272
|
+
return new Promise(resolve=>{
|
|
273
|
+
axios.get("/ybk/item/bank", {
|
|
274
|
+
params: options
|
|
275
|
+
}).then(
|
|
276
|
+
(res) => {
|
|
277
|
+
resolve([null,res])
|
|
278
|
+
},
|
|
279
|
+
(err) => {
|
|
280
|
+
resolve([err,null])
|
|
281
|
+
}
|
|
282
|
+
);
|
|
283
|
+
})
|
|
284
|
+
}
|
|
225
285
|
//通用-获取知识点【后台管理】(chenxianyong)
|
|
226
286
|
export function getKnowledge(options, success, error) {
|
|
227
287
|
axios.get("/item/common/kl", {
|
|
@@ -246,6 +306,21 @@ export function getTopic(options, success, error) {
|
|
|
246
306
|
error && error(res)
|
|
247
307
|
})
|
|
248
308
|
}
|
|
309
|
+
//通用-获取专题【USP】(张磊>chenxianyong)
|
|
310
|
+
export function getTopicApi(options) {
|
|
311
|
+
return new Promise(resolve => {
|
|
312
|
+
axios.get("/ybk/item/topic", {
|
|
313
|
+
params: options
|
|
314
|
+
}).then(
|
|
315
|
+
(res) => {
|
|
316
|
+
resolve([null, res])
|
|
317
|
+
},
|
|
318
|
+
(err) => {
|
|
319
|
+
resolve([err, null])
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
})
|
|
323
|
+
}
|
|
249
324
|
//难度知识点是否必填【hq_studyfun】(sunqb)
|
|
250
325
|
export function getKldftNecessary(options, success, error) {
|
|
251
326
|
axios.get("/kldft/necessary", {
|
|
@@ -257,7 +332,21 @@ export function getKldftNecessary(options, success, error) {
|
|
|
257
332
|
error && error(res)
|
|
258
333
|
})
|
|
259
334
|
}
|
|
260
|
-
|
|
335
|
+
//难度知识点是否必填【hq_studyfun】(sunqb)
|
|
336
|
+
export function getKldftNecessaryApi(options) {
|
|
337
|
+
return new Promise(resolve => {
|
|
338
|
+
axios.get("/kldft/necessary", {
|
|
339
|
+
params: options
|
|
340
|
+
}).then(
|
|
341
|
+
(res) => {
|
|
342
|
+
resolve([null, res])
|
|
343
|
+
},
|
|
344
|
+
(err) => {
|
|
345
|
+
resolve([err, null])
|
|
346
|
+
}
|
|
347
|
+
);
|
|
348
|
+
})
|
|
349
|
+
}
|
|
261
350
|
//获取题目
|
|
262
351
|
export function getQuestion(options, success, error) {
|
|
263
352
|
return new Promise((resolve) => {
|
|
@@ -276,6 +365,19 @@ export function getQuestion(options, success, error) {
|
|
|
276
365
|
);
|
|
277
366
|
});
|
|
278
367
|
}
|
|
368
|
+
//获取题目
|
|
369
|
+
export function getQuestionApi(options) {
|
|
370
|
+
return new Promise((resolve) => {
|
|
371
|
+
axios.get(`/files/${options.itemId}?type=2`).then(
|
|
372
|
+
(res) => {
|
|
373
|
+
resolve([null, res]);
|
|
374
|
+
},
|
|
375
|
+
(err) => {
|
|
376
|
+
resolve([err, null]);
|
|
377
|
+
}
|
|
378
|
+
);
|
|
379
|
+
});
|
|
380
|
+
}
|
|
279
381
|
export function getTitleHtml(options, params) {
|
|
280
382
|
return new Promise((resolve) => {
|
|
281
383
|
axios.get(`/files/${options.itemId}?type=2`, params, {
|