|
@@ -0,0 +1,155 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="subPage">
|
|
3
|
+ <div class="system-table-search">
|
|
4
|
+ <div class="flex-h">
|
|
5
|
+ <div class="flex-item flex-h"></div>
|
|
6
|
+ <tableSearch value="请输入用户名称" @exportSearchKey="searchList"></tableSearch>
|
|
7
|
+ </div>
|
|
8
|
+ <div class="moreFilter"></div>
|
|
9
|
+ </div>
|
|
10
|
+ <div class="system-table-box">
|
|
11
|
+ <el-table
|
|
12
|
+ :data="tableData"
|
|
13
|
+ stripe
|
|
14
|
+ style="width: 100%">
|
|
15
|
+ <el-table-column
|
|
16
|
+ prop="name"
|
|
17
|
+ label="姓名">
|
|
18
|
+ </el-table-column>
|
|
19
|
+ <el-table-column
|
|
20
|
+ prop="phone"
|
|
21
|
+ label="手机号">
|
|
22
|
+ </el-table-column>
|
|
23
|
+ <el-table-column
|
|
24
|
+ prop="nickName"
|
|
25
|
+ label="微信昵称">
|
|
26
|
+ </el-table-column>
|
|
27
|
+ <el-table-column
|
|
28
|
+ prop="recommendName"
|
|
29
|
+ label="推荐人">
|
|
30
|
+ </el-table-column>
|
|
31
|
+ <el-table-column
|
|
32
|
+ prop="integral"
|
|
33
|
+ label="积分">
|
|
34
|
+ <template slot-scope="scope">
|
|
35
|
+ -
|
|
36
|
+ </template>
|
|
37
|
+ </el-table-column>
|
|
38
|
+ <el-table-column
|
|
39
|
+ prop="openId"
|
|
40
|
+ label="openId">
|
|
41
|
+ </el-table-column>
|
|
42
|
+ <el-table-column
|
|
43
|
+ prop="creatTime"
|
|
44
|
+ label="创建时间">
|
|
45
|
+ </el-table-column>
|
|
46
|
+ </el-table>
|
|
47
|
+ </div>
|
|
48
|
+ <el-pagination
|
|
49
|
+ @size-change="handleSizeChange"
|
|
50
|
+ @current-change="handleCurrentChange"
|
|
51
|
+ :current-page.sync="currentPage"
|
|
52
|
+ :page-size="10"
|
|
53
|
+ layout="prev, pager, next, jumper"
|
|
54
|
+ :total="100">
|
|
55
|
+ </el-pagination>
|
|
56
|
+ </div>
|
|
57
|
+</template>
|
|
58
|
+
|
|
59
|
+<script>
|
|
60
|
+import tableSearch from '@/components/tableSearch/index'
|
|
61
|
+import { createNamespacedHelpers } from 'vuex'
|
|
62
|
+
|
|
63
|
+const { mapState: mapCaseState } = createNamespacedHelpers('case')
|
|
64
|
+
|
|
65
|
+export default {
|
|
66
|
+ name: '',
|
|
67
|
+ data () {
|
|
68
|
+ return {
|
|
69
|
+ currentPage: 0, // 当前页码
|
|
70
|
+ tableSearch: { // 表格搜索条件
|
|
71
|
+ key: '', // 搜索关键字
|
|
72
|
+ caseId: '', // 案场id
|
|
73
|
+ },
|
|
74
|
+ tableData: [{
|
|
75
|
+ name: 'xxx',
|
|
76
|
+ phone: 'xxx',
|
|
77
|
+ nickName: 'xxx',
|
|
78
|
+ recommendName: 'xxx',
|
|
79
|
+ integral: 'xxx',
|
|
80
|
+ openId: 'xxx',
|
|
81
|
+ creatTime: 'xxx'
|
|
82
|
+ }, {
|
|
83
|
+ name: 'xxx',
|
|
84
|
+ phone: 'xxx',
|
|
85
|
+ nickName: 'xxx',
|
|
86
|
+ recommendName: 'xxx',
|
|
87
|
+ integral: 'xxx',
|
|
88
|
+ openId: 'xxx',
|
|
89
|
+ creatTime: 'xxx'
|
|
90
|
+ }, {
|
|
91
|
+ name: 'xxx',
|
|
92
|
+ phone: 'xxx',
|
|
93
|
+ nickName: 'xxx',
|
|
94
|
+ recommendName: 'xxx',
|
|
95
|
+ integral: 'xxx',
|
|
96
|
+ openId: 'xxx',
|
|
97
|
+ creatTime: 'xxx'
|
|
98
|
+ }, {
|
|
99
|
+ name: 'xxx',
|
|
100
|
+ phone: 'xxx',
|
|
101
|
+ nickName: 'xxx',
|
|
102
|
+ recommendName: 'xxx',
|
|
103
|
+ integral: 'xxx',
|
|
104
|
+ openId: 'xxx',
|
|
105
|
+ creatTime: 'xxx'
|
|
106
|
+ }]
|
|
107
|
+ }
|
|
108
|
+ },
|
|
109
|
+ computed: {
|
|
110
|
+ ...mapCaseState({
|
|
111
|
+ caseList: x => x.caseList,
|
|
112
|
+ })
|
|
113
|
+ },
|
|
114
|
+ components: {
|
|
115
|
+ tableSearch,
|
|
116
|
+ },
|
|
117
|
+ methods: {
|
|
118
|
+ handleSizeChange (val) {
|
|
119
|
+ console.log(`每页 ${val} 条`)
|
|
120
|
+ },
|
|
121
|
+ handleCurrentChange (val) {
|
|
122
|
+ console.log(`当前页: ${val}`)
|
|
123
|
+ },
|
|
124
|
+ handleEdit (index, row) { // 编辑
|
|
125
|
+ console.log(index, row)
|
|
126
|
+ },
|
|
127
|
+ handleDelete (index, row) { // 删除
|
|
128
|
+ console.log(index, row)
|
|
129
|
+ this.$confirm('确认删除此渠道?', '提示', {
|
|
130
|
+ confirmButtonText: '确定',
|
|
131
|
+ cancelButtonText: '取消',
|
|
132
|
+ type: 'warning'
|
|
133
|
+ }).then(() => {
|
|
134
|
+ this.$message({
|
|
135
|
+ type: 'success',
|
|
136
|
+ message: '删除成功!'
|
|
137
|
+ })
|
|
138
|
+ }).catch(() => {
|
|
139
|
+ this.$message({
|
|
140
|
+ type: 'info',
|
|
141
|
+ message: '已取消删除'
|
|
142
|
+ })
|
|
143
|
+ })
|
|
144
|
+ },
|
|
145
|
+ searchList (key) { // 搜索列表
|
|
146
|
+ console.log(key)
|
|
147
|
+ }
|
|
148
|
+ }
|
|
149
|
+}
|
|
150
|
+</script>
|
|
151
|
+
|
|
152
|
+<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
153
|
+<style lang="scss" scoped>
|
|
154
|
+@import "page.scss";
|
|
155
|
+</style>
|