组织全路径点击1

This commit is contained in:
Chengliang 2024-08-27 16:10:56 +08:00
parent 87d395d197
commit 83aed0d13a
1 changed files with 11 additions and 0 deletions

View File

@ -50,6 +50,17 @@ const WeaTable = WeaTableNew.WeaTable;
const { ButtonSelect } = WeaDropdown;
const getLabel = WeaLocaleProvider.getLabel;
const viewDepartment = (id) => {
window.open(`/spa/hrm/engine.html#/hrmengine/organization?showTree=false&isView=1&type=department&id=${id}`);
}
const viewSubCompany = (id) => {
window.open(`/spa/hrm/engine.html#/hrmengine/organization?showTree=false&isView=1&type=subcompany&id=${id}`);
}
window.viewDepartment = viewDepartment;
window.viewSubCompany = viewSubCompany;
@inject('resource')
@inject('datasImport')
@observer