|
@@ -423,7 +423,12 @@ export default {
|
|
|
checkFile(scope,type) {
|
|
|
if (this.dataList[scope.$index].fUrl) {
|
|
|
if(type === 0){
|
|
|
- if (scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.jpg'||scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.png'||scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.JPG'||scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.PNG'){
|
|
|
+ if (scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.jpg'||
|
|
|
+ scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.png'||
|
|
|
+ scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.JPG'||
|
|
|
+ scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.PNG'||
|
|
|
+ scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.jpeg'||
|
|
|
+ scope.row.fName.substring(scope.row.fName.lastIndexOf(".")) === '.JPEG'){
|
|
|
this.innerVisible = true
|
|
|
this.url = this.dataList[scope.$index].fUrl
|
|
|
}else {
|