|
|
|
|
@ -38,9 +38,15 @@
|
|
|
|
|
附件
|
|
|
|
|
</template>
|
|
|
|
|
<div v-for="item in pictureList">
|
|
|
|
|
<el-button size="small" style="margin:5px" type="primary" v-if="type=='study'"
|
|
|
|
|
@click='openStudy(item.url,item.name)'>开始学习</el-button>
|
|
|
|
|
<a :href="item.url" target="_blank">{{item.name}}</a>
|
|
|
|
|
<!-- <el-button size="small" style="margin:5px" type="primary" v-if="type=='study'"
|
|
|
|
|
@click='openStudy(item.url,item.name)'>开始学习</el-button> -->
|
|
|
|
|
<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> -->
|
|
|
|
|
</div>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
@ -162,7 +168,15 @@
|
|
|
|
|
<el-table-column align='left' label="成果资料" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<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>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@ -219,7 +233,15 @@
|
|
|
|
|
<el-table-column align='left' label="成果资料" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<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>
|
|
|
|
|
</template>
|
|
|
|
|
@ -546,7 +568,8 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
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) {
|
|
|
|
|
this.pictureList.push({
|
|
|
|
|
id: f.id,
|
|
|
|
|
|