@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
@@ -0,0 +1,569 @@
1
+ <!--右侧抽屉-->
2
+ <template>
3
+ <ft-drawer>
4
+ <ft-exam-header
5
+ :childTitle="childTitle"
6
+ :mainTitle="mainTitle"
7
+ @goBack="goBack"
8
+ ></ft-exam-header>
9
+ <div
10
+ class="question-quote-all"
11
+ v-show="!loadingBankData && !loadingError && itemInfoList.length > 0"
12
+ >
13
+ <div
14
+ :class="isAddAll ? 'quote-all-question' : 'quote-all-question-disable'"
15
+ @click="quoteAllWrongQuestions"
16
+ >
17
+ <i class="icon-add" style="margin-right: 4px"></i>
18
+ {{ i18n.xuanZeQuanBu }}
19
+ </div>
20
+ </div>
21
+ <div
22
+ v-infinite-scroll="changeCurrentPage"
23
+ :infinite-scroll-disabled="!hasMore"
24
+ infinite-scroll-distance="40"
25
+ >
26
+ <ft-header :options="sortList" @sort="headerSort" default-sort="scoreRate" v-show="itemInfoList.length">
27
+ {{ i18n.gong }}{{ totalRecord }}{{ i18n.daoTiMu }}
28
+ </ft-header>
29
+ <div id="wrong-detail-drawer-slot-id">
30
+ <ft-question
31
+ v-show="!loadingBankData && !loadingError && itemInfoList.length > 0"
32
+ v-for="(item, index) in itemInfoList"
33
+ :key="item.itemId"
34
+ :itemInfo="item"
35
+ :itemIndex="index + 1"
36
+ :fromWrong="true"
37
+ :studentsList="item.studentsList"
38
+ :mistakeContent="i18n.deFenLv+':' + (item.scoreRate ? item.scoreRate + '%' : '')"
39
+ :scoreContent="i18n.cuoWuRenShu+':' + (item.studentsList.length) + i18n.ren"
40
+ :examItemList="itemList"
41
+ :pointNames="item.pointNames ? getPointNamesStr(item.pointNames) : '--'"
42
+ :klNames="item.klNames ? getNamesStr(item.klNames) : '--'"
43
+ :skill="(item.basicSkills && item.basicSkills.length) ? getNamesStr(item.basicSkills) : '--'"
44
+ :answer="item.answer || '--'"
45
+ :analysis="item.analysis || '--'"
46
+ :itemCategoryName="item.categoryName"
47
+ :topicName="item.topicName"
48
+ :difficultyId="difficultyIdList[item.difficultyId]"
49
+ :difficultyName="item.difficultyName"
50
+ :audioFileId="item.audioFileId"
51
+ :itemFromType="item.itemFromType"
52
+ :content="item.content"
53
+ :updateTime="getUpdateTime(item.updateTime)"
54
+ :itemInfoId="item.itemId"
55
+ :rootItemInfoId="item.rootItemInfoId"
56
+ :itemSourceType="item.itemSourceType"
57
+ @showAnswer="getAnswer"
58
+ @getContent="getContent"
59
+ @choiceOrRemoveQuestion="choiceOrRemoveQuestion"
60
+ @toShowAudio="toShowAudio"
61
+ :fromType ='fromType'
62
+ :variantList="itemList"
63
+ ></ft-question>
64
+ <ft-error v-show="!loadingBankData && loadingError">
65
+ <img class="error-img" :src="host + '/assets/prepare-course/list/img/error.7e494464.png'" alt="" />
66
+ </ft-error>
67
+ </div>
68
+ </div>
69
+ </ft-drawer>
70
+ </template>
71
+
72
+ <script>
73
+ import infiniteScroll from "vue-infinite-scroll";
74
+ import { Loading } from "element-ui";
75
+ import { getMistakeItems, getWrongQuestion, getQuestion } from "../../../api/index";
76
+ import { formatDate } from "../../../utils/common";
77
+ export default {
78
+ name: "FtWrongDetail",
79
+ // import引入的组件需要注入到对象中才能使用
80
+ components: {
81
+ [Loading.name]: Loading,
82
+ },
83
+ directives: { infiniteScroll },
84
+ props: {
85
+ //请求的参数,包含了当前所选择的信息
86
+ currentIndexParam: {
87
+ type: Object,
88
+ require: true,
89
+ },
90
+ //点击的当前的章节 || 知识点
91
+ currentSearchItem: {
92
+ type: Object,
93
+ default: {},
94
+ },
95
+ itemList:{
96
+ type: Array,
97
+ default:[]
98
+ },
99
+ fromType:{
100
+ typeof:String,
101
+ default:''
102
+ },
103
+ i18n:{
104
+ type:Object
105
+ }
106
+ },
107
+ data() {
108
+ // 这里存放数据
109
+ return {
110
+ host: window.location.origin,
111
+ //首次请求
112
+ isLoading: true,
113
+ //是否正在加载题目数据
114
+ loadingBankData: false,
115
+ //加载题目数据是否失败
116
+ loadingError: false,
117
+ //题目数据集合
118
+ itemInfoList: [],
119
+ //分页信息
120
+ pageInfo: {},
121
+ //题目总数
122
+ totalRecord: undefined,
123
+ //接口请求参数
124
+ requestParam: {},
125
+ currPage: 0, //当前页面
126
+ pageError: false,
127
+ loading: false,
128
+ hasMore: true,
129
+ isChangePage: false,
130
+ mainTitle: "",
131
+ childTitle: "",
132
+ itemsList: [], //左侧题目集合
133
+ isAddAll: true, // true:全部引用 || false:非全部引用
134
+ wrongIdsList: [], //右侧错题题库的题目id集合
135
+ isCheckingStatus: false, //是否正在检查按钮状态
136
+ sortList: [
137
+ {
138
+ label: "得分率",
139
+ key: "scoreRate",
140
+ sortOrder: true,
141
+ },
142
+ {
143
+ label: "错误人数",
144
+ key: "mistakeCount",
145
+ },
146
+ {
147
+ label: "更新时间",
148
+ key: "updateTime",
149
+ },
150
+ ],
151
+ difficultyIdList:{
152
+ 1:'Xm4FWr0dncw',
153
+ 2:'VKs9wA1QAqk',
154
+ 3:'CQrZsSwiESg',
155
+ 4:'79udksVCTQ0',
156
+ 5:'KfqHpbiMBXg'
157
+ },
158
+ };
159
+ },
160
+ //监控data中的数据变化
161
+ watch: {
162
+ itemList: function (n, o) {
163
+ this.itemsList = n;
164
+ console.log('jiantingitemlist',this.itemsList)
165
+ this.judgeButtonStatus();
166
+ },
167
+ wrongIdsList: function (n, o) {
168
+ this.wrongIdsList = n;
169
+ this.judgeButtonStatus();
170
+ },
171
+ },
172
+ methods: {
173
+ goBack() {
174
+ let dic = {
175
+ activeIndex: 1,
176
+ };
177
+ this.$emit("eventbus-emit","changeDrawerType","changeDrawerType",JSON.stringify(dic))
178
+ },
179
+ quoteAllWrongQuestions() {
180
+ if (!this.isAddAll) {
181
+ return;
182
+ }
183
+ this.$emit("addAllQuestion",this.itemInfoList)
184
+ },
185
+ headerSort(item) {
186
+ console.log(item.key,item.sortOrder);
187
+ if(item.key == 'updateTime'){
188
+ let dic = { mistakeOrderByFieldEnum: "updateTime",orderBy: item.sortOrder ? 1 :2 };
189
+ this.$emit("changeMistakeDetailIndexParam", "changeOrder", JSON.stringify(dic));
190
+ } else if(item.key == 'mistakeCount'){
191
+ let dic = { mistakeOrderByFieldEnum: "mistakeCount",orderBy: item.sortOrder ? 1 :2 };
192
+ this.$emit("changeMistakeDetailIndexParam", "changeOrder", JSON.stringify(dic));
193
+ } else {
194
+ let dic = { mistakeOrderByFieldEnum: "errorRate",orderBy: item.sortOrder ? 1 :2 };
195
+ this.$emit("changeMistakeDetailIndexParam", "changeOrder", JSON.stringify(dic));
196
+ }
197
+
198
+ },
199
+ getContent(itemInfo){
200
+ let currentItem = this.itemInfoList.find(
201
+ (item) => item.itemId == itemInfo.itemId
202
+ );
203
+ getWrongQuestion({ itemId: itemInfo.itemId }, (res) => {
204
+ this.$set(currentItem, "content", res.data.value.html);
205
+ });
206
+ },
207
+ //选题 || 移除
208
+ choiceOrRemoveQuestion(itemInfo, isAdd) {
209
+ this.$emit("choiceOrRemoveQuestion",itemInfo,isAdd)
210
+ },
211
+ getUpdateTime(timeStr) {
212
+ var oneTime = new Date(timeStr).getTime();
213
+ var date = new Date(oneTime);
214
+ return formatDate(date, "yyyy-MM-dd hh:mm");
215
+ },
216
+ toShowAudio(itemInfo,itemIndex){
217
+ let dic = {
218
+ questionIndex: itemIndex,
219
+ fileId: itemInfo.audioFileId,
220
+ };
221
+ EventBus.$emit("toShowAudio", "toShowAudio", JSON.stringify(dic));
222
+ },
223
+ getAnswer(itemInfo) {
224
+ let _this = this;
225
+ let currentItem = this.itemInfoList.find(
226
+ (item) => item.itemId == itemInfo.itemId
227
+ );
228
+ if (
229
+ (itemInfo.itemType == "3" || itemInfo.itemType == "6") &&
230
+ itemInfo.correctAnswer &&
231
+ itemInfo.correctAnswer.length > 0
232
+ ) {
233
+ getQuestion({ itemId: itemInfo.correctAnswer }, (res) => {
234
+ if (!res) {
235
+ return;
236
+ }
237
+ //取出题目数据
238
+ this.$set(currentItem, "answer", res.data);
239
+ });
240
+ } else if (itemInfo.itemType == 7) {
241
+ var answerArr = itemInfo.correctAnswer.split(",");
242
+ var fiveArr = [],tempStr = ""; //将组合单选题答案五五放到一个数组展示
243
+ console.log(11111)
244
+ answerArr && answerArr.length && answerArr.map(function (item, idx) {
245
+ if (idx % 5 !== 0 || idx == 0) {
246
+ tempStr += item;
247
+ } else {
248
+ fiveArr.push(tempStr);
249
+ tempStr = item;
250
+ }
251
+ if (idx == answerArr.length - 1) {
252
+ fiveArr.push(tempStr);
253
+ }
254
+ });
255
+ this.$set(currentItem, "answer", fiveArr.join(";"));
256
+ } else {
257
+ this.$set(currentItem, "answer", itemInfo.correctAnswer);
258
+ }
259
+ if (itemInfo.itemAnalysis && itemInfo.itemAnalysis.length > 0) {
260
+ getQuestion({ itemId: itemInfo.itemAnalysis }, (res) => {
261
+ if (!res) {
262
+ return;
263
+ }
264
+ //取出题目数据
265
+ this.$set(currentItem, "analysis", res.data);
266
+ });
267
+ }
268
+ },
269
+ getPointNamesStr(tempArr) {
270
+ if (tempArr.length == 1) {
271
+ return tempArr[0].pointName;
272
+ } else {
273
+ var tempStr = "";
274
+ for (let index = 0; index < tempArr.length; index++) {
275
+ tempStr += tempArr[index].pointName;
276
+ if (index != tempArr.length - 1) {
277
+ tempStr += ",";
278
+ }
279
+ }
280
+ return tempStr;
281
+ }
282
+ },
283
+ //知识点
284
+ getNamesStr(tempArr) {
285
+ if (tempArr.length == 1) {
286
+ return tempArr[0];
287
+ } else {
288
+ var tempStr = "";
289
+ for (let index = 0; index < tempArr.length; index++) {
290
+ tempStr += tempArr[index];
291
+ if (index != tempArr.length - 1) {
292
+ tempStr += ",";
293
+ }
294
+ }
295
+ return tempStr;
296
+ }
297
+ },
298
+ judgeButtonStatus() {
299
+ if (this.isCheckingStatus) {
300
+ return;
301
+ }
302
+ console.log("judgeButtonStatus---111---", this.itemsList);
303
+ console.log("judgeButtonStatus---222---", this.wrongIdsList);
304
+ this.isCheckingStatus = true;
305
+ this.isAddAll = false;
306
+ if ((this.fromType == 'variant' && this.itemsList.length == 10) || this.wrongIdsList.length == 0) {
307
+ this.isCheckingStatus = false;
308
+ return;
309
+ }
310
+ if (
311
+ this.itemsList.length == 0 ||
312
+ this.itemsList.length < this.wrongIdsList.length
313
+ ) {
314
+ this.isCheckingStatus = false;
315
+ this.isAddAll = true;
316
+ return;
317
+ }
318
+ let tempItemIds = [];
319
+ this.itemsList.forEach((element) => {
320
+ tempItemIds.push(this.fromType='variant' ? element.variantItemId : element.itemId);
321
+ });
322
+ console.log("judgeButtonStatus---333---", tempItemIds);
323
+ this.wrongIdsList.forEach((element) => {
324
+ if (tempItemIds.indexOf(element) < 0) {
325
+ this.isAddAll = true;
326
+ this.isCheckingStatus = false;
327
+ return;
328
+ }
329
+ });
330
+ this.isCheckingStatus = false;
331
+ },
332
+ setListener() {
333
+ let _this = this;
334
+ //改变 requestParam 参数,重新请求index接口
335
+ this.$off("changeMistakeDetailIndexParam"); //避免重复响应同一事件
336
+ this.$on("changeMistakeDetailIndexParam", function (action, msg) {
337
+ if (action == "retryRequest") {
338
+ //加载失败后的重新请求 || 删除题目后刷新题目数据
339
+ _this.requestParam["page"] = 1;
340
+ console.log("retryRequest---:", _this.requestParam);
341
+ _this.requestBankData();
342
+ return;
343
+ }
344
+ let dic = JSON.parse(msg);
345
+ console.log("changeMistakeItems---:", dic);
346
+ for (let key in dic) {
347
+ let value = dic[key];
348
+ _this.requestParam[key] = value;
349
+ }
350
+ _this.requestParam["page"] = 1;
351
+ //请求题目数据
352
+ _this.requestBankData();
353
+ });
354
+ },
355
+ /*
356
+ **请求题库数据
357
+ * 筛选条件时请求
358
+ */
359
+ requestBankData() {
360
+ let _this = this;
361
+ _this.loadingError = false;
362
+ _this.loadingBankData = true;
363
+ _this.loading = true;
364
+ _this.asyncGetUserOperateDataInfoForBankData();
365
+ },
366
+ //筛选条件时请求获取用户信息
367
+ async asyncGetUserOperateDataInfoForBankData() {
368
+ let _this = this;
369
+ let dom = document.getElementById("wrong-detail-drawer-slot-id");
370
+ let loadingInstance = Loading.service({
371
+ target: dom,
372
+ text: _this.i18n.jiaZaiZhong,
373
+ });
374
+ getMistakeItems(_this.requestParam, (res) => {
375
+ _this.loadingBankData = false;
376
+ _this.loading = false;
377
+ this.$nextTick(() => {
378
+ // 以服务的方式调用的 Loading 需要异步关闭
379
+ loadingInstance.close();
380
+ });
381
+ if (typeof res === "string") res = JSON.parse(res);
382
+ if (res && res.code == 0) {
383
+ //将所有错题id数据存在
384
+ //_this.$store.commit("saveWrongQuestionsIdList", res.value.itemIdList);
385
+ _this.wrongIdsList = res.value.itemIdList
386
+ //取出题目数据
387
+ _this.loadingError = false;
388
+ _this.itemInfoList = res.value.outList;
389
+ _this.mainTitle = res.value.mainTitle;
390
+ _this.childTitle = res.value.childTitle;
391
+ _this.totalRecord = res.value.page.totalRecord;
392
+ _this.currPage = res.value.page.currentPage;
393
+ if (_this.itemInfoList.length >= _this.totalRecord) {
394
+ _this.hasMore = false;
395
+ } else {
396
+ _this.hasMore = true;
397
+ }
398
+ _this.pageInfo = {
399
+ currPage: res.value.page.currentPage,
400
+ totalPage: res.value.page.totalPage,
401
+ perPage: res.value.page.perPageInt,
402
+ };
403
+ } else {
404
+ //请求题目数据报错
405
+ _this.loadingError = true;
406
+ _this.itemInfoList = [];
407
+ _this.pageInfo = {};
408
+ }
409
+ });
410
+ },
411
+ //改变右侧栏宽度
412
+ changeSize(e) {
413
+ document.onmousemove = (e) => {
414
+ e.stopPropagation();
415
+ document.body.style.cursor = "w-resize";
416
+ let addWidth = this.$refs.drawer.offsetLeft - e.clientX;
417
+ let curWidth = this.$refs.drawer.offsetWidth;
418
+ this.$refs.drawer.style.width = `${curWidth + addWidth}px`;
419
+ };
420
+ document.onmouseup = (e) => {
421
+ e.stopPropagation();
422
+ document.onmousemove = null;
423
+ document.onmouseup = null;
424
+ document.body.style.cursor = "default";
425
+ };
426
+ },
427
+ //改变当前页
428
+ changeCurrentPage() {
429
+ let _this = this;
430
+ if (_this.itemInfoList.length >= _this.totalRecord) {
431
+ _this.hasMore = false;
432
+ return;
433
+ }
434
+ if (_this.currPage == 0 || _this.isChangePage) {
435
+ return;
436
+ }
437
+ _this.isChangePage = true;
438
+ let dic = _this.requestParam;
439
+ dic["page"] = _this.currPage + 1;
440
+ _this.requestPageBank(dic);
441
+ },
442
+ /*
443
+ **请求题库数据
444
+ * 筛选条件时请求
445
+ */
446
+ requestPageBank(param) {
447
+ let _this = this;
448
+ _this.pageError = false;
449
+ _this.loading = true;
450
+ let dom = document.getElementById("wrong-detail-drawer-slot-id");
451
+ let loadingInstance = Loading.service({
452
+ target: dom,
453
+ text: _this.i18n.jiaZaiZhong,
454
+ });
455
+ getMistakeItems(param, (res) => {
456
+ _this.loading = false;
457
+ if (typeof res === "string") res = JSON.parse(res);
458
+ if (res && res.code == 0) {
459
+ //将所有错题id数据存在
460
+ // _this.$store.commit("saveWrongQuestionsIdList", res.value.itemIdList);
461
+ _this.wrongIdsList = res.value.itemIdList
462
+ //取出题目数据
463
+ _this.pageError = false;
464
+ _this.currPage = res.value.page.currentPage;
465
+ _this.totalRecord = res.value.page.totalRecord;
466
+ _this.mainTitle = res.value.mainTitle;
467
+ _this.childTitle = res.value.childTitle;
468
+ _this.itemInfoList = _this.itemInfoList.concat(res.value.outList);
469
+ if (_this.itemInfoList.length >= _this.totalRecord) {
470
+ _this.hasMore = false;
471
+ } else {
472
+ _this.hasMore = true;
473
+ }
474
+ loadingInstance.close()
475
+ } else {
476
+ //请求题目数据报错
477
+ _this.pageError = true;
478
+ }
479
+ _this.isChangePage = false;
480
+ });
481
+ },
482
+ },
483
+ created() {},
484
+ mounted() {
485
+ let _this = this;
486
+ this.itemsList = this.itemList
487
+ console.log('jiantingitemlist',this.itemList)
488
+ _this.requestParam = _this.currentIndexParam;
489
+ if (_this.requestParam.knowledgeSource == "CHAPTER") {
490
+ _this.requestParam["teachMaterialId"] =
491
+ _this.currentSearchItem.enTeachMaterialId;
492
+ if (_this.currentSearchItem.courseId.indexOf("temp") < 0) {
493
+ _this.requestParam["courseId"] = _this.currentSearchItem.courseId;
494
+ }
495
+ _this.requestParam["termIndex"] = _this.currentSearchItem.termIndex;
496
+ } else {
497
+ _this.requestParam["klId"] = _this.currentSearchItem.klId;
498
+ }
499
+ _this.requestParam["gradeId"] = _this.currentSearchItem.classificationId;
500
+ _this.requestParam["mistakeOrderByFieldEnum"] = "errorRate"; //排序字段【errorRate:错误率|updateTime:更新时间】
501
+ _this.requestParam["orderBy"] = 1; //排序【1:升序、2:降序】
502
+ _this.setListener();
503
+ _this.requestBankData();
504
+ },
505
+ };
506
+ </script>
507
+
508
+ <style scoped>
509
+ .question-quote-all {
510
+ height: 40px;
511
+ margin-top: 16px;
512
+ }
513
+
514
+ .quote-all-question-disable {
515
+ display: flex;
516
+ align-items: center;
517
+ justify-content: center;
518
+ float: right;
519
+ margin-top: 8px;
520
+ margin-right: 16px;
521
+ width: 92px;
522
+ height: 24px;
523
+ line-height: 24px;
524
+ border-radius: 4px;
525
+ text-align: center;
526
+ font-size: 14px;
527
+ color: #ffffff;
528
+ font-family: MicrosoftYaHei;
529
+ background: #cccccc;
530
+ cursor: not-allowed;
531
+ }
532
+
533
+ .quote-all-question {
534
+ display: flex;
535
+ align-items: center;
536
+ justify-content: center;
537
+ float: right;
538
+ margin-top: 8px;
539
+ margin-right: 16px;
540
+ width: 92px;
541
+ height: 24px;
542
+ line-height: 24px;
543
+ border-radius: 4px;
544
+ text-align: center;
545
+ font-size: 14px;
546
+ color: #ffffff;
547
+ font-family: MicrosoftYaHei;
548
+ background: #ff9800;
549
+ cursor: pointer;
550
+ }
551
+
552
+ .quote-all-question:hover {
553
+ background: #ff6f00;
554
+ }
555
+
556
+ .quote-all-question:active {
557
+ background: #e68a00;
558
+ }
559
+
560
+ .page-contro {
561
+ width: 100%;
562
+ height: 40px;
563
+ text-align: center;
564
+ font-size: 14px;
565
+ line-height: 40px;
566
+ color: #333;
567
+ }
568
+ </style>
569
+