|
@@ -6,7 +6,7 @@
|
|
|
<el-select v-model="activityId" placeholder="选择活动" @change="loadList" style="width: 200px;" clearable>
|
|
<el-select v-model="activityId" placeholder="选择活动" @change="loadList" style="width: 200px;" clearable>
|
|
|
<el-option v-for="a in activityList" :key="a.id" :label="a.title" :value="a.id" />
|
|
<el-option v-for="a in activityList" :key="a.id" :label="a.title" :value="a.id" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
- <el-input v-model="keyword" placeholder="搜索用户/孩子ID..." prefix-icon="el-icon-search" style="width:200px" clearable @keyup.enter.native="loadList" @clear="loadList" />
|
|
|
|
|
|
|
+ <el-input v-model="keyword" placeholder="搜索报名人/手机号/用户ID..." prefix-icon="el-icon-search" style="width:220px" clearable @keyup.enter.native="loadList" @clear="loadList" />
|
|
|
<el-select v-model="statusFilter" placeholder="状态筛选" @change="loadList" style="width: 130px;" clearable>
|
|
<el-select v-model="statusFilter" placeholder="状态筛选" @change="loadList" style="width: 130px;" clearable>
|
|
|
<el-option label="全部状态" value="" />
|
|
<el-option label="全部状态" value="" />
|
|
|
<el-option label="待审核" value="pending" />
|
|
<el-option label="待审核" value="pending" />
|
|
@@ -21,6 +21,8 @@
|
|
|
<el-table-column prop="id" label="ID" width="60" />
|
|
<el-table-column prop="id" label="ID" width="60" />
|
|
|
<el-table-column prop="userId" label="用户ID" width="70" />
|
|
<el-table-column prop="userId" label="用户ID" width="70" />
|
|
|
<el-table-column prop="childId" label="孩子ID" width="70" />
|
|
<el-table-column prop="childId" label="孩子ID" width="70" />
|
|
|
|
|
+ <el-table-column prop="registrantName" label="报名人" width="100" />
|
|
|
|
|
+ <el-table-column prop="registrantPhone" label="手机号" width="120" />
|
|
|
<el-table-column prop="status" label="状态" width="90">
|
|
<el-table-column prop="status" label="状态" width="90">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
<el-tag :type="row.status === 'approved' ? 'success' : row.status === 'rejected' ? 'danger' : 'warning'">
|
|
<el-tag :type="row.status === 'approved' ? 'success' : row.status === 'rejected' ? 'danger' : 'warning'">
|
|
@@ -81,7 +83,9 @@ export default {
|
|
|
var kw = this.keyword.toLowerCase()
|
|
var kw = this.keyword.toLowerCase()
|
|
|
return this.list.filter(function(item) {
|
|
return this.list.filter(function(item) {
|
|
|
return (item.userId && String(item.userId).includes(kw)) ||
|
|
return (item.userId && String(item.userId).includes(kw)) ||
|
|
|
- (item.childId && String(item.childId).includes(kw))
|
|
|
|
|
|
|
+ (item.childId && String(item.childId).includes(kw)) ||
|
|
|
|
|
+ (item.registrantName && String(item.registrantName).toLowerCase().includes(kw)) ||
|
|
|
|
|
+ (item.registrantPhone && String(item.registrantPhone).includes(kw))
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|