|
@@ -303,18 +303,17 @@ export default {
|
|
|
},
|
|
|
handlePicList(arr) {
|
|
|
let picObject = {}
|
|
|
+ let video = []
|
|
|
//处理数据格式
|
|
|
arr.map(i => {
|
|
|
if (i.dataType == 'ATTACHMENT') {
|
|
|
switch (i.path) {
|
|
|
- case 'infos.drawing':
|
|
|
case 'infos.installPic':
|
|
|
- case 'infos.installDrawing':
|
|
|
case 'infos.nameplate':
|
|
|
case 'infos.pic':
|
|
|
- case 'pic' :
|
|
|
if (this.instance.hasOwnProperty(i.path)) {
|
|
|
- i.PicList = this.instance[i.path]
|
|
|
+ i.PicList = this.instance[i.path].filter(i => i.type === 'image' || i.type === 'panorama')
|
|
|
+ video = video.concat(this.instance[i.path].filter(i => i.type === 'video'))
|
|
|
}
|
|
|
if (picObject[i.name]) {
|
|
|
} else {
|
|
@@ -342,7 +341,6 @@ export default {
|
|
|
}
|
|
|
this.exhibitionImage.list = picObject
|
|
|
this.exhibitionImage.arr = isArray
|
|
|
- let video = isArray.filter(i => i.type === 'video')
|
|
|
this.exhibitionVideo.list = video
|
|
|
//判断是否显示图片组件
|
|
|
this.isShowImage = isArray.length ? true : false
|
|
@@ -356,9 +354,22 @@ export default {
|
|
|
arr.map(i => {
|
|
|
if (i.dataType == 'ATTACHMENT') {
|
|
|
switch (i.path) {
|
|
|
- case 'infos.insuranceFile':
|
|
|
- case 'infos.archive':
|
|
|
- case 'infos.checkReport':
|
|
|
+ case 'infos.originalCertificate': //原厂证明
|
|
|
+ case 'infos.acceptanceReport': //验收报告
|
|
|
+ case 'infos.maintainManual': //维修保养手册
|
|
|
+ case 'infos.archive': //设备文档
|
|
|
+ case 'infos.drawing': //设备图纸
|
|
|
+ case 'infos.approachingAcceptance': //进场验收单
|
|
|
+ case 'infos.testReport': //检测报告
|
|
|
+ case 'infos.supplierContract': //供应合同
|
|
|
+ case 'infos.productCertification': //产品合格证
|
|
|
+ case 'infos.operationManual': //操作说明书
|
|
|
+ case 'infos.insuranceFile': //保险文件
|
|
|
+ case 'infos.checkReport': //安装质检报告
|
|
|
+ case 'infos.installDrawing': //安装图纸
|
|
|
+ case 'infos.installInstruction': //安装说明书
|
|
|
+ case 'infos.designIDGraph': //设计工况空调机组处理过程焓湿图
|
|
|
+ case 'infos.fanCharacterCurve': //风机性能曲线
|
|
|
if (this.instance.hasOwnProperty(i.path)) {
|
|
|
i.fileList = this.instance[i.path]
|
|
|
}
|