forked from Gitlink/forgeplus-react
pull
This commit is contained in:
commit
29531e8c0b
File diff suppressed because it is too large
Load Diff
|
@ -254,8 +254,7 @@ class Activity extends Component{
|
||||||
<span className="echartTitle">Issue演化图</span>
|
<span className="echartTitle">Issue演化图</span>
|
||||||
<Pie />
|
<Pie />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>:""
|
||||||
:""
|
|
||||||
}
|
}
|
||||||
<div className="commentsBox">
|
<div className="commentsBox">
|
||||||
<div className="trendsTop">
|
<div className="trendsTop">
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,35 +1,56 @@
|
||||||
import React ,{ useEffect } from 'react';
|
import React ,{ useEffect } from 'react';
|
||||||
import echarts from 'echarts/lib/echarts';
|
import * as echarts from 'echarts';
|
||||||
import 'echarts/lib/chart/line';
|
import 'echarts/lib/chart/line';
|
||||||
|
import axios from 'axios';
|
||||||
|
import { getdata } from './data';
|
||||||
|
|
||||||
function Line({data}) {
|
function Line() {
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
Init();
|
Init();
|
||||||
},[])
|
},[])
|
||||||
|
|
||||||
function Init() {
|
function Init() {
|
||||||
var huan_val = document.getElementById("line");
|
var chartDom = document.getElementById('line');
|
||||||
var myEcharts = echarts.init(huan_val);
|
var myChart = echarts.init(chartDom);
|
||||||
let option = {
|
var option;
|
||||||
|
console.log(getdata());
|
||||||
|
var data = getdata();
|
||||||
|
// axios.get('http://106.75.10.84:5000/Paddle/entropy').then((result)=>{
|
||||||
|
myChart.setOption(
|
||||||
|
(option = {
|
||||||
|
tooltip: {
|
||||||
|
trigger: 'axis'
|
||||||
|
},
|
||||||
|
color: ['orange'],
|
||||||
|
grid: {
|
||||||
|
left: '5%',
|
||||||
|
right: '1%',
|
||||||
|
bottom: '18%'
|
||||||
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
data: data.map(function (item) {
|
||||||
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
|
return item[0];
|
||||||
|
})
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {},
|
||||||
type: 'value'
|
dataZoom: [
|
||||||
},
|
|
||||||
series: [
|
|
||||||
{
|
{
|
||||||
data: [150, 230, 224, 218, 135, 147, 260],
|
startValue: '2022-06-01'
|
||||||
type: 'line'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
data: [100, 200, 290, 300, 100, 140, 260],
|
type: 'inside'
|
||||||
type: 'line'
|
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
};
|
series: {
|
||||||
myEcharts.setOption(option);
|
type: 'line',
|
||||||
|
data: data.map(function (item) {
|
||||||
|
return item[1];
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
);
|
||||||
|
// })
|
||||||
|
option && myChart.setOption(option);
|
||||||
}
|
}
|
||||||
|
|
||||||
return(
|
return(
|
||||||
|
|
|
@ -54,16 +54,16 @@ function Main(props){
|
||||||
<a onClick={openDetail} className="btnhover">查看详情</a>
|
<a onClick={openDetail} className="btnhover">查看详情</a>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
{/* <li>
|
||||||
<div className="servername" style={{marginBottom: '8px'}}>
|
<div className="servername" style={{marginBottom: '8px'}}>
|
||||||
{/* <img src={require('./img/logo.png')} alt=""/> */}
|
//记得注释 <img src={require('./img/logo.png')} alt=""/>
|
||||||
<Link to={`/${owner}/${projectsId}/service/reposyncer`}>Reposyncer仓库同步</Link>
|
<Link to={`/${owner}/${projectsId}/service/reposyncer`}>Reposyncer仓库同步</Link>
|
||||||
</div>
|
</div>
|
||||||
<p className="task-hide-2 serverdesc">支持不同开源托管平台自动同步推送/拉取相关代码,实现多平台项目同步开发功能</p>
|
<p className="task-hide-2 serverdesc">支持不同开源托管平台自动同步推送/拉取相关代码,实现多平台项目同步开发功能</p>
|
||||||
<span className="serverbtn">
|
<span className="serverbtn">
|
||||||
<Link to={`/${owner}/${projectsId}/service/reposyncer`} className="btnhover">查看详情</Link>
|
<Link to={`/${owner}/${projectsId}/service/reposyncer`} className="btnhover">查看详情</Link>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li> */}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue