@focus-teach/ui 1.0.4 → 1.0.5

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