Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-station-module-view
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
station
amos-station-module-view
Commits
858ea212
Commit
858ea212
authored
Jul 09, 2020
by
taabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复结束预案调用接口地址错误
parent
cf02086a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
ruleService.js
mods/components/3dviewConvertor/services/ruleService.js
+3
-1
TopView.js
...onents/3dviewConvertor/view/preControl/topNews/TopView.js
+11
-11
No files found.
mods/components/3dviewConvertor/services/ruleService.js
View file @
858ea212
...
...
@@ -12,7 +12,9 @@ const completePrefix = endConf.completePrefix;
*/
export
const
ruleAction
=
(
content
,
confirm
)
=>
{
let
rUrl
=
content
.
requestUrl
;
rUrl
=
rUrl
.
substring
(
1
);
if
(
rUrl
.
indexOf
(
'/'
)
===
0
)
{
rUrl
=
rUrl
.
substring
(
1
);
}
let
requestUrl
=
completePrefix
(
ConvertorURI
,
`
${
rUrl
}
?batchNo=
${
content
.
batchNo
}
&stepCode=
${
content
.
stepCode
}
&buttonCode=
${
content
.
code
}
&confirm=
${
confirm
}
&contingencyPlanId=
${
content
.
contingencyPlanId
}
&stepState=
${
content
.
stepState
}
`
);
return
commonPut
(
requestUrl
,
{});
};
...
...
mods/components/3dviewConvertor/view/preControl/topNews/TopView.js
View file @
858ea212
...
...
@@ -17,17 +17,17 @@ class TopView extends Component {
showContent
:
this
.
props
.
planStarted
===
true
?
''
:
'none'
,
content
:
''
,
timeCount
:
0
,
batchNo
:
''
,
contingencyPlanId
:
''
batchNo
:
''
,
contingencyPlanId
:
''
};
this
.
timer
=
null
;
}
componentDidMount
()
{
this
.
props
.
subscribe
(
eventTopics
.
top_ae_msg
,
(
topic
,
data
)
=>
{
const
{
content
,
batchNo
,
contingencyPlanId
}
=
data
;
const
{
content
,
batchNo
,
contingencyPlanId
}
=
data
;
this
.
props
.
planStart
(
data
);
this
.
setState
(
{
content
,
showContent
:
'block'
,
batchNo
,
contingencyPlanId
}
);
this
.
setState
(
{
content
,
showContent
:
'block'
,
batchNo
,
contingencyPlanId
}
);
let
{
planStart
}
=
this
.
props
;
this
.
prepareChangeTimeText
(
planStart
);
});
...
...
@@ -50,14 +50,13 @@ class TopView extends Component {
// 执行删除逻辑
tirggerTransTopic
(
CONSTS
.
forward
,
{
details
:
{
type
:
'prePlan'
,
show
:
false
}
});
_this
.
props
.
planQuit
();
let
content
=
{
batchNo
:
_this
.
state
.
batchNo
,
let
content
=
{
batchNo
:
_this
.
state
.
batchNo
,
stepCode
:
0
,
code
:
"FIRE_CANCEL"
,
requestUrl
:
"api/timeline/fire"
,
code
:
'FIRE_CANCEL'
,
requestUrl
:
'/api/timeline/fire'
,
contingencyPlanId
:
_this
.
state
.
contingencyPlanId
,
stepState
:
'B'
};
ruleAction
(
content
,
"CONFIRM"
).
then
(
e
=>
{
stepState
:
'B'
};
ruleAction
(
content
,
'CONFIRM'
).
then
(
e
=>
{
});
},
onCancel
()
{}
...
...
@@ -119,7 +118,8 @@ class TopView extends Component {
TopView
.
propTypes
=
{
subscribe
:
PropTypes
.
func
,
planStart
:
PropTypes
.
func
,
planQuit
:
PropTypes
.
fucn
planQuit
:
PropTypes
.
fucn
,
planStarted
:
PropTypes
.
bool
};
export
default
TopView
;
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