zydx-plus 1.34.455 → 1.34.457
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
|
@@ -2735,6 +2735,86 @@ let buttonNames = {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
}
|
|
2737
2737
|
},
|
|
2738
|
+
resource_lesson_topic: {
|
|
2739
|
+
actionName: '课程专题',
|
|
2740
|
+
buttonList: {
|
|
2741
|
+
0: {
|
|
2742
|
+
headLevel: {
|
|
2743
|
+
default: "btnIndex1",
|
|
2744
|
+
btnIndex1: this.getCurrentPrefix(item) + '专题',
|
|
2745
|
+
btnIndex2: this.getPrefix(item) + '专题'
|
|
2746
|
+
},
|
|
2747
|
+
otherLevel: {
|
|
2748
|
+
default: "btnIndex1",
|
|
2749
|
+
btnIndex1: this.getCurrentPrefix(item) + '专题',
|
|
2750
|
+
btnIndex2: this.getPrefix(item) + '专题'
|
|
2751
|
+
},
|
|
2752
|
+
lowLevel: {
|
|
2753
|
+
default: "viewResource",
|
|
2754
|
+
createResource: '创建专题',
|
|
2755
|
+
viewResource: '专题列表',
|
|
2756
|
+
// selectResource: '查找资源',
|
|
2757
|
+
}
|
|
2758
|
+
},
|
|
2759
|
+
2: {
|
|
2760
|
+
headLevel: {
|
|
2761
|
+
default: "btnIndex1",
|
|
2762
|
+
btnIndex1: this.getCurrentPrefix(item) + '专题',
|
|
2763
|
+
btnIndex2: this.getPrefix(item) + '专题'
|
|
2764
|
+
},
|
|
2765
|
+
otherLevel: {
|
|
2766
|
+
default: "btnIndex1",
|
|
2767
|
+
btnIndex1: this.getCurrentPrefix(item) + '专题',
|
|
2768
|
+
btnIndex2: this.getPrefix(item) + '专题'
|
|
2769
|
+
},
|
|
2770
|
+
lowLevel: {
|
|
2771
|
+
default: "viewResource",
|
|
2772
|
+
viewResource: '专题列表',
|
|
2773
|
+
// selectResource: '查找资源',
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
},
|
|
2778
|
+
resource_lesson_case: {
|
|
2779
|
+
actionName: '案例',
|
|
2780
|
+
buttonList: {
|
|
2781
|
+
0: {
|
|
2782
|
+
headLevel: {
|
|
2783
|
+
default: "btnIndex1",
|
|
2784
|
+
btnIndex1: this.getCurrentPrefix(item) + '案例',
|
|
2785
|
+
btnIndex2: this.getPrefix(item) + '案例'
|
|
2786
|
+
},
|
|
2787
|
+
otherLevel: {
|
|
2788
|
+
default: "btnIndex1",
|
|
2789
|
+
btnIndex1: this.getCurrentPrefix(item) + '案例',
|
|
2790
|
+
btnIndex2: this.getPrefix(item) + '案例'
|
|
2791
|
+
},
|
|
2792
|
+
lowLevel: {
|
|
2793
|
+
default: "viewResource",
|
|
2794
|
+
createResource: '创建案例',
|
|
2795
|
+
viewResource: '案例列表',
|
|
2796
|
+
// selectResource: '查找资源',
|
|
2797
|
+
}
|
|
2798
|
+
},
|
|
2799
|
+
2: {
|
|
2800
|
+
headLevel: {
|
|
2801
|
+
default: "btnIndex1",
|
|
2802
|
+
btnIndex1: this.getCurrentPrefix(item) + '案例',
|
|
2803
|
+
btnIndex2: this.getPrefix(item) + '案例'
|
|
2804
|
+
},
|
|
2805
|
+
otherLevel: {
|
|
2806
|
+
default: "btnIndex1",
|
|
2807
|
+
btnIndex1: this.getCurrentPrefix(item) + '案例',
|
|
2808
|
+
btnIndex2: this.getPrefix(item) + '案例'
|
|
2809
|
+
},
|
|
2810
|
+
lowLevel: {
|
|
2811
|
+
default: "viewResource",
|
|
2812
|
+
viewResource: '案例列表',
|
|
2813
|
+
// selectResource: '查找资源',
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
},
|
|
2738
2818
|
resource_lesson017: {
|
|
2739
2819
|
actionName: '实践资源',
|
|
2740
2820
|
buttonList: {
|
|
@@ -2884,6 +2964,34 @@ let buttonNames = {
|
|
|
2884
2964
|
}
|
|
2885
2965
|
}
|
|
2886
2966
|
},
|
|
2967
|
+
resource_study_show: {
|
|
2968
|
+
actionName: '学习表现',
|
|
2969
|
+
buttonList: {
|
|
2970
|
+
0: {
|
|
2971
|
+
headLevel: {
|
|
2972
|
+
default: "demand",
|
|
2973
|
+
demand: '学习要求',
|
|
2974
|
+
// resourceEvaluate:'评  价',
|
|
2975
|
+
resourceAnalyse:'分  析',
|
|
2976
|
+
resourceAdvise:'建  议',
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
}
|
|
2980
|
+
},
|
|
2981
|
+
resource_checktime: {
|
|
2982
|
+
actionName: '考勤资源',
|
|
2983
|
+
buttonList: {
|
|
2984
|
+
0: {
|
|
2985
|
+
headLevel: {
|
|
2986
|
+
default: "demand",
|
|
2987
|
+
demand: '考勤要求',
|
|
2988
|
+
// resourceEvaluate:'评  价',
|
|
2989
|
+
resourceAnalyse:'分  析',
|
|
2990
|
+
resourceAdvise:'建  议',
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
},
|
|
2887
2995
|
}[this.actionId];
|
|
2888
2996
|
},
|
|
2889
2997
|
readResourceButtonList(item) {
|
|
@@ -3311,7 +3419,86 @@ let buttonNames = {
|
|
|
3311
3419
|
}
|
|
3312
3420
|
}
|
|
3313
3421
|
},
|
|
3314
|
-
|
|
3422
|
+
resource_lesson_video: {
|
|
3423
|
+
actionName: '音频资源',
|
|
3424
|
+
buttonList: {
|
|
3425
|
+
0: {
|
|
3426
|
+
headLevel: {
|
|
3427
|
+
default: "btnIndex1",
|
|
3428
|
+
btnIndex1: this.getCurrentPrefix(item) + '音频',
|
|
3429
|
+
btnIndex2: this.getPrefix(item) + '音频'
|
|
3430
|
+
},
|
|
3431
|
+
otherLevel: {
|
|
3432
|
+
default: "btnIndex1",
|
|
3433
|
+
btnIndex1: this.getCurrentPrefix(item) + '音频',
|
|
3434
|
+
btnIndex2: this.getPrefix(item) + '音频'
|
|
3435
|
+
},
|
|
3436
|
+
lowLevel: {
|
|
3437
|
+
default: "viewResource",
|
|
3438
|
+
importResource: '导入音频',
|
|
3439
|
+
viewResource: '音频列表',
|
|
3440
|
+
// selectResource: '查找资源',
|
|
3441
|
+
}
|
|
3442
|
+
},
|
|
3443
|
+
2: {
|
|
3444
|
+
headLevel: {
|
|
3445
|
+
default: "btnIndex1",
|
|
3446
|
+
btnIndex1: this.getCurrentPrefix(item) + '音频',
|
|
3447
|
+
btnIndex2: this.getPrefix(item) + '音频'
|
|
3448
|
+
},
|
|
3449
|
+
otherLevel: {
|
|
3450
|
+
default: "btnIndex1",
|
|
3451
|
+
btnIndex1: this.getCurrentPrefix(item) + '音频',
|
|
3452
|
+
btnIndex2: this.getPrefix(item) + '音频'
|
|
3453
|
+
},
|
|
3454
|
+
lowLevel: {
|
|
3455
|
+
default: "viewResource",
|
|
3456
|
+
viewResource: '音频列表',
|
|
3457
|
+
// selectResource: '查找资源',
|
|
3458
|
+
}
|
|
3459
|
+
}
|
|
3460
|
+
}
|
|
3461
|
+
},
|
|
3462
|
+
resource_lesson_img: {
|
|
3463
|
+
actionName: '图片资源',
|
|
3464
|
+
buttonList: {
|
|
3465
|
+
0: {
|
|
3466
|
+
headLevel: {
|
|
3467
|
+
default: "btnIndex1",
|
|
3468
|
+
btnIndex1: this.getCurrentPrefix(item) + '图片',
|
|
3469
|
+
btnIndex2: this.getPrefix(item) + '图片'
|
|
3470
|
+
},
|
|
3471
|
+
otherLevel: {
|
|
3472
|
+
default: "btnIndex1",
|
|
3473
|
+
btnIndex1: this.getCurrentPrefix(item) + '图片',
|
|
3474
|
+
btnIndex2: this.getPrefix(item) + '图片'
|
|
3475
|
+
},
|
|
3476
|
+
lowLevel: {
|
|
3477
|
+
default: "viewResource",
|
|
3478
|
+
importResource: '导入图片',
|
|
3479
|
+
viewResource: '图片列表',
|
|
3480
|
+
// selectResource: '查找资源',
|
|
3481
|
+
}
|
|
3482
|
+
},
|
|
3483
|
+
2: {
|
|
3484
|
+
headLevel: {
|
|
3485
|
+
default: "btnIndex1",
|
|
3486
|
+
btnIndex1: this.getCurrentPrefix(item) + '图片',
|
|
3487
|
+
btnIndex2: this.getPrefix(item) + '图片'
|
|
3488
|
+
},
|
|
3489
|
+
otherLevel: {
|
|
3490
|
+
default: "btnIndex1",
|
|
3491
|
+
btnIndex1: this.getCurrentPrefix(item) + '图片',
|
|
3492
|
+
btnIndex2: this.getPrefix(item) + '图片'
|
|
3493
|
+
},
|
|
3494
|
+
lowLevel: {
|
|
3495
|
+
default: "viewResource",
|
|
3496
|
+
viewResource: '图片列表',
|
|
3497
|
+
// selectResource: '查找资源',
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
},
|
|
3315
3502
|
}[this.actionId];
|
|
3316
3503
|
},
|
|
3317
3504
|
// 获取前缀内容
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</div>
|
|
17
17
|
<div class="chat-input">
|
|
18
18
|
<div class="chat-text">
|
|
19
|
-
<textarea :disabled="disabled" @keydown="handleKeydown" v-model="userText" placeholder="问AI试试..."></textarea>
|
|
19
|
+
<textarea :disabled="disabled" @keydown="handleKeydown" @input="autoResize" v-model="userText" placeholder="问AI试试..."></textarea>
|
|
20
20
|
</div>
|
|
21
21
|
<div class="chat-operate">
|
|
22
22
|
<div class="chat-send">
|
|
@@ -165,6 +165,11 @@ export default {
|
|
|
165
165
|
},
|
|
166
166
|
},
|
|
167
167
|
methods: {
|
|
168
|
+
autoResize(e) {
|
|
169
|
+
e.target.style.height = 'auto'
|
|
170
|
+
console.log(e.target.scrollHeight)
|
|
171
|
+
e.target.style.height = `${e.target.scrollHeight }px`
|
|
172
|
+
},
|
|
168
173
|
clearTextarea() {
|
|
169
174
|
this.userText = ''
|
|
170
175
|
},
|
|
@@ -475,18 +480,19 @@ export default {
|
|
|
475
480
|
|
|
476
481
|
.chat-text {
|
|
477
482
|
width: 100%;
|
|
478
|
-
height: 82px;
|
|
483
|
+
min-height: 82px;
|
|
479
484
|
background: #fff;
|
|
480
485
|
box-sizing: border-box;
|
|
481
486
|
}
|
|
482
487
|
|
|
483
488
|
.chat-text textarea {
|
|
484
489
|
width: 100%;
|
|
485
|
-
height:
|
|
490
|
+
height: auto;
|
|
486
491
|
font-family: Helvetica, sans-serif;
|
|
487
492
|
border: none;
|
|
488
493
|
outline: none;
|
|
489
494
|
resize: none;
|
|
495
|
+
overflow-y: hidden;
|
|
490
496
|
font-size: 14px;
|
|
491
497
|
}
|
|
492
498
|
.chat-operate{
|