TODO: Router
This commit is contained in:
12
src/App.js
12
src/App.js
@@ -5,7 +5,10 @@ import Icon, {
|
||||
import { Row, Col, Divider } from 'antd';
|
||||
import { Button, Layout, Menu, Tabs } from 'antd';
|
||||
import 'antd/dist/antd.css';
|
||||
import {Swtich, Route, Router, HashHistory, Link} from 'react-router-dom';
|
||||
import React from 'react';
|
||||
|
||||
|
||||
import './App.less';
|
||||
import DataTable from './Table';
|
||||
import ContentTable from './ContentTable';
|
||||
@@ -39,6 +42,7 @@ class App extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
|
||||
<Layout>
|
||||
<Sider
|
||||
trigger={null}
|
||||
@@ -66,12 +70,6 @@ class App extends React.Component {
|
||||
<Layout>
|
||||
<Header style={{ background: '#000', padding:"0" }}>
|
||||
|
||||
<Divider orientation="left" style={{height: "100%"}} >
|
||||
<Row justify="center" gutter={{lg: 128 }}>
|
||||
{/* <Col span={4}><Button type="primary" style={bstyle} onClick={(e)=>{}}> tag统计 </Button> </Col> */}
|
||||
</Row>
|
||||
</Divider>
|
||||
|
||||
</Header>
|
||||
<Content ref="content" style={{ margin: '0 8px' }}>
|
||||
<Tabs
|
||||
@@ -106,9 +104,11 @@ class App extends React.Component {
|
||||
|
||||
|
||||
</Content>
|
||||
|
||||
<Footer style={{ textAlign: 'center' }}>
|
||||
Intimate ©2020 Created by eson
|
||||
</Footer>
|
||||
|
||||
</Layout>
|
||||
</Layout>
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import ReactEcharts from 'echarts-for-react';
|
||||
import apihost from './Var.js';
|
||||
import { Row, Col, Button } from 'antd';
|
||||
import { Row, Col, Button, Divider } from 'antd';
|
||||
|
||||
function parseData(cw = {}) {
|
||||
|
||||
@@ -127,7 +127,7 @@ class ChartsCount extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div style={{ padding: 24, background: '#fff', minHeight: 780 }} >
|
||||
<div style={{ marginBottom: "20px" }}>
|
||||
<div>
|
||||
<Row justify="start">
|
||||
<Col span={3}> <Button type="primary" onClick={(e)=>{ this.countMethod("count", e.target.innerText) }} >统计数量关系</Button> </Col>
|
||||
<Col span={3}>
|
||||
@@ -138,6 +138,7 @@ class ChartsCount extends React.Component {
|
||||
<Col span={3}> <Button type="primary" onClick={(e)=>{ this.countMethod("gratuity", e.target.innerText) }} >统计赏币关系</Button> </Col>
|
||||
</Row>
|
||||
</div>
|
||||
<Divider />
|
||||
<ReactEcharts
|
||||
notMerge={true}
|
||||
ref={(e) => { this.echarts_react = e; }}
|
||||
|
||||
Reference in New Issue
Block a user