鄢陵县北京网站建设长沙网站制作工作室

news/2025/10/7 11:18:43/文章来源:
鄢陵县北京网站建设,长沙网站制作工作室,泰安房产网签数据,网站防火墙怎么做需求#xff1a;页面跳转到目标页面之后#xff0c;对应的顶部路由高亮 上面的更多 跳转到 学情分析下面的学生分析 templatediv classtopBar reftopBar v-loading.fullscreen.lockfullscreenLoadingdiv class页面跳转到目标页面之后对应的顶部路由高亮  上面的更多 跳转到 学情分析下面的学生分析 templatediv classtopBar reftopBar v-loading.fullscreen.lockfullscreenLoadingdiv classtopBar-navidiv classtop-menu containerdiv classmyMenuimg :srclogo alt /!-- S2路由改造 --div classparentRoutespan:class{ activeParent: currentIndex index }v-for(item, index) in routeMenus:keyindexclickselectParentRoute(item, index){{ filterTitle(item.meta.title) }}!-- i v-ifitem.children classel-icon-arrow-down / --/span/div/div!-- ***************** --div classright-menuspan classright-menu-currentRole{{ currentRoleObj.roleName }}/spanel-buttonclassTopbar-identitytypetextclickhandelShowDialog:disableddisabledRole切换角色/el-buttonel-dropdown classTopbar-dropdownspan classTopbar-el-dropdown-link{{ name }}i classel-icon-arrow-down el-icon--right/i/spanel-dropdown-menu slotdropdown classTopbar-el-dropdown-menudiv姓名 span{{ name }}/span/divdiv classTopbar-Group身份span{{ currentRoleObj.roleName }}/span/divdiv学校 span{{ school }}/span/divdiv classuser-center!-- span click.stoptoUserCenter个人中心/span --a classTopbar-logout clicklogout退出登录/a/div/el-dropdown-menu/el-dropdown/div/div/div!-- S2二级菜单改造 --!-- ************ --div classchildRoute v-ifsubMenusdiv classchildRoute-menus containerdiv:class{ activeChild: currentChildIndex index }v-for(item, index) in subMenus:keyindexclickselectChildRoute(item, index){{ filterTitle(item.meta.title) }}/div/div/div!-- ************ --el-dialogtitle是否退出登录:visible.syncDialogLogoutwidth325pxheight134pxappend-to-bodycenterclassTopbar-el-dialogspan slotfooter classdialog-footerel-button clickDialogLogout false取 消/el-buttonel-button typeprimary clickLogoutConfirm确 定/el-button/span/el-dialogel-dialogtitle请选择你要切换的身份:visible.syncDialogVisiblewidth474pxheight218pxappend-to-bodycenterclassTopbar-el-dialogdivv-for(item, index) in teacherInfo.roleMap:keyindexclassTopbar-role:class{ roleActive: currentRoleObj.roleType item.roleType }clickselectRole(item){{ item.roleName }}/divspan slotfooter classdialog-footerel-button typeprimary clickDialogVisible false关闭/el-button/span/el-dialog!-- 筛选项组件 --filterItems //div /templatescript import variables from /assets/styles/variables.scss; import { mapState, mapActions, mapGetters, mapMutations } from vuex; import $C from /assets/js/config.js; import filterItems from ./Sidebar/filterItems.vue;export default {components: { filterItems },name: Topbar,data() {return {delaySearch: false, //搜索延迟DialogLogout: false,DialogVisible: false, //弹框默认影藏// 当前激活一级菜单的 indexcurrentIndex: localStorage.getItem(parentPathIndex) || 0,// 二级菜单indexcurrentChildIndex: localStorage.getItem(childPathIndex) || 0,// 角色currentRole: , //当前角色名classesByRole: [], //角色下班级subjectByClass: [], //班级下学科currentGrade: ,currentGradeName: ,fullscreenLoading: false,disabledRole: false,// 当前班级current_class: ,currentSubject: , //默认显示学科activeSubject: };},mounted() {this.GetUserStoreClasses();},watch: {currentRoleObj: {handler(val, old) {// 切换角色高亮默认第一个路由this.currentIndex 0;this.currentChildIndex 0;},deep: true}},computed: {...mapGetters([avatar, storeClasses, name, school, gradeList, routeMenus]),variables() {return variables;},// 二级菜单subMenus() {let menu this.routeMenus[this.currentIndex]?.children || ;return menu;},// 一级路由parentMenu() {let parent this.routeMenus[this.currentIndex].path;return parent;},// 页面logo图片logo() {return this.$store.state.user.teacherInfo.schoolVo.logo;},// 教师信息teacherInfo() {return this.$store.state.user.teacherInfo;},//角色信息currentRoleObj() {return this.$store.state.user.current_role;}},methods: {...mapActions({ GetUserStoreClasses: GetUserStoreClasses }),...mapMutations([SET_CURRENT_CLASS,SET_CURRENT_ROLE,SET_CURRENT_SUBJECT,SET_GRADE,SET_CURRENT_GRADE,SET_SUBJECT_LIST]),toUserCenter() {this.$router.push({ name: UserCenterHome });},// 点击一级路由菜单selectParentRoute(item, index) {this.currentIndex index;localStorage.setItem(parentPathIndex, index);localStorage.setItem(childPathIndex, 0);let parentRoute item.path;if (item.children) {// 有二级路由let defaultChild item.children[0]?.path; //点击跳转默认第一个二级路由this.$router.push(${parentRoute}/${defaultChild});} else {// 没有二级路由this.$router.push(parentRoute);}},// 子菜单选择事件selectChildRoute(item, index) {localStorage.setItem(childPathIndex, index);this.$router.push(${this.parentMenu}/${item.path});},// 点击确认退出登录async LogoutConfirm() {this.$store.dispatch(LogOut).then(() {location.href /;});this.DialogLogout false;},// 点击退出登录logout() {this.DialogLogout true;},handelShowDialog() {this.DialogVisible true;this.disabledRole true;let timer setTimeout(() {clearTimeout(timer);this.disabledRole false;}, 6000);},// 切换角色selectRole(item) {this.fullscreenLoading true;this.DialogVisible false;localStorage.setItem(childPathIndex, 0);localStorage.setItem(parentPathIndex, 0);this.SET_CURRENT_ROLE(item);//当前角色下年级列表和默认年级if (item.grades[0]) {this.SET_GRADE(item.grades);this.SET_CURRENT_GRADE(item.grades[0]);this.currentGrade item.grades[0].grade;}//角色下是否存在班级if (item.classes[0]) {//角色下班级this.classesByRole item.classes;this.SET_CURRENT_CLASS(item.classes[0]);//改变默认班级this.current_class item.classes[0].classNo;}//任课教师、考察科目教师角色下班级if (item.roleType 106 || item.roleType 113) {let currentRoleSub this.teacherInfo.roleMap[item.roleType].classes.find(v v.classNo this.current_class);this.subjectByClass currentRoleSub.subjects;this.currentSubject currentRoleSub.subjects[0].subject;this.SET_CURRENT_SUBJECT(currentRoleSub.subjects[0]);this.SET_SUBJECT_LIST(currentRoleSub.subjects);}this.$store.dispatch(GetRoutes).then(v {let parentRoute v[0].path;if (v[0].children) {let toIndex v[0].children[0].path;this.$router.push({path: ${parentRoute}/${toIndex},replace: true});} else {this.$router.push(parentRoute);}});//计算top高度并传参this.$nextTick(() {const childHeight this.$refs.topBar.offsetHeight;this.$emit(getHeight, childHeight);});let timer setTimeout(() {clearTimeout(timer);this.fullscreenLoading false;}, 800);// });},//去掉子菜单角色名字段filterTitle(title) {let roleName this.currentRole;if (title.includes(-)) {return title.substr(title.lastIndexOf(-) 1);} else {return title.replace(roleName, );}}} }; /scriptstyle langscss scoped .topBar {-navi {width: 100%;background: #fff;box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.04) inset;height: 55px;display: flex;.top-menu {// width: 100%;display: flex;justify-content: space-between;align-items: center;.myMenu {display: flex;align-items: center;width: 100%;img {width: 135px;}.parentRoute {width: 100%; span {cursor: pointer;margin-left: 30px;}.activeParent {color: #34beea;}}.menuList {display: flex;}}.right-menu {text-align: right;width: 240px;display: flex;align-items: center;height: 100%;-currentRole {margin-right: 10px;// width: 80px;height: 22px;line-height: 22px;border-radius: 4px;text-align: center;color: #34beea;background: rgba(52, 190, 234, 0.16);}:focus {outline: none;}.Topbar-dropdown {.Topbar-el-dropdown-link {cursor: pointer;}}.Topbar-identity {display: inline-block;color: #777777;line-height: 21px;margin-right: 10px;:hover {// background-color: red;color: #34beea;}}}}}.childRoute {height: 54px;background-color: #fff;box-shadow: 0px 4px 4px 0px rgba(209, 209, 209, 0.25);margin-bottom: 20px;cursor: pointer;-menus {display: flex;align-items: center; div {// line-height: 54px;height: 54px;padding: 16px 36px;}.activeChild {background: #34beea;color: #fff;}}} }.Topbar-el-dropdown-menu {width: 270px;height: 220px;padding: 32px 0 0 24px;overflow: hidden;div {width: 100%;height: 32px;display: flex;align-items: center;span {margin-left: 32px;}}.Topbar-Group {span:nth-child(1) {margin: 0 20px 0 32px;}img {// margin-right: 2px;}}.Topbar-install {display: inline-block;width: 56px;height: 21px;color: #303133;line-height: 21px;margin: 18px 0 12px 75px;white-space: nowrap;:hover {color: #e54747;}}.user-center {display: flex;flex-direction: column;align-items: center;justify-content: center;margin-top: 30px;height: 42px;user-select: none; span, a {margin: 0;padding: 0;} span {margin-bottom: 10px;color: #333;cursor: pointer;:active {opacity: 0.5;}} a {color: #e54747;}} }.Topbar-el-dialog {margin-top: 200px;.el-dialog__header {.el-dialog__title {margin-top: 30px;font-size: 16px;color: #606266;}}.el-dialog__body {.roleActive {color: #34beea;}.Topbar-role {height: 21px;text-align: center;font-size: 12px;margin-bottom: 21px;cursor: pointer;:hover {color: #34beea;}}} } /style一级路由循环渲染  currentIndex高亮   添加点击事件 div classparentRoute             span               :class{ activeParent: currentIndex index }               v-for(item, index) in routeMenus               :keyindex               clickselectParentRoute(item, index)                           {{ filterTitle(item.meta.title) }}               !-- i v-ifitem.children classel-icon-arrow-down / --             /span           /div  二级路由  currentChildIndex高亮  添加点击事件 div classchildRoute-menus container         div           :class{ activeChild: currentChildIndex index }           v-for(item, index) in subMenus           :keyindex           clickselectChildRoute(item, index)                   {{ filterTitle(item.meta.title) }}         /div       /div 在data中定义变量          // 当前激活一级菜单的 index       currentIndex: localStorage.getItem(parentPathIndex) || 0,       // 二级菜单index       currentChildIndex: localStorage.getItem(childPathIndex) || 0,   在跳转页面也就是学情概览页面的methods里面新增一个方法 findMore(name, path) {       let parentIndex this.routeMenus.findIndex(v v.meta.title name);       let childIndex this.routeMenus[parentIndex].children.findIndex(v v.path path);       localStorage.setItem(parentPathIndex, parentIndex);       localStorage.setItem(childPathIndex, childIndex);       this.$router.push(path);     }, 在学情概览页面结构里面 点击更多的地方使用这个方法并传参  routeMenus 目标页面

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/930339.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

二分法算法技巧-思维提升 - 教程

二分法算法技巧-思维提升 - 教程2025-10-07 11:08 tlnshuju 阅读(0) 评论(0) 收藏 举报pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !import…

开源量子模拟引擎:Quantum ESPRESSO本地部署教程,第一性原理计算轻松入门! - 实践

开源量子模拟引擎:Quantum ESPRESSO本地部署教程,第一性原理计算轻松入门! - 实践pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; f…

基于Python+Vue开发的大学竞赛报名管理系统源码+运行步骤

项目简介该项目是基于Python+Vue开发的大学竞赛报名管理系统(前后端分离),这是一项为大学生课程设计作业而开发的项目。该系统旨在帮助大学生学习并掌握Python编程技能,同时锻炼他们的项目设计与开发能力。通过学习…

详细介绍:QT常用控件(1)

详细介绍:QT常用控件(1)pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", …

网站制作素材绿色商城网站模板

多参数方法的问题相信很多人曾经都写过多参数的构造方法,就像下面示例的代码。当想要创建一个给全部属性赋值的实例的时候,就会利用这个多参数的构造方法。但是,当类的属性特别多的时候,你还会这么写吗?如果你写了一个…

Generate First, Then Sample: Enhancing Fake News Detection with LLM-Augmented Reinforced Sampling

论文阅读1. 任务 如何提高假新闻检测的效果,特别是针对假新闻本身的检测能力 2. 研究背景与问题提出:假新闻指包含虚假信息的新闻,其在社交媒体上的传播对公共卫生、政治等关键社会议题构成严重威胁。现有假新闻检测…

开发电商网站多少钱刷赞网站推广软件

文末下载上传环境源码客户端js检查一般都是在网页上写一段javascript脚本,校验上传文件的后缀名,有白名单形式也有黑名单形式。查看源代码可以看到有如下代码对上传文件类型进行了限制:我们可以看到对上传文件类型进行了限制。绕过方法1.我们…

手机网站网站开发流程开发软件开发

目录 一、常见的压缩包的扩展名 二、常见的压缩和解压指令 1、tar 2、tar gzip(.tar.gz) (或 .tgz) 3、tar bzip2(.tar.bz2) 4、zip 5、gzip 6、bzip2 7、xz 8、rar 9、7z 三、安装解压工具 一、常见的压缩包的扩展…

数据大屏

数据大屏 <!DOCTYPE html> <html lang="zh-CN"> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1…

K8S上采用helm部署 Prometheus + Grafana

K8S上采用helm部署 Prometheus + Grafanapre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "M…

AI元人文的硅基基石体系:EPU+VPU+WBUC+WAUC深度解析——声明Ai解析

AI元人文的硅基基石体系:EPU+VPU+WBUC+WAUC深度解析 一、引言:硅基生命的人文基因 在2025年阿里云栖大会上,"云智一体,碳硅共生"的主题引发了人们对未来智能形态的深刻思考。随着人工智能技术的迅猛发展…

做熊猫tv网站的目的互联网电子商务网站开发技术

前言 踩着前人的肩膀&#xff0c;努力前行。参考了很多前人的文章。 1.变量声明const和let es6之前声明变量只能用var&#xff0c;var的特点是无论声明在何处&#xff0c;都会被视为声明在函数的最顶部(不在函数内即在全局作用域的最顶部) function test(){if(false){var name …

优秀网站建设哪家专业网页打不开用什么浏览器

引子 网络层能够被分解为两个相互作用的部分&#xff1a; 数据平面和控制平面。 网络层概述 路由器具有截断的协议栈&#xff0c;即没有网络层以上的部分。 如下图所示&#xff0c;是一个简单网络&#xff1a; 转发和路由选择&#xff1a;数据平面和控制平面 网络层的作用…

做画册去什么网站找素材网站建设新闻咨询

官方文档 在前面 文章目录 uboot常见命令学习环境变量网络控制台uboot标准启动其他 升级uboot或内核bin和uimg以及booti和bootm的区别制作uImage更换内核更换uboot后续计划 uboot常见命令学习 环境变量 Environment Variables环境变量 autostart 如果值为yes&#xff0c;则会…

电脑做网站服务器需要什么软件手机网站 侧边栏导航

&#x1f451;专栏内容&#xff1a;Java⛪个人主页&#xff1a;子夜的星的主页&#x1f495;座右铭&#xff1a;前路未远&#xff0c;步履不停 目录 一、泛型1、什么是泛型2、泛型的语法 二、泛型类的使用1、泛型类的语法2、泛型如何编译的2.1、擦除机制2.2、为什么不能实例化泛…

详细介绍:VSCode+Cline 安装配置及使用说明

详细介绍:VSCode+Cline 安装配置及使用说明2025-10-07 10:44 tlnshuju 阅读(0) 评论(0) 收藏 举报pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: bl…

淮安软件园哪家做网站建设网站需要有什么特色

当我们谈论编程中的数据结构时&#xff0c;顺序容器是不可忽视的一个重要概念。顺序容器是一种能够按照元素添加的顺序来存储和检索数据的数据结构。它们提供了简单而直观的方式来组织和管理数据&#xff0c;为程序员提供了灵活性和性能的平衡。 Qt 中提供了丰富的容器类&…

看手机的网站叫什么建筑公司经营范围大全

手机从开发出来到现在&#xff0c;已经换了很多代了&#xff0c;从大哥大&#xff0c;小灵通&#xff0c;到诺基亚到山寨机到苹果到华为&#xff0c;几十年过去了。手机从奢侈品一下飞去每个人手里&#xff0c;反正我手机有手机已经快10年了&#xff0c;所以我相信每个人对自己…

有关网站建设的知识招标网站大全

最近接触到一些新人&#xff0c;是真正的网络新人&#xff0c;慢慢理解了新人的困惑。 对于新人&#xff0c;每天获取的信息五花八门&#xff0c;这是好的也是极其不好的。因为他们不知道如何筛选&#xff0c;到底适不适合自己去做。 我一直在劝大家去做一些内容创造性的事情…

题解:P4779 【模板】单源最短路径(标准版)

题目传送门 算法分析 本题要求计算单源最短路径,并且边权非负,适合使用Dijkstra 算法。Dijkstra 算法是一种贪心算法,用于计算带权有向图或无向图中单个源节点到所有其他节点的最短路径。 为什么选择 Dijkstra 算法…