部门台账和岗位台账列表 增加附件字段并支持跳转
This commit is contained in:
parent
21801124c1
commit
db7549fff4
|
|
@ -387,13 +387,19 @@ export default class Department extends React.Component {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (c.dataIndex == 'departmentMark') {
|
if (c.dataIndex == 'departmentMark') {
|
||||||
c.className = "wea-table-indent"
|
|
||||||
c.render = function (text, record) {
|
c.render = function (text, record) {
|
||||||
return <a href='javascript:void(0);' onClick={() => {
|
return <a href='javascript:void(0);' onClick={() => {
|
||||||
window.open(`/spa/organization/static/index.html#/main/organization/departmentExtend/${record.id}`, "_blank")
|
window.open(`/spa/organization/static/index.html#/main/organization/departmentExtend/${record.id}`, "_blank")
|
||||||
}}>{text}</a>
|
}}>{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') {
|
if (c.dataIndex == 'operate') {
|
||||||
c.className = "wea-table-operates"
|
c.className = "wea-table-operates"
|
||||||
c.width = 80
|
c.width = 80
|
||||||
|
|
|
||||||
|
|
@ -349,6 +349,13 @@ export default class Job extends React.Component {
|
||||||
}}>{text}</a>
|
}}>{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') {
|
if (c.dataIndex == 'operate') {
|
||||||
c.className = "wea-table-operates"
|
c.className = "wea-table-operates"
|
||||||
c.width = 80
|
c.width = 80
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue