许成详 6 yıl önce
ebeveyn
işleme
5d2803677b

+ 155
- 0
src/pages/system/dataStatistics/frontEndUserList/index.vue Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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

+ 8
- 0
src/pages/system/index.vue Dosyayı Görüntüle

@@ -135,6 +135,14 @@ export default {
135 135
           pathName: 'courseTag',
136 136
           children: [],
137 137
         }],
138
+      }, {
139
+        title: '数据统计',
140
+        pathName: '',
141
+        children: [{
142
+          title: '前台用户列表',
143
+          pathName: 'frontEndUserList',
144
+          children: [],
145
+        }],
138 146
       }]
139 147
     }
140 148
   },

+ 13
- 0
src/pages/system/page.js Dosyayı Görüntüle

@@ -28,6 +28,9 @@ import courseManger from './courseManger/index' // 课程管理
28 28
 import fiveA from './courseManger/fiveA/index' // 全龄生活5A
29 29
 import courseTag from './courseManger/courseTag/index' // 课程标签
30 30
 
31
+import dataStatistics from './dataStatistics/index' // 数据统计
32
+import frontEndUserList from './dataStatistics/frontEndUserList/index' // 课程管理
33
+
31 34
 export default {
32 35
   router: [
33 36
     {
@@ -139,6 +142,16 @@ export default {
139 142
           component: courseTag,
140 143
           children: []
141 144
         }],
145
+      }, { // 数据统计
146
+        path: 'dataStatistics',
147
+        name: 'dataStatistics',
148
+        component: dataStatistics,
149
+        children: [{ // 前台用户列表
150
+          path: 'frontEndUserList',
151
+          name: 'frontEndUserList',
152
+          component: frontEndUserList,
153
+          children: []
154
+        }],
142 155
       }],
143 156
     },
144 157
   ],