Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
vue-gjjs
Commits
66cf62c4
Commit
66cf62c4
authored
Feb 16, 2023
by
xionglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swmdba
parent
b3be8960
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
267 additions
and
10 deletions
+267
-10
index.js
src/config/CodeTable/index.js
+31
-0
index.vue
src/views/Statics/Dbaswm/index.vue
+26
-0
index.vue
src/views/Statics/Dbdswm/index.vue
+21
-0
SwmAdd.vue
src/views/Statics/Dbiswm/SwmAdd.vue
+169
-0
SwmInfo.vue
src/views/Statics/Dbiswm/SwmInfo.vue
+1
-1
index.vue
src/views/Statics/Dbiswm/index.vue
+14
-6
Infsea.vue
src/views/Statics/Infswm/Infsea.vue
+1
-1
StaticsRouter.js
src/views/Statics/StaticsRouter.js
+4
-2
No files found.
src/config/CodeTable/index.js
View file @
66cf62c4
...
...
@@ -6738,6 +6738,37 @@ const CodeTable = {
{
label
:
"电传系统"
,
value
:
"TLX001"
},
{
label
:
"Swift-TSU"
,
value
:
"TSU001"
},
],
dstgrp
:[
{
label
:
"LIDGRP"
,
value
:
"LIDGRP"
},
{
label
:
"LEDGRP"
,
value
:
"LEDGRP"
},
{
label
:
"SWIADD"
,
value
:
"SWIADD"
},
{
label
:
"BEDGRP"
,
value
:
"BEDGRP"
},
{
label
:
"DEDGRP"
,
value
:
"DEDGRP"
},
{
label
:
"CPDGRP"
,
value
:
"CPDGRP"
},
],
ovwflg
:[
{
label
:
"是"
,
value
:
""
},
{
label
:
"否"
,
value
:
"N"
}
],
met
:[
{
label
:
"neg.amount"
,
value
:
"AMN"
},
{
label
:
"BIC Resolution"
,
value
:
"BIC"
},
{
label
:
"Codetable"
,
value
:
"CT"
},
{
label
:
"Ignore"
,
value
:
"IGN"
},
{
label
:
"Numeric value"
,
value
:
"NUM"
},
{
label
:
"Text to Date"
,
value
:
"TDA"
},
{
label
:
"TradeConnect ID"
,
value
:
"TID"
},
{
label
:
"Address Resolution (PTW)"
,
value
:
"PTM"
},
{
label
:
"Text up to /"
,
value
:
"TX1"
},
{
label
:
"Text after /"
,
value
:
"TX2"
},
{
label
:
"Check Key in Codetable"
,
value
:
"CTC"
},
{
label
:
"BIC Trimming"
,
value
:
"BIE"
},
{
label
:
"Codetable for ' Unmapped'"
,
value
:
"CTU"
},
{
label
:
"Unmapped"
,
value
:
"UNM"
},
{
label
:
"Numeric value up to /"
,
value
:
"NU1"
},
{
label
:
"Address resolution from block"
,
value
:
"ADR"
},
{
label
:
"Purpose Code(22A)"
,
value
:
"PUP"
},
],
docsnf
:
[
{
label
:
"简单信件"
,
value
:
"LET"
},
{
label
:
"通过航空邮件"
,
value
:
"LETAML"
},
...
...
src/views/Statics/Dbaswm/index.vue
0 → 100644
View file @
66cf62c4
<
template
>
<m-swm
ref=
"swm"
title=
"dbaswm"
type=
"add"
></m-swm>
</
template
>
<
script
>
import
Dbiswm
from
"~/views/Statics/Dbiswm"
;
export
default
{
name
:
"StaticsDbaswm"
,
components
:
{
"m-swm"
:
Dbiswm
},
data
()
{
return
{};
},
// mounted() {
// this.$refs.fec.rules['fecList'] = [
// { type: 'array', required: true, min: 1, message: '地址信息栏不能为空' }
// ]
// }
};
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/views/Statics/Dbdswm/index.vue
0 → 100644
View file @
66cf62c4
<
template
>
<m-swm
title=
"dbdswm"
type=
"delete"
></m-swm>
</
template
>
<
script
>
import
Dbiswm
from
"~/views/Statics/Dbiswm"
;
export
default
{
name
:
"StaticsDbdswm"
,
components
:
{
"m-swm"
:
Dbiswm
},
data
()
{
return
{};
},
};
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/views/Statics/Dbiswm/SwmAdd.vue
0 → 100644
View file @
66cf62c4
<
template
>
<div
class=
"eibs-tab"
>
<c-col
:span=
"12"
class=
"col-left"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"报文格式"
prop=
"fmt"
>
<c-select
v-model=
"model.fmt"
placeholder=
"请选择报文格式"
:code=
"getCodesByKey('fmt')"
style=
"width:100%"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"映射交易"
prop=
"frm"
>
<c-input
v-model=
"model.frm"
placeholder=
"请输入映射交易"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"12"
class=
"col-right"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"报文类型"
prop=
"mt"
>
<c-input
v-model=
"model.mt"
placeholder=
"请选择报文类型"
style=
"width:100%"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
style=
""
>
<c-table
style=
"text-align: center"
:list=
"dataList"
:paginationShow=
"true"
:border=
"true"
>
<el-table-column
label=
"报文元素"
width=
"auto"
>
<template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.tag"
style=
"width: 100%"
placeholder=
"请输入报文元素"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"报文元素id"
width=
"auto"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.subtag"
style=
"width: 100%"
placeholder=
"请输入报文元素id"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"映射模型组"
prop=
"dstgrp"
width=
"auto"
>
<
template
slot-scope=
"scope"
>
<c-select
v-model=
"scope.row.dstgrp"
>
<el-option
v-for=
"item in codes.dstgrp"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</
template
>
</el-table-column>
<el-table-column
label=
"映射字段"
width=
"auto"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.dst"
style=
"width: 100%"
placeholder=
"请输入映射字段"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"覆盖标识"
prop=
"ovwflg"
width=
"auto"
>
<
template
slot-scope=
"scope"
>
<c-select
v-model=
"scope.row.ovwflg"
>
<el-option
v-for=
"item in codes.ovwflg"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</
template
>
</el-table-column>
<el-table-column
label=
"附加映射方法"
prop=
"met"
width=
"auto"
>
<
template
slot-scope=
"scope"
>
<c-select
v-model=
"scope.row.met"
>
<el-option
v-for=
"item in codes.met"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</c-select>
</
template
>
</el-table-column>
<el-table-column
label=
"指示"
width=
"auto"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.ins"
style=
"width: 100%"
placeholder=
"请输入指示"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
""
prop=
"det"
width=
"auto"
fixed=
"right"
>
<
template
slot-scope=
"scope"
slot=
"header"
>
<c-button
circle
style=
"padding: 4px"
class=
"el-icon-plus"
size=
"mini"
@
click=
"addRowSetfol(scope)"
>
</c-button>
<c-button
style=
"padding: 4px"
circle
class=
"el-icon-minus"
size=
"mini"
@
click=
"removeRowSetfol(scope)"
>
</c-button>
</
template
>
<
template
slot-scope=
"scoped"
>
<c-button
style=
"margin-left: 0"
size=
"small"
type=
"primary"
icon=
"el-icon-info"
@
click=
"detail2(scoped)"
></c-button>
</
template
>
</el-table-column>
</c-table>
</c-col>
</div>
</template>
<
script
>
import
codes
from
"~/config/CodeTable"
;
export
default
{
props
:[
"model"
,
"codes"
],
data
(){
return
{
dataList
:[]
}
},
methods
:{
getCodesByKey
(
key
)
{
return
codes
[
key
]
??
[];
},
addRowSetfol
()
{
let
newRow
=
{
...
this
.
newdialog
};
this
.
dataList
.
splice
(
0
,
0
,
newRow
);
},
removeRowSetfol
()
{
this
.
dataList
.
shift
();
},
detail2
(){
},
}
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/views/Statics/Dbiswm/SwmInfo.vue
View file @
66cf62c4
...
...
@@ -51,7 +51,7 @@ export default {
{
label
:
"报文元素"
,
prop
:
"tag"
,
width
:
"auto"
},
{
label
:
"报文元素id"
,
prop
:
"subtag"
,
width
:
"auto"
},
{
label
:
"映射模型组"
,
prop
:
"dstgrp"
,
width
:
"auto"
},
{
label
:
"映射字段"
,
prop
:
"
ovwflg
"
,
width
:
"auto"
},
{
label
:
"映射字段"
,
prop
:
"
dst
"
,
width
:
"auto"
},
{
label
:
"附加映射方法"
,
prop
:
"met"
,
width
:
"auto"
},
{
label
:
"指示"
,
prop
:
"ins"
,
width
:
"auto"
}
],
...
...
src/views/Statics/Dbiswm/index.vue
View file @
66cf62c4
...
...
@@ -12,10 +12,13 @@
:disabled=
"isDisabled"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
>
<el-tab-pane
label=
"报文栏位映射信息
详情
"
name=
"swm"
>
<c-content>
<el-tab-pane
label=
"报文栏位映射信息"
name=
"swm"
>
<c-content
v-show=
"this.type=='info'|| this.type=='delete'"
>
<m-swm-info
:swmModel=
"swmModel"
:model1=
"model1"
/>
</c-content>
<c-content
v-show=
"this.type=='add'"
>
<m-swm-add
:model=
"model"
:codes=
"codes"
></m-swm-add>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
...
...
@@ -48,10 +51,12 @@
</
template
>
<
script
>
import
CodeTable
from
"~/config/CodeTable"
;
import
Utils
from
"~/utils"
;
import
Swm
,
{
Pattern
}
from
"./Swm.js"
;
import
SwmInfo
from
"./SwmInfo.vue"
;
import
SwmAdd
from
"./SwmAdd"
;
import
{
queryById
,
add
,
edit
,
deleteById
}
from
"~/service/test/swm.js"
;
...
...
@@ -59,6 +64,7 @@ export default {
name
:
"StaticsDbiswm"
,
components
:
{
"m-swm-info"
:
SwmInfo
,
"m-swm-add"
:
SwmAdd
},
provide
()
{
return
{
...
...
@@ -88,7 +94,9 @@ export default {
pageSize
:
5
,
total
:
0
,
},
swmModel
:[]
swmModel
:[],
codes
:
{...
CodeTable
},
};
},
computed
:
{
...
...
@@ -103,8 +111,6 @@ export default {
if
(
res
.
list
.
length
!==
0
)
{
this
.
swmModel
=
res
.
list
;
this
.
model1
.
total
=
res
.
total
console
.
log
(
"--------"
)
console
.
log
(
this
.
swmModel
)
}
else
{
this
.
$message
.
error
(
"信息不存在"
)
}
...
...
@@ -115,6 +121,8 @@ export default {
commitAdd
()
{
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
console
.
log
(
"======="
)
console
.
log
(
this
.
model
)
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
...
...
@@ -151,7 +159,7 @@ export default {
type
:
"warning"
,
})
.
then
(()
=>
{
deleteById
(
this
.
model
.
inr
)
deleteById
(
this
.
model
1
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"删除成功!"
);
this
.
goBack
(
true
)
...
...
src/views/Statics/Infswm/Infsea.vue
View file @
66cf62c4
...
...
@@ -170,7 +170,7 @@ export default {
this
.
$router
.
push
(
`/statics/dbeswm/
${
row
.
inr
}
`
);
},
swmDelete
(
index
,
row
)
{
this
.
$router
.
push
(
`/statics/dbdswm/
${
row
.
inr
}
`
);
this
.
$router
.
push
(
{
name
:
"StaticsDbdswm"
,
params
:
{
mt
:
row
.
mt
,
fmt
:
row
.
fmt
,
frm
:
row
.
frm
,
pageSize
:
5
,
pageNum
:
1
}
}
);
},
},
};
...
...
src/views/Statics/StaticsRouter.js
View file @
66cf62c4
...
...
@@ -120,6 +120,8 @@ import Dbeety from "./Dbeety";
import
Dbdety
from
"./Dbdety"
;
import
Infswm
from
"./Infswm"
;
import
Dbiswm
from
"./Dbiswm"
;
import
Dbaswm
from
"./Dbaswm"
import
Dbdswm
from
"./Dbdswm"
import
Inftdh
from
"./Inftdh"
;
import
Dbitdh
from
"./Dbitdh"
;
...
...
@@ -277,10 +279,10 @@ const StaticsRouter = [
{
path
:
'dbepts/:extkey'
,
component
:
Dbipts
,
name
:
'StaticsDbepts'
,
meta
:
{
title
:
(
tag
)
=>
{
return
'客户信息修改: '
+
tag
.
params
.
extkey
}
}
},
{
path
:
'infswm'
,
component
:
Infswm
,
name
:
'StaticsInfswm'
,
meta
:
{
title
:
'报文栏位映射信息查询'
}
},
//
{ path: 'dbaswm', component: Dbaswm, name: 'StaticsDbaswm', meta: { title: '报文栏位映射信息新增' } },
{
path
:
'dbaswm'
,
component
:
Dbaswm
,
name
:
'StaticsDbaswm'
,
meta
:
{
title
:
'报文栏位映射信息新增'
}
},
{
path
:
'dbiswm'
,
component
:
Dbiswm
,
name
:
'StaticsDbiswm'
,
meta
:
{
title
:
'报文栏位映射信息详情: '
}
},
// { path: 'dbeswm/:inr', component: Dbeswm, name: 'StaticsDbeswm', meta: { title: (tag) => { return '报文栏位映射信息修改: ' + tag.params.inr } } },
// { path: 'dbdswm/:inr', component: Dbdswm, name: 'StaticsDbdswm', meta: { title: (tag) => { return '报文栏位映射信息删除: ' + tag.params.inr }
} },
{
path
:
'dbdswm'
,
component
:
Dbdswm
,
name
:
'StaticsDbdswm'
,
meta
:
{
title
:
'报文栏位映射信息删除: '
}
},
{
path
:
'inftdh'
,
component
:
Inftdh
,
name
:
'StaticsInftdh'
,
meta
:
{
title
:
'节假日查询'
}
},
{
path
:
'dbatdh'
,
component
:
Dbatdh
,
name
:
'StaticsDbatdh'
,
meta
:
{
title
:
'节假日新增'
}
},
{
path
:
'dbitdh/:inr'
,
component
:
Dbitdh
,
name
:
'StaticsDbitdh'
,
meta
:
{
title
:
(
tag
)
=>
{
return
'节假日详情: '
+
tag
.
params
.
inr
}
}
},
...
...
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