Prechádzať zdrojové kódy

管理后台-按钮权限

panyong 3 rokov pred
rodič
commit
da9dc16eaa

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

@@ -11,6 +11,7 @@
           </el-button>
           <el-button size="mini"
                      type="primary"
+                     v-permission="'business_oms_detail_refund'"
                      @click="refundDialogVisible = true">退款
           </el-button>
         </div>

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

@@ -49,6 +49,7 @@
       <el-table-column label="操作">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'business_oms_order_check'"
                      @click="$router.push({name: 'BusinessOMSDetail', query: {id: scope.row.id}})">订单详情
           </el-button>
         </template>

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

@@ -22,6 +22,7 @@
         <el-form-item class="ml-10">
           <el-button icon="el-icon-plus"
                      type="primary"
+                     v-permission="'business_outlet_list_add'"
                      @click="add">新增
           </el-button>
         </el-form-item>
@@ -87,7 +88,7 @@
       </el-table-column>
       <el-table-column label="操作" width="100">
         <template slot-scope="scope">
-          <el-button type="text" @click="edit(scope.row)">编辑</el-button>
+          <el-button type="text" v-permission="'business_outlet_list_edit'" @click="edit(scope.row)">编辑</el-button>
         </template>
       </el-table-column>
     </el-table>

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

@@ -13,7 +13,8 @@
           <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
         </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-plus" type="primary" v-permission="'business_place_list_add'" @click="add">添加座位
+          </el-button>
         </el-form-item>
       </el-form>
     </div>
@@ -40,13 +41,16 @@
       <el-table-column label="操作" width="220" fixed="right">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'business_place_list_edit'"
                      @click="edit(scope.row)">编辑
           </el-button>
           <el-button type="text"
                      :disabled="booLock"
+                     v-permission="'business_place_list_download'"
                      @click="download(scope.row)">下载点单二维码
           </el-button>
           <el-button type="text"
+                     v-permission="'business_place_list_del'"
                      @click="del(scope.row)">删除
           </el-button>
         </template>

+ 1 - 0
htmldev/manage/src/views/business/place/reserve/index.vue

@@ -65,6 +65,7 @@
       <el-table-column label="操作">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'business_place_reserve_sign'"
                      @click="edit(scope.row)">签到
           </el-button>
         </template>

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

@@ -24,6 +24,7 @@
           <el-button
             icon="el-icon-plus"
             type="primary"
+            v-permission="'business_place_set_add'"
             @click="add">临时加桌
           </el-button>
         </el-form-item>
@@ -44,8 +45,8 @@
       <el-table-column label="日期" prop="place_time"></el-table-column>
       <el-table-column label="操作">
         <template slot-scope="scope">
-          <el-button type="text" @click="edit(scope.row)">编辑</el-button>
-          <el-button type="text" @click="del(scope.row)">删除</el-button>
+          <el-button type="text" v-permission="'business_place_set_edit'" @click="edit(scope.row)">编辑</el-button>
+          <el-button type="text" v-permission="'business_place_set_del'" @click="del(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

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

@@ -13,7 +13,8 @@
           <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
         </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-plus" type="primary" v-permission="'business_pms_category_add'" @click="add">添加分类
+          </el-button>
         </el-form-item>
       </el-form>
     </div>
@@ -38,9 +39,11 @@
       <el-table-column label="操作" width="220">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'business_pms_category_edit'"
                      @click="edit(scope.row)">编辑
           </el-button>
           <el-button type="text"
+                     v-permission="'business_pms_category_del'"
                      @click="del(scope.row)">删除
           </el-button>
         </template>

+ 3 - 2
htmldev/manage/src/views/business/pms/goods/index.vue

@@ -15,6 +15,7 @@
         <el-form-item class="ml-10">
           <el-button icon="el-icon-plus"
                      type="primary"
+                     v-permission="'business_pms_goods_add'"
                      @click="add">新增
           </el-button>
         </el-form-item>
@@ -134,8 +135,8 @@
       </el-table-column>
       <el-table-column label="操作" width="100">
         <template slot-scope="scope">
-          <el-button type="text" @click="edit(scope.row)">编辑</el-button>
-          <el-button type="text" @click="del(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>
       </el-table-column>
     </el-table>

+ 4 - 1
htmldev/manage/src/views/business/pms/goodsAttr/index.vue

@@ -13,7 +13,8 @@
           <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
         </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-plus" type="primary" v-permission="'business_pms_goodsAttr_add'" @click="add">添加
+          </el-button>
         </el-form-item>
       </el-form>
     </div>
@@ -34,9 +35,11 @@
       <el-table-column label="操作" width="220">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'business_pms_goodsAttr_edit'"
                      @click="edit(scope.row)">编辑
           </el-button>
           <el-button type="text"
+                     v-permission="'business_pms_goodsAttr_del'"
                      @click="del(scope.row)">删除
           </el-button>
         </template>

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

@@ -57,6 +57,7 @@
       <el-table-column label="操作">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'business_saveWine_edit'"
                      @click="edit(scope.row)">编辑
           </el-button>
         </template>

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

@@ -28,6 +28,7 @@
       <el-table-column label="操作">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'business_sms_musicLib_set'"
                      @click="$router.push({name: 'BusinessSMSPlayList', query: {id: scope.row.id }})">
             设置曲库
           </el-button>

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

@@ -21,7 +21,8 @@
           <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
         </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-plus" type="primary" v-permission="'business_sms_plan_add'" @click="add">新增
+          </el-button>
         </el-form-item>
       </el-form>
     </div>
@@ -44,8 +45,9 @@
       <el-table-column label="本节点歌歌单" prop="song_num"></el-table-column>
       <el-table-column label="操作">
         <template slot-scope="scope">
-          <el-button type="text" @click="editPlayList(scope.row)">设置歌单</el-button>
-          <el-button type="text" @click="del(scope.row)">删除</el-button>
+          <el-button type="text" v-permission="'business_sms_plan_set'" @click="editPlayList(scope.row)">设置歌单
+          </el-button>
+          <el-button type="text" v-permission="'business_sms_plan_del'" @click="del(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

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

@@ -17,7 +17,8 @@
           <el-button icon="el-icon-search" type="primary" @click="handleSearch">查询</el-button>
         </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-plus" type="primary" v-permission="'business_sms_playList_add'" @click="add">新增
+          </el-button>
         </el-form-item>
       </el-form>
     </div>
@@ -46,8 +47,8 @@
       <el-table-column label="添加时间" prop="created_at"></el-table-column>
       <el-table-column label="操作">
         <template slot-scope="scope">
-          <el-button type="text" @click="edit(scope.row)">编辑</el-button>
-          <el-button type="text" @click="del(scope.row)">删除</el-button>
+          <el-button type="text" v-permission="'business_sms_playList_edit'" @click="edit(scope.row)">编辑</el-button>
+          <el-button type="text" v-permission="'business_sms_playList_del'" @click="del(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

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

@@ -55,6 +55,7 @@
       <el-table-column label="操作">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'ums_boss_edit'"
                      @click="edit(scope.row)">编辑
           </el-button>
         </template>

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

@@ -49,7 +49,7 @@
       <el-table-column label="最近一次登录时间" prop="user_login_at"></el-table-column>
       <el-table-column label="操作">
         <template slot-scope="scope">
-          <el-button type="text" @click="$router.push({name: 'FmsCheck', query: {user_id: scope.row.id }})">消费记录
+          <el-button type="text" v-permission="'ums_customer_check'" @click="$router.push({name: 'FmsCheck', query: {user_id: scope.row.id }})">消费记录
           </el-button>
         </template>
       </el-table-column>

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

@@ -50,6 +50,7 @@
       <el-table-column label="操作">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'ums_singer_edit'"
                      @click="edit(scope.row)">编辑
           </el-button>
         </template>

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

@@ -55,6 +55,7 @@
       <el-table-column label="操作">
         <template slot-scope="scope">
           <el-button type="text"
+                     v-permission="'ums_worker_edit'"
                      @click="edit(scope.row)">编辑
           </el-button>
         </template>