Browse Source

Separadores

master
andrebarros7201 5 years ago
parent
commit
fba088eb1f
5 changed files with 2025 additions and 12 deletions
  1. BIN
      dbs/dbmercearia.mv.db
  2. +1991
    -9
      public/scripts/main.js
  3. +1
    -1
      public/scripts/main.js.map
  4. +28
    -0
      ui/src/components/Separadores/index.jsx
  5. +5
    -2
      ui/src/containers/DashboardContainer/index.jsx

BIN
dbs/dbmercearia.mv.db View File


+ 1991
- 9
public/scripts/main.js
File diff suppressed because it is too large
View File


+ 1
- 1
public/scripts/main.js.map
File diff suppressed because it is too large
View File


+ 28
- 0
ui/src/components/Separadores/index.jsx View File

@ -0,0 +1,28 @@
import React from 'react';
import Tabs from 'antd/lib/tabs';
import GraficoStock from "../GraficoStock/index.jsx";
import TabelaCategoria from "../TabelaCategorias/index.jsx";
import TabelaLoja from "../TabelaLoja/index.jsx";
import TabelaProduto from "../TabelaProdutos/index.jsx";
const { TabPane } = Tabs;
function callback(key) {
console.log(key);
}
const Separadores = () => (
<Tabs defaultActiveKey="1" onChange={callback}>
<TabPane tab="Loja" key="1">
<TabelaLoja/>
</TabPane>
<TabPane tab="Produtos" key="2">
<TabelaProduto/>
<GraficoStock/>
</TabPane>
<TabPane tab="Categorias" key="3">
<TabelaCategoria/>
</TabPane>
</Tabs>
);
export default Separadores;

+ 5
- 2
ui/src/containers/DashboardContainer/index.jsx View File

@ -9,6 +9,7 @@ import TabelaProduto from "../../components/TabelaProdutos/index.jsx";
import "./index.less"; import "./index.less";
import GraficoStock from "../../components/GraficoStock/index.jsx"; import GraficoStock from "../../components/GraficoStock/index.jsx";
import Separadores from "../../components/Separadores/index.jsx";
export default class DashboardContainer extends Component { export default class DashboardContainer extends Component {
constructor(props) { constructor(props) {
@ -95,14 +96,16 @@ export default class DashboardContainer extends Component {
return ( return (
<div className="my-dashboard"> <div className="my-dashboard">
<h1 style={styleh1}>Lojas</h1>
{/* <h1 style={styleh1}>Lojas</h1>
<TabelaLoja/> <TabelaLoja/>
<h1 style={styleh1}>Produtos</h1> <h1 style={styleh1}>Produtos</h1>
<TabelaProduto/> <TabelaProduto/>
<h1 style={styleh1}>Categorias</h1> <h1 style={styleh1}>Categorias</h1>
<TabelaCategoria/> <TabelaCategoria/>
<h1 style={styleh1}>Gráfico</h1> <h1 style={styleh1}>Gráfico</h1>
<GraficoStock/>
<GraficoStock/> */}
<Separadores/>
</div> </div>
); );


Loading…
Cancel
Save