Browse Source

管理后台-用户中心:角色设置

panyong 3 years ago
parent
commit
bd181b4df3

+ 1 - 5
htmldev/manage/README.md

@@ -234,8 +234,4 @@ yarn build
  ②角色列表
  ②用户列表
 ①门店管理
-```
-
-### todo list
-- [ ] 点歌记录:无测试数据
-- [ ] 赞赏记录:无测试数据
+```

+ 1 - 1
htmldev/manage/src/views/business/oms/list/index.vue

@@ -8,7 +8,7 @@
         clearable
         class="mt-10">
         <el-form-item label="订单编号:">
-          <el-input v-model="searchForm.order_number" placeholder="请输入订单编号" clearable></el-input>
+          <el-input v-model="searchForm.order_number" placeholder="请输入订单编号" clearable style="width: 240px;"></el-input>
         </el-form-item>
         <el-form-item label="订单创建时间:">
           <el-date-picker

+ 2 - 2
htmldev/manage/src/views/ums/customer/details.vue

@@ -29,7 +29,7 @@
         </el-form-item>
         <el-form-item prop="user_type"
                       :rules="formRules.required"
-                      label="用户类型:">
+                      label="用户角色:">
           <el-radio v-model="form.user_type" label="0">用户</el-radio>
           <el-radio v-model="form.user_type" label="1">艺人</el-radio>
           <el-radio v-model="form.user_type" label="2">吧台</el-radio>
@@ -66,7 +66,7 @@ export default {
     return {
       dialog: !!this.value,
       form: {
-        user_type: '0'
+        user_type: '0' // 用户角色(0用户1艺人2吧台3老板)
       },
       booLock: false
     }

+ 6 - 3
htmldev/manage/src/views/ums/customer/index.vue

@@ -45,6 +45,11 @@
       <el-table-column label="手机号" prop="user_phone" width="120"></el-table-column>
       <el-table-column label="生日" prop="user_birthday"></el-table-column>
       <el-table-column label="性别" prop="user_sex"></el-table-column>
+      <el-table-column label="用户角色">
+        <template slot-scope="scope">
+          <p>{{ ['用户', '艺人', '吧台', '老板'][scope.row.user_type] }}</p>
+        </template>
+      </el-table-column>
       <el-table-column label="注册时间" prop="created_at" width="160"></el-table-column>
       <el-table-column label="最近一次登录时间" prop="user_login_at" width="160"></el-table-column>
       <el-table-column label="操作" fixed="right" width="140">
@@ -91,9 +96,7 @@ export default {
         exData: {}
       },
       time: [],
-      searchForm: {
-        user_type: '0' // 用户类型(0用户1艺人2吧台3老板)
-      },
+      searchForm: {},
       tableData: [],
       tableUrl: '/v1/user/member/List'
     }