Эх сурвалжийг харах

fix:缩放比例、移动距离增加默认值;录音去掉毫秒数

wangshuang 1 жил өмнө
parent
commit
57b334e1fe

+ 29 - 28
inspur-ui/src/views/party_work/meeting/info.vue

@@ -661,8 +661,8 @@
         photoList: [],
         deviceList: [],
         deviceId: null,
-        scaleId: null,
-        moveId: null,
+        scaleId: 100,
+        moveId: 20,
         audioReadOnly: true,
         audioId: null,
         attendanceList: [],
@@ -780,7 +780,8 @@
         let hours = Math.floor(remaining / 60);
         return `${hours.toString().padStart(2, '0')}:${minutes
         .toString()
-        .padStart(2, '0')}:${seconds.toString().padStart(2, '0')}.${milliseconds.toString().padStart(3, '0')}`;
+        .padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
+        //.${milliseconds.toString().padStart(3, '0')}
       },
     },
     created() {
@@ -1126,8 +1127,8 @@
         this.imageOffset = 0;
         this.imageHeight = 100;
         this.imageHeightPxChange = this.imageHeightPx;
-        this.scaleId = null;
-        this.moveId = null;
+        this.scaleId = 100;
+        this.moveId = 20;
 
         this.currentPage = 0;
         this.material = url;
@@ -1234,8 +1235,8 @@
         this.imageOffset = 0;
         this.imageHeight = 100;
         this.imageHeightPxChange = this.imageHeightPx;
-        this.scaleId = null;
-        this.moveId = null;
+        this.scaleId = 100;
+        this.moveId = 20;
 
         this.controlFilePlay(0);
       },
@@ -1248,16 +1249,16 @@
       },
       //缩放
       scaleChange() {
-        if (!this.validDeviceId()) {
-          this.scaleId = null;
-          return;
-        }
+        // if (!this.validDeviceId()) {
+        //   this.scaleId = null;
+        //   return;
+        // }
         if (this.totalPage == 0) {
           this.$message({
             message: '请先选择文件开始文件播放',
             type: 'warning'
           });
-          this.scaleId = null;
+          this.scaleId = 100;
           return;
         }
         let param = {
@@ -1295,13 +1296,13 @@
           }
         }
 
-        if (this.moveId == null) {
-          this.$message({
-            message: '请先选择移动距离',
-            type: 'warning'
-          });
-          return;
-        }
+        // if (this.moveId == null) {
+        //   this.$message({
+        //     message: '请先选择移动距离',
+        //     type: 'warning'
+        //   });
+        //   return;
+        // }
         let param = {
           direction: 1,
           meetingId: this.meetingId,
@@ -1334,13 +1335,13 @@
           }
         }
 
-        if (this.moveId == null) {
-          this.$message({
-            message: '请先选择移动距离',
-            type: 'warning'
-          });
-          return;
-        }
+        // if (this.moveId == null) {
+        //   this.$message({
+        //     message: '请先选择移动距离',
+        //     type: 'warning'
+        //   });
+        //   return;
+        // }
         let param = {
           direction: 2,
           meetingId: this.meetingId,
@@ -1512,8 +1513,8 @@
         this.imageOffset = 0;
         this.imageHeight = 100;
         this.imageHeightPxChange = this.imageHeightPx;
-        this.scaleId = null;
-        this.moveId = null;
+        this.scaleId = 100;
+        this.moveId = 20;
 
       },
       deleteDialogPhoto() {

+ 14 - 14
inspur-ui/src/views/party_work/meeting/info_pad.vue

@@ -644,8 +644,8 @@
         photoList: [],
         deviceList: [],
         deviceId: null,
-        scaleId: null,
-        moveId: null,
+        scaleId: 100,
+        moveId: 20,
         audioReadOnly: true,
         audioId: null,
         attendanceList: [],
@@ -761,7 +761,7 @@
         let hours = Math.floor(remaining / 60);
         return `${hours.toString().padStart(2, '0')}:${minutes
         .toString()
-        .padStart(2, '0')}:${seconds.toString().padStart(2, '0')}.${milliseconds.toString().padStart(3, '0')}`;
+        .padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
       },
     },
     created() {
@@ -1095,8 +1095,8 @@
         this.imageOffset = 0;
         this.imageHeight = 100;
         this.imageHeightPxChange = this.imageHeightPx;
-        this.scaleId = null;
-        this.moveId = null;
+        this.scaleId = 100;
+        this.moveId = 20;
 
         this.currentPage = 0;
         this.material = url;
@@ -1203,8 +1203,8 @@
         this.imageOffset = 0;
         this.imageHeight = 100;
         this.imageHeightPxChange = this.imageHeightPx;
-        this.scaleId = null;
-        this.moveId = null;
+        this.scaleId = 100;
+        this.moveId = 20;
 
         this.controlFilePlay(0);
       },
@@ -1217,16 +1217,16 @@
       },
       //缩放
       scaleChange() {
-        if (!this.validDeviceId()) {
-          this.scaleId = null;
-          return;
-        }
+        // if (!this.validDeviceId()) {
+        //   this.scaleId = null;
+        //   return;
+        // }
         if (this.totalPage == 0) {
           this.$message({
             message: '请先选择文件开始文件播放',
             type: 'warning'
           });
-          this.scaleId = null;
+          this.scaleId = 100;
           return;
         }
         let param = {
@@ -1481,8 +1481,8 @@
         this.imageOffset = 0;
         this.imageHeight = 100;
         this.imageHeightPxChange = this.imageHeightPx;
-        this.scaleId = null;
-        this.moveId = null;
+        this.scaleId = 100;
+        this.moveId = 20;
 
       },
       deleteDialogPhoto() {