背景图修饰替换
This commit is contained in:
parent
6b4fdabeb7
commit
0dbb7a240c
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
|
|
@ -52,7 +52,7 @@ export const OrgChartComponent = memo((props, ref) => {
|
||||||
.layout('top')
|
.layout('top')
|
||||||
.linkUpdate(function (d, i, arr) {
|
.linkUpdate(function (d, i, arr) {
|
||||||
d3.select(this)
|
d3.select(this)
|
||||||
.attr('stroke', '#66BAF5')
|
.attr('stroke', '#dcdddc')
|
||||||
.attr('stroke-width', 1)
|
.attr('stroke-width', 1)
|
||||||
.style('stroke-dasharray', '3, 3');
|
.style('stroke-dasharray', '3, 3');
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -99,12 +99,14 @@ export default function companyPage() {
|
||||||
|
|
||||||
// 获取部门图片
|
// 获取部门图片
|
||||||
function getDepartmentImage(fisvitual) {
|
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) {
|
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渲染
|
// ButtonContent渲染
|
||||||
const buttonContentRender = ({ node, state }) => {
|
const buttonContentRender = ({ node, state }) => {
|
||||||
if (node.children) {
|
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 {
|
} 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-size: 24px;
|
||||||
font-family: Microsoft YaHei-Bold, Microsoft YaHei;
|
font-family: Microsoft YaHei-Bold, Microsoft YaHei;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #000000;
|
color: #1f0ea3;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@
|
||||||
.tooltip .tooltiptext {
|
.tooltip .tooltiptext {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
width: 144px;
|
width: 144px;
|
||||||
background-color: #555;
|
background-color: #1f0ea3;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ export default function userPage() {
|
||||||
// 获取数据
|
// 获取数据
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.cookie =
|
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(
|
d3.json(
|
||||||
'/api/bs/hrmorganization/orgchart/userData?fclass=0&fisvitual=0&root=0&level=3&id=0',
|
'/api/bs/hrmorganization/orgchart/userData?fclass=0&fisvitual=0&root=0&level=3&id=0',
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue