Bläddra i källkod

fix:上移、下移增加文件类型字段

wangshuang 1 år sedan
förälder
incheckning
8dd11c1bde
1 ändrade filer med 12 tillägg och 9 borttagningar
  1. 12 9
      inspur-ui/src/views/party_work/meeting/info.vue

+ 12 - 9
inspur-ui/src/views/party_work/meeting/info.vue

@@ -625,7 +625,7 @@
         single: true,
         // 非多个禁用
         multiple: true,
-        totalPage: null,
+        totalPage: 0,
         currentPage: 1,
         pageSrc: null,
         // 学习资料网站
@@ -1044,6 +1044,7 @@
         // if (!this.validDeviceId()) {
         //   return;
         // }
+        this.currentPage = 0;
         this.material = url;
         let param = {
           material: url,
@@ -1159,7 +1160,7 @@
           this.scaleId = null;
           return;
         }
-        if (this.totalPage == null) {
+        if (this.totalPage == 0) {
           this.$message({
             message: '请先选择文件开始文件播放',
             type: 'warning'
@@ -1193,7 +1194,7 @@
           return;
         }
         if (this.fileType == 1) {
-          if (this.totalPage == null) {
+          if (this.totalPage == 0) {
             this.$message({
               message: '请先选择文件开始文件播放',
               type: 'warning'
@@ -1214,7 +1215,8 @@
           meetingId: this.meetingId,
           distance: this.moveId,
           deviceId: this.deviceId,
-          imageIndex: this.currentPage
+          imageIndex: this.currentPage,
+          fileType:this.fileType
         }
         imageMove(param).then(response => {
           console.log('上移:', response);
@@ -1231,7 +1233,7 @@
           return;
         }
         if (this.fileType == 1) {
-          if (this.totalPage == null) {
+          if (this.totalPage == 0) {
             this.$message({
               message: '请先选择文件开始文件播放',
               type: 'warning'
@@ -1252,7 +1254,8 @@
           meetingId: this.meetingId,
           distance: this.moveId,
           deviceId: this.deviceId,
-          imageIndex: this.currentPage
+          imageIndex: this.currentPage,
+          fileType:this.fileType
         }
         imageMove(param).then(response => {
           console.log('下移:', response);
@@ -1302,7 +1305,7 @@
         if (!this.validDeviceId()) {
           return;
         }
-        if (this.totalPage == null) {
+        if (this.totalPage == 0) {
           this.$message({
             message: '请先选择文件开始文件播放',
             type: 'warning'
@@ -1326,11 +1329,11 @@
           return;
         }
         this.endFilePlay();
-        this.currentPage = null;
+        this.currentPage = 0;
         this.pageSrc = null;
         this.imageList = [];
         // this.fileList = [];
-        this.totalPage = null;
+        this.totalPage = 0;
         this.currentPage = 1;
       },
       rsWord() {