2024-05-06 19:41:47 +08:00
|
|
|
<template>
|
2024-05-23 17:30:43 +08:00
|
|
|
<div id="siteMain" style="min-height: calc(100vh - 205px);">
|
2024-05-06 19:41:47 +08:00
|
|
|
<a-row>
|
|
|
|
<a-col :span="24">
|
|
|
|
<a-menu
|
2024-05-23 17:30:43 +08:00
|
|
|
v-model:openKeys="openKeys"
|
|
|
|
v-model:selectedKeys="selectedKeys"
|
|
|
|
style="width: 98%;min-height: calc(100vh - 225px);margin: 10px 0;"
|
|
|
|
mode="inline"
|
2024-05-06 19:41:47 +08:00
|
|
|
>
|
|
|
|
<a-sub-menu key="sub1">
|
|
|
|
<template #title>教学内容</template>
|
2024-05-21 17:53:16 +08:00
|
|
|
<a-menu-item key="1" @click="getGzt('kcjs')">课程简介</a-menu-item>
|
2024-05-13 22:48:44 +08:00
|
|
|
<a-menu-item key="2" @click="getGzt('gonggao')">通知公告</a-menu-item>
|
2024-05-14 08:36:59 +08:00
|
|
|
<a-menu-item key="3" @click="gotoPageByName('jiaoXueDanYuanNeiRong')">教学单元内容</a-menu-item>
|
2024-05-06 19:41:47 +08:00
|
|
|
</a-sub-menu>
|
|
|
|
<a-sub-menu key="sub2">
|
2024-05-20 23:01:32 +08:00
|
|
|
<template #title>作业/测验</template>
|
2024-05-10 20:01:34 +08:00
|
|
|
<a-menu-item key="4" @click="getGzt('dqzy')">课程作业</a-menu-item>
|
2024-05-13 09:03:02 +08:00
|
|
|
<a-menu-item key="5" @click="getGzt('kcjc')">课程测验</a-menu-item>
|
2024-05-06 19:41:47 +08:00
|
|
|
</a-sub-menu>
|
2024-05-13 22:48:44 +08:00
|
|
|
<a-sub-menu key="sub3">
|
|
|
|
<template #title>教学工具</template>
|
2024-05-13 23:04:21 +08:00
|
|
|
<a-menu-item key="6" @click="getGzt('dcwj')">问卷调查</a-menu-item>
|
2024-05-25 12:50:41 +08:00
|
|
|
<a-menu-item key="7" @click="getGzt('gongju')">到课识别率</a-menu-item>
|
2024-05-24 15:31:26 +08:00
|
|
|
<a-menu-item key="8" @click="getGzt('zycd')">作业存档</a-menu-item>
|
2024-05-13 22:48:44 +08:00
|
|
|
</a-sub-menu>
|
|
|
|
<a-menu-item key="sub4">
|
2024-05-22 13:43:18 +08:00
|
|
|
<span @click="getGzt('yiykzyk')">教学资源库</span>
|
2024-05-10 20:01:34 +08:00
|
|
|
</a-menu-item>
|
2024-05-22 13:43:18 +08:00
|
|
|
<!-- <a-menu-item key="sub5">
|
2024-05-21 09:32:15 +08:00
|
|
|
<span @click="getGzt('jxzyk')">教学资源库</span>
|
2024-05-22 13:43:18 +08:00
|
|
|
</a-menu-item> -->
|
2024-05-21 09:32:15 +08:00
|
|
|
<a-menu-item key="sub6">
|
2024-05-20 18:19:08 +08:00
|
|
|
<span @click="getGzt('tlq')">讨论区</span>
|
|
|
|
</a-menu-item>
|
2024-05-13 22:48:44 +08:00
|
|
|
<!-- <a-menu-item key="sub3">
|
|
|
|
<span @click="getGzt('dqwj')">问卷调查</span>
|
|
|
|
</a-menu-item> -->
|
2024-05-10 20:01:34 +08:00
|
|
|
<!-- <a-sub-menu key="sub3">
|
2024-05-06 19:41:47 +08:00
|
|
|
<template #title>问卷管理</template>
|
2024-05-09 20:22:02 +08:00
|
|
|
<a-menu-item key="6" @click="getGzt('dqwj')">当前问卷</a-menu-item>
|
2024-05-06 19:41:47 +08:00
|
|
|
<a-menu-item key="7">历史问卷</a-menu-item>
|
2024-05-10 20:01:34 +08:00
|
|
|
</a-sub-menu> -->
|
2024-05-13 22:48:44 +08:00
|
|
|
<!-- <a-menu-item key="sub5">
|
|
|
|
<span @click="getGzt('gongju')">教学工具</span>
|
|
|
|
</a-menu-item> -->
|
2024-05-06 19:41:47 +08:00
|
|
|
</a-menu>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ref, onMounted, unref } from 'vue';
|
|
|
|
|
|
|
|
import { getUserSf,getSysConfig } from '/@/views/site/utils/index';
|
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
|
|
|
|
|
|
|
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-09 20:22:02 +08:00
|
|
|
|
2024-05-06 19:41:47 +08:00
|
|
|
const maxClassName = ref<any>({});
|
2024-05-21 17:53:16 +08:00
|
|
|
const selectedKeys = ref<string[]>(['1']);
|
|
|
|
const openKeys = ref<string[]>(['sub1']);
|
2024-05-06 19:41:47 +08:00
|
|
|
//当前路由信息
|
|
|
|
const { currentRoute } = useRouter();
|
|
|
|
const { query } = unref(currentRoute);
|
2024-06-04 08:47:27 +08:00
|
|
|
const { rwbh,xqxn,type,teano } = query;//获取传递参数
|
2024-05-06 19:41:47 +08:00
|
|
|
let router = useRouter();
|
2024-05-09 20:22:02 +08:00
|
|
|
|
|
|
|
|
2024-05-08 16:04:27 +08:00
|
|
|
function getGzt(zytype){
|
2024-05-13 23:04:21 +08:00
|
|
|
var param = {rwbh,xqxn,type};
|
|
|
|
// console.log(`🚀 ~ getGzt ~ type:`, zytype)
|
2024-05-06 19:41:47 +08:00
|
|
|
var href = "/zy/dqkcDqzy";
|
2024-05-08 16:04:27 +08:00
|
|
|
if(zytype=='dqzy'){
|
2024-05-06 19:41:47 +08:00
|
|
|
href = "/zy/dqkcDqzy";
|
2024-05-13 23:04:21 +08:00
|
|
|
}else if(zytype=='dcwj'){
|
|
|
|
href = "/zy/dcwjWenjuan";
|
2024-05-08 16:04:27 +08:00
|
|
|
}else if(zytype=='lszy'){
|
|
|
|
href = "/zy/dqkcLszy";
|
2024-05-10 20:01:34 +08:00
|
|
|
}else if(zytype=='gonggao'){
|
|
|
|
href = "/zy/tuGonggao";
|
2024-05-13 09:03:02 +08:00
|
|
|
}else if(zytype=='kcjs'){
|
|
|
|
href = "/zy/dqkcDetail";
|
|
|
|
}else if(zytype=='kcjc'){
|
2024-05-13 23:04:21 +08:00
|
|
|
href = "/zy/ceshiWenjuan";
|
2024-05-13 22:48:44 +08:00
|
|
|
}else if(zytype=='gongju'){
|
|
|
|
href = "/zy/dqkcGongju";
|
2024-05-21 09:32:15 +08:00
|
|
|
}else if(zytype=='yiykzyk'){
|
|
|
|
href = "/zy/yiykzyk";
|
|
|
|
}else if(zytype=='jxzyk'){
|
|
|
|
href = "/zy/dqkcJxzyk";
|
2024-05-20 18:19:08 +08:00
|
|
|
}else if(zytype=='tlq'){
|
|
|
|
href = "/zy/dqkcTlq";
|
2024-05-24 15:31:26 +08:00
|
|
|
}else if(zytype=='zycd'){
|
|
|
|
href = "/zy/dqkcCdxx";
|
2024-05-06 19:41:47 +08:00
|
|
|
}
|
2024-05-27 19:41:21 +08:00
|
|
|
|
2024-06-04 08:47:27 +08:00
|
|
|
router.push({path:href,query: {rwbh,xqxn,type,teano}});
|
2024-05-06 19:41:47 +08:00
|
|
|
}
|
|
|
|
|
2024-05-14 08:36:59 +08:00
|
|
|
function gotoPageByName(name) {
|
2024-06-04 08:47:27 +08:00
|
|
|
router.push({ name, query: { rwbh, xqxn, type,teano } });
|
2024-05-14 08:36:59 +08:00
|
|
|
}
|
|
|
|
|
2024-05-06 19:41:47 +08:00
|
|
|
//进入就加载
|
|
|
|
onMounted(() => {
|
2024-05-27 19:41:21 +08:00
|
|
|
// console.log('rwbh:',rwbh);
|
2024-05-06 19:41:47 +08:00
|
|
|
});
|
2024-05-09 20:22:02 +08:00
|
|
|
|
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;
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-05-09 20:22:02 +08:00
|
|
|
</style>
|