mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 12:56:43 +08:00
提交
This commit is contained in:
@@ -7,7 +7,6 @@ const getters = {
|
||||
cachedViews: state => state.tagsView.cachedViews,
|
||||
avatar: state => state.user.info.avatar,
|
||||
userInfo: state => state.user.info,
|
||||
caseShow: state => state.user.caseShow,
|
||||
newslist: state => state.user.newslist,
|
||||
orgId: state => state.user.orgId,
|
||||
permissions: state => state.user.permissions,
|
||||
|
||||
@@ -5,7 +5,6 @@ import apiMessage from '@/api/system/message.js'
|
||||
import apiCourse from "@/api/modules/course.js";
|
||||
import apiBoeCourse from "@/api/boe/course.js";
|
||||
import apiBoeLogout from "@/api/boe/login.js";
|
||||
import caseUser from "@/utils/caseShow.js"
|
||||
|
||||
const user = {
|
||||
state: {
|
||||
@@ -16,7 +15,6 @@ const user = {
|
||||
studyTaskCount:0,//学习任务数
|
||||
curIdentity: sessionStorage.getItem("curIdentity") == null ? 1 : sessionStorage.getItem("curIdentity"), // 用户当前选择的身份 1学员 2教师 3管理员
|
||||
permissions: [],
|
||||
caseShow:false,
|
||||
},
|
||||
mutations: {
|
||||
SET_Identity: (state, iden) => {
|
||||
@@ -41,9 +39,6 @@ const user = {
|
||||
SET_PERMISSIONS: (state, permissions) => {
|
||||
state.permissions = permissions
|
||||
},
|
||||
SET_caseShow:(state, iden) => {
|
||||
state.caseShow = iden
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
refrashMsg({ commit }) {
|
||||
@@ -133,19 +128,6 @@ const user = {
|
||||
dfn = res.result.departFullName;
|
||||
}
|
||||
}
|
||||
let nowTime = new Date() //当前时间
|
||||
let endTime = new Date('2022/07/01 09:30:00') //对比时间
|
||||
if(nowTime.getTime() < endTime.getTime()){
|
||||
if (res.result.userNo != '') {
|
||||
for(let key in caseUser){
|
||||
if(res.result.userNo == key) {
|
||||
commit('SET_caseShow',true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}else{
|
||||
commit('SET_caseShow',true);
|
||||
}
|
||||
const user = {
|
||||
aid: res.result.aid,
|
||||
sysId:res.result.sysId,
|
||||
|
||||
Reference in New Issue
Block a user