@focus-teach/ui 1.0.8 → 1.0.9

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 (468) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/.history/package_20230625121458.json +0 -45
  4. package/.history/package_20230626100440.json +0 -45
  5. package/.history/package_20230626100445.json +0 -45
  6. package/.history/package_20230626100447.json +0 -45
  7. package/.history/package_20230626100636.json +0 -45
  8. package/.history/package_20230626100801.json +0 -45
  9. package/.history/package_20230626100803.json +0 -45
  10. package/.history/package_20230626100838.json +0 -45
  11. package/.history/package_20230626103314.json +0 -45
  12. package/.history/package_20230626103317.json +0 -45
  13. package/.history/package_20230626112515.json +0 -45
  14. package/.history/package_20230626112519.json +0 -45
  15. package/.history/package_20230626113741.json +0 -48
  16. package/.history/package_20230626113743.json +0 -48
  17. package/.history/package_20230626113745.json +0 -48
  18. package/.history/package_20230626113750.json +0 -48
  19. package/.history/package_20230626113754.json +0 -48
  20. package/.history/package_20230626113756.json +0 -48
  21. package/.history/package_20230626113758.json +0 -48
  22. package/.history/package_20230626113759.json +0 -48
  23. package/.history/package_20230626113808.json +0 -48
  24. package/.history/package_20230626113839.json +0 -45
  25. package/.history/package_20230626113841.json +0 -45
  26. package/.history/package_20230626115037.json +0 -45
  27. package/.history/package_20230626115243.json +0 -45
  28. package/.history/package_20230626115245.json +0 -45
  29. package/.history/package_20230626115259.json +0 -45
  30. package/.history/package_20230626120806.json +0 -45
  31. package/.history/package_20230626120808.json +0 -46
  32. package/.history/package_20230626120809.json +0 -45
  33. package/.history/package_20230626133910.json +0 -46
  34. package/.history/package_20230626133912.json +0 -46
  35. package/.history/package_20230626133915.json +0 -46
  36. package/.history/package_20230626133917.json +0 -46
  37. package/.history/package_20230626133923.json +0 -46
  38. package/.history/package_20230626133927.json +0 -46
  39. package/.history/package_20230626134037.json +0 -46
  40. package/.history/package_20230626134121.json +0 -46
  41. package/.history/package_20230626134122.json +0 -46
  42. package/.history/package_20230626134126.json +0 -45
  43. package/.history/packages/assets/css/reset-element_20230605134721.scss +0 -167
  44. package/.history/packages/assets/css/reset-element_20230614205652.scss +0 -173
  45. package/.history/packages/assets/css/reset-element_20230614205654.scss +0 -173
  46. package/.history/packages/assets/css/reset-element_20230614211242.scss +0 -169
  47. package/.history/packages/assets/css/reset-element_20230614211245.scss +0 -167
  48. package/.history/packages/exam-detail/src/index_20230607220441.vue +0 -548
  49. package/.history/packages/exam-detail/src/index_20230613115618.vue +0 -548
  50. package/.history/packages/exam-detail/src/index_20230613115623.vue +0 -548
  51. package/.history/packages/exam-detail/src/index_20230613115629.vue +0 -548
  52. package/.history/packages/exam-detail/src/index_20230613115631.vue +0 -548
  53. package/.history/packages/exam-detail/src/index_20230613115640.vue +0 -548
  54. package/.history/packages/exam-detail/src/index_20230613115651.vue +0 -548
  55. package/.history/packages/exam-detail/src/index_20230613115659.vue +0 -548
  56. package/.history/packages/exam-detail/src/index_20230613115750.vue +0 -548
  57. package/.history/packages/exam-detail/src/index_20230613115806.vue +0 -548
  58. package/.history/packages/exam-detail/src/index_20230613115811.vue +0 -548
  59. package/.history/packages/exam-detail/src/index_20230613115815.vue +0 -548
  60. package/.history/packages/exam-detail/src/index_20230613120250.vue +0 -548
  61. package/.history/packages/exam-detail/src/index_20230613120252.vue +0 -548
  62. package/.history/packages/exam-detail/src/index_20230613120257.vue +0 -547
  63. package/.history/packages/exam-detail/src/index_20230613120323.vue +0 -547
  64. package/.history/packages/exam-detail/src/index_20230613120327.vue +0 -547
  65. package/.history/packages/exam-detail/src/index_20230613120328.vue +0 -547
  66. package/.history/packages/exam-detail/src/index_20230613120915.vue +0 -548
  67. package/.history/packages/exam-detail/src/index_20230613120917.vue +0 -548
  68. package/.history/packages/exam-detail/src/index_20230613120922.vue +0 -549
  69. package/.history/packages/exam-detail/src/index_20230613120924.vue +0 -549
  70. package/.history/packages/exam-detail/src/index_20230613120928.vue +0 -550
  71. package/.history/packages/exam-detail/src/index_20230613120930.vue +0 -550
  72. package/.history/packages/exam-detail/src/index_20230613120936.vue +0 -549
  73. package/.history/packages/exam-detail/src/index_20230613120938.vue +0 -550
  74. package/.history/packages/exam-detail/src/index_20230613120942.vue +0 -550
  75. package/.history/packages/exam-detail/src/index_20230613120944.vue +0 -550
  76. package/.history/packages/exam-detail/src/index_20230613121331.vue +0 -549
  77. package/.history/packages/exam-detail/src/index_20230613121333.vue +0 -548
  78. package/.history/packages/exam-detail/src/index_20230613121335.vue +0 -547
  79. package/.history/packages/exam-detail/src/index_20230613121341.vue +0 -547
  80. package/.history/packages/exam-detail/src/index_20230613121344.vue +0 -546
  81. package/.history/packages/exam-detail/src/index_20230613153022.vue +0 -546
  82. package/.history/packages/exam-detail/src/index_20230613153027.vue +0 -546
  83. package/.history/packages/exam-detail/src/index_20230613153620.vue +0 -546
  84. package/.history/packages/exam-detail/src/index_20230613164734.vue +0 -546
  85. package/.history/packages/exam-detail/src/index_20230613164746.vue +0 -546
  86. package/.history/packages/exam-detail/src/index_20230613164756.vue +0 -546
  87. package/.history/packages/exam-drawer/src/index_20230607103301.vue +0 -1470
  88. package/.history/packages/exam-drawer/src/index_20230613090746.vue +0 -1469
  89. package/.history/packages/exam-drawer/src/index_20230613090759.vue +0 -1469
  90. package/.history/packages/exam-drawer/src/index_20230613090802.vue +0 -1469
  91. package/.history/packages/exam-drawer/src/index_20230613090809.vue +0 -1469
  92. package/.history/packages/exam-drawer/src/index_20230613090850.vue +0 -1470
  93. package/.history/packages/exam-drawer/src/index_20230613090919.vue +0 -1487
  94. package/.history/packages/exam-drawer/src/index_20230613090930.vue +0 -1486
  95. package/.history/packages/exam-drawer/src/index_20230613090935.vue +0 -1485
  96. package/.history/packages/exam-drawer/src/index_20230613091124.vue +0 -1488
  97. package/.history/packages/exam-drawer/src/index_20230613091140.vue +0 -1488
  98. package/.history/packages/exam-drawer/src/index_20230613091141.vue +0 -1488
  99. package/.history/packages/exam-drawer/src/index_20230613092108.vue +0 -1489
  100. package/.history/packages/exam-drawer/src/index_20230613092111.vue +0 -1489
  101. package/.history/packages/exam-drawer/src/index_20230613093130.vue +0 -1490
  102. package/.history/packages/exam-drawer/src/index_20230613093135.vue +0 -1489
  103. package/.history/packages/exam-drawer/src/index_20230613093149.vue +0 -1488
  104. package/.history/packages/exam-drawer/src/index_20230613093156.vue +0 -1487
  105. package/.history/packages/exam-drawer/src/index_20230613093159.vue +0 -1486
  106. package/.history/packages/exam-drawer/src/index_20230613093202.vue +0 -1485
  107. package/.history/packages/exam-drawer/src/index_20230613093204.vue +0 -1484
  108. package/.history/packages/exam-drawer/src/index_20230613093207.vue +0 -1483
  109. package/.history/packages/exam-drawer/src/index_20230613093209.vue +0 -1482
  110. package/.history/packages/exam-drawer/src/index_20230613093212.vue +0 -1483
  111. package/.history/packages/exam-drawer/src/index_20230613093217.vue +0 -1483
  112. package/.history/packages/exam-drawer/src/index_20230613093228.vue +0 -1483
  113. package/.history/packages/exam-drawer/src/index_20230613093229.vue +0 -1483
  114. package/.history/packages/exam-drawer/src/index_20230613093843.vue +0 -1482
  115. package/.history/packages/exam-drawer/src/index_20230613093847.vue +0 -1481
  116. package/.history/packages/exam-drawer/src/index_20230613093851.vue +0 -1480
  117. package/.history/packages/exam-drawer/src/index_20230613115708.vue +0 -1480
  118. package/.history/packages/exam-drawer/src/index_20230613115823.vue +0 -1480
  119. package/.history/packages/exam-drawer/src/index_20230613115825.vue +0 -1480
  120. package/.history/packages/exam-drawer/src/index_20230613115827.vue +0 -1480
  121. package/.history/packages/exam-drawer/src/index_20230613120908.vue +0 -1481
  122. package/.history/packages/exam-drawer/src/index_20230613120910.vue +0 -1481
  123. package/.history/packages/exam-drawer/src/index_20230613121320.vue +0 -1480
  124. package/.history/packages/exam-drawer/src/index_20230613121326.vue +0 -1480
  125. package/.history/packages/exam-drawer/src/index_20230613144244.vue +0 -1479
  126. package/.history/packages/exam-drawer/src/index_20230613144246.vue +0 -1478
  127. package/.history/packages/exam-drawer/src/index_20230613144248.vue +0 -1477
  128. package/.history/packages/exam-drawer/src/index_20230613144251.vue +0 -1476
  129. package/.history/packages/exam-drawer/src/index_20230613152608.vue +0 -1476
  130. package/.history/packages/header/src/index_20230605134719.vue +0 -59
  131. package/.history/packages/header/src/index_20230613115723.vue +0 -59
  132. package/.history/packages/header/src/index_20230613115727.vue +0 -59
  133. package/.history/packages/header/src/index_20230613115733.vue +0 -59
  134. package/.history/packages/header/src/index_20230613115736.vue +0 -59
  135. package/.history/packages/header/src/index_20230613120901.vue +0 -60
  136. package/.history/packages/header/src/index_20230613120903.vue +0 -60
  137. package/.history/packages/header/src/index_20230613121316.vue +0 -59
  138. package/.history/packages/question-drawer/src/index_20230607160653.vue +0 -1735
  139. package/.history/packages/question-drawer/src/index_20230607160720.scss +0 -265
  140. package/.history/packages/question-drawer/src/index_20230613090910.vue +0 -1735
  141. package/.history/packages/question-drawer/src/index_20230613090928.vue +0 -1734
  142. package/.history/packages/question-drawer/src/index_20230613090937.vue +0 -1733
  143. package/.history/packages/question-drawer/src/index_20230613115842.vue +0 -1733
  144. package/.history/packages/question-drawer/src/index_20230613115844.vue +0 -1733
  145. package/.history/packages/question-drawer/src/index_20230613115848.vue +0 -1733
  146. package/.history/packages/question-drawer/src/index_20230613115902.vue +0 -1733
  147. package/.history/packages/question-drawer/src/index_20230613115911.vue +0 -1733
  148. package/.history/packages/question-drawer/src/index_20230613115914.vue +0 -1733
  149. package/.history/packages/question-drawer/src/index_20230613115922.vue +0 -1733
  150. package/.history/packages/question-drawer/src/index_20230613120356.vue +0 -1733
  151. package/.history/packages/question-drawer/src/index_20230613120359.vue +0 -1732
  152. package/.history/packages/question-drawer/src/index_20230613120710.vue +0 -1731
  153. package/.history/packages/question-drawer/src/index_20230613120839.vue +0 -1732
  154. package/.history/packages/question-drawer/src/index_20230613120841.vue +0 -1732
  155. package/.history/packages/question-drawer/src/index_20230613120844.vue +0 -1733
  156. package/.history/packages/question-drawer/src/index_20230613120846.vue +0 -1733
  157. package/.history/packages/question-drawer/src/index_20230613120850.vue +0 -1734
  158. package/.history/packages/question-drawer/src/index_20230613120852.vue +0 -1734
  159. package/.history/packages/question-drawer/src/index_20230613120856.vue +0 -1735
  160. package/.history/packages/question-drawer/src/index_20230613120858.vue +0 -1735
  161. package/.history/packages/question-drawer/src/index_20230613121150.vue +0 -1735
  162. package/.history/packages/question-drawer/src/index_20230613121238.vue +0 -1734
  163. package/.history/packages/question-drawer/src/index_20230613121252.vue +0 -1734
  164. package/.history/packages/question-drawer/src/index_20230613121256.vue +0 -1734
  165. package/.history/packages/question-drawer/src/index_20230613121258.vue +0 -1733
  166. package/.history/packages/question-drawer/src/index_20230613121303.vue +0 -1733
  167. package/.history/packages/question-drawer/src/index_20230613121307.vue +0 -1733
  168. package/.history/packages/question-drawer/src/index_20230613121310.vue +0 -1732
  169. package/.history/packages/question-drawer/src/index_20230613121313.vue +0 -1731
  170. package/.history/packages/question-drawer/src/index_20230613121549.vue +0 -1731
  171. package/.history/packages/question-drawer/src/index_20230613121623.vue +0 -1731
  172. package/.history/packages/question-drawer/src/index_20230613151515.vue +0 -1730
  173. package/.history/packages/question-drawer/src/index_20230613151517.vue +0 -1729
  174. package/.history/packages/question-drawer/src/index_20230613151612.vue +0 -1729
  175. package/.history/packages/question-drawer/src/index_20230613151618.vue +0 -1729
  176. package/.history/packages/question-drawer/src/index_20230613151928.vue +0 -1729
  177. package/.history/packages/question-drawer/src/index_20230613151929.vue +0 -1729
  178. package/.history/packages/question-drawer/src/index_20230613152233.vue +0 -1728
  179. package/.history/packages/question-drawer/src/index_20230613152235.vue +0 -1727
  180. package/.history/packages/question-drawer/src/index_20230613152237.vue +0 -1726
  181. package/.history/packages/question-drawer/src/index_20230613152239.vue +0 -1726
  182. package/.history/packages/question-drawer/src/index_20230613152243.vue +0 -1725
  183. package/.history/packages/question-drawer/src/index_20230613152245.vue +0 -1724
  184. package/.history/packages/question-drawer/src/index_20230613152247.vue +0 -1723
  185. package/.history/packages/question-drawer/src/index_20230613152248.vue +0 -1723
  186. package/.history/packages/question-drawer/src/index_20230613152543.vue +0 -1723
  187. package/.history/packages/question-drawer/src/index_20230613152613.vue +0 -1723
  188. package/.history/packages/question-drawer/src/index_20230614203619.vue +0 -1725
  189. package/.history/packages/question-drawer/src/index_20230614203633.vue +0 -1729
  190. package/.history/packages/question-drawer/src/index_20230614203637.vue +0 -1729
  191. package/.history/packages/question-drawer/src/index_20230614203912.vue +0 -1729
  192. package/.history/packages/question-drawer/src/index_20230614211516.scss +0 -270
  193. package/.history/packages/question-drawer/src/index_20230614212057.scss +0 -265
  194. package/.history/packages/question-drawer/src/index_20230614212140.scss +0 -270
  195. package/.history/packages/question-drawer/src/index_20230614212146.scss +0 -270
  196. package/.history/packages/question-drawer/src/index_20230614212158.scss +0 -270
  197. package/.history/packages/question-drawer/src/index_20230614212613.scss +0 -270
  198. package/.history/packages/question-drawer/src/index_20230614212615.scss +0 -270
  199. package/.history/packages/question-drawer/src/index_20230614212841.scss +0 -270
  200. package/.history/packages/question-drawer/src/index_20230614212939.scss +0 -270
  201. package/.history/packages/question-drawer/src/index_20230614213141.scss +0 -270
  202. package/.history/packages/question-drawer/src/index_20230614213255.scss +0 -270
  203. package/.history/packages/question-drawer/src/index_20230614213349.scss +0 -265
  204. package/.history/packages/question-drawer/src/index_20230614213350.scss +0 -265
  205. package/.history/packages/question-drawer/src/index_20230614213400.scss +0 -265
  206. package/.history/packages/question-drawer/src/index_20230614213401.scss +0 -270
  207. package/.history/packages/question-drawer/src/index_20230614213431.scss +0 -265
  208. package/.history/packages/question-drawer/src/index_20230615100944.vue +0 -1730
  209. package/.history/packages/question-drawer/src/index_20230615100946.vue +0 -1730
  210. package/.history/packages/question-drawer/src/index_20230615100952.vue +0 -1730
  211. package/.history/packages/question-drawer/src/index_20230615100957.vue +0 -1730
  212. package/.history/packages/question-drawer/src/index_20230615104839.vue +0 -1730
  213. package/.history/packages/tabs/src/index_20230607165331.scss +0 -60
  214. package/.history/packages/tabs/src/index_20230614211226.scss +0 -60
  215. package/.history/packages/tabs/src/index_20230614211227.scss +0 -61
  216. package/.history/packages/tabs/src/index_20230614211253.scss +0 -65
  217. package/.history/packages/tabs/src/index_20230614211332.scss +0 -60
  218. package/.history/packages/wrong-detail/src/index_20230607221202.vue +0 -570
  219. package/.history/packages/wrong-detail/src/index_20230613120416.vue +0 -570
  220. package/.history/packages/wrong-detail/src/index_20230613120418.vue +0 -569
  221. package/.history/packages/wrong-detail/src/index_20230613120738.vue +0 -568
  222. package/.history/packages/wrong-detail/src/index_20230613120800.vue +0 -568
  223. package/.history/packages/wrong-detail/src/index_20230613120803.vue +0 -568
  224. package/.history/packages/wrong-detail/src/index_20230613120825.vue +0 -568
  225. package/.history/packages/wrong-detail/src/index_20230613120834.vue +0 -569
  226. package/.history/packages/wrong-detail/src/index_20230613121246.vue +0 -568
  227. package/.history/packages/wrong-detail/src/index_20230613155421.vue +0 -574
  228. package/.history/packages/wrong-detail/src/index_20230613155423.vue +0 -574
  229. package/.history/packages/wrong-detail/src/index_20230613155426.vue +0 -574
  230. package/.history/packages/wrong-drawer/src/index_20230607213124.vue +0 -450
  231. package/.history/packages/wrong-drawer/src/index_20230613104307.vue +0 -450
  232. package/.history/packages/wrong-drawer/src/index_20230613104315.vue +0 -451
  233. package/.history/packages/wrong-drawer/src/index_20230613104317.vue +0 -451
  234. package/.history/packages/wrong-drawer/src/index_20230613104334.vue +0 -451
  235. package/.history/packages/wrong-drawer/src/index_20230613104403.vue +0 -450
  236. package/.history/packages/wrong-drawer/src/index_20230613104405.vue +0 -449
  237. package/.history/packages/wrong-drawer/src/index_20230613104621.vue +0 -458
  238. package/.history/packages/wrong-drawer/src/index_20230613104626.vue +0 -459
  239. package/.history/packages/wrong-drawer/src/index_20230613104629.vue +0 -457
  240. package/.history/packages/wrong-drawer/src/index_20230613104630.vue +0 -457
  241. package/.history/packages/wrong-drawer/src/index_20230613104747.vue +0 -464
  242. package/.history/packages/wrong-drawer/src/index_20230613104749.vue +0 -464
  243. package/.history/packages/wrong-drawer/src/index_20230613104753.vue +0 -464
  244. package/.history/packages/wrong-drawer/src/index_20230613111237.vue +0 -464
  245. package/.history/packages/wrong-drawer/src/index_20230613111314.vue +0 -464
  246. package/.history/packages/wrong-drawer/src/index_20230613114319.vue +0 -464
  247. package/.history/packages/wrong-drawer/src/index_20230613114322.vue +0 -464
  248. package/.history/packages/wrong-drawer/src/index_20230613114901.vue +0 -463
  249. package/.history/packages/wrong-drawer/src/index_20230613114903.vue +0 -462
  250. package/.history/packages/wrong-drawer/src/index_20230613114904.vue +0 -462
  251. package/.history/packages/wrong-drawer/src/index_20230613114909.vue +0 -462
  252. package/.history/packages/wrong-drawer/src/index_20230613114936.vue +0 -463
  253. package/.history/packages/wrong-drawer/src/index_20230613114940.vue +0 -463
  254. package/.history/packages/wrong-drawer/src/index_20230613114942.vue +0 -463
  255. package/.history/packages/wrong-drawer/src/index_20230613115348.vue +0 -487
  256. package/.history/packages/wrong-drawer/src/index_20230613115352.vue +0 -487
  257. package/.history/packages/wrong-drawer/src/index_20230613115356.vue +0 -487
  258. package/.history/packages/wrong-drawer/src/index_20230613115408.vue +0 -500
  259. package/.history/packages/wrong-drawer/src/index_20230613115411.vue +0 -500
  260. package/.history/packages/wrong-drawer/src/index_20230613115414.vue +0 -500
  261. package/.history/packages/wrong-drawer/src/index_20230613144213.vue +0 -499
  262. package/.history/packages/wrong-drawer/src/index_20230613144215.vue +0 -498
  263. package/.history/packages/wrong-drawer/src/index_20230613144218.vue +0 -497
  264. package/.history/packages/wrong-drawer/src/index_20230613144223.vue +0 -497
  265. package/.history/packages/wrong-drawer/src/index_20230613144225.vue +0 -497
  266. package/.history/packages/wrong-drawer/src/index_20230613144229.vue +0 -498
  267. package/.history/packages/wrong-drawer/src/index_20230613144232.vue +0 -498
  268. package/.history/packages/wrong-drawer/src/index_20230613144316.vue +0 -500
  269. package/.history/packages/wrong-drawer/src/index_20230613144345.vue +0 -500
  270. package/.history/packages/wrong-drawer/src/index_20230613144346.vue +0 -500
  271. package/.history/packages/wrong-drawer/src/index_20230613145546.vue +0 -498
  272. package/.history/packages/wrong-drawer/src/index_20230613145548.vue +0 -501
  273. package/.history/packages/wrong-drawer/src/index_20230613145550.vue +0 -500
  274. package/.history/packages/wrong-drawer/src/index_20230613145602.vue +0 -500
  275. package/.history/packages/wrong-drawer/src/index_20230613145611.vue +0 -500
  276. package/.history/packages/wrong-drawer/src/index_20230613145625.vue +0 -500
  277. package/.history/packages/wrong-drawer/src/index_20230613145634.vue +0 -500
  278. package/.history/packages/wrong-drawer/src/index_20230613150805.vue +0 -500
  279. package/.history/packages/wrong-drawer/src/index_20230613150806.vue +0 -501
  280. package/.history/packages/wrong-drawer/src/index_20230613150809.vue +0 -501
  281. package/.history/packages/wrong-drawer/src/index_20230613150810.vue +0 -501
  282. package/.history/vue.config_20230606223920.js +0 -126
  283. package/.history/vue.config_20230626104338.js +0 -133
  284. package/.history/vue.config_20230626104344.js +0 -129
  285. package/.history/vue.config_20230626104347.js +0 -129
  286. package/.history/vue.config_20230626104410.js +0 -129
  287. package/.history/vue.config_20230626104446.js +0 -129
  288. package/.history/vue.config_20230626104448.js +0 -129
  289. package/.history/vue.config_20230626104552.js +0 -130
  290. package/.history/vue.config_20230626104554.js +0 -130
  291. package/.history/vue.config_20230626104556.js +0 -130
  292. package/.history/vue.config_20230626104559.js +0 -132
  293. package/.history/vue.config_20230626104600.js +0 -132
  294. package/.history/vue.config_20230626104603.js +0 -132
  295. package/.history/vue.config_20230626104608.js +0 -129
  296. package/.history/vue.config_20230626104646.js +0 -123
  297. package/.history/vue.config_20230626104824.js +0 -124
  298. package/.history/vue.config_20230626104825.js +0 -124
  299. package/.history/vue.config_20230626104829.js +0 -124
  300. package/.history/vue.config_20230626104832.js +0 -124
  301. package/.history/vue.config_20230626104836.js +0 -121
  302. package/.history/vue.config_20230626105637.js +0 -122
  303. package/.history/vue.config_20230626105642.js +0 -123
  304. package/.history/vue.config_20230626105834.js +0 -124
  305. package/.history/vue.config_20230626105920.js +0 -124
  306. package/.history/vue.config_20230626105938.js +0 -123
  307. package/.history/vue.config_20230626110142.js +0 -124
  308. package/.history/vue.config_20230626110147.js +0 -124
  309. package/.history/vue.config_20230626110154.js +0 -124
  310. package/.history/vue.config_20230626110156.js +0 -124
  311. package/.history/vue.config_20230626110206.js +0 -124
  312. package/.history/vue.config_20230626110207.js +0 -124
  313. package/.history/vue.config_20230626110209.js +0 -124
  314. package/.history/vue.config_20230626110235.js +0 -123
  315. package/.history/vue.config_20230626110237.js +0 -123
  316. package/.history/vue.config_20230626110257.js +0 -123
  317. package/.history/vue.config_20230626110300.js +0 -123
  318. package/.history/vue.config_20230626110316.js +0 -123
  319. package/.history/vue.config_20230626110621.js +0 -123
  320. package/.history/vue.config_20230626110703.js +0 -124
  321. package/.history/vue.config_20230626110708.js +0 -125
  322. package/.history/vue.config_20230626110710.js +0 -126
  323. package/.history/vue.config_20230626110712.js +0 -127
  324. package/.history/vue.config_20230626110715.js +0 -126
  325. package/.history/vue.config_20230626110716.js +0 -127
  326. package/.history/vue.config_20230626110721.js +0 -128
  327. package/.history/vue.config_20230626110741.js +0 -128
  328. package/.history/vue.config_20230626110746.js +0 -128
  329. package/.history/vue.config_20230626110751.js +0 -128
  330. package/.history/vue.config_20230626110754.js +0 -128
  331. package/.history/vue.config_20230626110757.js +0 -128
  332. package/.history/vue.config_20230626110811.js +0 -128
  333. package/.history/vue.config_20230626110815.js +0 -128
  334. package/.history/vue.config_20230626110820.js +0 -128
  335. package/.history/vue.config_20230626110823.js +0 -128
  336. package/.history/vue.config_20230626110949.js +0 -129
  337. package/.history/vue.config_20230626110951.js +0 -129
  338. package/.history/vue.config_20230626110953.js +0 -130
  339. package/.history/vue.config_20230626110956.js +0 -130
  340. package/.history/vue.config_20230626110958.js +0 -131
  341. package/.history/vue.config_20230626111207.js +0 -131
  342. package/.history/vue.config_20230626111211.js +0 -131
  343. package/.history/vue.config_20230626111216.js +0 -131
  344. package/.history/vue.config_20230626111217.js +0 -131
  345. package/.history/vue.config_20230626111332.js +0 -131
  346. package/.history/vue.config_20230626111338.js +0 -131
  347. package/.history/vue.config_20230626111342.js +0 -131
  348. package/.history/vue.config_20230626111359.js +0 -131
  349. package/.history/vue.config_20230626111402.js +0 -131
  350. package/.history/vue.config_20230626111404.js +0 -131
  351. package/.history/vue.config_20230626111442.js +0 -131
  352. package/.history/vue.config_20230626111443.js +0 -131
  353. package/.history/vue.config_20230626111448.js +0 -131
  354. package/.history/vue.config_20230626111450.js +0 -131
  355. package/.history/vue.config_20230626111528.js +0 -131
  356. package/.history/vue.config_20230626111529.js +0 -131
  357. package/.history/vue.config_20230626112153.js +0 -132
  358. package/.history/vue.config_20230626112156.js +0 -133
  359. package/.history/vue.config_20230626112158.js +0 -132
  360. package/.history/vue.config_20230626112201.js +0 -132
  361. package/.history/vue.config_20230626112254.js +0 -132
  362. package/.history/vue.config_20230626112400.js +0 -132
  363. package/.history/vue.config_20230626112402.js +0 -132
  364. package/.history/vue.config_20230626112452.js +0 -132
  365. package/.history/vue.config_20230626113026.js +0 -133
  366. package/.history/vue.config_20230626113032.js +0 -133
  367. package/.history/vue.config_20230626113034.js +0 -134
  368. package/.history/vue.config_20230626113036.js +0 -135
  369. package/.history/vue.config_20230626113040.js +0 -136
  370. package/.history/vue.config_20230626113041.js +0 -137
  371. package/.history/vue.config_20230626113042.js +0 -138
  372. package/.history/vue.config_20230626113044.js +0 -139
  373. package/.history/vue.config_20230626113049.js +0 -140
  374. package/.history/vue.config_20230626113052.js +0 -141
  375. package/.history/vue.config_20230626113056.js +0 -142
  376. package/.history/vue.config_20230626113058.js +0 -143
  377. package/.history/vue.config_20230626113101.js +0 -144
  378. package/.history/vue.config_20230626113105.js +0 -144
  379. package/.history/vue.config_20230626113110.js +0 -145
  380. package/.history/vue.config_20230626113112.js +0 -145
  381. package/.history/vue.config_20230626113129.js +0 -145
  382. package/.history/vue.config_20230626113131.js +0 -146
  383. package/.history/vue.config_20230626113133.js +0 -145
  384. package/.history/vue.config_20230626113142.js +0 -144
  385. package/.history/vue.config_20230626113145.js +0 -137
  386. package/.history/vue.config_20230626113147.js +0 -144
  387. package/.history/vue.config_20230626113154.js +0 -143
  388. package/.history/vue.config_20230626113202.js +0 -144
  389. package/.history/vue.config_20230626113204.js +0 -144
  390. package/.history/vue.config_20230626113207.js +0 -144
  391. package/.history/vue.config_20230626113216.js +0 -144
  392. package/.history/vue.config_20230626113223.js +0 -144
  393. package/.history/vue.config_20230626113224.js +0 -144
  394. package/.history/vue.config_20230626113227.js +0 -144
  395. package/.history/vue.config_20230626113230.js +0 -144
  396. package/.history/vue.config_20230626113237.js +0 -144
  397. package/.history/vue.config_20230626113239.js +0 -144
  398. package/.history/vue.config_20230626113244.js +0 -144
  399. package/.history/vue.config_20230626113245.js +0 -144
  400. package/.history/vue.config_20230626113248.js +0 -142
  401. package/.history/vue.config_20230626113250.js +0 -142
  402. package/.history/vue.config_20230626113255.js +0 -142
  403. package/.history/vue.config_20230626113303.js +0 -142
  404. package/.history/vue.config_20230626113305.js +0 -142
  405. package/.history/vue.config_20230626113309.js +0 -142
  406. package/.history/vue.config_20230626113347.js +0 -142
  407. package/.history/vue.config_20230626113404.js +0 -139
  408. package/.history/vue.config_20230626113406.js +0 -138
  409. package/.history/vue.config_20230626113418.js +0 -134
  410. package/.history/vue.config_20230626113511.js +0 -129
  411. package/.history/vue.config_20230626113656.js +0 -129
  412. package/.history/vue.config_20230626114206.js +0 -134
  413. package/.history/vue.config_20230626114210.js +0 -138
  414. package/.history/vue.config_20230626114358.js +0 -137
  415. package/.history/vue.config_20230626114603.js +0 -137
  416. package/.history/vue.config_20230626114605.js +0 -137
  417. package/.history/vue.config_20230626114657.js +0 -137
  418. package/.history/vue.config_20230626114745.js +0 -137
  419. package/.history/vue.config_20230626114821.js +0 -137
  420. package/.history/vue.config_20230626114832.js +0 -139
  421. package/.history/vue.config_20230626114836.js +0 -132
  422. package/.history/vue.config_20230626114847.js +0 -132
  423. package/.history/vue.config_20230626114850.js +0 -132
  424. package/.history/vue.config_20230626131835.js +0 -132
  425. package/.history/vue.config_20230626132308.js +0 -132
  426. package/.history/vue.config_20230626132415.js +0 -132
  427. package/.history/vue.config_20230626132534.js +0 -132
  428. package/.history/vue.config_20230626132823.js +0 -133
  429. package/.history/vue.config_20230626132826.js +0 -133
  430. package/.history/vue.config_20230626132829.js +0 -133
  431. package/.history/vue.config_20230626132832.js +0 -133
  432. package/.history/vue.config_20230626132836.js +0 -132
  433. package/.history/vue.config_20230626132838.js +0 -132
  434. package/.history/vue.config_20230626132940.js +0 -132
  435. package/.history/vue.config_20230626133032.js +0 -131
  436. package/.history/vue.config_20230626133106.js +0 -132
  437. package/.history/vue.config_20230626133113.js +0 -132
  438. package/.history/vue.config_20230626133122.js +0 -132
  439. package/.history/vue.config_20230626133252.js +0 -132
  440. package/.history/vue.config_20230626133258.js +0 -133
  441. package/.history/vue.config_20230626133300.js +0 -133
  442. package/.history/vue.config_20230626133302.js +0 -133
  443. package/.history/vue.config_20230626133303.js +0 -133
  444. package/.history/vue.config_20230626133305.js +0 -133
  445. package/.history/vue.config_20230626133312.js +0 -132
  446. package/.history/vue.config_20230626133314.js +0 -132
  447. package/.history/vue.config_20230626133316.js +0 -133
  448. package/.history/vue.config_20230626133319.js +0 -132
  449. package/.history/vue.config_20230626133326.js +0 -132
  450. package/.history/vue.config_20230626133336.js +0 -132
  451. package/.history/vue.config_20230626133428.js +0 -132
  452. package/.history/vue.config_20230626133623.js +0 -132
  453. package/.history/vue.config_20230626133736.js +0 -132
  454. package/lib/demo.html +0 -10
  455. package/lib/fonts/icomoon.31e0fa9b.woff +0 -0
  456. package/lib/fonts/icomoon.356dc15f.woff +0 -0
  457. package/lib/fonts/icomoon.7079878b.eot +0 -0
  458. package/lib/fonts/icomoon.ba18ad87.eot +0 -0
  459. package/lib/fonts/icomoon.ec37e716.ttf +0 -0
  460. package/lib/fonts/icomoon.ffa7b130.ttf +0 -0
  461. package/lib/img/cloud_txt_24.87b9d2ae.svg +0 -1
  462. package/lib/img/icomoon.40e828b3.svg +0 -346
  463. package/lib/img/icomoon.532b3795.svg +0 -345
  464. package/lib/img/icon_question.e931b16c.svg +0 -14
  465. package/lib/ui.common.js +0 -93518
  466. package/lib/ui.css +0 -1
  467. package/lib/ui.umd.js +0 -93528
  468. package/lib/ui.umd.min.js +0 -25
@@ -1,1470 +0,0 @@
1
- <!--试卷头部操作栏-->
2
- <template>
3
- <div class="exam-drawer">
4
- <ft-drawer>
5
- <ft-tabs
6
- :options="tabList"
7
- :activeName="activeTab"
8
- @click="tabClick"
9
- ></ft-tabs>
10
- <div class="cascader" v-show="activeTab == 'course'">
11
- <ft-cascader
12
- :key="isResouceShow"
13
- :value.sync="currentMaterials"
14
- :options="materialsGradesList"
15
- :disabled="materialsGradesList.length > 0 ? false : true"
16
- :props="{
17
- expandTrigger: 'click',
18
- }"
19
- :placeholder="
20
- materialsGradesList.length > 0
21
- ? i18n.qingXuanZeJiaoCaiBanBen
22
- : i18n.zanWuJiaoCaiBanBenKeXuan
23
- "
24
- @change="materialChange"
25
- ></ft-cascader>
26
- <ft-cascader
27
- ref="course"
28
- selfRef="courseCascader"
29
- :value.sync="currentCourse"
30
- key="right"
31
- :options="courseList"
32
- :disabled="courseList.length > 0 ? false : true"
33
- :props="{
34
- expandTrigger: 'click',
35
- value: 'courseId',
36
- label: 'courseName',
37
- children: 'courses',
38
- checkStrictly: true,
39
- }"
40
- :placeholder="
41
- materialsGradesList.length > 0 && courseList.length > 0
42
- ? i18n.qingXuanZeZhangJie
43
- : i18n.zanWuZhangJieKeXuan
44
- "
45
- @change="courseChange"
46
- ></ft-cascader>
47
- </div>
48
- <div class="screen">
49
- <ft-radio
50
- v-show="itemBankTypeList.length"
51
- :label="i18n.laiYuan"
52
- :options="itemBankTypeList"
53
- :defaultValue="indexParam.resourceSourceType"
54
- :props="{
55
- label: 'itemBankTypeName',
56
- id: 'itemBankType',
57
- }"
58
- @radio-click="sourceClick"
59
- ></ft-radio>
60
- <ft-radio
61
- v-show="
62
- examTopicDtos.length > 0 &&
63
- screenType == 2 &&
64
- indexParam.resourceSourceType != 4 &&
65
- indexParam.resourceType == 13
66
- "
67
- :label="i18n.zhuanTi"
68
- :options="examTopicDtos"
69
- :defaultValue="
70
- indexParam.examTopicId ? indexParam.examTopicId : 'all'
71
- "
72
- :props="{
73
- label: 'examTopicName',
74
- id: 'examTopicId',
75
- }"
76
- @radio-click="topicClick"
77
- ></ft-radio>
78
- <ft-radio
79
- v-show="
80
- gradeList.length > 0 &&
81
- screenType == 2 &&
82
- indexParam.resourceSourceType != 4 &&
83
- indexParam.resourceType == 13 &&
84
- (indexParam.examTopicName == '单元测验' ||
85
- indexParam.examTopicName == '月考试卷' ||
86
- indexParam.examTopicName == '期中试卷' ||
87
- indexParam.examTopicName == '期末试卷' ||
88
- indexParam.examTopicName == '假期作业')
89
- "
90
- :label="i18n.ceBie"
91
- :options="gradeList"
92
- :defaultValue="defaultGradeId"
93
- :props="{
94
- label: 'gradeName',
95
- id: 'gradeId',
96
- }"
97
- @radio-click="gradeClick"
98
- ></ft-radio>
99
- <ft-radio
100
- v-show="
101
- years.length > 0 &&
102
- indexParam.resourceSourceType != 4 &&
103
- indexParam.resourceType == 13
104
- "
105
- :label="i18n.nianFen"
106
- :options="years"
107
- :defaultValue="indexParam.year ? indexParam.year : 'all'"
108
- @radio-click="yearClick"
109
- ></ft-radio>
110
- <ft-radio
111
- :label="i18n.diQu"
112
- v-show="
113
- provinceList.length > 0 &&
114
- indexParam.resourceSourceType != 4 &&
115
- indexParam.resourceType == 13
116
- "
117
- >
118
- <ft-area
119
- slot="area"
120
- :provinceList="provinceList"
121
- :areaList="areaList"
122
- :districtList="districtList"
123
- :indexParam="indexParam"
124
- :defaultPosition="defaultPosition"
125
- @change="areaChange"
126
- @requestAreasData="requestAreasData"
127
- ></ft-area>
128
- </ft-radio>
129
- <ft-radio
130
- v-show="itemTypeList.length > 0 && indexParam.resourceType == 1"
131
- label="类型"
132
- :options="itemTypeList"
133
- :defaultValue="
134
- indexParam.resourceShareCategoryType
135
- ? indexParam.resourceShareCategoryType
136
- : 'all'
137
- "
138
- :props="{
139
- label: 'value',
140
- id: 'id',
141
- }"
142
- @radio-click="typeClick"
143
- ></ft-radio>
144
- <ft-radio
145
- v-show="
146
- currentZoneList.length > 0 &&
147
- screenType == 2 &&
148
- ((indexParam.resourceSourceType == 4 &&
149
- indexParam.resourceType == 13) ||
150
- indexParam.resourceType != 13)
151
- "
152
- :label="i18n.zhuanQu"
153
- :options="currentZoneList"
154
- :defaultValue="zoneId"
155
- :props="{
156
- label: 'zoneName',
157
- id: 'zoneId',
158
- }"
159
- @radio-click="zoneClick"
160
- ></ft-radio>
161
- </div>
162
- <div
163
- v-infinite-scroll="changeCurrentPage"
164
- :infinite-scroll-disabled="!hasMore"
165
- infinite-scroll-distance="40"
166
- >
167
- <ft-header
168
- v-show="itemInfoList.length"
169
- :options="sortList"
170
- @sort="headerSort"
171
- default-sort="updateTime"
172
- >
173
- {{ i18n.gong }}{{ totalRecord }}{{ i18n.geZiYuan }}
174
- </ft-header>
175
- <ft-exam
176
- v-for="item in itemInfoList"
177
- :key="item.resourceId"
178
- :itemInfo="item"
179
- :defaultCategoryType="defaultCategoryType"
180
- :resourceName="item.resourceName"
181
- :countryShare="item.countryShare"
182
- :directoryName="item.directoryName"
183
- :updateTime="item.updateTime"
184
- :resourceType="item.resourceType"
185
- :convertStatus="item.convertStatus"
186
- :itemCount="item.itemCount"
187
- :userRealName="item.userRealName"
188
- :domainName="item.domainName"
189
- :year="item.year"
190
- :provinceName="item.provinceName"
191
- :areaName="item.areaName"
192
- :districtName="item.districtName"
193
- :referenceCount="item.referenceCount"
194
- @click="goExamDetail"
195
- :src="getShowIcon(item)"
196
- >
197
- </ft-exam>
198
- <ft-empty
199
- v-show="!loadingBankData && !loadingError && itemInfoList.length == 0"
200
- :message="i18n.zanWuShuJu"
201
- >
202
- <img
203
- class="empty-img"
204
- :src="host + '/assets/prepare-course/list/img/empty.fcdd9ba5.png'"
205
- alt=""
206
- />
207
- </ft-empty>
208
- <ft-error
209
- v-show="!loadingBankData && loadingError"
210
- @retry="clickRetryBtn"
211
- >
212
- <img
213
- class="error-img"
214
- :src="host + '/assets/prepare-course/list/img/error.7e494464.png'"
215
- alt=""
216
- />
217
- </ft-error>
218
- <div v-show="loadingBankData" class="loading"></div>
219
- </div>
220
- <div class="page-contro" v-show="itemInfoList.length > 0">
221
- {{
222
- pageError
223
- ? i18n.jiaZaiShiBai
224
- : loading
225
- ? i18n.jiaZaiZhong
226
- : hasMore
227
- ? ""
228
- : i18n.jiaZaiWanBi
229
- }}
230
- </div>
231
- </ft-drawer>
232
- </div>
233
- </template>
234
-
235
- <script>
236
- import FtTabs from "../../tabs/index";
237
- import FtCascader from "../../cascader/index";
238
- import FtHeader from "../../header/index";
239
- import FtRadio from "../../radio/index";
240
- import FtExam from "../../exam/index";
241
- import FtDrawer from "../../drawer/index";
242
- import FtEmpty from "../../empty/index";
243
- import FtError from "../../error/index";
244
- import FtArea from "../../area/index";
245
- // import this from "../../core/event-bus";
246
- import { Loading } from "element-ui";
247
- import {
248
- getResourcePoolIndex,
249
- getResourcePoolList,
250
- getMaterialsGrades,
251
- getEditorCourse,
252
- getProvince,
253
- getUserOperate,
254
- getClassifications,
255
- getZoneList,
256
- getAreas,
257
- setUserOperate,
258
- getQptkSubjectID,
259
- } from "../../../api/index";
260
- import { getIcon, getUrlKey } from "../../../utils/common";
261
- import * as CONSTANTS from "../../../utils/Constants.js";
262
- import infiniteScroll from "vue-infinite-scroll";
263
- //父组件是paperEdit.vue
264
- export default {
265
- name: "FtExamDrawer",
266
- components: {
267
- [Loading.name]: Loading,
268
- FtTabs,
269
- FtCascader,
270
- FtHeader,
271
- FtRadio,
272
- FtExam,
273
- FtDrawer,
274
- FtEmpty,
275
- FtError,
276
- FtArea,
277
- },
278
- directives: { infiniteScroll },
279
- props: {
280
- leftInfo: {
281
- type: Object,
282
- required: true,
283
- },
284
- itemList: {
285
- type: Array,
286
- default: () => [],
287
- required: true,
288
- },
289
- i18n: {
290
- type: Object,
291
- required: true,
292
- },
293
- },
294
-
295
- data() {
296
- return {
297
- host: window.location.origin,
298
- sortList: [
299
- {
300
- label: "引用人数",
301
- key: "count",
302
- },
303
- {
304
- label: "更新时间",
305
- key: "updateTime",
306
- },
307
- ],
308
- activeTab: "course",
309
- tabList: [
310
- {
311
- id: "course",
312
- label: this.i18n.tongBuKeCheng,
313
- },
314
- {
315
- id: "exam",
316
- label: this.i18n.shiJuanZhuanQu,
317
- },
318
- ],
319
- currentMaterials: "",
320
- currentCourse: "",
321
- //首次请求
322
- isLoading: true,
323
- //是否正在加载资源数据
324
- loadingBankData: false,
325
- //加载资源数据是否失败
326
- loadingError: false,
327
- //资源数据集合
328
- itemInfoList: [],
329
- //资源总数
330
- totalRecord: undefined,
331
- //分页信息
332
- pageInfo: {},
333
- //同步课程列表
334
- courseList: [],
335
- //教材版本列表
336
- materialsGradesList: [],
337
- //index接口请求参数
338
- indexParam: {
339
- teachMaterialId: "", //教材版本id
340
- gradeId: "", //册别id
341
- subjectId: "",
342
- eduLevelId: "",
343
- resourceSourceType: 3, //资源来源
344
- resourceType: 13,
345
- year: "",
346
- provinceId: "",
347
- areaId: "",
348
- districtId: "",
349
- resourceShareCategoryType: "", //资源分享类型
350
- examTopicId: "",
351
- examTopicName: "",
352
- courseId: "", //课程id
353
- orderType: 2, //排序方式:*默认 0:引用人数倒序、更新时间倒序;*1:引用人数倒序、更新时间正序;*2:引用人数正序,更新时间倒序;*3:引用人数正序、更新时间正序
354
- page: 1, //页码
355
- },
356
- //默认的题库类型
357
- defaultCategoryType: -1,
358
- //当前选择的教材版本信息
359
- currentCourseValue: [],
360
- //来源列表
361
- itemBankTypeList: [],
362
- //年份列表
363
- years: [],
364
- //类型列表
365
- itemTypeList: [],
366
- //默认的试卷专题
367
- examTopicDto: {},
368
- //试卷专题
369
- examTopicDtos: [],
370
- //index接口请求参数
371
- indexParam: {},
372
- //当前引用的文件夹信息
373
- currentDirectory: undefined,
374
- //筛选视图类型
375
- screenType: 1,
376
- //专区id
377
- zoneId: "",
378
- currPage: 0, //当前页面
379
- pageError: false,
380
- loading: false,
381
- hasMore: true,
382
- //当前的教材版本等信息集合
383
- currentParamInfo: {},
384
- //默认地区(优先展示用户上次选择的地区,没有则展示用户所在地区)
385
- defaultPosition: {
386
- countryId: 1,
387
- provinceId: "", //省
388
- areaId: "", //市
389
- districtId: "", //区
390
- },
391
- //省份数据
392
- provinceList: [],
393
- //默认的册别
394
- defaultGradeId: "",
395
- //册别G
396
- gradeList: [],
397
- //
398
- currentZoneList: [],
399
- isFirstIndex: true, //首次加载该题库
400
- isResouceShow: 0,
401
- firstRequestCourse: true, //是否首次加载课程
402
- districtList: [],
403
- areaList: [],
404
- };
405
- },
406
- watch: {
407
- "$store.state.resourceInfo": function (n, o) {
408
- if (this.isFirstIndex) {
409
- this.isFirstIndex = false;
410
- this.asyncGetUserOperateDataInfo();
411
- }
412
- if (!this.currentCourse || this.currentCourse.length == 0) {
413
- this.currentCourse = n.courseId || (n.list && n.list.courseId);
414
- }
415
- },
416
- materialsGradesList(newValue, oldValue) {
417
- this.isResouceShow += 1;
418
- if (newValue.length > 0) {
419
- let firstV = "";
420
- let secondV = "";
421
- let thirdV = "";
422
- newValue.forEach((element) => {
423
- if (element.value == this.currentCourseValue[0]) {
424
- firstV = element.value;
425
- element.children.forEach((item) => {
426
- if (item.value == this.currentCourseValue[1]) {
427
- secondV = item.value;
428
- item.children.forEach((option) => {
429
- if (option.value == this.currentCourseValue[2]) {
430
- thirdV = option.value;
431
- }
432
- });
433
- }
434
- });
435
- }
436
- });
437
- this.currentMaterials = [firstV, secondV, thirdV];
438
- }
439
- },
440
- courseList(newValue, oldValue) {
441
- this.courseList = newValue;
442
- if (
443
- this.firstRequestCourse &&
444
- this.courseList &&
445
- this.courseList.length > 0
446
- ) {
447
- this.firstRequestCourse = false;
448
- setTimeout(() => {
449
- let checkedCourseArr = [];
450
- let checkedNodes =
451
- // this.$refs.courseCascaderOne.getCheckedNodes(false);
452
- this.$refs.course.$refs.courseCascader.getCheckedNodes(false);
453
- if (checkedNodes && checkedNodes.length > 0) {
454
- let currentNode = checkedNodes[0];
455
- this.getCurrentCheckedCourse(checkedCourseArr, currentNode);
456
- this.currentCourse = checkedCourseArr;
457
- }
458
- }, 200);
459
- }
460
- },
461
- },
462
- created() {},
463
- mounted() {
464
- let _this = this;
465
- _this.setListener();
466
- if (!this.host.includes("teach.focusteach.com")) {
467
- this.host = "http://teach.focusteach.com:8085";
468
- }
469
- },
470
- methods: {
471
- tabClick(value) {
472
- this.activeTab = value;
473
- let dic = {
474
- screenType: this.activeTab == "course" ? 1 : 2,
475
- };
476
- this.$emit("changeResourceParam", "changeTab", JSON.stringify(dic));
477
- },
478
- clickRetryBtn() {
479
- this.$emit("changeIndexParam", "retryRequest", "retryRequest");
480
- },
481
- goExamDetail(itemInfo) {
482
- let dic = {
483
- activeIndex: 4,
484
- currentIndexParam: this.indexParam,
485
- currentPaperItem: itemInfo,
486
- };
487
- this.$emit(
488
- "goExamDetail",
489
- "changeDrawerType",
490
- "changeDrawerType",
491
- JSON.stringify(dic)
492
- );
493
- // this.$emit(
494
- // "changeDrawerType",
495
- // "changeDrawerType",
496
- // JSON.stringify(dic)
497
- // );
498
- },
499
- getShowIcon(paperInfo) {
500
- switch (paperInfo.resourceType + "") {
501
- case CONSTANTS.NET_RESOURCE:
502
- return this.host + "/assets/prepare-course/list/img/web.41562e3b.svg";
503
- case CONSTANTS.PRACTICE:
504
- return getIcon(paperInfo.resourceFileName, this.host);
505
- case CONSTANTS.EXAM:
506
- return (
507
- this.host +
508
- "/assets/prepare-course/list/img/cloud_txt_24.87b9d2ae.svg"
509
- );
510
- case CONSTANTS.DESIGN:
511
- return (
512
- this.host +
513
- "/assets/prepare-course/list/img/cloud_instructional_design_24.22b6584f.svg"
514
- );
515
- default:
516
- return (
517
- this.host +
518
- "/assets/prepare-course/list/img/cloud_unknown_24.31e4ddb3.svg"
519
- );
520
- }
521
- },
522
- sourceClick(itemBankType) {
523
- let _this = this;
524
- if (itemBankType == 5) {
525
- this.$emit("goQptk");
526
- return;
527
- }
528
- // this.currentSourceType = itemBankType;
529
- let dic = { resourceSourceType: itemBankType };
530
- this.$emit("changeResourceParam", "changeSource", JSON.stringify(dic));
531
- this.$emit(
532
- "eventbus-emit",
533
- "changeSource",
534
- "changeSource",
535
- JSON.stringify(dic)
536
- );
537
- },
538
- topicClick(id, topicItem) {
539
- let topicId = "";
540
- let topicName = "";
541
- if (topicItem.examTopicId == "all") {
542
- topicId = "";
543
- topicName = "";
544
- } else {
545
- topicId = topicItem.examTopicId;
546
- topicName = topicItem.examTopicName;
547
- }
548
- let dic = {
549
- examTopicId: topicId,
550
- examTopicName: topicName,
551
- };
552
- this.$emit(
553
- "changeResourceParam",
554
- "changeExamTopicId",
555
- JSON.stringify(dic)
556
- );
557
- },
558
- gradeClick(gradeId) {
559
- let dic = { gradeId: gradeId };
560
- this.$emit("changeResourceParam", "changeGradeId", JSON.stringify(dic));
561
- },
562
- yearClick(item) {
563
- if (item == "all") {
564
- item = "";
565
- }
566
- let dic = { year: item };
567
- this.$emit("changeResourceParam", "selectYear", JSON.stringify(dic));
568
- },
569
- typeClick(itemTypeId) {
570
- if (itemTypeId == "all") {
571
- itemTypeId = "";
572
- }
573
- let dic = { resourceShareCategoryType: itemTypeId };
574
- this.$emit("changeResourceParam", "changeType", JSON.stringify(dic));
575
- },
576
- zoneClick(itemZoneId) {
577
- if (itemZoneId == "all") {
578
- itemZoneId = "";
579
- }
580
- let dic = { courseId: itemZoneId };
581
- this.$emit("changeResourceParam", "changeType", JSON.stringify(dic));
582
- },
583
- areaChange(type, id, provinceId, areaId) {
584
- switch (type) {
585
- case "province":
586
- let dic;
587
- if (id != -1) {
588
- this.requestAreasData(id);
589
- dic = {
590
- provinceId: id,
591
- areaId: "",
592
- districtId: "",
593
- };
594
- } else {
595
- dic = {
596
- provinceId: "",
597
- areaId: "",
598
- districtId: "",
599
- };
600
- }
601
- this.$emit("changeResourceParam", "changeArea", JSON.stringify(dic));
602
- this.setUserOperateDataInfo(dic);
603
- break;
604
- case "area":
605
- if (id != -1) {
606
- var tempDic = { id: -1, name: "不限" };
607
- this.areaList.forEach((element) => {
608
- if (element.id == id) {
609
- this.districtList = [];
610
- this.districtList = this.districtList.concat(
611
- tempDic,
612
- element.districtList
613
- );
614
- }
615
- });
616
- let dic = {
617
- provinceId: provinceId,
618
- areaId: id,
619
- districtId: "",
620
- };
621
- this.$emit(
622
- "changeResourceParam",
623
- "changeArea",
624
- JSON.stringify(dic)
625
- );
626
- this.setUserOperateDataInfo(dic);
627
- } else {
628
- let dic = {
629
- provinceId: provinceId,
630
- areaId: "",
631
- districtId: "",
632
- };
633
- this.$emit(
634
- "changeResourceParam",
635
- "changeArea",
636
- JSON.stringify(dic)
637
- );
638
- this.setUserOperateDataInfo(dic);
639
- }
640
- break;
641
- case "district":
642
- let tempDistrictId = "";
643
- if (id != -1) {
644
- tempDistrictId = id;
645
- }
646
- dic = {
647
- provinceId: provinceId,
648
- areaId: areaId,
649
- districtId: tempDistrictId,
650
- };
651
- this.$emit("changeResourceParam", "changeArea", JSON.stringify(dic));
652
- this.setUserOperateDataInfo(dic);
653
- break;
654
- }
655
- },
656
- //记录用户选择的地区,存入云端
657
- setUserOperateDataInfo(obj) {
658
- obj["countryId"] = 1;
659
- var content = JSON.stringify(obj);
660
- var params = {
661
- operateLog: content,
662
- operateLogType: 5,
663
- };
664
- setUserOperate(
665
- params,
666
- function (res) {
667
- if (res && res.code == 0) {
668
- }
669
- },
670
- function () {}
671
- );
672
- },
673
- requestAreasData(provinceId, areaId) {
674
- let _this = this;
675
- getAreas({ provinceId: provinceId }, (res) => {
676
- if (!res) {
677
- return;
678
- }
679
- if (typeof res === "string") res = JSON.parse(res);
680
- if (res.code == 0) {
681
- _this.areaList = [];
682
- var dic = { id: -1, name: "不限" };
683
- _this.areaList = _this.areaList.concat(dic, res.value);
684
- if (areaId && areaId > 0) {
685
- _this.areaList.forEach((element) => {
686
- if (element.id == areaId) {
687
- _this.districtList = [];
688
- _this.districtList = _this.districtList.concat(
689
- dic,
690
- element.districtList
691
- );
692
- return;
693
- }
694
- });
695
- }
696
- }
697
- });
698
- },
699
- materialChange(value) {
700
- let dic = {
701
- teachMaterialId: value[0],
702
- gradeId: value[1],
703
- termIndex: value[2],
704
- courseId: "",
705
- page: 1,
706
- };
707
- this.$emit(
708
- "changeResourceParam",
709
- "changeMaterialId",
710
- JSON.stringify(dic)
711
- );
712
- this.requestCourseListData(
713
- this.indexParam["subjectId"],
714
- value[0],
715
- value[1],
716
- value[2]
717
- );
718
- },
719
- courseChange(value) {
720
- let dic = { courseId: value[value.length - 1] };
721
- this.$emit("changeResourceParam", "changeCourseId", JSON.stringify(dic));
722
- },
723
- headerSort(item) {
724
- if (item.key == "updateTime") {
725
- let dic = { orderType: item.sortOrder ? 3 : 2 };
726
- this.$emit(
727
- "changeResourceParam",
728
- "changeOrderType",
729
- JSON.stringify(dic)
730
- );
731
- } else {
732
- let dic = { orderType: item.sortOrder ? 1 : 0 };
733
- this.$emit(
734
- "changeResourceParam",
735
- "changeOrderType",
736
- JSON.stringify(dic)
737
- );
738
- }
739
- },
740
- //递归获取当前选择的课程
741
- getCurrentCheckedCourse(arr, node) {
742
- if (node && node.value) {
743
- arr.unshift(node.value);
744
- if (node.parent) {
745
- this.getCurrentCheckedCourse(arr, node.parent);
746
- }
747
- }
748
- },
749
- setListener() {
750
- let _this = this;
751
- //改变indexParam参数,重新请求 list 接口
752
- this.$off("changeResourceParam"); //避免重复响应同一事件
753
- this.$on("changeResourceParam", function (action, msg) {
754
- if (action == "retryRequest") {
755
- //加载失败后的重新请求 || 删除题目后刷新题目数据
756
- _this.requestResourceListData();
757
- return;
758
- }
759
- let dic = JSON.parse(msg);
760
- if (action == "changeTab") {
761
- _this.screenType = dic.screenType;
762
- _this.requestResourceIndexWhenChangeTab();
763
- return;
764
- }
765
- for (let key in dic) {
766
- let value = dic[key];
767
- // _this.indexParam[key] = value;
768
- _this.$set(_this.indexParam, key, value);
769
- }
770
- if (action == "changeSource") {
771
- _this.defaultCategoryType = dic["resourceSourceType"];
772
- }
773
- if (action == "changeArea") {
774
- if (_this.indexParam.districtId == 0) {
775
- _this.indexParam.districtId = "";
776
- }
777
- if (_this.indexParam.areaId == 0) {
778
- _this.indexParam.areaId = "";
779
- }
780
- if (_this.indexParam.provinceId == 0) {
781
- _this.indexParam.provinceId = "";
782
- }
783
- }
784
- console.log("changeResourceParam---indexParam---", _this.indexParam);
785
- //请求题目数据
786
- _this.requestResourceListData();
787
- });
788
- //加载更多
789
- this.$off("changeCurrentPageAndLoadMore"); //避免重复响应同一事件
790
- this.$on("changeCurrentPageAndLoadMore", function (action, msg) {
791
- if (action == "changeCurrentPageAndLoadMore") {
792
- _this.changeCurrentPage();
793
- return;
794
- }
795
- });
796
- },
797
- /*
798
- **请求题库首页数据
799
- * 只在首次进入该页面时请求
800
- */
801
- requestIndexData() {
802
- let _this = this;
803
- _this.loadingError = false;
804
- _this.goRequestIndexData();
805
- },
806
- //首次进入该页面时请求获取用户信息
807
- goRequestIndexData() {
808
- let _this = this;
809
- var prepareInfo = this.leftInfo;
810
- if (prepareInfo && prepareInfo.eduLevelId) {
811
- var eduLevelId = prepareInfo.eduLevelId;
812
- var subjectId = prepareInfo.subjectId;
813
- var courseSrc = prepareInfo.courseSrc;
814
- if (courseSrc == 3) {
815
- //专区
816
- _this.screenType = 2;
817
- } else {
818
- //同步课程
819
- _this.screenType = 1;
820
- }
821
- var courseId = prepareInfo.courseId;
822
- _this.indexParam["courseSrc"] = courseSrc;
823
- _this.indexParam["eduLevelId"] = eduLevelId;
824
- _this.indexParam["subjectId"] = subjectId;
825
- _this.indexParam["courseId"] = courseId;
826
- var teachMaterialId = prepareInfo.teachMaterialId;
827
- var gradeId = prepareInfo.gradeId;
828
- _this.indexParam["teachMaterialId"] = teachMaterialId;
829
- _this.indexParam["gradeId"] = gradeId;
830
- _this.indexParam["resourceId"] = getUrlKey("resourceId");
831
- let dom = document.getElementById("drawer-slot-id");
832
- let loadingInstance = Loading.service({
833
- target: dom,
834
- text: _this.i18n.jiaZaiZhong,
835
- });
836
- //初始化index请求数据
837
- _this.indexParam.resourceSourceType = 3;
838
- _this.indexParam.resourceType = 13;
839
- _this.indexParam.resourceShareCategoryType = "";
840
- _this.defaultCategoryType = -1;
841
- getResourcePoolIndex(_this.indexParam, (res) => {
842
- this.$nextTick(() => {
843
- // 以服务的方式调用的 Loading 需要异步关闭
844
- loadingInstance.close();
845
- });
846
- _this.isLoading = false;
847
- console.log("typeof res ===", typeof res, res);
848
- if (typeof res === "string") res = JSON.parse(res);
849
- if (res && res.code == 0) {
850
- //
851
- _this.requestClassifications(
852
- teachMaterialId,
853
- subjectId,
854
- eduLevelId
855
- );
856
- //
857
- _this.requestZones();
858
- //取出默认的题库类型
859
- _this.defaultCategoryType = res.value.defaultResourceSourceType;
860
- _this.years = res.value.years.map((item) => {
861
- return {
862
- id: item,
863
- label: item,
864
- };
865
- });
866
- if (_this.years.length) {
867
- _this.years.unshift({
868
- id: "all",
869
- label: _this.i18n.quanBu,
870
- });
871
- }
872
-
873
- _this.itemBankTypeList = res.value.ResourceSourceTypeList;
874
- _this.itemBankTypeList.unshift({
875
- itemBankTypeName: "精品资源",
876
- itemBankType: 5,
877
- });
878
- _this.indexParam.resourceSourceType =
879
- res.value.defaultResourceSourceType;
880
- _this.itemTypeList = res.value.resourceShareCategoryTypeList;
881
- if (_this.itemTypeList.length) {
882
- _this.itemTypeList.unshift({
883
- id: "all",
884
- value: "全部",
885
- itemType: -1,
886
- });
887
- }
888
- if (res.value.examTopicDto) {
889
- _this.examTopicDto = {
890
- examTopicId: "",
891
- examTopicName: _this.i18n.quanBu,
892
- }; //默认展示全部
893
- // _this.examTopicDto = res.value.examTopicDto;
894
- _this.indexParam.examTopicId = _this.examTopicDto.examTopicId;
895
- _this.indexParam.examTopicName = _this.examTopicDto.examTopicName;
896
- }
897
- _this.examTopicDtos = res.value.examTopicDtos;
898
- if (_this.examTopicDtos.length) {
899
- _this.examTopicDtos.unshift({
900
- examTopicId: "all",
901
- examTopicName: this.i18n.quanBu,
902
- });
903
- }
904
-
905
- _this.totalRecord = res.value.totalRecord;
906
- _this.pageInfo = {
907
- currPage: res.value.currPage,
908
- totalPage: res.value.totalPage,
909
- perPage: res.value.perPage,
910
- };
911
- if (
912
- (_this.screenType == 2 &&
913
- (_this.indexParam.examTopicName == _this.i18n.danYuanCeYan ||
914
- _this.indexParam.examTopicName == _this.i18n.yueKaoShiJuan ||
915
- _this.indexParam.examTopicName == _this.i18n.qiZhongShiJuan ||
916
- _this.indexParam.examTopicName == _this.i18n.qiMoShiJuan ||
917
- _this.indexParam.examTopicName == _this.i18n.jiaQiZuoYe)) ||
918
- res.value.defaultResourceSourceType == 2
919
- ) {
920
- //需要重新请求数据
921
- _this.requestResourceListData();
922
- } else {
923
- //取出资源数据
924
- _this.itemInfoList = res.value.result;
925
- }
926
- _this.requestMaterialsGradesData(
927
- eduLevelId,
928
- subjectId,
929
- teachMaterialId,
930
- gradeId
931
- );
932
- } else {
933
- _this.loadingError = true;
934
- }
935
- });
936
- }
937
- },
938
- /*
939
- **根据条件的变化请求index
940
- */
941
- requestResourceIndexWhenChangeTab() {
942
- let _this = this;
943
- _this.loadingError = false;
944
- _this.loadingBankData = true;
945
- let tempParams = _this.getCurrentParams();
946
- getResourcePoolIndex(tempParams, (res) => {
947
- _this.loadingBankData = false;
948
- console.log("typeof res ===", typeof res, res);
949
- if (typeof res === "string") res = JSON.parse(res);
950
- if (res && res.code == 0) {
951
- _this.loadingError = false;
952
- //取出资源数据
953
- if (res.value.examTopicDto) {
954
- _this.examTopicDto = {
955
- examTopicId: "",
956
- examTopicName: _this.i18n.quanBu,
957
- }; //默认展示全部
958
- // _this.examTopicDto = res.value.examTopicDto;
959
- _this.indexParam.examTopicId = _this.examTopicDto.examTopicId;
960
- _this.indexParam.examTopicName = _this.examTopicDto.examTopicName;
961
- }
962
- _this.examTopicDtos = res.value.examTopicDtos;
963
- if (_this.examTopicDtos.length) {
964
- _this.examTopicDtos.unshift({
965
- examTopicId: "all",
966
- examTopicName: this.i18n.quanBu,
967
- });
968
- }
969
-
970
- _this.totalRecord = res.value.totalRecord;
971
- _this.pageInfo = {
972
- currPage: res.value.currPage,
973
- totalPage: res.value.totalPage,
974
- perPage: res.value.perPage,
975
- };
976
- if (
977
- _this.screenType == 2 &&
978
- (_this.indexParam.examTopicName == _this.i18n.danYuanCeYan ||
979
- _this.indexParam.examTopicName == _this.i18n.yueKaoShiJuan ||
980
- _this.indexParam.examTopicName == _this.i18n.qiZhongShiJuan ||
981
- _this.indexParam.examTopicName == _this.i18n.qiMoShiJuan ||
982
- _this.indexParam.examTopicName == _this.i18n.jiaQiZuoYe)
983
- ) {
984
- //需要重新请求数据
985
- _this.requestResourceListData();
986
- } else {
987
- //取出资源数据
988
- _this.itemInfoList = res.value.result;
989
- }
990
- } else {
991
- _this.loadingError = true;
992
- _this.itemInfoList = [];
993
- _this.pageInfo = {};
994
- }
995
- });
996
- },
997
- /*
998
- **请求题库数据
999
- * 筛选条件时请求
1000
- */
1001
- requestResourceListData() {
1002
- let _this = this;
1003
- _this.loadingError = false;
1004
- _this.loadingBankData = true;
1005
- let tempParams = _this.getCurrentParams();
1006
- getResourcePoolList(tempParams, (res) => {
1007
- _this.loadingBankData = false;
1008
- if (typeof res === "string") res = JSON.parse(res);
1009
- if (res && res.code == 0) {
1010
- _this.loadingError = false;
1011
- _this.itemInfoList = res.value.result;
1012
- _this.totalRecord = res.value.totalRecord;
1013
- _this.currPage = res.value.currPage;
1014
- if (_this.itemInfoList.length >= _this.totalRecord) {
1015
- _this.hasMore = false;
1016
- } else {
1017
- _this.hasMore = true;
1018
- }
1019
- _this.pageInfo = {
1020
- currPage: res.value.currPage,
1021
- totalPage: res.value.totalPage,
1022
- perPage: res.value.perPage,
1023
- };
1024
- } else {
1025
- //请求题目数据报错
1026
- _this.loadingError = true;
1027
- _this.itemInfoList = [];
1028
- _this.pageInfo = {};
1029
- }
1030
- });
1031
- },
1032
- /*
1033
- **获取符合当前条件的参数,过滤掉无效的参数,规则如下描述(奇葩的需求,搞个筛选条件弄了这么复杂的逻辑,无语。。。)
1034
- *
1035
- * ******************************************** 筛选字段含义如下 ********************************************
1036
- * 01 teachMaterialId:教材版本
1037
- * 02 gradeId:册别
1038
- * 03 subjectId:科目
1039
- * 04 eduLevelId:学段
1040
- * 05 resourceSourceType:来源 (区本资源:2,校本资源:3,我的资源:4)
1041
- * 06 resourceType:分类(试卷:13,教学设计:14,教学课件:1,网络资源:0)
1042
- * 07 year:年份
1043
- * 08 provinceId:省
1044
- * 09 areaId:市
1045
- * 10 districtId:区
1046
- * 11 resourceShareCategoryType:类型
1047
- * 12 examTopicId:试卷专题id
1048
- * 13 examTopicName:试卷专题name (查询数据用examTopicId,逻辑判断用examTopicName。。。。。。大写的服!!!!!!)
1049
- * 14 courseId:课程id || 专区id
1050
- * 15 orderType:排序方式:*默认 0:引用人数倒序、更新时间倒序;*1:引用人数倒序、更新时间正序;*2:引用人数正序,更新时间倒序;*3:引用人数正序、更新时间正序
1051
- * 16 page:页码
1052
- * 17 courseSrc: 0是同步课程下的资源库,3是专区下的资源库
1053
- *
1054
- * ******************************************** 筛选规则如下 ********************************************
1055
- * 公共条件:来源和分类
1056
- * 同步课程 - 区本资源||校本资源 - 试卷 :则展示条件(年份、地区)
1057
- * 同步课程 - 区本资源||校本资源||我的资源 - 教学课件 :则展示条件(类型)
1058
- * 同步课程 - 区本资源||校本资源 - 教学设计||网络资源 :则不展示其他条件
1059
- * 同步课程 - 我的资源 - 试卷||教学设计||网络资源 :则不展示其他条件
1060
- * 专区 - 区本资源||校本资源 - 试卷 :则展示条件(试卷专题、年份、地区)---> 试卷专题若为单元测验、月考试卷、期中试卷、期末试卷、假期作业,还要显示册别
1061
- * 专区 - 区本资源||校本资源||我的资源 - 教学课件 :则展示条件(类型、专区)
1062
- * 专区 - 区本资源||校本资源||我的资源 - 教学设计||网络资源 :则展示条件(专区)
1063
- * 专区 - 我的资源 - 试卷:则展示条件(专区)
1064
- *
1065
- */
1066
- getCurrentParams() {
1067
- let _this = this;
1068
- let currentParams = {
1069
- teachMaterialId: _this.indexParam.teachMaterialId,
1070
- subjectId: _this.indexParam.subjectId,
1071
- eduLevelId: _this.indexParam.eduLevelId,
1072
- resourceSourceType: _this.indexParam.resourceSourceType,
1073
- resourceType: _this.indexParam.resourceType,
1074
- orderType: _this.indexParam.orderType ? _this.indexParam.orderType : 2,
1075
- page: _this.indexParam.page,
1076
- };
1077
- if (_this.indexParam.resourceType == 1) {
1078
- //只要“分类”选择的是“教学课件”,就一定有“类型”筛选条件
1079
- currentParams["resourceShareCategoryType"] =
1080
- _this.indexParam.resourceShareCategoryType;
1081
- }
1082
- if (_this.screenType == 1) {
1083
- //同步课程
1084
- currentParams["courseId"] = _this.indexParam.courseId;
1085
- currentParams["courseSrc"] = 0;
1086
- currentParams["gradeId"] = _this.indexParam.gradeId;
1087
- if (_this.indexParam.resourceSourceType == 4) {
1088
- //我的资源
1089
- currentParams["year"] = "";
1090
- currentParams["provinceId"] = "";
1091
- currentParams["areaId"] = "";
1092
- currentParams["districtId"] = "";
1093
- } else {
1094
- //区本资源||校本资源
1095
- if (_this.indexParam.resourceType == 13) {
1096
- //“分类”选择的是“试卷”,则有“年份”、“地区”
1097
- currentParams["year"] = _this.indexParam.year;
1098
- currentParams["provinceId"] =
1099
- _this.indexParam.provinceId == 0
1100
- ? ""
1101
- : _this.indexParam.provinceId;
1102
- currentParams["areaId"] =
1103
- _this.indexParam.areaId == 0 ? "" : _this.indexParam.areaId;
1104
- currentParams["districtId"] =
1105
- _this.indexParam.districtId == 0
1106
- ? ""
1107
- : _this.indexParam.districtId;
1108
- }
1109
- }
1110
- } else {
1111
- //专区
1112
- currentParams["courseSrc"] = 3;
1113
- if (_this.indexParam.resourceSourceType == 4) {
1114
- //我的资源,则一定有“专区”
1115
- currentParams["courseId"] = _this.indexParam.courseId;
1116
- } else {
1117
- //区本资源||校本资源
1118
- if (_this.indexParam.resourceType == 13) {
1119
- //“分类”选择的是“试卷”,则有“试卷专题”、“年份”、“地区”
1120
- currentParams["examTopicId"] = _this.indexParam.examTopicId;
1121
- currentParams["year"] = _this.indexParam.year;
1122
- currentParams["provinceId"] =
1123
- _this.indexParam.provinceId == 0
1124
- ? ""
1125
- : _this.indexParam.provinceId;
1126
- currentParams["areaId"] =
1127
- _this.indexParam.areaId == 0 ? "" : _this.indexParam.areaId;
1128
- currentParams["districtId"] =
1129
- _this.indexParam.districtId == 0
1130
- ? ""
1131
- : _this.indexParam.districtId;
1132
- if (
1133
- _this.indexParam.examTopicName == _this.i18n.danYuanCeYan ||
1134
- _this.indexParam.examTopicName == _this.i18n.yueKaoShiJuan ||
1135
- _this.indexParam.examTopicName == _this.i18n.qiZhongShiJuan ||
1136
- _this.indexParam.examTopicName == _this.i18n.qiMoShiJuan ||
1137
- _this.indexParam.examTopicName == _this.i18n.jiaQiZuoYe
1138
- ) {
1139
- //试卷专题若为单元测验、月考试卷、期中试卷、期末试卷、假期作业,还要"册别"
1140
- currentParams["gradeId"] = _this.indexParam.gradeId;
1141
- }
1142
- } else {
1143
- //其他分类则有“专区”
1144
- currentParams["courseId"] = _this.indexParam.courseId;
1145
- }
1146
- }
1147
- }
1148
- return currentParams;
1149
- },
1150
- /*
1151
- **获取教材版本数据
1152
- */
1153
- requestMaterialsGradesData(
1154
- eduLevelId,
1155
- subjectId,
1156
- teachMaterialId,
1157
- gradeId
1158
- ) {
1159
- let _this = this;
1160
- _this.courseList = [];
1161
- getMaterialsGrades(
1162
- {
1163
- eduLevelId: eduLevelId,
1164
- subjectId: subjectId,
1165
- teachMaterialId: teachMaterialId,
1166
- gradeId: gradeId,
1167
- },
1168
- (res) => {
1169
- if (!res) {
1170
- return;
1171
- }
1172
- if (typeof res === "string") res = JSON.parse(res);
1173
- if (res.code == 0) {
1174
- _this.currentCourseValue = [
1175
- res.value.checkTeachMaterialId,
1176
- res.value.checkClassificationId,
1177
- res.value.checkTermIndex,
1178
- ];
1179
- _this.materialsGradesList = res.value.list;
1180
- _this.requestCourseListData(
1181
- subjectId,
1182
- res.value.checkTeachMaterialId,
1183
- res.value.checkClassificationId,
1184
- res.value.checkTermIndex
1185
- );
1186
- }
1187
- }
1188
- );
1189
- },
1190
- /*
1191
- ** 获取课程数据
1192
- * teachMaterialId:教材版本id
1193
- * classificationId:册别id
1194
- * termIndex:学期号
1195
- */
1196
- requestCourseListData(
1197
- subjectId,
1198
- teachMaterialId,
1199
- classificationId,
1200
- termIndex
1201
- ) {
1202
- let _this = this;
1203
- getEditorCourse(
1204
- {
1205
- subjectId: subjectId,
1206
- teachMaterialId: teachMaterialId,
1207
- termIndex: termIndex,
1208
- classificationId: classificationId,
1209
- },
1210
- (res) => {
1211
- if (!res) {
1212
- return;
1213
- }
1214
- if (typeof res === "string") res = JSON.parse(res);
1215
- if (res.code == 0) {
1216
- _this.courseList = res.value.list;
1217
- }
1218
- }
1219
- );
1220
- },
1221
- /*
1222
- ** 获取知识点数据
1223
- */
1224
- requestKnowledgeData() {
1225
- let _this = this;
1226
- getKnowledge(
1227
- {
1228
- eduLevelId: _this.indexParam.studySectionId,
1229
- subjectId: _this.indexParam.subjectId,
1230
- },
1231
- (res) => {
1232
- if (!res) {
1233
- return;
1234
- }
1235
- if (typeof res === "string") res = JSON.parse(res);
1236
- if (res.code == 0) {
1237
- _this.klList = res.value;
1238
- }
1239
- }
1240
- );
1241
- },
1242
- /*
1243
- ** 获取考点数据
1244
- */
1245
- requestPointData() {
1246
- let _this = this;
1247
- getPoint(
1248
- {
1249
- eduLevelId: _this.indexParam.studySectionId,
1250
- subjectId: _this.indexParam.subjectId,
1251
- },
1252
- (res) => {
1253
- if (!res) {
1254
- return;
1255
- }
1256
- if (typeof res === "string") res = JSON.parse(res);
1257
- if (res.code == 0) {
1258
- _this.examPointList = res.value;
1259
- }
1260
- }
1261
- );
1262
- },
1263
- /*
1264
- ** 获取册别数据
1265
- */
1266
- requestClassifications(teachMaterialId, subjectId, eduLevelId) {
1267
- let _this = this;
1268
- getClassifications(
1269
- {
1270
- teachMaterialId: teachMaterialId,
1271
- subjectId: subjectId,
1272
- eduLevelId: eduLevelId,
1273
- },
1274
- (res) => {
1275
- if (!res) {
1276
- return;
1277
- }
1278
- if (typeof res === "string") res = JSON.parse(res);
1279
- if (res.code == 0) {
1280
- _this.gradeList = res.value;
1281
- if (
1282
- _this.indexParam.gradeId &&
1283
- _this.indexParam.gradeId.length > 0
1284
- ) {
1285
- _this.defaultGradeId = _this.indexParam.gradeId;
1286
- } else {
1287
- if (_this.gradeList && _this.gradeList.length > 0) {
1288
- _this.defaultGradeId = _this.gradeList[0].gradeId;
1289
- }
1290
- }
1291
- }
1292
- }
1293
- );
1294
- },
1295
- /*
1296
- ** 获取专区数据
1297
- */
1298
- requestZones() {
1299
- let _this = this;
1300
- getZoneList({}, (res) => {
1301
- if (!res) {
1302
- return;
1303
- }
1304
- if (typeof res === "string") res = JSON.parse(res);
1305
- if (res.code == 0) {
1306
- _this.currentZoneList = res.value;
1307
- _this.currentZoneList.unshift({
1308
- zoneId: "all",
1309
- zoneName: "全部",
1310
- itemType: -1,
1311
- });
1312
- if (
1313
- _this.screenType == 2 &&
1314
- _this.indexParam.courseId &&
1315
- _this.indexParam.courseId.length > 0
1316
- ) {
1317
- _this.zoneId = _this.indexParam.courseId;
1318
- } else {
1319
- if (_this.currentZoneList && _this.currentZoneList.length > 0) {
1320
- _this.zoneId = _this.currentZoneList[0].zoneId;
1321
- }
1322
- }
1323
- }
1324
- });
1325
- },
1326
- //改变右侧栏宽度
1327
- changeSize(e) {
1328
- document.onmousemove = (e) => {
1329
- e.stopPropagation();
1330
- document.body.style.cursor = "w-resize";
1331
- let addWidth = this.$refs.drawer.offsetLeft - e.clientX;
1332
- let curWidth = this.$refs.drawer.offsetWidth;
1333
- this.$refs.drawer.style.width = `${curWidth + addWidth}px`;
1334
- };
1335
- document.onmouseup = (e) => {
1336
- e.stopPropagation();
1337
- document.onmousemove = null;
1338
- document.onmouseup = null;
1339
- document.body.style.cursor = "default";
1340
- };
1341
- },
1342
- //改变当前页
1343
- changeCurrentPage() {
1344
- let _this = this;
1345
- console.log(
1346
- "changeCurrentPage---",
1347
- _this.itemInfoList.length,
1348
- _this.totalRecord,
1349
- _this.provinceList.length
1350
- );
1351
- if (
1352
- _this.itemInfoList.length >= _this.totalRecord ||
1353
- _this.provinceList.length <= 0
1354
- ) {
1355
- _this.hasMore = false;
1356
- return;
1357
- }
1358
- // let dic = _this.indexParam;
1359
- let dic = _this.getCurrentParams(); //获取当前参数;
1360
- dic["page"] = _this.currPage + 1;
1361
- _this.requestPageBank(dic);
1362
- },
1363
- /*
1364
- **请求题库数据
1365
- * 筛选条件时请求
1366
- */
1367
- requestPageBank(param) {
1368
- let _this = this;
1369
- _this.pageError = false;
1370
- _this.loading = true;
1371
- let query = JSON.parse(JSON.stringify(param));
1372
- if (query.examTopicId) delete query.examTopicId;
1373
- if (query.examTopicName) delete query.examTopicName;
1374
- getResourcePoolList(query, (res) => {
1375
- _this.loading = false;
1376
- if (typeof res === "string") res = JSON.parse(res);
1377
- if (res && res.code == 0) {
1378
- //取出题目数据
1379
- _this.pageError = false;
1380
- _this.currPage = res.value.currPage;
1381
- _this.itemInfoList = _this.itemInfoList.concat(res.value.result);
1382
- if (_this.itemInfoList.length >= res.value.totalRecord) {
1383
- _this.hasMore = false;
1384
- } else {
1385
- _this.hasMore = true;
1386
- }
1387
- } else {
1388
- //请求题目数据报错
1389
- _this.pageError = true;
1390
- }
1391
- });
1392
- },
1393
- //请求获取用户信息
1394
- async asyncGetUserOperateDataInfo() {
1395
- let _this = this;
1396
- var operateString = undefined;
1397
- let res = await getUserOperate({ operateLogType: 5 });
1398
- if (res && res.code == 0) {
1399
- operateString = res.value;
1400
- if (operateString != undefined && operateString.length > 0) {
1401
- var prepareInfo = JSON.parse(operateString);
1402
- if (prepareInfo && prepareInfo.countryId) {
1403
- _this.defaultPosition.countryId = prepareInfo.countryId;
1404
- _this.defaultPosition.provinceId =
1405
- prepareInfo.provinceId && prepareInfo.provinceId > 0
1406
- ? prepareInfo.provinceId
1407
- : 0;
1408
- _this.defaultPosition.areaId =
1409
- prepareInfo.areaId && prepareInfo.areaId > 0
1410
- ? prepareInfo.areaId
1411
- : 0;
1412
- _this.defaultPosition.districtId =
1413
- prepareInfo.districtId && prepareInfo.districtId > 0
1414
- ? prepareInfo.districtId
1415
- : 0;
1416
- _this.requestProvinceData(true);
1417
- } else {
1418
- _this.requestProvinceData(false);
1419
- }
1420
- } else {
1421
- _this.requestProvinceData(false);
1422
- }
1423
- } else {
1424
- _this.requestProvinceData(false);
1425
- }
1426
- },
1427
- /*
1428
- **根据省份获取城市信息
1429
- */
1430
- requestProvinceData(isHistory) {
1431
- let _this = this;
1432
- getProvince({}, (res) => {
1433
- if (!res) {
1434
- return;
1435
- }
1436
- if (typeof res === "string") res = JSON.parse(res);
1437
- if (res.code == 0) {
1438
- if (!isHistory) {
1439
- _this.defaultPosition.countryId = res.value.countryId;
1440
- _this.defaultPosition.provinceId = res.value.provinceId;
1441
- _this.defaultPosition.districtId = res.value.districtId;
1442
- _this.defaultPosition.areaId = res.value.areaId;
1443
- }
1444
- res.value.countryList.forEach((element) => {
1445
- if (element.id == _this.defaultPosition.countryId) {
1446
- _this.provinceList = element.provinceList;
1447
- _this.provinceList.unshift({ id: -1, name: "不限" });
1448
- }
1449
- });
1450
- }
1451
- _this.indexParam.provinceId =
1452
- _this.defaultPosition.provinceId == 0
1453
- ? ""
1454
- : _this.defaultPosition.provinceId;
1455
- _this.indexParam.districtId =
1456
- _this.defaultPosition.districtId == 0
1457
- ? ""
1458
- : _this.defaultPosition.districtId;
1459
- _this.indexParam.areaId =
1460
- _this.defaultPosition.areaId == 0 ? "" : _this.defaultPosition.areaId;
1461
- _this.requestIndexData();
1462
- });
1463
- },
1464
- },
1465
- computed: {},
1466
- };
1467
- </script>
1468
- <style lang="scss" scoped>
1469
- @import "./index.scss";
1470
- </style>