zydx-plus 1.15.61 → 1.15.62
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/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
selectBtnIndex: 选中按钮标识
|
|
10
10
|
catalogList: 目录集合。 需要带 children
|
|
11
11
|
headerType: 0动作或者1资源或者2学生端
|
|
12
|
-
* @回调事件:clickRightBtn: 按钮点击事件 回参有
|
|
12
|
+
* @回调事件:clickRightBtn: 按钮点击事件 回参有 选中节点,选中标识,选中按钮的名字,当前点击节点结合
|
|
13
13
|
* @组件内方法:
|
|
14
14
|
*/
|
|
15
15
|
<template>
|
|
@@ -21,24 +21,24 @@
|
|
|
21
21
|
<template v-for="(buttonInfo, buttonIndex) in initConfig(item).buttonList[tabType]">
|
|
22
22
|
<template v-if="buttonInfo instanceof Object">
|
|
23
23
|
<!-- 我是在课级节点上渲染的 -->
|
|
24
|
-
<button class="z-button" :class="childButtonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="item.level === 0 && (buttonIndex === 'prefixLevel0btn' || buttonIndex === 'suffixLevel0btn')" v-for="(childButtonInfo, childButtonIndex) in buttonInfo" @click="clickRightBtn(item, childButtonIndex)">
|
|
24
|
+
<button class="z-button" :class="childButtonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="item.level === 0 && (buttonIndex === 'prefixLevel0btn' || buttonIndex === 'suffixLevel0btn')" v-for="(childButtonInfo, childButtonIndex) in buttonInfo" @click="clickRightBtn(item, childButtonIndex, childButtonInfo)">
|
|
25
25
|
{{childButtonInfo}}
|
|
26
26
|
</button>
|
|
27
27
|
<!-- 我是在最低节点渲染的 -->
|
|
28
|
-
<button class="z-button" :class="childButtonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="item.level !== 0 && item.children && item.children.length !== 0 && buttonIndex === 'otherThanLevel0'" v-for="(childButtonInfo, childButtonIndex) in buttonInfo" @click="clickRightBtn(item, childButtonIndex)">
|
|
28
|
+
<button class="z-button" :class="childButtonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="item.level !== 0 && item.children && item.children.length !== 0 && buttonIndex === 'otherThanLevel0'" v-for="(childButtonInfo, childButtonIndex) in buttonInfo" @click="clickRightBtn(item, childButtonIndex, childButtonInfo)">
|
|
29
29
|
{{childButtonInfo}}
|
|
30
30
|
</button>
|
|
31
31
|
<!-- 除课级标题以外的 -->
|
|
32
|
-
<button class="z-button" :class="childButtonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="item.level !== 0 && buttonIndex === 'levelOtherBtn'" v-for="(childButtonInfo, childButtonIndex) in buttonInfo" @click="clickRightBtn(item, childButtonIndex)">
|
|
32
|
+
<button class="z-button" :class="childButtonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="item.level !== 0 && buttonIndex === 'levelOtherBtn'" v-for="(childButtonInfo, childButtonIndex) in buttonInfo" @click="clickRightBtn(item, childButtonIndex, childButtonInfo)">
|
|
33
33
|
{{childButtonInfo}}
|
|
34
34
|
</button>
|
|
35
35
|
<!-- 单独在最低节点设置的按钮 -->
|
|
36
|
-
<button class="z-button" :class="childButtonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="item.level !== 0 && (!item.children || item.children.length === 0) && buttonIndex === 'lowLevel'" v-for="(childButtonInfo, childButtonIndex) in buttonInfo" @click="clickRightBtn(item, childButtonIndex)">
|
|
36
|
+
<button class="z-button" :class="childButtonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="item.level !== 0 && (!item.children || item.children.length === 0) && buttonIndex === 'lowLevel'" v-for="(childButtonInfo, childButtonIndex) in buttonInfo" @click="clickRightBtn(item, childButtonIndex, childButtonInfo)">
|
|
37
37
|
{{childButtonInfo}}
|
|
38
38
|
</button>
|
|
39
39
|
</template>
|
|
40
40
|
<template v-else-if="buttonInfo != null && buttonInfo.constructor === String">
|
|
41
|
-
<button class="z-button" :class="buttonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="buttonIndex !== 'level0btn' && buttonInfo != null" @click="clickRightBtn(item, buttonIndex)">
|
|
41
|
+
<button class="z-button" :class="buttonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active' : ''" v-if="buttonIndex !== 'level0btn' && buttonInfo != null" @click="clickRightBtn(item, buttonIndex, buttonInfo)">
|
|
42
42
|
{{buttonInfo}}
|
|
43
43
|
</button>
|
|
44
44
|
</template>
|
|
@@ -97,7 +97,8 @@ export default {
|
|
|
97
97
|
},
|
|
98
98
|
data() {
|
|
99
99
|
return {
|
|
100
|
-
nodeList: []
|
|
100
|
+
nodeList: [],
|
|
101
|
+
buttonInfo: {}
|
|
101
102
|
}
|
|
102
103
|
},
|
|
103
104
|
computed: {
|
|
@@ -109,7 +110,9 @@ export default {
|
|
|
109
110
|
} else {
|
|
110
111
|
buttonIndex = 'btnIndex1';
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
+
// 获取按钮名称
|
|
114
|
+
this.queryKey(this.initConfig(this.selectItem).buttonList[this.tabType])
|
|
115
|
+
this.clickRightBtn(this.selectItem, buttonIndex, this.buttonInfo[buttonIndex]);
|
|
113
116
|
return buttonIndex;
|
|
114
117
|
} else {
|
|
115
118
|
return this.selectBtnIndex;
|
|
@@ -160,8 +163,19 @@ export default {
|
|
|
160
163
|
})
|
|
161
164
|
return node
|
|
162
165
|
},
|
|
163
|
-
clickRightBtn (selectItem, selectBtnIndex) {
|
|
164
|
-
this.$emit('clickRightBtn', {selectItem, selectBtnIndex, 'nodeList': this.nodeList})
|
|
166
|
+
clickRightBtn (selectItem, selectBtnIndex, selectBtnName) {
|
|
167
|
+
this.$emit('clickRightBtn', {selectItem, selectBtnIndex, selectBtnName, 'nodeList': this.nodeList})
|
|
168
|
+
},
|
|
169
|
+
// 通过递归获取对象所有key
|
|
170
|
+
queryKey(obj) {
|
|
171
|
+
for(let key in obj){
|
|
172
|
+
// 判断子节点是否为对象,是的话则递归,最后为键值对而不是对象则跳出
|
|
173
|
+
if(obj[key] instanceof Object){
|
|
174
|
+
this.queryKey(obj[key])
|
|
175
|
+
} else {
|
|
176
|
+
this.buttonInfo = {...this.buttonInfo,...obj}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
165
179
|
}
|
|
166
180
|
},
|
|
167
181
|
components: {zydxTopicDry}
|
|
@@ -197,4 +211,10 @@ export default {
|
|
|
197
211
|
.active{
|
|
198
212
|
color: rgba(0, 204, 126, 1) !important;
|
|
199
213
|
}
|
|
214
|
+
.padding0_10 {
|
|
215
|
+
padding: 0px 10px;
|
|
216
|
+
}
|
|
217
|
+
.fontSize16 {
|
|
218
|
+
font-size: 16px;
|
|
219
|
+
}
|
|
200
220
|
</style>
|
|
@@ -21,7 +21,6 @@ let buttonNames = {
|
|
|
21
21
|
demand: '考勤要求'
|
|
22
22
|
},
|
|
23
23
|
btnIndex1: this.getCurrentPrefix(item) + '考勤',
|
|
24
|
-
btnIndex2: null,
|
|
25
24
|
score: '考勤成绩',
|
|
26
25
|
analysis: '统计分析',
|
|
27
26
|
power: '学习动力'
|
|
@@ -46,10 +45,7 @@ let buttonNames = {
|
|
|
46
45
|
demand: '调查要求'
|
|
47
46
|
},
|
|
48
47
|
btnIndex1: this.getCurrentPrefix(item) + '试题',
|
|
49
|
-
btnIndex2: this.getCurrentPrefix(item) + '调查'
|
|
50
|
-
score: null,
|
|
51
|
-
analysis: null,
|
|
52
|
-
power: null
|
|
48
|
+
btnIndex2: this.getCurrentPrefix(item) + '调查'
|
|
53
49
|
},
|
|
54
50
|
2: {
|
|
55
51
|
prefixLevel0btn: {
|
|
@@ -122,7 +118,6 @@ let buttonNames = {
|
|
|
122
118
|
demand: '笔记要求'
|
|
123
119
|
},
|
|
124
120
|
btnIndex1: this.getCurrentPrefix(item) + "笔记",
|
|
125
|
-
btnIndex2: null,
|
|
126
121
|
score: '笔记成绩',
|
|
127
122
|
analysis: '统计分析',
|
|
128
123
|
power: '学习动力'
|
|
@@ -197,7 +192,6 @@ let buttonNames = {
|
|
|
197
192
|
demand: '问答要求'
|
|
198
193
|
},
|
|
199
194
|
btnIndex1: this.getCurrentPrefix(item) + '问答',
|
|
200
|
-
btnIndex2: null,
|
|
201
195
|
score: '问答成绩',
|
|
202
196
|
analysis: '统计分析',
|
|
203
197
|
power: '学习动力'
|
|
@@ -347,7 +341,6 @@ let buttonNames = {
|
|
|
347
341
|
demand: '讲解要求'
|
|
348
342
|
},
|
|
349
343
|
btnIndex1: this.getCurrentPrefix(item) + '讲解',
|
|
350
|
-
btnIndex2:null,
|
|
351
344
|
score: '讲解成绩',
|
|
352
345
|
analysis: '统计分析',
|
|
353
346
|
power: '学习动力'
|
|
@@ -422,7 +415,6 @@ let buttonNames = {
|
|
|
422
415
|
demand: '阅读要求'
|
|
423
416
|
},
|
|
424
417
|
btnIndex1: this.getCurrentPrefix(item) + '阅读',
|
|
425
|
-
btnIndex2: null,
|
|
426
418
|
score: '阅读成绩',
|
|
427
419
|
analysis: '统计分析',
|
|
428
420
|
power: '学习动力'
|
|
@@ -447,7 +439,6 @@ let buttonNames = {
|
|
|
447
439
|
demand: '写作要求'
|
|
448
440
|
},
|
|
449
441
|
btnIndex1: this.getCurrentPrefix(item) + '写作',
|
|
450
|
-
btnIndex2: null,
|
|
451
442
|
score: '写作成绩',
|
|
452
443
|
analysis: '统计分析',
|
|
453
444
|
power: '学习动力'
|
|
@@ -518,14 +509,8 @@ let buttonNames = {
|
|
|
518
509
|
actionName: '过程记录',
|
|
519
510
|
buttonList: {
|
|
520
511
|
0: {
|
|
521
|
-
prefixLevel0btn: {
|
|
522
|
-
demand: null,
|
|
523
|
-
},
|
|
524
512
|
btnIndex1: '全班数据',
|
|
525
|
-
btnIndex2: '个人数据'
|
|
526
|
-
score: null,
|
|
527
|
-
analysis: null,
|
|
528
|
-
power: null
|
|
513
|
+
btnIndex2: '个人数据'
|
|
529
514
|
},
|
|
530
515
|
2: {}
|
|
531
516
|
}
|
|
@@ -534,16 +519,10 @@ let buttonNames = {
|
|
|
534
519
|
actionName: '考试管理',
|
|
535
520
|
buttonList: {
|
|
536
521
|
0: {
|
|
537
|
-
prefixLevel0btn: {
|
|
538
|
-
demand: null,
|
|
539
|
-
},
|
|
540
522
|
btnIndex1: '题库资源',
|
|
541
523
|
btnIndex2: '过程考试',
|
|
542
524
|
btnIndex3: '期中考试',
|
|
543
|
-
btnIndex4: '期末考试'
|
|
544
|
-
score: null,
|
|
545
|
-
analysis: null,
|
|
546
|
-
power: null
|
|
525
|
+
btnIndex4: '期末考试'
|
|
547
526
|
},
|
|
548
527
|
2: {
|
|
549
528
|
prefixLevel0btn: {
|
|
@@ -567,7 +546,6 @@ let buttonNames = {
|
|
|
567
546
|
demand: '表现要求'
|
|
568
547
|
},
|
|
569
548
|
btnIndex1: '表现评价',
|
|
570
|
-
btnIndex2: null,
|
|
571
549
|
score: '创新成绩',
|
|
572
550
|
analysis: '统计分析',
|
|
573
551
|
power: '学习动力'
|
|
@@ -592,10 +570,7 @@ let buttonNames = {
|
|
|
592
570
|
demand: '动力要求'
|
|
593
571
|
},
|
|
594
572
|
btnIndex1: '学习动力',
|
|
595
|
-
|
|
596
|
-
score: null,
|
|
597
|
-
analysis: '统计分析',
|
|
598
|
-
power: null
|
|
573
|
+
analysis: '统计分析'
|
|
599
574
|
},
|
|
600
575
|
2: {
|
|
601
576
|
prefixLevel0btn: {
|
|
@@ -669,10 +644,10 @@ let buttonNames = {
|
|
|
669
644
|
0: {
|
|
670
645
|
prefixLevel0btn: { // 只存在课上
|
|
671
646
|
demand: '调查要求',
|
|
672
|
-
|
|
647
|
+
btnIndex2: '调查试题'
|
|
673
648
|
},
|
|
674
649
|
levelOtherBtn: { // 除课和最低节点以外
|
|
675
|
-
|
|
650
|
+
btnIndex1: this.getCurrentPrefix(item) + '试题',
|
|
676
651
|
},
|
|
677
652
|
otherThanLevel0: { // 除课以外
|
|
678
653
|
btnIndex3: this.getPrefix(item) + '试题',
|
|
@@ -690,10 +665,10 @@ let buttonNames = {
|
|
|
690
665
|
0: {
|
|
691
666
|
prefixLevel0btn: { // 只存在课上
|
|
692
667
|
demand: '检测要求',
|
|
693
|
-
|
|
668
|
+
btnIndex2: '检测试题'
|
|
694
669
|
},
|
|
695
670
|
levelOtherBtn: { // 除课和最低节点以外
|
|
696
|
-
|
|
671
|
+
btnIndex1: this.getCurrentPrefix(item) + '试题',
|
|
697
672
|
},
|
|
698
673
|
otherThanLevel0: { // 除课以外
|
|
699
674
|
btnIndex3: this.getPrefix(item) + '试题',
|
|
@@ -711,10 +686,10 @@ let buttonNames = {
|
|
|
711
686
|
0: {
|
|
712
687
|
prefixLevel0btn: { // 只存在课上
|
|
713
688
|
demand: '检测要求',
|
|
714
|
-
|
|
689
|
+
btnIndex2: '思政主题'
|
|
715
690
|
},
|
|
716
691
|
levelOtherBtn: { // 除课和最低节点以外
|
|
717
|
-
|
|
692
|
+
btnIndex1: this.getCurrentPrefix(item) + '主题',
|
|
718
693
|
},
|
|
719
694
|
otherThanLevel0: { // 除课以外
|
|
720
695
|
btnIndex3: this.getPrefix(item) + '主题',
|
|
@@ -748,10 +723,10 @@ let buttonNames = {
|
|
|
748
723
|
0: {
|
|
749
724
|
prefixLevel0btn: { // 只存在课上
|
|
750
725
|
demand: '回答要求',
|
|
751
|
-
|
|
726
|
+
btnIndex2: '提问问题'
|
|
752
727
|
},
|
|
753
728
|
levelOtherBtn: { // 除课和最低节点以外
|
|
754
|
-
|
|
729
|
+
btnIndex1: this.getCurrentPrefix(item) + '提问',
|
|
755
730
|
},
|
|
756
731
|
otherThanLevel0: { // 除课以外
|
|
757
732
|
btnIndex3: this.getPrefix(item) + '问题',
|
|
@@ -770,10 +745,10 @@ let buttonNames = {
|
|
|
770
745
|
0: {
|
|
771
746
|
prefixLevel0btn: { // 只存在课上
|
|
772
747
|
demand: '提问要求',
|
|
773
|
-
|
|
748
|
+
btnIndex2: '虚拟提问'
|
|
774
749
|
},
|
|
775
750
|
levelOtherBtn: { // 除课和最低节点以外
|
|
776
|
-
|
|
751
|
+
btnIndex1: this.getCurrentPrefix(item) + '提问',
|
|
777
752
|
},
|
|
778
753
|
otherThanLevel0: { // 除课以外
|
|
779
754
|
btnIndex3: this.getPrefix(item) + '提问',
|
|
@@ -805,10 +780,10 @@ let buttonNames = {
|
|
|
805
780
|
0: {
|
|
806
781
|
prefixLevel0btn: { // 只存在课上
|
|
807
782
|
demand: '讨论要求',
|
|
808
|
-
|
|
783
|
+
btnIndex2: '讨论题目'
|
|
809
784
|
},
|
|
810
785
|
levelOtherBtn: { // 除课和最低节点以外
|
|
811
|
-
|
|
786
|
+
btnIndex1: this.getCurrentPrefix(item) + '题目',
|
|
812
787
|
},
|
|
813
788
|
otherThanLevel0: { // 除课以外
|
|
814
789
|
btnIndex3: this.getPrefix(item) + '题目',
|
|
@@ -827,10 +802,10 @@ let buttonNames = {
|
|
|
827
802
|
0: {
|
|
828
803
|
prefixLevel0btn: { // 只存在课上
|
|
829
804
|
demand: '风暴要求',
|
|
830
|
-
|
|
805
|
+
btnIndex2: '风暴题目'
|
|
831
806
|
},
|
|
832
807
|
levelOtherBtn: { // 除课和最低节点以外
|
|
833
|
-
|
|
808
|
+
btnIndex1: this.getCurrentPrefix(item) + '题目',
|
|
834
809
|
},
|
|
835
810
|
otherThanLevel0: { // 除课以外
|
|
836
811
|
btnIndex3: this.getPrefix(item) + '题目',
|
|
@@ -849,18 +824,18 @@ let buttonNames = {
|
|
|
849
824
|
0: {
|
|
850
825
|
prefixLevel0btn: { // 只存在课上
|
|
851
826
|
demand: '训练要求',
|
|
852
|
-
|
|
827
|
+
btnIndex2: '训练题目'
|
|
853
828
|
},
|
|
854
829
|
levelOtherBtn: { // 除课和最低节点以外
|
|
855
830
|
},
|
|
856
831
|
otherThanLevel0: { // 除课以外
|
|
857
|
-
|
|
832
|
+
btnIndex1: this.getCurrentPrefix(item) + '题目',
|
|
858
833
|
btnIndex3: this.getPrefix(item) + '题目',
|
|
859
834
|
},
|
|
860
835
|
lowLevel: { // 除课以外
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
836
|
+
btnIndex4: '创建题目',
|
|
837
|
+
btnIndex1: '题目列表',
|
|
838
|
+
btnIndex5: '批量删除'
|
|
864
839
|
},
|
|
865
840
|
suffixLevel0btn: { // 只存在课上
|
|
866
841
|
analyse: '训练分析',
|
|
@@ -875,10 +850,10 @@ let buttonNames = {
|
|
|
875
850
|
0: {
|
|
876
851
|
prefixLevel0btn: { // 只存在课上
|
|
877
852
|
demand: '学习要求',
|
|
878
|
-
|
|
853
|
+
btnIndex2: '虚仿项目'
|
|
879
854
|
},
|
|
880
855
|
levelOtherBtn: { // 除课和最低节点以外
|
|
881
|
-
|
|
856
|
+
btnIndex1: this.getCurrentPrefix(item) + '项目',
|
|
882
857
|
},
|
|
883
858
|
otherThanLevel0: { // 除课以外
|
|
884
859
|
btnIndex3: this.getPrefix(item) + '项目',
|
|
@@ -910,10 +885,10 @@ let buttonNames = {
|
|
|
910
885
|
0: {
|
|
911
886
|
prefixLevel0btn: { // 只存在课上
|
|
912
887
|
demand: '作业要求',
|
|
913
|
-
|
|
888
|
+
btnIndex2: '作业题目'
|
|
914
889
|
},
|
|
915
890
|
levelOtherBtn: { // 除课和最低节点以外
|
|
916
|
-
|
|
891
|
+
btnIndex1: this.getCurrentPrefix(item) + '题目',
|
|
917
892
|
},
|
|
918
893
|
otherThanLevel0: { // 除课以外
|
|
919
894
|
btnIndex3: this.getPrefix(item) + '题目',
|
|
@@ -932,15 +907,15 @@ let buttonNames = {
|
|
|
932
907
|
0: {
|
|
933
908
|
prefixLevel0btn: { // 只存在课上
|
|
934
909
|
demand: '聆听要求',
|
|
935
|
-
|
|
910
|
+
btnIndex2: '报告资源'
|
|
936
911
|
},
|
|
937
912
|
otherThanLevel0: { // 除课以外
|
|
938
|
-
|
|
913
|
+
btnIndex1: this.getCurrentPrefix(item) + '报告',
|
|
939
914
|
btnIndex3: this.getPrefix(item) + '报告',
|
|
940
915
|
},
|
|
941
916
|
lowLevel: { // 除课以外
|
|
942
|
-
|
|
943
|
-
|
|
917
|
+
btnIndex4: '创建报告',
|
|
918
|
+
btnIndex1: '报告列表',
|
|
944
919
|
},
|
|
945
920
|
suffixLevel0btn: { // 只存在课上
|
|
946
921
|
review: '聆听点评',
|
|
@@ -983,10 +958,10 @@ let buttonNames = {
|
|
|
983
958
|
0: {
|
|
984
959
|
prefixLevel0btn: { // 只存在课上
|
|
985
960
|
demand: '实践要求',
|
|
986
|
-
|
|
961
|
+
btnIndex2: '实践项目'
|
|
987
962
|
},
|
|
988
963
|
levelOtherBtn: { // 除课和最低节点以外
|
|
989
|
-
|
|
964
|
+
btnIndex1: this.getCurrentPrefix(item) + '项目',
|
|
990
965
|
},
|
|
991
966
|
otherThanLevel0: { // 除课以外
|
|
992
967
|
btnIndex3: this.getPrefix(item) + '项目',
|
|
@@ -1004,10 +979,10 @@ let buttonNames = {
|
|
|
1004
979
|
0: {
|
|
1005
980
|
prefixLevel0btn: { // 只存在课上
|
|
1006
981
|
demand: '创新要求',
|
|
1007
|
-
|
|
982
|
+
btnIndex2: '创新任务'
|
|
1008
983
|
},
|
|
1009
984
|
levelOtherBtn: { // 除课和最低节点以外
|
|
1010
|
-
|
|
985
|
+
btnIndex1: this.getCurrentPrefix(item) + '任务',
|
|
1011
986
|
},
|
|
1012
987
|
otherThanLevel0: { // 除课以外
|
|
1013
988
|
btnIndex3: this.getPrefix(item) + '任务',
|