|
@@ -18,9 +18,9 @@
|
|
|
>导出</el-button>
|
|
|
</div>
|
|
|
<el-table v-loading="loading" :data="customerList">
|
|
|
- <el-table-column label="客户号" width="120" align="center" prop="custid" />
|
|
|
- <el-table-column label="姓名" align="center" prop="name" :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="证件类型" align="center" >
|
|
|
+ <el-table-column label="客户号" :width="cellWidth" align="center" prop="custid" />
|
|
|
+ <el-table-column label="姓名" :width="cellWidth" align="center" prop="name" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column label="证件类型" :width="cellWidth" align="center" >
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.idcard!=undefined && scope.row.idcard!=''">身份证</span>
|
|
|
<span v-else-if="scope.row.passport!=undefined && scope.row.passport!=''">护照</span>
|
|
@@ -28,7 +28,7 @@
|
|
|
<span v-else-if="scope.row.othernumber!=undefined && scope.row.othernumber!=''">其它证件类型</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="证件号码" width="160" align="center" :show-overflow-tooltip="true">
|
|
|
+ <el-table-column label="证件号码" align="center" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.idcard && scope.row.idcard!=''">{{scope.row.idcard}}</span>
|
|
|
<span v-else-if="scope.row.passport && scope.row.passport!=''">{{scope.row.passport}}</span>
|
|
@@ -36,19 +36,19 @@
|
|
|
<span v-else></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="性别" align="center" prop="gender" width="70">
|
|
|
+ <el-table-column label="性别" align="center" prop="gender" :width="cellWidthS">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.gender == 0">男</span>
|
|
|
<span v-else>女</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="出生日期" align="center" width="150">
|
|
|
+ <el-table-column label="出生日期" align="center" :width="cellWidth">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.birthday,'{yy}-{mm}-{dd}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="年龄" align="center" prop="age" width="70" />
|
|
|
- <el-table-column label="客户等级" align="center" prop="level" width="80">
|
|
|
+ <el-table-column label="年龄" align="center" prop="age" :width="cellWidthS" />
|
|
|
+ <el-table-column label="客户等级" align="center" prop="level" :width="cellWidthS">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{levelText(scope.row.custclass)}}</span>
|
|
|
</template>
|
|
@@ -56,7 +56,7 @@
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
|
align="center"
|
|
|
- width="270"
|
|
|
+ :width="cellWidthB"
|
|
|
class-name="small-padding fixed-width"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
@@ -111,6 +111,9 @@
|
|
|
pageNum: 1,
|
|
|
pageSize: 10
|
|
|
},
|
|
|
+ cellWidth:'130',
|
|
|
+ cellWidthS:'90',
|
|
|
+ cellWidthB:'260',
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -119,6 +122,19 @@
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ var clientWidth = document.body.clientWidth;
|
|
|
+ var that = this;
|
|
|
+ if(clientWidth <= 1370){
|
|
|
+ that.cellWidth='120';
|
|
|
+ that.cellWidthS='80';
|
|
|
+ that.cellWidthB='160';
|
|
|
+ }else{
|
|
|
+ that.cellWidth='160';
|
|
|
+ that.cellWidthS='120';
|
|
|
+ that.cellWidthB='280';
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
/** 查询用户列表 */
|
|
|
getList() {
|