2023-03-29 09:18:25 +08:00
|
|
|
<template>
|
2023-04-01 10:59:46 +08:00
|
|
|
<div id="siteMain">
|
2023-04-02 14:50:56 +08:00
|
|
|
<div id="maxSite">
|
2023-04-01 10:59:46 +08:00
|
|
|
<!-- <a-card>
|
|
|
|
<div>
|
|
|
|
<h1>首页</h1>
|
|
|
|
</div>
|
|
|
|
<div>{{ list }} - {{ stateCount }}</div>
|
|
|
|
<div>
|
|
|
|
{{ state }}
|
|
|
|
<a-button type="primary" @click="() => state.count++">点击+1</a-button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{ i }}
|
|
|
|
<a-button type="primary" @click="changeClick">点击+1</a-button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<RouterLink to="/site/index2">跳转到子页</RouterLink>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div>
|
|
|
|
<RouterLink to="/dashboard/analysis">跳转到首页</RouterLink>
|
|
|
|
</div>
|
|
|
|
</a-card>
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
|
|
|
|
<a-layout>
|
2023-04-03 23:56:45 +08:00
|
|
|
<!-- 页头 -->
|
2023-04-03 20:49:23 +08:00
|
|
|
<headerPage/>
|
2023-04-03 23:56:45 +08:00
|
|
|
<!-- 主体部分 -->
|
2023-04-01 10:59:46 +08:00
|
|
|
<a-layout-content>
|
2023-04-03 23:56:45 +08:00
|
|
|
<!-- 统计 -->
|
2023-04-03 20:49:23 +08:00
|
|
|
<tongjiPage/>
|
2023-04-03 23:56:45 +08:00
|
|
|
<!-- 轮播图 -->
|
2023-04-03 20:49:23 +08:00
|
|
|
<lunboPage/>
|
2023-04-03 23:56:45 +08:00
|
|
|
<!-- 通知公告 -->
|
2023-04-03 20:49:23 +08:00
|
|
|
<tongZhiGongGaoPage/>
|
2023-04-03 23:56:45 +08:00
|
|
|
<!-- 任课教程 -->
|
|
|
|
<renKeJiaoChengPage/>
|
|
|
|
<!-- 听课足迹 -->
|
|
|
|
<tingKeZuJiPage/>
|
|
|
|
<!-- 预约课程 -->
|
2023-04-09 16:09:29 +08:00
|
|
|
<yuYueKeChengPage ref="yykcModeal" @ortherLoad="yykcLoad"/>
|
2023-04-09 12:39:01 +08:00
|
|
|
<!-- 精彩公开课 -->
|
2023-04-03 23:56:45 +08:00
|
|
|
<jingCaiGongKaiKePage/>
|
2023-04-09 12:39:01 +08:00
|
|
|
<!-- 今日课程列表 -->
|
2023-04-02 16:04:04 +08:00
|
|
|
<a-card class="rowGutter">
|
|
|
|
<template #title>
|
|
|
|
<span style="font-size: 24px;font-weight: bold;">今日课程列表</span>
|
|
|
|
</template>
|
2023-04-09 16:09:29 +08:00
|
|
|
<a-tabs v-model:activeKey="activeKey" type="card" @change="kclbCard">
|
2023-04-02 18:46:00 +08:00
|
|
|
<a-tab-pane key="1">
|
|
|
|
<template #tab>
|
|
|
|
<div style="font-weight: 600;font-size: 16px;">正在上课</div>
|
|
|
|
</template>
|
2023-04-09 16:09:29 +08:00
|
|
|
<kclbZzsk ref="zzskModeal" @jrkclbLoad="jrkclbLoad"></kclbZzsk>
|
2023-04-02 18:46:00 +08:00
|
|
|
</a-tab-pane>
|
|
|
|
<a-tab-pane key="2">
|
|
|
|
<template #tab>
|
|
|
|
<div style="font-weight: 600;font-size: 16px;">下一节课</div>
|
|
|
|
</template>
|
2023-04-09 16:09:29 +08:00
|
|
|
<kclbXyjk ref="xyjkModeal" @jrkclbLoad="jrkclbLoad"></kclbXyjk>
|
2023-04-02 18:46:00 +08:00
|
|
|
</a-tab-pane>
|
|
|
|
<a-tab-pane key="3">
|
|
|
|
<template #tab>
|
|
|
|
<div style="font-weight: 600;font-size: 16px;">日课表</div>
|
|
|
|
</template>
|
2023-04-09 16:09:29 +08:00
|
|
|
<kclbRkb ref="rkbModeal" @jrkclbLoad="jrkclbLoad"></kclbRkb>
|
2023-04-02 16:36:57 +08:00
|
|
|
</a-tab-pane>
|
|
|
|
</a-tabs>
|
2023-04-02 19:32:39 +08:00
|
|
|
|
2023-04-02 14:50:56 +08:00
|
|
|
</a-card>
|
|
|
|
</a-layout-content>
|
2023-04-03 23:56:45 +08:00
|
|
|
<!-- 页尾 -->
|
2023-04-03 20:49:23 +08:00
|
|
|
<footerPage/>
|
2023-04-01 10:59:46 +08:00
|
|
|
</a-layout>
|
2023-04-02 14:50:56 +08:00
|
|
|
</div>
|
2023-04-01 10:59:46 +08:00
|
|
|
</div>
|
2023-03-29 09:18:25 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2023-03-29 22:52:49 +08:00
|
|
|
import { ref, reactive, computed, onMounted } from 'vue';
|
2023-04-02 14:50:56 +08:00
|
|
|
|
2023-04-03 20:49:23 +08:00
|
|
|
import headerPage from '/@/views/site/common/header.vue';
|
|
|
|
import footerPage from '/@/views/site/common/footer.vue';
|
|
|
|
|
|
|
|
import tongjiPage from '/@/views/site/tongJi/index.vue';
|
|
|
|
import lunboPage from '/@/views/site/lunBo/index.vue';
|
|
|
|
import tongZhiGongGaoPage from '/@/views/site/tongZhiGongGao/index.vue';
|
2023-04-03 23:56:45 +08:00
|
|
|
import renKeJiaoChengPage from '/@/views/site/renKeJiaoCheng/index.vue'
|
|
|
|
import tingKeZuJiPage from '/@/views/site/tingKeZuJi/index.vue'
|
|
|
|
import yuYueKeChengPage from '/@/views/site/yuYueKeCheng/index.vue'
|
|
|
|
import jingCaiGongKaiKePage from '/@/views/site/jingCaiGongKaiKe/index.vue'
|
2023-04-03 20:49:23 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-04-03 23:54:18 +08:00
|
|
|
import kclbZzsk from '/@/views/site/jrkclb/kclbZzsk.vue';
|
|
|
|
import kclbXyjk from '/@/views/site/jrkclb/kclbXyjk.vue';
|
|
|
|
import kclbRkb from '/@/views/site/jrkclb/kclbRkb.vue';
|
2023-04-01 10:59:46 +08:00
|
|
|
|
2023-04-02 16:36:57 +08:00
|
|
|
const activeKey = ref('1');
|
2023-04-09 16:09:29 +08:00
|
|
|
const zzskModeal = ref();
|
|
|
|
const xyjkModeal = ref();
|
|
|
|
const rkbModeal = ref();
|
|
|
|
const yykcModeal = ref();
|
|
|
|
|
2023-03-29 10:43:46 +08:00
|
|
|
// reactive
|
2023-03-29 22:52:49 +08:00
|
|
|
let list = reactive({ list: [] });
|
|
|
|
//针对基础类型
|
2023-03-29 09:18:25 +08:00
|
|
|
const state = ref({ count: 0 });
|
2023-03-29 10:43:46 +08:00
|
|
|
let i = ref(1);
|
|
|
|
|
2023-03-29 22:52:49 +08:00
|
|
|
//计算属性
|
|
|
|
const stateCount = computed(() => {
|
|
|
|
return state.value.count;
|
|
|
|
});
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
console.log('页面加载完了!');
|
|
|
|
});
|
|
|
|
|
|
|
|
//方法
|
2023-03-29 10:43:46 +08:00
|
|
|
function changeClick() {
|
|
|
|
i.value++;
|
2023-03-29 22:52:49 +08:00
|
|
|
// list.list.push({ key: i.value });
|
2023-03-29 10:43:46 +08:00
|
|
|
}
|
2023-04-09 16:09:29 +08:00
|
|
|
/**
|
|
|
|
* 刷新预约课程列表数据
|
|
|
|
*/
|
|
|
|
function jrkclbLoad(){
|
2023-04-09 16:40:39 +08:00
|
|
|
console.log(`🚀 ~ file: index.vue:1301111111:`)
|
2023-04-09 16:09:29 +08:00
|
|
|
yykcModeal.value.newFunction()
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 刷新今日课程列表数据
|
|
|
|
*/
|
|
|
|
function yykcLoad(){
|
|
|
|
kclbCard(1)
|
|
|
|
kclbCard(2)
|
|
|
|
kclbCard(3)
|
|
|
|
}
|
|
|
|
function kclbCard(activeKey){
|
|
|
|
if(activeKey==1){
|
|
|
|
zzskModeal.value.zbLoadData();
|
|
|
|
}else if(activeKey==2){
|
|
|
|
xyjkModeal.value.zbLoadData();
|
|
|
|
}else if(activeKey==3){
|
|
|
|
rkbModeal.value.zbLoadData();
|
|
|
|
}
|
|
|
|
}
|
2023-04-02 16:36:57 +08:00
|
|
|
|
|
|
|
//-----------------------------yangjun-----------------------
|
|
|
|
//-----------------------------yangjun-----------------------
|
2023-04-02 19:32:39 +08:00
|
|
|
|
2023-03-29 09:18:25 +08:00
|
|
|
</script>
|
2023-04-02 14:50:56 +08:00
|
|
|
<style lang="less" scoped>
|
2023-04-01 10:59:46 +08:00
|
|
|
#siteMain {
|
2023-04-08 10:52:46 +08:00
|
|
|
// font-size: ;
|
2023-04-02 14:50:56 +08:00
|
|
|
// height: 100%;
|
|
|
|
background: #f3f3f4;
|
|
|
|
#maxSite {
|
|
|
|
//最大宽度
|
|
|
|
max-width: 1170px;
|
|
|
|
//居中
|
|
|
|
margin: 0 auto;
|
|
|
|
.rowGutter{
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-layout-header {
|
|
|
|
color: #fff;
|
|
|
|
background: #1ab394;
|
|
|
|
}
|
|
|
|
.ant-layout-footer {
|
|
|
|
line-height: 1.5;
|
|
|
|
background: #FFF;
|
|
|
|
}
|
|
|
|
.ant-layout-sider {
|
|
|
|
color: #fff;
|
|
|
|
line-height: 120px;
|
|
|
|
background: #3ba0e9;
|
|
|
|
}
|
|
|
|
.ant-layout-content {
|
|
|
|
min-height: 120px;
|
|
|
|
color: #000;
|
|
|
|
line-height: 120px;
|
|
|
|
background: #f3f3f4;
|
|
|
|
}
|
2023-04-03 20:49:23 +08:00
|
|
|
}
|
2023-04-01 10:59:46 +08:00
|
|
|
|
2023-04-01 22:06:31 +08:00
|
|
|
}
|
2023-04-01 10:59:46 +08:00
|
|
|
/**暗黑模式特殊配色*/
|
2023-04-02 14:50:56 +08:00
|
|
|
[data-theme='dark'] #siteMain #maxSite {
|
2023-04-01 10:59:46 +08:00
|
|
|
.ant-layout-header, .ant-layout-footer {
|
|
|
|
background: #6aa0c7;
|
|
|
|
}
|
|
|
|
.ant-layout-content {
|
|
|
|
background: #107bcb;
|
|
|
|
}
|
|
|
|
.ant-layout-sider {
|
|
|
|
background: #3499ec;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|