Ver Fonte

fix:学时审核(图片显示)

xiexaing há 1 ano atrás
pai
commit
6af0ad6270

+ 7 - 2
src/views/classHoursReview/component/LessonTable.vue

@@ -38,7 +38,7 @@
                 <el-image
                   style="width: 100%; height: 100%"
                   :src="$methodsTools.splitImgHost(its.photo)"
-                  :preview-src-list="[$methodsTools.splitImgHost(its.photo)]"
+                  :preview-src-list="returnImgUrl(scope.row.userStudyRecordPhotoList)"
                 >
                 </el-image>
                 <div class="abos">
@@ -558,6 +558,11 @@ export default {
     allIds() {
       return this.getAllIds();
     },
+    returnImgUrl: function() {
+      return function(ary) {
+        return ary && ary.map(i => this.$methodsTools.splitImgHost(i.photo)) || []
+      }
+    }
   },
   components: {
     CheatDialog,
@@ -569,7 +574,7 @@ export default {
 .liImgs {
   float: left;
   width: 168px;
-  height: 224px;
+  //height: 224px;
   margin-right: 16px;
   margin-bottom: 16px;
   position: relative;

+ 7 - 2
src/views/education/classManageMent/classHoursReview/component/LessonTable.vue

@@ -29,7 +29,7 @@
                 <el-image
                   style="width: 100%; height: 100%"
                   :src="$methodsTools.splitImgHost(its.photo)"
-                  :preview-src-list="[$methodsTools.splitImgHost(its.photo)]"
+                  :preview-src-list="returnImgUrl(scope.row.userStudyRecordPhotoList)"
                 >
                 </el-image>
                 <div class="abos" @click="imgChange(scope.row.userStudyRecordPhotoList[inds],'photo',its.photo)">
@@ -453,6 +453,11 @@ export default {
     allIds() {
       return this.getAllIds();
     },
+    returnImgUrl: function() {
+      return function(ary) {
+        return ary && ary.map(i => this.$methodsTools.splitImgHost(i.photo)) || []
+      }
+    }
   },
   components: {
     CheatDialog,
@@ -464,7 +469,7 @@ export default {
 .liImgs {
   float: left;
   width: 210px;
-  height: 280px;
+  // height: 280px;
   margin-right: 16px;
   margin-bottom: 16px;
   position: relative;