dbsd_kczx/src/views/site/index.vue

177 lines
4.5 KiB
Vue
Raw Normal View History

<template>
<div id="siteMain">
2023-04-02 14:50:56 +08:00
<div id="maxSite">
<!-- <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>
<headerPage/>
<a-layout-content>
<tongjiPage/>
<lunboPage/>
<tongZhiGongGaoPage/>
<renKeJiaoCheng/>
<tingKeZuJi/>
<yuYueKeCheng/>
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-02 16:36:57 +08:00
<a-tabs v-model:activeKey="activeKey" type="card">
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>
<kclbZzsk ref="zzskModeal"></kclbZzsk>
</a-tab-pane>
<a-tab-pane key="2">
<template #tab>
<div style="font-weight: 600;font-size: 16px;">下一节课</div>
</template>
<kclbXyjk ref="xyjkModeal"></kclbXyjk>
</a-tab-pane>
<a-tab-pane key="3">
<template #tab>
<div style="font-weight: 600;font-size: 16px;">日课表</div>
</template>
<kclbRkb ref="rkbModeal"></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>
<footerPage/>
</a-layout>
2023-04-02 14:50:56 +08:00
</div>
</div>
</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-02 19:32:39 +08:00
import { DownOutlined, PlusOutlined, ArrowUpOutlined } from '@ant-design/icons-vue';
2023-04-02 14:50:56 +08:00
import { BackTop, Statistic } from 'ant-design-vue';
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';
import renKeJiaoCheng from '/@/views/site/renKeJiaoCheng/index.vue'
import tingKeZuJi from '/@/views/site/tingKeZuJi/index.vue'
import yuYueKeCheng from '/@/views/site/yuYueKeCheng/index.vue'
2023-04-02 18:46:00 +08:00
import kclbZzsk from '/@/views/site/kclbZzsk.vue';
import kclbXyjk from '/@/views/site/kclbXyjk.vue';
import kclbRkb from '/@/views/site/kclbRkb.vue';
2023-04-02 16:36:57 +08:00
const activeKey = ref('1');
2023-03-29 10:43:46 +08:00
// reactive
2023-03-29 22:52:49 +08:00
let list = reactive({ list: [] });
//针对基础类型
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-02 16:36:57 +08:00
//-----------------------------yangjun-----------------------
//-----------------------------yangjun-----------------------
2023-04-02 19:32:39 +08:00
</script>
2023-04-02 14:50:56 +08:00
<style lang="less" scoped>
#siteMain {
2023-04-02 14:50:56 +08:00
// height: 100%;
background: #f3f3f4;
#maxSite {
//最大宽度
max-width: 1170px;
//居中
margin: 0 auto;
.topTitle {
font-size: 1.5rem;
}
.topRight {
float: right;
.topRightMenu {
font-size: 1.1rem;
}
}
.footerRight {
float: right;
}
.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-01 22:06:31 +08:00
}
/**暗黑模式特殊配色*/
2023-04-02 14:50:56 +08:00
[data-theme='dark'] #siteMain #maxSite {
.ant-layout-header, .ant-layout-footer {
background: #6aa0c7;
}
.ant-layout-content {
background: #107bcb;
}
.ant-layout-sider {
background: #3499ec;
}
}
</style>