Skip to content

Commit

Permalink
修复无法编辑设备、控制台获取值错误
Browse files Browse the repository at this point in the history
  • Loading branch information
langmansh committed Aug 11, 2021
1 parent dee9e02 commit 8a08758
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
Binary file modified .vs/slnx.sqlite
Binary file not shown.
17 changes: 17 additions & 0 deletions src/view/device/EditForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,23 @@ export default class EditForm extends React.Component {
)
},{

label: '设备流类型',
name: 'deviceStreamType',
option: {
rules: [{
required: true,
},]
},
comp: (
<Radio.Group buttonStyle="solid">
<Radio.Button value={"GB28181"}>GB28181</Radio.Button>
<Radio.Button value={"Rtsp"}>Rtsp</Radio.Button>
<Radio.Button value={"Http"}>Http</Radio.Button>
<Radio.Button value={"Rtmp"}>Rtmp</Radio.Button>
</Radio.Group>
)
},{

label: '拉流方式',
name: 'methodByGetStream',
option: {
Expand Down
2 changes: 1 addition & 1 deletion src/view/home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class Home extends React.Component {
const that = this;
const now = moment();
findThreadsLoad().then(res => {
const data = res.data;
const data = res.data.data;
const average = list => list.reduce((prev, curr) => prev + curr) / list.length;

//计算多个线程的平均负载率和平均延时
Expand Down

0 comments on commit 8a08758

Please sign in to comment.