Compare commits
19 Commits
master
...
feature/ai
Author | SHA1 | Date |
---|---|---|
|
96b358d365 | 1 year ago |
|
56697c6f8d | 1 year ago |
|
69d8ff5a5d | 1 year ago |
|
9919087275 | 2 years ago |
|
91147334b0 | 2 years ago |
|
792c3d26b0 | 2 years ago |
|
66dd3de27b | 2 years ago |
|
393f666dc6 | 2 years ago |
|
d8d381101f | 2 years ago |
|
9604dedffd | 2 years ago |
|
099bcec74d | 2 years ago |
|
0524237ae6 | 2 years ago |
|
be056f701f | 2 years ago |
|
ecf2c1399b | 2 years ago |
|
b1b93cb438 | 2 years ago |
|
107c90ea45 | 2 years ago |
|
f273ba49a8 | 2 years ago |
|
e8d142ed5a | 2 years ago |
|
8152c798ca | 2 years ago |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 4.1 KiB |
@ -1,38 +1,38 @@
|
||||
.toolbarWrapper {
|
||||
width: 68px;
|
||||
position: fixed;
|
||||
right: 10px;
|
||||
z-index: 100;
|
||||
background: #fff;
|
||||
border-radius: 20px;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
text-align: center;
|
||||
.progressWrapper {
|
||||
position: relative;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
margin-left: 20px;
|
||||
.progressLine {
|
||||
height: 100px;
|
||||
width: 0px;
|
||||
border-left: 2px solid #C9C9C9;
|
||||
margin-left: 12px;
|
||||
}
|
||||
.progressBtn {
|
||||
width: 16px;
|
||||
height: 9px;
|
||||
background-color: #C9C9C9;
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
top: 0px;
|
||||
}
|
||||
width: 68px;
|
||||
position: fixed;
|
||||
right: 10px;
|
||||
z-index: 100;
|
||||
background: #fff;
|
||||
border-radius: 20px;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
text-align: center;
|
||||
.progressWrapper {
|
||||
position: relative;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
margin-left: 20px;
|
||||
.progressLine {
|
||||
height: 100px;
|
||||
width: 0px;
|
||||
border-left: 2px solid #c9c9c9;
|
||||
margin-left: 12px;
|
||||
}
|
||||
.toolBarItem {
|
||||
display: block;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
margin-left: 20px;
|
||||
cursor: pointer;
|
||||
.progressBtn {
|
||||
width: 16px;
|
||||
height: 9px;
|
||||
background-color: #c9c9c9;
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
top: 0px;
|
||||
}
|
||||
}
|
||||
.toolBarItem {
|
||||
display: block;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
margin-left: 20px;
|
||||
// cursor: pointer;
|
||||
}
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
import React from 'react'
|
||||
|
||||
export default () => {
|
||||
return <div>Hello</div>
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import * as d3 from 'd3';
|
||||
import styles from './index.less';
|
||||
import { Image } from 'antd';
|
||||
|
||||
import WaterMark from 'watermark-component-for-react';
|
||||
|
||||
export default function chartPage() {
|
||||
const [url, setUrl] = useState();
|
||||
const [hasRight, setHasRight] = useState('true');
|
||||
const [watermark, setWatermark] = useState();
|
||||
|
||||
//获取数据
|
||||
useEffect(() => {
|
||||
d3.json('/api/ais/orgChart/chartData').then((res) => {
|
||||
setWatermark(res.data.watermark);
|
||||
setUrl(res.data.url);
|
||||
setHasRight('true');
|
||||
});
|
||||
}, []);
|
||||
|
||||
return (
|
||||
hasRight && (
|
||||
<>
|
||||
<WaterMark content={watermark} font="20px Microsoft Yahei">
|
||||
<div className={styles.chartContainer}>
|
||||
<Image
|
||||
src={url}
|
||||
preview={false}
|
||||
//src={page}
|
||||
height={'100vh'}
|
||||
/>
|
||||
</div>
|
||||
</WaterMark>
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
@ -1,11 +1,23 @@
|
||||
/*
|
||||
* @Author: Chengliang 1546584672@qq.com
|
||||
* @Date: 2023-08-08 17:38:47
|
||||
* @LastEditors: Chengliang 1546584672@qq.com
|
||||
* @LastEditTime: 2023-08-09 14:38:52
|
||||
* @FilePath: /org-chart-frant/src/pages/index.less
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEmax
|
||||
*/
|
||||
.title {
|
||||
background: rgb(121, 242, 157);
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
background: #F7F9FD;
|
||||
background: #f7f9fd;
|
||||
}
|
||||
|
||||
.contentWrapper {
|
||||
background-color: #F7F9FD;
|
||||
background-color: #f7f9fd;
|
||||
}
|
||||
|
||||
.chartContainer {
|
||||
text-align: center;
|
||||
}
|