Ver Fonte

views bugfix

yuedefeng há 5 anos atrás
pai
commit
1b99f8089f

+ 14 - 19
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodsinfo.vue

@@ -710,7 +710,7 @@
     <!--endprint1-->
     <el-card v-if="(isInvestigate) && (formData.InStyle != '2')">
       <el-row>
-        <el-col :span="4">
+        <el-col :span="24">
           <span>现场考察报告</span>
           <el-button type="primary" style="margin-left: 10px;" plain size="mini" title="上传" @click="openDialog()" >上传
           </el-button>
@@ -723,25 +723,20 @@
           <!--&lt;!&ndash;</div>&ndash;&gt;-->
           <!--</el-upload>-->
         </el-col>
-        <el-col :span="4">
-           <!-- <div v-for="(tmpUrl, index) in scenefileurllist" :key="index">
-            <el-link :href="'http://'+fileurlcut(scenefile.FileUrl, index)" target="_blank" type="primary">
+      </el-row>
+      <el-row style="margin-top: 10px;">
+        <viewer :images="scenefileurllist">
+          <el-col :span="6"  v-for="(tmpUrl,index) in scenefileurllist" :key="index" style="vertical-align: middle;	text-align: center;">
+            <el-link :href="'http://'+fileurlcut(scenefile.FileUrl, index)" target="_blank" type="primary"
+                     v-if="imgFormat(scenefile.FileUrl, index)" >
               {{scenefile.FileName.split('$')[index]}}</el-link>
-          </div> -->
-
-          <viewer :images="scenefileurllist">
-              <div  v-for="(tmpUrl,index) in scenefileurllist" :key="index" style="vertical-align: middle;	text-align: center;">
-                <el-link :href="'http://'+fileurlcut(scenefile.FileUrl, index)" target="_blank" type="primary"
-                  v-if="imgFormat(scenefile.FileUrl, index)" >
-                {{scenefile.FileName.split('$')[index]}}</el-link>
-                <img
-                  v-else
-                  class="photoStyle" alt=""
-                  :src="'http://'+fileurlcut(scenefile.FileUrl, index)"
-                  :key="index">
-              </div>
-          </viewer>
-        </el-col>
+            <img
+              v-else
+              class="photoStyle" alt=""
+              :src="'http://'+fileurlcut(scenefile.FileUrl, index)"
+              :key="index">
+          </el-col>
+        </viewer>
       </el-row>
     </el-card>
 

+ 4 - 5
src/dashoo.cn/frontend_web/src/components/oilsupplier/manufacturerlist.vue

@@ -17,8 +17,8 @@
           <!-- <el-link :href="scope.row.FileUrl" target="_blank" type="primary">
             {{scope.row.FileUrl}}
           </el-link> -->
-       
-          <viewer :images="FileUrl">
+
+          <viewer>
               <div style="vertical-align: middle;	text-align: center;">
                 <el-link :href="'http://'+fileurlcut(scope.row.FileUrl)" target="_blank" type="primary"
                   v-if="imgFormat(scope.row.FileUrl)" >
@@ -26,12 +26,11 @@
                 <img
                   v-else
                   class="photoStyle" alt=""
-                  :src="'http://'+fileurlcut(scope.row.FileUrl)"
-                  :key="index">
+                  :src="'http://'+fileurlcut(scope.row.FileUrl)">
               </div>
           </viewer>
 
-       
+
         </template>
       </el-table-column>