ytj hace 6 años
padre
commit
fb96c57681

+ 155
- 0
src/pages/system/dataStatistics/frontEndUserList/index.vue Ver fichero

@@ -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>

+ 36
- 0
src/pages/system/dataStatistics/frontEndUserList/page.scss Ver fichero

@@ -0,0 +1,36 @@
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
+

+ 19
- 0
src/pages/system/dataStatistics/index.vue Ver fichero

@@ -0,0 +1,19 @@
1
+<template>
2
+  <div class="mainPage">
3
+    <router-view></router-view>
4
+  </div>
5
+</template>
6
+
7
+<script>
8
+export default {
9
+  name: '',
10
+  data () {
11
+    return {}
12
+  },
13
+  components: {}
14
+}
15
+</script>
16
+
17
+<!-- Add "scoped" attribute to limit CSS to this component only -->
18
+<style lang="scss" scoped>
19
+</style>

+ 7
- 0
src/pages/system/index.vue Ver fichero

@@ -141,6 +141,13 @@ export default {
141 141
         children: [{
142 142
           title: '前台用户信息',
143 143
           pathName: 'customerInfo',
144
+          }],
145
+      },{
146
+        title: '数据统计',
147
+        pathName: '',
148
+        children: [{
149
+          title: '前台用户列表',
150
+          pathName: 'frontEndUserList',
144 151
           children: [],
145 152
         }],
146 153
       }]

+ 10
- 0
src/pages/system/page.js Ver fichero

@@ -30,6 +30,8 @@ import courseTag from './courseManger/courseTag/index' // 课程标签
30 30
 
31 31
 import customer from './customer/index' // 前台用户
32 32
 import customerInfo from './customer/customerInfo/index' // 前台用户信息
33
+import dataStatistics from './dataStatistics/index' // 数据统计
34
+import frontEndUserList from './dataStatistics/frontEndUserList/index' // 课程管理
33 35
 
34 36
 export default {
35 37
   router: [
@@ -150,6 +152,14 @@ export default {
150 152
           path: 'customerInfo',
151 153
           name: 'customerInfo',
152 154
           component: customerInfo,
155
+      }, { // 数据统计
156
+        path: 'dataStatistics',
157
+        name: 'dataStatistics',
158
+        component: dataStatistics,
159
+        children: [{ // 前台用户列表
160
+          path: 'frontEndUserList',
161
+          name: 'frontEndUserList',
162
+          component: frontEndUserList,
153 163
           children: []
154 164
         }],
155 165
       }],