<template>
|
<div>
|
<el-dialog
|
title="导入征信信息"
|
@close="close"
|
:visible.sync="creditVisible"
|
:close-on-click-modal='false'
|
center
|
>
|
<el-table
|
stripe
|
:data="creditInfo"
|
highlight-current-row
|
@current-change="getCurrentRow"
|
:header-cell-style="{background:'#f5f5f5',color:'#222222'}"
|
>
|
<el-table-column prop="businessno" label="申请单号" width="180"></el-table-column>
|
<el-table-column prop="productname" label="产品名称"></el-table-column>
|
<el-table-column prop="customerName" label="姓名" width="120"></el-table-column>
|
<el-table-column prop="certtypeDesc" label="证件类型" width="120"></el-table-column>
|
<el-table-column prop="certid" label="证件号码" width="120"></el-table-column>
|
<el-table-column prop="inputdate" label="征信录入时间" width="120"></el-table-column>
|
<el-table-column prop="inputuseruserid" label="征信录入人" width="120"></el-table-column>
|
</el-table>
|
<span slot="footer" class="dialog-footer">
|
<el-button plain @click="close">取消</el-button>
|
<el-button type="primary" @click="submit">导入</el-button>
|
</span>
|
</el-dialog>
|
</div>
|
</template>
|
|
<style lang="stylus" scoped>
|
div
|
&>>>.el-dialog
|
width auto
|
max-width calc(100% - 180px)
|
min-width 850px
|
max-height 100%
|
overflow hidden
|
margin 0 !important
|
position absolute
|
left 50%
|
top 50%
|
transform translate(-50%,-50%)
|
.el-dialog__body
|
padding 20px
|
max-height 576px
|
overflow auto
|
.el-dialog__header
|
padding 20px 0 0
|
.el-dialog__footer
|
padding 0 0 20px
|
.el-button
|
width: 120px
|
font-size: 14px
|
line-height: 20px
|
padding: 5px 0
|
</style>
|
|
<script>
|
export default {
|
props:['visible','creditInfo'],
|
data(){
|
return {
|
credit:'',
|
}
|
},
|
computed: {
|
creditVisible:{
|
get(){
|
return this.visible
|
},
|
set(){}
|
}
|
},
|
methods:{
|
// 获取选中的数据
|
getCurrentRow(row){
|
this.credit = row
|
},
|
// 导入
|
submit(){
|
this.$emit('sendCredit',this.credit)
|
},
|
close(){
|
this.$emit('close',false)
|
}
|
}
|
}
|
</script>
|