部门负责人图像及人员按照上下级分布
This commit is contained in:
parent
445aa1f00c
commit
a8820eeb94
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
|
|
@ -247,7 +247,11 @@ export default class DrawerComponents extends React.Component {
|
|||
</div>
|
||||
<div style="display: inline-block; background-size: 100% 100%; width: 35%; height: 90px; text-align:center; vertical-align: top; margin-left: 11px;box-sizing: border;">
|
||||
<img src='./img/user-card/avatar-outer.png' style='position:absolute;width:90px;height:90px;left:11px'/>
|
||||
<img src="./img/department.png" style="width: 58px; height: 58px;position:absolute;left:29px; border-radius: 50%; margin-top: 16px;position:absolute;left:29px;z-index:999"/>
|
||||
<img src="${
|
||||
d.data.fleaderimg
|
||||
? d.data.fleaderimg
|
||||
: './img/department.png'
|
||||
}" style="width: 58px; height: 58px;position:absolute;left:29px; border-radius: 50%; margin-top: 16px;position:absolute;left:29px;z-index:999"/>
|
||||
</div>
|
||||
<div style="display: inline-block; margin-left: 6px;width: 55%">
|
||||
<div class="dept-box" style="font-size: 15px;font-family: Microsoft YaHei-Regular, Microsoft YaHei;font-weight: 900;color: #333333;height: 25px;line-height: 25px;width:110px,white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">
|
||||
|
|
|
|||
|
|
@ -97,8 +97,15 @@ export default function companyPage() {
|
|||
};
|
||||
|
||||
// 获取部门图片
|
||||
function getDepartmentImage(fisvitual) {
|
||||
return fisvitual == '0' ? `./img/back/level4.png` : `./img/back/level8.png`;
|
||||
function getDepartmentImage(fisvitual, colorCheck) {
|
||||
const fclass = topbar.state.requestData.fclass;
|
||||
if (fclass == '0') {
|
||||
return fisvitual == '0'
|
||||
? `./img/back/level4.png`
|
||||
: `./img/back/level8.png`;
|
||||
} else {
|
||||
return `./img/sship/dept${colorCheck}.png`;
|
||||
}
|
||||
}
|
||||
|
||||
// 获取分部图片
|
||||
|
|
@ -190,6 +197,7 @@ export default function companyPage() {
|
|||
<div style='position:absolute;height:100%'>
|
||||
<img style='width:144px;height:106px' src="${getDepartmentImage(
|
||||
d.data.fisvitual,
|
||||
d.data.colorCheck,
|
||||
)}"/>
|
||||
</div>
|
||||
<div style="width: 144px;height: 80px;top: 35px;position: relative;font-weight: 400;font-size: 14px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue