Commit c5fd20ac authored by hanfeng's avatar hanfeng

修改用户列表

parent 94ae4dad
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</el-button> </el-button>
</div> </div>
<el-table :key='tableKey' :data="list" v-loading.body="listLoading" border fit highlight-current-row <el-table :key='tableKey' :data="list" v-loading.body="listLoading" border fit highlight-current-row
style="width: 1212px;"> style="width: 100%;">
<el-table-column width="150" align="center" label="手机号"> <el-table-column width="150" align="center" label="手机号">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.username}}</span> <span>{{scope.row.username}}</span>
......
...@@ -643,8 +643,8 @@ ...@@ -643,8 +643,8 @@
}, },
sexObj:{ sexObj:{
0:'女', 1:'女',
1:'男' 2:'男'
}, },
source: { source: {
0: '自来', 0: '自来',
...@@ -785,14 +785,14 @@ ...@@ -785,14 +785,14 @@
let query = JSON.parse(JSON.stringify(this.listQuery)) let query = JSON.parse(JSON.stringify(this.listQuery))
query.source = query.source ? query.source - 1 : '' query.source = query.source ? query.source - 1 : ''
console.log('handleFilterStatus:this.listQuery=' + JSON.stringify(this.listQuery)) // console.log('handleFilterStatus:this.listQuery=' + JSON.stringify(this.listQuery))
query.registrationTimeBegin =this.listQuery.registrationTimeBegin query.registrationTimeBegin =this.listQuery.registrationTimeBegin
?(new Date(query.registrationTimeBegin).getTime()) / 1000:undefined ?(new Date(query.registrationTimeBegin).getTime()) / 1000:undefined
query.registrationTimeEnd = this.listQuery.registrationTimeEnd query.registrationTimeEnd = this.listQuery.registrationTimeEnd
? (new Date( query.registrationTimeEnd).getTime()) / 1000:undefined ? (new Date( query.registrationTimeEnd).getTime()) / 1000:undefined
//
console.log('handleFilterEnd:this.listQuery=' + JSON.stringify(this.listQuery)) // console.log('handleFilterEnd:this.listQuery=' + JSON.stringify(this.listQuery))
console.log('query================' + JSON.stringify(query)) // console.log('query================' + JSON.stringify(query))
appPage(query) appPage(query)
.then(response => { .then(response => {
for (let listKey of response.data.list) { for (let listKey of response.data.list) {
...@@ -817,7 +817,8 @@ ...@@ -817,7 +817,8 @@
listKey.source = this.source[listKey.source]; listKey.source = this.source[listKey.source];
listKey.validTime = listKey.validTime ? ((listKey.validTime == 0) ? '永久' : listKey.validTime) : '无'; listKey.validTime = listKey.validTime ? ((listKey.validTime == 0) ? '永久' : listKey.validTime) : '无';
listKey.visible2 =false listKey.visible2 =false
listKey.sex=listKey.sex?this.sexObj[listKey.sex]:''
listKey.sex=(listKey.sex+1)?this.sexObj[(listKey.sex+1)]:''
}, },
/** /**
...@@ -907,7 +908,7 @@ ...@@ -907,7 +908,7 @@
} }
this.userMembershipInformation.userId = this.saveUserId this.userMembershipInformation.userId = this.saveUserId
this.userMembershipInformation.buyCount=undefined; this.userMembershipInformation.buyCount=undefined;
console.log('userMembershipInformation:' + JSON.stringify(this.userMembershipInformation)) // console.log('userMembershipInformation:' + JSON.stringify(this.userMembershipInformation))
seveObj(this.userMembershipInformation).then(res => { seveObj(this.userMembershipInformation).then(res => {
if (res.rel) { if (res.rel) {
this.$notify.success({ this.$notify.success({
......
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