Преглед изворни кода

feat: 政策列表增加权限

Howie пре 1 година
родитељ
комит
11fabd7de1
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/views/sales_policy/policy_list.vue

+ 4 - 0
src/views/sales_policy/policy_list.vue

@@ -115,6 +115,8 @@ export default {
           [
             {
               name: '批量修改机型',
+              isRole: this.$checkBtnRole('xiugai', this.$route.meta.roles),
+
               click: () => {
                 this.replaceVisible = true
               }
@@ -125,6 +127,8 @@ export default {
           [
             {
               name: '批量作废机型',
+              isRole: this.$checkBtnRole('zuofei', this.$route.meta.roles),
+
               click: () => {
                 if (!this.recordSelected.length) {
                   this.$errorMsg('请选择内容')