|
@@ -524,6 +524,18 @@ export default {
|
|
|
this.PrintButton = false
|
|
|
this.loading = false
|
|
|
this.detailsPlanNum = res.result //所有详情
|
|
|
+ var fileList = this.detailsPlanNum.attachs!==''?this.detailsPlanNum.attachs.split(","):[]
|
|
|
+ this.fileList = []
|
|
|
+ if(fileList.length!==0){
|
|
|
+ fileList.map(item=>{
|
|
|
+ this.fileList.push({
|
|
|
+ uid: '-1',
|
|
|
+ name: item,
|
|
|
+ status: 'done',
|
|
|
+ url:'http://www.myfitt.cn:18001/jeecg-boot/sys/common/static' +'/'+item
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
//调整表头格式
|
|
|
this.adjustingHeader()
|
|
|
this.accidentListData = res.result.syCostAllocationAccidentList //事故单
|
|
@@ -626,7 +638,7 @@ export default {
|
|
|
if(data.fileList.length>this.fileList.length&&data.file.status=='uploading'){
|
|
|
var that =this
|
|
|
setTimeout(()=>{
|
|
|
- that.onSearch(this.detailsPlanNum.planNum,'query')
|
|
|
+ that.onSearch('query')
|
|
|
},1000)
|
|
|
|
|
|
}
|