@focus-teach/ui 1.0.3 → 1.0.5

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 (437) hide show
  1. package/api/index.js +47 -6
  2. package/{lib → dist/@focus-teach}/ui.common.js +1191 -809
  3. package/dist/@focus-teach/ui.css +1 -0
  4. package/{lib → dist/@focus-teach}/ui.umd.js +1191 -809
  5. package/dist/@focus-teach/ui.umd.min.js +25 -0
  6. package/{lib/fonts/icomoon.71d64f31.woff → dist/fonts/icomoon.31e0fa9b.woff} +0 -0
  7. package/{lib/fonts/icomoon.7c9a60d9.eot → dist/fonts/icomoon.7079878b.eot} +0 -0
  8. package/{lib/fonts/icomoon.de76432e.ttf → dist/fonts/icomoon.ffa7b130.ttf} +0 -0
  9. package/{lib/img/icomoon.428f3063.svg → dist/img/icomoon.40e828b3.svg} +2 -2
  10. package/package.json +2 -4
  11. package/style/icon/demo.html +16 -16
  12. package/style/icon/fonts/icomoon.eot +0 -0
  13. package/style/icon/fonts/icomoon.svg +2 -2
  14. package/style/icon/fonts/icomoon.ttf +0 -0
  15. package/style/icon/fonts/icomoon.woff +0 -0
  16. package/style/icon/selection.json +1 -1
  17. package/style/icon/style.css +11 -9
  18. package/.history/package_20230625121458.json +0 -45
  19. package/.history/package_20230626100440.json +0 -45
  20. package/.history/package_20230626100445.json +0 -45
  21. package/.history/package_20230626100447.json +0 -45
  22. package/.history/package_20230626100636.json +0 -45
  23. package/.history/package_20230626100801.json +0 -45
  24. package/.history/package_20230626100803.json +0 -45
  25. package/.history/package_20230626100838.json +0 -45
  26. package/.history/package_20230626103314.json +0 -45
  27. package/.history/package_20230626103317.json +0 -45
  28. package/.history/package_20230626112515.json +0 -45
  29. package/.history/package_20230626112519.json +0 -45
  30. package/.history/package_20230626113741.json +0 -48
  31. package/.history/package_20230626113743.json +0 -48
  32. package/.history/package_20230626113745.json +0 -48
  33. package/.history/package_20230626113750.json +0 -48
  34. package/.history/package_20230626113754.json +0 -48
  35. package/.history/package_20230626113756.json +0 -48
  36. package/.history/package_20230626113758.json +0 -48
  37. package/.history/package_20230626113759.json +0 -48
  38. package/.history/package_20230626113808.json +0 -48
  39. package/.history/package_20230626113839.json +0 -45
  40. package/.history/package_20230626113841.json +0 -45
  41. package/.history/package_20230626115037.json +0 -45
  42. package/.history/package_20230626115243.json +0 -45
  43. package/.history/package_20230626115245.json +0 -45
  44. package/.history/package_20230626115259.json +0 -45
  45. package/.history/package_20230626120806.json +0 -45
  46. package/.history/package_20230626120808.json +0 -46
  47. package/.history/package_20230626120809.json +0 -45
  48. package/.history/packages/assets/css/reset-element_20230605134721.scss +0 -167
  49. package/.history/packages/assets/css/reset-element_20230614205652.scss +0 -173
  50. package/.history/packages/assets/css/reset-element_20230614205654.scss +0 -173
  51. package/.history/packages/assets/css/reset-element_20230614211242.scss +0 -169
  52. package/.history/packages/assets/css/reset-element_20230614211245.scss +0 -167
  53. package/.history/packages/exam-detail/src/index_20230607220441.vue +0 -548
  54. package/.history/packages/exam-detail/src/index_20230613115618.vue +0 -548
  55. package/.history/packages/exam-detail/src/index_20230613115623.vue +0 -548
  56. package/.history/packages/exam-detail/src/index_20230613115629.vue +0 -548
  57. package/.history/packages/exam-detail/src/index_20230613115631.vue +0 -548
  58. package/.history/packages/exam-detail/src/index_20230613115640.vue +0 -548
  59. package/.history/packages/exam-detail/src/index_20230613115651.vue +0 -548
  60. package/.history/packages/exam-detail/src/index_20230613115659.vue +0 -548
  61. package/.history/packages/exam-detail/src/index_20230613115750.vue +0 -548
  62. package/.history/packages/exam-detail/src/index_20230613115806.vue +0 -548
  63. package/.history/packages/exam-detail/src/index_20230613115811.vue +0 -548
  64. package/.history/packages/exam-detail/src/index_20230613115815.vue +0 -548
  65. package/.history/packages/exam-detail/src/index_20230613120250.vue +0 -548
  66. package/.history/packages/exam-detail/src/index_20230613120252.vue +0 -548
  67. package/.history/packages/exam-detail/src/index_20230613120257.vue +0 -547
  68. package/.history/packages/exam-detail/src/index_20230613120323.vue +0 -547
  69. package/.history/packages/exam-detail/src/index_20230613120327.vue +0 -547
  70. package/.history/packages/exam-detail/src/index_20230613120328.vue +0 -547
  71. package/.history/packages/exam-detail/src/index_20230613120915.vue +0 -548
  72. package/.history/packages/exam-detail/src/index_20230613120917.vue +0 -548
  73. package/.history/packages/exam-detail/src/index_20230613120922.vue +0 -549
  74. package/.history/packages/exam-detail/src/index_20230613120924.vue +0 -549
  75. package/.history/packages/exam-detail/src/index_20230613120928.vue +0 -550
  76. package/.history/packages/exam-detail/src/index_20230613120930.vue +0 -550
  77. package/.history/packages/exam-detail/src/index_20230613120936.vue +0 -549
  78. package/.history/packages/exam-detail/src/index_20230613120938.vue +0 -550
  79. package/.history/packages/exam-detail/src/index_20230613120942.vue +0 -550
  80. package/.history/packages/exam-detail/src/index_20230613120944.vue +0 -550
  81. package/.history/packages/exam-detail/src/index_20230613121331.vue +0 -549
  82. package/.history/packages/exam-detail/src/index_20230613121333.vue +0 -548
  83. package/.history/packages/exam-detail/src/index_20230613121335.vue +0 -547
  84. package/.history/packages/exam-detail/src/index_20230613121341.vue +0 -547
  85. package/.history/packages/exam-detail/src/index_20230613121344.vue +0 -546
  86. package/.history/packages/exam-detail/src/index_20230613153022.vue +0 -546
  87. package/.history/packages/exam-detail/src/index_20230613153027.vue +0 -546
  88. package/.history/packages/exam-detail/src/index_20230613153620.vue +0 -546
  89. package/.history/packages/exam-detail/src/index_20230613164734.vue +0 -546
  90. package/.history/packages/exam-detail/src/index_20230613164746.vue +0 -546
  91. package/.history/packages/exam-detail/src/index_20230613164756.vue +0 -546
  92. package/.history/packages/exam-drawer/src/index_20230607103301.vue +0 -1470
  93. package/.history/packages/exam-drawer/src/index_20230613090746.vue +0 -1469
  94. package/.history/packages/exam-drawer/src/index_20230613090759.vue +0 -1469
  95. package/.history/packages/exam-drawer/src/index_20230613090802.vue +0 -1469
  96. package/.history/packages/exam-drawer/src/index_20230613090809.vue +0 -1469
  97. package/.history/packages/exam-drawer/src/index_20230613090850.vue +0 -1470
  98. package/.history/packages/exam-drawer/src/index_20230613090919.vue +0 -1487
  99. package/.history/packages/exam-drawer/src/index_20230613090930.vue +0 -1486
  100. package/.history/packages/exam-drawer/src/index_20230613090935.vue +0 -1485
  101. package/.history/packages/exam-drawer/src/index_20230613091124.vue +0 -1488
  102. package/.history/packages/exam-drawer/src/index_20230613091140.vue +0 -1488
  103. package/.history/packages/exam-drawer/src/index_20230613091141.vue +0 -1488
  104. package/.history/packages/exam-drawer/src/index_20230613092108.vue +0 -1489
  105. package/.history/packages/exam-drawer/src/index_20230613092111.vue +0 -1489
  106. package/.history/packages/exam-drawer/src/index_20230613093130.vue +0 -1490
  107. package/.history/packages/exam-drawer/src/index_20230613093135.vue +0 -1489
  108. package/.history/packages/exam-drawer/src/index_20230613093149.vue +0 -1488
  109. package/.history/packages/exam-drawer/src/index_20230613093156.vue +0 -1487
  110. package/.history/packages/exam-drawer/src/index_20230613093159.vue +0 -1486
  111. package/.history/packages/exam-drawer/src/index_20230613093202.vue +0 -1485
  112. package/.history/packages/exam-drawer/src/index_20230613093204.vue +0 -1484
  113. package/.history/packages/exam-drawer/src/index_20230613093207.vue +0 -1483
  114. package/.history/packages/exam-drawer/src/index_20230613093209.vue +0 -1482
  115. package/.history/packages/exam-drawer/src/index_20230613093212.vue +0 -1483
  116. package/.history/packages/exam-drawer/src/index_20230613093217.vue +0 -1483
  117. package/.history/packages/exam-drawer/src/index_20230613093228.vue +0 -1483
  118. package/.history/packages/exam-drawer/src/index_20230613093229.vue +0 -1483
  119. package/.history/packages/exam-drawer/src/index_20230613093843.vue +0 -1482
  120. package/.history/packages/exam-drawer/src/index_20230613093847.vue +0 -1481
  121. package/.history/packages/exam-drawer/src/index_20230613093851.vue +0 -1480
  122. package/.history/packages/exam-drawer/src/index_20230613115708.vue +0 -1480
  123. package/.history/packages/exam-drawer/src/index_20230613115823.vue +0 -1480
  124. package/.history/packages/exam-drawer/src/index_20230613115825.vue +0 -1480
  125. package/.history/packages/exam-drawer/src/index_20230613115827.vue +0 -1480
  126. package/.history/packages/exam-drawer/src/index_20230613120908.vue +0 -1481
  127. package/.history/packages/exam-drawer/src/index_20230613120910.vue +0 -1481
  128. package/.history/packages/exam-drawer/src/index_20230613121320.vue +0 -1480
  129. package/.history/packages/exam-drawer/src/index_20230613121326.vue +0 -1480
  130. package/.history/packages/exam-drawer/src/index_20230613144244.vue +0 -1479
  131. package/.history/packages/exam-drawer/src/index_20230613144246.vue +0 -1478
  132. package/.history/packages/exam-drawer/src/index_20230613144248.vue +0 -1477
  133. package/.history/packages/exam-drawer/src/index_20230613144251.vue +0 -1476
  134. package/.history/packages/exam-drawer/src/index_20230613152608.vue +0 -1476
  135. package/.history/packages/header/src/index_20230605134719.vue +0 -59
  136. package/.history/packages/header/src/index_20230613115723.vue +0 -59
  137. package/.history/packages/header/src/index_20230613115727.vue +0 -59
  138. package/.history/packages/header/src/index_20230613115733.vue +0 -59
  139. package/.history/packages/header/src/index_20230613115736.vue +0 -59
  140. package/.history/packages/header/src/index_20230613120901.vue +0 -60
  141. package/.history/packages/header/src/index_20230613120903.vue +0 -60
  142. package/.history/packages/header/src/index_20230613121316.vue +0 -59
  143. package/.history/packages/question-drawer/src/index_20230607160653.vue +0 -1735
  144. package/.history/packages/question-drawer/src/index_20230607160720.scss +0 -265
  145. package/.history/packages/question-drawer/src/index_20230613090910.vue +0 -1735
  146. package/.history/packages/question-drawer/src/index_20230613090928.vue +0 -1734
  147. package/.history/packages/question-drawer/src/index_20230613090937.vue +0 -1733
  148. package/.history/packages/question-drawer/src/index_20230613115842.vue +0 -1733
  149. package/.history/packages/question-drawer/src/index_20230613115844.vue +0 -1733
  150. package/.history/packages/question-drawer/src/index_20230613115848.vue +0 -1733
  151. package/.history/packages/question-drawer/src/index_20230613115902.vue +0 -1733
  152. package/.history/packages/question-drawer/src/index_20230613115911.vue +0 -1733
  153. package/.history/packages/question-drawer/src/index_20230613115914.vue +0 -1733
  154. package/.history/packages/question-drawer/src/index_20230613115922.vue +0 -1733
  155. package/.history/packages/question-drawer/src/index_20230613120356.vue +0 -1733
  156. package/.history/packages/question-drawer/src/index_20230613120359.vue +0 -1732
  157. package/.history/packages/question-drawer/src/index_20230613120710.vue +0 -1731
  158. package/.history/packages/question-drawer/src/index_20230613120839.vue +0 -1732
  159. package/.history/packages/question-drawer/src/index_20230613120841.vue +0 -1732
  160. package/.history/packages/question-drawer/src/index_20230613120844.vue +0 -1733
  161. package/.history/packages/question-drawer/src/index_20230613120846.vue +0 -1733
  162. package/.history/packages/question-drawer/src/index_20230613120850.vue +0 -1734
  163. package/.history/packages/question-drawer/src/index_20230613120852.vue +0 -1734
  164. package/.history/packages/question-drawer/src/index_20230613120856.vue +0 -1735
  165. package/.history/packages/question-drawer/src/index_20230613120858.vue +0 -1735
  166. package/.history/packages/question-drawer/src/index_20230613121150.vue +0 -1735
  167. package/.history/packages/question-drawer/src/index_20230613121238.vue +0 -1734
  168. package/.history/packages/question-drawer/src/index_20230613121252.vue +0 -1734
  169. package/.history/packages/question-drawer/src/index_20230613121256.vue +0 -1734
  170. package/.history/packages/question-drawer/src/index_20230613121258.vue +0 -1733
  171. package/.history/packages/question-drawer/src/index_20230613121303.vue +0 -1733
  172. package/.history/packages/question-drawer/src/index_20230613121307.vue +0 -1733
  173. package/.history/packages/question-drawer/src/index_20230613121310.vue +0 -1732
  174. package/.history/packages/question-drawer/src/index_20230613121313.vue +0 -1731
  175. package/.history/packages/question-drawer/src/index_20230613121549.vue +0 -1731
  176. package/.history/packages/question-drawer/src/index_20230613121623.vue +0 -1731
  177. package/.history/packages/question-drawer/src/index_20230613151515.vue +0 -1730
  178. package/.history/packages/question-drawer/src/index_20230613151517.vue +0 -1729
  179. package/.history/packages/question-drawer/src/index_20230613151612.vue +0 -1729
  180. package/.history/packages/question-drawer/src/index_20230613151618.vue +0 -1729
  181. package/.history/packages/question-drawer/src/index_20230613151928.vue +0 -1729
  182. package/.history/packages/question-drawer/src/index_20230613151929.vue +0 -1729
  183. package/.history/packages/question-drawer/src/index_20230613152233.vue +0 -1728
  184. package/.history/packages/question-drawer/src/index_20230613152235.vue +0 -1727
  185. package/.history/packages/question-drawer/src/index_20230613152237.vue +0 -1726
  186. package/.history/packages/question-drawer/src/index_20230613152239.vue +0 -1726
  187. package/.history/packages/question-drawer/src/index_20230613152243.vue +0 -1725
  188. package/.history/packages/question-drawer/src/index_20230613152245.vue +0 -1724
  189. package/.history/packages/question-drawer/src/index_20230613152247.vue +0 -1723
  190. package/.history/packages/question-drawer/src/index_20230613152248.vue +0 -1723
  191. package/.history/packages/question-drawer/src/index_20230613152543.vue +0 -1723
  192. package/.history/packages/question-drawer/src/index_20230613152613.vue +0 -1723
  193. package/.history/packages/question-drawer/src/index_20230614203619.vue +0 -1725
  194. package/.history/packages/question-drawer/src/index_20230614203633.vue +0 -1729
  195. package/.history/packages/question-drawer/src/index_20230614203637.vue +0 -1729
  196. package/.history/packages/question-drawer/src/index_20230614203912.vue +0 -1729
  197. package/.history/packages/question-drawer/src/index_20230614211516.scss +0 -270
  198. package/.history/packages/question-drawer/src/index_20230614212057.scss +0 -265
  199. package/.history/packages/question-drawer/src/index_20230614212140.scss +0 -270
  200. package/.history/packages/question-drawer/src/index_20230614212146.scss +0 -270
  201. package/.history/packages/question-drawer/src/index_20230614212158.scss +0 -270
  202. package/.history/packages/question-drawer/src/index_20230614212613.scss +0 -270
  203. package/.history/packages/question-drawer/src/index_20230614212615.scss +0 -270
  204. package/.history/packages/question-drawer/src/index_20230614212841.scss +0 -270
  205. package/.history/packages/question-drawer/src/index_20230614212939.scss +0 -270
  206. package/.history/packages/question-drawer/src/index_20230614213141.scss +0 -270
  207. package/.history/packages/question-drawer/src/index_20230614213255.scss +0 -270
  208. package/.history/packages/question-drawer/src/index_20230614213349.scss +0 -265
  209. package/.history/packages/question-drawer/src/index_20230614213350.scss +0 -265
  210. package/.history/packages/question-drawer/src/index_20230614213400.scss +0 -265
  211. package/.history/packages/question-drawer/src/index_20230614213401.scss +0 -270
  212. package/.history/packages/question-drawer/src/index_20230614213431.scss +0 -265
  213. package/.history/packages/question-drawer/src/index_20230615100944.vue +0 -1730
  214. package/.history/packages/question-drawer/src/index_20230615100946.vue +0 -1730
  215. package/.history/packages/question-drawer/src/index_20230615100952.vue +0 -1730
  216. package/.history/packages/question-drawer/src/index_20230615100957.vue +0 -1730
  217. package/.history/packages/question-drawer/src/index_20230615104839.vue +0 -1730
  218. package/.history/packages/tabs/src/index_20230607165331.scss +0 -60
  219. package/.history/packages/tabs/src/index_20230614211226.scss +0 -60
  220. package/.history/packages/tabs/src/index_20230614211227.scss +0 -61
  221. package/.history/packages/tabs/src/index_20230614211253.scss +0 -65
  222. package/.history/packages/tabs/src/index_20230614211332.scss +0 -60
  223. package/.history/packages/wrong-detail/src/index_20230607221202.vue +0 -570
  224. package/.history/packages/wrong-detail/src/index_20230613120416.vue +0 -570
  225. package/.history/packages/wrong-detail/src/index_20230613120418.vue +0 -569
  226. package/.history/packages/wrong-detail/src/index_20230613120738.vue +0 -568
  227. package/.history/packages/wrong-detail/src/index_20230613120800.vue +0 -568
  228. package/.history/packages/wrong-detail/src/index_20230613120803.vue +0 -568
  229. package/.history/packages/wrong-detail/src/index_20230613120825.vue +0 -568
  230. package/.history/packages/wrong-detail/src/index_20230613120834.vue +0 -569
  231. package/.history/packages/wrong-detail/src/index_20230613121246.vue +0 -568
  232. package/.history/packages/wrong-detail/src/index_20230613155421.vue +0 -574
  233. package/.history/packages/wrong-detail/src/index_20230613155423.vue +0 -574
  234. package/.history/packages/wrong-detail/src/index_20230613155426.vue +0 -574
  235. package/.history/packages/wrong-drawer/src/index_20230607213124.vue +0 -450
  236. package/.history/packages/wrong-drawer/src/index_20230613104307.vue +0 -450
  237. package/.history/packages/wrong-drawer/src/index_20230613104315.vue +0 -451
  238. package/.history/packages/wrong-drawer/src/index_20230613104317.vue +0 -451
  239. package/.history/packages/wrong-drawer/src/index_20230613104334.vue +0 -451
  240. package/.history/packages/wrong-drawer/src/index_20230613104403.vue +0 -450
  241. package/.history/packages/wrong-drawer/src/index_20230613104405.vue +0 -449
  242. package/.history/packages/wrong-drawer/src/index_20230613104621.vue +0 -458
  243. package/.history/packages/wrong-drawer/src/index_20230613104626.vue +0 -459
  244. package/.history/packages/wrong-drawer/src/index_20230613104629.vue +0 -457
  245. package/.history/packages/wrong-drawer/src/index_20230613104630.vue +0 -457
  246. package/.history/packages/wrong-drawer/src/index_20230613104747.vue +0 -464
  247. package/.history/packages/wrong-drawer/src/index_20230613104749.vue +0 -464
  248. package/.history/packages/wrong-drawer/src/index_20230613104753.vue +0 -464
  249. package/.history/packages/wrong-drawer/src/index_20230613111237.vue +0 -464
  250. package/.history/packages/wrong-drawer/src/index_20230613111314.vue +0 -464
  251. package/.history/packages/wrong-drawer/src/index_20230613114319.vue +0 -464
  252. package/.history/packages/wrong-drawer/src/index_20230613114322.vue +0 -464
  253. package/.history/packages/wrong-drawer/src/index_20230613114901.vue +0 -463
  254. package/.history/packages/wrong-drawer/src/index_20230613114903.vue +0 -462
  255. package/.history/packages/wrong-drawer/src/index_20230613114904.vue +0 -462
  256. package/.history/packages/wrong-drawer/src/index_20230613114909.vue +0 -462
  257. package/.history/packages/wrong-drawer/src/index_20230613114936.vue +0 -463
  258. package/.history/packages/wrong-drawer/src/index_20230613114940.vue +0 -463
  259. package/.history/packages/wrong-drawer/src/index_20230613114942.vue +0 -463
  260. package/.history/packages/wrong-drawer/src/index_20230613115348.vue +0 -487
  261. package/.history/packages/wrong-drawer/src/index_20230613115352.vue +0 -487
  262. package/.history/packages/wrong-drawer/src/index_20230613115356.vue +0 -487
  263. package/.history/packages/wrong-drawer/src/index_20230613115408.vue +0 -500
  264. package/.history/packages/wrong-drawer/src/index_20230613115411.vue +0 -500
  265. package/.history/packages/wrong-drawer/src/index_20230613115414.vue +0 -500
  266. package/.history/packages/wrong-drawer/src/index_20230613144213.vue +0 -499
  267. package/.history/packages/wrong-drawer/src/index_20230613144215.vue +0 -498
  268. package/.history/packages/wrong-drawer/src/index_20230613144218.vue +0 -497
  269. package/.history/packages/wrong-drawer/src/index_20230613144223.vue +0 -497
  270. package/.history/packages/wrong-drawer/src/index_20230613144225.vue +0 -497
  271. package/.history/packages/wrong-drawer/src/index_20230613144229.vue +0 -498
  272. package/.history/packages/wrong-drawer/src/index_20230613144232.vue +0 -498
  273. package/.history/packages/wrong-drawer/src/index_20230613144316.vue +0 -500
  274. package/.history/packages/wrong-drawer/src/index_20230613144345.vue +0 -500
  275. package/.history/packages/wrong-drawer/src/index_20230613144346.vue +0 -500
  276. package/.history/packages/wrong-drawer/src/index_20230613145546.vue +0 -498
  277. package/.history/packages/wrong-drawer/src/index_20230613145548.vue +0 -501
  278. package/.history/packages/wrong-drawer/src/index_20230613145550.vue +0 -500
  279. package/.history/packages/wrong-drawer/src/index_20230613145602.vue +0 -500
  280. package/.history/packages/wrong-drawer/src/index_20230613145611.vue +0 -500
  281. package/.history/packages/wrong-drawer/src/index_20230613145625.vue +0 -500
  282. package/.history/packages/wrong-drawer/src/index_20230613145634.vue +0 -500
  283. package/.history/packages/wrong-drawer/src/index_20230613150805.vue +0 -500
  284. package/.history/packages/wrong-drawer/src/index_20230613150806.vue +0 -501
  285. package/.history/packages/wrong-drawer/src/index_20230613150809.vue +0 -501
  286. package/.history/packages/wrong-drawer/src/index_20230613150810.vue +0 -501
  287. package/.history/vue.config_20230606223920.js +0 -126
  288. package/.history/vue.config_20230626104338.js +0 -133
  289. package/.history/vue.config_20230626104344.js +0 -129
  290. package/.history/vue.config_20230626104347.js +0 -129
  291. package/.history/vue.config_20230626104410.js +0 -129
  292. package/.history/vue.config_20230626104446.js +0 -129
  293. package/.history/vue.config_20230626104448.js +0 -129
  294. package/.history/vue.config_20230626104552.js +0 -130
  295. package/.history/vue.config_20230626104554.js +0 -130
  296. package/.history/vue.config_20230626104556.js +0 -130
  297. package/.history/vue.config_20230626104559.js +0 -132
  298. package/.history/vue.config_20230626104600.js +0 -132
  299. package/.history/vue.config_20230626104603.js +0 -132
  300. package/.history/vue.config_20230626104608.js +0 -129
  301. package/.history/vue.config_20230626104646.js +0 -123
  302. package/.history/vue.config_20230626104824.js +0 -124
  303. package/.history/vue.config_20230626104825.js +0 -124
  304. package/.history/vue.config_20230626104829.js +0 -124
  305. package/.history/vue.config_20230626104832.js +0 -124
  306. package/.history/vue.config_20230626104836.js +0 -121
  307. package/.history/vue.config_20230626105637.js +0 -122
  308. package/.history/vue.config_20230626105642.js +0 -123
  309. package/.history/vue.config_20230626105834.js +0 -124
  310. package/.history/vue.config_20230626105920.js +0 -124
  311. package/.history/vue.config_20230626105938.js +0 -123
  312. package/.history/vue.config_20230626110142.js +0 -124
  313. package/.history/vue.config_20230626110147.js +0 -124
  314. package/.history/vue.config_20230626110154.js +0 -124
  315. package/.history/vue.config_20230626110156.js +0 -124
  316. package/.history/vue.config_20230626110206.js +0 -124
  317. package/.history/vue.config_20230626110207.js +0 -124
  318. package/.history/vue.config_20230626110209.js +0 -124
  319. package/.history/vue.config_20230626110235.js +0 -123
  320. package/.history/vue.config_20230626110237.js +0 -123
  321. package/.history/vue.config_20230626110257.js +0 -123
  322. package/.history/vue.config_20230626110300.js +0 -123
  323. package/.history/vue.config_20230626110316.js +0 -123
  324. package/.history/vue.config_20230626110621.js +0 -123
  325. package/.history/vue.config_20230626110703.js +0 -124
  326. package/.history/vue.config_20230626110708.js +0 -125
  327. package/.history/vue.config_20230626110710.js +0 -126
  328. package/.history/vue.config_20230626110712.js +0 -127
  329. package/.history/vue.config_20230626110715.js +0 -126
  330. package/.history/vue.config_20230626110716.js +0 -127
  331. package/.history/vue.config_20230626110721.js +0 -128
  332. package/.history/vue.config_20230626110741.js +0 -128
  333. package/.history/vue.config_20230626110746.js +0 -128
  334. package/.history/vue.config_20230626110751.js +0 -128
  335. package/.history/vue.config_20230626110754.js +0 -128
  336. package/.history/vue.config_20230626110757.js +0 -128
  337. package/.history/vue.config_20230626110811.js +0 -128
  338. package/.history/vue.config_20230626110815.js +0 -128
  339. package/.history/vue.config_20230626110820.js +0 -128
  340. package/.history/vue.config_20230626110823.js +0 -128
  341. package/.history/vue.config_20230626110949.js +0 -129
  342. package/.history/vue.config_20230626110951.js +0 -129
  343. package/.history/vue.config_20230626110953.js +0 -130
  344. package/.history/vue.config_20230626110956.js +0 -130
  345. package/.history/vue.config_20230626110958.js +0 -131
  346. package/.history/vue.config_20230626111207.js +0 -131
  347. package/.history/vue.config_20230626111211.js +0 -131
  348. package/.history/vue.config_20230626111216.js +0 -131
  349. package/.history/vue.config_20230626111217.js +0 -131
  350. package/.history/vue.config_20230626111332.js +0 -131
  351. package/.history/vue.config_20230626111338.js +0 -131
  352. package/.history/vue.config_20230626111342.js +0 -131
  353. package/.history/vue.config_20230626111359.js +0 -131
  354. package/.history/vue.config_20230626111402.js +0 -131
  355. package/.history/vue.config_20230626111404.js +0 -131
  356. package/.history/vue.config_20230626111442.js +0 -131
  357. package/.history/vue.config_20230626111443.js +0 -131
  358. package/.history/vue.config_20230626111448.js +0 -131
  359. package/.history/vue.config_20230626111450.js +0 -131
  360. package/.history/vue.config_20230626111528.js +0 -131
  361. package/.history/vue.config_20230626111529.js +0 -131
  362. package/.history/vue.config_20230626112153.js +0 -132
  363. package/.history/vue.config_20230626112156.js +0 -133
  364. package/.history/vue.config_20230626112158.js +0 -132
  365. package/.history/vue.config_20230626112201.js +0 -132
  366. package/.history/vue.config_20230626112254.js +0 -132
  367. package/.history/vue.config_20230626112400.js +0 -132
  368. package/.history/vue.config_20230626112402.js +0 -132
  369. package/.history/vue.config_20230626112452.js +0 -132
  370. package/.history/vue.config_20230626113026.js +0 -133
  371. package/.history/vue.config_20230626113032.js +0 -133
  372. package/.history/vue.config_20230626113034.js +0 -134
  373. package/.history/vue.config_20230626113036.js +0 -135
  374. package/.history/vue.config_20230626113040.js +0 -136
  375. package/.history/vue.config_20230626113041.js +0 -137
  376. package/.history/vue.config_20230626113042.js +0 -138
  377. package/.history/vue.config_20230626113044.js +0 -139
  378. package/.history/vue.config_20230626113049.js +0 -140
  379. package/.history/vue.config_20230626113052.js +0 -141
  380. package/.history/vue.config_20230626113056.js +0 -142
  381. package/.history/vue.config_20230626113058.js +0 -143
  382. package/.history/vue.config_20230626113101.js +0 -144
  383. package/.history/vue.config_20230626113105.js +0 -144
  384. package/.history/vue.config_20230626113110.js +0 -145
  385. package/.history/vue.config_20230626113112.js +0 -145
  386. package/.history/vue.config_20230626113129.js +0 -145
  387. package/.history/vue.config_20230626113131.js +0 -146
  388. package/.history/vue.config_20230626113133.js +0 -145
  389. package/.history/vue.config_20230626113142.js +0 -144
  390. package/.history/vue.config_20230626113145.js +0 -137
  391. package/.history/vue.config_20230626113147.js +0 -144
  392. package/.history/vue.config_20230626113154.js +0 -143
  393. package/.history/vue.config_20230626113202.js +0 -144
  394. package/.history/vue.config_20230626113204.js +0 -144
  395. package/.history/vue.config_20230626113207.js +0 -144
  396. package/.history/vue.config_20230626113216.js +0 -144
  397. package/.history/vue.config_20230626113223.js +0 -144
  398. package/.history/vue.config_20230626113224.js +0 -144
  399. package/.history/vue.config_20230626113227.js +0 -144
  400. package/.history/vue.config_20230626113230.js +0 -144
  401. package/.history/vue.config_20230626113237.js +0 -144
  402. package/.history/vue.config_20230626113239.js +0 -144
  403. package/.history/vue.config_20230626113244.js +0 -144
  404. package/.history/vue.config_20230626113245.js +0 -144
  405. package/.history/vue.config_20230626113248.js +0 -142
  406. package/.history/vue.config_20230626113250.js +0 -142
  407. package/.history/vue.config_20230626113255.js +0 -142
  408. package/.history/vue.config_20230626113303.js +0 -142
  409. package/.history/vue.config_20230626113305.js +0 -142
  410. package/.history/vue.config_20230626113309.js +0 -142
  411. package/.history/vue.config_20230626113347.js +0 -142
  412. package/.history/vue.config_20230626113404.js +0 -139
  413. package/.history/vue.config_20230626113406.js +0 -138
  414. package/.history/vue.config_20230626113418.js +0 -134
  415. package/.history/vue.config_20230626113511.js +0 -129
  416. package/.history/vue.config_20230626113656.js +0 -129
  417. package/.history/vue.config_20230626114206.js +0 -134
  418. package/.history/vue.config_20230626114210.js +0 -138
  419. package/.history/vue.config_20230626114358.js +0 -137
  420. package/.history/vue.config_20230626114603.js +0 -137
  421. package/.history/vue.config_20230626114605.js +0 -137
  422. package/.history/vue.config_20230626114657.js +0 -137
  423. package/.history/vue.config_20230626114745.js +0 -137
  424. package/.history/vue.config_20230626114821.js +0 -137
  425. package/.history/vue.config_20230626114832.js +0 -139
  426. package/.history/vue.config_20230626114836.js +0 -132
  427. package/.history/vue.config_20230626114847.js +0 -132
  428. package/.history/vue.config_20230626114850.js +0 -132
  429. package/lib/ui.css +0 -1
  430. package/lib/ui.umd.min.js +0 -25
  431. /package/{lib → dist}/demo.html +0 -0
  432. /package/{lib → dist}/fonts/icomoon.356dc15f.woff +0 -0
  433. /package/{lib → dist}/fonts/icomoon.ba18ad87.eot +0 -0
  434. /package/{lib → dist}/fonts/icomoon.ec37e716.ttf +0 -0
  435. /package/{lib → dist}/img/cloud_txt_24.87b9d2ae.svg +0 -0
  436. /package/{lib → dist}/img/icomoon.532b3795.svg +0 -0
  437. /package/{lib → dist}/img/icon_question.e931b16c.svg +0 -0
@@ -1,1735 +0,0 @@
1
- <!--右侧题目题库抽屉-->
2
- <template>
3
- <div class="question-drawer">
4
- <ft-drawer>
5
- <ft-tabs
6
- :options="
7
- examPointEnableFlag == 1 && examPointList && examPointList.length > 0
8
- ? tabListWithPoint
9
- : tabList
10
- "
11
- :activeName="activeTab"
12
- @click="tabClick"
13
- ></ft-tabs>
14
- <div class="cascader course" v-show="activeTab == 'course'">
15
- <ft-cascader
16
- :options="materialsGradesList"
17
- :value.sync="currentMaterials"
18
- @change="changeMaterials"
19
- ></ft-cascader>
20
- <ft-cascader
21
- :options="courseCascaderList"
22
- :value.sync="currentCourse"
23
- :props="{
24
- value: 'courseId',
25
- label: 'courseName',
26
- children: 'courses',
27
- checkStrictly: true,
28
- }"
29
- ref="course"
30
- selfRef="courseCascader"
31
- @change="changeCourse"
32
- ></ft-cascader>
33
- </div>
34
- <div class="cascader knowledge" v-show="activeTab == 'knowledge'">
35
- <el-popover
36
- ref="knowledgePopover"
37
- style="padding: 0; margin-top: 40px"
38
- placement="bottom-start"
39
- width="492"
40
- trigger="click"
41
- v-model="knowledgeVisible"
42
- popper-class="knowledge-popover"
43
- >
44
- <div class="knowledge-popover">
45
- <el-input
46
- v-model="filterText"
47
- placeholder="搜索知识点"
48
- clearable
49
- size="small"
50
- style="width: calc(100% - 20px); margin: 5px 10px"
51
- ></el-input>
52
- <div class="catalog-tool">
53
- <el-switch
54
- class="self-switch"
55
- v-model="switchValue"
56
- active-color="#E2E2E2"
57
- inactive-color="#E2E2E2"
58
- :active-text="i18n.duoXuan"
59
- :inactive-text="i18n.danXuan"
60
- >
61
- </el-switch>
62
- <div class="tool-btn-tab" v-show="switchValue">
63
- <div
64
- :class="[
65
- 'knowledge-btn',
66
- knowledgeType == 0
67
- ? 'knowledge-btn-select'
68
- : 'knowledge-btn-normal',
69
- ]"
70
- @click="choiseKnowledgeType(0)"
71
- >
72
- {{ i18n.zhiShiDianJiaoJi }}
73
- </div>
74
- <div
75
- :class="[
76
- 'knowledge-btn',
77
- knowledgeType == 1
78
- ? 'knowledge-btn-select'
79
- : 'knowledge-btn-normal',
80
- ]"
81
- @click="choiseKnowledgeType(1)"
82
- >
83
- {{ i18n.zhiShiDianBingJi }}
84
- </div>
85
- </div>
86
- </div>
87
- <el-tree
88
- class="self-tree"
89
- :data="klList"
90
- :show-checkbox="switchValue"
91
- :props="{
92
- label: 'klname',
93
- children: 'knowledgeDtoList',
94
- }"
95
- :empty-text="i18n.zanWuShuJu"
96
- node-key="klId"
97
- ref="secondTree"
98
- highlight-current
99
- :filter-node-method="knowledgeFilterNode"
100
- @node-click="clickKnowledgeNode"
101
- @check="checkKnowledgeNode"
102
- >
103
- <span class="span-ellipsis" slot-scope="{ node }">
104
- <span :title="node.label">{{ decode(node.label) }}</span>
105
- </span>
106
- </el-tree>
107
- <div class="tool-btn" v-show="switchValue">
108
- <div class="btn-title">
109
- {{ i18n.yiXuanZeZhiShiDian
110
- }}<span class="btn-count">{{ klArr.length }}</span>
111
- </div>
112
- <div
113
- :class="[
114
- 'btn',
115
- klArr.length > 0 && klArr.length <= 100
116
- ? 'btn-sure'
117
- : 'btn-disable',
118
- ]"
119
- @click="toQueryWithKnowledges"
120
- >
121
- {{ i18n.queDing }}
122
- </div>
123
- <div
124
- :class="['btn', klArr.length > 0 ? 'btn-clear' : 'btn-disable']"
125
- @click="clearKnowledges"
126
- >
127
- {{ i18n.qingKong }}
128
- </div>
129
- </div>
130
- <toast
131
- style="
132
- position: fixed;
133
- top: 300px;
134
- right: 120px;
135
- width: 278px;
136
- z-index: 10000;
137
- "
138
- :toastOptions="toastOptions"
139
- ></toast>
140
- </div>
141
- </el-popover>
142
- <div class="knowledge-back">
143
- <div v-popover:knowledgePopover class="knowledge-back-pop">
144
- <el-tooltip
145
- :class="
146
- knowledgeName.length > 0 ? 'item' : 'knowledge-title-item'
147
- "
148
- style="margin-top: 0"
149
- effect="dark"
150
- :disabled="isShowTooltip"
151
- :content="allKnowledgeName"
152
- placement="bottom"
153
- >
154
- <input
155
- :class="[
156
- 'knowledge-input',
157
- knowledgeVisible
158
- ? 'knowledge-input-show'
159
- : 'knowledge-input-normal',
160
- knowledgeName.length > 0 ? 'knowledge-input-value' : '',
161
- ]"
162
- type="button"
163
- :value="
164
- knowledgeName.length > 0
165
- ? knowledgeName
166
- : knowledgePlaceholder
167
- "
168
- />
169
- </el-tooltip>
170
- <i
171
- :class="
172
- knowledgeVisible ? 'icon-drop-up-btn' : 'icon-drop-down-btn'
173
- "
174
- ></i>
175
- </div>
176
- </div>
177
- </div>
178
- <div class="cascader point" v-show="activeTab == 'point'">
179
- <ft-cascader
180
- :options="pointData"
181
- :value.sync="currentPointId"
182
- @change="handlePointChange"
183
- :props="{
184
- value: 'pointId',
185
- label: 'pointName',
186
- children: 'subExamPointDto',
187
- checkStrictly: true,
188
- }"
189
- >
190
- </ft-cascader>
191
- </div>
192
- <div class="screen">
193
- <ft-radio
194
- v-show="itemBankTypeList.length"
195
- :label="i18n.laiYuan"
196
- :options="itemBankTypeList"
197
- :defaultValue="indexParam.itemBankType"
198
- :props="{
199
- label: 'itemBankTypeName',
200
- id: 'itemBankType',
201
- }"
202
- @radio-click="sourceClick"
203
- ></ft-radio>
204
- <ft-radio
205
- v-show="topicList.length && defaultCategoryType != 4"
206
- :label="i18n.zhuanTi"
207
- :options="topicList"
208
- :defaultValue="indexParam.topicId ? indexParam.topicId : 'all'"
209
- :props="{
210
- label: 'topicName',
211
- id: 'topicId',
212
- }"
213
- @radio-click="topicClick"
214
- ></ft-radio>
215
- <ft-radio
216
- v-show="itemCategoryList.length"
217
- :label="i18n.tiXing"
218
- :options="itemCategoryList"
219
- :defaultValue="
220
- indexParam.itemCategoryId ? indexParam.itemCategoryId : 'all'
221
- "
222
- :props="{
223
- label: 'itemCategoryName',
224
- id: 'itemCategoryId',
225
- }"
226
- @radio-click="categoryClick"
227
- ></ft-radio>
228
- <ft-radio
229
- v-show="difficultyList.length"
230
- :label="i18n.nanDu"
231
- :options="difficultyList"
232
- :defaultValue="
233
- indexParam.difficultyId ? indexParam.difficultyId : 'all'
234
- "
235
- :props="{
236
- label: 'difficultyName',
237
- id: 'difficultyId',
238
- }"
239
- @radio-click="difficultyClick"
240
- ></ft-radio>
241
- <ft-radio
242
- v-show="basicSkillsList.length"
243
- :label="i18n.jiNeng"
244
- :options="basicSkillsList"
245
- :defaultValue="
246
- indexParam.basicSkillsId ? indexParam.basicSkillsId : 'all'
247
- "
248
- :props="{
249
- label: 'basicName',
250
- id: 'basicSkillsId',
251
- }"
252
- @radio-click="basicSkillClick"
253
- ></ft-radio>
254
- <ft-radio
255
- v-if="coreLiteracyFlag && coreLiteracyList.length"
256
- label="素养"
257
- :options="coreLiteracyList"
258
- :defaultValue="indexParam.literacyId ? indexParam.literacyId : 'all'"
259
- :props="{
260
- label: 'literacyName',
261
- id: 'literacyId',
262
- }"
263
- @radio-click="coreLiteracyClick"
264
- :isHtml="true"
265
- :collapse="true"
266
- ></ft-radio>
267
- <ft-radio
268
- v-show="yearList.length && defaultCategoryType != 4"
269
- :label="i18n.nianFen"
270
- :options="yearList"
271
- :defaultValue="indexParam.year ? indexParam.year : 'all'"
272
- @radio-click="yearClick"
273
- ></ft-radio>
274
- <!-- <ft-radio
275
- v-show="coreLiteracyList.length"
276
- label="核心素养"
277
- :options="coreLiteracyList"
278
- :defaultValue="indexParam.year ? indexParam.year : 'all'"
279
- @radio-click="yearClick"
280
- ></ft-radio> -->
281
- </div>
282
- <div
283
- class="question"
284
- id="tk-detail-drawer-slot-id"
285
- v-infinite-scroll="changeCurrentPage"
286
- :infinite-scroll-disabled="!hasMore"
287
- infinite-scroll-distance="40"
288
- >
289
- <ft-header
290
- :options="sortList"
291
- @sort="headerSort"
292
- default-sort="updateTime"
293
- v-show="itemInfoList.length"
294
- >
295
- {{ i18n.gong }}{{ itemInfoList.length }}{{ i18n.daoTiMu }}
296
- </ft-header>
297
- <div id="bankData-drawer-slot-id">
298
- <ft-question
299
- v-show="
300
- !loadingBankData && !loadingError && itemInfoList.length > 0
301
- "
302
- v-for="(item, index) in itemInfoList"
303
- :key="item.itemInfoId"
304
- :itemInfo="item"
305
- :itemIndex="index + 1"
306
- :examItemList="itemList"
307
- :variantList="itemList"
308
- :pointNames="item.pointNames || '--'"
309
- :klNames="item.klNames || '--'"
310
- :skill="item.basicSkillNames || '--'"
311
- :answer="item.answer || '--'"
312
- :analysis="item.analysis || '--'"
313
- :itemCategoryName="item.itemCategoryName"
314
- :topicName="item.topicName"
315
- :difficultyId="item.difficultyId"
316
- :difficultyName="item.difficultyName"
317
- :audioFileId="item.audioFileId"
318
- :itemFromType="item.itemFromType"
319
- :content="item.content"
320
- :updateTime="item.updateTime"
321
- :referenceCount="item.referenceCount"
322
- :itemInfoId="item.itemInfoId"
323
- :provinceId="item.provinceId"
324
- :provinceName="item.provinceName"
325
- :areaId="item.areaId"
326
- :districtId="item.districtId"
327
- :areaName="item.areaName"
328
- :districtName="item.districtName"
329
- :year="item.year"
330
- :rootItemInfoId="item.rootItemInfoId"
331
- :itemSourceType="item.itemSourceType"
332
- @showAnswer="getAnswer"
333
- @getContent="getContent"
334
- @choiceOrRemoveQuestion="choiceOrRemoveQuestion"
335
- @toShowAudio="toShowAudio"
336
- :fromType="fromType"
337
- ></ft-question>
338
- </div>
339
- <ft-empty
340
- v-show="!loadingBankData && !loadingError && itemInfoList.length == 0"
341
- :message="i18n.zanWuTiMu"
342
- >
343
- <img
344
- class="empty-img"
345
- :src="host + '/assets/prepare-course/list/img/empty.fcdd9ba5.png'"
346
- alt=""
347
- />
348
- </ft-empty>
349
- <ft-error
350
- v-show="!loadingBankData && loadingError"
351
- @retry="clickRetryBtn"
352
- >
353
- <img
354
- class="error-img"
355
- :src="host + '/assets/prepare-course/list/img/error.7e494464.png'"
356
- alt=""
357
- />
358
- </ft-error>
359
- <div v-show="loadingBankData" class="loading"></div>
360
- </div>
361
- <div class="page-contro" v-show="itemInfoList.length > 0">
362
- {{
363
- drawerPageError
364
- ? this.i18n.jiaZaiShiBai
365
- : loading
366
- ? this.i18n.jiaZaiZhong
367
- : hasMore
368
- ? ""
369
- : this.i18n.jiaZaiWanBi
370
- }}
371
- </div>
372
- </ft-drawer>
373
- </div>
374
- </template>
375
-
376
- <script>
377
- import {
378
- Tabs,
379
- TabPane,
380
- Cascader,
381
- Popover,
382
- Tooltip,
383
- Loading,
384
- Tree,
385
- Input,
386
- } from "element-ui";
387
- import FtTabs from "../../tabs/index";
388
- import FtCascader from "../../cascader/index";
389
- import FtQuestion from "../../question/index";
390
- import FtHeader from "../../header/index";
391
- import FtRadio from "../../radio/index";
392
- import FtDrawer from "../../drawer/index";
393
- import FtEmpty from "../../empty/index";
394
- import FtError from "../../error/index";
395
- import {
396
- getBankIndex,
397
- getBankData,
398
- getMaterialsGrades,
399
- getKnowledge,
400
- getEditorCourse,
401
- getTopic,
402
- getKldftNecessary,
403
- getQuestion,
404
- getAnswer,
405
- } from "../../../api/index";
406
- import { decodeEntities } from "../../../utils/common";
407
- import Toast from "./Toast";
408
- import infiniteScroll from "vue-infinite-scroll";
409
- export default {
410
- name: "FtQuestionDrawer",
411
- // import引入的组件需要注入到对象中才能使用
412
- components: {
413
- Toast,
414
- [Tabs.name]: Tabs,
415
- [TabPane.name]: TabPane,
416
- [Cascader.name]: Cascader,
417
- [Popover.name]: Popover,
418
- [Tooltip.name]: Tooltip,
419
- [Tree.name]: Tree,
420
- [Input.name]: Input,
421
- FtTabs,
422
- FtCascader,
423
- FtQuestion,
424
- FtHeader,
425
- FtRadio,
426
- FtDrawer,
427
- FtError,
428
- FtEmpty,
429
- },
430
- directives: { infiniteScroll },
431
- props: {
432
- itemList: {
433
- type: Array,
434
- default: () => [],
435
- },
436
- leftInfo: {
437
- type: Object,
438
- default: () => {
439
- return {
440
- eduLevelId: "",
441
- subjectId: "",
442
- courseSrc: "",
443
- courseId: "",
444
- };
445
- },
446
- },
447
- fromType: {
448
- type: String,
449
- default: "",
450
- },
451
- klidsList: {
452
- type: String,
453
- default: "",
454
- },
455
- i18n: {
456
- type: Object,
457
- },
458
- },
459
- data() {
460
- return {
461
- host: window.location.origin,
462
- currentPointId: [],
463
- pointData: [],
464
- filterText: "",
465
- activeTab: "course",
466
- tabList: [
467
- {
468
- id: "course",
469
- label: this.i18n.anTongBuKeCheng,
470
- },
471
- {
472
- id: "knowledge",
473
- label: this.i18n.anZhiShiDian,
474
- },
475
- ],
476
- tabListWithPoint: [
477
- {
478
- id: "course",
479
- label: this.i18n.anTongBuKeCheng,
480
- },
481
- {
482
- id: "knowledge",
483
- label: this.i18n.anZhiShiDian,
484
- },
485
- {
486
- id: "point",
487
- label: this.i18n.anKaoDian,
488
- },
489
- ],
490
- examPointEnableFlag: 0,
491
- examPointList: [],
492
- materialsGradesList: [],
493
- currentMaterials: [],
494
- courseCascaderList: [],
495
- currentCourse: [],
496
- loadingError: false,
497
- indexParam: {
498
- itemBackQueryType: 2, //1 按课程 2 按知识点 3 按考点
499
- page: 1, //页码
500
- studySectionId: "", //学段id
501
- subjectId: "", //科目id
502
- klIds: "", //知识点id集合,多个id以逗号分隔
503
- klUnionFlag: 1, //知识点交并集标识,0交集,1并集,默认1
504
- courseId: "", //课程id
505
- examPointId: "", //考点id
506
- year: "", //年份
507
- topicId: "", //专题id
508
- itemBasicSkillId: "", //基础技能id
509
- itemCategoryId: "", //题目类型idrtList
510
- itemDifficultyId: "", //难度id
511
- order: 0, //排序,0:更新时间倒序,1:更新时间正序
512
- },
513
- //首次请求
514
- isLoading: true,
515
- defaultCategoryType: 0,
516
- //题目总数
517
- totalRecord: 0,
518
- isFirstIndex: true, //首次加载该题库
519
- firstRequestCourse: true, //是否首次加载课程
520
- itemBankTypeList: [],
521
- topicList: [],
522
- itemCategoryList: [],
523
- difficultyList: [],
524
- basicSkillsList: [],
525
- coreLiteracyFlag: false,//是否展示核心素养
526
- coreLiteracyList: [],//核心素养
527
- years: [],
528
- itemInfoList: [],
529
- sortList: [
530
- {
531
- label: "使用次数",
532
- key: "count",
533
- },
534
- {
535
- label: "更新时间",
536
- key: "updateTime",
537
- },
538
- ],
539
- currentCourseId: "",
540
- allDifficultyList: [],
541
- undefinedDifficultyInfo: {
542
- difficultyCoefficient: "0.0",
543
- difficultyId: "JPO-tJbAJqc",
544
- difficultyName: "未定义",
545
- },
546
- drawerPageError: false,
547
- loading: false,
548
- hasMore: true,
549
- //是否正在加载题目数据
550
- loadingBankData: true,
551
- //加载题目数据是否失败
552
- loadingError: false,
553
- currentKlIds: "",
554
- knowledgeType: 1, //知识点交集:0 || 知识点并集:1
555
- knowledgeVisible: false,
556
- currentPointId: [], //考点-当前选择的考点id
557
- knowledgeName: "", //知识点内容
558
- isShowTooltip: true,
559
- allKnowledgeName: "", //没被截取的知识点内容
560
- switchValue: true, //单选:false || 多选:true
561
- klList: [],
562
- klArr: [], //知识点多选时,选择的知识点集合
563
- knowledgePlaceholder: "",
564
- inputTempStr: "", //临时存取输入框内容
565
- toastOptions: { show: false, value: "最多支持100个知识点的查询~" }, //toast的参数
566
- localKlIds: "",
567
- firstEnter: true,
568
- yearList: [],
569
- };
570
- },
571
- //监控data中的数据变化
572
- watch: {
573
- "$store.state.resourceInfo": function (n, o) {
574
- if (this.isFirstIndex) {
575
- console.log("组件库监听到$store变化", n);
576
- this.isFirstIndex = false;
577
- this.requestIndexData();
578
- if (!n.action) this.currentCourse = n.courseId || (n.list && n.list.courseId);
579
- }
580
- },
581
- materialsGradesList(newValue, oldValue) {
582
- let firstV = "";
583
- let secondV = "";
584
- let thirdV = "";
585
- newValue.forEach((element) => {
586
- if (element.value == this.currentCourseValue[0]) {
587
- firstV = element.value;
588
- element.children.forEach((item) => {
589
- if (item.value == this.currentCourseValue[1]) {
590
- secondV = item.value;
591
- item.children.forEach((option) => {
592
- if (option.value == this.currentCourseValue[2]) {
593
- thirdV = option.value;
594
- }
595
- });
596
- }
597
- });
598
- }
599
- });
600
- this.currentMaterials = [firstV, secondV, thirdV];
601
- },
602
- courseCascaderList(newValue, oldValue) {
603
- this.courseCascaderList = newValue;
604
- if (
605
- this.firstRequestCourse &&
606
- this.courseCascaderList &&
607
- this.courseCascaderList.length > 0
608
- ) {
609
- this.firstRequestCourse = false;
610
- setTimeout(() => {
611
- let checkedCourseArr = [];
612
- let checkedNodes =
613
- this.$refs.course.$refs.courseCascader.getCheckedNodes(false);
614
- if (checkedNodes && checkedNodes.length > 0) {
615
- let currentNode = checkedNodes[0];
616
- this.getCurrentCheckedCourse(checkedCourseArr, currentNode);
617
- this.currentCourse = checkedCourseArr;
618
- }
619
- }, 200);
620
- }
621
- },
622
- localKlIds: {
623
- handler() {
624
- this.currentKlIds = this.localKlIds;
625
- this.initTreeValue();
626
- console.log("watch", this.currentKlIds);
627
- },
628
- immediate: true,
629
- },
630
- filterText(val) {
631
- if (this.knowledgeVisible) {
632
- this.$refs.secondTree.filter(val);
633
- }
634
- },
635
- knowledgeVisible(newVal) {
636
- if (!newVal) {
637
- this.filterText = "";
638
- let length = this.$refs.secondTree.$children.length;
639
- for (let i = 0; i < length; i++) {
640
- this.$refs.secondTree.$children[i].node.parent.childNodes[
641
- i
642
- ].expanded = false;
643
- }
644
- }
645
- },
646
- examPointList(newValue, oldValue) {
647
- this.pointData = newValue;
648
- if (
649
- this.pointData &&
650
- this.pointData.length > 0 &&
651
- (!this.currentPointId || this.currentPointId.length == 0)
652
- ) {
653
- this.currentPointId = [this.pointData[0].pointId];
654
- }
655
- },
656
- klidsList(newValue, oldValue) {
657
- if (!this.firstEnter) {
658
- this.localKlIds = newValue;
659
- }
660
- this.firstEnter = false;
661
- this.requestBankData();
662
- },
663
- years(newValue, oldValue) {
664
- if (newValue && newValue.length) {
665
- this.yearList = []
666
- if(newValue.length > 6){
667
- let temp = newValue.slice(0,6)
668
- this.yearList = [...this.yearList, ...temp,{id: 'earlier', label: '更早'}]
669
- console.log('watch yearList is...',newValue)
670
- }else {
671
- newValue.forEach((element) => {
672
- this.yearList.push(element);
673
- });
674
- }
675
- } else {
676
- this.yearList = [];
677
- }
678
- console.log('watch year is...',this.yearList)
679
- },
680
- },
681
- methods: {
682
- changeCurrentPage() {
683
- console.log(this.indexParam);
684
- if (this.itemInfoList.length >= this.totalRecord) {
685
- this.hasMore = false;
686
- return;
687
- }
688
- this.indexParam.page = this.currPage + 1;
689
- this.requestPageBank(this.indexParam);
690
- },
691
- handlePointChange(value) {
692
- var pointId = value[value.length - 1];
693
- let dic = { examPointId: pointId };
694
- this.$emit("changeIndexParam", "changePointId", JSON.stringify(dic));
695
- },
696
- setListener() {
697
- let _this = this;
698
- //改变indexParam参数,重新请求index接口
699
- this.$off("changeIndexParam"); //避免重复响应同一事件
700
- this.$on("changeIndexParam", function (action, msg) {
701
- if (action == "retryRequest") {
702
- //加载失败后的重新请求 || 删除题目后刷新题目数据
703
- _this.requestBankData();
704
- return;
705
- }
706
- let dic = JSON.parse(msg);
707
- for (let key in dic) {
708
- let value = dic[key];
709
- _this.indexParam[key] = value;
710
- }
711
- if (action == "changeSource") {
712
- _this.defaultCategoryType = dic["itemBankType"];
713
- if (_this.defaultCategoryType == 4) {
714
- _this.indexParam.topicId = "";
715
- _this.indexParam.year = "";
716
- let dic = { selectedTopicId: "", currentYear: "" };
717
-
718
- this.$emit(
719
- "toChangeSelectedTopicId",
720
- "toChangeSelectedTopicId",
721
- JSON.stringify(dic)
722
- );
723
- this.$emit(
724
- "toChangeCurrentYear",
725
- "toChangeCurrentYear",
726
- JSON.stringify(dic)
727
- );
728
-
729
- this.$emit(
730
- "eventbus-emit",
731
- "toChangeSelectedTopicId",
732
- "toChangeSelectedTopicId",
733
- JSON.stringify(dic)
734
- );
735
- this.$emit(
736
- "eventbus-emit",
737
- "toChangeCurrentYear",
738
- "toChangeCurrentYear",
739
- JSON.stringify(dic)
740
- );
741
- _this.allDifficultyList = JSON.parse(
742
- JSON.stringify(_this.difficultyList)
743
- );
744
- _this.allDifficultyList.push(_this.undefinedDifficultyInfo);
745
- } else {
746
- _this.allDifficultyList = JSON.parse(
747
- JSON.stringify(_this.difficultyList)
748
- );
749
- if (_this.indexParam.itemDifficultyId == "JPO-tJbAJqc") {
750
- _this.indexParam.itemDifficultyId = "";
751
- let diffDic = { itemDifficultyId: "" };
752
- this.$emit(
753
- "toChangeSelectedDifficultyId",
754
- "toChangeSelectedDifficultyId",
755
- JSON.stringify(diffDic)
756
- );
757
- this.$emit(
758
- "eventbus-emit",
759
- "toChangeSelectedDifficultyId",
760
- "toChangeSelectedDifficultyId",
761
- JSON.stringify(diffDic)
762
- );
763
- }
764
- //请求专题
765
- _this.requestTopicData();
766
- }
767
- }
768
- //
769
- if (action == "changeOrder") {
770
- delete _this.indexParam.orderQuote;
771
- }
772
- if (action == "changeOrderQuote") {
773
- delete _this.indexParam.order;
774
- }
775
- //请求题目数据
776
- _this.requestBankData();
777
- });
778
- //编辑单题成功,若当前来源是我的题库,则刷新题目列表数据
779
- this.$on("editItemSuccess", async (newItemObj) => {
780
- if (_this.indexParam.itemBankType == 4) {
781
- _this.requestBankData();
782
- }
783
- });
784
- },
785
- tabClick(value) {
786
- console.log(value);
787
- this.activeTab = value;
788
- let _this = this;
789
- let dic = {};
790
- switch (this.activeTab) {
791
- case "course":
792
- _this.knowledgeVisible = false;
793
- dic = {
794
- itemBackQueryType: 1,
795
- courseId: _this.currentCourseId,
796
- klIds: "",
797
- klUnionFlag: 1,
798
- examPointId: "",
799
- };
800
- break;
801
- case "knowledge":
802
- dic = {
803
- itemBackQueryType: 2,
804
- courseId: _this.currentCourseId,
805
- klIds: _this.currentKlIds,
806
- klUnionFlag: _this.knowledgeType,
807
- examPointId: "",
808
- };
809
- break;
810
- case "point":
811
- _this.knowledgeVisible = false;
812
- dic = {
813
- itemBackQueryType: 3,
814
- courseId: "",
815
- klIds: "",
816
- klUnionFlag: 1,
817
- examPointId:
818
- _this.currentPointId.length > 0
819
- ? _this.currentPointId[_this.currentPointId.length - 1]
820
- : "",
821
- };
822
- break;
823
- }
824
- this.$emit("changeIndexParam", "changeTab", JSON.stringify(dic));
825
- },
826
- //初始化tree默认值
827
- initTreeValue() {
828
- console.log("initTree");
829
- // debugger
830
- if (this.switchValue) {
831
- //多选
832
- if (this.currentKlIds.length == 0) {
833
- return;
834
- }
835
- this.klArr = this.currentKlIds.split(",");
836
- this.$nextTick(() => {
837
- this.$refs.secondTree.setCheckedKeys(this.klArr);
838
- this.klArr = this.$refs.secondTree.getCheckedKeys(true);
839
- var nodesArr = this.$refs.secondTree.getCheckedNodes();
840
- let tempStr = "";
841
- if (nodesArr.length == 0) {
842
- tempStr = "";
843
- } else if (nodesArr.length > 1) {
844
- nodesArr.forEach((element) => {
845
- if (!element.hasChild) {
846
- tempStr += element.klname + ",";
847
- }
848
- });
849
- } else {
850
- tempStr = nodesArr[0].klname;
851
- }
852
- this.inputTempStr = tempStr;
853
- this.clickKnowledgeItem(true, tempStr);
854
- });
855
- } else {
856
- this.$nextTick(() => {
857
- this.$refs.secondTree.setCurrentKey(this.currentKlIds);
858
- var nodeData = this.$refs.secondTree.getCurrentNode();
859
- if (nodeData) {
860
- this.clickKnowledgeItem(true, nodeData.klname);
861
- }
862
- });
863
- }
864
- },
865
- //树状结构过滤器
866
- knowledgeFilterNode(value, data, node) {
867
- // 如果什么都没填就直接返回
868
- console.log("进行了过滤");
869
- if (!value) return true;
870
- // 如果传入的value和data中的label相同说明是匹配到了
871
- if (data.klname.indexOf(value) !== -1) {
872
- return true;
873
- }
874
- // 否则要去判断它是不是选中节点的子节点
875
- return this.checkBelongToChooseNode(value, data, node);
876
- },
877
- // 判断传入的节点是不是选中节点的子节点
878
- checkBelongToChooseNode(value, data, node) {
879
- const level = node.level;
880
- // 如果传入的节点本身就是一级节点就不用校验了
881
- if (level === 1) {
882
- return false;
883
- }
884
- // 先取当前节点的父节点
885
- var parentData = node.parent;
886
- // 遍历当前节点的父节点
887
- var index = 0;
888
- while (index < level - 1) {
889
- // 如果匹配到直接返回
890
- if (parentData.data.klname.indexOf(value) !== -1) {
891
- return true;
892
- }
893
- // 否则的话再往上一层做匹配
894
- parentData = parentData.parent;
895
- index++;
896
- }
897
- // 没匹配到返回false
898
- return false;
899
- },
900
- choiseKnowledgeType(value) {
901
- this.knowledgeType = value;
902
- },
903
- clickKnowledgeNode(object) {
904
- if (!this.switchValue) {
905
- this.currentKlIds = object.klId;
906
- let dic = { klIds: object.klId, klUnionFlag: 1 };
907
- this.clickKnowledgeItem(true, object.klname);
908
- this.$emit("changeIndexParam", "changeKnowledge", JSON.stringify(dic));
909
- let tempDic = {
910
- klIds: object.klId,
911
- switch: this.switchValue,
912
- knowledgeType: 1,
913
- };
914
- this.$emit("changeKLIds", "changeKLIds", JSON.stringify(tempDic));
915
- }
916
- },
917
- checkKnowledgeNode(object, compo) {
918
- this.klArr = this.$refs.secondTree.getCheckedKeys(true);
919
- let tempStr = "";
920
- if (compo.checkedNodes.length == 0) {
921
- tempStr = "";
922
- } else if (compo.checkedNodes.length > 1) {
923
- compo.checkedNodes.forEach((element) => {
924
- if (!element.hasChild) {
925
- tempStr += element.klname + ",";
926
- }
927
- });
928
- } else {
929
- tempStr = compo.checkedNodes[0].klname;
930
- }
931
- this.inputTempStr = tempStr;
932
- this.clickKnowledgeItem(false, tempStr);
933
- if (this.klArr.length > 100) {
934
- this.toastOptions.show = true;
935
- setTimeout(() => {
936
- this.toastOptions.show = false;
937
- }, 2000);
938
- }
939
- },
940
- clearKnowledges() {
941
- let _this = this;
942
- _this.currentKlIds = "";
943
- if (_this.klArr.length == 0) {
944
- return;
945
- }
946
- _this.klArr = [];
947
- _this.inputTempStr = "";
948
- _this.clickKnowledgeItem(false, _this.inputTempStr);
949
- this.$nextTick(() => {
950
- _this.$refs.secondTree.setCheckedKeys([]);
951
- _this.klArr = [];
952
- let dic = {
953
- klIds: "",
954
- klUnionFlag: _this.knowledgeType,
955
- };
956
- this.$emit("changeIndexParam", "changeKnowledge", JSON.stringify(dic));
957
- let tempDic = {
958
- klIds: "",
959
- switch: _this.switchValue,
960
- knowledgeType: _this.knowledgeType,
961
- };
962
- this.$emit("changeKLIds", "changeKLIds", JSON.stringify(tempDic));
963
- });
964
- },
965
- toQueryWithKnowledges() {
966
- let _this = this;
967
- if (_this.klArr.length == 0 || _this.klArr.length > 100) {
968
- return;
969
- }
970
- _this.clickKnowledgeItem(true, _this.inputTempStr);
971
- _this.currentKlIds = _this.klArr.join();
972
- let dic = { klIds: _this.currentKlIds, klUnionFlag: _this.knowledgeType };
973
- this.$emit("changeIndexParam", "changeKnowledge", JSON.stringify(dic));
974
- let tempDic = {
975
- klIds: _this.currentKlIds,
976
- switch: _this.switchValue,
977
- knowledgeType: _this.knowledgeType,
978
- };
979
- this.$emit("changeKLIds", "changeKLIds", JSON.stringify(tempDic));
980
- },
981
- clickKnowledgeItem(isDisplay, name) {
982
- console.log("clickKnowledgeItem", name);
983
- name = this.decode(name);
984
- this.knowledgeVisible = !isDisplay;
985
- this.allKnowledgeName = name;
986
- this.isShowTooltip = true;
987
- if (name.length > 30) {
988
- this.isShowTooltip = false;
989
- name = name.slice(0, 30) + "...";
990
- }
991
- this.knowledgeName = name;
992
- },
993
- decode(str) {
994
- return decodeEntities(str);
995
- },
996
- getAnswer(itemInfo) {
997
- let currentItem = this.itemInfoList.find(
998
- (item) => item.itemInfoId == itemInfo.itemInfoId
999
- );
1000
- getAnswer(
1001
- {
1002
- itemId: itemInfo.itemInfoId,
1003
- itemBankType: this.indexParam.itemBankType,
1004
- itemSourceType: itemInfo.itemSourceType,
1005
- rootSourceId: itemInfo.rootItemInfoId,
1006
- },
1007
- (res) => {
1008
- // this.$set(currentItem, "answerDic", res.value);
1009
- // getQuestion({ itemId: res.value.itemAnalysis }, (result) => {
1010
- // if (!result) {
1011
- // return;
1012
- // }
1013
- // currentItem.answerDic = {
1014
- // ...currentItem.answerDic,
1015
- // analysis: result.data,
1016
- // };
1017
- // this.$set(currentItem, "answerDic", currentItem.answerDic);
1018
- // });
1019
- if (!res) {
1020
- return;
1021
- }
1022
- if (typeof res === "string") res = JSON.parse(res);
1023
- if (res.code == 0) {
1024
- //取出答案与解析
1025
- // _this.answerDic = res.value;
1026
- this.$set(currentItem, "pointNames", res.value.pointNames);
1027
- this.$set(currentItem, "klNames", res.value.klNames);
1028
- this.$set(currentItem, "answer", res.value.correctAnswer);
1029
- this.$set(
1030
- currentItem,
1031
- "basicSkillNames",
1032
- res.value.basicSkillNames
1033
- );
1034
- if (
1035
- (res.value.itemType == 3 || res.value.itemType == 6) &&
1036
- res.value.correctAnswer &&
1037
- res.value.correctAnswer.length > 0
1038
- ) {
1039
- getQuestion({ itemId: res.value.correctAnswer }, (res) => {
1040
- if (!res) {
1041
- return;
1042
- }
1043
- if (typeof res === "string") res = JSON.parse(res);
1044
- //取出题目数据
1045
- this.$set(currentItem, "answer", res.data);
1046
- });
1047
- } else if (res.value.itemType == 7) {
1048
- //组合单选题
1049
- var answerArr = res.value.correctAnswer.split(",");
1050
- var fiveArr = [],
1051
- tempStr = ""; //将组合单选题答案五五放到一个数组展示
1052
- answerArr.length &&
1053
- answerArr.map(function (item, idx) {
1054
- if (idx % 5 !== 0 || idx == 0) {
1055
- tempStr += item;
1056
- } else {
1057
- fiveArr.push(tempStr);
1058
- tempStr = item;
1059
- }
1060
- if (idx == answerArr.length - 1) {
1061
- fiveArr.push(tempStr);
1062
- }
1063
- });
1064
- this.$set(currentItem, "answer", fiveArr.join(";"));
1065
- } else {
1066
- this.$set(currentItem, "answer", res.value.correctAnswer);
1067
- }
1068
- if (res.value.itemAnalysis && res.value.itemAnalysis.length > 0) {
1069
- getQuestion({ itemId: res.value.itemAnalysis }, (res) => {
1070
- if (!res) {
1071
- return;
1072
- }
1073
- //取出题目数据
1074
- this.$set(currentItem, "analysis", res.data);
1075
- });
1076
- }
1077
- }
1078
- }
1079
- );
1080
- },
1081
- getContent(itemInfo) {
1082
- let currentItem = this.itemInfoList.find(
1083
- (item) => item.itemInfoId == itemInfo.itemInfoId
1084
- );
1085
- getQuestion({ itemId: itemInfo.itemFileId }, (res) => {
1086
- this.$set(currentItem, "content", res.data);
1087
- });
1088
- },
1089
- choiceOrRemoveQuestion(itemInfo, isAdd) {
1090
- this.$emit(
1091
- "choiceOrRemoveQuestion",
1092
- itemInfo,
1093
- isAdd,
1094
- this.defaultCategoryType
1095
- );
1096
- },
1097
- headerSort(item) {
1098
- console.log(item);
1099
- if (item.key == "updateTime") {
1100
- let dic = { order: item.sortOrder ? 1 : 0 };
1101
- this.$emit("changeIndexParam", "changeOrder", JSON.stringify(dic));
1102
- } else {
1103
- let dic = { orderQuote: item.sortOrder ? 1 : 0 };
1104
- this.$emit("changeIndexParam", "changeOrderQuote", JSON.stringify(dic));
1105
- }
1106
- },
1107
- toShowAudio(itemInfo, itemIndex) {
1108
- let dic = {
1109
- questionIndex: itemIndex,
1110
- fileId: itemInfo.audioFileId,
1111
- };
1112
- this.$emit("toShowAudio", "toShowAudio", JSON.stringify(dic));
1113
- },
1114
- // 来源点击
1115
- sourceClick(itemBankType) {
1116
- if (itemBankType == 5) {
1117
- this.$emit("goQptk");
1118
- return;
1119
- }
1120
- // this.currentSourceType = itemBankType;
1121
- let dic = { itemBankType: itemBankType };
1122
- // this.$emit('eventbus-emit', "changeIndexParam", "changeSource", JSON.stringify(dic))
1123
- this.$emit(
1124
- "eventbus-emit",
1125
- "changeSource",
1126
- "changeSource",
1127
- JSON.stringify(dic)
1128
- );
1129
- this.$emit("changeIndexParam", "changeSource", JSON.stringify(dic));
1130
- // this.$emit("changeSource", "changeSource", JSON.stringify(dic));
1131
- },
1132
- // 专题点击
1133
- topicClick(topicId) {
1134
- if (topicId == "all") {
1135
- topicId = "";
1136
- }
1137
- this.selectedTopicId = topicId;
1138
- let dic = { topicId: topicId };
1139
- this.$emit("changeIndexParam", "changeTopic", JSON.stringify(dic));
1140
- },
1141
- // 题型点击
1142
- categoryClick(itemCategoryId) {
1143
- if (itemCategoryId == "all") {
1144
- itemCategoryId = "";
1145
- }
1146
- this.selectedCategoryId = itemCategoryId;
1147
- let dic = { itemCategoryId: itemCategoryId };
1148
- this.$emit("changeIndexParam", "changeCategory", JSON.stringify(dic));
1149
- },
1150
- // 难度点击
1151
- difficultyClick(difficultyId) {
1152
- if (difficultyId == "all") {
1153
- difficultyId = "";
1154
- }
1155
- this.selectedDifficultId = difficultyId;
1156
- let dic = { itemDifficultyId: difficultyId };
1157
- this.$emit("changeIndexParam", "changeDifficulty", JSON.stringify(dic));
1158
- },
1159
- // 年份
1160
- yearClick(year) {
1161
- if (year == "all") {
1162
- year = "";
1163
- }
1164
- this.currentYear = year;
1165
- let isEarly = year == "earlier" ? true : false;
1166
- let _lastYear = this.yearList.slice(-2,-1)[0].id
1167
- let lastYear = typeof _lastYear == 'number' ? _lastYear : 0;
1168
- let dic = { year: isEarly ? lastYear - 1 : year, isEarlier:isEarly ? -1 : 1 };
1169
- this.$emit("changeIndexParam", "selectYear", JSON.stringify(dic));
1170
- },
1171
- // 技能
1172
- basicSkillClick(basicSkillsId) {
1173
- if (basicSkillsId == "all") {
1174
- basicSkillsId = "";
1175
- }
1176
- this.selectedSkillId = basicSkillsId;
1177
- let dic = { itemBasicSkillId: basicSkillsId };
1178
- this.$emit("changeIndexParam", "changeSkill", JSON.stringify(dic));
1179
- },
1180
- // 核心素养
1181
- coreLiteracyClick(literacyId) {
1182
- if (literacyId == "all") {
1183
- literacyId = "";
1184
- }
1185
- let dic = { literacyId: literacyId };
1186
- this.$emit("changeIndexParam", "changeLiteracy", JSON.stringify(dic));
1187
- },
1188
- changeMaterials(value) {
1189
- console.log(value);
1190
- this.currentCourse = []; //重置
1191
- this.requestCourseListData(
1192
- this.indexParam.subjectId,
1193
- value[0],
1194
- value[1],
1195
- value[2]
1196
- );
1197
- },
1198
- //递归获取当前选择的课程
1199
- getCurrentCheckedCourse(arr, node) {
1200
- if (node && node.value) {
1201
- arr.unshift(node.value);
1202
- if (node.parent) {
1203
- this.getCurrentCheckedCourse(arr, node.parent);
1204
- }
1205
- }
1206
- },
1207
- changeCourse(value) {
1208
- this.currentCourseId = value[value.length - 1];
1209
- let dic = { courseId: this.currentCourseId };
1210
- this.$emit("changeIndexParam", "changeCourseId", JSON.stringify(dic));
1211
- },
1212
- /*
1213
- **请求题库首页数据
1214
- * 只在首次进入该页面时请求
1215
- */
1216
- requestIndexData() {
1217
- this.loadingError = false;
1218
- this.goRequestIndexData();
1219
- },
1220
- // 首次进入该页面时请求获取用户信息
1221
- goRequestIndexData() {
1222
- let _this = this;
1223
- console.log("getBank", this);
1224
- var prepareInfo = this.leftInfo;
1225
- console.log(prepareInfo, "prepareInfo1");
1226
- if (prepareInfo && prepareInfo.eduLevelId) {
1227
- var eduLevelId = prepareInfo.eduLevelId;
1228
- var subjectId = prepareInfo.subjectId;
1229
- var courseSrc = prepareInfo.courseSrc;
1230
- var courseId = prepareInfo.courseId;
1231
- _this.indexParam["courseSrc"] = courseSrc;
1232
- _this.indexParam["studySectionId"] = eduLevelId;
1233
- _this.indexParam["subjectId"] = subjectId;
1234
- _this.indexParam["courseId"] = courseId;
1235
- _this.currentCourseId = courseId;
1236
- var teachMaterialId = prepareInfo.teachMaterialId;
1237
- var gradeId = prepareInfo.gradeId;
1238
-
1239
- let dom = document.getElementById("tk-detail-drawer-slot-id");
1240
- let loadingInstance = Loading.service({
1241
- target: dom,
1242
- text: this.i18n.jiaZaiZhong,
1243
- });
1244
- console.log(prepareInfo, "prepareInfo");
1245
- getBankIndex(
1246
- {
1247
- eduLevelId: eduLevelId,
1248
- subjectId: subjectId,
1249
- gradeId: gradeId,
1250
- teachMaterialId: teachMaterialId,
1251
- courseId: courseId,
1252
- courseSrc: courseSrc,
1253
- },
1254
- (res) => {
1255
- this.$nextTick(() => {
1256
- // 以服务的方式调用的 Loading 需要异步关闭
1257
- loadingInstance.close();
1258
- });
1259
- _this.isLoading = false;
1260
- if (typeof res === "string") res = JSON.parse(res);
1261
- if (res && res.code == 0) {
1262
- console.log("getBank", res);
1263
- //处理indexParam
1264
- _this.indexParam.studySectionId = eduLevelId;
1265
- _this.indexParam.subjectId = subjectId;
1266
- _this.indexParam.itemBankType =
1267
- res.value.itemBankQueryDto.itemBankType;
1268
- _this.requestBankData();
1269
- _this.totalRecord = res.value.totalRecord;
1270
- // _this.pageInfo = {
1271
- // currPage: res.value.currPage,
1272
- // totalPage: res.value.totalPage,
1273
- // perPage: res.value.perPage,
1274
- // };
1275
- //取出默认的题库类型
1276
- _this.defaultCategoryType = res.value.itemBankQueryDto.itemBankType;
1277
-
1278
- // _this.defaultSubjectList = res.value.defaultSubjectList;
1279
- //请求教材版本
1280
- _this.requestMaterialsGradesData(
1281
- eduLevelId,
1282
- subjectId,
1283
- teachMaterialId,
1284
- gradeId
1285
- );
1286
- //难度知识点是否必填
1287
- _this.requestDifficultyAndKnowledgeSettingInfo(
1288
- eduLevelId,
1289
- subjectId
1290
- );
1291
- //请求专题数据
1292
- _this.requestTopicData();
1293
-
1294
- //判断是否展示“考点”tab
1295
- _this.examPointEnableFlag = res.value.examPointEnableFlag;
1296
- //取学年数组
1297
- _this.years = res.value.yearList.map((item) => {
1298
- return {
1299
- id: item,
1300
- label: item,
1301
- };
1302
- });
1303
- if (_this.years.length) {
1304
- _this.years.unshift({
1305
- id: "all",
1306
- label: _this.i18n.quanBu,
1307
- });
1308
- }
1309
- //取来源数据
1310
- _this.itemBankTypeList = res.value.itemBankTypeList;
1311
- _this.itemBankTypeList.unshift({
1312
- itemBankType: 5,
1313
- itemBankTypeName: "精品题库",
1314
- });
1315
- //取技能数据
1316
- _this.basicSkillsList = res.value.basicSkillsList;
1317
- if (_this.basicSkillsList.length) {
1318
- _this.basicSkillsList.unshift({
1319
- basicSkillsId: "all",
1320
- basicName: this.i18n.quanBu,
1321
- });
1322
- }
1323
- //取核心素养数据
1324
- _this.coreLiteracyFlag = res.value.coreLiteracyFlag;
1325
- _this.coreLiteracyList = res.value.coreLiteracyList.map(item=>{
1326
- return {
1327
- literacyId: item.literacyId,
1328
- literacyName: item.literacyName
1329
- }
1330
- });
1331
- if (_this.coreLiteracyList.length) {
1332
- _this.coreLiteracyList.unshift({
1333
- literacyId: "all",
1334
- literacyName: this.i18n.quanBu,
1335
- });
1336
- }
1337
- console.log('_this.coreLiteracyList',_this.coreLiteracyList)
1338
- //取题型数据
1339
- _this.itemCategoryList = res.value.itemCategoryList;
1340
- if (_this.itemCategoryList.length) {
1341
- _this.itemCategoryList.unshift({
1342
- itemCategoryId: "all",
1343
- itemCategoryName: this.i18n.quanBu,
1344
- itemType: -1,
1345
- });
1346
- }
1347
-
1348
- //取难度数据
1349
- _this.difficultyList = JSON.parse(
1350
- JSON.stringify(res.value.cfgDifficultyList)
1351
- );
1352
- if (_this.difficultyList.length) {
1353
- _this.difficultyList.unshift({
1354
- difficultyId: "all",
1355
- difficultyName: this.i18n.quanBu,
1356
- });
1357
- }
1358
-
1359
- if (_this.indexParam.itemBankType == 4) {
1360
- _this.allDifficultyList = JSON.parse(
1361
- JSON.stringify(res.value.cfgDifficultyList)
1362
- );
1363
- _this.allDifficultyList.push(_this.undefinedDifficultyInfo);
1364
- } else {
1365
- _this.allDifficultyList = JSON.parse(
1366
- JSON.stringify(res.value.cfgDifficultyList)
1367
- );
1368
- }
1369
- //知识点
1370
- _this.klList = res.value.knowledgeList;
1371
- //考点
1372
- _this.examPointList = res.value.examPointList;
1373
- //获取该课程下关联的知识点
1374
- //变式题默认当前原题的知识点
1375
- if (_this.fromType == "variant") {
1376
- if (_this.klidsList == "") {
1377
- if (
1378
- res.value &&
1379
- res.value.klIds &&
1380
- res.value.klIds.length > 0
1381
- ) {
1382
- _this.localKlIds = res.value.klIds;
1383
- _this.$store.commit(
1384
- "saveCurrentKnowledgeIds",
1385
- res.value.klIds
1386
- );
1387
- } else if (_this.klList.length > 0) {
1388
- _this.localKlIds = _this.getFirstKnowledgeId(_this.klList);
1389
- }
1390
- } else {
1391
- _this.localKlIds = _this.klidsList;
1392
- }
1393
- } else {
1394
- if (
1395
- res.value &&
1396
- res.value.klIds &&
1397
- res.value.klIds.length > 0
1398
- ) {
1399
- _this.localKlIds = res.value.klIds;
1400
- _this.$store.commit(
1401
- "saveCurrentKnowledgeIds",
1402
- res.value.klIds
1403
- );
1404
- } else if (_this.klList.length > 0) {
1405
- _this.localKlIds = _this.getFirstKnowledgeId(_this.klList);
1406
- }
1407
- }
1408
- //提供数据给Vuex
1409
- _this.$store.commit("changeValue", {
1410
- type: "itemCategory",
1411
- val: _this.itemCategoryList || [],
1412
- });
1413
- _this.$store.commit("changeValue", {
1414
- type: "difficults",
1415
- val: _this.difficultyList || [],
1416
- });
1417
- _this.$store.commit("changeValue", {
1418
- type: "basicSkillIdList",
1419
- val: _this.basicSkillsList || [],
1420
- });
1421
- _this.$store.commit("changeValue", {
1422
- type: "klIdList",
1423
- val: _this.klList || [],
1424
- });
1425
- _this.$store.commit("changeValue", {
1426
- type: "pointIdList",
1427
- val: _this.examPointList || [],
1428
- });
1429
- _this.$store.commit("changeValue", {
1430
- type: "enableShowPoint",
1431
- val: _this.examPointEnableFlag || false,
1432
- });
1433
- } else {
1434
- _this.loadingError = true;
1435
- }
1436
- }
1437
- );
1438
- }
1439
- },
1440
- /*
1441
- **请求题库数据
1442
- * 筛选条件时请求
1443
- */
1444
- requestBankData() {
1445
- let _this = this;
1446
- _this.loadingError = false;
1447
- _this.loadingBankData = true;
1448
- _this.goRequestBankData();
1449
- },
1450
- //筛选条件时请求获取用户信息
1451
- goRequestBankData() {
1452
- let dom = document.getElementById("bankData-drawer-slot-id");
1453
- let loadingInstance = Loading.service({
1454
- target: dom,
1455
- text: this.i18n.jiaZaiZhong,
1456
- });
1457
- let _this = this;
1458
- var prepareInfo = this.leftInfo;
1459
- if (prepareInfo && prepareInfo.eduLevelId) {
1460
- var eduLevelId = prepareInfo.eduLevelId;
1461
- var subjectId = prepareInfo.subjectId;
1462
- var courseSrc = prepareInfo.courseSrc;
1463
- _this.indexParam["courseSrc"] = courseSrc;
1464
- _this.indexParam["studySectionId"] = eduLevelId;
1465
- _this.indexParam["subjectId"] = subjectId;
1466
- _this.indexParam["klIds"] = this.localKlIds;
1467
- getBankData(_this.indexParam, (res) => {
1468
- _this.loadingBankData = false;
1469
- if (typeof res === "string") res = JSON.parse(res);
1470
- if (res && res.code == 0) {
1471
- //判断是否展示“考点”tab
1472
- // _this.examPointEnableFlag = res.value.examPointEnableFlag;
1473
- //取出题目数据
1474
- _this.loadingError = false;
1475
- _this.itemInfoList = res.value.itemInfoList.map((item) => {
1476
- return { ...item, answerDic: {} };
1477
- });
1478
-
1479
- _this.totalRecord = res.value.totalRecord;
1480
- _this.currPage = res.value.currPage;
1481
- if (_this.itemInfoList.length >= _this.totalRecord) {
1482
- _this.hasMore = false;
1483
- } else {
1484
- _this.hasMore = true;
1485
- }
1486
- _this.pageInfo = {
1487
- currPage: res.value.currPage,
1488
- totalPage: res.value.totalPage,
1489
- perPage: res.value.perPage,
1490
- };
1491
- loadingInstance.close();
1492
- } else {
1493
- //请求题目数据报错
1494
- _this.loadingError = true;
1495
- _this.itemInfoList = [];
1496
- _this.pageInfo = {};
1497
- }
1498
- });
1499
- }
1500
- },
1501
- /*
1502
- **获取教材版本数据
1503
- */
1504
- requestMaterialsGradesData(
1505
- eduLevelId,
1506
- subjectId,
1507
- teachMaterialId,
1508
- gradeId
1509
- ) {
1510
- console.log("请求教材");
1511
- let _this = this;
1512
- _this.courseCascaderList = [];
1513
- getMaterialsGrades(
1514
- {
1515
- eduLevelId: eduLevelId,
1516
- subjectId: subjectId,
1517
- teachMaterialId: teachMaterialId,
1518
- gradeId: gradeId,
1519
- },
1520
- (res) => {
1521
- if (!res) {
1522
- return;
1523
- }
1524
- if (typeof res === "string") res = JSON.parse(res);
1525
- if (res.code == 0) {
1526
- _this.currentCourseValue = [
1527
- res.value.checkTeachMaterialId,
1528
- res.value.checkClassificationId,
1529
- res.value.checkTermIndex,
1530
- ];
1531
- _this.currentMaterials = [];
1532
- _this.materialsGradesList = res.value.list;
1533
-
1534
- _this.requestCourseListData(
1535
- subjectId,
1536
- res.value.checkTeachMaterialId,
1537
- res.value.checkClassificationId,
1538
- res.value.checkTermIndex
1539
- );
1540
- }
1541
- }
1542
- );
1543
- },
1544
- /*
1545
- **获取知识点、难度配置,是否必填
1546
- */
1547
- requestDifficultyAndKnowledgeSettingInfo(eduLevelId, subjectId) {
1548
- let _this = this;
1549
- getKldftNecessary(
1550
- {
1551
- eduLevelId: eduLevelId,
1552
- subjectId: subjectId,
1553
- },
1554
- (res) => {
1555
- if (!res) {
1556
- return;
1557
- }
1558
- if (typeof res === "string") res = JSON.parse(res);
1559
- if (res.code == 0) {
1560
- if (res.value && res.value == 2) {
1561
- _this.$store.commit("changeValue", {
1562
- type: "knowledgeIsRequired",
1563
- val: false,
1564
- });
1565
- }
1566
- }
1567
- }
1568
- );
1569
- },
1570
- /*
1571
- ** 获取知识点数据
1572
- */
1573
- requestKnowledgeData() {
1574
- let _this = this;
1575
- getKnowledge(
1576
- {
1577
- eduLevelId: _this.indexParam.studySectionId,
1578
- subjectId: _this.indexParam.subjectId,
1579
- },
1580
- (res) => {
1581
- if (!res) {
1582
- return;
1583
- }
1584
- if (typeof res === "string") res = JSON.parse(res);
1585
- if (res.code == 0) {
1586
- _this.klList = res.value;
1587
- }
1588
- }
1589
- );
1590
- },
1591
- /*
1592
- ** 获取专题数据
1593
- */
1594
- requestTopicData() {
1595
- let _this = this;
1596
- getTopic(
1597
- {
1598
- eduLevelId: _this.indexParam.studySectionId,
1599
- topicSource: _this.indexParam.itemBankType == 2 ? 1 : "",
1600
- },
1601
- (res) => {
1602
- if (!res) {
1603
- return;
1604
- }
1605
- if (typeof res === "string") res = JSON.parse(res);
1606
- if (res.code == 0) {
1607
- _this.topicList = res.value;
1608
- if (_this.topicList.length) {
1609
- _this.topicList.unshift({
1610
- topicId: "all",
1611
- topicName: this.i18n.quanBu,
1612
- });
1613
- }
1614
-
1615
- var hasTopic = false;
1616
- for (var i = 0; i < _this.topicList.length; i++) {
1617
- var topicItem = _this.topicList[i];
1618
- if (topicItem.topicId == _this.indexParam.topicId) {
1619
- hasTopic = true;
1620
- break;
1621
- }
1622
- }
1623
- if (!hasTopic) {
1624
- _this.indexParam.topicId = "";
1625
- let dic = { selectedTopicId: "" };
1626
- this.$emit(
1627
- "toChangeSelectedTopicId",
1628
- "toChangeSelectedTopicId",
1629
- JSON.stringify(dic)
1630
- );
1631
- }
1632
- }
1633
- }
1634
- );
1635
- },
1636
- /*
1637
- **获取默认的第一个子知识点
1638
- */
1639
- getFirstKnowledgeId(knowledgeList) {
1640
- var tempKL = knowledgeList[0];
1641
- if (
1642
- tempKL.hasChild &&
1643
- tempKL.knowledgeDtoList &&
1644
- tempKL.knowledgeDtoList.length > 0
1645
- ) {
1646
- return this.getFirstKnowledgeId(tempKL.knowledgeDtoList);
1647
- } else {
1648
- return tempKL.klId;
1649
- }
1650
- },
1651
- /*
1652
- ** 获取课程数据
1653
- * teachMaterialId:教材版本id
1654
- * classificationId:册别id
1655
- * termIndex:学期号
1656
- */
1657
- requestCourseListData(
1658
- subjectId,
1659
- teachMaterialId,
1660
- classificationId,
1661
- termIndex
1662
- ) {
1663
- let _this = this;
1664
- getEditorCourse(
1665
- {
1666
- subjectId: subjectId,
1667
- teachMaterialId: teachMaterialId,
1668
- termIndex: termIndex,
1669
- classificationId: classificationId,
1670
- },
1671
- (res) => {
1672
- if (!res) {
1673
- return;
1674
- }
1675
- if (typeof res === "string") res = JSON.parse(res);
1676
- if (res.code == 0) {
1677
- _this.courseCascaderList = res.value.list;
1678
- }
1679
- }
1680
- );
1681
- },
1682
- /*
1683
- **请求题库数据
1684
- * 筛选条件时请求
1685
- */
1686
- requestPageBank(param) {
1687
- let _this = this;
1688
- if (!param["itemBankType"]) {
1689
- return;
1690
- }
1691
- _this.pageError = false;
1692
- _this.drawerPageError = false;
1693
- _this.loading = true;
1694
- getBankData(param, (res) => {
1695
- _this.loading = false;
1696
- if (typeof res === "string") res = JSON.parse(res);
1697
- if (res && res.code == 0) {
1698
- //取出题目数据
1699
- _this.drawerPageError = false;
1700
- _this.currPage = res.value.currPage;
1701
- _this.itemInfoList = _this.itemInfoList.concat(
1702
- res.value.itemInfoList
1703
- );
1704
- if (_this.itemInfoList.length >= res.value.totalRecord) {
1705
- _this.hasMore = false;
1706
- } else {
1707
- _this.hasMore = true;
1708
- }
1709
- } else {
1710
- //请求题目数据报错
1711
- _this.drawerPageError = true;
1712
- }
1713
- });
1714
- },
1715
- clickRetryBtn() {
1716
- this.$emit("changeIndexParam", "retryRequest", "retryRequest");
1717
- },
1718
- },
1719
- computed: {},
1720
- created() {},
1721
- mounted() {
1722
- this.setListener();
1723
- this.requestIndexData();
1724
- if (!this.host.includes("teach.focusteach.com")) {
1725
- this.host = "http://teach.focusteach.com:8085";
1726
- }
1727
- },
1728
- };
1729
- </script>
1730
-
1731
- <style lang="scss" scoped>
1732
- @import "../../../style/icon/style.css";
1733
- @import "./index.scss";
1734
- </style>
1735
-