Browse Source

Merge branch 'dev_trial' of https://gitea.free-sun.vip/free-sun/FS-IOT into dev_trial

release_0.0.2
巴林闲侠 3 years ago
parent
commit
eb9789e6c0
  1. 2
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cascadeCamera.jsx
  2. 8
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx
  3. 17
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx
  4. 2
      code/VideoAccess-VCMP/web/package.json

2
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cascadeCamera.jsx

@ -91,7 +91,7 @@ function cascadeCamera ({ dRef, dispatch, actions, cameraData ,parentCamera}) {
</Form.Select.Option> </Form.Select.Option>
</Form.Select> </Form.Select>
</Col> </Col>
<Col span={12}> <Col span={14}>
<Form.Select <Form.Select
label="SIP编号:" label="SIP编号:"
field="sip" field="sip"

8
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx

@ -122,7 +122,6 @@ const CameraHeader = (props) => {
<sapn style={{ color: "blue" }} <sapn style={{ color: "blue" }}
onClick={() => { onClick={() => {
if (deviceClickb.current) { if (deviceClickb.current) {
if (row.type == "nvr") { if (row.type == "nvr") {
setearch({ ...searchb.current, nvrId: row.nvr.id }) setearch({ ...searchb.current, nvrId: row.nvr.id })
} else { } else {
@ -145,7 +144,6 @@ const CameraHeader = (props) => {
); );
}, },
}, },
{ {
title: "操作", title: "操作",
width: "20%", width: "20%",
@ -610,8 +608,8 @@ const CameraHeader = (props) => {
}} }}
onClick={() => { onClick={() => {
api.current.validate().then((v) => { api.current.validate().then((v) => {
setearch(v); setearch({ ...v, limit: 10, page: 0 });
searchb.current = v searchb.current = { ...v, limit: 10, page: 0 }
}); });
equipmentGetCamera(); equipmentGetCamera();
}} }}
@ -684,7 +682,7 @@ const CameraHeader = (props) => {
style={{ width: 18, height: 18 }} style={{ width: 18, height: 18 }}
/> />
</Button> </Button>
<SimpleFileDownButton src="nvr/export" /> <SimpleFileDownButton src="camera/export" />
</div> </div>
</div> </div>
<Skeleton <Skeleton

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

@ -9,6 +9,7 @@ import Setup from "../components/setup";
import SideSheets from "../components/sideSheet"; import SideSheets from "../components/sideSheet";
import { skeletonScreen } from "../components/skeletonScreen"; import { skeletonScreen } from "../components/skeletonScreen";
import { ReminderBox } from "../../../components/index"; import { ReminderBox } from "../../../components/index";
import { SimpleFileDownButton } from "$components";
export const accessType = [ export const accessType = [
{ name: "萤石云", key: "yingshi" }, { name: "萤石云", key: "yingshi" },
@ -451,7 +452,7 @@ const NvrHeader = (props) => {
}} }}
onClick={() => { onClick={() => {
api.current.validate().then((v) => { api.current.validate().then((v) => {
setearch(v); setearch({ ...v, limit: 10, page: 0 });
}); });
equipmentGetNvr(); equipmentGetNvr();
}} }}
@ -523,19 +524,7 @@ const NvrHeader = (props) => {
style={{ width: 18, height: 18 }} style={{ width: 18, height: 18 }}
/> />
</Button> </Button>
<a href={`/_api/${ApiTable.getExport}`}> <SimpleFileDownButton src="nvr/export" />
<Button
style={{
width: 65,
height: 32,
background: "#FFFFFF",
borderRadius: 3,
border: "1px solid #1859C1",
}}
>
导出
</Button>
</a>
</div> </div>
</div> </div>
<Skeleton <Skeleton

2
code/VideoAccess-VCMP/web/package.json

@ -7,7 +7,7 @@
"test": "mocha", "test": "mocha",
"start-vite": "cross-env NODE_ENV=developmentVite npm run start-params", "start-vite": "cross-env NODE_ENV=developmentVite npm run start-params",
"start": "cross-env NODE_ENV=development npm run start-params", "start": "cross-env NODE_ENV=development npm run start-params",
"start-params": "node server -p 5000 -u http://localhost:4000 --apiAuthUrl http://10.8.30.7:4200 --apiAnxinyunUrl http://10.8.30.7:4100 --iotAuthWeb http://localhost:5200", "start-params": "node server -p 5000 -u http://10.8.30.7:4000 --apiAuthUrl http://10.8.30.7:4200 --apiAnxinyunUrl http://10.8.30.7:4100 --iotAuthWeb http://localhost:5200",
"deploy": "export NODE_ENV=production&& npm run build && node server", "deploy": "export NODE_ENV=production&& npm run build && node server",
"build-dev": "cross-env NODE_ENV=development&&webpack --config webpack.config.js", "build-dev": "cross-env NODE_ENV=development&&webpack --config webpack.config.js",
"build": "export NODE_ENV=production&&webpack --config webpack.config.prod.js" "build": "export NODE_ENV=production&&webpack --config webpack.config.prod.js"

Loading…
Cancel
Save