Commit d0d16acc by ZcyJames

1.人民币基础数据导入回显

parent cf778fe9
......@@ -6,7 +6,7 @@
<el-upload action="/webapi/frontend/fxdsdb/upload" :before-upload="handleBeforeUpload" :on-success="handleSuccess" :limit="1" :show-file-list="false" accept=".xml">
<c-button slot="trigger" size="small" type="primary">导入</c-button>
</el-upload>
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%;margin-top: 10px;"
<el-table v-if="isDispaly" :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%;margin-top: 10px;"
size="small" :border="true"
:highlight-current-row="true">
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
......@@ -36,15 +36,263 @@ export default {
isDispaly: false,
load: false,
stmData: {
columns: [
{
label: "导入日期",
prop: "credat",
width: "120px"
},
],
columns: [],
data: []
}
},
fxdcomlstHead:[
{
label: "公共数据代码",
prop: "comcod",
width: "100px"
},
{
label: "公共数据中文名称",
prop: "comnam",
width: "100px"
},
{
label: "公共数据值",
prop: "val",
width: "100px"
},
{
label: "生效类型",
prop: "typ",
width: "100px"
},
{
label: "生效日期",
prop: "effdat",
width: "100px"
},
{
label: "公共数据类型",
prop: "comtyp",
width: "100px"
},
{
label: "公共参数英文名称",
prop: "comengnam",
width: "100px"
},
{
label: "变更类型",
prop: "chgtyp",
width: "100px"
},
{
label: "变更期数",
prop: "changeterm",
width: "100px"
},
],
fxdriglstHead:[
{
label: "参与者机构号",
prop: "bic",
width: "100px"
},
{
label: "报文类型",
prop: "msgtyp",
width: "100px"
},
{
label: "业务方向",
prop: "sndtyp",
width: "100px"
},
],
fxdtyplstHead:[
{
label: "报文类型",
prop: "typ",
width: "100px"
},
{
label: "bizdtltyp",
prop: "msgtyp",
width: "100px"
},
],
fxdsuelstHead:[
{
label: "参与者变更期数",
prop: "issueno",
width: "100px"
},
{
label: "公共参数变更期数",
prop: "comissueno",
width: "100px"
},
{
label: "直间参关系变更期数",
prop: "bdrissueno",
width: "100px"
},
],
fxdpatlstHead:[
{
label: "参与者机构代码",
prop: "cod",
width: "100px"
},
{
label: "参与者机构中文名称",
prop: "chnnam",
width: "100px"
},
{
label: "参与者英文名称",
prop: "engnam",
width: "100px"
},
{
label: "国别",
prop: "cty",
width: "100px"
},
{
label: "境内外标识",
prop: "cbtype",
width: "100px"
},
{
label: "参与者资格标识",
prop: "bakcat",
width: "100px"
},
{
label: "所属资金托管行",
prop: "ctdbak",
width: "100px"
},
{
label: "法人机构识别编码",
prop: "lei",
width: "100px"
},
{
label: "有效标识",
prop: "valflg",
width: "100px"
},
{
label: "生效日期",
prop: "effdat",
width: "100px"
},
{
label: "联系人姓名",
prop: "nam",
width: "100px"
},
{
label: "联系人电话",
prop: "tel",
width: "100px"
},
{
label: "联系人邮件地址",
prop: "mal",
width: "100px"
},
{
label: "联系人地址",
prop: "address",
width: "100px"
},
{
label: "联系人邮编",
prop: "zipcod",
width: "100px"
},
{
label: "前一次更新状态",
prop: "presta",
width: "100px"
},
{
label: "当前更新状态",
prop: "sta",
width: "100px"
},
{
label: "变更期数",
prop: "issueno",
width: "100px"
},
{
label: "办理业务状态",
prop: "bizsta",
width: "100px"
},
],
fxdrellstHead:[
{
label: "参与者机构",
prop: "cod",
width: "100px"
},
{
label: "所属直接参与机构号",
prop: "drbankcod",
width: "100px"
},
{
label: "生效日期",
prop: "effdat",
width: "100px"
},
{
label: "上次更新类型",
prop: "preupdtyp",
width: "100px"
},
{
label: "变更期数",
prop: "issueno",
width: "100px"
},
{
label: "更新类型",
prop: "updtyp",
width: "100px"
},
],
fxddcflstHead:[
{
label: "参与者机构",
prop: "cod",
width: "100px"
},
{
label: "证书DN",
prop: "dn",
width: "100px"
},
{
label: "证书SN",
prop: "sn",
width: "100px"
},
{
label: "证书有效期起始日期",
prop: "stadat",
width: "100px"
},
{
label: "证书有效期结束日期",
prop: "enddat",
width: "100px"
},
{
label: "数字证书内容",
prop: "binmsgbdy",
width: "100px"
},
],
};
},
watch: {
......@@ -64,6 +312,36 @@ export default {
},
handleSuccess(res, file) {
console.log('=====', res)
if(res.respCode == SUCCESS){
if(res.data.filtyp=='9' || res.data.filtyp=='10'){
this.stmData.columns=this.fxdcomlstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdcomlst
}
if(res.data.filtyp=='11'){
this.stmData.columns=this.fxdtyplstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdtyplst
}
if(res.data.filtyp=='12'){
this.stmData.columns=this.fxdsuelstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdsuelst
}
if(res.data.filtyp=='13' || res.data.filtyp=='14' || res.data.filtyp=='15'){
this.stmData.columns=this.fxdcomlstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdcomlst
}
if(res.data.filtyp=='16' || res.data.filtyp=='17'){
this.stmData.columns=this.fxdcomlstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdcomlst
}
if(res.data.filtyp=='18'){
this.stmData.columns=this.fxddcflstHead;
this.stmData.data = res.data.cpsfxdgrp.fxddcflst
}
if(res.data.filtyp=='19'){
this.stmData.columns=this.fxdriglstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdriglst
}
}
this.load = false;
this.isDispaly = true;
},
......
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