@focus-teach/ui 1.0.45 → 1.0.46
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 +28 -0
- package/lib/ui.common.js +19509 -9129
- package/lib/ui.css +1 -1
- package/lib/ui.umd.js +19509 -9129
- package/lib/ui.umd.min.js +13 -5
- package/package.json +1 -1
package/api/index.js
CHANGED
|
@@ -222,6 +222,21 @@ export function getBankData(options, success, error) {
|
|
|
222
222
|
}
|
|
223
223
|
);
|
|
224
224
|
}
|
|
225
|
+
//题库分页查询【USP】(chenxianyong)
|
|
226
|
+
export function getBankDataApi(options) {
|
|
227
|
+
return new Promise(resolve=>{
|
|
228
|
+
axios.get("/ybk/item/bank", {
|
|
229
|
+
params: options
|
|
230
|
+
}).then(
|
|
231
|
+
(res) => {
|
|
232
|
+
resolve([null,res])
|
|
233
|
+
},
|
|
234
|
+
(err) => {
|
|
235
|
+
resolve([err,null])
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
})
|
|
239
|
+
}
|
|
225
240
|
//通用-获取知识点【后台管理】(chenxianyong)
|
|
226
241
|
export function getKnowledge(options, success, error) {
|
|
227
242
|
axios.get("/item/common/kl", {
|
|
@@ -276,6 +291,19 @@ export function getQuestion(options, success, error) {
|
|
|
276
291
|
);
|
|
277
292
|
});
|
|
278
293
|
}
|
|
294
|
+
//获取题目
|
|
295
|
+
export function getQuestionApi(options) {
|
|
296
|
+
return new Promise((resolve) => {
|
|
297
|
+
axios.get(`/files/${options.itemId}?type=2`).then(
|
|
298
|
+
(res) => {
|
|
299
|
+
resolve([null, res]);
|
|
300
|
+
},
|
|
301
|
+
(err) => {
|
|
302
|
+
resolve([err, null]);
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
});
|
|
306
|
+
}
|
|
279
307
|
export function getTitleHtml(options, params) {
|
|
280
308
|
return new Promise((resolve) => {
|
|
281
309
|
axios.get(`/files/${options.itemId}?type=2`, params, {
|