|
@@ -31,10 +31,10 @@
|
|
|
</el-table-column>
|
|
|
<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>
|
|
|
- <span v-else-if="scope.row.dlicense && scope.row.dlicense!=''">{{scope.row.dlicense}}</span>
|
|
|
- <span v-else-if="scope.row.otheridnumber && scope.row.otheridnumber!=''">{{scope.row.otheridnumber}}</span>
|
|
|
+ <span v-if="scope.row.idcard && scope.row.idcard!=''">{{cardNo(scope.row.idcard)}}</span>
|
|
|
+ <span v-else-if="scope.row.passport && scope.row.passport!=''">{{cardNo(scope.row.passport)}}</span>
|
|
|
+ <span v-else-if="scope.row.dlicense && scope.row.dlicense!=''">{{cardNo(scope.row.dlicense)}}</span>
|
|
|
+ <span v-else-if="scope.row.otheridnumber && scope.row.otheridnumber!=''">{{cardNo(scope.row.otheridnumber)}}</span>
|
|
|
<span v-else></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -93,7 +93,7 @@
|
|
|
<!-- @next-click="currentChange"-->
|
|
|
<!-- />-->
|
|
|
<!-- </div>-->
|
|
|
- <pageinationnew :total="total" :size="queryParams.pageSize" :page="1" :changge="currentChange" :isUrl="true"></pageinationnew>
|
|
|
+ <pageinationnew :total="total" :size="queryParams.pageSize" :page="queryParams.pageNum" :changge="currentChange" :isUrl="true"></pageinationnew>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -129,6 +129,7 @@
|
|
|
pageNum: 1,
|
|
|
// scrollId:'',
|
|
|
},
|
|
|
+ params:{},
|
|
|
cellWidth:'130',
|
|
|
cellWidthS:'90',
|
|
|
cellWidthB:'260',
|
|
@@ -151,6 +152,7 @@
|
|
|
console.log(from)
|
|
|
if (from.name === 'Index') {
|
|
|
next(vm => {
|
|
|
+ vm.queryParams.pageNum = 1;
|
|
|
vm.getList();
|
|
|
})
|
|
|
} else if (!from.name) { // 处理刷新页面时,获取动态表单方法未执行,导致表单无法加载
|
|
@@ -165,7 +167,7 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.getList();
|
|
|
+ // this.getList();
|
|
|
},
|
|
|
mounted() {
|
|
|
var clientWidth = document.body.clientWidth;
|
|
@@ -185,10 +187,10 @@
|
|
|
getList() {
|
|
|
let that = this;
|
|
|
that.loading = true;
|
|
|
- console.log(that.queryParams)
|
|
|
+ that.params = that.$route.params;
|
|
|
Object.assign(
|
|
|
that.queryParams,
|
|
|
- that.$route.params
|
|
|
+ that.params
|
|
|
)
|
|
|
// let params = Object.assign({pageNum: that.queryParams.pageNum}, this.$route.query )
|
|
|
// console.log(params)
|
|
@@ -226,9 +228,8 @@
|
|
|
handleExport() {
|
|
|
var that = this;
|
|
|
that.exportLoading = true;
|
|
|
- this.downloadNew('data/customer/export', {
|
|
|
- ...this.queryParams
|
|
|
- }, `customer_${new Date().getTime()}.csv`).then(response => {
|
|
|
+ console.log(that.params)
|
|
|
+ this.downloadNew('data/customer/export', that.params, `customer_${new Date().getTime()}.csv`).then(response => {
|
|
|
console.log(response);
|
|
|
if(response){
|
|
|
that.exportLoading = false;
|