dbsd_kczx/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue

238 lines
7.5 KiB
Vue
Raw Normal View History

2024-05-06 19:41:47 +08:00
<template>
2024-08-08 09:47:20 +08:00
<div id="siteMain">
<a-row>
<a-col :lg="24" :xs="0">
<a-menu
v-model:openKeys="openKeys"
v-model:selectedKeys="selectedKeys"
style="width: 98%; min-height: calc(100vh - 225px); margin: 10px 0"
mode="inline"
:inline-collapsed="collapsed"
>
<a-menu-item key="sub0">
<template #icon>
<PieChartOutlined />
</template>
<span @click="getGzt('gonggao')">通知公告</span>
</a-menu-item>
2024-08-09 14:08:22 +08:00
<a-menu-item key="sub1">
2024-08-08 09:47:20 +08:00
<template #icon>
2024-08-12 09:14:57 +08:00
<BarChartOutlined />
2024-08-08 09:47:20 +08:00
</template>
2024-08-09 14:08:22 +08:00
<span @click="getGzt('kcjs')">课程简介</span>
</a-menu-item >
2024-08-23 09:51:38 +08:00
<a-menu-item key="sub2">
<template #icon>
<SettingOutlined />
</template>
<span @click="getGzt('jxdg')">教学大纲</span>
</a-menu-item >
<a-menu-item key="sub3">
2024-08-08 09:47:20 +08:00
<template #icon>
2024-08-12 09:14:57 +08:00
<SnippetsOutlined />
2024-08-08 09:47:20 +08:00
</template>
<span @click="getGzt('dqzy')">课程作业</span>
</a-menu-item>
2024-08-23 09:51:38 +08:00
<a-menu-item key="sub4">
2024-08-19 08:37:20 +08:00
<template #icon>
<AppstoreOutlined />
</template>
<span @click="getGzt('qmzy')">期末考试</span>
</a-menu-item>
2024-08-23 09:51:38 +08:00
<a-menu-item key="sub5">
2024-08-08 09:47:20 +08:00
<template #icon>
2024-08-12 09:14:57 +08:00
<AppstoreAddOutlined />
2024-08-08 09:47:20 +08:00
</template>
2024-08-09 14:08:22 +08:00
<span @click="getGzt('kcjc')">课堂测验</span>
2024-08-08 09:47:20 +08:00
</a-menu-item>
2024-08-09 14:08:22 +08:00
<!-- <a-sub-menu key="sub3">
2024-08-08 09:47:20 +08:00
<template #icon>
<PieChartOutlined />
</template>
<template #title>教学工具</template>
<a-menu-item key="6" @click="getGzt('dcwj')">问卷调查</a-menu-item>
<a-menu-item key="7" @click="getGzt('gongju')">到课识别率</a-menu-item>
<a-menu-item key="8" @click="getGzt('zycd')">作业存档</a-menu-item>
</a-sub-menu>
<a-menu-item key="sub4">
<template #icon>
<PieChartOutlined />
</template>
<span @click="getGzt('yiykzyk')">教学资源库</span>
</a-menu-item>
<a-menu-item key="sub6">
<template #icon>
<PieChartOutlined />
</template>
<span @click="getGzt('tlq')">讨论区</span>
2024-08-09 14:08:22 +08:00
</a-menu-item> -->
2024-08-08 09:47:20 +08:00
</a-menu>
</a-col>
<a-col :lg="0" :xs="24">
<a-menu v-model:openKeys="openKeys" v-model:selectedKeys="selectedKeys" style="width: 98%; margin: 10px 0" mode="horizontal">
<a-sub-menu key="min0">
<template #icon>
<!-- <SettingOutlined /> -->
<MenuUnfoldOutlined />
</template>
<!-- <template #title>功能菜单</template> -->
<a-menu-item key="sub0">
<span @click="getGzt('gonggao')">通知公告</span>
</a-menu-item>
<a-menu-item key="sub1">
<span @click="getGzt('kcjs')">课程简介</span>
</a-menu-item>
2024-08-23 09:51:38 +08:00
<a-menu-item key="sub2">
<span @click="getGzt('jxdg')">教学大纲</span>
</a-menu-item>
2024-08-19 08:37:20 +08:00
<!-- <a-menu-item key="sub2">
2024-08-08 09:47:20 +08:00
<span @click="gotoPageByName('jiaoXueDanYuanNeiRong')">教学单元</span>
2024-08-19 08:37:20 +08:00
</a-menu-item> -->
2024-08-08 09:47:20 +08:00
<a-menu-item key="sub3">
<span @click="getGzt('dqzy')">课程作业</span>
</a-menu-item>
2024-08-23 09:51:38 +08:00
<a-menu-item key="sub4">
2024-08-19 08:37:20 +08:00
<span @click="getGzt('qmzy')">期末考试</span>
</a-menu-item>
2024-08-23 09:51:38 +08:00
<a-menu-item key="sub5">
2024-08-19 08:37:20 +08:00
<span @click="getGzt('kcjc')">课堂测验</span>
2024-08-08 09:47:20 +08:00
</a-menu-item>
2024-08-19 08:37:20 +08:00
<!-- <a-menu-item key="sub5">
2024-08-08 09:47:20 +08:00
<span @click="getGzt('dcwj')">问卷调查</span>
2024-08-19 08:37:20 +08:00
</a-menu-item> -->
<!-- <a-menu-item key="sub6">
2024-08-08 09:47:20 +08:00
<span @click="getGzt('gongju')">到课识别率</span>
</a-menu-item>
<a-menu-item key="sub7">
<span @click="getGzt('zycd')">作业存档</span>
</a-menu-item>
<a-menu-item key="sub8">
<span @click="getGzt('yiykzyk')">教学资源库</span>
</a-menu-item>
<a-menu-item key="sub9">
<span @click="getGzt('tlq')">讨论区</span>
2024-08-19 08:37:20 +08:00
</a-menu-item> -->
2024-08-08 09:47:20 +08:00
</a-sub-menu>
</a-menu>
</a-col>
</a-row>
2024-05-06 19:41:47 +08:00
</div>
</template>
<script lang="ts" setup>
2024-08-08 09:47:20 +08:00
import { ref, onMounted, unref,defineExpose } from 'vue';
2024-05-06 19:41:47 +08:00
2024-08-08 09:47:20 +08:00
import { getUserSf, getSysConfig } from '/@/views/site/utils/index';
import { defHttp } from '/@/utils/http/axios';
import { useRouter } from 'vue-router';
2024-08-12 09:14:57 +08:00
import { MailOutlined, AppstoreOutlined, SettingOutlined, MenuUnfoldOutlined,PieChartOutlined,BarChartOutlined,SnippetsOutlined,AppstoreAddOutlined } from '@ant-design/icons-vue';
2024-05-06 19:41:47 +08:00
2024-08-08 09:47:20 +08:00
import headerPage from '/@/views/site/common/header.vue';
import footerPage from '/@/views/site/common/footer.vue';
import dqxqkc from '/@/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue';
2024-05-06 19:41:47 +08:00
2024-08-08 09:47:20 +08:00
const maxClassName = ref<any>({});
const selectedKeys = ref<string[]>(['sub0']);
const openKeys = ref<string[]>(['sub0']);
const collapsed = ref<any>(false);
//当前路由信息
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
const { rwbh, xqxn, type, teano } = query; //获取传递参数
let router = useRouter();
2024-08-08 09:47:20 +08:00
function getGzt(zytype) {
var param = { rwbh, xqxn, type };
// console.log(`🚀 ~ getGzt ~ type:`, zytype)
var href = '/zy/dqkcDqzy';
if (zytype == 'dqzy') {
href = '/zy/dqkcDqzy';
} else if (zytype == 'dcwj') {
href = '/zy/dcwjWenjuan';
} else if (zytype == 'lszy') {
href = '/zy/dqkcLszy';
} else if (zytype == 'gonggao') {
href = '/zy/tuGonggao';
} else if (zytype == 'kcjs') {
href = '/zy/dqkcDetail';
} else if (zytype == 'kcjc') {
href = '/zy/ceshiWenjuan';
} else if (zytype == 'gongju') {
href = '/zy/dqkcGongju';
} else if (zytype == 'yiykzyk') {
href = '/zy/yiykzyk';
} else if (zytype == 'jxzyk') {
href = '/zy/dqkcJxzyk';
} else if (zytype == 'tlq') {
href = '/zy/dqkcTlq';
} else if (zytype == 'zycd') {
href = '/zy/dqkcCdxx';
2024-08-19 08:37:20 +08:00
} else if (zytype == 'qmzy') {
href = '/zy/dqkcQmzy';
2024-08-23 09:51:38 +08:00
}else if (zytype == 'jxdg') {
href = '/zy/dqkcJxdg';
2024-08-08 09:47:20 +08:00
}
2024-08-08 09:47:20 +08:00
router.push({ path: href, query: { rwbh, xqxn, type, teano } });
}
2024-05-27 19:41:21 +08:00
2024-08-08 09:47:20 +08:00
function toggleCollapsed() {
collapsed.value = !collapsed.value;
openKeys.value = collapsed.value ? [] : selectedKeys.value;
}
2024-05-06 19:41:47 +08:00
2024-08-08 09:47:20 +08:00
function gotoPageByName(name) {
router.push({ name, query: { rwbh, xqxn, type, teano } });
}
2024-05-14 08:36:59 +08:00
2024-08-08 09:47:20 +08:00
//进入就加载
onMounted(() => {
// console.log('rwbh:',rwbh);
});
2024-08-08 09:47:20 +08:00
defineExpose({
toggleCollapsed
});
2024-05-06 19:41:47 +08:00
</script>
<style lang="less" scoped>
#siteMain {
// font-size: ;
// height: 100%;
background: #f3f3f4;
#maxSite {
//最大宽度
max-width: 1070px;
2024-05-10 21:48:26 +08:00
min-height: 730px;
2024-05-06 19:41:47 +08:00
//居中
margin: 0 auto;
2024-08-08 09:47:20 +08:00
.rowGutter {
2024-05-06 19:41:47 +08:00
margin-top: 1rem;
margin-bottom: 1rem;
}
.ant-layout-header {
color: #fff;
background: #1ab394;
}
.ant-layout-footer {
line-height: 1.5;
2024-08-08 09:47:20 +08:00
background: #fff;
2024-05-06 19:41:47 +08:00
}
.ant-layout-sider {
color: #fff;
line-height: 120px;
background: #3ba0e9;
}
.ant-layout-content {
min-height: 120px;
color: #000;
line-height: 120px;
background: #f3f3f4;
}
}
}
2024-06-18 19:48:24 +08:00
.ant-menu-overflow {
2024-08-08 09:47:20 +08:00
flex-direction: row-reverse;
2024-06-18 19:48:24 +08:00
}
</style>