main
HuangHai 3 months ago
parent eadeaba419
commit 841c8b2446

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

Loading…
Cancel
Save