您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

users.controller.js 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. angular.module('luticate')
  2. .controller('UsersController', ['$scope', 'luticateAuthUsers', 'luticateAuthCache',
  3. function($scope, luticateAuthUsers, luticateAuthCache) {
  4. $scope.luTable = {
  5. columns: [
  6. {
  7. name: "Username",
  8. width: 3,
  9. getValue: function (item) {
  10. return item.Username;
  11. }
  12. }, {
  13. name: "Email",
  14. width: 3,
  15. getValue: function (item) {
  16. return item.Email;
  17. }
  18. }, {
  19. name: "Firstname",
  20. width: 3,
  21. getValue: function (item) {
  22. return item.Firstname;
  23. }
  24. }, {
  25. name: "Lastname",
  26. width: 3,
  27. getValue: function (item) {
  28. return item.Lastname;
  29. }
  30. }
  31. ],
  32. canAdd: 'LU_USER_ADD',
  33. canDel: 'LU_USER_DEL',
  34. canEdit: function()
  35. {
  36. return true;
  37. },
  38. getLoadPagePromise: function (page, perPage, query, promise) {
  39. return luticateAuthUsers.getAll({page: page, perPage: perPage, query: query}, promise);
  40. },
  41. getDelPromise: function (id, promise) {
  42. return luticateAuthUsers.del({user_id: id}, promise);
  43. },
  44. getEditController: function () {
  45. return "UserEdit";
  46. },
  47. perPage: luticateAuthCache.getEffectiveSettingValue("LU_USERS_PER_PAGE")
  48. };
  49. }]);