Commit 1c58eaf6 authored by feifei's avatar feifei

测试部署

parent 2cdef49a
......@@ -18,7 +18,7 @@
<!--接口配置-->
<script>
//本地测试
//window.APIHOST = "http://192.168.0.50:8102";
//window.APIHOST = "http://192.168.0.50:8202";
//测试
window.APIHOST ="http://47.99.245.36:8202";
......
......@@ -34,34 +34,23 @@
<!-- 列表 -->
<div v-show="isShow">
<el-table :data="loanApplyList" stripe style="width: 100%;" row-key="clientNo" :lazy = true :load="load" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
<el-table :data="loanApplyList" stripe style="width: 100%;">
<el-table-column prop="clientNo" label="客户编号"></el-table-column>
<el-table-column prop="clientName" label="姓名"></el-table-column>
<el-table-column prop="clientCell" label="手机号"></el-table-column>
<el-table-column prop="certNo" label="身份证号"></el-table-column>
<el-table-column prop="level" label="授信级别"></el-table-column>
<el-table-column prop="productName" 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 label="操作">
<el-table-column label="查看详情">
<template scope="scope">
<el-button type="text" size="small" @click="loanDetail(scope.row)">详情</el-button>
<el-button type="text" size="small" @click="loanDetail(scope.row)">查看详情</el-button>
</template>
</el-table-column>
</el-table>
<br/>
<!--
<div class="page">
<el-pagination
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
:current-page.sync="page.current"
:page-sizes="[10, 20, 50, 100]"
:page-size="page.size"
layout="total, sizes, prev, pager, next, jumper"
:total="page.total">
</el-pagination>
</div> -->
</div>
......@@ -121,9 +110,10 @@
this.backedData()
}
},
methods: {
readDetail (record) {
//console.log(record)
this.ui.readDetail = {
visible: true,
phone: record.phone,
......@@ -141,8 +131,8 @@
/** 加载数据 */
backedData () {
if(this.searchInfo.clientCell == '' && this.searchInfo.clientNo =='' && this.searchInfo.productName =='' && this.searchInfo.certNo == ''){
this.$message({message: '参数不能为空', type: 'error'});
if(this.searchInfo.clientCell == '' && this.searchInfo.clientNo =='' && this.searchInfo.certNo == ''){
this.$message({message: '手机号或客户编号或身份证号不能为空', type: 'error'});
return;
}
this.loanList()
......@@ -161,12 +151,10 @@
}
this.isShow = true;
this.loanApplyList = res.data.result;
console.log(this.loanApplyList)
//this.page.total = res.data.result.total;
}).catch(error => {
this.$Message.error(error || '系统异常');
});
},
......@@ -176,8 +164,9 @@
query: {
clientNo: record.clientNo,
clientName: record.clientName,
clientCell: record.clientCell,
certNo: record.certNo,
clientCell: this.searchInfo.clientCell,
certNo: this.searchInfo.certNo,
productName: this.searchInfo.productName,
loanNo: record.loanNo,
orderNo: record.orderNo,
current: this.page.current,
......@@ -190,24 +179,6 @@
this.backedData();
},
load(tree, treeNode, resolve) {
setTimeout(() => {
resolve([
{
id: 31,
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄'
}, {
id: 32,
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄'
}
])
}, 1000)
},
/** 处理分页操作*/
handleCurrentChange () {
this.loanApplyList = this.backedData()
......@@ -243,11 +214,16 @@
return moment(date).format("YYYY-MM-DD")
},
//产品名称
productNameFormat: function (row, column) {
var status = row['productName'];
return this.$enumUtils.toMsg('BusinessType', status);
},
//客服状态
serviceFormat: function (row, column) {
var status = row['pointStatus'];
return this.$enumUtils.toMsg('ServiceStatus', status);
//借款单状态
loanStatusFormat: function (row, column) {
var status = row['status'];
return this.$enumUtils.toMsg('LoanStatusEnum', status);
},
//参数
......@@ -271,6 +247,9 @@
if (this.searchInfo.loanNo != '') {
return_hash['loanNo'] = this.searchInfo.loanNo
}
if (this.searchInfo.productName != '') {
return_hash['productName'] = this.searchInfo.productName
}
return return_hash;
......
This diff is collapsed.
......@@ -32,6 +32,13 @@
start-placeholder="开始日期"
end-placeholder="结束日期" :clearable="false"></el-date-picker>
</el-form-item>
<el-form-item label="产品名称">
<el-select clearable v-model="searchInfo.productName" >
<el-option v-for="item in this.$enumUtils.toValue('BusinessType')" :key="item.value"
:label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<div class="btn">
<el-button @click="reset" type="primary">重置</el-button>
<el-button @click="querySearchRemind" type="primary">查询</el-button>
......@@ -59,6 +66,7 @@
<el-table-column prop="clientCell" label="手机号" ></el-table-column>
<el-table-column prop="gmtCreated" label="反馈时间" :formatter="dateFormat" ></el-table-column>
<el-table-column prop="feedType" label="反馈类型" ></el-table-column>
<el-table-column prop="productName" label="产品名称" :formatter="productNameFormat" ></el-table-column>
<el-table-column prop="feedStatus" label="解决状态" ></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
......@@ -113,6 +121,7 @@
clientCell: '',
feedType : '',
feedStatus:'',
productName:'',
},
tablePlanRemindData: [],
record: '',
......@@ -128,7 +137,6 @@
filters: {
filterFun: function (value) {
console.log(value,666)
if(value.length > 20) {
value= value.substring(0,10)+ '...';
}
......@@ -216,6 +224,12 @@
});
},
//产品名称
productNameFormat: function (row, column) {
var status = row['productName'];
return this.$enumUtils.toMsg('BusinessType', status);
},
//参数
buildParam () {
......@@ -240,6 +254,9 @@
if (this.searchInfo.feedStatus != '') {
return_hash['feedStatus'] = this.searchInfo.feedStatus
}
if (this.searchInfo.productName != '') {
return_hash['productName'] = this.searchInfo.productName
}
if (this.searchInfo.gmtCreated != null && this.searchInfo.gmtCreated.length>0) {
var  end = new Date(this.searchInfo.gmtCreated[1])
......@@ -247,7 +264,7 @@
          end=end.setDate(end.getDate()+1);
          end=new Date(end);
          return_hash['gmtTimeStart'] = this.searchInfo.gmtCreated[0];
          return_hash['gmtCreated'] = this.searchInfo.gmtCreated[0];
          return_hash['gmtTimeEnd'] = end
}
......@@ -286,6 +303,7 @@
this.searchInfo.feedType = '';
this.searchInfo.feedStatus = '';
this.searchInfo.gmtCreated = '';
this.searchInfo.productName = '';
},
/** 处理分页操作*/
......
......@@ -296,9 +296,13 @@ const enumUtils = {
]
};
// 产品名称
enumOpts[31] = {
enumName: 'BusinessType', values: [
{code: 'GXD', message: '工薪贷'},
{code: 'FO_GJJ', message: '51公积金'},
]
};
for (var enumOptNum in enumOpts) {
if (enumOpts[enumOptNum].enumName == enumName) {
......@@ -498,16 +502,13 @@ const enumUtils = {
]
};
// 解决状态
// 产品名称
enumOpts[18] = {
enumName: 'BusinessType', values: [
{value: 'GXD', label: '工薪贷'},
{value: 'FO_GJJ', label: '51公积金'},
]
};
for (var enumOptNum in enumOpts) {
if (enumOpts[enumOptNum].enumName == enumName) {
......
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