Commit 2bc988ed authored by Mac's avatar Mac

新增销售规则保存的权限

parent fd82d8f2
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<template v-slot:top="props"> <template v-slot:top="props">
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
<q-btn color="accent" size="sm" icon="add" @click="preservation()" ref="addBtn" label="保存规则" /> <q-btn color="accent" size="sm" v-if='isSalerule_preserve == true' @click="preservation()" ref="addBtn" label="保存规则" />
</div> </div>
</template> </template>
<template v-slot:body="props"> <template v-slot:body="props">
...@@ -181,9 +181,18 @@ ...@@ -181,9 +181,18 @@
pageCount: 0, pageCount: 0,
persistent: false, persistent: false,
listData: {}, listData: {},
isSalerule_preserve:false,
} }
}, },
created() {}, created() {
let userinfo = this.getLocalStorage();
userinfo.ActionMenuList.map(x=>{//判断权限
if(x.FunctionCode == "Salerule_preserve"){//判断是否有保存的权限
this.isSalerule_preserve = true;
return
}
})
},
mounted() { mounted() {
this.getRuleList(); //获取规则 this.getRuleList(); //获取规则
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment