Commit 66c7d7fa authored by daywrite's avatar daywrite

文档管理

parent 74a6b1cd
......@@ -41,14 +41,14 @@
type="primary"
size="mini"
@click.prevent.stop="deleteSch(item.id)"
:disabled="!item.can_delete">
:disabled="item.can_delete">
<i class="fa fa-trash-o animated-hove"></i>删除
</el-button>
<el-button
type="primary"
size="mini"
@click.prevent.stop="deleteSch(item.id)"
:disabled="!item.can_delete">
@click.prevent.stop="downloadSch(item)"
:disabled="item.can_delete">
<i class="fa fa-fw fa-download"></i>下载
</el-button>
</span>
......@@ -251,6 +251,10 @@ export default {
})
},
downloadSch (item) {
window.open(item.attachment.name, '_self')
},
// 8.留言
leaveMessageSch (item) {
this.$refs.leaveMessage.btnShow(item)
......
......@@ -4,9 +4,8 @@
<el-col :span="4" :xs="24" class="obear-schedule-left" :style="{background: item.bgcolor}">
<el-row :gutter="10">
<el-col :span="24">
<a>
<i class="fa fa-star" aria-hidden="true"></i>{{ isNullTitle ? '(未设置)' : item.title }}
</a>
<i class="fa fa-star" aria-hidden="true"></i>
<a href="/attachment/view?name=">{{ isNullTitle ? '(未设置)' : item.title }}</a>
</el-col>
<el-col :span="24" style="padding-left: 3px;">
<span>
......@@ -29,7 +28,7 @@
<span>是否为模板:</span><span class="obear-schedule-right__content">{{ item.is_template_display }}</span>
</el-col>
<el-col :span="6" :xs="24">
<span>文档:</span>
<span>文档:<a :href="item.attachment.name" target="_self"><i class="fa fa-fw fa-file-text-o"></i></a></span>
</el-col>
<el-col :span="6" :xs="24">
<span>文档类型:{{ item.attachment.extension }}</span>
......@@ -81,7 +80,7 @@ export default {
computed: {
isNullTitle () {
return !!this.item.title
return !this.item.title
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment