修改菜单及状态

This commit is contained in:
yangjun 2024-05-13 22:48:44 +08:00
parent d10aee8470
commit ccc8f37b85
8 changed files with 57 additions and 28 deletions

View File

@ -49,7 +49,7 @@ const zuoye: AppRouteModule = {
{
path: 'dqkcGongju',
name: 'dqkcGongju',
component: () => import('/@/views/site/renKeJiaoCheng/checkKecheng/dqxqkcGongju.vue'),
component: () => import('/@/views/kc/detection/zyZhjsList.vue'),
meta: {
title: '课程工具',
},

View File

@ -1,8 +1,8 @@
<template>
<div style="width:100%;text-align: right;line-height:40px;">
<a style="padding-right: 0.5rem;" @click="init()">刷新</a>
<RouterLink to="/site/xspjjgore">查看更多</RouterLink>
<!-- <a style="padding-right: 0.5rem;" @click="init()">刷新</a>
<RouterLink to="/site/xspjjgore">查看更多</RouterLink> -->
</div>
<a-list item-layout="horizontal" :data-source="list" :grid="{ gutter: 12, xs: 2, sm: 3, md: 3, lg: 3, xl: 3, xxl: 3, xxxl: 3 }">
<template #renderItem="{ item }">

View File

@ -1,5 +1,14 @@
<template>
<div style="margin-top:10px;background:#fff;height:630px;overflow:auto;">
<a-card>
<div>
<a-row>
<a-col :span="3" style="font-size: 18px;font-weight: bold;">课程介绍</a-col>
<a-col :span="15"><a-textarea style="width: 100%;"></a-textarea></a-col>
<a-col :span="6" style="text-align:right;"><a-button type="primary">提交</a-button><a-button type="primary" style="margin-left:10px;"></a-button></a-col>
</a-row>
</div>
</a-card>
<a-card>
<div>
<span style="float: left;line-height: 30px; font-size: 18px; font-weight: bold;">教学大纲</span>

View File

@ -10,28 +10,33 @@
<a-sub-menu key="sub1">
<template #title>教学内容</template>
<a-menu-item key="1" @click="getGzt('kcjs')">课程介绍</a-menu-item>
<a-menu-item key="2" @click="getGzt('gonggao')">公告</a-menu-item>
<a-menu-item key="3">教学单元内容</a-menu-item>
<a-menu-item key="2" @click="getGzt('gonggao')">通知公告</a-menu-item>
<a-menu-item key="3">教学单元</a-menu-item>
</a-sub-menu>
<a-sub-menu key="sub2">
<template #title>测验/作业</template>
<a-menu-item key="4" @click="getGzt('dqzy')">课程作业</a-menu-item>
<a-menu-item key="5" @click="getGzt('kcjc')">课程测验</a-menu-item>
</a-sub-menu>
<a-menu-item key="sub3">
<span @click="getGzt('dqwj')">问卷调查</span>
<a-sub-menu key="sub3">
<template #title>教学工具</template>
<a-menu-item key="6" @click="getGzt('dqwj')">问卷调查</a-menu-item>
<a-menu-item key="7" @click="getGzt('gongju')">到课率识别</a-menu-item>
</a-sub-menu>
<a-menu-item key="sub4">
<span>教学资源库</span>
</a-menu-item>
<!-- <a-menu-item key="sub3">
<span @click="getGzt('dqwj')">问卷调查</span>
</a-menu-item> -->
<!-- <a-sub-menu key="sub3">
<template #title>问卷管理</template>
<a-menu-item key="6" @click="getGzt('dqwj')">当前问卷</a-menu-item>
<a-menu-item key="7">历史问卷</a-menu-item>
</a-sub-menu> -->
<a-menu-item key="sub4">
<span>资源库</span>
</a-menu-item>
<a-menu-item key="sub5">
<span>工具</span>
</a-menu-item>
<!-- <a-menu-item key="sub5">
<span @click="getGzt('gongju')">教学工具</span>
</a-menu-item> -->
</a-menu>
</a-col>
</a-row>
@ -74,8 +79,10 @@
href = "/zy/dqkcDetail";
}else if(zytype=='kcjc'){
href = "/zy/dqkcWenjuan";
}else if(zytype=='gongju'){
href = "/zy/dqkcGongju";
}
console.log('href---->',href);
router.push({path:href,query: {rwbh,xqxn,type}});
}

View File

@ -1,8 +1,9 @@
<template>
<a-card class="rowGutter" id="rkjcDom">
<template #title>
<span style="font-size: 24px;font-weight: bold;" @click="openKecheng(null)">任教课程</span>
<span style="font-size: 24px;font-weight: bold;" >任教课程</span>
<span style="margin-left: 10px;"><a href="javascript:void(0);" @click="openChangeKcPage">修改课程提醒</a></span>
<span style="margin-left: 10px;"><a href="javascript:void(0);" @click="openKecheng(null)">全部课程</a></span>
</template>
<!-- <template #extra></template> -->
<div class="cardBody">

View File

@ -9,15 +9,10 @@
>
<a-sub-menu key="sub1">
<template #title>课程介绍</template>
<a-menu-item key="1">教学大纲</a-menu-item>
<a-menu-item key="2">常见问题</a-menu-item>
<a-menu-item key="1">课程介绍</a-menu-item>
<a-menu-item key="2">通知公告</a-menu-item>
<a-menu-item key="3">教学单元</a-menu-item>
</a-sub-menu>
<a-menu-item key="sub2">
<span>公告</span>
</a-menu-item>
<a-menu-item key="sub3">
<span>教学日历</span>
</a-menu-item>
<a-sub-menu key="sub4">
<template #title>测验/作业</template>
<a-menu-item key="4" @click="getGzt('dqzy')">课程作业</a-menu-item>
@ -26,9 +21,9 @@
<a-menu-item key="sub5">
<span>问卷调查</span>
</a-menu-item>
<a-menu-item key="sub5">
<!-- <a-menu-item key="sub5">
<span>讨论区</span>
</a-menu-item>
</a-menu-item> -->
</a-menu>
</a-col>

View File

@ -34,11 +34,11 @@
<a-col :span="8" v-for="(item, index) in tableData" :key="index" style="padding: 0px 0px 10px 5px;overflow:hidden;">
<div style="width: 100%; height: 20px; background-color: rgb(28, 132, 198);"></div>
<a-card style="height: 210px;border: 1px solid rgb(28, 132, 198);">
<div class="rotate" >{{item.zyStatus_dictText}}</div>
<div class="rotate" :style="classFun(item)">{{callText(item)}}</div>
<a-row style="top: -48px;position: relative;">
<a-col :span="24" style="margin-bottom: 10px;height:53px;overflow:hidden;" :title="item.title">
<!-- <div style="font-size: 18px;font-weight: bold;" class="ellipsis">{{item.title}}</div> -->
<div style="font-size: 18px;font-weight: bold;">{{item.zyType_dictText}}{{item.title}}</div>
<div style="font-size: 18px;font-weight: bold;">{{item.title}}</div>
</a-col>
<a-col :span="24" class="zyCon">时间{{item.startTime}} - {{item.endTime}}</a-col>
<a-col :span="24" class="zyCon"><div style="float:left" v-if="item.score">{{item.score}}</div><div style="float:right;" @click="openXkrs(item)"><a>{{item.xkxs}}人选课</a></div></a-col>
@ -110,6 +110,24 @@
});
function classFun(record){
if(record.score){
return "background: #1f77f8";
}else if(record.stuFilePath){
return "background: #18a689";
}else{
return "background: #a7a6a6";
}
}
function callText(record){
if(record.score){
return "已评分";
}else if(record.stuFilePath){
return "已提交";
}else{
return "未提交";
}
}
/**
* 详情
*/

View File

@ -125,7 +125,6 @@
}else if(type == '1'){
return "background: #18a689";
}
}
/**
* 新增事件