@focus-teach/ui 1.0.46 → 1.0.48

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 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", {
@@ -261,6 +306,21 @@ export function getTopic(options, success, error) {
261
306
  error && error(res)
262
307
  })
263
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
+ }
264
324
  //难度知识点是否必填【hq_studyfun】(sunqb)
265
325
  export function getKldftNecessary(options, success, error) {
266
326
  axios.get("/kldft/necessary", {
@@ -272,6 +332,21 @@ export function getKldftNecessary(options, success, error) {
272
332
  error && error(res)
273
333
  })
274
334
  }
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
+ }
275
350
 
276
351
  //获取题目
277
352
  export function getQuestion(options, success, error) {