地质所 沉降监测网建设项目
chenhuan
2024-05-21 259f95deb2ea38287d488d12060d7600c36cd92a
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectPerson/projectPerson.html
@@ -104,10 +104,33 @@
                    field : 'responsibility', 
                    title : '职责'
                },
                {
                    field : 'remark',
                    title : '备注'
                },
                    {
                        field : 'inSiteTime',
                        title : '进场时间'
                    },
                    {
                        field : 'outSiteTime',
                        title : '出场时间'
                    },
                    {
                        field : 'documentType',
                        title : '证件类型',
                        visible: false
                    },
                    {
                        field : 'documentCode',
                        title : '证件编号',
                        visible: false
                    },
                    {
                        field : 'documentPath',
                        title : '证件照片',
                        formatter: function(value, row, index) {
                            return `<a onclick="viewUserFile('${row.documentPath}')" href="#">证件照</a>`;
                        }
                    },
                {
                    title: '操作',
                    align: 'center',
@@ -121,6 +144,11 @@
            };
            $.table.init(options);
        });
        //查看证件照片
        function viewUserFile(path) {
            var filepath = "/bjfw/"+path;
            window.open(filepath)
        }
    </script>
</body>
</html>