All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.modules.sys.deptuserinfo.ctrl.deptuserinfo.js Maven / Gradle / Ivy

There is a newer version: 5.0.2101
Show newest version
define(function (require) {
  var Config = require('config');
  var Cache = require('core/cache');
  var UserInfo = require('modules/sys/userinfo/ctrl/userinfo');

  // 角色信息列表
  return UserInfo.extend(function () {
    var loginUser = Cache.get('loginuser');

    this.queryUserUrl = Config.ContextPath + "system/unitinfo/currentunit/users";

    // 修改用户角色链接
    this.queryRoleUrl = 'system/roleinfo/listRoles/D';

    this.userInfoRoles = Config.ContextPath + 'system/userrole/usercurrentroles/{{userCode}}';

    // 修改用户机构下拉框初始化
    this.initUnitCombotree = function (input) {
      input.combotree({
        url: 'system/unitinfo/subunits'
      });
    };
  });

});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy