|
|
|
@ -92,7 +92,9 @@ |
|
|
|
|
<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> |
|
|
|
@ -120,6 +122,9 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="ResClaDic"> |
|
|
|
|
<p>音频名称-----{{ item }}</p> |
|
|
|
|
<el-button plain @click="centerDialogVisible = true"> |
|
|
|
|
点击播放 |
|
|
|
|
</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -149,20 +154,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) |
|
|
|
|
// 分页器 |
|
|
|
@ -171,10 +177,10 @@ const pageSize1 = ref(10) |
|
|
|
|
const disabled = ref(false) |
|
|
|
|
|
|
|
|
|
const handleSizeChange = (val: number) => { |
|
|
|
|
hand() |
|
|
|
|
getDatalist() |
|
|
|
|
} |
|
|
|
|
const handleCurrentChange = (val: number) => { |
|
|
|
|
hand() |
|
|
|
|
getDatalist() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function initFenYie() { |
|
|
|
@ -185,24 +191,53 @@ function initFenYie() { |
|
|
|
|
|
|
|
|
|
watch(activeIndex, (newVal) => { |
|
|
|
|
initFenYie() |
|
|
|
|
hand() |
|
|
|
|
getDatalist() |
|
|
|
|
}) |
|
|
|
|
function hand() { |
|
|
|
|
const params = { |
|
|
|
|
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', |
|
|
|
|
} |
|
|
|
|
handleApi(params) |
|
|
|
|
} |
|
|
|
|
const obj = { |
|
|
|
|
// 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', |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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') |
|
|
|
@ -364,8 +399,6 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.item_2-2, |
|
|
|
|
.item_2-3, |
|
|
|
|
.item_2-4, |
|
|
|
|
.item_2-5 { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 300px; |
|
|
|
@ -377,6 +410,18 @@ const handleClick = (tab: TabsPaneContext, event: Event) => { |
|
|
|
|
border-radius: 6px; |
|
|
|
|
margin-bottom: 32px; |
|
|
|
|
} |
|
|
|
|
.item_2-3, |
|
|
|
|
.item_2-4 { |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.Page-2 { |
|
|
|
|
width: 100%; |
|
|
|
|