|
|
|
@ -87,7 +87,7 @@ export default function userPage() {
|
|
|
|
|
// 获取数据
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
document.cookie =
|
|
|
|
|
'loginidweaver=1; languageidweaver=7; loginuuids=1; JSESSIONID=aaa1QNMWge48Bh-3oq6oy; ecology_JSessionid=aaa1QNMWge48Bh-3oq6oy; __randcode__=5c4300d1-05d6-4ca6-adb4-f4e23a47acb5';
|
|
|
|
|
'Webstorm-3d4d3ad4=b8ca5bef-a131-4c2b-81da-6f8595481dc2; ecology_JSessionid=aaadYmKjyxMd8_cZAZkuy; JSESSIONID=aaadYmKjyxMd8_cZAZkuy; loginidweaver=1; languageidweaver=7; loginuuids=1; __randcode__=092aa42b-2879-41a3-81e9-7e50b58aa689';
|
|
|
|
|
d3.json(
|
|
|
|
|
// "/user/data"
|
|
|
|
|
'/api/bs/hrmorganization/orgchart/userData?fclass=0&root=0&date=' +
|
|
|
|
@ -214,6 +214,17 @@ export default function userPage() {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const handleSynchronous = (requestData) => {
|
|
|
|
|
let api = '/api/bs/hrmorganization/orgchart/synchronousData';
|
|
|
|
|
fetch(api)
|
|
|
|
|
.then((res) => res.json())
|
|
|
|
|
.then((data) => {
|
|
|
|
|
message.success('同步成功');
|
|
|
|
|
this.handleSearch(requestData);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (active == 'left') {
|
|
|
|
|
orgChart &&
|
|
|
|
@ -290,7 +301,7 @@ export default function userPage() {
|
|
|
|
|
<img src="${
|
|
|
|
|
d.data.fleaderimg
|
|
|
|
|
? d.data.fleaderimg
|
|
|
|
|
: d.data.ftype == 0
|
|
|
|
|
: d.data.ftype == 0 || d.data.ftype == 1
|
|
|
|
|
? './img/company.png'
|
|
|
|
|
: './img/default_avator.png'
|
|
|
|
|
}" style="width: 58px; height: 58px;position:absolute;left:29px; border-radius: 50%; margin-top: 16px;position:absolute;left:29px;z-index:999"/>
|
|
|
|
@ -496,6 +507,9 @@ export default function userPage() {
|
|
|
|
|
setRequestRes(requestData);
|
|
|
|
|
handleSearch(requestData);
|
|
|
|
|
}}
|
|
|
|
|
onSynchronous={(requestData) => {
|
|
|
|
|
handleSynchronous(requestData);
|
|
|
|
|
}}
|
|
|
|
|
type="user"
|
|
|
|
|
url="/api/bs/hrmorganization/orgchart/getCondition?type=user"
|
|
|
|
|
/>
|
|
|
|
|