Merge branch 'master' of http://git.legu.cc/leguadmin/xfrontend
This commit is contained in:
commit
063ca69d86
17
web/src/x.min.js
vendored
17
web/src/x.min.js
vendored
@ -6696,14 +6696,17 @@ 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.length > 0){
|
for(let i in d.spaces){
|
||||||
X.DATA.authority = d.spaces[0]['authority'];
|
if(d.spaces[i]['children'].length > 0){
|
||||||
if(d.spaces[0]['authority'] == "rw" && d.spaces[0]['children'][0]['user_id'] == X.DATA['userinfo']['userid']){
|
if(d.spaces[i]['authority'] == "rw" && d.spaces[i]['children'][i]['user_id'] == X.DATA['userinfo']['userid']){
|
||||||
$(".baobiao").show();
|
$(".baobiao").show();
|
||||||
}else{
|
continue;
|
||||||
$(".baobiao").hide();
|
}else{
|
||||||
|
$(".baobiao").hide();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for(let i in d.spaces){
|
for(let i in d.spaces){
|
||||||
if(d.spaces[i]['children'].length > 0){
|
if(d.spaces[i]['children'].length > 0){
|
||||||
|
Loading…
Reference in New Issue
Block a user