|
|
@@ -27,7 +27,7 @@
|
|
|
<slot name="middle" :courseware="courseware_info"></slot>
|
|
|
|
|
|
<div class="operator">
|
|
|
- <span v-if="type !== 'manager'" class="link" @click="editTask">开始编辑</span>
|
|
|
+ <span v-if="type !== 'manager' && is_can_edit === 'true'" class="link" @click="editTask">开始编辑</span>
|
|
|
|
|
|
<span class="link" @click="goBackTemplateList">返回模板列表</span>
|
|
|
</div>
|
|
|
@@ -147,6 +147,7 @@ export default {
|
|
|
can_check_correct: false, // 可查看批改
|
|
|
},
|
|
|
popoverShow: false,
|
|
|
+ is_can_edit: 'false', // 是否可以编辑
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
@@ -192,6 +193,7 @@ export default {
|
|
|
getTemplateInfo(id) {
|
|
|
GetTemplateInfo({ id }).then((res) => {
|
|
|
if (res.status === 1) {
|
|
|
+ this.is_can_edit = res.template_info.is_can_edit;
|
|
|
this.getTemplateChapterStructExpandList(this.id);
|
|
|
if (res.template_info.type === 0) {
|
|
|
this.getBookCoursewareInfo(this.id);
|
|
|
@@ -283,6 +285,8 @@ export default {
|
|
|
this.$router.push({ path: '/personal_workbench/template_list' });
|
|
|
} else if (this.type === 'org') {
|
|
|
this.$router.push({ path: '/personal_workbench/template_list_org' });
|
|
|
+ } else if (this.type === 'admin') {
|
|
|
+ this.$router.push({ path: '/personal_workbench/template_list_admin' });
|
|
|
} else {
|
|
|
this.$router.push({ path: '/personal_workbench/template_list_manager' });
|
|
|
}
|