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
7fa2d3fb
Commit
7fa2d3fb
authored
Apr 01, 2025
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改传参
parent
abd2310d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
64 deletions
+64
-64
Result.js
src/swift/Result.js
+1
-1
SWFPage2.js
src/swift/SWFPage2.js
+63
-63
No files found.
src/swift/Result.js
View file @
7fa2d3fb
...
@@ -29,7 +29,7 @@ const Step = Steps.Step;
...
@@ -29,7 +29,7 @@ const Step = Steps.Step;
datas
.
F21
=
tags
[
1
].
tagValue
[
1
]
datas
.
F21
=
tags
[
1
].
tagValue
[
1
]
let
tempStr
=
JSON
.
stringify
(
window
.
templateObject
)
let
tempStr
=
JSON
.
stringify
(
window
.
templateObject
)
let
argdata
=
{
let
argdata
=
{
smh
inr
:
this
.
props
.
extra
.
smhinr
||
''
,
mps
inr
:
this
.
props
.
extra
.
smhinr
||
''
,
user
:
this
.
props
.
extra
.
mctid
||
"NONE"
,
user
:
this
.
props
.
extra
.
mctid
||
"NONE"
,
sf2msg
:
this
.
props
.
swift_message
,
sf2msg
:
this
.
props
.
swift_message
,
msgtre
:
tempStr
,
msgtre
:
tempStr
,
...
...
src/swift/SWFPage2.js
View file @
7fa2d3fb
...
@@ -28,7 +28,7 @@ const Option = Select.Option;
...
@@ -28,7 +28,7 @@ const Option = Select.Option;
const
Step
=
Steps
.
Step
;
const
Step
=
Steps
.
Step
;
const
random
=
new
Random
();
const
random
=
new
Random
();
const
formItemLayout
=
{
const
formItemLayout
=
{
labelCol
:
{
span
:
6
},
labelCol
:
{
span
:
6
},
...
@@ -37,14 +37,14 @@ const formItemLayout = {
...
@@ -37,14 +37,14 @@ const formItemLayout = {
export
class
SWFPage
extends
Component
export
class
SWFPage
extends
Component
{
{
constructor
(
props
)
constructor
(
props
)
{
{
super
(
props
)
super
(
props
)
this
.
state
=
{
rcv_bic
:
props
.
rcv_bic
,
rcv_bic_msg
:
''
}
this
.
state
=
{
rcv_bic
:
props
.
rcv_bic
,
rcv_bic_msg
:
''
}
}
}
onSave
=
()
=>
{
onSave
=
()
=>
{
let
msg
=
[]
let
msg
=
[]
this
.
swfmsg
.
getValue
(
msg
)
this
.
swfmsg
.
getValue
(
msg
)
...
@@ -76,7 +76,7 @@ export class SWFPage extends Component
...
@@ -76,7 +76,7 @@ export class SWFPage extends Component
// })
// })
// }
// }
}
}
}
else
if
(
item
.
cyclist
)
}
else
if
(
item
.
cyclist
)
{
{
for
(
let
cyc
of
item
.
cycs
)
for
(
let
cyc
of
item
.
cycs
)
...
@@ -124,14 +124,14 @@ export class SWFPage extends Component
...
@@ -124,14 +124,14 @@ export class SWFPage extends Component
obj
.
scrollIntoView
()
obj
.
scrollIntoView
()
}
}
},
100
)
},
100
)
return
return
}
}
//做整体关联检查
//做整体关联检查
let
wholeErrorMessage
=
MessageValidater
(
this
.
props
.
extra
.
msgtyp
,
swift_message_tree
)
let
wholeErrorMessage
=
MessageValidater
(
this
.
props
.
extra
.
msgtyp
,
swift_message_tree
)
if
(
wholeErrorMessage
)
if
(
wholeErrorMessage
)
{
{
notification
.
error
({
description
:
'There is an error in the input, please check according to the prompt!'
,
message
:
wholeErrorMessage
})
notification
.
error
({
description
:
'There is an error in the input, please check according to the prompt!'
,
message
:
wholeErrorMessage
})
return
return
}
}
this
.
joinMessage
(
tags
,
arr
)
this
.
joinMessage
(
tags
,
arr
)
let
message
=
arr
.
join
(
'
\
r
\
n'
).
replace
(
/
[\r\n]{1,2}
/g
,
'
\
r
\
n'
)
let
message
=
arr
.
join
(
'
\
r
\
n'
).
replace
(
/
[\r\n]{1,2}
/g
,
'
\
r
\
n'
)
...
@@ -165,14 +165,14 @@ export class SWFPage extends Component
...
@@ -165,14 +165,14 @@ export class SWFPage extends Component
header3
=
`{3:
${
s119
}
{108:
${
ref
}
}}`
header3
=
`{3:
${
s119
}
{108:
${
ref
}
}}`
}
else
{
}
else
{
header3
=
`{3:{108:
${
ref
}
}}`
header3
=
`{3:{108:
${
ref
}
}}`
}
}
//锦州 message = `:MT:${mty}\r\n:IO:${this.props.rcv_bic_info.rcv_bic}\r\n:II:${this.props.snd_bic_info.snd_bic}\r\n:MP:N\r\n${s119}${gpistr}:EOH:\r\n${message}\r\n-\r\n`
//锦州 message = `:MT:${mty}\r\n:IO:${this.props.rcv_bic_info.rcv_bic}\r\n:II:${this.props.snd_bic_info.snd_bic}\r\n:MP:N\r\n${s119}${gpistr}:EOH:\r\n${message}\r\n-\r\n`
//南商
//南商
message
=
`{1:F01
${
getLogicAdress
(
this
.
props
.
snd_bic_info
.
snd_bic
)}
0000000000}{2:I
${
mty
}${
getLogicAdress
(
this
.
props
.
rcv_bic_info
.
rcv_bic
)}
N}
${
header3
}
{4:\r\n
${
message
}
\r\n-}`
message
=
`{1:F01
${
getLogicAdress
(
this
.
props
.
snd_bic_info
.
snd_bic
)}
0000000000}{2:I
${
mty
}${
getLogicAdress
(
this
.
props
.
rcv_bic_info
.
rcv_bic
)}
N}
${
header3
}
{4:\r\n
${
message
}
\r\n-}`
}
}
//console.log(message)
//console.log(message)
this
.
props
.
actions
.
updateSwiftMessage
(
message
)
this
.
props
.
actions
.
updateSwiftMessage
(
message
)
let
flag
=
(
this
.
props
.
params
.
rcvbic
&&
this
.
props
.
params
.
rcvbic
!=
'NONE'
)
||
this
.
props
.
params
.
action
==
'redit'
let
flag
=
(
this
.
props
.
params
.
rcvbic
&&
this
.
props
.
params
.
rcvbic
!=
'NONE'
)
||
this
.
props
.
params
.
action
==
'redit'
// if(this.props.extra.countMap)
// if(this.props.extra.countMap)
...
@@ -183,7 +183,7 @@ export class SWFPage extends Component
...
@@ -183,7 +183,7 @@ export class SWFPage extends Component
if
(
flag
)
if
(
flag
)
this
.
props
.
history
.
push
(
"preview/0"
)
this
.
props
.
history
.
push
(
"preview/0"
)
else
else
this
.
props
.
history
.
push
(
"preview/1"
)
this
.
props
.
history
.
push
(
"preview/1"
)
}
}
sendToArxan
(){
sendToArxan
(){
...
@@ -210,7 +210,7 @@ export class SWFPage extends Component
...
@@ -210,7 +210,7 @@ export class SWFPage extends Component
arr
.
push
(
`:
${
item
.
tag
}
:`
)
arr
.
push
(
`:
${
item
.
tag
}
:`
)
}
}
}
}
if
(
!
item
.
tagValue
)
if
(
!
item
.
tagValue
)
continue
continue
if
(
typeof
item
.
tagValue
==
'string'
&&
item
.
tagValue
)
if
(
typeof
item
.
tagValue
==
'string'
&&
item
.
tagValue
)
...
@@ -234,7 +234,7 @@ export class SWFPage extends Component
...
@@ -234,7 +234,7 @@ export class SWFPage extends Component
}
}
reload
=
(
flag
)
=>
{
reload
=
(
flag
)
=>
{
let
tempinr
=
this
.
props
.
params
.
key
let
tempinr
=
this
.
props
.
params
.
key
ServiceAPI
.
getTemplate
(
tempinr
).
then
(
data
=>
{
ServiceAPI
.
getTemplate
(
tempinr
).
then
(
data
=>
{
if
(
typeof
data
==
'string'
)
if
(
typeof
data
==
'string'
)
...
@@ -242,7 +242,7 @@ export class SWFPage extends Component
...
@@ -242,7 +242,7 @@ export class SWFPage extends Component
data
=
JSON
.
parse
(
data
)
data
=
JSON
.
parse
(
data
)
}
}
if
(
data
.
errorCode
!==
'0000'
)
if
(
data
.
errorCode
!==
'0000'
)
return
return
data
=
data
.
data
data
=
data
.
data
if
(
typeof
data
==
'string'
)
if
(
typeof
data
==
'string'
)
{
{
...
@@ -252,7 +252,7 @@ export class SWFPage extends Component
...
@@ -252,7 +252,7 @@ export class SWFPage extends Component
this
.
props
.
extra
.
msgtyp
=
"mt"
+
this
.
mty
this
.
props
.
extra
.
msgtyp
=
"mt"
+
this
.
mty
if
(
data
.
txt
)
if
(
data
.
txt
)
data
=
data
.
txt
data
=
data
.
txt
if
(
typeof
data
==
'string'
)
if
(
typeof
data
==
'string'
)
{
{
data
=
JSON
.
parse
(
data
)
data
=
JSON
.
parse
(
data
)
...
@@ -264,6 +264,7 @@ export class SWFPage extends Component
...
@@ -264,6 +264,7 @@ export class SWFPage extends Component
tree
=
JSON
.
parse
(
tree
)
tree
=
JSON
.
parse
(
tree
)
tree
=
JSON
.
parse
(
tree
.
sf2temp
).
swift_message_tree
tree
=
JSON
.
parse
(
tree
.
sf2temp
).
swift_message_tree
}
}
this
.
props
.
extra
.
smhinr
=
tempinr
this
.
props
.
actions
.
initSwiftMessageTree
(
tree
);
this
.
props
.
actions
.
initSwiftMessageTree
(
tree
);
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
console
.
log
(
err
)
...
@@ -271,13 +272,13 @@ export class SWFPage extends Component
...
@@ -271,13 +272,13 @@ export class SWFPage extends Component
// ServiceAPI.getSMH(smhinr).then(data=>{
// ServiceAPI.getSMH(smhinr).then(data=>{
// if(typeof data=='string')
// if(typeof data=='string')
// {
// {
// data = JSON.parse(data)
// data = JSON.parse(data)
// }
// }
// if(data.errorCode !== '0000')
// if(data.errorCode !== '0000')
// return
// return
// data = data.data
// data = data.data
// if(typeof data=='string')
// if(typeof data=='string')
// {
// {
...
@@ -310,7 +311,7 @@ export class SWFPage extends Component
...
@@ -310,7 +311,7 @@ export class SWFPage extends Component
}
}
componentWillMount
()
componentWillMount
()
{
{
let
action
=
this
.
props
.
params
.
action
let
action
=
this
.
props
.
params
.
action
let
mctid
=
this
.
props
.
params
.
mctid
let
mctid
=
this
.
props
.
params
.
mctid
this
.
props
.
extra
.
mctid
=
mctid
this
.
props
.
extra
.
mctid
=
mctid
...
@@ -324,8 +325,8 @@ export class SWFPage extends Component
...
@@ -324,8 +325,8 @@ export class SWFPage extends Component
if
(
action
==
'edit'
)
if
(
action
==
'edit'
)
{
{
let
mty
=
this
.
props
.
params
.
key
;
let
mty
=
this
.
props
.
params
.
key
;
mty
=
mty
.
toLowerCase
()
mty
=
mty
.
toLowerCase
()
if
(
mty
.
substring
(
0
,
2
)
!=
'mt'
)
if
(
mty
.
substring
(
0
,
2
)
!=
'mt'
)
...
@@ -345,14 +346,14 @@ export class SWFPage extends Component
...
@@ -345,14 +346,14 @@ export class SWFPage extends Component
this
.
isdirect
=
true
;
this
.
isdirect
=
true
;
if
(
!
this
.
props
.
swift_message_tree
)
if
(
!
this
.
props
.
swift_message_tree
)
this
.
props
.
actions
.
updateRcvBic
({
rcv_bic
:
rcvbic
})
this
.
props
.
actions
.
updateRcvBic
({
rcv_bic
:
rcvbic
})
}
}
let
sndbic
=
this
.
props
.
params
.
sndbic
let
sndbic
=
this
.
props
.
params
.
sndbic
if
(
!
sndbic
||
sndbic
!=
'NONE'
)
if
(
!
sndbic
||
sndbic
!=
'NONE'
)
{
{
if
(
!
this
.
props
.
swift_message_tree
)
if
(
!
this
.
props
.
swift_message_tree
)
this
.
props
.
actions
.
updateSndBic
({
snd_bic
:
sndbic
})
this
.
props
.
actions
.
updateSndBic
({
snd_bic
:
sndbic
})
}
}
this
.
isdirect
=
false
this
.
isdirect
=
false
}
}
...
@@ -364,11 +365,11 @@ export class SWFPage extends Component
...
@@ -364,11 +365,11 @@ export class SWFPage extends Component
return
;
//已经拥有编辑树
return
;
//已经拥有编辑树
this
.
reload
(
1
)
this
.
reload
(
1
)
}
}
}
}
render
()
render
()
{
{
const
{
swift_message
,
rcv_bic_info
,
snd_bic_info
,
swift_message_tree
}
=
this
.
props
const
{
swift_message
,
rcv_bic_info
,
snd_bic_info
,
swift_message_tree
}
=
this
.
props
if
(
!
swift_message_tree
)
if
(
!
swift_message_tree
)
{
{
...
@@ -405,7 +406,7 @@ export class SWFPage extends Component
...
@@ -405,7 +406,7 @@ export class SWFPage extends Component
<
Col
span
=
{
3
}
>
<
Col
span
=
{
3
}
>
<
/Col
>
<
/Col
>
<
Col
span
=
{
8
}
>
<
Col
span
=
{
8
}
>
<
SNDBIC
flag
=
{
false
}
snd_bic
=
{
snd_bic_info
.
snd_bic
}
err_msg
=
{
snd_bic_info
.
err_msg
}
onChange
=
{(
val
,
msg
)
=>
{
snd_bic_info
.
snd_bic
=
val
;
snd_bic_info
.
err_msg
=
msg
}}
/
>
<
SNDBIC
flag
=
{
false
}
snd_bic
=
{
snd_bic_info
.
snd_bic
}
err_msg
=
{
snd_bic_info
.
err_msg
}
onChange
=
{(
val
,
msg
)
=>
{
snd_bic_info
.
snd_bic
=
val
;
snd_bic_info
.
err_msg
=
msg
}}
/
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
...
@@ -441,11 +442,11 @@ export class SWFPage extends Component
...
@@ -441,11 +442,11 @@ export class SWFPage extends Component
<
/div
>
<
/div
>
:
null
:
null
}
}
{
/* <TempSaver getTemplateJSON={this.saveTemp} mty={mty} mctid={this.props.extra.mctid} style={{marginRight:'1em',width:'8em'}}/>
{
/* <TempSaver getTemplateJSON={this.saveTemp} mty={mty} mctid={this.props.extra.mctid} style={{marginRight:'1em',width:'8em'}}/>
<br/>
<br/>
<br/> */
}
<br/> */
}
{
{
!
this
.
isdirect
?
!
this
.
isdirect
?
<
Popconfirm
placement
=
"topLeft"
title
=
{
"The edited content will be lost. Are you sure to return?"
}
onConfirm
=
{()
=>
this
.
props
.
history
.
goBack
()}
>
<
Popconfirm
placement
=
"topLeft"
title
=
{
"The edited content will be lost. Are you sure to return?"
}
onConfirm
=
{()
=>
this
.
props
.
history
.
goBack
()}
>
...
@@ -517,7 +518,7 @@ function validateRCV_BIC(val)
...
@@ -517,7 +518,7 @@ function validateRCV_BIC(val)
let
err_msg
=
""
let
err_msg
=
""
if
(
!
val
)
if
(
!
val
)
err_msg
=
'Please fill in the BIC of the receiving bank'
err_msg
=
'Please fill in the BIC of the receiving bank'
else
if
(
!
/^
[
A-Z
]{4}[
A-Z
]{2}[
A-Z0-9
]{2}([
A-Z0-9
]{3})?
$/
.
test
(
val
))
else
if
(
!
/^
[
A-Z
]{4}[
A-Z
]{2}[
A-Z0-9
]{2}([
A-Z0-9
]{3})?
$/
.
test
(
val
))
{
{
err_msg
=
'Please fill in the correct BIC'
err_msg
=
'Please fill in the correct BIC'
}
}
...
@@ -532,9 +533,9 @@ class SNDBIC extends Component{
...
@@ -532,9 +533,9 @@ class SNDBIC extends Component{
}
}
onChange
=
val
=>
{
onChange
=
val
=>
{
if
((
!
val
&&
!
this
.
state
.
snd_bic
)
||
val
==
this
.
state
.
snd_bic
)
if
((
!
val
&&
!
this
.
state
.
snd_bic
)
||
val
==
this
.
state
.
snd_bic
)
return
return
let
err_msg
=
validateRCV_BIC
(
val
)
let
err_msg
=
validateRCV_BIC
(
val
)
this
.
props
.
onChange
(
val
,
err_msg
)
this
.
props
.
onChange
(
val
,
err_msg
)
this
.
setState
({
snd_bic
:
val
,
err_msg
})
this
.
setState
({
snd_bic
:
val
,
err_msg
})
}
}
...
@@ -544,7 +545,7 @@ class SNDBIC extends Component{
...
@@ -544,7 +545,7 @@ class SNDBIC extends Component{
}
}
render
()
render
()
{
{
return
(
<
FormItem
return
(
<
FormItem
help
=
{
this
.
state
.
err_msg
}
help
=
{
this
.
state
.
err_msg
}
validateStatus
=
{
this
.
state
.
err_msg
?
'error'
:
null
}
validateStatus
=
{
this
.
state
.
err_msg
?
'error'
:
null
}
label
=
"Sending bank BIC"
required
{...
formItemLayout
}
>
label
=
"Sending bank BIC"
required
{...
formItemLayout
}
>
...
@@ -559,7 +560,7 @@ class SNDBIC extends Component{
...
@@ -559,7 +560,7 @@ class SNDBIC extends Component{
}
}
class
RCVBIC
extends
Component
{
class
RCVBIC
extends
Component
{
constructor
(
props
)
constructor
(
props
)
{
{
super
(
props
)
super
(
props
)
...
@@ -567,9 +568,9 @@ class RCVBIC extends Component{
...
@@ -567,9 +568,9 @@ class RCVBIC extends Component{
}
}
onChange
=
val
=>
{
onChange
=
val
=>
{
if
((
!
val
&&
!
this
.
state
.
rcv_bic
)
||
val
==
this
.
state
.
rcv_bic
)
if
((
!
val
&&
!
this
.
state
.
rcv_bic
)
||
val
==
this
.
state
.
rcv_bic
)
return
return
let
err_msg
=
validateRCV_BIC
(
val
)
let
err_msg
=
validateRCV_BIC
(
val
)
this
.
props
.
onChange
(
val
,
err_msg
)
this
.
props
.
onChange
(
val
,
err_msg
)
this
.
setState
({
rcv_bic
:
val
,
err_msg
})
this
.
setState
({
rcv_bic
:
val
,
err_msg
})
}
}
...
@@ -579,7 +580,7 @@ class RCVBIC extends Component{
...
@@ -579,7 +580,7 @@ class RCVBIC extends Component{
}
}
render
()
render
()
{
{
return
(
<
FormItem
return
(
<
FormItem
help
=
{
this
.
state
.
err_msg
}
help
=
{
this
.
state
.
err_msg
}
validateStatus
=
{
this
.
state
.
err_msg
?
'error'
:
null
}
validateStatus
=
{
this
.
state
.
err_msg
?
'error'
:
null
}
label
=
"Receiving bank BIC"
required
{...
formItemLayout
}
>
label
=
"Receiving bank BIC"
required
{...
formItemLayout
}
>
...
@@ -599,17 +600,17 @@ export class MessageArea extends Component{
...
@@ -599,17 +600,17 @@ export class MessageArea extends Component{
isEnd
=
false
isEnd
=
false
name
=
""
name
=
""
cells
=
[]
cells
=
[]
constructor
(
props
)
constructor
(
props
)
{
{
super
(
props
)
super
(
props
)
}
}
output
(
buff
)
output
(
buff
)
{
{
// this.cells=[] //清空成员
// this.cells=[] //清空成员
const
fields
=
this
.
props
.
pattern
const
fields
=
this
.
props
.
pattern
return
(
return
(
<
div
>
<
div
>
{
{
fields
.
map
((
item
,
index
)
=>
{
fields
.
map
((
item
,
index
)
=>
{
...
@@ -664,7 +665,7 @@ export class SWFMessage extends MessageArea
...
@@ -664,7 +665,7 @@ export class SWFMessage extends MessageArea
this
.
type
=
MESSAGE
this
.
type
=
MESSAGE
}
}
render
()
render
()
{
{
return
this
.
output
()
return
this
.
output
()
...
@@ -685,7 +686,7 @@ export class CYCList extends MessageArea
...
@@ -685,7 +686,7 @@ export class CYCList extends MessageArea
addItem
=
()
=>
{
addItem
=
()
=>
{
let
subtree
=
this
.
props
.
pattern
let
subtree
=
this
.
props
.
pattern
let
obj
=
this
.
clonePO
(
subtree
.
pattern
)
let
obj
=
this
.
clonePO
(
subtree
.
pattern
)
subtree
.
cycs
.
push
(
obj
)
subtree
.
cycs
.
push
(
obj
)
//subtree.cycs = [...subtree.cycs]
//subtree.cycs = [...subtree.cycs]
//通知刷新
//通知刷新
this
.
props
.
updateTreeValue
()
this
.
props
.
updateTreeValue
()
...
@@ -703,7 +704,7 @@ export class CYCList extends MessageArea
...
@@ -703,7 +704,7 @@ export class CYCList extends MessageArea
}
}
getValue
(
arr
)
getValue
(
arr
)
{
{
for
(
let
cell
of
this
.
cells
)
for
(
let
cell
of
this
.
cells
)
cell
.
getValue
(
arr
)
cell
.
getValue
(
arr
)
}
}
...
@@ -717,7 +718,7 @@ export class CYCList extends MessageArea
...
@@ -717,7 +718,7 @@ export class CYCList extends MessageArea
<
Button
onClick
=
{
this
.
addItem
}
size
=
"small"
type
=
"primary"
shape
=
"circle"
icon
=
"retweet"
title
=
"Add Cycle"
/>
<
Button
onClick
=
{
this
.
addItem
}
size
=
"small"
type
=
"primary"
shape
=
"circle"
icon
=
"retweet"
title
=
"Add Cycle"
/>
<
/Col
>
<
/Col
>
<
Col
>
<
Col
>
<
p
><
span
style
=
{{
fontWeight
:
'bolder'
,
fontSize
:
'1.5em'
}}
>-----><
/span></
p
>
<
p
><
span
style
=
{{
fontWeight
:
'bolder'
,
fontSize
:
'1.5em'
}}
>-----><
/span></
p
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
{
{
...
@@ -739,11 +740,11 @@ export class CYCList extends MessageArea
...
@@ -739,11 +740,11 @@ export class CYCList extends MessageArea
<
/Row
>
<
/Row
>
<
/div
>
<
/div
>
)
)
}
}
render
()
render
()
{
{
return
this
.
output
()
return
this
.
output
()
}
}
}
}
export
class
Cyc
extends
MessageArea
export
class
Cyc
extends
MessageArea
...
@@ -753,16 +754,16 @@ export class Cyc extends MessageArea
...
@@ -753,16 +754,16 @@ export class Cyc extends MessageArea
super
(
props
)
super
(
props
)
this
.
type
=
CYC
this
.
type
=
CYC
}
}
output
()
output
()
{
{
return
(
return
(
<
div
>
<
div
>
{
{
super
.
output
()
super
.
output
()
}
}
<
/div
>
<
/div
>
)
)
}
}
...
@@ -784,11 +785,11 @@ export class Seq extends MessageArea
...
@@ -784,11 +785,11 @@ export class Seq extends MessageArea
{
{
return
(
return
(
<
div
>
<
div
>
{
{
super
.
output
()
super
.
output
()
}
}
<
/div
>
<
/div
>
)
)
}
}
...
@@ -796,7 +797,7 @@ export class Seq extends MessageArea
...
@@ -796,7 +797,7 @@ export class Seq extends MessageArea
{
{
return
this
.
output
()
return
this
.
output
()
}
}
}
}
export
class
SEQList
extends
MessageArea
export
class
SEQList
extends
MessageArea
...
@@ -810,12 +811,12 @@ export class SEQList extends MessageArea
...
@@ -810,12 +811,12 @@ export class SEQList extends MessageArea
addItem
=
()
=>
{
addItem
=
()
=>
{
let
subtree
=
this
.
props
.
pattern
let
subtree
=
this
.
props
.
pattern
let
obj
=
this
.
clonePO
(
subtree
.
pattern
)
let
obj
=
this
.
clonePO
(
subtree
.
pattern
)
subtree
.
seqs
.
push
(
obj
)
subtree
.
seqs
.
push
(
obj
)
this
.
props
.
updateTreeValue
()
this
.
props
.
updateTreeValue
()
}
}
removeItem
=
(
index
)
=>
{
removeItem
=
(
index
)
=>
{
let
subtree
=
this
.
props
.
pattern
let
subtree
=
this
.
props
.
pattern
subtree
.
seqs
.
splice
(
index
,
1
)
subtree
.
seqs
.
splice
(
index
,
1
)
//通知刷新
//通知刷新
...
@@ -824,7 +825,7 @@ export class SEQList extends MessageArea
...
@@ -824,7 +825,7 @@ export class SEQList extends MessageArea
}
}
getValue
(
arr
)
getValue
(
arr
)
{
{
for
(
let
cell
of
this
.
cells
)
for
(
let
cell
of
this
.
cells
)
cell
.
getValue
(
arr
)
cell
.
getValue
(
arr
)
}
}
...
@@ -845,7 +846,7 @@ export class SEQList extends MessageArea
...
@@ -845,7 +846,7 @@ export class SEQList extends MessageArea
<
Col
>
<
Col
>
<
p
style
=
{{
fontWeight
:
'bolder'
,
fontSize
:
'1.5em'
}}
>
<
p
style
=
{{
fontWeight
:
'bolder'
,
fontSize
:
'1.5em'
}}
>
<
span
>
{
subtree
.
desp
}
<
/span
>
<
span
>
{
subtree
.
desp
}
<
/span
>
<
/p>
<
/p
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
{
{
...
@@ -867,11 +868,11 @@ export class SEQList extends MessageArea
...
@@ -867,11 +868,11 @@ export class SEQList extends MessageArea
<
/Row
>
<
/Row
>
<
/div
>
<
/div
>
)
)
}
}
render
()
render
()
{
{
return
this
.
output
()
return
this
.
output
()
}
}
}
}
...
@@ -971,7 +972,7 @@ export class Tag extends MessageArea
...
@@ -971,7 +972,7 @@ export class Tag extends MessageArea
countMap
[
key
]
++
countMap
[
key
]
++
}
}
}
}
}
}
TagV
(
"T"
+
this
.
props
.
pattern
.
tag
,
status
,
val
,
this
.
props
.
pattern
.
tno
,
this
.
props
.
mty
,
this
.
props
.
seqlist
,
this
.
props
.
extra
.
countMap
)
TagV
(
"T"
+
this
.
props
.
pattern
.
tag
,
status
,
val
,
this
.
props
.
pattern
.
tno
,
this
.
props
.
mty
,
this
.
props
.
seqlist
,
this
.
props
.
extra
.
countMap
)
...
@@ -981,7 +982,7 @@ export class Tag extends MessageArea
...
@@ -981,7 +982,7 @@ export class Tag extends MessageArea
)
)
if
(
!
comp
)
if
(
!
comp
)
return
null
;
return
null
;
return
comp
return
comp
}
}
render
()
render
()
...
@@ -993,7 +994,7 @@ export class Tag extends MessageArea
...
@@ -993,7 +994,7 @@ export class Tag extends MessageArea
{
/*<Col span={2} style={{marginTop:'0.6em'}}><span style={{fontWeight:'bolder'}}>{pattern.status}</span></Col>*/
}
{
/*<Col span={2} style={{marginTop:'0.6em'}}><span style={{fontWeight:'bolder'}}>{pattern.status}</span></Col>*/
}
<
Col
span
=
{
3
}
style
=
{{
marginTop
:
'0.6em'
,
position
:
'relative'
}}
>
<
Col
span
=
{
3
}
style
=
{{
marginTop
:
'0.6em'
,
position
:
'relative'
}}
>
{
{
pattern
.
status
==
'M'
?
pattern
.
status
==
'M'
?
<
h3
style
=
{{
color
:
'#fc561f'
,
position
:
'absolute'
,
left
:
'-0.5em'
}}
>*<
/h3
>
<
h3
style
=
{{
color
:
'#fc561f'
,
position
:
'absolute'
,
left
:
'-0.5em'
}}
>*<
/h3
>
:
null
:
null
}
}
...
@@ -1028,4 +1029,4 @@ export class Tag extends MessageArea
...
@@ -1028,4 +1029,4 @@ export class Tag extends MessageArea
obj
.
value
=
this
.
tagValue
;
obj
.
value
=
this
.
tagValue
;
arr
.
push
(
obj
)
arr
.
push
(
obj
)
}
}
}
}
\ No newline at end of file
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