部门台账和岗位台账列表 增加附件字段并支持跳转

This commit is contained in:
Chengliang 2025-03-20 17:01:56 +08:00
parent 21801124c1
commit db7549fff4
2 changed files with 14 additions and 1 deletions

View File

@ -387,13 +387,19 @@ export default class Department extends React.Component {
}
};
if (c.dataIndex == 'departmentMark') {
c.className = "wea-table-indent"
c.render = function (text, record) {
return <a href='javascript:void(0);' onClick={() => {
window.open(`/spa/organization/static/index.html#/main/organization/departmentExtend/${record.id}`, "_blank")
}}>{text}</a>
}
}
if (c.dataIndex == 'imageFileName') {
c.render = function (text, record) {
return <a href='javascript:void(0);' onClick={() => {
window.open(`/spa/document/index2file.jsp?imagefileId=${record.imageFileId}&router=1#/main/document/fileView`, "_blank")
}}>{text}</a>
}
}
if (c.dataIndex == 'operate') {
c.className = "wea-table-operates"
c.width = 80

View File

@ -349,6 +349,13 @@ export default class Job extends React.Component {
}}>{text}</a>
}
}
if (c.dataIndex == 'imageFileName') {
c.render = function (text, record) {
return <a href='javascript:void(0);' onClick={() => {
window.open(`/spa/document/index2file.jsp?imagefileId=${record.imageFileId}&router=1#/main/document/fileView`, "_blank")
}}>{text}</a>
}
}
if (c.dataIndex == 'operate') {
c.className = "wea-table-operates"
c.width = 80