|
@@ -13,9 +13,9 @@
|
|
|
@select="handleSelect"
|
|
|
>
|
|
|
<!-- <el-menu-item index="TEACHINGTOOL"> 教研工具</el-menu-item> -->
|
|
|
- <el-menu-item index="TEXTBOOK"> <!-- 教辅资料 -->{{ $t('Key554') }} </el-menu-item>
|
|
|
- <el-menu-item index="TEACHING"> <!-- 教研资料 -->{{ $t('Key214') }} </el-menu-item>
|
|
|
- <el-menu-item index="TOOLBOOK"> <!-- 工具书 -->{{ $t('Key555') }} </el-menu-item>
|
|
|
+ <el-menu-item index="TEXTBOOK" v-if="showMaterial"> <!-- 教辅资料 -->{{ $t('Key554') }} </el-menu-item>
|
|
|
+ <el-menu-item index="TEACHING" v-if="showMaterial"> <!-- 教研资料 -->{{ $t('Key214') }} </el-menu-item>
|
|
|
+ <el-menu-item index="TOOLBOOK" v-if="showMaterial"> <!-- 工具书 -->{{ $t('Key555') }} </el-menu-item>
|
|
|
</el-menu>
|
|
|
<div class="seek" @keyup="keyDownSeekData">
|
|
|
<!-- 搜索课程 -->
|
|
@@ -37,13 +37,13 @@
|
|
|
<div id="TEACHINGTOOL">
|
|
|
<TeachingTool v-if="textAnalyseShow" />
|
|
|
</div>
|
|
|
- <div v-if="textBookList" id="TEXTBOOK">
|
|
|
+ <div v-if="textBookList && showMaterial" id="TEXTBOOK">
|
|
|
<Textbook v-if="textBookList.material_list" :class-list="textBookList.material_list" />
|
|
|
</div>
|
|
|
- <div v-if="teachingList" id="TEACHING">
|
|
|
+ <div v-if="teachingList && showMaterial" id="TEACHING">
|
|
|
<Teaching v-if="teachingList.material_list" :class-list="teachingList.material_list" />
|
|
|
</div>
|
|
|
- <div v-if="toolBookList" id="TOOLBOOK">
|
|
|
+ <div v-if="toolBookList && showMaterial" id="TOOLBOOK">
|
|
|
<ToolBook v-if="toolBookList.material_list" :class-list="toolBookList.material_list" />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -58,7 +58,7 @@ import Teaching from '@/components/teacher-dev/Teaching';
|
|
|
import ToolBook from '@/components/teacher-dev/ToolBook';
|
|
|
import TeachingTool from '@/components/teacher-dev/TeachingTool';
|
|
|
|
|
|
-import { materiallistAll } from '@/api/api';
|
|
|
+import { materiallistAll, getContentFile } from '@/api/api';
|
|
|
import { updateWordPack } from '@/utils/i18n';
|
|
|
|
|
|
export default {
|
|
@@ -83,6 +83,7 @@ export default {
|
|
|
toolBookList: null, // 工具书
|
|
|
isData: false,
|
|
|
textAnalyseShow: true,
|
|
|
+ showMaterial: true, // 是否可以查看教辅材料等
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -115,6 +116,18 @@ export default {
|
|
|
// .catch((res) => {
|
|
|
// this.loading = false;
|
|
|
// });
|
|
|
+
|
|
|
+ // 判断是否有教研材料权限
|
|
|
+ let MethodName = 'login_control-IsCanEnterChildSys_PC';
|
|
|
+ getContentFile(MethodName, {
|
|
|
+ child_sys_key: 'GCLS-TRC',
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.status === 1) {
|
|
|
+ this.showMaterial = res.is_can_enter_teaching_research_material === 'true';
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {});
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getData();
|
|
@@ -240,6 +253,7 @@ export default {
|
|
|
.nav_title {
|
|
|
width: 100%;
|
|
|
background: #fff;
|
|
|
+ height: 64px;
|
|
|
|
|
|
.inner {
|
|
|
display: flex;
|
|
@@ -247,6 +261,7 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
width: 1200px;
|
|
|
margin: 0 auto;
|
|
|
+ height: 64px;
|
|
|
}
|
|
|
|
|
|
.el-menu-item {
|