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
3791a04f
Commit
3791a04f
authored
Dec 02, 2022
by
Wuyuqiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SwiftCode查询页面布局
parent
5b227548
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
139 additions
and
4 deletions
+139
-4
index.vue
src/widget/SwiftCode/index.vue
+139
-4
No files found.
src/widget/SwiftCode/index.vue
View file @
3791a04f
<
template
>
<div></div>
<div>
<el-form
:model=
"model"
ref=
"modelForm"
label-width=
"120px"
label-position=
"right"
size=
"small"
>
<c-col
:span=
"8"
class=
"col-left"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"银行名称"
prop=
"nam1"
>
<c-input
v-model=
"model.nam1"
placeholder=
"请输入银行名称"
>
</c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"银行编号"
prop=
"extkey"
>
<c-input
v-model=
"model.extkey"
placeholder=
"请输入银行编号"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"8"
class=
"col-left col-right"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"街道"
prop=
"str1"
>
<c-input
v-model=
"model.str1"
maxlength=
"34"
placeholder=
"请输入街道"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"BIC"
prop=
"bic"
>
<c-select
v-model=
"model.bic"
placeholder=
"请输入BIC"
style=
"width: 100%"
></c-select>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"8"
class=
"col-right"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"城市"
prop=
"loctxt"
>
<c-select
v-model=
"model.loctxt"
style=
"width: 100%"
placeholder=
"请输入城市"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"ZIP-Code"
prop=
"loczip"
>
<c-input
v-model=
"model.loczip"
placeholder=
"请输入ZIP-Code"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
style=
"text-align: right"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"small"
@
click=
"doSearch()"
>
查询
</el-button>
</c-col>
</el-form>
<c-col
:span=
"24"
>
<c-paging-table
:data=
"tableData"
:columns=
"tableColumns"
:pageNumber=
"model.pageNum"
:pageSize=
"model.pageSize"
:total=
"model.total"
v-on:queryFunc=
"queryFunc"
:border=
"true"
>
</c-paging-table>
</c-col>
</div>
</
template
>
<
script
>
import
codes
from
"~/config/CodeTable"
;
import
{
queryByPage
}
from
"~/service/test/act.js"
;
/**
* SwiftCode查询
*/
export
default
{
name
:
'SwiftCodeQuery'
name
:
'SwiftCodeQuery'
,
data
()
{
return
{
tableData
:
[],
tableColumns
:
[
{
label
:
"银行编号"
,
prop
:
"extkey"
,
width
:
"200"
},
{
label
:
"银行名称"
,
prop
:
"nam1"
,
width
:
"200"
},
{
label
:
"街道"
,
prop
:
"str1"
,
width
:
"100"
},
{
label
:
"ZIP"
,
prop
:
"loczip"
,
width
:
"200"
},
{
label
:
"城市"
,
prop
:
"loctxt"
,
width
:
"200"
},
{
label
:
"BIC"
,
prop
:
"bic"
,
width
:
"100"
},
],
model
:
{
// adr,查询条件的字段
nam1
:
""
,
extkey
:
""
,
str1
:
""
,
bic
:
""
,
loctxt
:
""
,
loczip
:
""
,
pageNum
:
1
,
pageSize
:
5
,
total
:
0
,
},
};
},
methods
:
{
handleReset
()
{
this
.
$refs
.
modelForm
.
resetFields
();
},
doSearch
()
{
queryByPage
(
this
.
model
).
then
((
res
)
=>
{
const
list
=
res
.
list
;
this
.
tableData
=
list
;
this
.
model
.
pageNum
=
res
.
pageNumber
;
this
.
model
.
pageSize
=
res
.
pageSize
;
this
.
model
.
total
=
res
.
total
;
});
},
queryFunc
(
pageNumber
,
pageSize
)
{
this
.
model
.
pageNum
=
pageNumber
;
this
.
model
.
pageSize
=
pageSize
;
this
.
doSearch
();
},
getCodesByKey
(
key
)
{
return
codes
[
key
]
??
[];
},
},
}
</
script
>
<
style
>
</
style
>
\ No newline at end of file
</
style
>
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