Browse Source

测试

release_0.0.1
wenlele 3 years ago
parent
commit
6e92a71354
  1. 4
      code/VideoAccess-VCMP/web/client/src/app.jsx
  2. 1
      code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx
  3. 40
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx

4
code/VideoAccess-VCMP/web/client/src/app.jsx

@ -3,7 +3,7 @@
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';
import Layout from './layout'; import Layout from './layout';
import Auth from './sections/auth'; import Auth from './sections/auth';
import Example from './sections/example'; // import Example from './sections/example';
import EquipmentWarehouse from './sections/equipmentWarehouse'; import EquipmentWarehouse from './sections/equipmentWarehouse';
const App = props => { const App = props => {
@ -16,7 +16,7 @@ const App = props => {
return ( return (
<Layout <Layout
title={projectName} title={projectName}
sections={[Auth, Example,EquipmentWarehouse]} sections={[Auth,EquipmentWarehouse]}
/> />
) )
} }

1
code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx

@ -94,6 +94,7 @@ const LayoutContainer = props => {
<Layout.Content> <Layout.Content>
<div style={{ <div style={{
margin: '12px 12px 0px', margin: '12px 12px 0px',
background: "#F6FAFF",
}}> }}>
<div id="page-content" style={{ <div id="page-content" style={{
height: clientHeight - 12, height: clientHeight - 12,

40
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx

@ -1,44 +1,26 @@
import React, { useEffect } from 'react'; import React, { useEffect } from "react";
import { connect } from 'react-redux'; import { connect } from "react-redux";
import { Spin, Card } from '@douyinfe/semi-ui'; import { Card } from "@douyinfe/semi-ui";
import '../style.less' import "../style.less";
const { Meta } = Card;
const Example = (props) => { const Example = (props) => {
const { dispatch, actions, user, loading } = props const { dispatch, actions, user, loading } = props;
useEffect(() => { useEffect(() => {
// ACTION // ACTION
dispatch(actions.example.getMembers(user.orgId)) // dispatch(actions.example.getMembers(user.orgId));
}, []) }, []);
return ( return <Card title="筛选条件" headerLine={false}></Card>;
<Spin tip="biubiubiu~" spinning={loading}> };
<div id='example'>
<p>STYLE EXAMPLE</p>
</div>
<Card
style={{ maxWidth: 300 }}
cover={
<img
alt="example"
src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/root-web-sites/card-cover-docs-demo2.jpeg"
/>
}
>
<Meta title="组件示例" />
</Card>
</Spin>
)
}
function mapStateToProps (state) { function mapStateToProps(state) {
const { auth, global, members } = state; const { auth, global, members } = state;
return { return {
loading: members.isRequesting, loading: members.isRequesting,
user: auth.user, user: auth.user,
actions: global.actions, actions: global.actions,
members: members.data members: members.data,
}; };
} }

Loading…
Cancel
Save