mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 21:06:42 +08:00
提交加的弹窗
This commit is contained in:
17
src/api/phase2/yearMedal.js
Normal file
17
src/api/phase2/yearMedal.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
/**文章模块的相关处理*/
|
||||||
|
// import ajax from '@/utils/xajax.js'
|
||||||
|
import ajax from '../ajax'
|
||||||
|
const baseURL =process.env.VUE_APP_STAT_BASE_API;
|
||||||
|
|
||||||
|
const has2023 = function() {
|
||||||
|
return ajax.get(baseURL,'/xboe/m/stat/year/medal/has');
|
||||||
|
}
|
||||||
|
|
||||||
|
const save2023 = function() {
|
||||||
|
return ajax.get(baseURL,'/xboe/m/stat/year/medal/save');
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
has2023,
|
||||||
|
save2023
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
<div style="text-align: center;position: relative;">
|
<div style="text-align: center;position: relative;">
|
||||||
<!-- <span style="float: right;" @click="pop.show = false"><i style="font-size: 28px;color: #000000;" class="el-icon-close"></i></span> -->
|
<!-- <span style="float: right;" @click="pop.show = false"><i style="font-size: 28px;color: #000000;" class="el-icon-close"></i></span> -->
|
||||||
<el-image :src="baseUrl+pop.bgImage"></el-image>
|
<el-image :src="baseUrl+pop.bgImage"></el-image>
|
||||||
<div>
|
<div style="margin-top: 30px;">
|
||||||
<span v-if="pop.closeable" class="dlg-close" @click="pop.show = false"><i style="font-size: 28px;color: #999;" class="el-icon-close"></i></span>
|
<span v-if="pop.closeable" class="dlg-close" @click="pop.show = false"><i style="font-size: 28px;color: #999;" class="el-icon-close"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
78
src/components/Popup/Medal2023.vue
Normal file
78
src/components/Popup/Medal2023.vue
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-dialog :close-on-press-escape="false" :close-on-click-modal="false" class="medalbox" :visible.sync="show" :append-to-body="true" >
|
||||||
|
<div style="text-align: center;position: relative;">
|
||||||
|
<el-image :src="`${webBaseUrl}/images/medal/20230101.png`"></el-image>
|
||||||
|
<div class="dlg-boot">
|
||||||
|
<span class="dlg-close" @click="show = false"><i style="font-size: 28px;color: #999;" class="el-icon-close"></i></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import apiYearMedal from '@/api/phase2/yearMedal.js';
|
||||||
|
export default{
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
show:false,
|
||||||
|
baseUrl:process.env.VUE_APP_FILE_BASE_URL
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
let now=new Date();
|
||||||
|
let min=new Date(2023,1,1,0,0,0);
|
||||||
|
let max=new Date(2023,1,15,0,0,0);
|
||||||
|
//console.log(now,min,max);
|
||||||
|
//console.log(now.getTime(),min.getTime(),max.getTime());
|
||||||
|
if(now.getTime()>min.getTime() && now.getTime()<max.getTime()){
|
||||||
|
//console.log('open')
|
||||||
|
apiYearMedal.has2023().then(rs=>{
|
||||||
|
if(rs.status==200){
|
||||||
|
if(!rs.result){
|
||||||
|
this.show=true;
|
||||||
|
apiYearMedal.save2023();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.dlg-boot{
|
||||||
|
height: 50px;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
.dlg-close{
|
||||||
|
//float: right;
|
||||||
|
//margin-top: -90px;
|
||||||
|
border: 1px solid #cccccc;
|
||||||
|
border-radius: 50%;
|
||||||
|
|
||||||
|
padding: 20px 10px 10px 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.jinian-medal-img{
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
.medalbox {
|
||||||
|
background: transparent !important;
|
||||||
|
::v-deep .el-dialog{
|
||||||
|
background: transparent !important;
|
||||||
|
box-shadow:none !important;
|
||||||
|
.el-dialog__header{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
.el-dialog__body{
|
||||||
|
// width: 320px !important;
|
||||||
|
// height: 420px !important;
|
||||||
|
background: transparent !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -124,13 +124,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<popup></popup>
|
<popup></popup><yearMedal></yearMedal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters, mapActions } from 'vuex';
|
import { mapGetters, mapActions } from 'vuex';
|
||||||
import apiMessage from '@/api/system/message.js';
|
import apiMessage from '@/api/system/message.js';
|
||||||
import popup from '@/components/AlertPopup.vue';
|
import popup from '@/components/AlertPopup.vue';
|
||||||
|
import yearMedal from '@/components/Popup/Medal2023.vue';
|
||||||
import apiBoeCourse from '@/api/boe/course.js';
|
import apiBoeCourse from '@/api/boe/course.js';
|
||||||
import {userAvatarText} from "@/utils/tools.js";
|
import {userAvatarText} from "@/utils/tools.js";
|
||||||
export default {
|
export default {
|
||||||
@@ -153,7 +154,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
components:{popup},
|
components:{popup,yearMedal},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo', 'userMsg','identity','studyTaskCount']),
|
...mapGetters(['userInfo', 'userMsg','identity','studyTaskCount']),
|
||||||
|
|
||||||
@@ -184,7 +185,7 @@ export default {
|
|||||||
//this.loadPopupConfig();
|
//this.loadPopupConfig();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
setCurIdentity(iden){
|
setCurIdentity(iden){
|
||||||
this.$store.dispatch('SetCurIdentity',iden);
|
this.$store.dispatch('SetCurIdentity',iden);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -27,9 +27,9 @@
|
|||||||
<el-menu-item index="/examine/notapproved">
|
<el-menu-item index="/examine/notapproved">
|
||||||
<span class="textl"><el-badge :value="messagesBeReviewed" class="item" :hidden="messagesBeReviewed == 0">待审核的课程</el-badge></span>
|
<span class="textl"><el-badge :value="messagesBeReviewed" class="item" :hidden="messagesBeReviewed == 0">待审核的课程</el-badge></span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item index="/examine/notapproved1">
|
<!-- <el-menu-item index="/course/opencourse/audit">
|
||||||
<span class="textl">公开课审核</span>
|
<span class="textl">公开课审核</span>
|
||||||
</el-menu-item>
|
</el-menu-item> -->
|
||||||
</el-submenu>
|
</el-submenu>
|
||||||
<el-submenu index="manageFinish" v-show="curIdentity == 3">
|
<el-submenu index="manageFinish" v-show="curIdentity == 3">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export const pages=[
|
|||||||
{title:'课程统计',path:'stat',component:'course/StatIndex',hidden:false},
|
{title:'课程统计',path:'stat',component:'course/StatIndex',hidden:false},
|
||||||
{title:'课件管理',path:'courseware',component:'course/Courseware',hidden:false},
|
{title:'课件管理',path:'courseware',component:'course/Courseware',hidden:false},
|
||||||
{title:'报名管理',path:'msignup',component:'study/ManageSignup',hidden:true},
|
{title:'报名管理',path:'msignup',component:'study/ManageSignup',hidden:true},
|
||||||
|
{title:'公开课审核',path:'opencourse/audit',component:'course/OpenCourseAudit',hidden:true},
|
||||||
]},
|
]},
|
||||||
{title:'业务管理',path:'/manage',hidden:false,children:[
|
{title:'业务管理',path:'/manage',hidden:false,children:[
|
||||||
{title:'教师管理',path:'teachers',component:'manage/TeacherList',hidden:false},
|
{title:'教师管理',path:'teachers',component:'manage/TeacherList',hidden:false},
|
||||||
|
|||||||
@@ -534,7 +534,7 @@
|
|||||||
],
|
],
|
||||||
lastStudy:{},
|
lastStudy:{},
|
||||||
overlayShow:false,
|
overlayShow:false,
|
||||||
userData: { uvalue:0, totalStudyHour:0},
|
userData: {level:1, uvalue:0, totalStudyHour:0},
|
||||||
userHobby:{
|
userHobby:{
|
||||||
needShow:false,
|
needShow:false,
|
||||||
localKeyPre:'user-hobby-' //本地存储的key
|
localKeyPre:'user-hobby-' //本地存储的key
|
||||||
|
|||||||
9
src/views/course/OpenCourseAudit.vue
Normal file
9
src/views/course/OpenCourseAudit.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<!--公开课审核-->
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user