|
|
|
@ -109,34 +109,34 @@ layui.define(['message', 'table', 'jquery', 'element', 'yaml', 'form', 'tab', 'm
|
|
|
|
|
if (isMuiltTab(param) === "true" || isMuiltTab(param) === true) {
|
|
|
|
|
|
|
|
|
|
var indexTabData = {};
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "GET",
|
|
|
|
|
url: "/dsBase/gtzz/getWhiceRole",
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (res) {
|
|
|
|
|
var indexHref = 'html/pages/welcome.html';
|
|
|
|
|
var _id = "indexPage";
|
|
|
|
|
|
|
|
|
|
if (param.other.report) {
|
|
|
|
|
indexHref = 'view/tb/school/task_list_p.html?is_finish=0';
|
|
|
|
|
_id = "10";
|
|
|
|
|
} else {
|
|
|
|
|
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';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
indexTabData = {
|
|
|
|
|
id: _id,
|
|
|
|
|
url: indexHref,
|
|
|
|
|
title: param.tab.index.title,
|
|
|
|
|
close: false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// $.ajax({
|
|
|
|
|
// type: "GET",
|
|
|
|
|
// url: "/dsBase/gtzz/getWhiceRole",
|
|
|
|
|
// async: false,
|
|
|
|
|
// success: function (res) {
|
|
|
|
|
// var indexHref = 'html/pages/welcome.html';
|
|
|
|
|
// var _id = "indexPage";
|
|
|
|
|
//
|
|
|
|
|
// if (param.other.report) {
|
|
|
|
|
// indexHref = 'view/tb/school/task_list_p.html?is_finish=0';
|
|
|
|
|
// _id = "10";
|
|
|
|
|
// } else {
|
|
|
|
|
// 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';
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// indexTabData = {
|
|
|
|
|
// id: _id,
|
|
|
|
|
// url: indexHref,
|
|
|
|
|
// title: param.tab.index.title,
|
|
|
|
|
// close: false
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
bodyTab = pearTab.render({
|
|
|
|
|
elem: 'content',
|
|
|
|
|