|
|
@@ -134,6 +134,10 @@
|
|
|
<!-- && isPdfOrPicture(scope.row['courseWareVO'].name) === 'PDF'"-->
|
|
|
<!-- @click="handleDownloadPdfFile(scope.row['courseWareVO'].fileUrl)"-->
|
|
|
<!-- style="color: #67C23A" type="text">下载</el-button>-->
|
|
|
+ <a :href="scope.row['courseWareVO'].fileUrl"
|
|
|
+ v-if="scope.row['courseWareVO'].useMethod === 'ATTACHMENT' && isPdfOrPicture(scope.row['courseWareVO'].name) === 'PICTUREandATTACHMENT'">
|
|
|
+ <el-button style="color: #67C23A" type="text">下载</el-button>
|
|
|
+ </a>
|
|
|
<el-button v-if="Number(scope.row['courseWareVO'].senderId) === Number(this.$store.state.user.id)"
|
|
|
style="color: #F56C6C; margin-left: 10px" type="text"
|
|
|
@click="handleRemoveCourseWare(scope.row['courseWareVO'].id)">删除</el-button>
|
|
|
@@ -531,10 +535,6 @@ export default {
|
|
|
},
|
|
|
|
|
|
handlePreviewFile(id) {
|
|
|
- this.$message({
|
|
|
- message: "加载中,请稍候",
|
|
|
- type: "warning"
|
|
|
- });
|
|
|
this.$router.push("/courseWare/" + id + "/details");
|
|
|
//window.open("/courseWare/" + id + "/details");
|
|
|
// let nextURL = `https://p.seec.seecoder.cn/courseWare/?courseWareId=${id}/details&id_token=${this.$store.state.user.token}`;
|