Commit cf981713 by 10_noah@other.ren

商家端没有权限控制

parent 169d5a56
...@@ -23,10 +23,9 @@ ...@@ -23,10 +23,9 @@
<el-button type="button" size="small" <el-button type="button" size="small"
@click="lookDetail(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">详情</el-button> @click="lookDetail(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">详情</el-button>
<el-button type="button" size="small" <el-button type="button" size="small"
v-if="permissions.admin_mallgoods_edit && scope.row.auditState!=1" v-if="scope.row.auditState!=1"
@click="handleUpdate(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">编辑</el-button> @click="handleUpdate(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">编辑</el-button>
<el-button type="button" size="small" <el-button type="button" size="small"
v-if="permissions.admin_mallgoods_del"
@click="handleDel(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">删除</el-button> @click="handleDel(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">删除</el-button>
</template> </template>
...@@ -34,22 +33,18 @@ ...@@ -34,22 +33,18 @@
<template slot-scope="scope" slot="menuLeft"> <template slot-scope="scope" slot="menuLeft">
<div class="layout_h"> <div class="layout_h">
<el-button <el-button
v-if="permissions.admin_mallgoods_add"
type="primary" type="primary"
size="small" size="small"
@click="add">添加</el-button> @click="add">添加</el-button>
<el-button <el-button
v-if="permissions.admin_mallgoods_updown"
type="primary" type="primary"
size="small" size="small"
@click="batchIsUpon(scope.row)">上架</el-button> @click="batchIsUpon(scope.row)">上架</el-button>
<el-button <el-button
v-if="permissions.admin_mallgoods_updown"
type="primary" type="primary"
size="small" size="small"
@click="batchIsNotUpon">下架</el-button> @click="batchIsNotUpon">下架</el-button>
<el-button <el-button
v-if="permissions.admin_mallgoods_del"
type="primary" type="primary"
size="small" size="small"
@click="handleDelBatch(scope.row)">删除</el-button> @click="handleDelBatch(scope.row)">删除</el-button>
......
...@@ -22,16 +22,16 @@ ...@@ -22,16 +22,16 @@
v-if="qxqAuth(scope.row)>=0" v-if="qxqAuth(scope.row)>=0"
@click="checkTheDetails(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">详情</el-button> @click="checkTheDetails(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">详情</el-button>
<el-button type="button" size="small" <el-button type="button" size="small"
v-if="permissions.admin_mallorder_logistics && (scope.row.state===4||scope.row.state===4||scope.row.state===6) && scope.row.isLogistics===1" v-if="(scope.row.state===4||scope.row.state===4||scope.row.state===6) && scope.row.isLogistics===1"
@click="viewLogistics(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">查看物流</el-button> @click="viewLogistics(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">查看物流</el-button>
<el-button type="button" size="small" <el-button type="button" size="small"
v-if="permissions.admin_mallorder_post && ljfhAuth(scope.row)>=0" v-if="ljfhAuth(scope.row)>=0"
@click="shipsImmediately(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">立即发货</el-button> @click="shipsImmediately(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">立即发货</el-button>
<el-button type="button" size="small" <el-button type="button" size="small"
v-if="permissions.admin_mallorder_del && delAuth(scope.row)>=0" v-if="delAuth(scope.row)>=0"
@click="handleDel(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">删除</el-button> @click="handleDel(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">删除</el-button>
<el-button type="button" size="small" <el-button type="button" size="small"
v-if="permissions.admin_mallorder_cancel && qxddAuth(scope.row)>=0" v-if="qxddAuth(scope.row)>=0"
@click="cancelOrder(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">取消订单</el-button> @click="cancelOrder(scope.row)" style="color: #409EFF;margin: 5px;padding: 0px;border: 0px">取消订单</el-button>
</template> </template>
</avue-crud> </avue-crud>
......
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