前端:
this.getContext().getAllRoles() 获取角色ID
//Model.prototype.mainDataCreate = function(event){
//创建数据时,过滤部门
//this.comp("mainData").setFilter("glbm", "fCJDEPT='"+this.getContext().getCurrentDeptName()+"'");
//this.comp("mainData").refreshData();