Explorar el Código

feat: 政策列表增加权限

Howie hace 1 año
padre
commit
11fabd7de1
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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('请选择内容')