@focus-teach/ui 1.0.38 → 1.0.39

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  # 打包成组件库 npm run lib
4
4
 
5
5
  # 打包注意事项
6
- ## package.json中 打包的时候name为packageName 上传到npm库的时候name为buildName
6
+ ## package.json中 打包的时候name为packageName 上传到npm库的时候name为publishName
7
7
 
8
8
  ### ft-tabs
9
9
 
package/api/index.js CHANGED
@@ -786,4 +786,128 @@ export function getAnswerDownload(options, success, error) {
786
786
  }
787
787
  );
788
788
  })
789
+ }
790
+
791
+ // 获取题目难度列表
792
+ export function getItemDiffList(options) {
793
+ return new Promise((resolve) => {
794
+ axios.get("/ybk/item/difficult", { 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 getJYWVariantList(options,) {
807
+ return new Promise((resolve) => {
808
+ axios.post("/ybk/variant/list-similar", options).then(
809
+ (res) => {
810
+ resolve([null, res])
811
+ },
812
+ (err) => {
813
+ resolve([err, null])
814
+ }
815
+ );
816
+ });
817
+ }
818
+
819
+ //保存或者移除变式题目
820
+ export function saveOrRemoveVariantItem(options,) {
821
+ return new Promise((resolve) => {
822
+ axios.post("/ybk/variant/operation", options).then(
823
+ (res) => {
824
+ resolve([null, res])
825
+ },
826
+ (err) => {
827
+ resolve([err, null])
828
+ }
829
+ );
830
+ });
831
+ }
832
+
833
+ //查询菁优网答案与解析
834
+ export function getJYWVariantDetailList(options,) {
835
+ return new Promise((resolve) => {
836
+ axios.post("/ybk/variant/similar-details", options).then(
837
+ (res) => {
838
+ resolve([null, res])
839
+ },
840
+ (err) => {
841
+ resolve([err, null])
842
+ }
843
+ );
844
+ });
845
+ }
846
+
847
+ //引用菁优网变式题到教育系统
848
+ export function getItemToVariant(options) {
849
+ return new Promise((resolve) => {
850
+ axios.post("/ybk/item/quote", options).then(
851
+ (res) => {
852
+ resolve([null, res])
853
+ },
854
+ (err) => {
855
+ resolve([err, null])
856
+ }
857
+ );
858
+ });
859
+ }
860
+
861
+ //根据试卷id,题目id获取变式题列表
862
+ export function getVariantList(options){
863
+ return new Promise((resolve) => {
864
+ axios.get("/ybk/variant/list", { params: options }).then(
865
+ (res) => {
866
+ resolve([null, res])
867
+ },
868
+ (err) => {
869
+ resolve([err, null])
870
+ }
871
+ );
872
+ })
873
+ }
874
+
875
+ //获取题目
876
+ export function getItem(itemFileId) {
877
+ return new Promise((resolve) => {
878
+ axios.get(`/files/${itemFileId}?type=2`).then(
879
+ (res) => {
880
+ resolve([null, res])
881
+ },
882
+ (err) => {
883
+ resolve([err, null])
884
+ }
885
+ );
886
+ });
887
+ }
888
+ //上下移动变式题
889
+ export function moveVariantItem(options) {
890
+ return new Promise((resolve) => {
891
+ axios.post('/ybk/variant/reorder',options).then(
892
+ (res) => {
893
+ resolve([null, res])
894
+ },
895
+ (err) => {
896
+ resolve([err, null])
897
+ }
898
+ );
899
+ });
900
+ }
901
+ //获取studyfun环境
902
+ export function getStudyfunEnv(options) {
903
+ return new Promise((resolve) => {
904
+ axios.get('/env/common/check').then(
905
+ (res) => {
906
+ resolve([null, res])
907
+ },
908
+ (err) => {
909
+ resolve([err, null])
910
+ }
911
+ );
912
+ });
789
913
  }
Binary file