|
|
|
@ -108,36 +108,6 @@ 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
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
bodyTab = pearTab.render({
|
|
|
|
|
elem: 'content',
|
|
|
|
|
roll: true,
|
|
|
|
@ -151,7 +121,12 @@ layui.define(['message', 'table', 'jquery', 'element', 'yaml', 'form', 'tab', 'm
|
|
|
|
|
closeEvent: function(id) {
|
|
|
|
|
sideMenu.selectItem(id);
|
|
|
|
|
},
|
|
|
|
|
data: [indexTabData],
|
|
|
|
|
data: [{
|
|
|
|
|
id: param.tab.index.id,
|
|
|
|
|
url: param.tab.index.href,
|
|
|
|
|
title: param.tab.index.title,
|
|
|
|
|
close: false
|
|
|
|
|
}],
|
|
|
|
|
success: function(id) {
|
|
|
|
|
if (param.tab.session) {
|
|
|
|
|
setTimeout(function() {
|
|
|
|
@ -181,6 +156,7 @@ layui.define(['message', 'table', 'jquery', 'element', 'yaml', 'form', 'tab', 'm
|
|
|
|
|
compatible();
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
console.log(param);
|
|
|
|
|
bodyFrame = pearFrame.render({
|
|
|
|
|
elem: 'content',
|
|
|
|
|
title: '首页',
|
|
|
|
|