yuantianjiao 6 år sedan
förälder
incheckning
ec1a94e889

+ 0
- 0
src/pages/system/customerManagement/customerList/index.scss Visa fil


+ 13
- 23
src/pages/system/customerManagement/customerList/index.vue Visa fil

@@ -1,6 +1,7 @@
1 1
 <template>
2 2
   <div class="subPage">
3 3
     <div class="system-table-search">
4
+      <div class="flex-item flex-h"></div>
4 5
       <div class="flex-h">
5 6
         <tableSearch @exportSearchKey="searchList"></tableSearch>
6 7
       </div>
@@ -12,56 +13,57 @@
12 13
         stripe
13 14
         style="width: 100%">
14 15
         <el-table-column
16
+          fixed='left'
15 17
           prop="customerName"
16 18
           label="姓名"
17
-          width="150">
19
+          width="200">
18 20
         </el-table-column>
19 21
         <el-table-column
20 22
           prop="mobile"
21 23
           label="手机号"
22
-          width="120">
24
+          width="150">
23 25
         </el-table-column>
24 26
         <el-table-column
25 27
           prop="nickName"
26 28
           label="微信昵称"
27
-          width="150">
29
+          width="200">
28 30
         </el-table-column>
29 31
         <el-table-column
30 32
           prop="userType"
31 33
           label="用户类型"
32
-          width="100">
34
+          width="150">
33 35
         </el-table-column>
34 36
         <el-table-column
35 37
           prop="recommend"
36 38
           label="推荐人"
37
-          width="100">
39
+          width="150">
38 40
         </el-table-column>
39 41
         <el-table-column
40 42
           prop="customerLevel"
41 43
           label="会员等级"
42
-          width="100">
44
+          width="150">
43 45
         </el-table-column>
44 46
         <el-table-column
45 47
           prop="customerPoint"
46 48
           label="会员积分"
47
-          width="100">
49
+          width="150">
48 50
         </el-table-column>
49 51
         <el-table-column
50 52
           prop="openId"
51 53
           label="openId"
52
-          width="250">
54
+          width="300">
53 55
         </el-table-column>
54 56
         <el-table-column
55 57
           prop="gold"
56 58
           label="金币"
57
-          width="100">
59
+          width="150">
58 60
         </el-table-column>
59 61
         <el-table-column
60 62
           prop="silver"
61 63
           label="银币"
62
-          width="100">
64
+          width="150">
63 65
         </el-table-column>
64
-        <el-table-column label="操作" width="200">
66
+        <el-table-column label="操作" fixed='right' width='200'>
65 67
           <template slot-scope="scope">
66 68
             <el-button
67 69
               size="mini"
@@ -151,17 +153,6 @@ export default {
151 153
         openId: 'jhfjkdshkdfgs22123',
152 154
         gold: '2333',
153 155
         silver: '3332'
154
-      }, {
155
-        customerName: '赵日天',
156
-        mobile: '13446666666',
157
-        nickName: '赵日地',
158
-        userType: '1',
159
-        recommend: '赵爸爸',
160
-        customerLevel: '10000',
161
-        customerPoint: '200',
162
-        openId: 'jhfjkdshkdfgs22123',
163
-        gold: '2333',
164
-        silver: '3332'
165 156
       }]
166 157
     }
167 158
   },
@@ -205,5 +196,4 @@ export default {
205 196
 
206 197
 <!-- Add "scoped" attribute to limit CSS to this component only -->
207 198
 <style lang="scss" scoped>
208
-@import "index.scss";
209 199
 </style>

+ 61
- 35
src/pages/system/roleManagement/roleList/index.vue Visa fil

@@ -1,6 +1,7 @@
1 1
 <template>
2 2
   <div class="subPage">
3 3
     <div class="system-table-search">
4
+      <div class="flex-item flex-h"></div>
4 5
       <div class="flex-h">
5 6
         <tableSearch @exportSearchKey="searchList"></tableSearch>
6 7
       </div>
@@ -14,54 +15,28 @@
14 15
         <el-table-column
15 16
           prop="customerName"
16 17
           label="角色标识"
17
-          width="150">
18
+          width="200">
18 19
         </el-table-column>
19 20
         <el-table-column
20 21
           prop="mobile"
21
-          label="手机号"
22
-          width="120">
22
+          label="角色名"
23
+          width="300">
23 24
         </el-table-column>
24 25
         <el-table-column
25 26
           prop="nickName"
26
-          label="微信昵称"
27
-          width="150">
27
+          label="是否禁用角色"
28
+          width="200">
28 29
         </el-table-column>
29 30
         <el-table-column
30 31
           prop="userType"
31
-          label="用户类型"
32
-          width="100">
32
+          label="数据权限">
33 33
         </el-table-column>
34 34
         <el-table-column
35 35
           prop="recommend"
36
-          label="推荐人"
37
-          width="100">
36
+          label="创建时间"
37
+          width="300">
38 38
         </el-table-column>
39
-        <el-table-column
40
-          prop="customerLevel"
41
-          label="会员等级"
42
-          width="100">
43
-        </el-table-column>
44
-        <el-table-column
45
-          prop="customerPoint"
46
-          label="会员积分"
47
-          width="100">
48
-        </el-table-column>
49
-        <el-table-column
50
-          prop="openId"
51
-          label="openId"
52
-          width="250">
53
-        </el-table-column>
54
-        <el-table-column
55
-          prop="gold"
56
-          label="金币"
57
-          width="100">
58
-        </el-table-column>
59
-        <el-table-column
60
-          prop="silver"
61
-          label="银币"
62
-          width="100">
63
-        </el-table-column>
64
-        <el-table-column label="操作">
39
+        <el-table-column label="操作" width='300'>
65 40
           <template slot-scope="scope">
66 41
             <el-button
67 42
               size="mini"
@@ -70,6 +45,10 @@
70 45
               size="mini"
71 46
               type="danger"
72 47
               @click="handleDelete(scope.$index, scope.row)">删除</el-button>
48
+            <el-button
49
+              size="mini"
50
+              type="warning"
51
+              @click="handleAllot(scope.$index, scope.row)">分配权限</el-button>
73 52
           </template>
74 53
         </el-table-column>
75 54
       </el-table>
@@ -107,6 +86,50 @@ export default {
107 86
         openId: 'jhfjkdshkdfgs22123',
108 87
         gold: '2333',
109 88
         silver: '3332'
89
+      }, {
90
+        customerName: '赵日天',
91
+        mobile: '13446666666',
92
+        nickName: '赵日地',
93
+        userType: '1',
94
+        recommend: '赵爸爸',
95
+        customerLevel: '10000',
96
+        customerPoint: '200',
97
+        openId: 'jhfjkdshkdfgs22123',
98
+        gold: '2333',
99
+        silver: '3332'
100
+      }, {
101
+        customerName: '赵日天',
102
+        mobile: '13446666666',
103
+        nickName: '赵日地',
104
+        userType: '1',
105
+        recommend: '赵爸爸',
106
+        customerLevel: '10000',
107
+        customerPoint: '200',
108
+        openId: 'jhfjkdshkdfgs22123',
109
+        gold: '2333',
110
+        silver: '3332'
111
+      }, {
112
+        customerName: '赵日天',
113
+        mobile: '13446666666',
114
+        nickName: '赵日地',
115
+        userType: '1',
116
+        recommend: '赵爸爸',
117
+        customerLevel: '10000',
118
+        customerPoint: '200',
119
+        openId: 'jhfjkdshkdfgs22123',
120
+        gold: '2333',
121
+        silver: '3332'
122
+      }, {
123
+        customerName: '赵日天',
124
+        mobile: '13446666666',
125
+        nickName: '赵日地',
126
+        userType: '1',
127
+        recommend: '赵爸爸',
128
+        customerLevel: '10000',
129
+        customerPoint: '200',
130
+        openId: 'jhfjkdshkdfgs22123',
131
+        gold: '2333',
132
+        silver: '3332'
110 133
       }]
111 134
     }
112 135
   },
@@ -123,6 +146,9 @@ export default {
123 146
     handleEdit (index, row) { // 编辑
124 147
       console.log(index, row)
125 148
     },
149
+    handleAllot (index, row) {
150
+      console.log(index, row) // 分配权限
151
+    },
126 152
     handleDelete (index, row) { // 删除
127 153
       console.log(index, row)
128 154
       this.$confirm('确认删除此用户?', '提示', {