Browse Source

Fix Bug: 047

chris 3 years ago
parent
commit
a75cf62c24
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/views/modules/production/equipment.vue

+ 8 - 3
src/views/modules/production/equipment.vue

@@ -91,10 +91,13 @@
         prop="-"
         header-align="center"
         align="center"
-        min-width="120"
+        min-width="200"
         label="使用说明书">
         <template slot-scope="scope">
-          <a v-for="(item, index) in scope.row.attachList" :key="item.fileName + index" type="primary" :href="downloadUrl + item.url" target="_blank">{{ item.fileName }}</a>
+          <div v-for="(item, index) in scope.row.attachList">
+          <a :key="item.fileName + index" type="primary" :href="downloadUrl + item.url" target="_blank">{{ item.fileName }}</a>
+            <span v-if="index > 0">,</span>
+          </div>
         </template>
       </el-table-column>
       <el-table-column
@@ -147,6 +150,7 @@
 <script>
   import AddOrUpdate from './equipment-add-or-update'
   import { getEquipmentList } from '@/api/production'
+  import { downloadUrl } from '@/api/file'
   export default {
     name: 'equipment',
     components: {
@@ -180,7 +184,8 @@
             code: '4',
             value: '维修中'
           }
-        ]
+        ],
+        downloadUrl: downloadUrl
       }
     },
     created () {