Browse Source

修改到课率显示问题,优化滚动列表

mifei 3 days ago
parent
commit
74e8650834
5 changed files with 811 additions and 848 deletions
  1. 2 3
      package-lock.json
  2. 1 1
      package.json
  3. 0 2
      src/components/home.vue
  4. 808 835
      src/components/left.vue
  5. 0 7
      src/components/right.vue

+ 2 - 3
package-lock.json

@@ -8,6 +8,7 @@
8
       "name": "ue5_web1",
8
       "name": "ue5_web1",
9
       "version": "0.0.0",
9
       "version": "0.0.0",
10
       "dependencies": {
10
       "dependencies": {
11
+        "@fcli/vue-auto-scroll": "^0.0.2",
11
         "amfe-flexible": "^2.2.1",
12
         "amfe-flexible": "^2.2.1",
12
         "axios": "^1.4.0",
13
         "axios": "^1.4.0",
13
         "echarts": "^5.4.3",
14
         "echarts": "^5.4.3",
@@ -29,7 +30,6 @@
29
         "xgplayer-vue": "^1.1.5"
30
         "xgplayer-vue": "^1.1.5"
30
       },
31
       },
31
       "devDependencies": {
32
       "devDependencies": {
32
-        "@fcli/vue-auto-scroll": "^0.0.2",
33
         "@vitejs/plugin-vue": "^2.3.3",
33
         "@vitejs/plugin-vue": "^2.3.3",
34
         "sass": "^1.64.2",
34
         "sass": "^1.64.2",
35
         "skeleton-loader": "^2.0.0",
35
         "skeleton-loader": "^2.0.0",
@@ -119,8 +119,7 @@
119
     "node_modules/@fcli/vue-auto-scroll": {
119
     "node_modules/@fcli/vue-auto-scroll": {
120
       "version": "0.0.2",
120
       "version": "0.0.2",
121
       "resolved": "https://registry.npmmirror.com/@fcli/vue-auto-scroll/-/vue-auto-scroll-0.0.2.tgz",
121
       "resolved": "https://registry.npmmirror.com/@fcli/vue-auto-scroll/-/vue-auto-scroll-0.0.2.tgz",
122
-      "integrity": "sha512-qRxCH40ZVWh4NgUBfkL8LoIjo5JhOGeO8uVrCqdcPS1VQh/h/zzSUJRb8mDthY08V3b7bRayPGdzEPT5//HG+Q==",
123
-      "dev": true
122
+      "integrity": "sha512-qRxCH40ZVWh4NgUBfkL8LoIjo5JhOGeO8uVrCqdcPS1VQh/h/zzSUJRb8mDthY08V3b7bRayPGdzEPT5//HG+Q=="
124
     },
123
     },
125
     "node_modules/@floating-ui/core": {
124
     "node_modules/@floating-ui/core": {
126
       "version": "1.4.1",
125
       "version": "1.4.1",

+ 1 - 1
package.json

@@ -8,6 +8,7 @@
8
     "preview": "vite preview"
8
     "preview": "vite preview"
9
   },
9
   },
10
   "dependencies": {
10
   "dependencies": {
11
+    "@fcli/vue-auto-scroll": "^0.0.2",
11
     "amfe-flexible": "^2.2.1",
12
     "amfe-flexible": "^2.2.1",
12
     "axios": "^1.4.0",
13
     "axios": "^1.4.0",
13
     "echarts": "^5.4.3",
14
     "echarts": "^5.4.3",
@@ -29,7 +30,6 @@
29
     "xgplayer-vue": "^1.1.5"
30
     "xgplayer-vue": "^1.1.5"
30
   },
31
   },
31
   "devDependencies": {
32
   "devDependencies": {
32
-    "@fcli/vue-auto-scroll": "^0.0.2",
33
     "@vitejs/plugin-vue": "^2.3.3",
33
     "@vitejs/plugin-vue": "^2.3.3",
34
     "sass": "^1.64.2",
34
     "sass": "^1.64.2",
35
     "skeleton-loader": "^2.0.0",
35
     "skeleton-loader": "^2.0.0",

+ 0 - 2
src/components/home.vue

@@ -1,7 +1,5 @@
1
 <template>
1
 <template>
2
   <!-- <div class="container" > -->
2
   <!-- <div class="container" > -->
3
-
4
-  
5
   <Header />
3
   <Header />
6
   <img class="bg-shadow" :src="bgShadow" alt="" srcset="">
4
   <img class="bg-shadow" :src="bgShadow" alt="" srcset="">
7
   <div v-show="isShowLeftAndRight">
5
   <div v-show="isShowLeftAndRight">

File diff suppressed because it is too large
+ 808 - 835
src/components/left.vue


+ 0 - 7
src/components/right.vue

@@ -235,14 +235,11 @@ export default {
235
 		const dialogTitle = ref("");
235
 		const dialogTitle = ref("");
236
 		// 播放视频
236
 		// 播放视频
237
 		const lookVideo = function (item) {
237
 		const lookVideo = function (item) {
238
-			console.log("item", item);
239
 
238
 
240
 			videoDialog.value = true;
239
 			videoDialog.value = true;
241
 			dialogTitle.value = item.title;
240
 			dialogTitle.value = item.title;
242
 
241
 
243
 			getVideoUrl({ rtsp: item.src }).then((res) => {
242
 			getVideoUrl({ rtsp: item.src }).then((res) => {
244
-				console.log("视频处理", res);
245
-				console.log("视频处理2", res.data.httpFlv);
246
 				// setTimeout(() => {
243
 				// setTimeout(() => {
247
 
244
 
248
 				// 确保视频加载完成后再播放
245
 				// 确保视频加载完成后再播放
@@ -274,7 +271,6 @@ export default {
274
 		};
271
 		};
275
 		// 播放视频
272
 		// 播放视频
276
 		const onPlay = function () {
273
 		const onPlay = function () {
277
-			console.log("播放视频");
278
 		};
274
 		};
279
 		// 物联设备
275
 		// 物联设备
280
 		let equipmentTotal = ref({});
276
 		let equipmentTotal = ref({});
@@ -301,7 +297,6 @@ export default {
301
 			//物联设备统计
297
 			//物联设备统计
302
 			equipmentTotal.value = status;
298
 			equipmentTotal.value = status;
303
 			// 物联设备类型数据
299
 			// 物联设备类型数据
304
-			console.log("sadui12u31", category);
305
 			//截取数组前6项
300
 			//截取数组前6项
306
 			interDevice.value = category;
301
 			interDevice.value = category;
307
 
302
 
@@ -334,7 +329,6 @@ export default {
334
 			// 互动教室
329
 			// 互动教室
335
 			carouselData.value = monitor;
330
 			carouselData.value = monitor;
336
 
331
 
337
-			console.log("hshshhs", carouselData.value);
338
 		};
332
 		};
339
 
333
 
340
 		onBeforeMount(() => {
334
 		onBeforeMount(() => {
@@ -360,7 +354,6 @@ export default {
360
 		]);
354
 		]);
361
 		let isShowDeviceDetails = ref(false);
355
 		let isShowDeviceDetails = ref(false);
362
 		const lookDetails = (data) => {
356
 		const lookDetails = (data) => {
363
-			console.log("darta", data);
364
 			isShowDeviceDetails.value = true;
357
 			isShowDeviceDetails.value = true;
365
 		};
358
 		};
366
 
359