|
|
@@ -7,7 +7,7 @@ import {
|
|
|
Coord,
|
|
|
Label
|
|
|
} from "bizcharts";
|
|
|
-import { message, Spin } from 'antd'
|
|
|
+import { message, Spin, Icon } from 'antd'
|
|
|
import DataSet from "@antv/data-set";
|
|
|
import './useStatus.css';
|
|
|
import { fetchPost, fetchGet } from '../../utils/fetchRequest';
|
|
|
@@ -21,6 +21,9 @@ let DAILYCOUNT = [];
|
|
|
let columnWidth = 300;
|
|
|
let mBaseUrl = window.location.origin + '/office';
|
|
|
|
|
|
+const IconFont = Icon.createFromIconfontCN({
|
|
|
+ scriptUrl: '//at.alicdn.com/t/font_1029568_7tx8nc4c0ts.js',
|
|
|
+});
|
|
|
|
|
|
export default class Basic extends Component {
|
|
|
constructor() {
|
|
|
@@ -66,7 +69,7 @@ export default class Basic extends Component {
|
|
|
DAILYCOUNT = dataSource.DAILYCOUNT;
|
|
|
dataLength = DURATIONLIST.length;
|
|
|
if (dataLength > 0) {
|
|
|
- columnWidth = dataLength * 45;
|
|
|
+ columnWidth = dataLength * 38;
|
|
|
} else {
|
|
|
columnWidth = 300
|
|
|
}
|
|
|
@@ -110,7 +113,6 @@ export default class Basic extends Component {
|
|
|
return a.DURATION - b.DURATION;
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
return (
|
|
|
<div className="useStatusRoot" >
|
|
|
<Spin size="large"
|
|
|
@@ -118,29 +120,30 @@ export default class Basic extends Component {
|
|
|
tip='数据请求中...'>
|
|
|
</Spin>
|
|
|
<div style={{ display: loading ? 'none' : 'flex' }} className='content'>
|
|
|
- <div className='branch'>{DEPART}</div>
|
|
|
- <div className='useNum'>使用人数{USERCOUNT}人</div>
|
|
|
+ <div className='branch'><IconFont type="icon-bumenguanli" /> {DEPART}</div>
|
|
|
+ <div className="numBox">
|
|
|
+ <div className='useNum'>使用人数{USERCOUNT}人</div>
|
|
|
+ <div className="iconBox"><IconFont type="icon-xitongyunweibumen" /></div>
|
|
|
+ </div>
|
|
|
<div className='lineCharts'>
|
|
|
- <div className='useAnaly'>成员使用分析</div>
|
|
|
- <Chart padding={['12%', '10%', '12%', '8%']} height={200} data={DAILYCOUNT} scale={cols} forceFit>
|
|
|
+ <Chart padding={['15%', '12%', '15%', '8%']} height={200} data={DAILYCOUNT} scale={cols} forceFit>
|
|
|
<Axis
|
|
|
name="DATE_TIME"
|
|
|
label={{
|
|
|
offset: 18,
|
|
|
textStyle: {
|
|
|
fontSize: '14',
|
|
|
- fill: '#959595'
|
|
|
+ fill: '#000'
|
|
|
}
|
|
|
}} />
|
|
|
<Axis
|
|
|
name="EMCOUNT"
|
|
|
position="right"
|
|
|
- grid={null}
|
|
|
label={{
|
|
|
offset: 10,
|
|
|
textStyle: {
|
|
|
fontSize: '14',
|
|
|
- fill: '#959595'
|
|
|
+ fill: '#000'
|
|
|
}
|
|
|
}}
|
|
|
/>
|