index.vue
2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<template>
<div class="app-container">
<div class="block">
<el-row :gutter="20">
<el-col :span="6">
<el-input v-model="listQuery.userName" size="mini" placeholder="姓名"></el-input>
</el-col>
<el-col :span="6">
<el-input v-model="listQuery.mobile" size="mini" placeholder="手机号"></el-input>
</el-col>
<el-col :span="8">
<el-date-picker
v-model="rangeDate"
size="mini"
type="datetimerange"
:picker-options="pickerOptions"
range-separator="至"
start-placeholder="邀约开始日期"
end-placeholder="邀约截至日期"
value-format="yyyyMMddHHmmss"
align="right">
</el-date-picker>
</el-col>
<el-col :span="4">
<el-button type="success" size="mini" icon="el-icon-search" @click.native="search">{{ $t('button.search') }}</el-button>
<el-button type="primary" size="mini" icon="el-icon-refresh" @click.native="reset">{{ $t('button.reset') }}</el-button>
</el-col>
</el-row>
<br>
</div>
<el-table :data="list" v-loading="listLoading" element-loading-text="Loading" border fit highlight-current-row
@current-change="handleCurrentChange">
<el-table-column label="ID">
<template slot-scope="scope">
{{scope.row.id}}
</template>
</el-table-column>
<el-table-column label="联系人">
<template slot-scope="scope">
{{scope.row.userName}}
</template>
</el-table-column>
<el-table-column label="联系手机">
<template slot-scope="scope">
{{scope.row.mobile}}
</template>
</el-table-column>
<el-table-column label="email">
<template slot-scope="scope">
{{scope.row.email}}
</template>
</el-table-column>
<el-table-column label="邀约时间">
<template slot-scope="scope">
{{scope.row.createTime}}
</template>
</el-table-column>
<el-table-column label="备注">
<template slot-scope="scope">
{{scope.row.remark}}
</template>
</el-table-column>
</el-table>
<el-pagination
background
layout="total, sizes, prev, pager, next, jumper"
:page-sizes="[10, 20, 50, 100,500]"
:page-size="listQuery.limit"
:total="total"
:current-page.sync="listQuery.page"
@size-change="changeSize"
@current-change="fetchPage"
@prev-click="fetchPrev"
@next-click="fetchNext">
</el-pagination>
</div>
</template>
<script src="./contacts.js"></script>
<style rel="stylesheet/scss" lang="scss" scoped>
@import "src/styles/common.scss";
</style>