|
|
|
@ -10,7 +10,7 @@ |
|
|
|
|
<ul class="Container_Res_Tab"> |
|
|
|
|
<li class="img-svg" @click="hsndelShow(1)"> |
|
|
|
|
<img src="../../assets/icons/课程简介.svg" alt="简介" /> |
|
|
|
|
<br /> |
|
|
|
|
<br/> |
|
|
|
|
<p>简介</p> |
|
|
|
|
</li> |
|
|
|
|
<li class="img-svg" @click="hsndelShow(2)"> |
|
|
|
@ -81,7 +81,7 @@ |
|
|
|
|
<span>点击开了一个弹框</span> |
|
|
|
|
<template #footer> |
|
|
|
|
<div class="dialog-footer"> |
|
|
|
|
<video src=""></video> |
|
|
|
|
<video src="https://www.bilibili.com/video/BV1HV4y1a7n4?p=50&vd_source=9e99d3200788d6043e077de463ef019b"></video> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-dialog> |
|
|
|
@ -109,6 +109,9 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="ResClaDic"> |
|
|
|
|
<p>音频名称-----{{ item }}</p> |
|
|
|
|
<el-button plain @click="centerDialogVisible = true"> |
|
|
|
|
点击播放 |
|
|
|
|
</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -131,20 +134,21 @@ import type { TabsPaneContext } from 'element-plus' |
|
|
|
|
import ContainerCla from './ContainerCla.vue' |
|
|
|
|
import ContainerKno from './ContainerKno.vue' |
|
|
|
|
import { getAssApi } from "@/api/courseChaptersApi"; |
|
|
|
|
import { SeResourceFavourControllerService } from "../../../generated/services/SeResourceFavourControllerService"; |
|
|
|
|
const centerDialogVisible = ref(false) |
|
|
|
|
|
|
|
|
|
const activeIndex = ref(1) |
|
|
|
|
function hsndelShow(index: number) { |
|
|
|
|
activeIndex.value = index |
|
|
|
|
} |
|
|
|
|
//========================= |
|
|
|
|
function handleApi(params) { |
|
|
|
|
getAssApi(params).then(res => { |
|
|
|
|
arr.value = res.data.records |
|
|
|
|
total.value = res.data.total |
|
|
|
|
console.log(arr.value, '-', total.value) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
// //========================= |
|
|
|
|
// function handleApi(params) { |
|
|
|
|
// getAssApi(params).then(res => { |
|
|
|
|
// arr.value = res.data.records |
|
|
|
|
// total.value = res.data.total |
|
|
|
|
// console.log(arr.value, '-', total.value) |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
const arr = ref([]) |
|
|
|
|
const total = ref(0) |
|
|
|
|
// 分页器 |
|
|
|
@ -153,10 +157,10 @@ const pageSize1 = ref(10) |
|
|
|
|
const disabled = ref(false) |
|
|
|
|
|
|
|
|
|
const handleSizeChange = (val: number) => { |
|
|
|
|
hand() |
|
|
|
|
getDatalist() |
|
|
|
|
} |
|
|
|
|
const handleCurrentChange = (val: number) => { |
|
|
|
|
hand() |
|
|
|
|
getDatalist() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function initFenYie() { |
|
|
|
@ -168,24 +172,53 @@ function initFenYie() { |
|
|
|
|
|
|
|
|
|
watch(activeIndex, (newVal) => { |
|
|
|
|
initFenYie() |
|
|
|
|
hand() |
|
|
|
|
getDatalist() |
|
|
|
|
}) |
|
|
|
|
function hand() { |
|
|
|
|
// function hand() { |
|
|
|
|
// console.log(res) |
|
|
|
|
// // handleApi(params) |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
const params = { |
|
|
|
|
current:currentPage1.value, |
|
|
|
|
type: activeIndex.value, |
|
|
|
|
page: currentPage1.value, |
|
|
|
|
pageSize: pageSize1.value, |
|
|
|
|
resourceIdList: '1,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20' |
|
|
|
|
sortField:'', |
|
|
|
|
sortOrder:'', |
|
|
|
|
userId:'3' |
|
|
|
|
} |
|
|
|
|
handleApi(params) |
|
|
|
|
} |
|
|
|
|
const obj = { |
|
|
|
|
type: activeIndex.value, |
|
|
|
|
page: currentPage1.value, |
|
|
|
|
pageSize: pageSize1.value, |
|
|
|
|
resourceIdList: '1,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20' |
|
|
|
|
|
|
|
|
|
const datalist = ref([ |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
description:'', |
|
|
|
|
id: '', |
|
|
|
|
img:'', |
|
|
|
|
name: '', |
|
|
|
|
path:'', |
|
|
|
|
status:'', |
|
|
|
|
tags:'', |
|
|
|
|
type: '', |
|
|
|
|
}, |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
const getDatalist = async () => { |
|
|
|
|
const res = await SeResourceFavourControllerService.listPostByPageUsingPost3(params) |
|
|
|
|
datalist.value = res.data.records |
|
|
|
|
total.value = res.data.total |
|
|
|
|
console.log(datalist.value[0]) |
|
|
|
|
} |
|
|
|
|
handleApi(obj) |
|
|
|
|
getDatalist() |
|
|
|
|
// hand() |
|
|
|
|
// const obj = { |
|
|
|
|
// type: activeIndex.value, |
|
|
|
|
// page: currentPage1.value, |
|
|
|
|
// pageSize: pageSize1.value, |
|
|
|
|
// sortField:'', |
|
|
|
|
// sortOrder:'', |
|
|
|
|
// resourceIdList: '' |
|
|
|
|
// } |
|
|
|
|
// handleApi(obj) |
|
|
|
|
//========================= |
|
|
|
|
|
|
|
|
|
const activeName = ref('first') |
|
|
|
@ -348,9 +381,19 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.item_2-2, |
|
|
|
|
.item_2-5{ |
|
|
|
|
width: 100%; |
|
|
|
|
height: 300px; |
|
|
|
|
margin-top: 20px; |
|
|
|
|
border-left: 1px solid #e4e4e4; |
|
|
|
|
border-top: 1px solid #e4e4e4; |
|
|
|
|
overflow: hidden; |
|
|
|
|
box-shadow: 2px 2px 2px 2px rgba(214, 212, 212, 0.5); |
|
|
|
|
border-radius: 6px; |
|
|
|
|
margin-bottom: 32px; |
|
|
|
|
} |
|
|
|
|
.item_2-3, |
|
|
|
|
.item_2-4, |
|
|
|
|
.item_2-5 { |
|
|
|
|
.item_2-4{ |
|
|
|
|
width: 100%; |
|
|
|
|
height: 300px; |
|
|
|
|
margin-top: 20px; |
|
|
|
|