|
@@ -4,6 +4,15 @@
|
4
|
4
|
姓名:
|
5
|
5
|
<el-input v-model="name" style="width: 200px; margin-right: 20px" />
|
6
|
6
|
手机号:<el-input v-model="phone" style="width: 200px; margin-right: 20px" />
|
|
7
|
+ 身份:
|
|
8
|
+ <el-select v-model="personType" style="margin-right:8px" filterable placeholder="请选择">
|
|
9
|
+ <el-option
|
|
10
|
+ v-for="item in typeOptions"
|
|
11
|
+ :key="item.value"
|
|
12
|
+ :label="item.value"
|
|
13
|
+ :value="item.label"
|
|
14
|
+ />
|
|
15
|
+ </el-select>
|
7
|
16
|
报名地区:
|
8
|
17
|
<el-cascader
|
9
|
18
|
v-model="area2"
|
|
@@ -31,6 +40,11 @@
|
31
|
40
|
<el-table stripe :data="tableData" border style="width: 100%">
|
32
|
41
|
<el-table-column prop="name" label="姓名" />
|
33
|
42
|
<el-table-column prop="phone" width="110" label="手机号" />
|
|
43
|
+ <el-table-column prop="personType" width="110" label="身份">
|
|
44
|
+ <template slot-scope="scope">
|
|
45
|
+ {{ scope.row.personType === 'designer' ? '设计师' : '用户' }}
|
|
46
|
+ </template>
|
|
47
|
+ </el-table-column>
|
34
|
48
|
<el-table-column prop="areaName" label="所在地" />
|
35
|
49
|
<el-table-column prop="interestTo" label="意向产品" />
|
36
|
50
|
<el-table-column prop="createDate" label="报名时间">
|
|
@@ -58,6 +72,11 @@ import dayjs from 'dayjs'
|
58
|
72
|
export default {
|
59
|
73
|
data() {
|
60
|
74
|
return {
|
|
75
|
+ typeOptions: [
|
|
76
|
+ { label: 'designer', value: '设计师' },
|
|
77
|
+ { label: 'user', value: '用户' }
|
|
78
|
+ ],
|
|
79
|
+ personType: undefined,
|
61
|
80
|
area2: undefined,
|
62
|
81
|
options: [],
|
63
|
82
|
name: undefined,
|
|
@@ -154,6 +173,7 @@ export default {
|
154
|
173
|
changePagination() {
|
155
|
174
|
getRegisterList({
|
156
|
175
|
name: this.name,
|
|
176
|
+ personType: this.personType,
|
157
|
177
|
phone: this.phone,
|
158
|
178
|
area: this.area,
|
159
|
179
|
startDate: this.startDate,
|
|
@@ -166,6 +186,7 @@ export default {
|
166
|
186
|
},
|
167
|
187
|
onSearch() {
|
168
|
188
|
getRegisterList({
|
|
189
|
+ personType: this.personType,
|
169
|
190
|
name: this.name,
|
170
|
191
|
phone: this.phone,
|
171
|
192
|
area: this.area,
|
|
@@ -184,6 +205,7 @@ export default {
|
184
|
205
|
this.area = undefined
|
185
|
206
|
this.area2 = undefined
|
186
|
207
|
this.daterange = undefined
|
|
208
|
+ this.personType = undefined
|
187
|
209
|
this.startDate = undefined
|
188
|
210
|
this.endDate = undefined
|
189
|
211
|
this.onSearch()
|