|
|
@@ -167,6 +167,18 @@ export default {
|
|
|
userEmail() {
|
|
|
return this.userInfo.userEmail;
|
|
|
},
|
|
|
+ // 精准作业:测试和开发环境都显示;生产环境仅指定学校显示
|
|
|
+ showTeachingHomework() {
|
|
|
+ if (this.$feature.isShow()) return true;
|
|
|
+ const schoolId = String((this.userInfo && this.userInfo.schoolId) || '');
|
|
|
+ return schoolId === '530816809536851968';
|
|
|
+ },
|
|
|
+ menuList() {
|
|
|
+ return this.baseMenuList.filter(item => {
|
|
|
+ if (item.feature === 'teachingHomework') return this.showTeachingHomework;
|
|
|
+ return !item.feature || this.$feature.isShow();
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
schoolLogo() {
|
|
|
return this.$store.state.user.schoolLogo || "";
|
|
|
@@ -207,7 +219,7 @@ export default {
|
|
|
dialogShow: false,
|
|
|
},
|
|
|
rowsData: {},
|
|
|
- menuList: [],
|
|
|
+ baseMenuList: [],
|
|
|
// App(pad)环境标识:true 时显示pad端样式
|
|
|
padApp: !!window.__IS_PAD_APP__,
|
|
|
|
|
|
@@ -221,11 +233,11 @@ export default {
|
|
|
//学生端默认菜单
|
|
|
const baseMenuList = [
|
|
|
{
|
|
|
- menuName: "学案作业",
|
|
|
+ menuName: "精准作业",
|
|
|
externalLink: "/teachingHomework",
|
|
|
icon: teachHomework,
|
|
|
iconCur: teachHomeworkCur,
|
|
|
- // feature: "teachingHomework", // 生产环境隐藏的未完成模块
|
|
|
+ feature: "teachingHomework",
|
|
|
},
|
|
|
{
|
|
|
menuName: "分析报告",
|
|
|
@@ -248,8 +260,7 @@ export default {
|
|
|
},
|
|
|
];
|
|
|
|
|
|
- // 带 feature 标识的菜单(未完成模块),生产环境隐藏,测试/开发环境显示
|
|
|
- this.menuList = baseMenuList.filter(item => !item.feature || this.$feature.isShow());
|
|
|
+ this.baseMenuList = baseMenuList;
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
window.removeEventListener('padAppTokenReady', this.onPadTokenReady);
|