| | |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '车辆照片', field: 'carPhoto', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | {title: '车辆照片', field: 'peopleAndCarsPhone', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | formatter: function (value, row) { |
| | | if (row.carPhoto == null || row.carPhoto == '') { |
| | | if (row.peopleAndCarsPhone == null || row.peopleAndCarsPhone == '') { |
| | | return '<a class = "view" href="javascript:void(0)"><img style="width: 50px;height:50px;" src="' + Feng.ctxPath + '/static/img/NoPIC.png" /></a>'; |
| | | } else { |
| | | return '<a class = "view" href="javascript:void(0)"><img style="width: 90px;height:50px;" src="' + row.carPhoto + '" /></a>'; |
| | | return '<a class = "view" href="javascript:void(0)"><img style="width: 90px;height:50px;" src="' + row.peopleAndCarsPhone + '" /></a>'; |
| | | } |
| | | }, |
| | | events: 'operateEvents' |
| | |
| | | } |
| | | return btn; |
| | | } |
| | | }, |
| | | {title: '保险照片', field: 'insurancePhoto', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | formatter: function (value, row) { |
| | | if (row.insurancePhoto == null || row.insurancePhoto == '') { |
| | | return '<a class = "view" href="javascript:void(0)"><img style="width: 50px;height:50px;" src="' + Feng.ctxPath + '/static/img/NoPIC.png" /></a>'; |
| | | } else { |
| | | return '<a class = "view" href="javascript:void(0)"><img style="width: 90px;height:50px;" src="' + row.insurancePhoto + '" /></a>'; |
| | | } |
| | | }, |
| | | } |
| | | ]; |
| | | }; |