|
|
@ -1,22 +1,29 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
// import {} from 'vue'; |
|
|
|
import { ref } from 'vue'; |
|
|
|
|
|
|
|
|
|
|
|
// const params = ref({ |
|
|
|
const paginationData = ref({ |
|
|
|
// pageNo: 1, |
|
|
|
pageNo: 1, |
|
|
|
// pageSize: 7, |
|
|
|
pageSize: 7, |
|
|
|
// // username: 'qiuqiu', |
|
|
|
total: 7 |
|
|
|
// userId: userStore.data.id, |
|
|
|
}) |
|
|
|
// assessmenttype: '', |
|
|
|
function paginationChange(currentPage: number, pageSize: number) { |
|
|
|
// category: '', |
|
|
|
|
|
|
|
// nature: '', |
|
|
|
} |
|
|
|
// teacher: '', |
|
|
|
|
|
|
|
// }) |
|
|
|
// 临时的,有接口后使用接口数据 |
|
|
|
|
|
|
|
const isPraise = ref(true) |
|
|
|
|
|
|
|
const isStar = ref(true) |
|
|
|
|
|
|
|
function handlePraise() { |
|
|
|
|
|
|
|
isPraise.value = !isPraise.value |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function handleStar() { |
|
|
|
|
|
|
|
isStar.value = !isStar.value |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="view-container"> |
|
|
|
<div class="view-container"> |
|
|
|
<div class="banner"></div> |
|
|
|
<div class="container" style="padding-bottom: 20px;"> |
|
|
|
<div class="container"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="main-content" v-loading="0"> |
|
|
|
<div class="main-content" v-loading="0"> |
|
|
|
<div class="header"> |
|
|
|
<div class="header"> |
|
|
@ -29,20 +36,34 @@ |
|
|
|
<Plus /> |
|
|
|
<Plus /> |
|
|
|
</el-icon> |
|
|
|
</el-icon> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<h2 class="course_name">course_name</h2> |
|
|
|
<h2 class="course_name">点击添加课程</h2> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li v-for="item in 7" :key="item"> |
|
|
|
<li v-for="item in 7" :key="item"> |
|
|
|
<img title="点击查看课程详情" :src="''" alt="" @click="" /> |
|
|
|
<img title="点击查看课程详情" :src="''" alt="" @click="" /> |
|
|
|
<h2 title="点击查看课程基本信息" class="course_name" @click=""> |
|
|
|
<h2 title="点击查看课程基本信息" class="course_name" @click=""> |
|
|
|
item.name |
|
|
|
软件项目管理 |
|
|
|
</h2> |
|
|
|
</h2> |
|
|
|
<p class="teacher_name">讲师:item.teacher</p> |
|
|
|
<p class="teacher_name">讲师:肖海南</p> |
|
|
|
<p class="credit"> |
|
|
|
<p class="credit"> |
|
|
|
<span>item.classhours</span> |
|
|
|
<span>4</span> |
|
|
|
学时 | |
|
|
|
学时 | |
|
|
|
<span>item.credit</span> |
|
|
|
<span>4</span> |
|
|
|
学分 |
|
|
|
学分 |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="parent"> |
|
|
|
|
|
|
|
<div class="div1" @click="handlePraise"> |
|
|
|
|
|
|
|
<SvgIcon v-if="isPraise" width="12px" height="12px" name="Praise"></SvgIcon> |
|
|
|
|
|
|
|
<SvgIcon v-else width="12px" height="12px" name="PraiseFilled" |
|
|
|
|
|
|
|
color="#f7ba2a"></SvgIcon> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="div2" @click="handleStar"> |
|
|
|
|
|
|
|
<SvgIcon v-if="isStar" width="12px" height="12px" name="Star"></SvgIcon> |
|
|
|
|
|
|
|
<SvgIcon v-else width="12px" height="12px" name="StarFilled" |
|
|
|
|
|
|
|
color="#f7ba2a"></SvgIcon> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
<el-icon class="del" @click=""> |
|
|
|
<el-icon class="del" @click=""> |
|
|
|
<Delete /> |
|
|
|
<Delete /> |
|
|
|
</el-icon> |
|
|
|
</el-icon> |
|
|
@ -55,16 +76,40 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <el-pagination v-model:current-page="params.pageNo" v-model:page-size="params.pageSize" |
|
|
|
<el-pagination v-model:current-page="paginationData.pageNo" v-model:page-size="paginationData.pageSize" |
|
|
|
:page-sizes="[2, 5, 7, 10]" :background="true" layout="jumper,total, sizes, prev, pager, next " |
|
|
|
:page-sizes="[2, 5, 7, 10]" :background="true" layout="jumper,total, sizes, prev, pager, next " |
|
|
|
:total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" |
|
|
|
:total="paginationData.total" @change="paginationChange" |
|
|
|
style="margin-top: 10px; justify-content: center" /> --> |
|
|
|
style="margin-top: 10px; justify-content: center" /> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
|
|
.parent { |
|
|
|
|
|
|
|
display: grid; |
|
|
|
|
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
|
|
|
|
grid-template-rows: 1fr; |
|
|
|
|
|
|
|
grid-column-gap: 5px; |
|
|
|
|
|
|
|
grid-row-gap: 0px; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
margin-left: 245px; |
|
|
|
|
|
|
|
margin-top: -80px; |
|
|
|
|
|
|
|
color: #0052ff; |
|
|
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.div1 { |
|
|
|
|
|
|
|
grid-area: 1 / 1 / 2 / 2; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.div2 { |
|
|
|
|
|
|
|
grid-area: 1 / 2 / 2 / 3; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.main-content { |
|
|
|
.main-content { |
|
|
|
width: 1440px; |
|
|
|
width: 1440px; |
|
|
|
margin: 0 auto; |
|
|
|
margin: 0 auto; |
|
|
@ -123,7 +168,6 @@ |
|
|
|
li { |
|
|
|
li { |
|
|
|
margin: 40px 0; |
|
|
|
margin: 40px 0; |
|
|
|
width: 349px; |
|
|
|
width: 349px; |
|
|
|
width: 100%; |
|
|
|
|
|
|
|
height: 297px; |
|
|
|
height: 297px; |
|
|
|
background: rgb(255, 255, 255); |
|
|
|
background: rgb(255, 255, 255); |
|
|
|
transition: all 0.5s; |
|
|
|
transition: all 0.5s; |
|
|
|