地质所 沉降监测网建设项目
zmk
2024-05-21 d127b647f1a2e8c1c3490af276e97c024d52f904
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>