11
This commit is contained in:
parent
d78ad8598f
commit
22ddc61e25
@ -64,7 +64,7 @@
|
|||||||
<dd><a class="ajax-content" href="personalsettings" data-id="conetnt">个人设置</a></dd>
|
<dd><a class="ajax-content" href="personalsettings" data-id="conetnt">个人设置</a></dd>
|
||||||
<dd><a class="ajax-content" href="projectinfo" data-id="conetnt">项目管理</a></dd>
|
<dd><a class="ajax-content" href="projectinfo" data-id="conetnt">项目管理</a></dd>
|
||||||
<dd><a href="javascript:void(0);">系统管理</a></dd>
|
<dd><a href="javascript:void(0);">系统管理</a></dd>
|
||||||
<dd><a href="javascript:void(0);">退出登录</a></dd>
|
<dd><a href="javascript:void(0);" class="sifnoutlogin">退出登录</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
56
web/src/x.min.js
vendored
56
web/src/x.min.js
vendored
@ -3962,6 +3962,10 @@ var X = window.X || {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document).off('click','.sifnoutlogin').on('click','.sifnoutlogin',function(){
|
||||||
|
X.gourl("login");
|
||||||
|
});
|
||||||
|
|
||||||
// 项目列表
|
// 项目列表
|
||||||
// http://10.0.0.7:6789/
|
// http://10.0.0.7:6789/
|
||||||
X.api("project/","get",{},function(d){
|
X.api("project/","get",{},function(d){
|
||||||
@ -4486,37 +4490,39 @@ var X = window.X || {
|
|||||||
X.api('project/kanban',"post",{"_id":id},function (d){
|
X.api('project/kanban',"post",{"_id":id},function (d){
|
||||||
X.DATA['KanBanData'] = d.kanban;
|
X.DATA['KanBanData'] = d.kanban;
|
||||||
X.DATA['ProjectData'] = d.spaces;
|
X.DATA['ProjectData'] = d.spaces;
|
||||||
if(d.spaces[0]['children'].length > 0){
|
for(let i in d.spaces){
|
||||||
if(X.DATA['dashboard_id'] == undefined || X.DATA['dashboard_id'] == ""){
|
if(d.spaces[i]['children'].length > 0){
|
||||||
for(let i in d.spaces){
|
if(X.DATA['dashboard_id'] == undefined || X.DATA['dashboard_id'] == ""){
|
||||||
for(let j in d.spaces[i]['children']){
|
for(let q in d.spaces){
|
||||||
d.spaces[i]['children'][j]['onclick'] = 0;
|
for(let j in d.spaces[q]['children']){
|
||||||
if(j == 0){
|
d.spaces[q]['children'][j]['onclick'] = 0;
|
||||||
d.spaces[i]['children'][j]['onclick'] = 1;
|
if(j == 0){
|
||||||
}
|
d.spaces[q]['children'][j]['onclick'] = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$(".tab-tit-box .tab-tit").html(d.spaces[0]['children'][0]['name']);
|
}
|
||||||
X.DATA['dashboard_id'] = d.spaces[0]['children'][0]['_id']; //看板id
|
$(".tab-tit-box .tab-tit").html(d.spaces[i]['children'][0]['name']);
|
||||||
}else {
|
X.DATA['dashboard_id'] = d.spaces[i]['children'][0]['_id']; //看板id
|
||||||
for(let i in d.spaces){
|
}else {
|
||||||
for(let j in d.spaces[i]['children']){
|
for(let q in d.spaces){
|
||||||
d.spaces[i]['children'][j]['onclick'] = 0;
|
for(let j in d.spaces[q]['children']){
|
||||||
if(d.spaces[i]['children'][j]['_id'] == X.DATA['dashboard_id']){
|
d.spaces[q]['children'][j]['onclick'] = 0;
|
||||||
d.spaces[i]['children'][j]['onclick'] = 1;
|
if(d.spaces[q]['children'][j]['_id'] == X.DATA['dashboard_id']){
|
||||||
$(".tab-tit-box .tab-tit").html(d.spaces[i]['children'][j]['name']);
|
d.spaces[q]['children'][j]['onclick'] = 1;
|
||||||
|
$(".tab-tit-box .tab-tit").html(d.spaces[q]['children'][j]['name']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
X.laytpldata('#mykanban-dot',d.kanban,'#mykanban');
|
||||||
|
X.laytpldata('#kongjian-dot',d.spaces,'#kongjian');
|
||||||
|
$("#model-box").html("");
|
||||||
|
// 获取报表数据
|
||||||
|
X.pageLogic['dashboard'].gettabledata();
|
||||||
|
break;//终止循环
|
||||||
}
|
}
|
||||||
X.laytpldata('#mykanban-dot',d.kanban,'#mykanban');
|
|
||||||
X.laytpldata('#kongjian-dot',d.spaces,'#kongjian');
|
|
||||||
$("#model-box").html("");
|
|
||||||
// 获取报表数据
|
|
||||||
X.pageLogic['dashboard'].gettabledata();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// var updateOutput = function(e){
|
// var updateOutput = function(e){
|
||||||
|
|
||||||
// var list = e.length ? e : $(e.target),
|
// var list = e.length ? e : $(e.target),
|
||||||
|
@ -17,6 +17,11 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 退出登录
|
||||||
|
$(document).off('click','.sifnoutlogin').on('click','.sifnoutlogin',function(){
|
||||||
|
X.gourl("login");
|
||||||
|
});
|
||||||
|
|
||||||
// 项目列表
|
// 项目列表
|
||||||
// http://10.0.0.7:6789/
|
// http://10.0.0.7:6789/
|
||||||
X.api("project/","get",{},function(d){
|
X.api("project/","get",{},function(d){
|
||||||
@ -541,37 +546,39 @@
|
|||||||
X.api('project/kanban',"post",{"_id":id},function (d){
|
X.api('project/kanban',"post",{"_id":id},function (d){
|
||||||
X.DATA['KanBanData'] = d.kanban;
|
X.DATA['KanBanData'] = d.kanban;
|
||||||
X.DATA['ProjectData'] = d.spaces;
|
X.DATA['ProjectData'] = d.spaces;
|
||||||
if(d.spaces[0]['children'].length > 0){
|
for(let i in d.spaces){
|
||||||
if(X.DATA['dashboard_id'] == undefined || X.DATA['dashboard_id'] == ""){
|
if(d.spaces[i]['children'].length > 0){
|
||||||
for(let i in d.spaces){
|
if(X.DATA['dashboard_id'] == undefined || X.DATA['dashboard_id'] == ""){
|
||||||
for(let j in d.spaces[i]['children']){
|
for(let q in d.spaces){
|
||||||
d.spaces[i]['children'][j]['onclick'] = 0;
|
for(let j in d.spaces[q]['children']){
|
||||||
if(j == 0){
|
d.spaces[q]['children'][j]['onclick'] = 0;
|
||||||
d.spaces[i]['children'][j]['onclick'] = 1;
|
if(j == 0){
|
||||||
}
|
d.spaces[q]['children'][j]['onclick'] = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$(".tab-tit-box .tab-tit").html(d.spaces[0]['children'][0]['name']);
|
}
|
||||||
X.DATA['dashboard_id'] = d.spaces[0]['children'][0]['_id']; //看板id
|
$(".tab-tit-box .tab-tit").html(d.spaces[i]['children'][0]['name']);
|
||||||
}else {
|
X.DATA['dashboard_id'] = d.spaces[i]['children'][0]['_id']; //看板id
|
||||||
for(let i in d.spaces){
|
}else {
|
||||||
for(let j in d.spaces[i]['children']){
|
for(let q in d.spaces){
|
||||||
d.spaces[i]['children'][j]['onclick'] = 0;
|
for(let j in d.spaces[q]['children']){
|
||||||
if(d.spaces[i]['children'][j]['_id'] == X.DATA['dashboard_id']){
|
d.spaces[q]['children'][j]['onclick'] = 0;
|
||||||
d.spaces[i]['children'][j]['onclick'] = 1;
|
if(d.spaces[q]['children'][j]['_id'] == X.DATA['dashboard_id']){
|
||||||
$(".tab-tit-box .tab-tit").html(d.spaces[i]['children'][j]['name']);
|
d.spaces[q]['children'][j]['onclick'] = 1;
|
||||||
|
$(".tab-tit-box .tab-tit").html(d.spaces[q]['children'][j]['name']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
X.laytpldata('#mykanban-dot',d.kanban,'#mykanban');
|
||||||
|
X.laytpldata('#kongjian-dot',d.spaces,'#kongjian');
|
||||||
|
$("#model-box").html("");
|
||||||
|
// 获取报表数据
|
||||||
|
X.pageLogic['dashboard'].gettabledata();
|
||||||
|
break;//终止循环
|
||||||
}
|
}
|
||||||
X.laytpldata('#mykanban-dot',d.kanban,'#mykanban');
|
|
||||||
X.laytpldata('#kongjian-dot',d.spaces,'#kongjian');
|
|
||||||
$("#model-box").html("");
|
|
||||||
// 获取报表数据
|
|
||||||
X.pageLogic['dashboard'].gettabledata();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// var updateOutput = function(e){
|
// var updateOutput = function(e){
|
||||||
|
|
||||||
// var list = e.length ? e : $(e.target),
|
// var list = e.length ? e : $(e.target),
|
||||||
|
Loading…
Reference in New Issue
Block a user