Browse Source

[新增]增加装备车辆链接

master
邵佳豪 4 years ago
parent
commit
a3493e7455
  1. 4
      src/app/ui/all-file/all-file.component.html
  2. 114
      src/app/ui/all-file/all-file.component.ts

4
src/app/ui/all-file/all-file.component.html

@ -104,7 +104,7 @@
<img *ngIf="element.type == 'avi' || element.type == 'swf'|| element.type == 'mov'" src="../../../assets/images/video.png" alt="">
<img *ngIf="element.type == 'mp3' || element.type == 'aif' || element.type == 'wav' || element.type == 'flac'" src="../../../assets/images/music.png" alt="">
<img *ngIf="element.isDir" src="../../../assets/images/file.png" alt="">
<img *ngIf="element.type == 'gaopenche' || element.type == 'denggao'" src="../../../assets/images/gaopenche.gif" alt="">
<img *ngIf="element.icontype == 'car' " src="../../../assets/images/gaopenche.gif" alt="">
<img *ngIf="element.type == 'jiqiren' || element.type == 'konghuqi'" src="../../../assets/images/shebei.jpg" alt="">
<img *ngIf="element.type == 'waifu' || element.type == 'neifu' || element.type == 'gong' || element.type == 'qiu'" src="../../../assets/images/sheshi.jpg" alt="">
@ -114,7 +114,7 @@
<span *ngIf="element.isDir == true" class="filename" (click)="clickName($event,element)">
{{element.key | name2}}
</span>
<span class="font3d" *ngIf="element.type == 'waifu' || element.type == 'neifu' || element.type == 'gong' || element.type == 'qiu' || element.type == 'gaopenche' || element.type == 'denggao' || element.type == 'jiqiren' || element.type == 'konghuqi'">
<span class="font3d" *ngIf="element.type == 'waifu' || element.type == 'neifu' || element.type == 'gong' || element.type == 'qiu' || element.type == 'jiqiren' || element.type == 'konghuqi' || element.icontype == 'car'">
&nbsp; 3D &nbsp;
</span>
</td>

114
src/app/ui/all-file/all-file.component.ts

@ -112,19 +112,85 @@ export class AllFileComponent {
})
if(name.split('/')[1] == "装备"){
data.contents.unshift(
{ key: "装备车辆/高喷车",
{ key: "装备车辆/ZLJ5400JXFJP60高喷消防车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "gaopenche"
type: "ZLJ5400JXFJP60",
icontype : 'car'
},
{ key: "装备车辆/登高平台车",
{ key: "装备车辆/ZLF5311JXFDG32登高平台消防车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "denggao"
type: "ZLF5311JXFDG32",
icontype : 'car'
},
{ key: "装备车辆/ZLF5430GXFSG250型水罐消防车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "ZLF5430GXFSG250",
icontype : 'car'
},
{ key: "装备车辆/SXF5361GXFGY200型泡沫消防车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "SXF5361GXFGY200",
icontype : 'car'
},
{ key: "装备车辆/BX5180TXFPY100HW5型排烟照明消防车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "BX5180TXFPY100HW5",
icontype : 'car'
},
{ key: "装备车辆/ZLF5300JXFYT32云梯消防车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "ZLF5300JXFYT32",
icontype : 'car'
},
{ key: "装备车辆/SJD5140TXFGQ123-MEA型供气消防车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "SJD5140TXFGQ123-MEA",
icontype : 'car'
},
{ key: "装备车辆/RY5182XXFQC100器材消防车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "RY5182XXFQC100",
icontype : 'car'
},
{ key: "装备车辆/HDX5160XZMC5ZQC0型多路输出照明发电车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "HDX5160XZMC5ZQC0",
icontype : 'car'
},
{ key: "装备车辆/ZLF5140TXFJY98型抢险救援消防车",
lastModified: null,
eTag: null,
size: 0,
isDir: false,
type: "ZLF5140TXFJY98",
icontype : 'car'
},
{ key: "装备车辆/机器人",
lastModified: null,
@ -282,13 +348,45 @@ export class AllFileComponent {
config.verticalPosition = 'top';
config.duration = 3000
this.snackBar.open('暂不支持在线预览大于20M的pdf文件,请下载查看','确定',config)
}else if(item.type == "gaopenche"){
}else if(item.type == "ZLJ5400JXFJP60"){
window.open("3dWidgets/ZLJ5400JXFJP60高喷消防车")
}else if(item.type == "ZLF5311JXFDG32"){
window.open("3dWidgets/ZLF5311JXFDG32登高平台消防车")
}else if(item.type == "ZLF5430GXFSG250"){
window.open("3dWidgets/ZLF5430GXFSG250型水罐消防车")
}else if(item.type == "SXF5361GXFGY200"){
window.open("3dWidgets/SXF5361GXFGY200型泡沫消防车")
}else if(item.type == "BX5180TXFPY100HW5"){
window.open("3dWidgets/BX5180TXFPY100HW5型排烟照明消防车")
}else if(item.type == "ZLF5300JXFYT32"){
window.open("3dWidgets/ZLF5300JXFYT32云梯消防车")
}else if(item.type == "SJD5140TXFGQ123-MEA"){
window.open("3dWidgets/SJD5140TXFGQ123-MEA型供气消防车")
}else if(item.type == "RY5182XXFQC100"){
window.open("3dWidgets/RY5182XXFQC100器材消防车")
}else if(item.type == "HDX5160XZMC5ZQC0"){
window.open("3dWidgets/GaoPenChe")
window.open("3dWidgets/HDX5160XZMC5ZQC0型多路输出照明发电车")
}else if(item.type == "denggao"){
}else if(item.type == "ZLF5140TXFJY98"){
window.open("3dWidgets/denggaoche")
window.open("3dWidgets/ZLF5140TXFJY98型抢险救援消防车")
}else if(item.type == "jiqiren"){

Loading…
Cancel
Save