123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import store from '@/store';
- const colorMatching = [
- {
- main: '#3479FF',
- background: 'rgba(52, 121, 255, 0.05)',
- border: 'rgba(52, 121, 255, 0.15)'
- },
- {
- main: '#754BEE',
- background: 'rgba(117, 75, 238, 0.05)',
- border: 'rgba(117, 75, 238, 0.15)'
- },
- {
- main: '#FF7134',
- background: 'rgba(255, 52, 52, 0.05)',
- border: 'rgba(255, 52, 52, 0.15)'
- },
- {
- main: '#56BD05',
- background: 'rgba(86, 189, 5, 0.05)',
- border: 'rgba(86, 189, 5, 0.15)'
- },
- {
- main: '#00BD84',
- background: 'rgba(0, 189, 132, 0.05)',
- border: 'rgba(0, 189, 132, 0.15)'
- },
- {
- main: '#DF339A',
- background: 'rgba(223, 51, 154, 0.05)',
- border: 'rgba(223, 51, 154, 0.15)'
- },
- {
- main: '#CF7B18',
- background: 'rgba(207, 123, 24, 0.05)',
- border: 'rgba(207, 123, 24, 0.15)'
- }
- ];
- const buttonColorList = ['#f90', '#00CD8F', '#63A1FF'];
- function getMenuList() {
- let popedom_code_list = store.state.user.popedom_code_list;
- let isStudent = store.state.user.user_type === 'STUDENT';
- return [
- {
- name: 'Key289',
- tab: 'TaskList',
- isShow: isStudent || popedom_code_list.includes(2000001)
- },
- {
- name: 'Key215',
- tab: 'CurriculaList',
- isShow: isStudent || popedom_code_list.includes(2000001)
- },
- {
- name: 'Key290',
- tab: 'TemplateList',
- isShow: !isStudent && popedom_code_list.includes(2000002)
- }
- ];
- }
- export { colorMatching, getMenuList, buttonColorList };
|