Commit 3791a04f by Wuyuqiu

SwiftCode查询页面布局

parent 5b227548
<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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment