add 图片下载按钮

master
luoyang 5 years ago
parent af404dc761
commit 4becf70a4e

@ -34,7 +34,7 @@
<img ng-src="{{file_src.file_value}}"class="col-sm-6" style="border: 1px solid #ddd" onerror="this.src='/static/images/file_close.png'">
</a>
<button class="btn btn-danger" type="button" ng-click="deleteComplianceFiles(file_src.file_id)">X</button>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" target="_blank"><i class="fa fa-download"></i></a>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" download=""><i class="fa fa-download"></i></a>
</td>
</tr>
</tbody>
@ -71,7 +71,7 @@
<img ng-src="{{file_src.file_value}}" class="col-sm-6" style="border: 1px solid #ddd" onerror="this.src='/static/images/file_close.png'">
</a>
<button class="btn btn-danger" type="button" ng-click="deleteComplianceFiles(file_src.file_id)">X</button>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" target="_blank"><i class="fa fa-download"></i></a>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" download="" ><i class="fa fa-download"></i></a>
</td>
</tr>
</tbody></table>
@ -114,7 +114,7 @@
<img ng-src="{{file_src.file_value}}" class="col-sm-6" style="border: 1px solid #ddd" onerror="this.src='/static/images/file_close.png'">
</a>
<button class="btn btn-danger" type="button" ng-click="deleteComplianceFiles(file_src.file_id)">X</button>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" target="_blank"><i class="fa fa-download"></i></a>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" download="" ><i class="fa fa-download"></i></a>
</td>
</tr>
</tbody></table>
@ -158,7 +158,7 @@
<img ng-src="{{file_src.file_value}}" class="col-sm-6" style="border: 1px solid #ddd" onerror="this.src='/static/images/file_close.png'">
</a>
<button class="btn btn-danger" type="button" ng-click="deleteComplianceFiles(file_src.file_id)">X</button>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" target="_blank"><i class="fa fa-download"></i></a>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" download=""><i class="fa fa-download"></i></a>
</td>
</tr>
</tbody></table>
@ -195,7 +195,7 @@
<img ng-src="{{file_src.file_value}}"class="col-sm-6" style="border: 1px solid #ddd" onerror="this.src='/static/images/file_close.png'">
</a>
<button class="btn btn-danger" type="button" ng-click="deleteComplianceFiles(file_src.file_id)">X</button>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" target="_blank"><i class="fa fa-download"></i></a>
<a role="button" class="btn-group btn btn-warning" type="button" ng-href="{{file_src.file_value}}" download=""><i class="fa fa-download"></i></a>
</td>
</tr>
</tbody></table>

Loading…
Cancel
Save