lion 1 year ago
parent 35f7a2ee6a
commit 9d501fc041

@ -38,9 +38,15 @@
附件 附件
</template> </template>
<div v-for="item in pictureList"> <div v-for="item in pictureList">
<el-button size="small" style="margin:5px" type="primary" v-if="type=='study'" <!-- <el-button size="small" style="margin:5px" type="primary" v-if="type=='study'"
@click='openStudy(item.url,item.name)'>开始学习</el-button> @click='openStudy(item.url,item.name)'>开始学习</el-button> -->
<a :href="item.url" target="_blank">{{item.name}}</a> <a :href="item.url" target="_blank">{{item.name}}</a>
<el-link target="_blank" style="margin:0 10px;" @click="toshowFile(item.url)" type="primary">
预览
</el-link>
<el-link target="_blank" :href="item.url" type="primary">
下载
</el-link>
<!-- <span v-if="type=='study'" @click='openStudy(item.url,item.name)' style="color:red;cursor:pointer;text-decoration: underline;margin:0 5px"></span> --> <!-- <span v-if="type=='study'" @click='openStudy(item.url,item.name)' style="color:red;cursor:pointer;text-decoration: underline;margin:0 5px"></span> -->
</div> </div>
</el-descriptions-item> </el-descriptions-item>
@ -162,7 +168,15 @@
<el-table-column align='left' label="成果资料" width="120"> <el-table-column align='left' label="成果资料" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="item in scope.row.files"> <div v-for="item in scope.row.files">
<div @click="toshowFile(item.url)" style="color:#2D8cF0;cursor: pointer;">{{item.original_name}}</div> <div style="color:#2D8cF0;cursor: pointer;">
<el-link target="_blank" style="margin:0 10px;" @click="toshowFile(item.url)" type="primary">
预览
</el-link>
<el-link target="_blank" :href="item.url" type="primary">
下载
</el-link>
{{item.original_name}}
</div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -219,7 +233,15 @@
<el-table-column align='left' label="成果资料" width="120"> <el-table-column align='left' label="成果资料" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="item in scope.row.files"> <div v-for="item in scope.row.files">
<div @click="toshowFile(item.url)" style="color:#2D8cF0;cursor: pointer;">{{item.original_name}}</div> <div style="color:#2D8cF0;cursor: pointer;">
<el-link target="_blank" style="margin:0 10px;" @click="toshowFile(item.url)" type="primary">
预览
</el-link>
<el-link target="_blank" :href="item.url" type="primary">
下载
</el-link> {{item.original_name}}
</div>
</div> </div>
</template> </template>
@ -547,6 +569,7 @@
}) })
this.my_mission_distribute = md this.my_mission_distribute = md
console.log(this.my_mission_distribute) console.log(this.my_mission_distribute)
this.pictureList = []
for (var f of res.files) { for (var f of res.files) {
this.pictureList.push({ this.pictureList.push({
id: f.id, id: f.id,

Loading…
Cancel
Save