|
|
|
@ -114,17 +114,18 @@ layui.define(['message', 'table', 'jquery', 'element', 'yaml', 'form', 'tab', 'm
|
|
|
|
|
url: "/QingLong/gtzz/getWhiceRole",
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res)
|
|
|
|
|
var indexHref = 'html/pages/welcome.html';
|
|
|
|
|
var _id = "indexPage";
|
|
|
|
|
if (res.role_id == 232) {
|
|
|
|
|
indexHref = 'html/pages/projectManagement/zbzx/index.html';
|
|
|
|
|
} else if (res.role_id == 234 || res.role_id === 243) {
|
|
|
|
|
indexHref = 'html/pages/projectManagement/xx/index.html';
|
|
|
|
|
} else if (res.role_id == 0) {
|
|
|
|
|
indexHref = 'view/tb/school/task_list_p.html?is_finish=0';
|
|
|
|
|
_id = "10";
|
|
|
|
|
}
|
|
|
|
|
indexTabData = {
|
|
|
|
|
id: 'indexPage',
|
|
|
|
|
id: _id,
|
|
|
|
|
url: indexHref,
|
|
|
|
|
title: param.tab.index.title,
|
|
|
|
|
close: false
|
|
|
|
|