@focus-teach/ui 1.1.8 → 1.1.10

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
@@ -1514,6 +1514,45 @@ export function checkScoreRuleApi(options) {
1514
1514
  );
1515
1515
  })
1516
1516
  }
1517
+ //检查web端报告是否完成
1518
+ export function checkReportDataForWebApi(options) {
1519
+ return new Promise((resolve) => {
1520
+ axios.get("/rpt/intel/eval/check-report-data", { params: options }).then(
1521
+ (res) => {
1522
+ resolve([null, res])
1523
+ },
1524
+ (err) => {
1525
+ resolve([err, null])
1526
+ }
1527
+ );
1528
+ })
1529
+ }
1530
+ //检查web端报告是否完成
1531
+ export function checkReportDataForMiniApi(options) {
1532
+ return new Promise((resolve) => {
1533
+ axios.get("/wx/teacher/biz/check-report-data", { params: options }).then(
1534
+ (res) => {
1535
+ resolve([null, res])
1536
+ },
1537
+ (err) => {
1538
+ resolve([err, null])
1539
+ }
1540
+ );
1541
+ })
1542
+ }
1543
+ /* 撤回报告 */
1544
+ export function recallReportApi(options) {
1545
+ return new Promise((resolve) => {
1546
+ axios.post("/scanner/task/report-recall", options).then(
1547
+ (res) => {
1548
+ resolve([null, res]);
1549
+ },
1550
+ (err) => {
1551
+ resolve([err, null]);
1552
+ }
1553
+ );
1554
+ });
1555
+ }
1517
1556
 
1518
1557
  export function setHtml2Ocr(options, param) {
1519
1558
  const apiAxios = axios.create({
@@ -1611,3 +1650,43 @@ export function getAnswerDetailByRpt(options) {
1611
1650
  );
1612
1651
  })
1613
1652
  }
1653
+
1654
+ export function getTemplate(options) {
1655
+ return new Promise((resolve) => {
1656
+ axios.get("/ybk/get-template-score", { params: options }).then(
1657
+ (res) => {
1658
+ resolve([null, res])
1659
+ },
1660
+ (err) => {
1661
+ resolve([err, null])
1662
+ }
1663
+ );
1664
+ })
1665
+ }
1666
+ export function checkStudentImg(options, success, error) {
1667
+ return new Promise((resolve) => {
1668
+ axios.get("/scanner/task/check-student-img", { params:options}).then(res => {
1669
+ resolve([null, res])
1670
+ }).catch(err => {
1671
+ resolve([err, null])
1672
+ })
1673
+ });
1674
+ }
1675
+ export function excImg(options, success, error) {
1676
+ return new Promise((resolve) => {
1677
+ axios.get("/scanner/task/exc-img", { params:options}).then(res => {
1678
+ resolve([null, res])
1679
+ }).catch(err => {
1680
+ resolve([err, null])
1681
+ })
1682
+ });
1683
+ }
1684
+ export function getRecordId(params) {
1685
+ return new Promise(resolve=>{
1686
+ axios.get('/scanner/task/record/get', {params}).then(res=>{
1687
+ resolve([null,res])
1688
+ },err=>{
1689
+ resolve([err,null])
1690
+ })
1691
+ })
1692
+ }