|
@@ -468,7 +468,7 @@ export default {
|
|
}
|
|
}
|
|
this.showDetail = true
|
|
this.showDetail = true
|
|
this.detailTitle = '图片预览'
|
|
this.detailTitle = '图片预览'
|
|
- this.getDetailData(val)
|
|
|
|
|
|
+ this.getDetailData(val, type)
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 显示附件详情
|
|
* 显示附件详情
|
|
@@ -492,25 +492,7 @@ export default {
|
|
this.isClickAccessory = true
|
|
this.isClickAccessory = true
|
|
this.showAccessory = true
|
|
this.showAccessory = true
|
|
this.detailTitle = '附件预览'
|
|
this.detailTitle = '附件预览'
|
|
- this.getDetailData(val)
|
|
|
|
- },
|
|
|
|
- /**
|
|
|
|
- * 显示附件详情
|
|
|
|
- */
|
|
|
|
- showReportDetail(val) {
|
|
|
|
- console.log('val', val)
|
|
|
|
- if (type === 'equip') {
|
|
|
|
- if (!val.file_type || !val.file_type_id) {
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (!val.attachments_num) {
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- this.showDetail = true
|
|
|
|
- this.detailTitle = '附件预览'
|
|
|
|
- this.getDetailData(val)
|
|
|
|
|
|
+ this.getDetailData(val, type)
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 获取图片/报告详情
|
|
* 获取图片/报告详情
|