员工权限校验
This commit is contained in:
@@ -217,6 +217,8 @@
|
||||
<script>
|
||||
import { queryAllShopUser, queryAllShopInfo, midfiyAccount, tbShopUseredit, queryShopUserFlow } from "@/api/shop";
|
||||
import dayjs from "dayjs";
|
||||
import { hasPermission } from '@/utils/limits.js'
|
||||
|
||||
let cacheData = {};
|
||||
export default {
|
||||
data() {
|
||||
@@ -321,14 +323,18 @@ export default {
|
||||
this.$message.success('修改成功')
|
||||
this.getTableData();
|
||||
},
|
||||
editPop(d) {
|
||||
async editPop(d) {
|
||||
let res = await hasPermission('允许修改会员余额');
|
||||
if ( !res) { return; }
|
||||
this.dialogVisible = true
|
||||
this.userinfo.nickName = d.nickName
|
||||
this.userinfo.amounts = d.amount
|
||||
this.userinfo.id = d.id
|
||||
this.userinfo.amount = ""
|
||||
},
|
||||
edituser(d) {
|
||||
async edituser(d) {
|
||||
let res = await hasPermission('允许管理会员信息');
|
||||
if ( !res) { return; }
|
||||
let obj = { ...d }
|
||||
if (d.sex == '男') {
|
||||
obj.sex = '1'
|
||||
|
||||
Reference in New Issue
Block a user