@focus-teach/ui 1.0.0

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.
Files changed (286) hide show
  1. package/.browserslistrc +2 -0
  2. package/.history/package_20230625121458.json +45 -0
  3. package/.history/package_20230626100440.json +45 -0
  4. package/.history/package_20230626100445.json +45 -0
  5. package/.history/package_20230626100447.json +45 -0
  6. package/.history/package_20230626100636.json +45 -0
  7. package/.history/package_20230626100801.json +45 -0
  8. package/.history/package_20230626100803.json +45 -0
  9. package/.history/package_20230626100838.json +45 -0
  10. package/.history/package_20230626103314.json +45 -0
  11. package/.history/package_20230626103317.json +45 -0
  12. package/.history/packages/assets/css/reset-element_20230605134721.scss +167 -0
  13. package/.history/packages/assets/css/reset-element_20230614205652.scss +173 -0
  14. package/.history/packages/assets/css/reset-element_20230614205654.scss +173 -0
  15. package/.history/packages/assets/css/reset-element_20230614211242.scss +169 -0
  16. package/.history/packages/assets/css/reset-element_20230614211245.scss +167 -0
  17. package/.history/packages/exam-detail/src/index_20230607220441.vue +548 -0
  18. package/.history/packages/exam-detail/src/index_20230613115618.vue +548 -0
  19. package/.history/packages/exam-detail/src/index_20230613115623.vue +548 -0
  20. package/.history/packages/exam-detail/src/index_20230613115629.vue +548 -0
  21. package/.history/packages/exam-detail/src/index_20230613115631.vue +548 -0
  22. package/.history/packages/exam-detail/src/index_20230613115640.vue +548 -0
  23. package/.history/packages/exam-detail/src/index_20230613115651.vue +548 -0
  24. package/.history/packages/exam-detail/src/index_20230613115659.vue +548 -0
  25. package/.history/packages/exam-detail/src/index_20230613115750.vue +548 -0
  26. package/.history/packages/exam-detail/src/index_20230613115806.vue +548 -0
  27. package/.history/packages/exam-detail/src/index_20230613115811.vue +548 -0
  28. package/.history/packages/exam-detail/src/index_20230613115815.vue +548 -0
  29. package/.history/packages/exam-detail/src/index_20230613120250.vue +548 -0
  30. package/.history/packages/exam-detail/src/index_20230613120252.vue +548 -0
  31. package/.history/packages/exam-detail/src/index_20230613120257.vue +547 -0
  32. package/.history/packages/exam-detail/src/index_20230613120323.vue +547 -0
  33. package/.history/packages/exam-detail/src/index_20230613120327.vue +547 -0
  34. package/.history/packages/exam-detail/src/index_20230613120328.vue +547 -0
  35. package/.history/packages/exam-detail/src/index_20230613120915.vue +548 -0
  36. package/.history/packages/exam-detail/src/index_20230613120917.vue +548 -0
  37. package/.history/packages/exam-detail/src/index_20230613120922.vue +549 -0
  38. package/.history/packages/exam-detail/src/index_20230613120924.vue +549 -0
  39. package/.history/packages/exam-detail/src/index_20230613120928.vue +550 -0
  40. package/.history/packages/exam-detail/src/index_20230613120930.vue +550 -0
  41. package/.history/packages/exam-detail/src/index_20230613120936.vue +549 -0
  42. package/.history/packages/exam-detail/src/index_20230613120938.vue +550 -0
  43. package/.history/packages/exam-detail/src/index_20230613120942.vue +550 -0
  44. package/.history/packages/exam-detail/src/index_20230613120944.vue +550 -0
  45. package/.history/packages/exam-detail/src/index_20230613121331.vue +549 -0
  46. package/.history/packages/exam-detail/src/index_20230613121333.vue +548 -0
  47. package/.history/packages/exam-detail/src/index_20230613121335.vue +547 -0
  48. package/.history/packages/exam-detail/src/index_20230613121341.vue +547 -0
  49. package/.history/packages/exam-detail/src/index_20230613121344.vue +546 -0
  50. package/.history/packages/exam-detail/src/index_20230613153022.vue +546 -0
  51. package/.history/packages/exam-detail/src/index_20230613153027.vue +546 -0
  52. package/.history/packages/exam-detail/src/index_20230613153620.vue +546 -0
  53. package/.history/packages/exam-detail/src/index_20230613164734.vue +546 -0
  54. package/.history/packages/exam-detail/src/index_20230613164746.vue +546 -0
  55. package/.history/packages/exam-detail/src/index_20230613164756.vue +546 -0
  56. package/.history/packages/exam-drawer/src/index_20230607103301.vue +1470 -0
  57. package/.history/packages/exam-drawer/src/index_20230613090746.vue +1469 -0
  58. package/.history/packages/exam-drawer/src/index_20230613090759.vue +1469 -0
  59. package/.history/packages/exam-drawer/src/index_20230613090802.vue +1469 -0
  60. package/.history/packages/exam-drawer/src/index_20230613090809.vue +1469 -0
  61. package/.history/packages/exam-drawer/src/index_20230613090850.vue +1470 -0
  62. package/.history/packages/exam-drawer/src/index_20230613090919.vue +1487 -0
  63. package/.history/packages/exam-drawer/src/index_20230613090930.vue +1486 -0
  64. package/.history/packages/exam-drawer/src/index_20230613090935.vue +1485 -0
  65. package/.history/packages/exam-drawer/src/index_20230613091124.vue +1488 -0
  66. package/.history/packages/exam-drawer/src/index_20230613091140.vue +1488 -0
  67. package/.history/packages/exam-drawer/src/index_20230613091141.vue +1488 -0
  68. package/.history/packages/exam-drawer/src/index_20230613092108.vue +1489 -0
  69. package/.history/packages/exam-drawer/src/index_20230613092111.vue +1489 -0
  70. package/.history/packages/exam-drawer/src/index_20230613093130.vue +1490 -0
  71. package/.history/packages/exam-drawer/src/index_20230613093135.vue +1489 -0
  72. package/.history/packages/exam-drawer/src/index_20230613093149.vue +1488 -0
  73. package/.history/packages/exam-drawer/src/index_20230613093156.vue +1487 -0
  74. package/.history/packages/exam-drawer/src/index_20230613093159.vue +1486 -0
  75. package/.history/packages/exam-drawer/src/index_20230613093202.vue +1485 -0
  76. package/.history/packages/exam-drawer/src/index_20230613093204.vue +1484 -0
  77. package/.history/packages/exam-drawer/src/index_20230613093207.vue +1483 -0
  78. package/.history/packages/exam-drawer/src/index_20230613093209.vue +1482 -0
  79. package/.history/packages/exam-drawer/src/index_20230613093212.vue +1483 -0
  80. package/.history/packages/exam-drawer/src/index_20230613093217.vue +1483 -0
  81. package/.history/packages/exam-drawer/src/index_20230613093228.vue +1483 -0
  82. package/.history/packages/exam-drawer/src/index_20230613093229.vue +1483 -0
  83. package/.history/packages/exam-drawer/src/index_20230613093843.vue +1482 -0
  84. package/.history/packages/exam-drawer/src/index_20230613093847.vue +1481 -0
  85. package/.history/packages/exam-drawer/src/index_20230613093851.vue +1480 -0
  86. package/.history/packages/exam-drawer/src/index_20230613115708.vue +1480 -0
  87. package/.history/packages/exam-drawer/src/index_20230613115823.vue +1480 -0
  88. package/.history/packages/exam-drawer/src/index_20230613115825.vue +1480 -0
  89. package/.history/packages/exam-drawer/src/index_20230613115827.vue +1480 -0
  90. package/.history/packages/exam-drawer/src/index_20230613120908.vue +1481 -0
  91. package/.history/packages/exam-drawer/src/index_20230613120910.vue +1481 -0
  92. package/.history/packages/exam-drawer/src/index_20230613121320.vue +1480 -0
  93. package/.history/packages/exam-drawer/src/index_20230613121326.vue +1480 -0
  94. package/.history/packages/exam-drawer/src/index_20230613144244.vue +1479 -0
  95. package/.history/packages/exam-drawer/src/index_20230613144246.vue +1478 -0
  96. package/.history/packages/exam-drawer/src/index_20230613144248.vue +1477 -0
  97. package/.history/packages/exam-drawer/src/index_20230613144251.vue +1476 -0
  98. package/.history/packages/exam-drawer/src/index_20230613152608.vue +1476 -0
  99. package/.history/packages/header/src/index_20230605134719.vue +59 -0
  100. package/.history/packages/header/src/index_20230613115723.vue +59 -0
  101. package/.history/packages/header/src/index_20230613115727.vue +59 -0
  102. package/.history/packages/header/src/index_20230613115733.vue +59 -0
  103. package/.history/packages/header/src/index_20230613115736.vue +59 -0
  104. package/.history/packages/header/src/index_20230613120901.vue +60 -0
  105. package/.history/packages/header/src/index_20230613120903.vue +60 -0
  106. package/.history/packages/header/src/index_20230613121316.vue +59 -0
  107. package/.history/packages/question-drawer/src/index_20230607160653.vue +1735 -0
  108. package/.history/packages/question-drawer/src/index_20230607160720.scss +265 -0
  109. package/.history/packages/question-drawer/src/index_20230613090910.vue +1735 -0
  110. package/.history/packages/question-drawer/src/index_20230613090928.vue +1734 -0
  111. package/.history/packages/question-drawer/src/index_20230613090937.vue +1733 -0
  112. package/.history/packages/question-drawer/src/index_20230613115842.vue +1733 -0
  113. package/.history/packages/question-drawer/src/index_20230613115844.vue +1733 -0
  114. package/.history/packages/question-drawer/src/index_20230613115848.vue +1733 -0
  115. package/.history/packages/question-drawer/src/index_20230613115902.vue +1733 -0
  116. package/.history/packages/question-drawer/src/index_20230613115911.vue +1733 -0
  117. package/.history/packages/question-drawer/src/index_20230613115914.vue +1733 -0
  118. package/.history/packages/question-drawer/src/index_20230613115922.vue +1733 -0
  119. package/.history/packages/question-drawer/src/index_20230613120356.vue +1733 -0
  120. package/.history/packages/question-drawer/src/index_20230613120359.vue +1732 -0
  121. package/.history/packages/question-drawer/src/index_20230613120710.vue +1731 -0
  122. package/.history/packages/question-drawer/src/index_20230613120839.vue +1732 -0
  123. package/.history/packages/question-drawer/src/index_20230613120841.vue +1732 -0
  124. package/.history/packages/question-drawer/src/index_20230613120844.vue +1733 -0
  125. package/.history/packages/question-drawer/src/index_20230613120846.vue +1733 -0
  126. package/.history/packages/question-drawer/src/index_20230613120850.vue +1734 -0
  127. package/.history/packages/question-drawer/src/index_20230613120852.vue +1734 -0
  128. package/.history/packages/question-drawer/src/index_20230613120856.vue +1735 -0
  129. package/.history/packages/question-drawer/src/index_20230613120858.vue +1735 -0
  130. package/.history/packages/question-drawer/src/index_20230613121150.vue +1735 -0
  131. package/.history/packages/question-drawer/src/index_20230613121238.vue +1734 -0
  132. package/.history/packages/question-drawer/src/index_20230613121252.vue +1734 -0
  133. package/.history/packages/question-drawer/src/index_20230613121256.vue +1734 -0
  134. package/.history/packages/question-drawer/src/index_20230613121258.vue +1733 -0
  135. package/.history/packages/question-drawer/src/index_20230613121303.vue +1733 -0
  136. package/.history/packages/question-drawer/src/index_20230613121307.vue +1733 -0
  137. package/.history/packages/question-drawer/src/index_20230613121310.vue +1732 -0
  138. package/.history/packages/question-drawer/src/index_20230613121313.vue +1731 -0
  139. package/.history/packages/question-drawer/src/index_20230613121549.vue +1731 -0
  140. package/.history/packages/question-drawer/src/index_20230613121623.vue +1731 -0
  141. package/.history/packages/question-drawer/src/index_20230613151515.vue +1730 -0
  142. package/.history/packages/question-drawer/src/index_20230613151517.vue +1729 -0
  143. package/.history/packages/question-drawer/src/index_20230613151612.vue +1729 -0
  144. package/.history/packages/question-drawer/src/index_20230613151618.vue +1729 -0
  145. package/.history/packages/question-drawer/src/index_20230613151928.vue +1729 -0
  146. package/.history/packages/question-drawer/src/index_20230613151929.vue +1729 -0
  147. package/.history/packages/question-drawer/src/index_20230613152233.vue +1728 -0
  148. package/.history/packages/question-drawer/src/index_20230613152235.vue +1727 -0
  149. package/.history/packages/question-drawer/src/index_20230613152237.vue +1726 -0
  150. package/.history/packages/question-drawer/src/index_20230613152239.vue +1726 -0
  151. package/.history/packages/question-drawer/src/index_20230613152243.vue +1725 -0
  152. package/.history/packages/question-drawer/src/index_20230613152245.vue +1724 -0
  153. package/.history/packages/question-drawer/src/index_20230613152247.vue +1723 -0
  154. package/.history/packages/question-drawer/src/index_20230613152248.vue +1723 -0
  155. package/.history/packages/question-drawer/src/index_20230613152543.vue +1723 -0
  156. package/.history/packages/question-drawer/src/index_20230613152613.vue +1723 -0
  157. package/.history/packages/question-drawer/src/index_20230614203619.vue +1725 -0
  158. package/.history/packages/question-drawer/src/index_20230614203633.vue +1729 -0
  159. package/.history/packages/question-drawer/src/index_20230614203637.vue +1729 -0
  160. package/.history/packages/question-drawer/src/index_20230614203912.vue +1729 -0
  161. package/.history/packages/question-drawer/src/index_20230614211516.scss +270 -0
  162. package/.history/packages/question-drawer/src/index_20230614212057.scss +265 -0
  163. package/.history/packages/question-drawer/src/index_20230614212140.scss +270 -0
  164. package/.history/packages/question-drawer/src/index_20230614212146.scss +270 -0
  165. package/.history/packages/question-drawer/src/index_20230614212158.scss +270 -0
  166. package/.history/packages/question-drawer/src/index_20230614212613.scss +270 -0
  167. package/.history/packages/question-drawer/src/index_20230614212615.scss +270 -0
  168. package/.history/packages/question-drawer/src/index_20230614212841.scss +270 -0
  169. package/.history/packages/question-drawer/src/index_20230614212939.scss +270 -0
  170. package/.history/packages/question-drawer/src/index_20230614213141.scss +270 -0
  171. package/.history/packages/question-drawer/src/index_20230614213255.scss +270 -0
  172. package/.history/packages/question-drawer/src/index_20230614213349.scss +265 -0
  173. package/.history/packages/question-drawer/src/index_20230614213350.scss +265 -0
  174. package/.history/packages/question-drawer/src/index_20230614213400.scss +265 -0
  175. package/.history/packages/question-drawer/src/index_20230614213401.scss +270 -0
  176. package/.history/packages/question-drawer/src/index_20230614213431.scss +265 -0
  177. package/.history/packages/question-drawer/src/index_20230615100944.vue +1730 -0
  178. package/.history/packages/question-drawer/src/index_20230615100946.vue +1730 -0
  179. package/.history/packages/question-drawer/src/index_20230615100952.vue +1730 -0
  180. package/.history/packages/question-drawer/src/index_20230615100957.vue +1730 -0
  181. package/.history/packages/question-drawer/src/index_20230615104839.vue +1730 -0
  182. package/.history/packages/tabs/src/index_20230607165331.scss +60 -0
  183. package/.history/packages/tabs/src/index_20230614211226.scss +60 -0
  184. package/.history/packages/tabs/src/index_20230614211227.scss +61 -0
  185. package/.history/packages/tabs/src/index_20230614211253.scss +65 -0
  186. package/.history/packages/tabs/src/index_20230614211332.scss +60 -0
  187. package/.history/packages/wrong-detail/src/index_20230607221202.vue +570 -0
  188. package/.history/packages/wrong-detail/src/index_20230613120416.vue +570 -0
  189. package/.history/packages/wrong-detail/src/index_20230613120418.vue +569 -0
  190. package/.history/packages/wrong-detail/src/index_20230613120738.vue +568 -0
  191. package/.history/packages/wrong-detail/src/index_20230613120800.vue +568 -0
  192. package/.history/packages/wrong-detail/src/index_20230613120803.vue +568 -0
  193. package/.history/packages/wrong-detail/src/index_20230613120825.vue +568 -0
  194. package/.history/packages/wrong-detail/src/index_20230613120834.vue +569 -0
  195. package/.history/packages/wrong-detail/src/index_20230613121246.vue +568 -0
  196. package/.history/packages/wrong-detail/src/index_20230613155421.vue +574 -0
  197. package/.history/packages/wrong-detail/src/index_20230613155423.vue +574 -0
  198. package/.history/packages/wrong-detail/src/index_20230613155426.vue +574 -0
  199. package/.history/packages/wrong-drawer/src/index_20230607213124.vue +450 -0
  200. package/.history/packages/wrong-drawer/src/index_20230613104307.vue +450 -0
  201. package/.history/packages/wrong-drawer/src/index_20230613104315.vue +451 -0
  202. package/.history/packages/wrong-drawer/src/index_20230613104317.vue +451 -0
  203. package/.history/packages/wrong-drawer/src/index_20230613104334.vue +451 -0
  204. package/.history/packages/wrong-drawer/src/index_20230613104403.vue +450 -0
  205. package/.history/packages/wrong-drawer/src/index_20230613104405.vue +449 -0
  206. package/.history/packages/wrong-drawer/src/index_20230613104621.vue +458 -0
  207. package/.history/packages/wrong-drawer/src/index_20230613104626.vue +459 -0
  208. package/.history/packages/wrong-drawer/src/index_20230613104629.vue +457 -0
  209. package/.history/packages/wrong-drawer/src/index_20230613104630.vue +457 -0
  210. package/.history/packages/wrong-drawer/src/index_20230613104747.vue +464 -0
  211. package/.history/packages/wrong-drawer/src/index_20230613104749.vue +464 -0
  212. package/.history/packages/wrong-drawer/src/index_20230613104753.vue +464 -0
  213. package/.history/packages/wrong-drawer/src/index_20230613111237.vue +464 -0
  214. package/.history/packages/wrong-drawer/src/index_20230613111314.vue +464 -0
  215. package/.history/packages/wrong-drawer/src/index_20230613114319.vue +464 -0
  216. package/.history/packages/wrong-drawer/src/index_20230613114322.vue +464 -0
  217. package/.history/packages/wrong-drawer/src/index_20230613114901.vue +463 -0
  218. package/.history/packages/wrong-drawer/src/index_20230613114903.vue +462 -0
  219. package/.history/packages/wrong-drawer/src/index_20230613114904.vue +462 -0
  220. package/.history/packages/wrong-drawer/src/index_20230613114909.vue +462 -0
  221. package/.history/packages/wrong-drawer/src/index_20230613114936.vue +463 -0
  222. package/.history/packages/wrong-drawer/src/index_20230613114940.vue +463 -0
  223. package/.history/packages/wrong-drawer/src/index_20230613114942.vue +463 -0
  224. package/.history/packages/wrong-drawer/src/index_20230613115348.vue +487 -0
  225. package/.history/packages/wrong-drawer/src/index_20230613115352.vue +487 -0
  226. package/.history/packages/wrong-drawer/src/index_20230613115356.vue +487 -0
  227. package/.history/packages/wrong-drawer/src/index_20230613115408.vue +500 -0
  228. package/.history/packages/wrong-drawer/src/index_20230613115411.vue +500 -0
  229. package/.history/packages/wrong-drawer/src/index_20230613115414.vue +500 -0
  230. package/.history/packages/wrong-drawer/src/index_20230613144213.vue +499 -0
  231. package/.history/packages/wrong-drawer/src/index_20230613144215.vue +498 -0
  232. package/.history/packages/wrong-drawer/src/index_20230613144218.vue +497 -0
  233. package/.history/packages/wrong-drawer/src/index_20230613144223.vue +497 -0
  234. package/.history/packages/wrong-drawer/src/index_20230613144225.vue +497 -0
  235. package/.history/packages/wrong-drawer/src/index_20230613144229.vue +498 -0
  236. package/.history/packages/wrong-drawer/src/index_20230613144232.vue +498 -0
  237. package/.history/packages/wrong-drawer/src/index_20230613144316.vue +500 -0
  238. package/.history/packages/wrong-drawer/src/index_20230613144345.vue +500 -0
  239. package/.history/packages/wrong-drawer/src/index_20230613144346.vue +500 -0
  240. package/.history/packages/wrong-drawer/src/index_20230613145546.vue +498 -0
  241. package/.history/packages/wrong-drawer/src/index_20230613145548.vue +501 -0
  242. package/.history/packages/wrong-drawer/src/index_20230613145550.vue +500 -0
  243. package/.history/packages/wrong-drawer/src/index_20230613145602.vue +500 -0
  244. package/.history/packages/wrong-drawer/src/index_20230613145611.vue +500 -0
  245. package/.history/packages/wrong-drawer/src/index_20230613145625.vue +500 -0
  246. package/.history/packages/wrong-drawer/src/index_20230613145634.vue +500 -0
  247. package/.history/packages/wrong-drawer/src/index_20230613150805.vue +500 -0
  248. package/.history/packages/wrong-drawer/src/index_20230613150806.vue +501 -0
  249. package/.history/packages/wrong-drawer/src/index_20230613150809.vue +501 -0
  250. package/.history/packages/wrong-drawer/src/index_20230613150810.vue +501 -0
  251. package/README.md +14 -0
  252. package/api/index.js +388 -0
  253. package/dist/@focus-teach/ui.common.js +93058 -0
  254. package/dist/@focus-teach/ui.css +1 -0
  255. package/dist/@focus-teach/ui.umd.js +93068 -0
  256. package/dist/@focus-teach/ui.umd.min.js +25 -0
  257. package/dist/demo.html +10 -0
  258. package/dist/fonts/icomoon.356dc15f.woff +0 -0
  259. package/dist/fonts/icomoon.71d64f31.woff +0 -0
  260. package/dist/fonts/icomoon.7c9a60d9.eot +0 -0
  261. package/dist/fonts/icomoon.ba18ad87.eot +0 -0
  262. package/dist/fonts/icomoon.de76432e.ttf +0 -0
  263. package/dist/fonts/icomoon.ec37e716.ttf +0 -0
  264. package/dist/img/cloud_txt_24.87b9d2ae.svg +1 -0
  265. package/dist/img/icomoon.428f3063.svg +346 -0
  266. package/dist/img/icomoon.532b3795.svg +345 -0
  267. package/dist/img/icon_question.e931b16c.svg +14 -0
  268. package/mixins/emitter.js +33 -0
  269. package/package.json +45 -0
  270. package/postcss.config.js +19 -0
  271. package/style/icon/Read Me.txt +7 -0
  272. package/style/icon/demo-files/demo.css +152 -0
  273. package/style/icon/demo-files/demo.js +30 -0
  274. package/style/icon/demo.html +4042 -0
  275. package/style/icon/fonts/icomoon.eot +0 -0
  276. package/style/icon/fonts/icomoon.svg +346 -0
  277. package/style/icon/fonts/icomoon.ttf +0 -0
  278. package/style/icon/fonts/icomoon.woff +0 -0
  279. package/style/icon/selection.json +1 -0
  280. package/style/icon/style.css +1191 -0
  281. package/tests/unit/example.spec.js +13 -0
  282. package/utils/Constants.js +59 -0
  283. package/utils/assist.js +100 -0
  284. package/utils/changNumber.js +26 -0
  285. package/utils/common.js +109 -0
  286. package/utils/random_str.js +9 -0
package/api/index.js ADDED
@@ -0,0 +1,388 @@
1
+ /**
2
+ * Created by manong on 2021/02/18.
3
+ */
4
+ import axios from "axios";
5
+ import qs from "qs";
6
+
7
+ const VUE_APP_SSO_LOGIN_URL = 'http://ssoedu.focusteach.com/sso/authentication/require?client_id=focusteachsmartclass&equipmentType=epxIumhmRz0'
8
+
9
+ let token = "";
10
+ axios.defaults.timeout = 30000;
11
+ //axios请求时,如果不显示的设置Content-Type,那么默认是text/plain,这时服务器就不知道怎么解析数据
12
+ axios.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8";
13
+ // axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; //默认异步请求
14
+ axios.defaults.crossDomain = true;
15
+ axios.defaults.withCredentials = true; //设置cross跨域
16
+ axios.defaults.baseURL = window.location.port && window.location.port != 8085 ? '/backend' : ''
17
+ axios.interceptors.request.use(
18
+ (config) => {
19
+ if (config.method === "post") {
20
+ let data = qs.parse(config.data);
21
+ config.data = qs.stringify({
22
+ // token: token,
23
+ ...data,
24
+ }, {
25
+ arrayFormat: "brackets"
26
+ });
27
+ } else if (config.method === "get") {
28
+ config.params = {
29
+ // token: token,
30
+ ...config.params,
31
+ };
32
+ }
33
+ return config;
34
+ },
35
+ (error) => { }
36
+ );
37
+
38
+ axios.interceptors.response.use(
39
+ (res) => {
40
+ if (res && res.data && res.data.code == "10005") {
41
+ //跳转到登录页
42
+ window.location.href = VUE_APP_SSO_LOGIN_URL;
43
+ // return false
44
+ }
45
+ return res.data || res;
46
+ },
47
+ (error) => { }
48
+ );
49
+
50
+ //资源库-首页接口
51
+ export function getResourcePoolIndex(options, success, error) {
52
+ axios.get("/resource/pool/index", { params: options }).then(
53
+ (res) => {
54
+ success && success(res);
55
+ },
56
+ (res) => {
57
+ error && error(res);
58
+ }
59
+ );
60
+ }
61
+
62
+ //资源库-分页接口
63
+ export function getResourcePoolList(options, success, error) {
64
+ axios.get("/resource/pool/list", { params: options }).then(
65
+ (res) => {
66
+ success && success(res);
67
+ },
68
+ (res) => {
69
+ error && error(res);
70
+ }
71
+ );
72
+ }
73
+
74
+ //同步练习>试卷编辑>教材版本(张磊)
75
+ export function getMaterialsGrades(options, success, error) {
76
+ axios.get("/ybk/item/materialsGrades", {
77
+ params: options
78
+ }).then(
79
+ (res) => {
80
+ success && success(res);
81
+ },
82
+ (res) => {
83
+ error && error(res);
84
+ }
85
+ );
86
+ }
87
+
88
+ //同步练习>试卷编辑>课程集合(张磊)
89
+ export function getEditorCourse(options, success, error) {
90
+ axios.get("/ybk/item/course", {
91
+ params: options
92
+ }).then(
93
+ (res) => {
94
+ success && success(res);
95
+ },
96
+ (res) => {
97
+ error && error(res);
98
+ }
99
+ );
100
+ }
101
+
102
+ //通用-获取国家省市
103
+ export function getProvince(options, success, error) {
104
+ axios.get("/region/common/index", { params: options })
105
+ .then((res) => {
106
+ success && success(res)
107
+ }, (res) => {
108
+ error && error(res)
109
+ })
110
+ }
111
+
112
+ //【同步】hq_studyfun 获取历史记录 2云备课,3智慧教学
113
+ export function getUserOperate(options, success, error) {
114
+ return axios.get("/user/operate/get", {
115
+ params: options
116
+ });
117
+ }
118
+
119
+ //hq_studyfun 保存记录 2云备课,3智慧教学
120
+ export function setUserOperate(options, success, error) {
121
+ axios.post("/user/operate/save", options).then(
122
+ (res) => {
123
+ success && success(res);
124
+ },
125
+ (res) => {
126
+ error && error(res);
127
+ }
128
+ );
129
+ }
130
+
131
+ //获取册别
132
+ export function getClassifications(options, success, error) {
133
+ axios.get("/ybk/editor/classifications", { params: options }).then(
134
+ (res) => {
135
+ success && success(res);
136
+ },
137
+ (res) => {
138
+ error && error(res);
139
+ }
140
+ );
141
+ }
142
+
143
+ //云备课左侧全部课程专区接口:
144
+ export function getZoneList(options, success, error) {
145
+ axios.get("/ybk/editor/zone", { params: options }).then(
146
+ (res) => {
147
+ success && success(res);
148
+ },
149
+ (res) => {
150
+ error && error(res);
151
+ }
152
+ );
153
+ }
154
+
155
+ //通用-根据省份获取城市信息【USP】(张磊>chenxianyong)
156
+ export function getAreas(options, success, error) {
157
+ axios.get("/region/common/areas", {
158
+ params: options
159
+ }).then(
160
+ (res) => {
161
+ success && success(res);
162
+ },
163
+ (res) => {
164
+ error && error(res);
165
+ }
166
+ );
167
+ }
168
+ // 获取全品题目科目ID
169
+ export function getQptkSubjectID(options, success, error) {
170
+ axios.get("/qptk/subject", { params: options }).then(
171
+ (res) => {
172
+ success && success(res);
173
+ },
174
+ (res) => {
175
+ error && error(res);
176
+ }
177
+ );
178
+ }
179
+ //题库列表查询【USP】(chenxianyong)
180
+ export function getBankIndex(options, success, error) {
181
+ axios.get("/ybk/item/index", {
182
+ params: options
183
+ }).then((res) => {
184
+ console.log("wangshukang",res);
185
+ success && success(res);
186
+ },
187
+ (err) => {
188
+ console.log("wangshukang err",err);
189
+ error && error(err);
190
+ }
191
+ );
192
+ }
193
+ //题库分页查询【USP】(chenxianyong)
194
+ export function getBankData(options, success, error) {
195
+ axios.get("/ybk/item/bank", {
196
+ params: options
197
+ }).then(
198
+ (res) => {
199
+ success && success(res);
200
+ },
201
+ (res) => {
202
+ error && error(res);
203
+ }
204
+ );
205
+ }
206
+ //通用-获取知识点【后台管理】(chenxianyong)
207
+ export function getKnowledge(options, success, error) {
208
+ axios.get("/item/common/kl", {
209
+ params: options
210
+ }).then(
211
+ (res) => {
212
+ success && success(res);
213
+ },
214
+ (res) => {
215
+ error && error(res);
216
+ }
217
+ );
218
+ }
219
+ //通用-获取专题【USP】(张磊>chenxianyong)
220
+ export function getTopic(options, success, error) {
221
+ axios.get("/ybk/item/topic", {
222
+ params: options
223
+ })
224
+ .then((res) => {
225
+ success && success(res)
226
+ }, (res) => {
227
+ error && error(res)
228
+ })
229
+ }
230
+ //难度知识点是否必填【hq_studyfun】(sunqb)
231
+ export function getKldftNecessary(options, success, error) {
232
+ axios.get("/kldft/necessary", {
233
+ params: options
234
+ })
235
+ .then((res) => {
236
+ success && success(res)
237
+ }, (res) => {
238
+ error && error(res)
239
+ })
240
+ }
241
+
242
+ //获取题目
243
+ export function getQuestion(options, success, error) {
244
+ return new Promise((resolve) => {
245
+ const instance = axios.create();
246
+ instance.defaults.headers.post["Content-Type"] = "text/html;charset=UTF-8";
247
+ // instance.defaults.responseType = 'json'
248
+ instance.get(`/files/${options.itemId}?type=2`).then(
249
+ (res) => {
250
+ // console.log('全品题目',res);
251
+ success && success(res);
252
+ resolve(res);
253
+ },
254
+ (res) => {
255
+ error && error(res);
256
+ }
257
+ );
258
+ });
259
+ }
260
+
261
+ //通用-获取单题的答案与解析【后台管理】(chenxianyong)
262
+ export function getAnswer(options, success, error) {
263
+ axios.get("/ybk/item/detail", {
264
+ params: options
265
+ }).then(
266
+ (res) => {
267
+ success && success(res);
268
+ },
269
+ (res) => {
270
+ error && error(res);
271
+ }
272
+ );
273
+ }
274
+ //试卷编辑>引用题目(张磊)
275
+ export function quoteQuestion(options, success, error) {
276
+ axios.post("/ybk/item/quote", options).then(
277
+ (res) => {
278
+ success && success(res);
279
+ },
280
+ (res) => {
281
+ error && error(res);
282
+ }
283
+ );
284
+ }
285
+ //获取题目类别
286
+ export function getItemType(options, success, error) {
287
+ //参数subjectId
288
+ return axios.get("/item/common/category/list", {
289
+ params: options
290
+ }).then(
291
+ (res) => {
292
+ success && success(res);
293
+ return Promise.resolve(res);
294
+ },
295
+ (res) => {
296
+ error && error(res);
297
+ }
298
+ );
299
+ }
300
+
301
+ //获取试卷详情
302
+ export function getExamInfo(options, success, error) {
303
+ //参数resourceId
304
+ return axios.get("/ybk/editor/exam", {
305
+ params: options
306
+ }).then(
307
+ (res) => {
308
+ success && success(res);
309
+ return Promise.resolve(res);
310
+ },
311
+ (res) => {
312
+ error && error(res);
313
+ }
314
+ );
315
+ }
316
+
317
+ //班级易错题>获取班级&错误率(张磊)
318
+ export function getMistakeIndex(options, success, error) {
319
+ axios.get("/ybk/mistake/index", {
320
+ params: options
321
+ }).then(
322
+ (res) => {
323
+ success && success(res);
324
+ },
325
+ (res) => {
326
+ error && error(res);
327
+ }
328
+ );
329
+ }
330
+
331
+ //班级易错题>知识点|章节>统计页面(张磊)
332
+ export function getMistakeData(options, success, error) {
333
+ axios.get("/ybk/mistake/data", {
334
+ params: options
335
+ }).then(
336
+ (res) => {
337
+ success && success(res);
338
+ },
339
+ (res) => {
340
+ error && error(res);
341
+ }
342
+ );
343
+ }
344
+
345
+ //班级易错题>获取题目列表(张磊)
346
+ export function getMistakeItems(options, success, error) {
347
+ axios.get("/ybk/mistake/items", {
348
+ params: options
349
+ }).then(
350
+ (res) => {
351
+ success && success(res);
352
+ },
353
+ (res) => {
354
+ error && error(res);
355
+ }
356
+ );
357
+ }
358
+
359
+ //获取错题题目内容
360
+ export function getWrongQuestion(options, success, error) {
361
+ return new Promise((resolve) => {
362
+ const instance = axios.create();
363
+ instance.defaults.headers.post["Content-Type"] = "text/html;charset=UTF-8";
364
+ // instance.defaults.responseType = 'json'
365
+ instance.get(`/course-resources/details?itemId=${options.itemId}&mistakeSource=ts`).then(
366
+ (res) => {
367
+ success && success(res);
368
+ resolve(res);
369
+ },
370
+ (res) => {
371
+ error && error(res);
372
+ }
373
+ );
374
+ });
375
+ }
376
+
377
+
378
+ //错题集>引用题目(张磊)
379
+ export function quoteWrongQuestion(options, success, error) {
380
+ axios.post("/ybk/mistake/quote", options).then(
381
+ (res) => {
382
+ success && success(res);
383
+ },
384
+ (res) => {
385
+ error && error(res);
386
+ }
387
+ );
388
+ }