Commit 5c4e9289 by wufan

fix:修改主账号为店铺管理员

parent eb398902
......@@ -19,7 +19,7 @@ class ManagingMembersModal extends React.Component {
addManagingMember: false, // 是否点击了添加成员
storeId :User.getStoreId() , // 店铺Id
iconRotateList: [],
userAuthority : ['可编辑', '可查看/下载', '仅可查看', '', '创建者', '主账号'] , // 空 代表删除
userAuthority : ['可编辑', '可查看/下载', '仅可查看', '', '创建者', '店铺管理员'] , // 空 代表删除
}
}
componentDidMount() {
......@@ -42,9 +42,9 @@ class ManagingMembersModal extends React.Component {
if(res.result) {
// 数据排序,文件创建者在最前,并修改文案为所有者
let _selectUserList = [], _dataSource = [], flag = [], _iconRotateList = [];
// 列表排序,文件夹创建者和机构主账号默认排在最前
// 列表排序,文件夹创建者和机构店铺管理员默认排在最前
res.result.map((item, index) => {
if (item.fileUserEnum === "CREATE" || item.fileUserEnum === 'PRIMARY') {
if (item.fileUserEnum === "CREATE" || item.fileUserEnum === 'SUPER_ADMIN') {
_dataSource.push(item);
flag.push(index);
} else {
......@@ -240,7 +240,7 @@ class ManagingMembersModal extends React.Component {
// 判断不同权限的人所能看到的
if (record.fileUserEnum === "CREATE") { // 创建者
num = 4;
} else if (record.fileUserEnum === 'PRIMARY') { // 主账号
} else if (record.fileUserEnum === 'SUPER_ADMIN') { // 店铺管理员
num = 5;
} else {
if (record.rights === "LOOK_DOWNLOAD") {
......
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