|
@@ -24,25 +24,12 @@ const images = [
|
|
|
// img_banner1,
|
|
|
img_banner2,
|
|
|
];
|
|
|
-
|
|
|
+let itemRoute = $ref('');
|
|
|
const gridList = [
|
|
|
{ icon: img_djzl, text: '党建专栏', to: () => '/djzl' },
|
|
|
{ icon: img_qzzx, text: '求真在线', to: () => '/qzzx' },
|
|
|
{ icon: img_xskt, text: '线上课堂', to: () => '' },
|
|
|
- {
|
|
|
- icon: img_stxk, text: '社团选课',
|
|
|
- to: () => {
|
|
|
- switch (user._role) {
|
|
|
- case 'jz':
|
|
|
- return '/stxk/jz'
|
|
|
- case 'js':
|
|
|
- return '/stxk_teacher'
|
|
|
- case 'xz':
|
|
|
- return '/stxkjsd'
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- },
|
|
|
+ {icon: img_stxk, text: '社团选课', to: () =>itemRoute},
|
|
|
{ icon: img_jscz, text: '教师成长', to: () => '/jscz', permission: ['js', 'xz'].includes(user._role) },
|
|
|
{ icon: img_yshd, text: '云尚活动', to: () => '' },
|
|
|
{ icon: img_xzxx, text: '校长信箱', to: () => '' },
|
|
@@ -88,14 +75,31 @@ function handleClickCard(row) {
|
|
|
function register() {
|
|
|
router.push('/zcdl');
|
|
|
}
|
|
|
+
|
|
|
function gridHandle(item) {
|
|
|
+ console.log(item);
|
|
|
if (
|
|
|
item.text == '线上课堂' ||
|
|
|
item.text == '云尚活动' ||
|
|
|
item.text == '校长信箱')
|
|
|
{
|
|
|
showToast('该模块正在开发中~');
|
|
|
+ };
|
|
|
+ if (item.text == '社团选课') {
|
|
|
+ if (user._role=='others') {
|
|
|
+ window.open('https://nmlm.bozedu.net/login.html?redirect=/stxk','_self')
|
|
|
+ } else {
|
|
|
+ switch (user._role) {
|
|
|
+ case 'jz':
|
|
|
+ return itemRoute = '/stxk/jz'
|
|
|
+ case 'js':
|
|
|
+ return itemRoute = '/stxk_teacher'
|
|
|
+ case 'xz':
|
|
|
+ return itemRoute = '/stxkjsd'
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
function routerLink() {
|
|
|
if (notice.ni_type == '1') {
|