|
@@ -294,18 +294,17 @@ export default {
|
|
|
},
|
|
|
handlePicList(arr) {
|
|
|
let picObject = {}
|
|
|
+ let video = []
|
|
|
//处理数据格式
|
|
|
arr.map(i => {
|
|
|
- if (i.InputMode == 'F2') {
|
|
|
+ if (i.InputMode == 'F2' || i.InputMode == 'F1') {
|
|
|
switch (i.Path) {
|
|
|
- case 'LedgerParam.PhotoDoc.Drawing':
|
|
|
case 'LedgerParam.Siteinstall.InstallPic':
|
|
|
- case 'LedgerParam.Siteinstall.InstallDrawing':
|
|
|
case 'LedgerParam.PhotoDoc.Nameplate':
|
|
|
case 'LedgerParam.PhotoDoc.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')
|
|
|
+ video = video.concat(this.instance[i.Path].filter(i => i.Type === 'video'))
|
|
|
}
|
|
|
if (picObject[i.InfoPointName]) {
|
|
|
} else {
|
|
@@ -333,7 +332,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.exhibitionImage.arr = isArray
|
|
|
- let video = isArray.filter(i => i.Type != 'image' && i.type != 'image')
|
|
|
this.exhibitionVideo.list = video
|
|
|
//判断是否显示图片组件
|
|
|
this.isShowImage = isArray.length ? true : false
|
|
@@ -347,9 +345,22 @@ export default {
|
|
|
arr.map(i => {
|
|
|
if (i.InputMode == 'F2') {
|
|
|
switch (i.Path) {
|
|
|
- case 'LedgerParam.InsuranceDoc.InsuranceFile':
|
|
|
- case 'LedgerParam.PhotoDoc.Archive':
|
|
|
- case 'LedgerParam.Siteinstall.CheckReport':
|
|
|
+ case 'LedgerParam.EquipManufactor.OriginalCertificate': //原厂证明
|
|
|
+ case 'LedgerParam.SupplyPurchase.AcceptanceReport': //验收报告
|
|
|
+ case 'LedgerParam.OperationMainte.MaintainManual': //维修保养手册
|
|
|
+ case 'LedgerParam.PhotoDoc.Archive': //设备文档
|
|
|
+ case 'LedgerParam.PhotoDoc.Drawing': //设备图纸
|
|
|
+ case 'LedgerParam.SupplyPurchase.ApproachingAcceptance': //进场验收单
|
|
|
+ case 'LedgerParam.EquipManufactor.TestReport': //检测报告
|
|
|
+ case 'LedgerParam.SupplyPurchase.SupplierContract': //供应合同
|
|
|
+ case 'LedgerParam.PhotoDoc.ProductCertification': //产品合格证
|
|
|
+ case 'LedgerParam.PhotoDoc.OperationManual': //操作说明书
|
|
|
+ case 'LedgerParam.InsuranceDoc.InsuranceFile': //保险文件
|
|
|
+ case 'LedgerParam.Siteinstall.CheckReport': //安装质检报告
|
|
|
+ case 'LedgerParam.Siteinstall.InstallDrawing': //安装图纸
|
|
|
+ case 'LedgerParam.Siteinstall.InstallInstruction': //安装说明书
|
|
|
+ case 'TechParam.CompleteMachine.DesignIDGraph': //设计工况空调机组处理过程焓湿图
|
|
|
+ case 'TechParam.AirSupply.FanCharacterCurve': //风机性能曲线
|
|
|
if (this.instance.hasOwnProperty(i.Path)) {
|
|
|
i.fileList = this.instance[i.Path]
|
|
|
}
|