发表于: 2017-05-24 21:10:45

1 987


今天完成的事情:

角色编辑/新增的数据请求下来了,但是不知道怎么ng-repeat,打算今天再看一下

明天计划的事情:

解决bug

遇到的问题:

不知道出现二级、三级联动时怎么把数据ng-repeat到页面中

收获:

终于弄懂了模块个角色权限之间的逻辑

getData.getmodulelist(params).then(function(response){

console.log(response);

var str="ids="+response.data.ids.join("&ids=");

getData.getmoduleinfo(str).then(function(res){

console.log(res.data.moduleList);

getData.getrole(params,id).then(function(response){

console.log(response);

vm.role=response.data.role;

})

})

})}

if ($stateParams.id!==null) {

vm.role(params,$stateParams.id);

}else{

vm.role(params,'');

}



返回列表 返回列表
评论

    分享到