Selaa lähdekoodia

商家库存管理加按钮权限

zhouhao 2 vuotta sitten
vanhempi
commit
6b5518c444
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      src/views/sales_control/preposition_stock_list.vue

+ 4 - 2
src/views/sales_control/preposition_stock_list.vue

@@ -42,7 +42,7 @@ export default {
                     this.$message.error("下载失败");
                   });
               },
-              isRole: this.$checkBtnRole("import")
+              isRole: this.$checkBtnRole("import", this.$route.meta.roles)
             }
           ]
         ],
@@ -51,7 +51,7 @@ export default {
             {
               name: '',
               render:this.importButton(partsNewInImport),
-              isRole: this.$checkBtnRole("import")
+              isRole: this.$checkBtnRole("import", this.$route.meta.roles)
             }
           ]
         ]
@@ -69,6 +69,8 @@ export default {
       recordSelected: []
     }
   },
+  created () {
+  },
   methods: {
     // 列表请求函数
     getList(...p) {