Prechádzať zdrojové kódy

管理后台-用户中心

panyong 3 rokov pred
rodič
commit
106a481a17

+ 12 - 7
htmldev/manage/src/views/ums/customer/index.vue

@@ -1,21 +1,26 @@
 <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-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 label="注册时间:">
           <el-date-picker
             :editable="false"
             v-model="time"
-            @change="timearr => {timearr ? (searchForm.start_time = timearr[0] + ' 00:00:00', searchForm.end_time = timearr[1] + ' 23:59:59') : searchForm.start_time = searchForm.end_time = undefined}"
+            @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 label="部门名称:">
-          <el-input v-model="searchForm.department_name" 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>
@@ -81,7 +86,7 @@ export default {
   },
   mounted () {
     this.init()
-  },
+  }
 }
 </script>
 

+ 19 - 11
htmldev/manage/src/views/ums/singer/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>