|
@@ -38,6 +38,7 @@ interface Technology {
|
|
|
site: string;
|
|
|
icon: string;
|
|
|
iconColor?: string;
|
|
|
+ manager?: boolean;
|
|
|
}
|
|
|
const app = useAppStore();
|
|
|
const theme = useThemeStore();
|
|
@@ -49,7 +50,8 @@ const technology: Technology[] = [
|
|
|
author: '课程周历',
|
|
|
site: '/lesson/schedule',
|
|
|
icon: 'radix-icons:calendar',
|
|
|
- iconColor: getRandomColor()
|
|
|
+ iconColor: getRandomColor(),
|
|
|
+ manager: false
|
|
|
},
|
|
|
{
|
|
|
id: 1,
|
|
@@ -58,7 +60,8 @@ const technology: Technology[] = [
|
|
|
author: '课程日历',
|
|
|
site: '/lesson/calendar',
|
|
|
icon: 'healthicons:i-schedule-school-date-time',
|
|
|
- iconColor: getRandomColor()
|
|
|
+ iconColor: getRandomColor(),
|
|
|
+ manager: false
|
|
|
},
|
|
|
{
|
|
|
id: 2,
|
|
@@ -67,7 +70,8 @@ const technology: Technology[] = [
|
|
|
author: '考勤列表',
|
|
|
site: '/lesson/attendance',
|
|
|
icon: 'mdi:sign',
|
|
|
- iconColor: getRandomColor()
|
|
|
+ iconColor: getRandomColor(),
|
|
|
+ manager: false
|
|
|
},
|
|
|
{
|
|
|
id: 3,
|
|
@@ -76,7 +80,8 @@ const technology: Technology[] = [
|
|
|
author: '科目考试',
|
|
|
site: '/lesson/score',
|
|
|
icon: 'healthicons:i-exam-qualification-outline',
|
|
|
- iconColor: getRandomColor()
|
|
|
+ iconColor: getRandomColor(),
|
|
|
+ manager: false
|
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
@@ -85,7 +90,8 @@ const technology: Technology[] = [
|
|
|
author: '查看学员',
|
|
|
site: '/system/student',
|
|
|
icon: 'icons8:student',
|
|
|
- iconColor: getRandomColor()
|
|
|
+ iconColor: getRandomColor(),
|
|
|
+ manager: true
|
|
|
},
|
|
|
{
|
|
|
id: 5,
|
|
@@ -94,7 +100,8 @@ const technology: Technology[] = [
|
|
|
author: '教学科目',
|
|
|
site: '/system/subject',
|
|
|
icon: 'material-symbols:route',
|
|
|
- iconColor: getRandomColor()
|
|
|
+ iconColor: getRandomColor(),
|
|
|
+ manager: true
|
|
|
}
|
|
|
];
|
|
|
|
|
@@ -110,11 +117,26 @@ interface Shortcuts {
|
|
|
icon: string;
|
|
|
iconColor: string;
|
|
|
siteOrfunc: string | callback;
|
|
|
+ manager: boolean;
|
|
|
}
|
|
|
|
|
|
const shortcuts: Shortcuts[] = [
|
|
|
- { id: 0, label: '查档案', icon: 'icons8:student', iconColor: '#409eff', siteOrfunc: '/archives/students' },
|
|
|
- { id: 2, label: '查班级', icon: 'arcticons:classroom', iconColor: '#f56c6c', siteOrfunc: '/group/group' },
|
|
|
+ {
|
|
|
+ id: 0,
|
|
|
+ label: '查档案',
|
|
|
+ icon: 'icons8:student',
|
|
|
+ iconColor: '#409eff',
|
|
|
+ siteOrfunc: '/archives/students',
|
|
|
+ manager: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 2,
|
|
|
+ label: '查班级',
|
|
|
+ icon: 'arcticons:classroom',
|
|
|
+ iconColor: '#f56c6c',
|
|
|
+ siteOrfunc: '/group/group',
|
|
|
+ manager: true
|
|
|
+ },
|
|
|
{
|
|
|
id: 1,
|
|
|
label: '个性化',
|
|
@@ -122,9 +144,17 @@ const shortcuts: Shortcuts[] = [
|
|
|
iconColor: '#7238d1',
|
|
|
siteOrfunc: () => {
|
|
|
app.toggleSettingDrawerVisible();
|
|
|
- }
|
|
|
+ },
|
|
|
+ manager: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 3,
|
|
|
+ label: '改密码',
|
|
|
+ icon: 'teenyicons:password-solid',
|
|
|
+ iconColor: '#19a2f1',
|
|
|
+ siteOrfunc: '/system/profile',
|
|
|
+ manager: false
|
|
|
},
|
|
|
- { id: 3, label: '改密码', icon: 'teenyicons:password-solid', iconColor: '#19a2f1', siteOrfunc: '/system/profile' },
|
|
|
{
|
|
|
id: 4,
|
|
|
label: '切主题',
|
|
@@ -132,9 +162,10 @@ const shortcuts: Shortcuts[] = [
|
|
|
iconColor: '#fab251',
|
|
|
siteOrfunc: () => {
|
|
|
theme.setDarkMode(!theme.darkMode);
|
|
|
- }
|
|
|
+ },
|
|
|
+ manager: false
|
|
|
},
|
|
|
- { id: 5, label: '说明', icon: 'gg:readme', iconColor: '#8aca6b', siteOrfunc: '/about' }
|
|
|
+ { id: 5, label: '说明', icon: 'gg:readme', iconColor: '#8aca6b', siteOrfunc: '/about', manager: true }
|
|
|
];
|
|
|
</script>
|
|
|
|