|
@@ -213,6 +213,7 @@ import bgImg1 from "/images/home/live-2.png";
|
|
|
import bgImg2 from "/images/home/live-3.png";
|
|
|
import 'swiper/css/swiper.css';
|
|
|
import Swiper from 'swiper';
|
|
|
+import {ElMessage} from "element-plus";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -347,63 +348,86 @@ export default {
|
|
|
this.curMenu = item;
|
|
|
},
|
|
|
toTeacher() {
|
|
|
- this.$router.push({name: 'resource'});
|
|
|
+ if(!user) {
|
|
|
+ ElMessage.warning(`请先登录!`);
|
|
|
+ } else {
|
|
|
+ this.$router.push({name: 'resource'});
|
|
|
+ }
|
|
|
+
|
|
|
// localStorage.setItem('curNav', 'resource');
|
|
|
},
|
|
|
toLive(type) {
|
|
|
+ if(!user) {
|
|
|
+ ElMessage.warning(`请先登录!`);
|
|
|
+ } else {
|
|
|
switch (type) {
|
|
|
- case 1:
|
|
|
- if (user.user_role_id < 76) {
|
|
|
- this.$router.push({name: 'ssys'});
|
|
|
- }
|
|
|
+ case 1:
|
|
|
+ if (user.user_role_id < 76) {
|
|
|
+ this.$router.push({name: 'ssys'});
|
|
|
+ } else{
|
|
|
+ ElMessage.warning(`您暂无权限!`);
|
|
|
+ }
|
|
|
|
|
|
- // localStorage.setItem('curNav', 'zbkt');
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- this.$router.push({name: 'wlzb'});
|
|
|
- // localStorage.setItem('curNav', 'zbkt');
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- this.$router.push({name: 'ztzb'});
|
|
|
- // localStorage.setItem('curNav', 'zbkt');
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- if (user.user_role_id < 76) {
|
|
|
- this.$router.push({name: 'zhjy_zhjyzxxx'});
|
|
|
- }
|
|
|
+ // localStorage.setItem('curNav', 'zbkt');
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ this.$router.push({name: 'wlzb'});
|
|
|
+ // localStorage.setItem('curNav', 'zbkt');
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ this.$router.push({name: 'ztzb'});
|
|
|
+ // localStorage.setItem('curNav', 'zbkt');
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ if (user.user_role_id < 76) {
|
|
|
+ this.$router.push({name: 'zhjy_zhjyzxxx'});
|
|
|
+ } else{
|
|
|
+ ElMessage.warning(`您暂无权限!`);
|
|
|
+ }
|
|
|
|
|
|
- // localStorage.setItem('curNav', 'zhjy');
|
|
|
- break;
|
|
|
- case 5:
|
|
|
- if (user.user_role_id < 76) {
|
|
|
- this.$router.push({name: 'zhjy_zhjyxtbk'});
|
|
|
- }
|
|
|
+ // localStorage.setItem('curNav', 'zhjy');
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ if (user.user_role_id < 76) {
|
|
|
+ this.$router.push({name: 'zhjy_zhjyxtbk'});
|
|
|
+ } else {
|
|
|
+ ElMessage.warning(`您暂无权限!`);
|
|
|
+ }
|
|
|
|
|
|
- // localStorage.setItem('curNav', 'zbkt');
|
|
|
- break;
|
|
|
- case 6:
|
|
|
- if (user.user_role_id < 76) {
|
|
|
- this.$router.push({name: 'zhjy_zhjytbjy'});
|
|
|
- }
|
|
|
+ // localStorage.setItem('curNav', 'zbkt');
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ if (user.user_role_id < 76) {
|
|
|
+ this.$router.push({name: 'zhjy_zhjytbjy'});
|
|
|
+ } else {
|
|
|
+ ElMessage.warning(`您暂无权限!`);
|
|
|
+ }
|
|
|
|
|
|
- // localStorage.setItem('curNav', 'zbkt');
|
|
|
- break;
|
|
|
- case 7:
|
|
|
- this.$router.push({name: 'ysgc'});
|
|
|
- // localStorage.setItem('curNav', 'zbkt');
|
|
|
- break;
|
|
|
- case 8:
|
|
|
- this.$router.push({name: 'szmsg'});
|
|
|
- // localStorage.setItem('curNav', 'zbkt');
|
|
|
- break;
|
|
|
+ // localStorage.setItem('curNav', 'zbkt');
|
|
|
+ break;
|
|
|
+ case 7:
|
|
|
+ this.$router.push({name: 'ysgc'});
|
|
|
+ // localStorage.setItem('curNav', 'zbkt');
|
|
|
+ break;
|
|
|
+ case 8:
|
|
|
+ this.$router.push({name: 'szmsg'});
|
|
|
+ // localStorage.setItem('curNav', 'zbkt');
|
|
|
+ break;
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
lookDetail(id, type) {
|
|
|
+ if(!user) {
|
|
|
+ ElMessage.warning(`请先登录!`);
|
|
|
+ } else {
|
|
|
if (type == 1) {
|
|
|
- this.$router.push({name: "ysgc_stuDetail", params: {id: id}});
|
|
|
+ this.$router.push({name: "ysgc_stuDetail", params: {id: id}});
|
|
|
} else if (type == 2) {
|
|
|
- this.$router.push({name: "ysgc_jsDetail", params: {id: id}});
|
|
|
+ this.$router.push({name: "ysgc_jsDetail", params: {id: id}});
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
initXSData() {
|
|
|
request({
|
|
@@ -638,7 +662,7 @@ export default {
|
|
|
right: 0;
|
|
|
top: 0;
|
|
|
z-index: 30;
|
|
|
- width: 137px;
|
|
|
+ width: 145px;
|
|
|
height: 27px;
|
|
|
background: rgba(0, 0, 0, 0.59);
|
|
|
border-radius: 0 10px 0 10px;
|