@focus-teach/ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +2 -0
- package/.history/package_20230625121458.json +45 -0
- package/.history/package_20230626100440.json +45 -0
- package/.history/package_20230626100445.json +45 -0
- package/.history/package_20230626100447.json +45 -0
- package/.history/package_20230626100636.json +45 -0
- package/.history/package_20230626100801.json +45 -0
- package/.history/package_20230626100803.json +45 -0
- package/.history/package_20230626100838.json +45 -0
- package/.history/package_20230626103314.json +45 -0
- package/.history/package_20230626103317.json +45 -0
- package/.history/packages/assets/css/reset-element_20230605134721.scss +167 -0
- package/.history/packages/assets/css/reset-element_20230614205652.scss +173 -0
- package/.history/packages/assets/css/reset-element_20230614205654.scss +173 -0
- package/.history/packages/assets/css/reset-element_20230614211242.scss +169 -0
- package/.history/packages/assets/css/reset-element_20230614211245.scss +167 -0
- package/.history/packages/exam-detail/src/index_20230607220441.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115618.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115623.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115629.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115631.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115640.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115651.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115659.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115750.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115806.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115811.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613115815.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613120250.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613120252.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613120257.vue +547 -0
- package/.history/packages/exam-detail/src/index_20230613120323.vue +547 -0
- package/.history/packages/exam-detail/src/index_20230613120327.vue +547 -0
- package/.history/packages/exam-detail/src/index_20230613120328.vue +547 -0
- package/.history/packages/exam-detail/src/index_20230613120915.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613120917.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613120922.vue +549 -0
- package/.history/packages/exam-detail/src/index_20230613120924.vue +549 -0
- package/.history/packages/exam-detail/src/index_20230613120928.vue +550 -0
- package/.history/packages/exam-detail/src/index_20230613120930.vue +550 -0
- package/.history/packages/exam-detail/src/index_20230613120936.vue +549 -0
- package/.history/packages/exam-detail/src/index_20230613120938.vue +550 -0
- package/.history/packages/exam-detail/src/index_20230613120942.vue +550 -0
- package/.history/packages/exam-detail/src/index_20230613120944.vue +550 -0
- package/.history/packages/exam-detail/src/index_20230613121331.vue +549 -0
- package/.history/packages/exam-detail/src/index_20230613121333.vue +548 -0
- package/.history/packages/exam-detail/src/index_20230613121335.vue +547 -0
- package/.history/packages/exam-detail/src/index_20230613121341.vue +547 -0
- package/.history/packages/exam-detail/src/index_20230613121344.vue +546 -0
- package/.history/packages/exam-detail/src/index_20230613153022.vue +546 -0
- package/.history/packages/exam-detail/src/index_20230613153027.vue +546 -0
- package/.history/packages/exam-detail/src/index_20230613153620.vue +546 -0
- package/.history/packages/exam-detail/src/index_20230613164734.vue +546 -0
- package/.history/packages/exam-detail/src/index_20230613164746.vue +546 -0
- package/.history/packages/exam-detail/src/index_20230613164756.vue +546 -0
- package/.history/packages/exam-drawer/src/index_20230607103301.vue +1470 -0
- package/.history/packages/exam-drawer/src/index_20230613090746.vue +1469 -0
- package/.history/packages/exam-drawer/src/index_20230613090759.vue +1469 -0
- package/.history/packages/exam-drawer/src/index_20230613090802.vue +1469 -0
- package/.history/packages/exam-drawer/src/index_20230613090809.vue +1469 -0
- package/.history/packages/exam-drawer/src/index_20230613090850.vue +1470 -0
- package/.history/packages/exam-drawer/src/index_20230613090919.vue +1487 -0
- package/.history/packages/exam-drawer/src/index_20230613090930.vue +1486 -0
- package/.history/packages/exam-drawer/src/index_20230613090935.vue +1485 -0
- package/.history/packages/exam-drawer/src/index_20230613091124.vue +1488 -0
- package/.history/packages/exam-drawer/src/index_20230613091140.vue +1488 -0
- package/.history/packages/exam-drawer/src/index_20230613091141.vue +1488 -0
- package/.history/packages/exam-drawer/src/index_20230613092108.vue +1489 -0
- package/.history/packages/exam-drawer/src/index_20230613092111.vue +1489 -0
- package/.history/packages/exam-drawer/src/index_20230613093130.vue +1490 -0
- package/.history/packages/exam-drawer/src/index_20230613093135.vue +1489 -0
- package/.history/packages/exam-drawer/src/index_20230613093149.vue +1488 -0
- package/.history/packages/exam-drawer/src/index_20230613093156.vue +1487 -0
- package/.history/packages/exam-drawer/src/index_20230613093159.vue +1486 -0
- package/.history/packages/exam-drawer/src/index_20230613093202.vue +1485 -0
- package/.history/packages/exam-drawer/src/index_20230613093204.vue +1484 -0
- package/.history/packages/exam-drawer/src/index_20230613093207.vue +1483 -0
- package/.history/packages/exam-drawer/src/index_20230613093209.vue +1482 -0
- package/.history/packages/exam-drawer/src/index_20230613093212.vue +1483 -0
- package/.history/packages/exam-drawer/src/index_20230613093217.vue +1483 -0
- package/.history/packages/exam-drawer/src/index_20230613093228.vue +1483 -0
- package/.history/packages/exam-drawer/src/index_20230613093229.vue +1483 -0
- package/.history/packages/exam-drawer/src/index_20230613093843.vue +1482 -0
- package/.history/packages/exam-drawer/src/index_20230613093847.vue +1481 -0
- package/.history/packages/exam-drawer/src/index_20230613093851.vue +1480 -0
- package/.history/packages/exam-drawer/src/index_20230613115708.vue +1480 -0
- package/.history/packages/exam-drawer/src/index_20230613115823.vue +1480 -0
- package/.history/packages/exam-drawer/src/index_20230613115825.vue +1480 -0
- package/.history/packages/exam-drawer/src/index_20230613115827.vue +1480 -0
- package/.history/packages/exam-drawer/src/index_20230613120908.vue +1481 -0
- package/.history/packages/exam-drawer/src/index_20230613120910.vue +1481 -0
- package/.history/packages/exam-drawer/src/index_20230613121320.vue +1480 -0
- package/.history/packages/exam-drawer/src/index_20230613121326.vue +1480 -0
- package/.history/packages/exam-drawer/src/index_20230613144244.vue +1479 -0
- package/.history/packages/exam-drawer/src/index_20230613144246.vue +1478 -0
- package/.history/packages/exam-drawer/src/index_20230613144248.vue +1477 -0
- package/.history/packages/exam-drawer/src/index_20230613144251.vue +1476 -0
- package/.history/packages/exam-drawer/src/index_20230613152608.vue +1476 -0
- package/.history/packages/header/src/index_20230605134719.vue +59 -0
- package/.history/packages/header/src/index_20230613115723.vue +59 -0
- package/.history/packages/header/src/index_20230613115727.vue +59 -0
- package/.history/packages/header/src/index_20230613115733.vue +59 -0
- package/.history/packages/header/src/index_20230613115736.vue +59 -0
- package/.history/packages/header/src/index_20230613120901.vue +60 -0
- package/.history/packages/header/src/index_20230613120903.vue +60 -0
- package/.history/packages/header/src/index_20230613121316.vue +59 -0
- package/.history/packages/question-drawer/src/index_20230607160653.vue +1735 -0
- package/.history/packages/question-drawer/src/index_20230607160720.scss +265 -0
- package/.history/packages/question-drawer/src/index_20230613090910.vue +1735 -0
- package/.history/packages/question-drawer/src/index_20230613090928.vue +1734 -0
- package/.history/packages/question-drawer/src/index_20230613090937.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613115842.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613115844.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613115848.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613115902.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613115911.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613115914.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613115922.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613120356.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613120359.vue +1732 -0
- package/.history/packages/question-drawer/src/index_20230613120710.vue +1731 -0
- package/.history/packages/question-drawer/src/index_20230613120839.vue +1732 -0
- package/.history/packages/question-drawer/src/index_20230613120841.vue +1732 -0
- package/.history/packages/question-drawer/src/index_20230613120844.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613120846.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613120850.vue +1734 -0
- package/.history/packages/question-drawer/src/index_20230613120852.vue +1734 -0
- package/.history/packages/question-drawer/src/index_20230613120856.vue +1735 -0
- package/.history/packages/question-drawer/src/index_20230613120858.vue +1735 -0
- package/.history/packages/question-drawer/src/index_20230613121150.vue +1735 -0
- package/.history/packages/question-drawer/src/index_20230613121238.vue +1734 -0
- package/.history/packages/question-drawer/src/index_20230613121252.vue +1734 -0
- package/.history/packages/question-drawer/src/index_20230613121256.vue +1734 -0
- package/.history/packages/question-drawer/src/index_20230613121258.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613121303.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613121307.vue +1733 -0
- package/.history/packages/question-drawer/src/index_20230613121310.vue +1732 -0
- package/.history/packages/question-drawer/src/index_20230613121313.vue +1731 -0
- package/.history/packages/question-drawer/src/index_20230613121549.vue +1731 -0
- package/.history/packages/question-drawer/src/index_20230613121623.vue +1731 -0
- package/.history/packages/question-drawer/src/index_20230613151515.vue +1730 -0
- package/.history/packages/question-drawer/src/index_20230613151517.vue +1729 -0
- package/.history/packages/question-drawer/src/index_20230613151612.vue +1729 -0
- package/.history/packages/question-drawer/src/index_20230613151618.vue +1729 -0
- package/.history/packages/question-drawer/src/index_20230613151928.vue +1729 -0
- package/.history/packages/question-drawer/src/index_20230613151929.vue +1729 -0
- package/.history/packages/question-drawer/src/index_20230613152233.vue +1728 -0
- package/.history/packages/question-drawer/src/index_20230613152235.vue +1727 -0
- package/.history/packages/question-drawer/src/index_20230613152237.vue +1726 -0
- package/.history/packages/question-drawer/src/index_20230613152239.vue +1726 -0
- package/.history/packages/question-drawer/src/index_20230613152243.vue +1725 -0
- package/.history/packages/question-drawer/src/index_20230613152245.vue +1724 -0
- package/.history/packages/question-drawer/src/index_20230613152247.vue +1723 -0
- package/.history/packages/question-drawer/src/index_20230613152248.vue +1723 -0
- package/.history/packages/question-drawer/src/index_20230613152543.vue +1723 -0
- package/.history/packages/question-drawer/src/index_20230613152613.vue +1723 -0
- package/.history/packages/question-drawer/src/index_20230614203619.vue +1725 -0
- package/.history/packages/question-drawer/src/index_20230614203633.vue +1729 -0
- package/.history/packages/question-drawer/src/index_20230614203637.vue +1729 -0
- package/.history/packages/question-drawer/src/index_20230614203912.vue +1729 -0
- package/.history/packages/question-drawer/src/index_20230614211516.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614212057.scss +265 -0
- package/.history/packages/question-drawer/src/index_20230614212140.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614212146.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614212158.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614212613.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614212615.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614212841.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614212939.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614213141.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614213255.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614213349.scss +265 -0
- package/.history/packages/question-drawer/src/index_20230614213350.scss +265 -0
- package/.history/packages/question-drawer/src/index_20230614213400.scss +265 -0
- package/.history/packages/question-drawer/src/index_20230614213401.scss +270 -0
- package/.history/packages/question-drawer/src/index_20230614213431.scss +265 -0
- package/.history/packages/question-drawer/src/index_20230615100944.vue +1730 -0
- package/.history/packages/question-drawer/src/index_20230615100946.vue +1730 -0
- package/.history/packages/question-drawer/src/index_20230615100952.vue +1730 -0
- package/.history/packages/question-drawer/src/index_20230615100957.vue +1730 -0
- package/.history/packages/question-drawer/src/index_20230615104839.vue +1730 -0
- package/.history/packages/tabs/src/index_20230607165331.scss +60 -0
- package/.history/packages/tabs/src/index_20230614211226.scss +60 -0
- package/.history/packages/tabs/src/index_20230614211227.scss +61 -0
- package/.history/packages/tabs/src/index_20230614211253.scss +65 -0
- package/.history/packages/tabs/src/index_20230614211332.scss +60 -0
- package/.history/packages/wrong-detail/src/index_20230607221202.vue +570 -0
- package/.history/packages/wrong-detail/src/index_20230613120416.vue +570 -0
- package/.history/packages/wrong-detail/src/index_20230613120418.vue +569 -0
- package/.history/packages/wrong-detail/src/index_20230613120738.vue +568 -0
- package/.history/packages/wrong-detail/src/index_20230613120800.vue +568 -0
- package/.history/packages/wrong-detail/src/index_20230613120803.vue +568 -0
- package/.history/packages/wrong-detail/src/index_20230613120825.vue +568 -0
- package/.history/packages/wrong-detail/src/index_20230613120834.vue +569 -0
- package/.history/packages/wrong-detail/src/index_20230613121246.vue +568 -0
- package/.history/packages/wrong-detail/src/index_20230613155421.vue +574 -0
- package/.history/packages/wrong-detail/src/index_20230613155423.vue +574 -0
- package/.history/packages/wrong-detail/src/index_20230613155426.vue +574 -0
- package/.history/packages/wrong-drawer/src/index_20230607213124.vue +450 -0
- package/.history/packages/wrong-drawer/src/index_20230613104307.vue +450 -0
- package/.history/packages/wrong-drawer/src/index_20230613104315.vue +451 -0
- package/.history/packages/wrong-drawer/src/index_20230613104317.vue +451 -0
- package/.history/packages/wrong-drawer/src/index_20230613104334.vue +451 -0
- package/.history/packages/wrong-drawer/src/index_20230613104403.vue +450 -0
- package/.history/packages/wrong-drawer/src/index_20230613104405.vue +449 -0
- package/.history/packages/wrong-drawer/src/index_20230613104621.vue +458 -0
- package/.history/packages/wrong-drawer/src/index_20230613104626.vue +459 -0
- package/.history/packages/wrong-drawer/src/index_20230613104629.vue +457 -0
- package/.history/packages/wrong-drawer/src/index_20230613104630.vue +457 -0
- package/.history/packages/wrong-drawer/src/index_20230613104747.vue +464 -0
- package/.history/packages/wrong-drawer/src/index_20230613104749.vue +464 -0
- package/.history/packages/wrong-drawer/src/index_20230613104753.vue +464 -0
- package/.history/packages/wrong-drawer/src/index_20230613111237.vue +464 -0
- package/.history/packages/wrong-drawer/src/index_20230613111314.vue +464 -0
- package/.history/packages/wrong-drawer/src/index_20230613114319.vue +464 -0
- package/.history/packages/wrong-drawer/src/index_20230613114322.vue +464 -0
- package/.history/packages/wrong-drawer/src/index_20230613114901.vue +463 -0
- package/.history/packages/wrong-drawer/src/index_20230613114903.vue +462 -0
- package/.history/packages/wrong-drawer/src/index_20230613114904.vue +462 -0
- package/.history/packages/wrong-drawer/src/index_20230613114909.vue +462 -0
- package/.history/packages/wrong-drawer/src/index_20230613114936.vue +463 -0
- package/.history/packages/wrong-drawer/src/index_20230613114940.vue +463 -0
- package/.history/packages/wrong-drawer/src/index_20230613114942.vue +463 -0
- package/.history/packages/wrong-drawer/src/index_20230613115348.vue +487 -0
- package/.history/packages/wrong-drawer/src/index_20230613115352.vue +487 -0
- package/.history/packages/wrong-drawer/src/index_20230613115356.vue +487 -0
- package/.history/packages/wrong-drawer/src/index_20230613115408.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613115411.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613115414.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613144213.vue +499 -0
- package/.history/packages/wrong-drawer/src/index_20230613144215.vue +498 -0
- package/.history/packages/wrong-drawer/src/index_20230613144218.vue +497 -0
- package/.history/packages/wrong-drawer/src/index_20230613144223.vue +497 -0
- package/.history/packages/wrong-drawer/src/index_20230613144225.vue +497 -0
- package/.history/packages/wrong-drawer/src/index_20230613144229.vue +498 -0
- package/.history/packages/wrong-drawer/src/index_20230613144232.vue +498 -0
- package/.history/packages/wrong-drawer/src/index_20230613144316.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613144345.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613144346.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613145546.vue +498 -0
- package/.history/packages/wrong-drawer/src/index_20230613145548.vue +501 -0
- package/.history/packages/wrong-drawer/src/index_20230613145550.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613145602.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613145611.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613145625.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613145634.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613150805.vue +500 -0
- package/.history/packages/wrong-drawer/src/index_20230613150806.vue +501 -0
- package/.history/packages/wrong-drawer/src/index_20230613150809.vue +501 -0
- package/.history/packages/wrong-drawer/src/index_20230613150810.vue +501 -0
- package/README.md +14 -0
- package/api/index.js +388 -0
- package/dist/@focus-teach/ui.common.js +93058 -0
- package/dist/@focus-teach/ui.css +1 -0
- package/dist/@focus-teach/ui.umd.js +93068 -0
- package/dist/@focus-teach/ui.umd.min.js +25 -0
- package/dist/demo.html +10 -0
- package/dist/fonts/icomoon.356dc15f.woff +0 -0
- package/dist/fonts/icomoon.71d64f31.woff +0 -0
- package/dist/fonts/icomoon.7c9a60d9.eot +0 -0
- package/dist/fonts/icomoon.ba18ad87.eot +0 -0
- package/dist/fonts/icomoon.de76432e.ttf +0 -0
- package/dist/fonts/icomoon.ec37e716.ttf +0 -0
- package/dist/img/cloud_txt_24.87b9d2ae.svg +1 -0
- package/dist/img/icomoon.428f3063.svg +346 -0
- package/dist/img/icomoon.532b3795.svg +345 -0
- package/dist/img/icon_question.e931b16c.svg +14 -0
- package/mixins/emitter.js +33 -0
- package/package.json +45 -0
- package/postcss.config.js +19 -0
- package/style/icon/Read Me.txt +7 -0
- package/style/icon/demo-files/demo.css +152 -0
- package/style/icon/demo-files/demo.js +30 -0
- package/style/icon/demo.html +4042 -0
- package/style/icon/fonts/icomoon.eot +0 -0
- package/style/icon/fonts/icomoon.svg +346 -0
- package/style/icon/fonts/icomoon.ttf +0 -0
- package/style/icon/fonts/icomoon.woff +0 -0
- package/style/icon/selection.json +1 -0
- package/style/icon/style.css +1191 -0
- package/tests/unit/example.spec.js +13 -0
- package/utils/Constants.js +59 -0
- package/utils/assist.js +100 -0
- package/utils/changNumber.js +26 -0
- package/utils/common.js +109 -0
- package/utils/random_str.js +9 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="wrong-drawer">
|
|
3
|
+
<ft-drawer>
|
|
4
|
+
<div class="screen">
|
|
5
|
+
<ft-radio
|
|
6
|
+
v-show="termList.length"
|
|
7
|
+
label="学期"
|
|
8
|
+
:options="termList"
|
|
9
|
+
:defaultValue="indexParam.termType"
|
|
10
|
+
:props="{
|
|
11
|
+
label: 'label',
|
|
12
|
+
id: 'termType',
|
|
13
|
+
}"
|
|
14
|
+
@radio-click="termClick"
|
|
15
|
+
></ft-radio>
|
|
16
|
+
<ft-radio
|
|
17
|
+
v-show="clazzGradeList.length"
|
|
18
|
+
:label="i18n.banJi"
|
|
19
|
+
:options="clazzGradeList"
|
|
20
|
+
:defaultValue="indexParam.classId"
|
|
21
|
+
:props="{
|
|
22
|
+
label: 'className',
|
|
23
|
+
id: 'classId',
|
|
24
|
+
}"
|
|
25
|
+
@radio-click="classClick"
|
|
26
|
+
></ft-radio>
|
|
27
|
+
<ft-radio
|
|
28
|
+
v-show="errorRateList.length"
|
|
29
|
+
:label="i18n.deFenLv"
|
|
30
|
+
:options="errorRateList"
|
|
31
|
+
:defaultValue="indexParam.errorRate"
|
|
32
|
+
:props="{
|
|
33
|
+
label: 'name',
|
|
34
|
+
id: 'id',
|
|
35
|
+
}"
|
|
36
|
+
@radio-click="rateClick"
|
|
37
|
+
></ft-radio>
|
|
38
|
+
</div>
|
|
39
|
+
<div>
|
|
40
|
+
<ft-tabs
|
|
41
|
+
:options="tabList"
|
|
42
|
+
:activeName="activeTab"
|
|
43
|
+
@click="tabClick"
|
|
44
|
+
type="border-card"
|
|
45
|
+
></ft-tabs>
|
|
46
|
+
<div v-if="chapterList && chapterList.length">
|
|
47
|
+
<el-table
|
|
48
|
+
:key="activeTab"
|
|
49
|
+
:data="chapterList"
|
|
50
|
+
style="width: 100%; margin-bottom: 20px"
|
|
51
|
+
:row-key="
|
|
52
|
+
indexParam.knowledgeSource == 'CHAPTER' ? 'courseId' : 'klId'
|
|
53
|
+
"
|
|
54
|
+
border
|
|
55
|
+
stripe
|
|
56
|
+
:default-expand-all=" indexParam.knowledgeSource == 'CHAPTER' ? true : false "
|
|
57
|
+
:tree-props="{
|
|
58
|
+
children: indexParam.knowledgeSource == 'CHAPTER'
|
|
59
|
+
? 'chapters'
|
|
60
|
+
: 'knowledgeList',
|
|
61
|
+
hasChildren: indexParam.knowledgeSource == 'CHAPTER'
|
|
62
|
+
? 'chapters.length>0'
|
|
63
|
+
: 'knowledgeList.length>0',
|
|
64
|
+
}"
|
|
65
|
+
>
|
|
66
|
+
<el-table-column
|
|
67
|
+
:prop=" indexParam.knowledgeSource == 'CHAPTER'
|
|
68
|
+
? 'courseName'
|
|
69
|
+
: 'klName'
|
|
70
|
+
"
|
|
71
|
+
:label=" indexParam.knowledgeSource == 'CHAPTER'
|
|
72
|
+
? i18n.zhangJie
|
|
73
|
+
: i18n.zhiShiDian
|
|
74
|
+
"
|
|
75
|
+
>
|
|
76
|
+
</el-table-column>
|
|
77
|
+
<el-table-column
|
|
78
|
+
prop="mistakeCount"
|
|
79
|
+
:label="i18n.cuoTiShu"
|
|
80
|
+
width="92"
|
|
81
|
+
>
|
|
82
|
+
</el-table-column>
|
|
83
|
+
<el-table-column :label="i18n.caoZuo" width="88">
|
|
84
|
+
<template slot-scope="scope">
|
|
85
|
+
<div class="check-wrong-detail" @click="clickCell(scope.row)">
|
|
86
|
+
{{ i18n.chaKan }}
|
|
87
|
+
</div>
|
|
88
|
+
</template>
|
|
89
|
+
</el-table-column>
|
|
90
|
+
</el-table>
|
|
91
|
+
</div>
|
|
92
|
+
<ft-empty
|
|
93
|
+
v-show="chapterList.length == 0"
|
|
94
|
+
:message="i18n.zanWuShuJu"
|
|
95
|
+
>
|
|
96
|
+
<img class="empty-img" :src="host +'/assets/prepare-course/list/img/empty.fcdd9ba5.png'" alt="" />
|
|
97
|
+
</ft-empty>
|
|
98
|
+
</div>
|
|
99
|
+
</ft-drawer>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
102
|
+
<script>
|
|
103
|
+
import infiniteScroll from "vue-infinite-scroll";
|
|
104
|
+
import {
|
|
105
|
+
Loading,
|
|
106
|
+
Tabs,
|
|
107
|
+
TabPane,
|
|
108
|
+
Table,
|
|
109
|
+
TableColumn,
|
|
110
|
+
Tooltip,
|
|
111
|
+
} from "element-ui";
|
|
112
|
+
import {
|
|
113
|
+
getUserOperate,
|
|
114
|
+
getMistakeIndex,
|
|
115
|
+
getMistakeData,
|
|
116
|
+
} from "../../../api/index";
|
|
117
|
+
|
|
118
|
+
export default {
|
|
119
|
+
name: "FtWrongDrawer",
|
|
120
|
+
// import引入的组件需要注入到对象中才能使用
|
|
121
|
+
components: {
|
|
122
|
+
[Loading.name]: Loading,
|
|
123
|
+
[Tabs.name]: Tabs,
|
|
124
|
+
[TabPane.name]: TabPane,
|
|
125
|
+
[Table.name]: Table,
|
|
126
|
+
[TableColumn.name]: TableColumn,
|
|
127
|
+
[Tooltip.name]: Tooltip,
|
|
128
|
+
},
|
|
129
|
+
directives: { infiniteScroll },
|
|
130
|
+
props:{
|
|
131
|
+
leftInfo:{
|
|
132
|
+
type: Object
|
|
133
|
+
},
|
|
134
|
+
i18n:{
|
|
135
|
+
type: Object
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
data() {
|
|
139
|
+
// 这里存放数据
|
|
140
|
+
return {
|
|
141
|
+
host: window.location.origin,
|
|
142
|
+
activeTab: "RESOURCE",
|
|
143
|
+
tabList: [
|
|
144
|
+
{ name: "RESOURCE", label: this.i18n.anShiJuan},
|
|
145
|
+
{ id: "CHAPTER", label: this.i18n.anZhangJie },
|
|
146
|
+
{ id: "KNOWLEDGE", label: this.i18n.anZhiShiDian },
|
|
147
|
+
],
|
|
148
|
+
//首次请求
|
|
149
|
+
isLoading: true,
|
|
150
|
+
//是否正在加载题目数据
|
|
151
|
+
loadingBankData: false,
|
|
152
|
+
//加载题目数据是否失败
|
|
153
|
+
loadingError: false,
|
|
154
|
+
//数据集合
|
|
155
|
+
chapterList: [],
|
|
156
|
+
//班级列表
|
|
157
|
+
clazzGradeList: [],
|
|
158
|
+
//错误率列表
|
|
159
|
+
errorRateList: [],
|
|
160
|
+
termList: [], //学期列表
|
|
161
|
+
//index接口请求参数
|
|
162
|
+
defaultIndexParam: {
|
|
163
|
+
subjectId: "", //科目id
|
|
164
|
+
gradeId: "", //年级id
|
|
165
|
+
classId: "", //班级id
|
|
166
|
+
errorRate: 0, //错误率id,默认全部
|
|
167
|
+
knowledgeSource: "RESOURCE", //当前错题集查询类型,默认为 CHAPTER
|
|
168
|
+
// order: 0, //排序,0:更新时间倒序,1:更新时间正序
|
|
169
|
+
// orderQuote: 0, //排序,0:使用次数倒序,1:使用次数正序
|
|
170
|
+
},
|
|
171
|
+
//index接口请求参数
|
|
172
|
+
indexParam: {},
|
|
173
|
+
isFirstIndex: true, //首次加载该题库
|
|
174
|
+
//按试卷开始时间
|
|
175
|
+
paperStartTime: "",
|
|
176
|
+
//按试卷结束时间
|
|
177
|
+
paperEndTime: "",
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
//监控data中的数据变化
|
|
181
|
+
watch: {
|
|
182
|
+
"$store.state.resourceInfo": function (n, o) {
|
|
183
|
+
if (this.isFirstIndex) {
|
|
184
|
+
this.isFirstIndex = false;
|
|
185
|
+
this.requestMistakeIndexData();
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
tabClick(value) {
|
|
191
|
+
this.activeTab = value
|
|
192
|
+
//处理indexParam
|
|
193
|
+
this.indexParam.knowledgeSource = value;
|
|
194
|
+
this.requestBankData();
|
|
195
|
+
},
|
|
196
|
+
termClick(termType, item) {
|
|
197
|
+
console.log('termClick', termType, item)
|
|
198
|
+
let dic = {
|
|
199
|
+
termType: item.termType,
|
|
200
|
+
termBeginTime: item.termBeginTime || "",
|
|
201
|
+
termEndTime: item.termEndTime || "",
|
|
202
|
+
};
|
|
203
|
+
this.$emit(
|
|
204
|
+
"changeMistakeIndexParam",
|
|
205
|
+
"selectedTermType",
|
|
206
|
+
JSON.stringify(dic)
|
|
207
|
+
);
|
|
208
|
+
},
|
|
209
|
+
classClick(classId) {
|
|
210
|
+
let dic = { classId: classId };
|
|
211
|
+
this.$emit(
|
|
212
|
+
"changeMistakeIndexParam",
|
|
213
|
+
"selectedClazz",
|
|
214
|
+
JSON.stringify(dic)
|
|
215
|
+
);
|
|
216
|
+
},
|
|
217
|
+
rateClick(id) {
|
|
218
|
+
let dic = { errorRate: id };
|
|
219
|
+
this.$emit(
|
|
220
|
+
"changeMistakeIndexParam",
|
|
221
|
+
"selectedRate",
|
|
222
|
+
JSON.stringify(dic)
|
|
223
|
+
);
|
|
224
|
+
},
|
|
225
|
+
formatter(data) {
|
|
226
|
+
console.log("formater", data);
|
|
227
|
+
data.klName = data.klName.replace(/&/g, "&");
|
|
228
|
+
console.log(data.klName);
|
|
229
|
+
return data.klName;
|
|
230
|
+
},
|
|
231
|
+
//
|
|
232
|
+
setListener() {
|
|
233
|
+
let _this = this;
|
|
234
|
+
//改变indexParam参数,重新请求index接口
|
|
235
|
+
this.$off("changeMistakeIndexParam"); //避免重复响应同一事件
|
|
236
|
+
this.$on("changeMistakeIndexParam", function (action, msg) {
|
|
237
|
+
console.log("action is...", msg);
|
|
238
|
+
if (action == "retryRequest") {
|
|
239
|
+
//加载失败后的重新请求 || 删除题目后刷新题目数据
|
|
240
|
+
_this.requestBankData();
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
let dic = JSON.parse(msg);
|
|
244
|
+
for (let key in dic) {
|
|
245
|
+
let value = dic[key];
|
|
246
|
+
_this.indexParam[key] = value;
|
|
247
|
+
}
|
|
248
|
+
//请求题目数据
|
|
249
|
+
_this.requestBankData();
|
|
250
|
+
});
|
|
251
|
+
},
|
|
252
|
+
//切换tab
|
|
253
|
+
clickResourceTab() {
|
|
254
|
+
let _this = this;
|
|
255
|
+
//处理indexParam
|
|
256
|
+
_this.indexParam.knowledgeSource = _this.activeTab;
|
|
257
|
+
_this.requestBankData();
|
|
258
|
+
},
|
|
259
|
+
/*
|
|
260
|
+
**请求题库首页数据
|
|
261
|
+
* 只在首次进入该页面时请求
|
|
262
|
+
*/
|
|
263
|
+
requestMistakeIndexData() {
|
|
264
|
+
let _this = this;
|
|
265
|
+
_this.loadingError = false;
|
|
266
|
+
_this.goRequestMistakeIndexData();
|
|
267
|
+
},
|
|
268
|
+
//首次进入该页面时请求获取用户信息
|
|
269
|
+
goRequestMistakeIndexData() {
|
|
270
|
+
let _this = this;
|
|
271
|
+
var prepareInfo = this.leftInfo;
|
|
272
|
+
if (prepareInfo && prepareInfo.subjectId) {
|
|
273
|
+
var subjectId = prepareInfo.subjectId;
|
|
274
|
+
_this.indexParam["subjectId"] = subjectId;
|
|
275
|
+
let dom = document.getElementById("wrong-drawer-slot-id");
|
|
276
|
+
let loadingInstance = Loading.service({
|
|
277
|
+
target: dom,
|
|
278
|
+
text: _this.i18n.jiaZaiZhong,
|
|
279
|
+
});
|
|
280
|
+
getMistakeIndex(
|
|
281
|
+
{
|
|
282
|
+
subjectId: subjectId,
|
|
283
|
+
},
|
|
284
|
+
(res) => {
|
|
285
|
+
this.$nextTick(() => {
|
|
286
|
+
// 以服务的方式调用的 Loading 需要异步关闭
|
|
287
|
+
loadingInstance.close();
|
|
288
|
+
});
|
|
289
|
+
_this.isLoading = false;
|
|
290
|
+
if (typeof res === "string") res = JSON.parse(res);
|
|
291
|
+
if (res && res.code == 0) {
|
|
292
|
+
//取班级数组
|
|
293
|
+
_this.clazzGradeList = res.value.clazzGradeList;
|
|
294
|
+
//首次默认取第一个班级数据
|
|
295
|
+
if (_this.indexParam.classId.length == 0) {
|
|
296
|
+
_this.indexParam.classId =
|
|
297
|
+
(_this.clazzGradeList.length &&
|
|
298
|
+
_this.clazzGradeList[0].classId) ||
|
|
299
|
+
"";
|
|
300
|
+
_this.indexParam.gradeId =
|
|
301
|
+
(_this.clazzGradeList.length &&
|
|
302
|
+
_this.clazzGradeList[0].gradeId) ||
|
|
303
|
+
"";
|
|
304
|
+
}
|
|
305
|
+
//取错误率数组
|
|
306
|
+
_this.errorRateList = res.value.errorRateList;
|
|
307
|
+
_this.termList = res.value.termList?res.value.termList:[]; //学期列表
|
|
308
|
+
_this.setPaperTime();//按试卷查看需要获取学期的开始和结束时间
|
|
309
|
+
_this.termList.forEach((item) => {
|
|
310
|
+
item.label = item.termType == "-1"
|
|
311
|
+
? "全部"
|
|
312
|
+
: item.termType == "1"
|
|
313
|
+
? "第一学期"
|
|
314
|
+
: item.termType == "2"
|
|
315
|
+
? "第二学期"
|
|
316
|
+
: "";
|
|
317
|
+
});
|
|
318
|
+
let curTerm = this.termList.filter((item) => item.checked)[0] || {}; //当前学期
|
|
319
|
+
_this.indexParam.termType = curTerm.termType;
|
|
320
|
+
_this.indexParam.termBeginTime = curTerm.termBeginTime;
|
|
321
|
+
_this.indexParam.termEndTime = curTerm.termEndTime;
|
|
322
|
+
//处理indexParam
|
|
323
|
+
_this.indexParam.subjectId = subjectId;
|
|
324
|
+
_this.requestBankData();
|
|
325
|
+
} else {
|
|
326
|
+
_this.loadingError = true;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
//按试卷查看,学期选择全部的时候,需要开始时间和结束时间
|
|
333
|
+
setPaperTime(){
|
|
334
|
+
if(this.termList && this.termList.length > 0){
|
|
335
|
+
this.termList.forEach(item => {
|
|
336
|
+
if(item.termType == 1){
|
|
337
|
+
this.paperStartTime = item.termBeginTime;
|
|
338
|
+
}else if(item.termType == 2){
|
|
339
|
+
this.paperEndTime = item.termEndTime;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
/*
|
|
345
|
+
**请求题库数据
|
|
346
|
+
* 筛选条件时请求
|
|
347
|
+
*/
|
|
348
|
+
requestBankData() {
|
|
349
|
+
let _this = this;
|
|
350
|
+
let dom = document.getElementById("wrong-drawer-slot-id");
|
|
351
|
+
let loadingInstance = Loading.service({
|
|
352
|
+
target: dom,
|
|
353
|
+
text: _this.i18n.jiaZaiZhong,
|
|
354
|
+
});
|
|
355
|
+
_this.loadingError = false;
|
|
356
|
+
_this.loadingBankData = true;
|
|
357
|
+
const { teachMaterialId = ""} = this.leftInfo;
|
|
358
|
+
_this.indexParam.teachMaterialId = teachMaterialId;
|
|
359
|
+
if(_this.indexParam.termType == -1){//如果是整个学期
|
|
360
|
+
if(_this.indexParam.knowledgeSource == 'RESOURCE'){//如果是按试卷
|
|
361
|
+
_this.indexParam.termBeginTime = _this.paperStartTime
|
|
362
|
+
_this.indexParam.termEndTime = _this.paperEndTime
|
|
363
|
+
}else{//如果不是按试卷
|
|
364
|
+
_this.indexParam.termBeginTime = ""
|
|
365
|
+
_this.indexParam.termEndTime = ""
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
getMistakeData(_this.indexParam, (res) => {
|
|
369
|
+
_this.$nextTick(() => {
|
|
370
|
+
// 以服务的方式调用的 Loading 需要异步关闭
|
|
371
|
+
loadingInstance.close();
|
|
372
|
+
});
|
|
373
|
+
_this.loadingBankData = false;
|
|
374
|
+
if (typeof res === "string") res = JSON.parse(res);
|
|
375
|
+
if (res && res.code == 0) {
|
|
376
|
+
//取出题目数据
|
|
377
|
+
_this.loadingError = false;
|
|
378
|
+
var tempChapterList = res.value.chapterList;
|
|
379
|
+
tempChapterList = JSON.parse(
|
|
380
|
+
JSON.stringify(tempChapterList).replace(/&/g, "&")
|
|
381
|
+
);
|
|
382
|
+
if (_this.indexParam.knowledgeSource == "CHAPTER") {
|
|
383
|
+
for (let index = 0; index < tempChapterList.length; index++) {
|
|
384
|
+
const element = tempChapterList[index];
|
|
385
|
+
element["courseId"] = "temp" + index;
|
|
386
|
+
element["courseName"] =
|
|
387
|
+
element.teachMaterialName + " " + element.classificationName;
|
|
388
|
+
element["mistakeCount"] = element.misCount;
|
|
389
|
+
if (
|
|
390
|
+
element.enTeachMaterialId &&
|
|
391
|
+
element.chapters &&
|
|
392
|
+
element.chapters.length > 0
|
|
393
|
+
) {
|
|
394
|
+
//递归将chapters里面的item都赋上 enTeachMaterialId
|
|
395
|
+
_this.addTeachMaterialIdForData(
|
|
396
|
+
element.chapters,
|
|
397
|
+
element.enTeachMaterialId
|
|
398
|
+
);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
_this.chapterList = tempChapterList;
|
|
403
|
+
} else {
|
|
404
|
+
//请求题目数据报错
|
|
405
|
+
_this.loadingError = true;
|
|
406
|
+
_this.chapterList = [];
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
},
|
|
410
|
+
//为子元素添加 enTeachMaterialId
|
|
411
|
+
addTeachMaterialIdForData(arr, currentTeachMaterialId) {
|
|
412
|
+
for (let index = 0; index < arr.length; index++) {
|
|
413
|
+
const element = arr[index];
|
|
414
|
+
element["enTeachMaterialId"] = currentTeachMaterialId;
|
|
415
|
+
if (element.chapters && element.chapters.length > 0) {
|
|
416
|
+
this.addTeachMaterialIdForData(
|
|
417
|
+
element.chapters,
|
|
418
|
+
currentTeachMaterialId
|
|
419
|
+
);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
//点击查看按钮
|
|
424
|
+
clickCell(row) {
|
|
425
|
+
console.log("clickCell---", row);
|
|
426
|
+
let dic = {
|
|
427
|
+
activeIndex: 2,
|
|
428
|
+
currentIndexParam: this.indexParam,
|
|
429
|
+
currentSearchItem: row,
|
|
430
|
+
};
|
|
431
|
+
this.$emit("eventbus-emit", "changeDrawerType","changeDrawerType",JSON.stringify(dic))
|
|
432
|
+
},
|
|
433
|
+
},
|
|
434
|
+
computed: {},
|
|
435
|
+
created() {
|
|
436
|
+
let _this = this;
|
|
437
|
+
_this.indexParam = _this.defaultIndexParam;
|
|
438
|
+
},
|
|
439
|
+
mounted() {
|
|
440
|
+
let _this = this;
|
|
441
|
+
if (!this.host.includes("teach.focusteach.com")) {
|
|
442
|
+
this.host = "http://teach.focusteach.com:8085"
|
|
443
|
+
}
|
|
444
|
+
_this.setListener();
|
|
445
|
+
_this.requestMistakeIndexData();
|
|
446
|
+
},
|
|
447
|
+
};
|
|
448
|
+
</script>
|
|
449
|
+
<style scoped lang="scss">
|
|
450
|
+
@import "./index.scss";
|
|
451
|
+
</style>
|