@focus-teach/ui 1.0.4 → 1.0.6

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