资源库文件下载
This commit is contained in:
parent
50baf8b2aa
commit
04d8301124
|
@ -12,7 +12,13 @@
|
||||||
</div>
|
</div>
|
||||||
<s-table ref="table" size="default" rowKey="id" :columns="columns" :data="loadData" :pageNum="Number(this.$route.query.PageNum) || 1">
|
<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">
|
<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-divider type="vertical" />
|
||||||
<a href="javascript:;" @click="edit(record)">编辑</a>
|
<a href="javascript:;" @click="edit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
@ -38,12 +44,12 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
file: [],
|
||||||
queryParam: { classify: '' },
|
queryParam: { classify: '' },
|
||||||
queryOptions: [
|
queryOptions: [{ type: 'select-dic-tree', placeholder: '课件类别', key: 'classify', options: [] }],
|
||||||
{ type: 'select-dic-tree', placeholder: '课件类别', key: 'classify', options: [] },
|
|
||||||
],
|
|
||||||
loadData: (parameter) => {
|
loadData: (parameter) => {
|
||||||
return resource(Object.assign(parameter, this.queryParam)).then((res) => {
|
return resource(Object.assign(parameter, this.queryParam)).then((res) => {
|
||||||
|
console.log('res', res)
|
||||||
return res
|
return res
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -64,7 +70,6 @@ export default {
|
||||||
dictionaryDropDown() {
|
dictionaryDropDown() {
|
||||||
//课件类别
|
//课件类别
|
||||||
dictionaryDropDown({ dictionaryCode: '0009' }).then((res) => {
|
dictionaryDropDown({ dictionaryCode: '0009' }).then((res) => {
|
||||||
console.log('课件类别----', res)
|
|
||||||
this.queryOptions[0].options = dictToTree(res.data, [], 0)
|
this.queryOptions[0].options = dictToTree(res.data, [], 0)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -74,19 +79,21 @@ export default {
|
||||||
|
|
||||||
//课件上传
|
//课件上传
|
||||||
coursewareAdd() {
|
coursewareAdd() {
|
||||||
this.$router.push({ path: '/course/CoursewareAddOrUpdate', query: {ifResources: 1} })
|
this.$router.push({ path: '/course/CoursewareAddOrUpdate', query: { ifResources: 1 } })
|
||||||
},
|
},
|
||||||
|
|
||||||
//编辑
|
//编辑
|
||||||
edit(record) {
|
edit(record) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/course/CoursewareAddOrUpdate',
|
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) {
|
del(record) {
|
||||||
|
|
Loading…
Reference in New Issue