javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectPerson/projectPerson.html
@@ -122,10 +122,15 @@ title : '证件编号', visible: false }, { field : 'remark', title : '备注' }, { field : 'documentPath', title : '证件照片', formatter: function(value, row, index) { return `<a onclick="viewUserFile('${row.documentPath}')" href="#">证件照</a>`; } }, { title: '操作', align: 'center', @@ -139,6 +144,11 @@ }; $.table.init(options); }); //查看证件照片 function viewUserFile(path) { var filepath = "/bjfw/"+path; window.open(filepath) } </script> </body> </html>