@focus-teach/ui 1.0.38 → 1.0.40
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/README.md +1 -1
- package/api/index.js +139 -1
- package/lib/img/empty.fcdd9ba5.png +0 -0
- package/lib/ui.common.js +32757 -19880
- package/lib/ui.css +1 -1
- package/lib/ui.umd.js +32757 -19880
- package/lib/ui.umd.min.js +13 -6
- package/package.json +2 -2
- package/utils/common.js +290 -0
package/README.md
CHANGED
package/api/index.js
CHANGED
|
@@ -785,5 +785,143 @@ export function getAnswerDownload(options, success, error) {
|
|
|
785
785
|
resolve([err, null])
|
|
786
786
|
}
|
|
787
787
|
);
|
|
788
|
-
})
|
|
788
|
+
})
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
//下载试卷>是否下载听力
|
|
792
|
+
export function getPaperAudio (options) {
|
|
793
|
+
return new Promise((resolve) => {
|
|
794
|
+
axios.get("/ybk/editor/exam/check-audio", { params: options }).then(
|
|
795
|
+
(res) => {
|
|
796
|
+
resolve([null, res])
|
|
797
|
+
},
|
|
798
|
+
(err) => {
|
|
799
|
+
resolve([err, null])
|
|
800
|
+
}
|
|
801
|
+
);
|
|
802
|
+
})}
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
// 获取题目难度列表
|
|
806
|
+
export function getItemDiffList(options) {
|
|
807
|
+
return new Promise((resolve) => {
|
|
808
|
+
axios.get("/ybk/item/difficult", { params: options }).then(
|
|
809
|
+
(res) => {
|
|
810
|
+
resolve([null, res])
|
|
811
|
+
},
|
|
812
|
+
(err) => {
|
|
813
|
+
resolve([err, null])
|
|
814
|
+
}
|
|
815
|
+
);
|
|
816
|
+
})
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
//获取推荐变式题
|
|
820
|
+
export function getJYWVariantList(options,) {
|
|
821
|
+
return new Promise((resolve) => {
|
|
822
|
+
axios.post("/ybk/variant/list-similar", options).then(
|
|
823
|
+
(res) => {
|
|
824
|
+
resolve([null, res])
|
|
825
|
+
},
|
|
826
|
+
(err) => {
|
|
827
|
+
resolve([err, null])
|
|
828
|
+
}
|
|
829
|
+
);
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
//保存或者移除变式题目
|
|
834
|
+
export function saveOrRemoveVariantItem(options,) {
|
|
835
|
+
return new Promise((resolve) => {
|
|
836
|
+
axios.post("/ybk/variant/operation", options).then(
|
|
837
|
+
(res) => {
|
|
838
|
+
resolve([null, res])
|
|
839
|
+
},
|
|
840
|
+
(err) => {
|
|
841
|
+
resolve([err, null])
|
|
842
|
+
}
|
|
843
|
+
);
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
//查询菁优网答案与解析
|
|
848
|
+
export function getJYWVariantDetailList(options,) {
|
|
849
|
+
return new Promise((resolve) => {
|
|
850
|
+
axios.post("/ybk/variant/similar-details", options).then(
|
|
851
|
+
(res) => {
|
|
852
|
+
resolve([null, res])
|
|
853
|
+
},
|
|
854
|
+
(err) => {
|
|
855
|
+
resolve([err, null])
|
|
856
|
+
}
|
|
857
|
+
);
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
//引用菁优网变式题到教育系统
|
|
862
|
+
export function getItemToVariant(options) {
|
|
863
|
+
return new Promise((resolve) => {
|
|
864
|
+
axios.post("/ybk/item/quote", options).then(
|
|
865
|
+
(res) => {
|
|
866
|
+
resolve([null, res])
|
|
867
|
+
},
|
|
868
|
+
(err) => {
|
|
869
|
+
resolve([err, null])
|
|
870
|
+
}
|
|
871
|
+
);
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
//根据试卷id,题目id获取变式题列表
|
|
876
|
+
export function getVariantList(options){
|
|
877
|
+
return new Promise((resolve) => {
|
|
878
|
+
axios.get("/ybk/variant/list", { params: options }).then(
|
|
879
|
+
(res) => {
|
|
880
|
+
resolve([null, res])
|
|
881
|
+
},
|
|
882
|
+
(err) => {
|
|
883
|
+
resolve([err, null])
|
|
884
|
+
}
|
|
885
|
+
);
|
|
886
|
+
})
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
//获取题目
|
|
890
|
+
export function getItem(itemFileId) {
|
|
891
|
+
return new Promise((resolve) => {
|
|
892
|
+
axios.get(`/files/${itemFileId}?type=2`).then(
|
|
893
|
+
(res) => {
|
|
894
|
+
resolve([null, res])
|
|
895
|
+
},
|
|
896
|
+
(err) => {
|
|
897
|
+
resolve([err, null])
|
|
898
|
+
}
|
|
899
|
+
);
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
//上下移动变式题
|
|
903
|
+
export function moveVariantItem(options) {
|
|
904
|
+
return new Promise((resolve) => {
|
|
905
|
+
axios.post('/ybk/variant/reorder',options).then(
|
|
906
|
+
(res) => {
|
|
907
|
+
resolve([null, res])
|
|
908
|
+
},
|
|
909
|
+
(err) => {
|
|
910
|
+
resolve([err, null])
|
|
911
|
+
}
|
|
912
|
+
);
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
//获取studyfun环境
|
|
916
|
+
export function getStudyfunEnv(options) {
|
|
917
|
+
return new Promise((resolve) => {
|
|
918
|
+
axios.get('/env/common/check').then(
|
|
919
|
+
(res) => {
|
|
920
|
+
resolve([null, res])
|
|
921
|
+
},
|
|
922
|
+
(err) => {
|
|
923
|
+
resolve([err, null])
|
|
924
|
+
}
|
|
925
|
+
);
|
|
926
|
+
});
|
|
789
927
|
}
|
|
Binary file
|