Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swifteditor
Overview
Overview
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
fukai
swifteditor
Commits
5c6a2a37
Commit
5c6a2a37
authored
Dec 10, 2018
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改返回时countMap错误判断问题
parent
96b60e24
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
SWFPage2.js
src/swift/SWFPage2.js
+16
-4
No files found.
src/swift/SWFPage2.js
View file @
5c6a2a37
...
...
@@ -155,6 +155,10 @@ export class SWFPage extends Component
this
.
props
.
actions
.
updateSwiftMessage
(
message
)
let
flag
=
(
this
.
props
.
params
.
rcvbic
&&
this
.
props
.
params
.
rcvbic
!=
'NONE'
)
||
this
.
props
.
params
.
action
==
'redit'
// if(this.props.extra.countMap)
// this.props.extra.s_countMap = {...this.props.extra.countMap}
if
(
flag
)
this
.
props
.
history
.
push
(
"preview/0"
)
else
...
...
@@ -271,6 +275,14 @@ export class SWFPage extends Component
let
action
=
this
.
props
.
params
.
action
let
mctid
=
this
.
props
.
params
.
mctid
this
.
props
.
extra
.
mctid
=
mctid
// if(!this.props.swift_message_tree)
// {
// //取出暂存countMap
// if(this.props.extra.s_countMap)
// this.props.extra.countMap = {...this.props.extra.s_countMap}
// }
if
(
action
==
'edit'
)
{
...
...
@@ -832,7 +844,7 @@ export class Tag extends MessageArea
componentWillMount
()
{
if
(
(
this
.
props
.
action
==
'redit'
||
this
.
props
.
action
==
'redit2'
)
&&
this
.
props
.
seqlist
)
if
(
this
.
props
.
seqlist
&&
!
this
.
isEmpty
(
this
.
state
.
tagValue
)
)
{
let
{
countMap
=
{}}
=
this
.
props
.
extra
for
(
let
seqlbl
of
this
.
props
.
seqlist
)
...
...
@@ -850,9 +862,7 @@ export class Tag extends MessageArea
{
if
(
this
.
props
.
seqlist
)
{
let
val
=
this
.
state
.
tagValue
let
mval
=
val
&&
val
.
length
?
val
[
1
]
:
''
if
(
!
mval
)
if
(
this
.
isEmpty
(
this
.
state
.
tagValue
))
return
let
{
countMap
}
=
this
.
props
.
extra
if
(
!
countMap
)
...
...
@@ -869,6 +879,8 @@ export class Tag extends MessageArea
{
if
(
!
tagValue
)
return
true
if
(
!
tagValue
.
length
||
tagValue
.
length
<
1
)
return
true
return
isTagValueEmpty
(
"T"
+
this
.
props
.
pattern
.
tag
,
tagValue
)
}
output
()
...
...
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