|
@@ -1220,12 +1220,13 @@ export default {
|
|
res => {
|
|
res => {
|
|
// 暂时去掉四类(课纲、内容、题库、知识点)校本资源的读取权限,老师加入学校默认会添加这四个权限
|
|
// 暂时去掉四类(课纲、内容、题库、知识点)校本资源的读取权限,老师加入学校默认会添加这四个权限
|
|
let auth = ['content-read', 'exercise-read', 'knowledge-read', 'syllabus-read']
|
|
let auth = ['content-read', 'exercise-read', 'knowledge-read', 'syllabus-read']
|
|
|
|
+ let globalDeL = ['train','art']
|
|
for (let i = 0; i < res.authoritylist.length; i++) {
|
|
for (let i = 0; i < res.authoritylist.length; i++) {
|
|
if (auth.includes(res.authoritylist[i].rowKey)) {
|
|
if (auth.includes(res.authoritylist[i].rowKey)) {
|
|
res.authoritylist.splice(i, 1)
|
|
res.authoritylist.splice(i, 1)
|
|
--i
|
|
--i
|
|
}
|
|
}
|
|
- if (this.$store.state.config.srvAdr == 'Global' && res.authoritylist[i].category === 'train') {
|
|
|
|
|
|
+ if (this.$store.state.config.srvAdr == 'Global' && globalDeL.includes(res.authoritylist[i].category)) {
|
|
res.authoritylist.splice(i, 1)
|
|
res.authoritylist.splice(i, 1)
|
|
--i
|
|
--i
|
|
}
|
|
}
|
|
@@ -1245,8 +1246,9 @@ export default {
|
|
schoolAc: 11,
|
|
schoolAc: 11,
|
|
research: 12,
|
|
research: 12,
|
|
train: 13,
|
|
train: 13,
|
|
- analysis: 14,
|
|
|
|
- link: 15,
|
|
|
|
|
|
+ art: 14,
|
|
|
|
+ analysis: 15,
|
|
|
|
+ link: 16,
|
|
}
|
|
}
|
|
res.authoritylist.sort((a, b) => {
|
|
res.authoritylist.sort((a, b) => {
|
|
return sortMap[a.category] - sortMap[b.category]
|
|
return sortMap[a.category] - sortMap[b.category]
|