资源库文件下载
This commit is contained in:
parent
50baf8b2aa
commit
04d8301124
|
@ -12,7 +12,13 @@
|
|||
</div>
|
||||
<s-table ref="table" size="default" rowKey="id" :columns="columns" :data="loadData" :pageNum="Number(this.$route.query.PageNum) || 1">
|
||||
<template slot="action" slot-scope="text, record">
|
||||
<a href="javascript:;" @click="dow(record)">下载</a>
|
||||
<!-- <a href="javascript:;" @click="dow(record)">下载</a> -->
|
||||
<a-popover title="资源下载">
|
||||
<template slot="content">
|
||||
<a style="display: block;margin-bottom:15px" v-for="(item,index) in record.videoList" :href="item.path" :key="index">{{item.name}}</a>
|
||||
</template>
|
||||
<span style="color:#1890ff">下载</span>
|
||||
</a-popover>
|
||||
<a-divider type="vertical" />
|
||||
<a href="javascript:;" @click="edit(record)">编辑</a>
|
||||
<a-divider type="vertical" />
|
||||
|
@ -38,12 +44,12 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
file: [],
|
||||
queryParam: { classify: '' },
|
||||
queryOptions: [
|
||||
{ type: 'select-dic-tree', placeholder: '课件类别', key: 'classify', options: [] },
|
||||
],
|
||||
queryOptions: [{ type: 'select-dic-tree', placeholder: '课件类别', key: 'classify', options: [] }],
|
||||
loadData: (parameter) => {
|
||||
return resource(Object.assign(parameter, this.queryParam)).then((res) => {
|
||||
console.log('res', res)
|
||||
return res
|
||||
})
|
||||
},
|
||||
|
@ -64,7 +70,6 @@ export default {
|
|||
dictionaryDropDown() {
|
||||
//课件类别
|
||||
dictionaryDropDown({ dictionaryCode: '0009' }).then((res) => {
|
||||
console.log('课件类别----', res)
|
||||
this.queryOptions[0].options = dictToTree(res.data, [], 0)
|
||||
})
|
||||
},
|
||||
|
@ -74,19 +79,21 @@ export default {
|
|||
|
||||
//课件上传
|
||||
coursewareAdd() {
|
||||
this.$router.push({ path: '/course/CoursewareAddOrUpdate', query: {ifResources: 1} })
|
||||
this.$router.push({ path: '/course/CoursewareAddOrUpdate', query: { ifResources: 1 } })
|
||||
},
|
||||
|
||||
//编辑
|
||||
edit(record) {
|
||||
this.$router.push({
|
||||
path: '/course/CoursewareAddOrUpdate',
|
||||
query: { coursewareId: record.id, type: record.type ,ifResources: 1},
|
||||
query: { coursewareId: record.id, type: record.type, ifResources: 1 },
|
||||
})
|
||||
},
|
||||
|
||||
//课件下载
|
||||
dow() {},
|
||||
showFile() {
|
||||
//获取文件
|
||||
// this.file =
|
||||
},
|
||||
|
||||
// 刪除課件
|
||||
del(record) {
|
||||
|
|
Loading…
Reference in New Issue