Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
CivManage
Commits
f1042920
Commit
f1042920
authored
Mar 20, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '物联网接口参数修改'
parent
92f71fbd
Pipeline
#69482
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
26 deletions
+16
-26
index.jsx
src/pages/log/serviceLog/index.jsx
+0
-6
IotConfig.jsx
src/pages/platformCenter/hostmanager/IotConfig/IotConfig.jsx
+16
-20
No files found.
src/pages/log/serviceLog/index.jsx
View file @
f1042920
...
...
@@ -73,11 +73,6 @@ const ServiceLog = () => {
const
startYear
=
new
Date
(
allTime
[
0
]).
getYear
();
const
endYear
=
new
Date
(
allTime
[
1
]).
getYear
();
if
(
minuteInterval
<=
0
)
{
console
.
log
(
start
);
console
.
log
(
end
);
console
.
log
(
allTime
[
0
]);
console
.
log
(
allTime
[
1
]);
console
.
log
(
minuteInterval
);
notification
.
error
({
message
:
'时间设置有误'
,
description
:
'起始时间应该早于结束时间'
,
...
...
@@ -469,7 +464,6 @@ const ServiceLog = () => {
setEndTime
(
time
);
};
const
changeTime
=
time
=>
{
console
.
log
(
time
);
setAllTime
(
time
);
};
// 近1/6/12/24小时,同时设置对应的时间间隔
...
...
src/pages/platformCenter/hostmanager/IotConfig/IotConfig.jsx
View file @
f1042920
...
...
@@ -115,19 +115,21 @@ const IotConfig = props => {
setCurrentDataBase
(
res
.
data
);
// 数据库是否已添加
setLoading
(
true
);
CheckIsServiceAdd
(
{
ip
:
res
.
data
.
ip
}
)
CheckIsServiceAdd
()
.
then
(
resdata1
=>
{
setLoading
(
false
);
if
(
resdata1
.
code
===
0
)
{
setShow3
(
'inline-block'
);
setShow4
(
'none'
);
getStatus
(
res
.
data
.
ip
,
res
.
data
.
dbName
);
}
else
{
setDbStatus
(
resdata1
.
msg
);
setBuStatus
(
'添加'
);
setSwitchStatus
(
true
);
setShow3
(
'none'
);
setShow4
(
'inline-block'
);
if
(
resdata1
.
data
===
true
)
{
setShow3
(
'inline-block'
);
setShow4
(
'none'
);
getStatus
(
res
.
data
.
ip
,
res
.
data
.
dbName
);
}
else
{
setDbStatus
(
resdata1
.
msg
);
setBuStatus
(
'添加'
);
setSwitchStatus
(
true
);
setShow3
(
'none'
);
setShow4
(
'inline-block'
);
}
}
})
.
catch
(
err
=>
{
...
...
@@ -140,7 +142,7 @@ const IotConfig = props => {
const
getStatus
=
(
x
,
y
)
=>
{
// 查询是否禁用
GetServiceInfo
(
{
ip
:
x
}
)
GetServiceInfo
()
.
then
(
resdata
=>
{
if
(
resdata
.
code
===
0
)
{
setDbStatus
(
resdata
.
data
.
statusText
);
...
...
@@ -341,9 +343,7 @@ const IotConfig = props => {
}
else
{
// 数据库未添加
setLoading
(
true
);
AddDB
({
ip
:
currentDataBase
.
ip
,
}).
then
(
res
=>
{
AddDB
().
then
(
res
=>
{
setLoading
(
false
);
if
(
res
.
code
===
0
)
{
setShow3
(
'inline-block'
);
...
...
@@ -403,9 +403,7 @@ const IotConfig = props => {
if
(
checked
)
{
setSwitchStatus
(
true
);
setLoading
(
true
);
DepositServiceEnable
({
ip
:
currentDataBase
.
ip
,
}).
then
(
res
=>
{
DepositServiceEnable
().
then
(
res
=>
{
setLoading
(
false
);
getStatus
(
currentDataBase
.
ip
,
currentDataBase
.
dbName
);
if
(
res
.
code
===
0
)
{
...
...
@@ -417,9 +415,7 @@ const IotConfig = props => {
});
}
else
{
setLoading
(
true
);
DepositServiceDisable
({
ip
:
currentDataBase
.
ip
,
}).
then
(
res
=>
{
DepositServiceDisable
().
then
(
res
=>
{
setLoading
(
false
);
if
(
res
.
code
===
0
)
{
setDbStatus
(
'已禁用'
);
...
...
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