2
3
baichengfei 5 лет назад
Родитель
Сommit
a617d5e506
1 измененных файлов с 6 добавлено и 7 удалено
  1. 6 7
      src/dashoo.cn/frontend_web/src/components/oilsupplier/goodsinfo.vue

+ 6 - 7
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodsinfo.vue

@@ -710,7 +710,7 @@
     <!--打印内容结束-->
     <!--打印内容结束-->
     <!--endprint1-->
     <!--endprint1-->
     <!-- && (formData.InStyle != '2') -->
     <!-- && (formData.InStyle != '2') -->
-    <el-card>
+    <el-card style="margin-top: 35px;">
       <el-row>
       <el-row>
         <el-col :span="24">
         <el-col :span="24">
           <span>现场考察报告</span>
           <span>现场考察报告</span>
@@ -726,10 +726,9 @@
           <!--</el-upload>-->
           <!--</el-upload>-->
         </el-col>
         </el-col>
       </el-row>
       </el-row>
-      <el-row style="margin-top: 10px;">
-        <el-table :data="scenefileurllist" border size="mini">
+<!--      <el-row style="margin-top: 10px;">-->
+        <el-table :data="scenefileurllist" border size="mini" empty-text="暂无数据" style="margin-top: 30px;">
           <el-table-column prop="FileUrlList" label="报告" show-overflow-tooltip>
           <el-table-column prop="FileUrlList" label="报告" show-overflow-tooltip>
-            <template slot="empty" v-if="scenefile.FileName == ''">暂无数据</template>
             <template slot-scope="scope">
             <template slot-scope="scope">
               <viewer :images="scenefileurllist">
               <viewer :images="scenefileurllist">
                 <el-col :span="6"  v-for="(tmpUrl,index) in scenefileurllist" v-if="index<1" :key="index" style="vertical-align: middle;	text-align: center;">
                 <el-col :span="6"  v-for="(tmpUrl,index) in scenefileurllist" v-if="index<1" :key="index" style="vertical-align: middle;	text-align: center;">
@@ -764,7 +763,7 @@
 <!--              :key="index">-->
 <!--              :key="index">-->
 <!--          </el-col>-->
 <!--          </el-col>-->
 <!--        </viewer>-->
 <!--        </viewer>-->
-      </el-row>
+<!--      </el-row>-->
     </el-card>
     </el-card>
 
 
     <el-dialog title="现场考察报告" :visible.sync="visible" top="5vh" width="900px">
     <el-dialog title="现场考察报告" :visible.sync="visible" top="5vh" width="900px">
@@ -1378,9 +1377,9 @@ export default {
         this.isInvestigate = true
         this.isInvestigate = true
         this.$axios.get('/supplier/getscenefilelist', {params}).then(res => {
         this.$axios.get('/supplier/getscenefilelist', {params}).then(res => {
           this.scenefile = res.data.item
           this.scenefile = res.data.item
-          if (this.scenefile && this.scenefile != null) {
+          if (this.scenefile && this.scenefile.FileUrl && this.scenefile != null) {
             this.scenefileurllist = this.scenefile.FileUrl.split('$')
             this.scenefileurllist = this.scenefile.FileUrl.split('$')
-            console.log(this.scenefile, '说过的话')
+            console.log(this.scenefileurllist, '说过的话')
           }
           }
         })
         })
       }
       }