zydx-plus 1.33.388 → 1.33.390

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.33.388",
3
+ "version": "1.33.390",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -48,7 +48,8 @@
48
48
  "js-audio-recorder": "^1.0.7",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0",
51
- "tldraw": "^2.0.2"
51
+ "tldraw": "^2.0.2",
52
+ "@tldraw/editor": "^2.0.2"
52
53
  },
53
54
  "peerDependencies": {
54
55
  "vue": "^3.2.13"
@@ -1,5 +1,10 @@
1
1
  let buttonNames = {
2
2
  methods: {
3
+ // 获取类别
4
+ getJobType () {
5
+ let jobType = sessionStorage.getItem('job_type')
6
+ return jobType
7
+ },
3
8
  initConfig (item) {
4
9
  if (this.headerType === 0) { // 互动资源 教师
5
10
  return this.interactResourceButtonList(item);
@@ -2053,6 +2058,132 @@ let buttonNames = {
2053
2058
  },
2054
2059
  interactResourceButtonList (item) {
2055
2060
  return {
2061
+ resource_lesson_wushu: {
2062
+ actionName: '武术资源',
2063
+ buttonList: {
2064
+ 0: {
2065
+ headLevel: {
2066
+ default: "demand",
2067
+ demand: '武术要求',
2068
+ resourceIndex: '武术任务',
2069
+ review: '武术点评',
2070
+ guideIndex: '指导意见',
2071
+ analyse: '武术分析',
2072
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2073
+ assessment: '素养评估',
2074
+ analysis: '素养分析',
2075
+ proposal: '成长建议'
2076
+ },
2077
+ otherLevel: {
2078
+ default: "singletonClass",
2079
+ singletonClass: this.getCurrentPrefix(item) + '任务',
2080
+ allClass: this.getPrefix(item) + '任务'
2081
+ },
2082
+ lowLevel: {
2083
+ default: "viewResource",
2084
+ createResource: '创建任务',
2085
+ viewResource: '任务列表',
2086
+ selectResource: '查找资源',
2087
+ }
2088
+ }
2089
+ }
2090
+ },
2091
+ resource_lesson_biographical: {
2092
+ actionName: '简历资源',
2093
+ buttonList: {
2094
+ 0: {
2095
+ headLevel: {
2096
+ default: "demand",
2097
+ demand: '简历要求',
2098
+ review: '简历点评',
2099
+ analyse: '简历分析',
2100
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2101
+ assessment: '素养评估',
2102
+ analysis: '素养分析',
2103
+ proposal: '成长建议'
2104
+ }
2105
+ }
2106
+ }
2107
+ },
2108
+ resource_lesson_facew: {
2109
+ actionName: '面试资源',
2110
+ buttonList: {
2111
+ 0: {
2112
+ headLevel: {
2113
+ default: "demand",
2114
+ demand: '面试要求',
2115
+ review: '面试点评',
2116
+ analyse: '面试分析',
2117
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2118
+ assessment: '素养评估',
2119
+ analysis: '素养分析',
2120
+ proposal: '成长建议'
2121
+ }
2122
+ }
2123
+ }
2124
+ },
2125
+ resource_lesson_dissertation1: { // 毕业论文指导-开题报告配置项
2126
+ actionName: '开题报告',
2127
+ buttonList: {
2128
+ 0: {
2129
+ headLevel: {
2130
+ default: "demand",
2131
+ demand: '报告要求',
2132
+ review: '报告点评',
2133
+ analyse: '报告分析',
2134
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2135
+ assessment: '素养评估',
2136
+ analysis: '素养分析',
2137
+ proposal: '成长建议'
2138
+ }
2139
+ }
2140
+ }
2141
+ },
2142
+ resource_lesson_dissertation2: { // 毕业论文指导-论文写作配置项
2143
+ actionName: '论文写作',
2144
+ buttonList: {
2145
+ 0: {
2146
+ headLevel: {
2147
+ default: "demand",
2148
+ demand: '写作要求',
2149
+ review: '写作点评',
2150
+ analyse: '写作分析',
2151
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2152
+ assessment: '素养评估',
2153
+ analysis: '素养分析',
2154
+ proposal: '成长建议'
2155
+ }
2156
+ }
2157
+ }
2158
+ },
2159
+ resource_lesson_dissertation3: { // 毕业论文指导-论文答辩配置项
2160
+ actionName: '论文答辩',
2161
+ buttonList: {
2162
+ 0: {
2163
+ headLevel: {
2164
+ default: "demand",
2165
+ demand: '答辩要求',
2166
+ review: '答辩点评',
2167
+ analyse: '答辩分析',
2168
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2169
+ assessment: '素养评估',
2170
+ analysis: '素养分析',
2171
+ proposal: '成长建议'
2172
+ }
2173
+ }
2174
+ }
2175
+ },
2176
+ resource_lesson_guidance: { // 就业指导-指导意见配置项
2177
+ actionName: '指导意见',
2178
+ buttonList: {
2179
+ 0: {
2180
+ headLevel: {
2181
+ default: "demand",
2182
+ demand: '指导意见'
2183
+ }
2184
+ }
2185
+ }
2186
+ },
2056
2187
  resource_scene:{
2057
2188
  actionName: '情景资源',
2058
2189
  buttonList: {
@@ -2063,7 +2194,7 @@ let buttonNames = {
2063
2194
  resourceIndex: '学习任务',
2064
2195
  review: '学习点评',
2065
2196
  analyse: '学习分析',
2066
- countermeasure: '学习对策'
2197
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策'
2067
2198
  },
2068
2199
  otherLevel: {
2069
2200
  default: "singletonClass",
@@ -2088,7 +2219,7 @@ let buttonNames = {
2088
2219
  demand: '调查要求',
2089
2220
  resourceIndex: '调查试题',
2090
2221
  analyse: '调查分析',
2091
- countermeasure: '教学对策'
2222
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策'
2092
2223
  },
2093
2224
  otherLevel: {
2094
2225
  default: "singletonClass",
@@ -2113,7 +2244,7 @@ let buttonNames = {
2113
2244
  demand: '检测要求',
2114
2245
  resourceIndex: '检测试题',
2115
2246
  analyse: '检测分析',
2116
- countermeasure: '教学对策',
2247
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2117
2248
  assessment: '素养评估',
2118
2249
  analysis: '素养分析',
2119
2250
  proposal: '成长建议'
@@ -2142,7 +2273,7 @@ let buttonNames = {
2142
2273
  resourceIndex: '思政主题',
2143
2274
  review: '思政点评',
2144
2275
  analyse: '思政分析',
2145
- countermeasure: '教学对策',
2276
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2146
2277
  assessment: '素养评估',
2147
2278
  analysis: '素养分析',
2148
2279
  proposal: '成长建议'
@@ -2170,7 +2301,7 @@ let buttonNames = {
2170
2301
  demand: '笔记要求',
2171
2302
  review: '笔记点评',
2172
2303
  analyse: '笔记分析',
2173
- countermeasure: '教学对策',
2304
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2174
2305
  assessment: '素养评估',
2175
2306
  analysis: '素养分析',
2176
2307
  proposal: '成长建议'
@@ -2188,7 +2319,7 @@ let buttonNames = {
2188
2319
  resourceIndex: '提问问题',
2189
2320
  review: '回答点评',
2190
2321
  analyse: '回答分析',
2191
- countermeasure: '教学对策',
2322
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2192
2323
  assessment: '素养评估',
2193
2324
  analysis: '素养分析',
2194
2325
  proposal: '成长建议'
@@ -2217,7 +2348,7 @@ let buttonNames = {
2217
2348
  resourceIndex: '虚拟提问',
2218
2349
  review: '提问点评',
2219
2350
  analyse: '提问分析',
2220
- countermeasure: '教学对策',
2351
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2221
2352
  assessment: '素养评估',
2222
2353
  analysis: '素养分析',
2223
2354
  proposal: '成长建议'
@@ -2245,7 +2376,7 @@ let buttonNames = {
2245
2376
  demand: '问答要求',
2246
2377
  review: '问答点评',
2247
2378
  analyse: '问答分析',
2248
- countermeasure: '教学对策',
2379
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2249
2380
  assessment: '素养评估',
2250
2381
  analysis: '素养分析',
2251
2382
  proposal: '成长建议'
@@ -2263,7 +2394,7 @@ let buttonNames = {
2263
2394
  resourceIndex: '讨论题目',
2264
2395
  review: '讨论点评',
2265
2396
  analyse: '讨论分析',
2266
- countermeasure: '教学对策',
2397
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2267
2398
  assessment: '素养评估',
2268
2399
  analysis: '素养分析',
2269
2400
  proposal: '成长建议'
@@ -2292,7 +2423,7 @@ let buttonNames = {
2292
2423
  resourceIndex: '风暴题目',
2293
2424
  review: '风暴点评',
2294
2425
  analyse: '风暴分析',
2295
- countermeasure: '教学对策',
2426
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2296
2427
  assessment: '素养评估',
2297
2428
  analysis: '素养分析',
2298
2429
  proposal: '成长建议'
@@ -2321,7 +2452,7 @@ let buttonNames = {
2321
2452
  resourceIndex: '追问主题',
2322
2453
  review: '回答点评',
2323
2454
  analyse: '回答分析',
2324
- countermeasure: '教学对策',
2455
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2325
2456
  assessment: '素养评估',
2326
2457
  analysis: '素养分析',
2327
2458
  proposal: '成长建议'
@@ -2349,7 +2480,7 @@ let buttonNames = {
2349
2480
  demand: '训练要求',
2350
2481
  resourceIndex: '训练试题',
2351
2482
  analyse: '训练分析',
2352
- countermeasure: '教学对策',
2483
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2353
2484
  assessment: '素养评估',
2354
2485
  analysis: '素养分析',
2355
2486
  proposal: '成长建议'
@@ -2378,7 +2509,7 @@ let buttonNames = {
2378
2509
  resourceIndex: '案析题目',
2379
2510
  review: '案析点评',
2380
2511
  analyse: '案析分析',
2381
- countermeasure: '教学对策',
2512
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2382
2513
  assessment: '素养评估',
2383
2514
  analysis: '素养分析',
2384
2515
  proposal: '成长建议'
@@ -2407,7 +2538,7 @@ let buttonNames = {
2407
2538
  resourceIndex: '学习任务',
2408
2539
  review: '学习点评',
2409
2540
  analyse: '学习分析',
2410
- countermeasure: '教学对策',
2541
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2411
2542
  assessment: '素养评估',
2412
2543
  analysis: '素养分析',
2413
2544
  proposal: '成长建议'
@@ -2435,7 +2566,7 @@ let buttonNames = {
2435
2566
  demand: '讲解要求',
2436
2567
  review: '讲解点评',
2437
2568
  analyse: '讲解分析',
2438
- countermeasure: '教学对策',
2569
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2439
2570
  assessment: '素养评估',
2440
2571
  analysis: '素养分析',
2441
2572
  proposal: '成长建议'
@@ -2453,7 +2584,7 @@ let buttonNames = {
2453
2584
  resourceIndex: '作业题目',
2454
2585
  review: '作业点评',
2455
2586
  analyse: '作业分析',
2456
- countermeasure: '教学对策',
2587
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2457
2588
  assessment: '素养评估',
2458
2589
  analysis: '素养分析',
2459
2590
  proposal: '成长建议'
@@ -2482,7 +2613,7 @@ let buttonNames = {
2482
2613
  resourceIndex: '报告资源',
2483
2614
  review: '聆听点评',
2484
2615
  analyse: '聆听分析',
2485
- countermeasure: '教学对策',
2616
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2486
2617
  assessment: '素养评估',
2487
2618
  analysis: '素养分析',
2488
2619
  proposal: '成长建议'
@@ -2510,7 +2641,7 @@ let buttonNames = {
2510
2641
  demand: '阅读要求',
2511
2642
  review: '阅读点评',
2512
2643
  analyse: '阅读分析',
2513
- countermeasure: '教学对策',
2644
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2514
2645
  assessment: '素养评估',
2515
2646
  analysis: '素养分析',
2516
2647
  proposal: '成长建议'
@@ -2528,7 +2659,7 @@ let buttonNames = {
2528
2659
  guideIndex: '指导意见',
2529
2660
  review: '写作点评',
2530
2661
  analyse: '写作分析',
2531
- countermeasure: '教学对策',
2662
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2532
2663
  assessment: '素养评估',
2533
2664
  analysis: '素养分析',
2534
2665
  proposal: '成长建议'
@@ -2547,7 +2678,7 @@ let buttonNames = {
2547
2678
  guideIndex: '指导意见',
2548
2679
  review: '实践点评',
2549
2680
  analyse: '实践分析',
2550
- countermeasure: '教学对策',
2681
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2551
2682
  assessment: '素养评估',
2552
2683
  analysis: '素养分析',
2553
2684
  proposal: '成长建议'
@@ -2577,7 +2708,7 @@ let buttonNames = {
2577
2708
  guideIndex: '指导意见',
2578
2709
  review: '实验点评',
2579
2710
  analyse: '实验分析',
2580
- countermeasure: '教学对策',
2711
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2581
2712
  assessment: '素养评估',
2582
2713
  analysis: '素养分析',
2583
2714
  proposal: '成长建议'
@@ -2607,7 +2738,7 @@ let buttonNames = {
2607
2738
  guideIndex: '指导意见',
2608
2739
  review: '项目点评',
2609
2740
  analyse: '项目分析',
2610
- countermeasure: '教学对策',
2741
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2611
2742
  assessment: '素养评估',
2612
2743
  analysis: '素养分析',
2613
2744
  proposal: '成长建议'
@@ -2637,7 +2768,7 @@ let buttonNames = {
2637
2768
  guideIndex: '指导意见',
2638
2769
  review: '创新点评',
2639
2770
  analyse: '创新分析',
2640
- countermeasure: '教学对策',
2771
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2641
2772
  assessment: '素养评估',
2642
2773
  analysis: '素养分析',
2643
2774
  proposal: '成长建议'
@@ -2665,7 +2796,7 @@ let buttonNames = {
2665
2796
  demand: '考试要求',
2666
2797
  resourceIndex: '考试试题',
2667
2798
  analyse: '考试分析',
2668
- countermeasure: '教学对策',
2799
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策',
2669
2800
  assessment: '素养评估',
2670
2801
  analysis: '素养分析',
2671
2802
  proposal: '成长建议'
@@ -2694,7 +2825,7 @@ let buttonNames = {
2694
2825
  resourceIndex1: '学习激励',
2695
2826
  resourceIndex2: '教师督学',
2696
2827
  analyse: '动力分析',
2697
- countermeasure: '教学对策'
2828
+ countermeasure: this.getJobType() === 'resource_guidance' ? '指导对策' : '教学对策'
2698
2829
  }
2699
2830
  }
2700
2831
  }
@@ -409,14 +409,15 @@ export default {
409
409
  })
410
410
  },
411
411
  methods: {
412
- // 下面三个方法是改变图片大小的方法
413
412
  changeAlign(tag) {
413
+ // 图片对齐方式
414
414
  this.editor.chain().setTextAlign(tag).run()
415
415
  },
416
416
  changePercent(e) {
417
+ // 改变图片百分比
417
418
  if(parseInt(e.target.value) > 100) {
418
419
  this.imgSizeVal = 100
419
- this.editor.chain().setImageWidth('100%').run()
420
+ this.editor.chain().setImageWidth('100%').focus().run()
420
421
  } else if(parseInt(e.target.value) < 10) {
421
422
  } else {
422
423
  if(this.lock) {
@@ -429,6 +430,7 @@ export default {
429
430
  }
430
431
  },
431
432
  shouldShowFn({ editor, view, state, oldState, from, to }) {
433
+ // BubbleMenu是否显示
432
434
  this.$nextTick(() => {
433
435
  this.showBubble = editor.isActive('image')
434
436
  if(editor.isActive('image')) {
@@ -907,6 +909,7 @@ export default {
907
909
 
908
910
  :deep(.imgCont) {
909
911
  line-height: 0 !important;
912
+ text-indent: 0 !important;
910
913
  }
911
914
 
912
915
  :deep(.ProseMirror-separator) {
@@ -954,7 +957,7 @@ export default {
954
957
  }
955
958
 
956
959
  :deep(.editor-img) {
957
- max-width: calc(100% - 4em);
960
+ max-width: 100%;
958
961
  padding: 2px 0;
959
962
  }
960
963