Commit 4f596312 authored by feifei's avatar feifei

测试部署1

parent 1c58eaf6
......@@ -42,7 +42,12 @@
<el-table-column prop="certNo" label="身份证号"></el-table-column>
<el-table-column prop="level" label="授信级别"></el-table-column>
<el-table-column prop="productName" label="产品名称" :formatter="productNameFormat"></el-table-column>
<el-table-column prop="memo" label="备注"></el-table-column>
<el-table-column prop="userStatus" label="状态" :formatter="userStatusFormat"></el-table-column>
<el-table-column label="操作">
<template scope="scope">
<el-button type="primary" size="small" v-if="scope.row.userStatus == 'REAL_NAME'" @click="cancellation(scope.row)">注销</el-button>
</template>
</el-table-column>
<el-table-column label="查看详情">
<template scope="scope">
<el-button type="text" size="small" @click="loanDetail(scope.row)">查看详情</el-button>
......@@ -69,6 +74,7 @@
return {
flag: false,
isShow: false,
isCancell: false,
activeNames:['1'],
page: {
current: 1,
......@@ -158,6 +164,42 @@
},
//用户注销
cancellation(record){
this.$confirm('注销后此账户将被限制登录', '确定注销?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
/*this.$$post('/customer/cancellation', {clientNo:record.clientNo, clientCell:record.clientCell}).then(res => {
if (res.data.code != 200) {
this.isShow = false;
this.$message.error(res.data.message);
return
}
this.backedData();
}).catch(error => {
this.$Message.error(error || '系统异常');
});*/
this.$message({
type: 'success',
message: '注销成功!'
});
}).catch(() => {
this.$message({
type: 'info',
message: '已取消注销'
});
});
},
loanDetail(record){
this.$router.push({
path: 'ByhServiceDetail',
......@@ -220,6 +262,12 @@
return this.$enumUtils.toMsg('BusinessType', status);
},
//用户状态
userStatusFormat: function (row, column) {
var status = row['userStatus'];
return this.$enumUtils.toMsg('UserStatusType', status);
},
//借款单状态
loanStatusFormat: function (row, column) {
var status = row['status'];
......
......@@ -85,7 +85,9 @@
</el-collapse-item>
<el-collapse-item title="借款信息" name="2">
<el-collapse-item name="2">
<h2>借款信息</h2>
<br/>
<el-table :data="loanResultLists" stripe style="width: 100%;">
<el-table-column prop="loanNo" label="借款编号"></el-table-column>
......
......@@ -304,6 +304,17 @@ const enumUtils = {
]
};
// 用户状态
enumOpts[32] = {
enumName: 'UserStatusType', values: [
{code: 'TEMP', message: '临时用户'},
{code: 'NEW', message: '注册用户'},
{code: 'REAL_NAME', message: '实名用户'},
{code: 'LOCK', message: '冻结'},
{code: 'CANCEL', message: '注销'},
]
};
for (var enumOptNum in enumOpts) {
if (enumOpts[enumOptNum].enumName == enumName) {
for (var msgNum in enumOpts[enumOptNum].values) {
......
{
"name": "versiony",
"version": "5.5.7"
"version": "5.5.8"
}
\ No newline at end of file
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