|
@@ -28,10 +28,11 @@
|
|
|
<div v-if="!isSearchVolume">
|
|
|
<span>册别清单</span>
|
|
|
<span class="syllabus-content-header-tools">
|
|
|
- <Icon type="md-search" @click="doSearchVolume" />
|
|
|
- <Icon type="md-create" @click="doEditVolume" v-if="hasSyllabusAuth" />
|
|
|
- <Icon type="md-trash" @click="doDeleteVolume" v-if="hasSyllabusAuth" />
|
|
|
- <Icon type="md-add" @click="doAddVolume" v-if="hasSyllabusAuth" />
|
|
|
+ <Icon type="md-search" title="搜索" @click="doSearchVolume" />
|
|
|
+ <Icon type="md-copy" title="复制副本" @click="doCopyVolume" v-if="hasSyllabusAuth && inShareView" />
|
|
|
+ <Icon type="md-create" title="编辑" @click="doEditVolume" v-if="hasSyllabusAuth" />
|
|
|
+ <Icon type="md-trash" title="删除" @click="doDeleteVolume" v-if="hasSyllabusAuth && !inShareView" />
|
|
|
+ <Icon type="md-add" title="新建册别" @click="doAddVolume" v-if="hasSyllabusAuth" />
|
|
|
</span>
|
|
|
</div>
|
|
|
<div style="width: 90%;" v-else>
|
|
@@ -51,6 +52,21 @@
|
|
|
<span>|</span>
|
|
|
<span>{{ getSemesterName(volume.semesterId) }}</span>
|
|
|
</p>
|
|
|
+ <p class="volume-item-info" v-if="inShareView">
|
|
|
+ <span style="display: flex;align-items: center;">
|
|
|
+ <Icon type="ios-remove-circle-outline" style="font-weight: bold;margin-right: 5px;"/>
|
|
|
+ 忽略该分享
|
|
|
+ </span>
|
|
|
+ <!-- <span class="volume-btn-agree" @click="onAgreeShare(volume,'agree')">
|
|
|
+ <Icon type="md-checkmark-circle-outline" size="20" color="#27c684" />
|
|
|
+ <span>接受</span>
|
|
|
+ </span>
|
|
|
+ <span class="volume-btn-refuse" @click="onAgreeShare(volume,'refuse')">
|
|
|
+ <Icon type="ios-close-circle-outline" size="20" color="#d02a4e"
|
|
|
+ style="font-weight: bold;" />
|
|
|
+ <span>拒绝</span>
|
|
|
+ </span> -->
|
|
|
+ </p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</vuescroll>
|
|
@@ -448,8 +464,19 @@
|
|
|
this.$Message.error(err);
|
|
|
})
|
|
|
},
|
|
|
+ /* 是否接受分享的课纲 */
|
|
|
+ onAgreeShare(volume,type){
|
|
|
+ // this.$api.syllabus.ShareAgree({
|
|
|
+ // code:volume.code,
|
|
|
+ // id:volume.id,
|
|
|
+ // agree:type === 'agree' ? 3 : 4
|
|
|
+ // }).then(res => {
|
|
|
+
|
|
|
+ // })
|
|
|
+ },
|
|
|
/* 点击某个册别 */
|
|
|
onVolumeClick(volume, volumeIndex) {
|
|
|
+ console.log(volume)
|
|
|
if (!volume || (volume.id === this.curVolume.id && !this.isEditVolume)) return
|
|
|
this.isLoading = true
|
|
|
this.curVolume = volume
|
|
@@ -467,6 +494,10 @@
|
|
|
}
|
|
|
this.isEditVolume = false
|
|
|
this.isAddVolumeModal = true
|
|
|
+ },
|
|
|
+ /* 复制副本 */
|
|
|
+ doCopyVolume(){
|
|
|
+
|
|
|
},
|
|
|
/* 搜索册别 */
|
|
|
doSearchVolume() {
|
|
@@ -499,7 +530,7 @@
|
|
|
let curVolume = this.curVolume
|
|
|
this.$Modal.confirm({
|
|
|
title: "删除册别",
|
|
|
- content: "<p>确认删除该册别?</p>",
|
|
|
+ content: "<p>确认移除该册别?</p>",
|
|
|
onOk: () => {
|
|
|
this.isLoading = true;
|
|
|
this.$api.syllabus.DeleteVolume({
|
|
@@ -1290,6 +1321,9 @@
|
|
|
// 是否可以操作课纲模块(个人课纲或者管理员或者有课纲权限)
|
|
|
hasSyllabusAuth() {
|
|
|
return !this.isSchool || this.$access.can('admin.*|Syllabus_Edit')
|
|
|
+ },
|
|
|
+ inShareView(){
|
|
|
+ return !this.isSchool && this.activeTab === 'fromShare'
|
|
|
}
|
|
|
},
|
|
|
}
|