| | |
| | | <div style="width: 100%;height: 60px;"></div> |
| | | <el-menu |
| | | class="el-menu-vertical-demo" |
| | | :unique-opened="false" |
| | | :unique-opened="true" |
| | | :default-active="defaultActive" |
| | | @select ="menuSelect" |
| | | @open ="menuSelect" |
| | |
| | | <el-container> |
| | | <el-header style="text-align: right; font-size: 15px;padding-right: 40px;"> |
| | | <i class="el-icon-user-solid"></i> |
| | | <span>admin</span> |
| | | <span>{{userName}}</span> |
| | | <el-button size="small" type="primary" @click="Cancel">退 出</el-button> |
| | | </el-header> |
| | | |
| | |
| | | }, |
| | | created() { |
| | | let userId_ = localStorage.getItem('userId'); |
| | | this.userName = localStorage.getItem('userName'); |
| | | let departId = localStorage.getItem('departId'); |
| | | if (!userId_ || !departId) { |
| | | this.$router.push('/login'); |
| | |
| | | let type; |
| | | if(departId == "100" || departId == "500") { |
| | | type = departId; |
| | | localStorage.setItem('assign', false); |
| | | }else { |
| | | type = "all"; |
| | | localStorage.setItem('assign', true); |
| | | } |
| | | |
| | | this.getMenu(type); |
| | |
| | | {'id': "110", 'title': "首页", 'path': "mine"}, //返回的数组字段 |
| | | {'id': "111", 'title': "项目管理", 'path': "0_111"}, //返回的数组字段 |
| | | {'id': "112", 'title': "任务管理", 'path': "0_112"}, |
| | | {'id': "113", 'title': "财务管理", 'path': "0_113"}, |
| | | {'id': "111_1", 'title': "信息广场", 'path': 'square', 'parentId': "111"}, // |
| | | {'id': "111_2", 'title': "项目总览", 'path': 'list', 'parentId': "111"}, // |
| | | {'id': "111_3", 'title': "项目分析", 'path': 'Overview', 'parentId': "111"}, // |
| | | {'id': "111_4", 'title': "归档报告", 'path': 'project4', 'parentId': "111"}, // |
| | | // {'id': "111_4", 'title': "归档报告", 'path': 'project4', 'parentId': "111"}, // |
| | | {'id': "112_1", 'title': "任务列表", 'path': 'calendarTask', 'parentId': "112"}, // |
| | | |
| | | {'id': "113_1", 'title': "实际支付费用", 'path': 'actualPayment', 'parentId': "113"}, // |
| | | {'id': "113_2", 'title': "合同完成统计", 'path': 'completeStatistics', 'parentId': "113"}, // |
| | | {'id': "113_3", 'title': "兼职支付确认", 'path': 'partTimeExpenses', 'parentId': "113"}, // |
| | | // {'id': "113_4", 'title': "成本核算", 'path': 'costAccounting', 'parentId': "113"}, // |
| | | {'id': "113_5", 'title': "已回款统计", 'path': 'collectionStatistics', 'parentId': "113"}, // |
| | | ], |
| | | 100: [ |
| | | {'id': "110", 'title': "首页", 'path': "mine"}, //返回的数组字段 |
| | |
| | | |
| | | Cancel() { |
| | | this.$router.push('/login'); |
| | | localStorage.setItem('userId', undefined); |
| | | }, |
| | | menuSelect(index, a){ |
| | | let isPage = index.substring(0,2); |