Эх сурвалжийг харах

管理后台:增加排序

panyong 3 жил өмнө
parent
commit
d0ad56900d

+ 9 - 12
htmldev/manage/src/views/business/place/list/index.vue

@@ -26,31 +26,28 @@
               border
               :max-height="vheight">
       <el-table-column label="ID" prop="id"></el-table-column>
-      <el-table-column label="座位名称" prop="place_name" width="240"></el-table-column>
+      <el-table-column label="座位名称" prop="place_name" sortable width="240"></el-table-column>
       <el-table-column label="座位说明" prop="place_desc" width="240"></el-table-column>
-      <el-table-column label="座位类型">
+      <el-table-column label="座位类型" prop="place_type" sortable width="120">
         <template slot-scope="scope">
           <p>{{ ['正常', '临时'][scope.row.place_type] }}</p>
         </template>
       </el-table-column>
-
-      <el-table-column label="预定方式">
+      <el-table-column label="预定方式" prop="place_pre_type" sortable width="120">
         <template slot-scope="scope">
           <p>{{ ['整桌预定', '座位预定'][scope.row.place_pre_type] }}</p>
         </template>
       </el-table-column>
-
-
-      <el-table-column label="座位数量" prop="place_num"></el-table-column>
-      <el-table-column label="单桌人数" prop="place_user_max"></el-table-column>
-      <el-table-column label="单价(元)">
+      <el-table-column label="座位数量" prop="place_num" sortable width="120"></el-table-column>
+      <el-table-column label="单桌人数" prop="place_user_max" sortable width="120"></el-table-column>
+      <el-table-column label="单价(元)" prop="place_price" sortable width="120">
         <template slot-scope="scope">
           <p>{{ scope.row.place_price | fen2Yuan }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="最晚到店时间" prop="place_latest_time"></el-table-column>
-      <el-table-column label="最晚保留时间(分钟)" prop="place_max_time" width="160"></el-table-column>
-      <el-table-column label="添加时间" prop="created_at" width="160"></el-table-column>
+      <el-table-column label="最晚到店时间" prop="place_latest_time" sortable width="140"></el-table-column>
+      <el-table-column label="最晚保留时间(分钟)" prop="place_max_time" sortable width="180"></el-table-column>
+      <el-table-column label="添加时间" prop="created_at" sortable width="160"></el-table-column>
       <el-table-column label="操作" width="220" fixed="right">
         <template slot-scope="scope">
           <el-button type="text"

+ 7 - 7
htmldev/manage/src/views/business/place/set/index.vue

@@ -38,23 +38,23 @@
               border
               :max-height="vheight">
       <el-table-column label="ID" prop="id" width="80"></el-table-column>
-      <el-table-column label="座位名称" prop="place_name"></el-table-column>
+      <el-table-column label="座位名称" prop="place_name" sortable></el-table-column>
       <el-table-column label="说明" prop="place_desc"></el-table-column>
       <el-table-column label="预定方式">
         <template slot-scope="scope">
           <p>{{ ['整桌预定', '座位预定'][scope.row.place_pre_type] }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="总数量" prop="place_num" width="80"></el-table-column>
-      <el-table-column label="已预定" prop="place_pre_num" width="80"></el-table-column>
-      <el-table-column label="单桌人数" prop="place_user_max" width="80"></el-table-column>
-      <el-table-column label="单价(元)" width="100">
+      <el-table-column label="总数量" prop="place_num" sortable width="100"></el-table-column>
+      <el-table-column label="已预定" prop="place_pre_num" sortable width="100"></el-table-column>
+      <el-table-column label="单桌人数" prop="place_user_max" sortable width="120"></el-table-column>
+      <el-table-column label="单价(元)" prop="place_price" sortable width="100">
         <template slot-scope="scope">
           <p>{{ scope.row.place_price | fen2Yuan }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="已预定" prop="place_pre_num" width="80"></el-table-column>
-      <el-table-column label="日期" prop="place_time" width="140"></el-table-column>
+      <el-table-column label="已预定" prop="place_pre_num" sortable width="100"></el-table-column>
+      <el-table-column label="日期" prop="place_time" sortable width="140"></el-table-column>
       <el-table-column label="操作" width="120">
         <template slot-scope="scope">
           <el-button type="text" v-permission="'business_place_set_edit'" @click="edit(scope.row)">编辑</el-button>

+ 6 - 6
htmldev/manage/src/views/business/pms/category/index.vue

@@ -32,16 +32,16 @@
               border
               :max-height="vheight">
       <el-table-column label="ID" prop="id" width="80"></el-table-column>
-      <el-table-column label="分类名称" prop="category_name" width="240"></el-table-column>
-      <el-table-column label="商品数量" prop="product_num"></el-table-column>
-      <el-table-column label="排序" prop="category_sort_id"></el-table-column>
-      <el-table-column label="分类状态">
+      <el-table-column label="分类名称" prop="category_name" sortable width="240"></el-table-column>
+      <el-table-column label="商品数量" prop="product_num" sortable></el-table-column>
+      <el-table-column label="排序" prop="category_sort_id" sortable></el-table-column>
+      <el-table-column label="分类状态" prop="category_status" sortable>
         <template slot-scope="scope">
           <p>{{ ['下架', '上架'][scope.row.category_status] }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="添加时间" prop="created_at" width="180"></el-table-column>
-      <el-table-column label="修改时间" prop="updated_at" width="180"></el-table-column>
+      <el-table-column label="添加时间" prop="created_at" sortable width="180"></el-table-column>
+      <el-table-column label="修改时间" prop="updated_at" sortable width="180"></el-table-column>
       <el-table-column label="操作" width="120">
         <template slot-scope="scope">
           <el-button type="text"

+ 8 - 6
htmldev/manage/src/views/business/pms/goods/index.vue

@@ -147,34 +147,36 @@
       <el-table-column label="ID" prop="id" width="80"></el-table-column>
       <el-table-column label="商品名称" prop="product_name"></el-table-column>
       <el-table-column label="商品分类" prop="category_name"></el-table-column>
-      <el-table-column label="价格(元)">
+      <el-table-column label="价格(元)" prop="product_price" sortable>
         <template slot-scope="scope">
           <p>{{ scope.row.product_price | fen2Yuan }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="出单位置">
+      <el-table-column label="出单位置" prop="product_place" sortable>
         <template slot-scope="scope">
           <p>{{ ['', '厨房', '柜台'][scope.row.product_place] }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="存酒">
+      <el-table-column label="存酒" prop="product_is_storage" sortable>
         <template slot-scope="scope">
           <p>{{ ['不支持', '支持'][scope.row.product_is_storage] }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="是否售罄">
+      <el-table-column label="是否售罄" prop="is_sell_out" sortable>
         <template slot-scope="scope">
           <p>{{ ['供应中', '售罄'][scope.row.is_sell_out] }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="是否上架" width="100">
+      <el-table-column label="是否上架" prop="product_status" sortable width="100">
         <template slot-scope="scope">
           <p>{{ ['下架', '上架'][scope.row.product_status] }}</p>
         </template>
       </el-table-column>
       <el-table-column label="操作" width="160">
         <template slot-scope="scope">
-          <el-button v-permission="'business_pms_goods_storage'" :disabled="booLock" type="text" @click="showStoragedialogForm(scope.row)">是否售罄</el-button>
+          <el-button v-permission="'business_pms_goods_storage'" :disabled="booLock" type="text"
+                     @click="showStoragedialogForm(scope.row)">是否售罄
+          </el-button>
           <el-button type="text" v-permission="'business_pms_goods_edit'" @click="edit(scope.row)">编辑</el-button>
           <el-button type="text" v-permission="'business_pms_goods_del'" @click="del(scope.row)">删除</el-button>
         </template>

+ 2 - 2
htmldev/manage/src/views/business/saveWine/index.vue

@@ -44,12 +44,12 @@
       </el-table-column>
       <el-table-column label="用户昵称" prop="user_name" width="120"></el-table-column>
       <el-table-column label="用户手机" prop="user_phone" width="120"></el-table-column>
-      <el-table-column label="存储状态">
+      <el-table-column label="存储状态" prop="storage_status" sortable width="120">
         <template slot-scope="scope">
           <p>{{ ['存储中', '已取走'][scope.row.storage_status] }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="存酒时间" prop="created_at" width="160"></el-table-column>
+      <el-table-column label="存酒时间" prop="created_at" sortable width="160"></el-table-column>
       <el-table-column label="取酒时间" prop="storage_out_at" width="160"></el-table-column>
       <el-table-column label="录入人" prop="operation_in_name" width="120"></el-table-column>
       <el-table-column label="取酒人" prop="operation_out_name" width="120"></el-table-column>

+ 3 - 3
htmldev/manage/src/views/business/sms/musicLib/index.vue

@@ -22,9 +22,9 @@
               border
               :max-height="vheight">
       <el-table-column label="ID" prop="id" width="80"></el-table-column>
-      <el-table-column label="艺人" prop="user_song_name"></el-table-column>
-      <el-table-column label="手机号" prop="user_phone"></el-table-column>
-      <el-table-column label="曲库数量" prop="song_num"></el-table-column>
+      <el-table-column label="艺人" prop="user_song_name" sortable></el-table-column>
+      <el-table-column label="手机号" prop="user_phone" sortable></el-table-column>
+      <el-table-column label="曲库数量" prop="song_num" sortable></el-table-column>
       <el-table-column label="操作">
         <template slot-scope="scope">
           <el-button type="text"

+ 3 - 3
htmldev/manage/src/views/business/sms/plan/index.vue

@@ -34,15 +34,15 @@
               border
               :max-height="vheight">
       <el-table-column label="ID" prop="id" width="80"></el-table-column>
-      <el-table-column label="艺人" prop="plan_author_name"></el-table-column>
-      <el-table-column label="演唱时间">
+      <el-table-column label="艺人" prop="plan_author_name" sortable></el-table-column>
+      <el-table-column label="演唱时间" prop="plan_start_time" sortable>
         <template slot-scope="scope">
           <span>{{ scope.row.plan_start_time }}</span>
           <span>至</span>
           <span>{{ scope.row.plan_end_time }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="本节点歌歌单" prop="song_num" width="120"></el-table-column>
+      <el-table-column label="本节点歌歌单" prop="song_num" sortable width="140"></el-table-column>
       <el-table-column label="操作" width="160">
         <template slot-scope="scope">
           <el-button type="text" v-permission="'business_sms_plan_set'" @click="editPlayList(scope.row)">设置歌单

+ 6 - 6
htmldev/manage/src/views/fms/check/index.vue

@@ -43,7 +43,7 @@
       <el-table-column label="流水号" prop="record_number"></el-table-column>
       <el-table-column label="收入/退款" prop="record_type" sortable>
         <template slot-scope="scope">
-          <p>{{ ['', '收入', '退款'][scope.row.record_type]}}</p>
+          <p>{{ ['', '收入', '退款'][scope.row.record_type] }}</p>
         </template>
       </el-table-column>
       <el-table-column label="金额" prop="record_price" sortable>
@@ -51,11 +51,11 @@
           <p>{{ scope.row.record_price | fen2Yuan }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="订单类型" prop="order_type"></el-table-column>
-      <el-table-column label="支付方式" prop="order_pay_type"></el-table-column>
-      <el-table-column label="流水时间" prop="created_at" width="160"></el-table-column>
-      <el-table-column label="订单编号" prop="order_number"></el-table-column>
-      <el-table-column label="用户名称" prop="user_name"></el-table-column>
+      <el-table-column label="订单类型" prop="order_type" sortable></el-table-column>
+      <el-table-column label="支付方式" prop="order_pay_type" sortable></el-table-column>
+      <el-table-column label="流水时间" prop="created_at" sortable width="160"></el-table-column>
+      <el-table-column label="订单编号" prop="order_number" sortable></el-table-column>
+      <el-table-column label="用户名称" prop="user_name" sortable></el-table-column>
     </el-table>
     <el-pagination
       class="marginT-20"

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

@@ -33,7 +33,7 @@
               class="marginT-10 order-table"
               border
               :max-height="vheight">
-      <el-table-column label="ID" prop="id" width="80"></el-table-column>
+      <el-table-column label="ID" prop="id" sortable width="80"></el-table-column>
       <el-table-column label="头像" width="130">
         <template slot-scope="scope">
           <el-image style="width: 100px; height: 100px"
@@ -42,12 +42,12 @@
           </el-image>
         </template>
       </el-table-column>
-      <el-table-column label="昵称" prop="user_name" width="160"></el-table-column>
-      <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="创建时间" prop="created_at" width="160"></el-table-column>
-      <el-table-column label="用户状态">
+      <el-table-column label="昵称" prop="user_name" sortable width="160"></el-table-column>
+      <el-table-column label="手机号" prop="user_phone" sortable width="120"></el-table-column>
+      <el-table-column label="生日" prop="user_birthday" sortable></el-table-column>
+      <el-table-column label="性别" prop="user_sex" sortable></el-table-column>
+      <el-table-column label="创建时间" prop="created_at" sortable width="160"></el-table-column>
+      <el-table-column label="用户状态" sortable>
         <template slot-scope="scope">
           <p>{{ ['正常', '禁用'][scope.row.user_status] }}</p>
         </template>

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

@@ -32,7 +32,7 @@
               fit class="marginT-10 order-table"
               border
               :max-height="vheight">
-      <el-table-column label="ID" prop="id" width="80"></el-table-column>
+      <el-table-column label="ID" prop="id" sortable width="80"></el-table-column>
       <el-table-column label="头像" width="130">
         <template slot-scope="scope">
           <el-image style="width: 100px; height: 100px"
@@ -41,17 +41,17 @@
           </el-image>
         </template>
       </el-table-column>
-      <el-table-column label="昵称" prop="user_name" width="160"></el-table-column>
-      <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="用户角色">
+      <el-table-column label="昵称" prop="user_name" sortable width="160"></el-table-column>
+      <el-table-column label="手机号" prop="user_phone" sortable width="120"></el-table-column>
+      <el-table-column label="生日" prop="user_birthday" sortable></el-table-column>
+      <el-table-column label="性别" prop="user_sex" sortable></el-table-column>
+      <el-table-column label="用户角色" prop="user_type" sortable>
         <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="注册时间" prop="created_at" sortable width="160"></el-table-column>
+      <el-table-column label="最近一次登录时间" prop="user_login_at" sortable width="160"></el-table-column>
       <el-table-column label="操作" fixed="right" width="140">
         <template slot-scope="scope">
           <el-button type="text" v-permission="'ums_customer_edit'" @click="edit(scope.row)">编辑</el-button>

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

@@ -33,7 +33,7 @@
               class="marginT-10 order-table"
               border
               :max-height="vheight">
-      <el-table-column label="ID" prop="id" width="80"></el-table-column>
+      <el-table-column label="ID" prop="id" sortable width="80"></el-table-column>
       <el-table-column label="头像" width="130">
         <template slot-scope="scope">
           <el-image style="width: 100px; height: 100px"
@@ -42,12 +42,12 @@
           </el-image>
         </template>
       </el-table-column>
-      <el-table-column label="昵称" prop="user_name" width="160"></el-table-column>
-      <el-table-column label="姓名" prop="user_song_name" width="160"></el-table-column>
-      <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="注册时间" prop="created_at" width="160"></el-table-column>
+      <el-table-column label="昵称" prop="user_name" sortable width="160"></el-table-column>
+      <el-table-column label="姓名" prop="user_song_name" sortable width="160"></el-table-column>
+      <el-table-column label="手机号" prop="user_phone" sortable width="120"></el-table-column>
+      <el-table-column label="生日" prop="user_birthday" sortable></el-table-column>
+      <el-table-column label="性别" prop="user_sex" sortable></el-table-column>
+      <el-table-column label="注册时间" prop="created_at" sortable width="160"></el-table-column>
       <el-table-column label="操作" width="100">
         <template slot-scope="scope">
           <el-button type="text"

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

@@ -33,7 +33,7 @@
               class="marginT-10 order-table"
               border
               :max-height="vheight">
-      <el-table-column label="ID" prop="id" width="80"></el-table-column>
+      <el-table-column label="ID" prop="id" sortable width="80"></el-table-column>
       <el-table-column label="头像" width="130">
         <template slot-scope="scope">
           <el-image style="width: 100px; height: 100px"
@@ -42,12 +42,12 @@
           </el-image>
         </template>
       </el-table-column>
-      <el-table-column label="昵称" prop="user_name" width="160"></el-table-column>
-      <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="创建时间" prop="created_at" width="160"></el-table-column>
-      <el-table-column label="用户状态">
+      <el-table-column label="昵称" prop="user_name" sortable width="160"></el-table-column>
+      <el-table-column label="手机号" prop="user_phone" sortable width="120"></el-table-column>
+      <el-table-column label="生日" prop="user_birthday" sortable></el-table-column>
+      <el-table-column label="性别" prop="user_sex" sortable></el-table-column>
+      <el-table-column label="创建时间" prop="created_at" sortable width="160"></el-table-column>
+      <el-table-column label="用户状态" prop="user_status" sortable>
         <template slot-scope="scope">
           <p>{{ ['正常', '禁用'][scope.row.user_status] }}</p>
         </template>