@focus-teach/ui 1.0.60 → 1.0.61
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 +44 -3
- package/lib/ui.common.js +50139 -60521
- package/lib/ui.css +1 -1
- package/lib/ui.umd.js +50139 -60521
- package/lib/ui.umd.min.js +7 -15
- package/package.json +1 -1
package/api/index.js
CHANGED
|
@@ -720,7 +720,19 @@ export function getTeachaidYearGrade(options, success, error) {
|
|
|
720
720
|
error();
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
|
-
|
|
723
|
+
//获取学年
|
|
724
|
+
export function getTeachaidYearGradeApi(options) {
|
|
725
|
+
return new Promise((resolve) => {
|
|
726
|
+
axios.get("/teach-aid/list/year-grade", { params: options }).then(
|
|
727
|
+
(res) => {
|
|
728
|
+
resolve([null, res])
|
|
729
|
+
},
|
|
730
|
+
(err) => {
|
|
731
|
+
resolve([err, null])
|
|
732
|
+
}
|
|
733
|
+
);
|
|
734
|
+
})
|
|
735
|
+
}
|
|
724
736
|
//获取教辅目录列表
|
|
725
737
|
export function getTeachaidCatalogue(options, success, error) {
|
|
726
738
|
return new Promise((resolve) => {
|
|
@@ -732,7 +744,7 @@ export function getTeachaidCatalogue(options, success, error) {
|
|
|
732
744
|
resolve([err, null])
|
|
733
745
|
}
|
|
734
746
|
);
|
|
735
|
-
})
|
|
747
|
+
})
|
|
736
748
|
}
|
|
737
749
|
|
|
738
750
|
//根据教辅id和目录获取试卷
|
|
@@ -1239,4 +1251,33 @@ export function getVariantCountApi(options){
|
|
|
1239
1251
|
}
|
|
1240
1252
|
);
|
|
1241
1253
|
})
|
|
1242
|
-
}
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
//【同步】hq_studyfun 获取历史记录
|
|
1258
|
+
export function getUserOperateApi(options){
|
|
1259
|
+
return new Promise((resolve) => {
|
|
1260
|
+
axios.get("/user/operate/get", { params: options }).then(
|
|
1261
|
+
(res) => {
|
|
1262
|
+
resolve([null, res])
|
|
1263
|
+
},
|
|
1264
|
+
(err) => {
|
|
1265
|
+
resolve([err, null])
|
|
1266
|
+
}
|
|
1267
|
+
);
|
|
1268
|
+
})
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
//hq_studyfun 保存记录 2云备课,3智慧教学
|
|
1272
|
+
export function setUserOperateApi(options) {
|
|
1273
|
+
return new Promise((resolve) => {
|
|
1274
|
+
axios.post("/user/operate/save", options).then(
|
|
1275
|
+
(res) => {
|
|
1276
|
+
resolve([null,res]);
|
|
1277
|
+
},
|
|
1278
|
+
(err) => {
|
|
1279
|
+
resolve([err,null]);
|
|
1280
|
+
}
|
|
1281
|
+
);
|
|
1282
|
+
});
|
|
1283
|
+
}
|