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
677b9c03
Commit
677b9c03
authored
Oct 22, 2019
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11s 默认103
parent
e432c4c7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
SWFPage2.js
src/swift/SWFPage2.js
+10
-4
TagValidater.js
src/swift/TagValidater.js
+1
-1
No files found.
src/swift/SWFPage2.js
View file @
677b9c03
...
@@ -229,7 +229,7 @@ export class SWFPage extends Component
...
@@ -229,7 +229,7 @@ export class SWFPage extends Component
{
{
if
(
item
.
tno
==
"7"
&&
item
.
tag
==
'33B'
&&
!
this
.
getTagValue
(
item
))
if
(
item
.
tno
==
"7"
&&
item
.
tag
==
'33B'
&&
!
this
.
getTagValue
(
item
))
{
{
//
arr.push(`:33B:`)
arr
.
push
(
`:33B:`
)
}
}
}
}
...
@@ -252,7 +252,7 @@ export class SWFPage extends Component
...
@@ -252,7 +252,7 @@ export class SWFPage extends Component
let
tag19value
=
this
.
getTagValue
(
tags
[
18
])
let
tag19value
=
this
.
getTagValue
(
tags
[
18
])
if
(
tag19value
==
'BEN'
||
tag19value
==
'SHA'
)
if
(
tag19value
==
'BEN'
||
tag19value
==
'SHA'
)
{
{
//
arr.push(':71F:')
arr
.
push
(
':71F:'
)
}
}
}
}
...
@@ -366,17 +366,23 @@ export class SWFPage extends Component
...
@@ -366,17 +366,23 @@ export class SWFPage extends Component
if
(
mty
.
substring
(
0
,
2
)
!=
'mt'
)
if
(
mty
.
substring
(
0
,
2
)
!=
'mt'
)
mty
=
'mt'
+
mty
mty
=
'mt'
+
mty
let
t111
=
this
.
props
.
params
.
t111
let
gpiconf
=
GPIConfig
(
mty
,
t111
)
if
(
!
this
.
props
.
swift_message_tree
)
if
(
!
this
.
props
.
swift_message_tree
)
{
{
let
mt_config
=
MTFactory
(
mty
);
let
mt_config
=
MTFactory
(
mty
);
mt_config
=
JSON
.
parse
(
JSON
.
stringify
(
mt_config
))
mt_config
=
JSON
.
parse
(
JSON
.
stringify
(
mt_config
))
//给192 止付 11s默认填值
if
(
mty
==
'mt192'
&&
t111
==
'zf'
&&
mt_config
)
{
mt_config
.
Tags
[
2
].
tagValue
[
0
].
s1
=
'103'
}
this
.
mty
=
mty
this
.
mty
=
mty
this
.
props
.
extra
.
msgtyp
=
mty
this
.
props
.
extra
.
msgtyp
=
mty
this
.
props
.
actions
.
initSwiftMessageTree
(
mt_config
);
this
.
props
.
actions
.
initSwiftMessageTree
(
mt_config
);
}
}
let
t111
=
this
.
props
.
params
.
t111
let
gpiconf
=
GPIConfig
(
mty
,
t111
)
if
(
!
this
.
props
.
gpi
.
inited
&&
gpiconf
)
if
(
!
this
.
props
.
gpi
.
inited
&&
gpiconf
)
{
{
this
.
props
.
actions
.
initGpiConf
({
inited
:
true
,
this
.
props
.
actions
.
initGpiConf
({
inited
:
true
,
...
...
src/swift/TagValidater.js
View file @
677b9c03
...
@@ -456,7 +456,7 @@ function gpiValidate(mty,t111,tag,tno,value){
...
@@ -456,7 +456,7 @@ function gpiValidate(mty,t111,tag,tno,value){
if
(
!
/^
\/[
A-Z0-9
]{4}\/([
A-Z0-9
]{4})?
$/
.
test
(
first
))
if
(
!
/^
\/[
A-Z0-9
]{4}\/([
A-Z0-9
]{4})?
$/
.
test
(
first
))
{
{
msg
=
'请在第一行填写正确的状态码——"状态码/子状态码"'
msg
=
'请在第一行填写正确的状态码——"
/
状态码/子状态码"'
errors
.
s1
=
msg
errors
.
s1
=
msg
return
msg
return
msg
}
}
...
...
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