瀏覽代碼

面损表-上传附件

jbb 2 年之前
父節點
當前提交
b8255338fc
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/views/reportForms/fabric-loss-table.vue

+ 6 - 2
src/views/reportForms/fabric-loss-table.vue

@@ -796,7 +796,10 @@ export default {
         { title: '金额', dataIndex: 'ioriSum', width: 120, className: 'replacecolor' }
       ],
       accidentListData: [{ accidentNum: '1100011' }, { accidentNum: '3540011' }],
-      importExcelUrl: 'report/FabricLoss/addFile' ,// 导入
+      url: {
+        list: '/sys/user/list',
+        importExcelUrl: 'report/FabricLoss/addFile' ,// 导入
+      },
       noteOne: '', // 备注 1
       noteTwo: '' // 备注 2
     }
@@ -804,7 +807,7 @@ export default {
   computed: {
     // 附件上传
     importExcelUrl: function() {
-      return `${window._CONFIG['domianURL']}/${this.importExcelUrl}`
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
     },
   },
 
@@ -871,6 +874,7 @@ export default {
               this.PrintButton = false
               this.fabricLoss = res.result;
               var fileList = this.fabricLoss.attachs.split(",")
+              this.fileList = []
               fileList.map(item=>{
                   this.fileList.push({
                     uid: '-1',