zydx-plus 1.35.551 → 1.35.552

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.35.551",
3
+ "version": "1.35.552",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -2812,8 +2812,19 @@ let buttonNames = {
2812
2812
  // qualityAnalysis: '素养评析'
2813
2813
  // }
2814
2814
  headLevel: {
2815
- default: 'pipeGuideAnalysis',
2815
+ default: "resourceIndex",
2816
+ resourceIndex: '写作任务',
2816
2817
  pipeGuideAnalysis: '管导评析'
2818
+ },
2819
+ otherLevel: {
2820
+ default: "singletonClass",
2821
+ singletonClass: this.getCurrentPrefix(item) + '任务',
2822
+ allClass: this.getPrefix(item) + '任务'
2823
+ },
2824
+ lowLevel: {
2825
+ default: "viewResource",
2826
+ createResource: '创建任务',
2827
+ viewResource: '任务列表',
2817
2828
  }
2818
2829
  }
2819
2830
  }
@@ -3616,7 +3627,7 @@ let buttonNames = {
3616
3627
  }
3617
3628
  }
3618
3629
  },
3619
-
3630
+
3620
3631
  resource_lesson023: {
3621
3632
  actionName: '经典文章',
3622
3633
  buttonList: {
@@ -344,18 +344,17 @@ export default defineComponent({
344
344
  opacity: 1;
345
345
  overflow: scroll;
346
346
  border-top: 1px solid #cccccc;
347
- border-left: 1px solid #cccccc;
348
347
  }
349
348
 
350
349
  .table_wrapper::-webkit-scrollbar {
351
350
  display: none;
352
- /* or add it to the track */
353
351
  }
354
352
 
355
353
  .table_root {
356
354
  table-layout: fixed;
357
355
  display: table;
358
356
  max-width: 100%;
357
+ border-left: 1px solid #cccccc;
359
358
  margin: 0 auto;
360
359
  border-spacing: 0;
361
360
  }
@@ -11,10 +11,10 @@
11
11
  </div>
12
12
  </div>
13
13
  <div v-if="fileType === 'mp4'" class="mp4">
14
- <video ref="videoRef" id="video" :src="url" controls controlsList='nodownload noremote footbar'></video>
14
+ <video ref="videoRef" id="video" :src="url" controls controlsList="nodownload noremote footbar"></video>
15
15
  </div>
16
16
  <div v-if="fileType === 'mp3'" class="mp3">
17
- <audio ref="audioRef" id="audio" :src="url" controls controlsList='nodownload noremote footbar'></audio>
17
+ <audio ref="audioRef" id="audio" :src="url" controls controlsList="nodownload noremote footbar"></audio>
18
18
  </div>
19
19
  <div v-if="loading" class="loading-back">
20
20
  <div class="loading-cont">
@@ -40,9 +40,6 @@ import '@vue-office/excel/lib/index.css'
40
40
  import Mess from '../../tipBox/index'
41
41
  import {debounce} from "../../utils";
42
42
 
43
- import VideoJS from 'video.js';
44
- import 'videojs-contrib-hls';
45
- import 'video.js/dist/video-js.css';
46
43
 
47
44
  let pdfs = {}
48
45
  export default {
@@ -69,7 +66,7 @@ export default {
69
66
  resizeObserver: {},
70
67
  loadingTask: {},
71
68
  // pdfs:null
72
- player:null
69
+ player: null
73
70
  }
74
71
  },
75
72
  props: {
@@ -153,21 +150,20 @@ export default {
153
150
  this.resizeObserver[`${this.refSrc}`].observe(el);
154
151
  }, 300)
155
152
  }
156
- if(this.fileType === 'mp4'){
153
+ if (this.fileType === 'mp4') {
157
154
  this.$nextTick(() => {
158
155
  if (this.$refs.videoRef) {
159
- this.player = VideoJS('video');
160
- this.$refs.videoRef.addEventListener('play', () => {
161
- this.$emit('playingEvent')
156
+ this.$refs.videoRef.addEventListener('play', (res) => {
157
+ this.$emit('playingEvent',this.$refs.videoRef?.currentTime)
162
158
  });
163
- this.$refs.videoRef.addEventListener('pause', () => {
164
- this.$emit('pausedEvent')
159
+ this.$refs.videoRef.addEventListener('pause', (res) => {
160
+ this.$emit('pausedEvent',this.$refs.videoRef?.currentTime)
165
161
  });
166
162
  }
167
163
  })
168
164
  }
169
- if(this.fileType === 'mp3') {
170
- this.$nextTick(()=>{
165
+ if (this.fileType === 'mp3') {
166
+ this.$nextTick(() => {
171
167
  if (this.$refs.audioRef) {
172
168
  this.$refs.audioRef.addEventListener('play', () => {
173
169
  this.$emit('playingEvent')
@@ -191,30 +187,34 @@ export default {
191
187
  console.log(video);
192
188
  });
193
189
  },
194
- readPlay(){
195
- if(this.fileType === 'mp4'){
190
+ readPlay(currentTime) {
191
+ if (this.fileType === 'mp4') {
196
192
  this.$nextTick(() => {
197
- this.player.play()
193
+ this.$refs.videoRef.play()
194
+ this.$refs.videoRef.currentTime = currentTime
198
195
  })
199
196
  }
200
- if(this.fileType === 'mp3') {
201
- this.$nextTick(()=>{
197
+ if (this.fileType === 'mp3') {
198
+ this.$nextTick(() => {
202
199
  if (this.$refs.audioRef) {
203
200
  this.$refs.audioRef.play();
201
+ this.$refs.audioRef.currentTime = currentTime
204
202
  }
205
203
  })
206
204
  }
207
205
  },
208
- readPause(){
209
- if(this.fileType === 'mp4'){
206
+ readPause(currentTime) {
207
+ if (this.fileType === 'mp4') {
210
208
  this.$nextTick(() => {
211
- this.player.pause()
209
+ this.$refs.videoRef.pause()
210
+ this.$refs.videoRef.currentTime = currentTime
212
211
  })
213
212
  }
214
- if(this.fileType === 'mp3') {
215
- this.$nextTick(()=>{
213
+ if (this.fileType === 'mp3') {
214
+ this.$nextTick(() => {
216
215
  if (this.$refs.audioRef) {
217
216
  this.$refs.audioRef.pause();
217
+ this.$refs.audioRef.currentTime = currentTime
218
218
  }
219
219
  })
220
220
  }
@@ -282,9 +282,9 @@ export default {
282
282
  let boxWidth = that.$refs['view-pdf'].offsetWidth
283
283
  const boxHeight = boxWidth / sc1
284
284
  let scales = 1
285
- if(boxHeight<boxWidth){
285
+ if (boxHeight < boxWidth) {
286
286
  scales = (boxWidth / 846) * (boxWidth / (boxWidth + (boxWidth * 0.0115 * 2)))
287
- }else{
287
+ } else {
288
288
  scales = (boxWidth / 846) * (boxWidth / (boxWidth - (boxWidth * 0.115 * 2)))
289
289
  }
290
290
  let viewport = pdfPage.getViewport({scale: scales})
@@ -320,9 +320,9 @@ export default {
320
320
  let boxWidth = that.$refs['view-pdf'].offsetWidth
321
321
  const boxHeight = boxWidth / sc1
322
322
  let scales = 1
323
- if(boxHeight<boxWidth){
323
+ if (boxHeight < boxWidth) {
324
324
  scales = (boxWidth / 846) * (boxWidth / (boxWidth + (boxWidth * 0.0115 * 2)))
325
- }else{
325
+ } else {
326
326
  scales = (boxWidth / 846) * (boxWidth / (boxWidth - (boxWidth * 0.115 * 2)))
327
327
  }
328
328
  let viewport = page.getViewport({scale: scales})
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.551',
92
+ version: '1.35.552',
93
93
  install,
94
94
  Calendar,
95
95
  Message,