|
@@ -25,6 +25,7 @@
|
25
|
25
|
<div style="float:right">
|
26
|
26
|
<el-button type="primary" @click="onSearch">查询</el-button>
|
27
|
27
|
<el-button @click="onReset">重置</el-button>
|
|
28
|
+ <el-button @click="excelOut">导出</el-button>
|
28
|
29
|
</div>
|
29
|
30
|
</el-card>
|
30
|
31
|
<el-table stripe :data="tableData" border style="width: 100%">
|
|
@@ -50,7 +51,7 @@
|
50
|
51
|
</div>
|
51
|
52
|
</template>
|
52
|
53
|
<script>
|
53
|
|
-import { getRegisterList } from '@/api/register'
|
|
54
|
+import { getRegisterList, excelRegister } from '@/api/register'
|
54
|
55
|
import { getCityList } from '@/api/city'
|
55
|
56
|
|
56
|
57
|
import dayjs from 'dayjs'
|
|
@@ -59,7 +60,6 @@ export default {
|
59
|
60
|
return {
|
60
|
61
|
area2: undefined,
|
61
|
62
|
options: [],
|
62
|
|
-
|
63
|
63
|
name: undefined,
|
64
|
64
|
phone: undefined,
|
65
|
65
|
area: undefined,
|
|
@@ -133,7 +133,6 @@ export default {
|
133
|
133
|
}
|
134
|
134
|
}
|
135
|
135
|
},
|
136
|
|
-
|
137
|
136
|
formate(val) {
|
138
|
137
|
return dayjs(val).format('YYYY-MM-DD HH:mm:ss')
|
139
|
138
|
},
|
|
@@ -188,6 +187,9 @@ export default {
|
188
|
187
|
this.startDate = undefined
|
189
|
188
|
this.endDate = undefined
|
190
|
189
|
this.onSearch()
|
|
190
|
+ },
|
|
191
|
+ excelOut() {
|
|
192
|
+ excelRegister({ startDate: this.startDate, endDate: this.endDate })
|
191
|
193
|
}
|
192
|
194
|
}
|
193
|
195
|
}
|