Commit a0979b29 authored by Mac's avatar Mac

1

parent c292e8fe
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="address" width="200" label="操作"> <el-table-column prop="address" width="200" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<img @click="goGoodsEdit(scope.row.Id)" style="width:32px;height:32px;margin:0 10px" <img @click="goGoodsEdit(scope.row.Id)" style="width:32px;height:32px;margin:0 10px" v-if="currentUserInfo.empid == 0 || currentUserInfo.IsOtherUpdateGoods ==1"
src="../../assets/img/userman/edit.png" alt=""> src="../../assets/img/userman/edit.png" alt="">
<img @click="Delete(scope.row)" style="width:32px;height:32px;margin:0 10px" <img @click="Delete(scope.row)" style="width:32px;height:32px;margin:0 10px"
src="../../assets/img/userman/del.png" alt=""> src="../../assets/img/userman/del.png" alt="">
......
...@@ -280,10 +280,12 @@ ...@@ -280,10 +280,12 @@
}); });
}, },
handleCheckAllChange(val) { handleCheckAllChange(val) {
this.checkArr = []; this.checkArr = [];
if (val) { if (val) {
this.RoleList.forEach(x => { this.RoleList.forEach(x => {
this.checkArr.push(x.RoleId); this.checkArr.push(x.RoleId);
}); });
} }
}, },
...@@ -302,9 +304,14 @@ ...@@ -302,9 +304,14 @@
}, },
//获取角色列表 //获取角色列表
getRoleList() { getRoleList() {
let userInfo = this.getLocalStorage();
this.apipost("/api/Employee/GetRoleList", {}, res => { this.apipost("/api/Employee/GetRoleList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.RoleList = res.data.data; this.RoleList = res.data.data;
if(userInfo && userInfo.TenantId==1 && userInfo.MallBaseId==1){
let obj={RoleId:-1,RoleName:'修改他人商品'}
this.RoleList.push(obj)
}
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
......
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