SettingBase.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. MWF.xDesktop.requireApp("Setting", "Document", null, false);
  2. MWF.xApplication.Setting.BaseNameDocument = new Class({
  3. Extends: MWF.xApplication.Setting.Document
  4. });
  5. MWF.xApplication.Setting.BasePersonDocument = new Class({
  6. Extends: MWF.xApplication.Setting.Document,
  7. load: function(){
  8. this.node = new Element("div", {"styles": {"overflow": "hidden", "padding-bottom": "80px"}}).inject(this.contentAreaNode);
  9. this.titleName = new Element("div", {"styles": this.explorer.css.explorerContentTitleNode}).inject(this.node);
  10. this.titleName.set("text", this.lp.base_personSetting);
  11. this.baseUserPasswordInput = new MWF.xApplication.Setting.Document.Input(this.explorer, this.node, {
  12. "lp": {"title": this.lp.base_UserPassword, "infor": this.lp.base_UserPassword_infor, "action": this.lp.base_UserPassword_action},
  13. "data": {"key": "personData", "valueKey": "password", "notEmpty": true, "infor": this.lp.base_UserPassword_empty },
  14. "value": this.explorer.personData.password
  15. });
  16. this.basePasswordPeriodInput = new MWF.xApplication.Setting.Document.Input(this.explorer, this.node, {
  17. "lp": {"title": this.lp.base_passwordPeriod, "infor": this.lp.base_passwordPeriod_infor, "action": this.lp.base_passwordPeriod_action},
  18. "data": {"key": "personData", "valueKey": "passwordPeriod", "notEmpty": false},
  19. "value": this.explorer.personData.passwordPeriod
  20. });
  21. this.baseAdminPasswordInput = new MWF.xApplication.Setting.Document.Input(this.explorer, this.node, {
  22. "lp": {"title": this.lp.base_adminPassword, "infor": this.lp.base_adminPassword_infor, "action": this.lp.base_adminPassword_action},
  23. "data": {"key": "tokenData", "valueKey": "password", "notEmpty": false},
  24. "value": this.explorer.tokenData.password
  25. });
  26. }
  27. });
  28. MWF.xApplication.Setting.BaseLoginDocument = new Class({
  29. Extends: MWF.xApplication.Setting.Document,
  30. load: function(){
  31. this.node = new Element("div", {"styles": {"overflow": "hidden", "padding-bottom": "80px"}}).inject(this.contentAreaNode);
  32. this.titleName = new Element("div", {"styles": this.explorer.css.explorerContentTitleNode}).inject(this.node);
  33. this.titleName.set("text", this.lp.base_loginSetting);
  34. this.baseCodeLoginInput = new MWF.xApplication.Setting.Document.Check(this.explorer, this.node, {
  35. "lp": {"title": this.lp.base_codeLogin, "infor": this.lp.base_codeLogin_infor, "action": this.lp.base_codeLogin_action},
  36. "data": {"key": "personData", "valueKey": "codeLogin", "notEmpty": false },
  37. "value": this.explorer.personData.codeLogin
  38. });
  39. this.baseBindLoginInput = new MWF.xApplication.Setting.Document.Check(this.explorer, this.node, {
  40. "lp": {"title": this.lp.base_bindLogin, "infor": this.lp.base_bindLogin_infor, "action": this.lp.base_bindLogin_action},
  41. "data": {"key": "personData", "valueKey": "bindLogin", "notEmpty": false },
  42. "value": this.explorer.personData.bindLogin
  43. });
  44. this.baseFaceLoginInput = new MWF.xApplication.Setting.Document.Check(this.explorer, this.node, {
  45. "lp": {"title": this.lp.base_faceLogin, "infor": this.lp.base_faceLogin_infor, "action": this.lp.base_faceLogin_action},
  46. "data": {"key": "personData", "valueKey": "faceLogin", "notEmpty": false },
  47. "value": this.explorer.personData.faceLogin
  48. });
  49. this.baseRegisterInput = new MWF.xApplication.Setting.Document.Select(this.explorer, this.node, {
  50. "lp": {"title": this.lp.base_register, "infor": this.lp.base_register_infor, "action": this.lp.base_register_action},
  51. "data": {"key": "personData", "valueKey": "register", "notEmpty": false },
  52. "value": this.explorer.personData.register,
  53. "options": [{"value": "disable", "text": this.lp.register_disable}, {"value": "captcha", "text": this.lp.register_captcha}, {"value": "code", "text": this.lp.register_code}]
  54. });
  55. }
  56. });
  57. MWF.xApplication.Setting.BaseSSODocument = new Class({
  58. Extends: MWF.xApplication.Setting.Document,
  59. load: function(){
  60. this.node = new Element("div", {"styles": {"overflow": "hidden", "padding-bottom": "80px"}}).inject(this.contentAreaNode);
  61. this.titleName = new Element("div", {"styles": this.explorer.css.explorerContentTitleNode}).inject(this.node);
  62. this.titleName.set("text", this.lp.base_ssoSetting);
  63. this.baseSSOInput = new MWF.xApplication.Setting.Document.List(this.explorer, this.node, {
  64. "lp": {"title": this.lp.base_ssos, "infor": this.lp.base_sso_infor, "action": this.lp.base_sso_action, "editAction": this.lp.base_sso_editAction},
  65. "data": {"key": "tokenData", "valueKey": "ssos", "notEmpty": false },
  66. "value": this.explorer.tokenData.ssos,
  67. "itemTitle": "{client}",
  68. "addItem": {"client": "", "key": ""},
  69. "icon": "sso.png"
  70. });
  71. this.baseOauthsInput = new MWF.xApplication.Setting.Document.List(this.explorer, this.node, {
  72. "lp": {"title": this.lp.base_oauths, "infor": this.lp.base_oauths_infor, "action": this.lp.base_oauths_action, "editAction": this.lp.base_oauths_editAction},
  73. "data": {"key": "tokenData", "valueKey": "oauths", "notEmpty": false },
  74. "value": this.explorer.tokenData.oauths,
  75. "itemTitle": "{clientId}",
  76. "addItem": {"clientId": "", "mapping": {}},
  77. "icon": "sso.png"
  78. });
  79. this.baseQyweixinInput = new MWF.xApplication.Setting.Document.List(this.explorer, this.node, {
  80. "lp": {"title": this.lp.base_qyweixin, "infor": this.lp.base_qyweixin_infor, "action": this.lp.base_qyweixin_action},
  81. "data": {"key": "tokenData", "valueKey": "qyweixin", "notEmpty": false},
  82. "value": this.explorer.tokenData.qyweixin,
  83. "itemTitle": "corpId: {corpId}",
  84. "addItem": {"corpId": "", "corpSecret": ""},
  85. "icon": "weixin.png"
  86. });
  87. this.baseDingdingInput = new MWF.xApplication.Setting.Document.List(this.explorer, this.node, {
  88. "lp": {"title": this.lp.base_dingding, "infor": this.lp.base_dingding_infor, "action": this.lp.base_dingding_action},
  89. "data": {"key": "tokenData", "valueKey": "dingding", "notEmpty": false},
  90. "value": this.explorer.tokenData.dingding,
  91. "itemTitle": "corpId: {corpId}",
  92. "addItem": {"corpId": "", "corpSecret": "", "agentId": ""},
  93. "icon": "dingding.png"
  94. });
  95. }
  96. });