按钮权限

This commit is contained in:
wangyan 2024-08-22 18:19:05 +08:00
parent 8c9a9b90dc
commit bb19f100e1

View File

@ -116,12 +116,12 @@
>退货退款查询</el-button
>
<el-button
v-permission="['admin', 'douyinAfterSales:add']"
v-if="quanxian"
class="filter-item"
size="mini"
type="primary"
icon="el-icon-plus"
@click="handleImport"
@click="handleImport"
>售后订单导入</el-button
>
</div>
@ -247,6 +247,7 @@ export default {
//
url: process.env.BASE_API + "/demo/demo/importData"
},
quanxian:false,
afterSalesTypeArr: [],
shopNameArr: [],
queryTypeOptions: [
@ -262,7 +263,12 @@ export default {
};
},
created() {
let name = localStorage.getItem('name')
if(name=='岳小强' || name=='李洁'|| name== '吴春节'|| name== 'test'){
this.quanxian = true
}
this.getDictMap("after_sale_type,shop_name")
.then(res => {
this.afterSalesTypeArr = res["after_sale_type"];