|
|
@@ -1907,21 +1907,20 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- imgFormat(val,index){
|
|
|
- console.log(val)
|
|
|
- if(val !=null && val != undefined && val !=''){
|
|
|
+ imgFormat (val, index) {
|
|
|
+ if (val != null && val != undefined && val != '') {
|
|
|
let fileurlall = val.split('$')[index]
|
|
|
let fileurl = fileurlall.split('|')
|
|
|
- if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
|
|
|
- let Format = fileurl[1].split(".")
|
|
|
- if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
|
|
|
- let pictureFormat = Format[1];
|
|
|
- if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
|
|
|
- return false;
|
|
|
+ if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
|
|
|
+ let Format = fileurl[1].split('.')
|
|
|
+ if (Format[1] != null && Format[1] != '' && Format[1] != undefined) {
|
|
|
+ let pictureFormat = Format[1]
|
|
|
+ if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
|
|
|
+ return false
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- return true;
|
|
|
+ return true
|
|
|
}
|
|
|
},
|
|
|
fileurlcut (val, index) {
|
|
|
@@ -2228,13 +2227,13 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- /*getChooseCode (val) {
|
|
|
+ /* getChooseCode (val) {
|
|
|
this.dialogFormData.SubClassId = val.Id
|
|
|
this.dialogFormData.SortFlag = val.Id.toString() // 记录OilBasisBuild表的Id
|
|
|
this.dialogFormData.Code = val.Code
|
|
|
this.dialogFormData.Name = val.Name
|
|
|
this.basisDialog = false
|
|
|
- },*/
|
|
|
+ }, */
|
|
|
|
|
|
// 根据条件查找基建类层级列表
|
|
|
seachData () {
|