Просмотр исходного кода

标的产品信息的产品图的查看

zhuliu 1 год назад
Родитель
Сommit
ed5a77395f

+ 9 - 2
src/views/report/tort/components/informationEntry/informationEntry.vue

@@ -69,7 +69,7 @@
           <span>{{ form.surveyArea }}</span>
         </el-form-item>
         <el-form-item label="产品图:">
-          <el-upload ref="upload" action="#" :auto-upload="false" multiple :on-change="handleChange" list-type="picture"
+          <!-- <el-upload ref="upload" action="#" :auto-upload="false" multiple :on-change="handleChange" list-type="picture"
             :show-file-list="false">
             <span style="display:flex;flex-direction:row;flex-wrap:wrap;">
               <span class="avatar" v-for="(item) in form.systemFileList" :key="item.guid || item.uid"
@@ -85,7 +85,14 @@
               </span>
               <i v-if="isFormEdit" class="el-icon-plus avatar-uploader-icon"></i>
             </span>
-          </el-upload>
+          </el-upload> -->
+          <span style="display:flex;flex-direction:row;flex-wrap:wrap;">
+              <span class="avatar" v-for="(item) in form.systemFileList" :key="item.guid || item.uid"
+                style="margin-left:10px">
+                <el-image ref="image" class="img" :src="item.guid ? $commonJS.checkViewer(item.guid) : item.url"
+                  :preview-src-list="form.systemFileList ? form.systemFileList.map(item => { return item.guid ? $commonJS.checkViewer(item.guid) : item.url }) : []"></el-image>
+              </span>
+            </span>
         </el-form-item>
         <el-form-item v-if="reportType == 3" label="检索策略:">
           <span>{{ form.searchPolicy }}</span>