Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
f495636f
Commit
f495636f
authored
Jan 11, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 变更设备报警的实现方式
parent
60c22585
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
monitor.js
...components/AlarmScrollAssembly/src/api/service/monitor.js
+19
-13
index.js
packages/base-components/AlarmScrollAssembly/src/index.js
+0
-0
No files found.
packages/base-components/AlarmScrollAssembly/src/api/service/monitor.js
View file @
f495636f
import
{
request
}
from
'@wisdom-utils/utils'
;
import
{
request
}
from
'@wisdom-utils/utils'
;
import
*
as
constants
from
'../../constants'
;
import
*
as
constants
from
'../../constants'
;
const
MonitorDevice
=
'/PandaMonitor/Monitor/Device'
;
const
MonitorDevice
=
'/PandaMonitor/Monitor/Device'
;
const
API
=
{
const
API
=
{
GET_ALARM_LIST_REAL_TIME
:
`
${
MonitorDevice
}
/GetAlarmListRealTime`
,
GET_ALARM_LIST_REAL_TIME
:
`
${
MonitorDevice
}
/GetAlarmListRealTime`
,
GET_DEVICE_QUOTA_LIST
:
`
${
MonitorDevice
}
/GetQuotaList`
,
//
GET_DEVICE_QUOTA_LIST
:
`
${
MonitorDevice
}
/GetQuotaList`
,
//
GET_EQUIPMENT_INFO
:
`
${
MonitorDevice
}
/GetEquipmentInfo`
,
// 获取设备树
};
};
const
monitorServices
=
{
const
monitorServices
=
{
GetAlarmListRealTime
:
{
GetAlarmListRealTime
:
{
url
:
API
.
GET_ALARM_LIST_REAL_TIME
,
// 获取 数据维护日志
url
:
API
.
GET_ALARM_LIST_REAL_TIME
,
// 获取 数据维护日志
method
:
constants
.
REQUEST_METHOD_POST
,
method
:
constants
.
REQUEST_METHOD_POST
,
type
:
constants
.
REQUEST_HTTP
,
type
:
constants
.
REQUEST_HTTP
,
},
},
GetDeviceQuotaList
:
{
GetDeviceQuotaList
:
{
url
:
API
.
GET_DEVICE_QUOTA_LIST
,
url
:
API
.
GET_DEVICE_QUOTA_LIST
,
method
:
constants
.
REQUEST_METHOD_GET
,
method
:
constants
.
REQUEST_METHOD_GET
,
type
:
constants
.
REQUEST_HTTP
,
type
:
constants
.
REQUEST_HTTP
,
},
},
getEquipmentInfo
:
{
url
:
API
.
GET_EQUIPMENT_INFO
,
method
:
constants
.
REQUEST_METHOD_POST
,
type
:
constants
.
REQUEST_HTTP
,
},
};
};
export
default
monitorServices
;
export
default
monitorServices
;
packages/base-components/AlarmScrollAssembly/src/index.js
View file @
f495636f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment