Prechádzať zdrojové kódy

管理后台-用户中心:文件夹命名优化

panyong 3 rokov pred
rodič
commit
87da809338

+ 7 - 7
htmldev/manage/src/router/modules/ums.js

@@ -11,25 +11,25 @@ const ums = {
       path: 'customer',
       component: () => import('@/views/ums/customer/index'),
       name: 'UmsCustomer',
-      meta: { title: '注册用户', icon: 'list' }
+      meta: { title: '注册用户', icon: 'el-icon-s-custom' }
     },
     {
       path: 'singer',
       component: () => import('@/views/ums/singer/index'),
       name: 'UmsSinger',
-      meta: { title: '艺人', icon: 'el-icon-microphone' }
+      meta: { title: '艺人', icon: 'peoples' }
     },
     {
-      path: 'personnel',
-      component: () => import('@/views/ums/personnel/index'),
-      name: 'UmsPersonnel',
-      meta: { title: '吧台', icon: 'peoples' }
+      path: 'worker',
+      component: () => import('@/views/ums/worker/index'),
+      name: 'UmsWorker',
+      meta: { title: '吧台', icon: 'el-icon-user-solid' }
     },
     {
       path: 'boss',
       component: () => import('@/views/ums/boss/index'),
       name: 'UmsBoss',
-      meta: { title: '老板', icon: 'people' }
+      meta: { title: '老板', icon: 'el-icon-user' }
     }
   ]
 }

+ 20 - 12
htmldev/manage/src/views/ums/boss/index.vue

@@ -1,20 +1,28 @@
 <template>
   <div class="padding-20">
     <div class="search-box">
-      <el-form ref="form"
-               :inline="true"
-               :model="searchForm"
-               clearable
-               label-width="100px"
-               class="mt-10">
-        <el-form-item label="座位名称:">
-          <el-input v-model="searchForm.department_name" placeholder="请输入座位名称" clearable></el-input>
+      <el-form
+        ref="form"
+        :inline="true"
+        :model="searchForm"
+        clearable
+        class="mt-10">
+        <el-form-item label="用户手机:">
+          <el-input v-model="searchForm.user_phone" placeholder="请输入用户手机" clearable></el-input>
         </el-form-item>
-        <el-form-item class="ml-10">
-          <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
+        <el-form-item label="注册时间:">
+          <el-date-picker
+            :editable="false"
+            v-model="time"
+            @change="timearr => {timearr ? (searchForm.register_start_time = timearr[0] + ' 00:00:00', searchForm.register_end_time = timearr[1] + ' 23:59:59') : searchForm.register_start_time = searchForm.register_end_time = undefined}"
+            type="daterange"
+            value-format="yyyy-MM-dd"
+            start-placeholder="开始时间"
+            end-placeholder="结束时间"
+          ></el-date-picker>
         </el-form-item>
         <el-form-item class="ml-10">
-          <el-button icon="el-icon-plus" type="primary" @click="add">添加艺人</el-button>
+          <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
         </el-form-item>
       </el-form>
     </div>
@@ -87,7 +95,7 @@ export default {
       },
       time: [],
       searchForm: {
-        user_type: '0' // 用户类型(0用户1艺人2吧台3老板)
+        user_type: '3' // 用户类型(0用户1艺人2吧台3老板)
       },
       tableData: [],
       tableUrl: '/v1/user/member/List'

+ 0 - 0
htmldev/manage/src/views/ums/personnel/details.vue → htmldev/manage/src/views/ums/worker/details.vue


+ 20 - 12
htmldev/manage/src/views/ums/personnel/index.vue → htmldev/manage/src/views/ums/worker/index.vue

@@ -1,20 +1,28 @@
 <template>
   <div class="padding-20">
     <div class="search-box">
-      <el-form ref="form"
-               :inline="true"
-               :model="searchForm"
-               clearable
-               label-width="100px"
-               class="mt-10">
-        <el-form-item label="座位名称:">
-          <el-input v-model="searchForm.department_name" placeholder="请输入座位名称" clearable></el-input>
+      <el-form
+        ref="form"
+        :inline="true"
+        :model="searchForm"
+        clearable
+        class="mt-10">
+        <el-form-item label="用户手机:">
+          <el-input v-model="searchForm.user_phone" placeholder="请输入用户手机" clearable></el-input>
         </el-form-item>
-        <el-form-item class="ml-10">
-          <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
+        <el-form-item label="注册时间:">
+          <el-date-picker
+            :editable="false"
+            v-model="time"
+            @change="timearr => {timearr ? (searchForm.register_start_time = timearr[0] + ' 00:00:00', searchForm.register_end_time = timearr[1] + ' 23:59:59') : searchForm.register_start_time = searchForm.register_end_time = undefined}"
+            type="daterange"
+            value-format="yyyy-MM-dd"
+            start-placeholder="开始时间"
+            end-placeholder="结束时间"
+          ></el-date-picker>
         </el-form-item>
         <el-form-item class="ml-10">
-          <el-button icon="el-icon-plus" type="primary" @click="add">添加艺人</el-button>
+          <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
         </el-form-item>
       </el-form>
     </div>
@@ -87,7 +95,7 @@ export default {
       },
       time: [],
       searchForm: {
-        user_type: '0' // 用户类型(0用户1艺人2吧台3老板)
+        user_type: '2' // 用户类型(0用户1艺人2吧台3老板)
       },
       tableData: [],
       tableUrl: '/v1/user/member/List'