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. 56
      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 Layout from './layout';
import Auth from './sections/auth';
import Example from './sections/example';
// import Example from './sections/example';
import EquipmentWarehouse from './sections/equipmentWarehouse';
const App = props => {
@ -16,7 +16,7 @@ const App = props => {
return (
<Layout
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>
<div style={{
margin: '12px 12px 0px',
background: "#F6FAFF",
}}>
<div id="page-content" style={{
height: clientHeight - 12,

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

@ -1,45 +1,27 @@
import React, { useEffect } from 'react';
import { connect } from 'react-redux';
import { Spin, Card } from '@douyinfe/semi-ui';
import '../style.less'
const { Meta } = Card;
import React, { useEffect } from "react";
import { connect } from "react-redux";
import { Card } from "@douyinfe/semi-ui";
import "../style.less";
const Example = (props) => {
const { dispatch, actions, user, loading } = props
const { dispatch, actions, user, loading } = props;
useEffect(() => {
// ACTION
dispatch(actions.example.getMembers(user.orgId))
}, [])
useEffect(() => {
// ACTION
// dispatch(actions.example.getMembers(user.orgId));
}, []);
return (
<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>
)
}
return <Card title="筛选条件" headerLine={false}></Card>;
};
function mapStateToProps (state) {
const { auth, global, members } = state;
return {
loading: members.isRequesting,
user: auth.user,
actions: global.actions,
members: members.data
};
function mapStateToProps(state) {
const { auth, global, members } = state;
return {
loading: members.isRequesting,
user: auth.user,
actions: global.actions,
members: members.data,
};
}
export default connect(mapStateToProps)(Example);

Loading…
Cancel
Save