@focus-teach/ui 1.1.0 → 1.1.2
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 +47 -17
- package/lib/ui.common.js +8038 -18102
- package/lib/ui.css +1 -1
- package/lib/ui.umd.js +8038 -18102
- package/lib/ui.umd.min.js +7 -15
- package/package.json +3 -3
package/api/index.js
CHANGED
|
@@ -878,12 +878,12 @@ export function getTeachaidYearGrade(options, success, error) {
|
|
|
878
878
|
export function getTeachaidYearGradeApi(options) {
|
|
879
879
|
return new Promise((resolve) => {
|
|
880
880
|
axios.get("/teach-aid/list/year-grade", { params: options }).then(
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
881
|
+
(res) => {
|
|
882
|
+
resolve([null, res])
|
|
883
|
+
},
|
|
884
|
+
(err) => {
|
|
885
|
+
resolve([err, null])
|
|
886
|
+
}
|
|
887
887
|
);
|
|
888
888
|
})
|
|
889
889
|
}
|
|
@@ -1307,8 +1307,8 @@ export function getCustomCardRecord(options) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
//获取用户搜索内容
|
|
1309
1309
|
export function getSearchList(options, success, error) {
|
|
1310
|
-
axios.get("/paper-exam/user/like-name", {params: options})
|
|
1311
|
-
|
|
1310
|
+
axios.get("/paper-exam/user/like-name", { params: options })
|
|
1311
|
+
.then((res) => {
|
|
1312
1312
|
success && success(res)
|
|
1313
1313
|
}, (res) => {
|
|
1314
1314
|
error && error(res)
|
|
@@ -1471,15 +1471,15 @@ export function getKnowledgeListApi(options) {
|
|
|
1471
1471
|
|
|
1472
1472
|
|
|
1473
1473
|
//【同步】hq_studyfun 获取历史记录
|
|
1474
|
-
export function getUserOperateApi(options){
|
|
1474
|
+
export function getUserOperateApi(options) {
|
|
1475
1475
|
return new Promise((resolve) => {
|
|
1476
1476
|
axios.get("/user/operate/get", { params: options }).then(
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1477
|
+
(res) => {
|
|
1478
|
+
resolve([null, res])
|
|
1479
|
+
},
|
|
1480
|
+
(err) => {
|
|
1481
|
+
resolve([err, null])
|
|
1482
|
+
}
|
|
1483
1483
|
);
|
|
1484
1484
|
})
|
|
1485
1485
|
}
|
|
@@ -1489,11 +1489,41 @@ export function setUserOperateApi(options) {
|
|
|
1489
1489
|
return new Promise((resolve) => {
|
|
1490
1490
|
axios.post("/user/operate/save", options).then(
|
|
1491
1491
|
(res) => {
|
|
1492
|
-
resolve([null,res]);
|
|
1492
|
+
resolve([null, res]);
|
|
1493
1493
|
},
|
|
1494
1494
|
(err) => {
|
|
1495
|
-
resolve([err,null]);
|
|
1495
|
+
resolve([err, null]);
|
|
1496
1496
|
}
|
|
1497
1497
|
);
|
|
1498
1498
|
});
|
|
1499
1499
|
}
|
|
1500
|
+
//检查设置得分规则是否完成
|
|
1501
|
+
export function checkScoreRuleApi(options) {
|
|
1502
|
+
return new Promise((resolve) => {
|
|
1503
|
+
axios.get("/scanner/task/score/rule/check-save", { params: options }).then(
|
|
1504
|
+
(res) => {
|
|
1505
|
+
resolve([null, res])
|
|
1506
|
+
},
|
|
1507
|
+
(err) => {
|
|
1508
|
+
resolve([err, null])
|
|
1509
|
+
}
|
|
1510
|
+
);
|
|
1511
|
+
})
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
//获取教材列表
|
|
1515
|
+
export function getMaterialData(options, success, error) {
|
|
1516
|
+
return new Promise(resolve => {
|
|
1517
|
+
axios.get("/ybk/editor/data", {
|
|
1518
|
+
params: options
|
|
1519
|
+
}).then(
|
|
1520
|
+
(res) => {
|
|
1521
|
+
resolve([null, res])
|
|
1522
|
+
},
|
|
1523
|
+
(err) => {
|
|
1524
|
+
resolve([err, null])
|
|
1525
|
+
}
|
|
1526
|
+
);
|
|
1527
|
+
})
|
|
1528
|
+
|
|
1529
|
+
}
|