背景图修饰替换

中国民用航空华北地区空中交通管理局
Chengliang 8 months ago
parent 6b4fdabeb7
commit 0dbb7a240c

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -52,7 +52,7 @@ export const OrgChartComponent = memo((props, ref) => {
.layout('top')
.linkUpdate(function (d, i, arr) {
d3.select(this)
.attr('stroke', '#66BAF5')
.attr('stroke', '#dcdddc')
.attr('stroke-width', 1)
.style('stroke-dasharray', '3, 3');
})

@ -99,12 +99,14 @@ export default function companyPage() {
//
function getDepartmentImage(fisvitual) {
return fisvitual == '0' ? `./img/back/level4.png` : `./img/back/level8.png`;
return `./img/back/back.png`;
//return fisvitual == '0' ? `./img/back/level4.png` : `./img/back/level8.png`;
}
//
function getSubcompanyImage(fisvitual) {
return fisvitual == '0' ? `./img/back/level1.png` : `./img/back/level5.png`;
//return fisvitual == '0' ? `./img/back/level1.png` : `./img/back/level5.png`;
return `./img/back/back.png`;
}
//
@ -135,9 +137,9 @@ export default function companyPage() {
// ButtonContent
const buttonContentRender = ({ node, state }) => {
if (node.children) {
return `<div style="border-radius:3px;padding:3px;font-size:10px;margin:auto auto;background-color:#66BAF5"> <div style="margin-top:0px;line-height:1.35;height:11px;font-size:25px; color: #fff;">ˆ</div> </div>`;
return `<div style="border-radius:3px;padding:3px;font-size:10px;margin:auto auto;background-color:#1f0ea3"> <div style="margin-top:0px;line-height:1.35;height:11px;font-size:25px; color: #fff;">ˆ</div> </div>`;
} else {
return `<div style="border-radius:3px;padding:3px;font-size:10px;margin:auto auto;background-color:#66BAF5"> <div style="margin-top:0px;line-height:1.35;height:11px;font-size:25px; color: #fff;transform:rotate(180deg)">ˆ</div> </div>`;
return `<div style="border-radius:3px;padding:3px;font-size:10px;margin:auto auto;background-color:#1f0ea3"> <div style="margin-top:0px;line-height:1.35;height:11px;font-size:25px; color: #fff;transform:rotate(180deg)">ˆ</div> </div>`;
}
};
@ -175,7 +177,7 @@ export default function companyPage() {
font-size: 24px;
font-family: Microsoft YaHei-Bold, Microsoft YaHei;
font-weight: bold;
color: #000000;
color: #1f0ea3;
line-height: 28px;
letter-spacing: 1px;
margin-top: 10px;

@ -137,7 +137,7 @@
.tooltip .tooltiptext {
visibility: hidden;
width: 144px;
background-color: #555;
background-color: #1f0ea3;
color: #fff;
text-align: center;
border-radius: 6px;

@ -99,7 +99,7 @@ export default function userPage() {
//
useEffect(() => {
document.cookie =
'ecology_JSessionid=aaaqP0tTaKbFM9rJ6fQjz; JSESSIONID=aaaqP0tTaKbFM9rJ6fQjz; Systemlanguid=7; languageidweaver=7; loginuuids=1; __randcode__=811e5b8d-968b-4847-99ed-e0aa22b0ad4e; loginidweaver=sysadmin';
'ecology_JSessionid=aaaqP0tTaKbFM9rJ6fQjz; JSESSIONID=aaaqP0tTaKbFM9rJ6fQjz; loginuuids=1; Systemlanguid=7; languageidweaver=7; loginidweaver=sysadmin;';
d3.json(
'/api/bs/hrmorganization/orgchart/userData?fclass=0&fisvitual=0&root=0&level=3&id=0',
).then((data) => {

Loading…
Cancel
Save