MWF.xDesktop.requireApp("Setting", "Document", null, false); MWF.xApplication.Setting.BaseNameDocument = new Class({ Extends: MWF.xApplication.Setting.Document }); MWF.xApplication.Setting.BasePersonDocument = new Class({ Extends: MWF.xApplication.Setting.Document, load: function(){ this.node = new Element("div", {"styles": {"overflow": "hidden", "padding-bottom": "80px"}}).inject(this.contentAreaNode); this.titleName = new Element("div", {"styles": this.explorer.css.explorerContentTitleNode}).inject(this.node); this.titleName.set("text", this.lp.base_personSetting); this.baseUserPasswordInput = new MWF.xApplication.Setting.Document.Input(this.explorer, this.node, { "lp": {"title": this.lp.base_UserPassword, "infor": this.lp.base_UserPassword_infor, "action": this.lp.base_UserPassword_action}, "data": {"key": "personData", "valueKey": "password", "notEmpty": true, "infor": this.lp.base_UserPassword_empty }, "value": this.explorer.personData.password }); this.basePasswordPeriodInput = new MWF.xApplication.Setting.Document.Input(this.explorer, this.node, { "lp": {"title": this.lp.base_passwordPeriod, "infor": this.lp.base_passwordPeriod_infor, "action": this.lp.base_passwordPeriod_action}, "data": {"key": "personData", "valueKey": "passwordPeriod", "notEmpty": false}, "value": this.explorer.personData.passwordPeriod }); this.baseAdminPasswordInput = new MWF.xApplication.Setting.Document.Input(this.explorer, this.node, { "lp": {"title": this.lp.base_adminPassword, "infor": this.lp.base_adminPassword_infor, "action": this.lp.base_adminPassword_action}, "data": {"key": "tokenData", "valueKey": "password", "notEmpty": false}, "value": this.explorer.tokenData.password }); } }); MWF.xApplication.Setting.BaseLoginDocument = new Class({ Extends: MWF.xApplication.Setting.Document, load: function(){ this.node = new Element("div", {"styles": {"overflow": "hidden", "padding-bottom": "80px"}}).inject(this.contentAreaNode); this.titleName = new Element("div", {"styles": this.explorer.css.explorerContentTitleNode}).inject(this.node); this.titleName.set("text", this.lp.base_loginSetting); this.baseCodeLoginInput = new MWF.xApplication.Setting.Document.Check(this.explorer, this.node, { "lp": {"title": this.lp.base_codeLogin, "infor": this.lp.base_codeLogin_infor, "action": this.lp.base_codeLogin_action}, "data": {"key": "personData", "valueKey": "codeLogin", "notEmpty": false }, "value": this.explorer.personData.codeLogin }); this.baseBindLoginInput = new MWF.xApplication.Setting.Document.Check(this.explorer, this.node, { "lp": {"title": this.lp.base_bindLogin, "infor": this.lp.base_bindLogin_infor, "action": this.lp.base_bindLogin_action}, "data": {"key": "personData", "valueKey": "bindLogin", "notEmpty": false }, "value": this.explorer.personData.bindLogin }); this.baseFaceLoginInput = new MWF.xApplication.Setting.Document.Check(this.explorer, this.node, { "lp": {"title": this.lp.base_faceLogin, "infor": this.lp.base_faceLogin_infor, "action": this.lp.base_faceLogin_action}, "data": {"key": "personData", "valueKey": "faceLogin", "notEmpty": false }, "value": this.explorer.personData.faceLogin }); this.baseRegisterInput = new MWF.xApplication.Setting.Document.Select(this.explorer, this.node, { "lp": {"title": this.lp.base_register, "infor": this.lp.base_register_infor, "action": this.lp.base_register_action}, "data": {"key": "personData", "valueKey": "register", "notEmpty": false }, "value": this.explorer.personData.register, "options": [{"value": "disable", "text": this.lp.register_disable}, {"value": "captcha", "text": this.lp.register_captcha}, {"value": "code", "text": this.lp.register_code}] }); } }); MWF.xApplication.Setting.BaseSSODocument = new Class({ Extends: MWF.xApplication.Setting.Document, load: function(){ this.node = new Element("div", {"styles": {"overflow": "hidden", "padding-bottom": "80px"}}).inject(this.contentAreaNode); this.titleName = new Element("div", {"styles": this.explorer.css.explorerContentTitleNode}).inject(this.node); this.titleName.set("text", this.lp.base_ssoSetting); this.baseSSOInput = new MWF.xApplication.Setting.Document.List(this.explorer, this.node, { "lp": {"title": this.lp.base_ssos, "infor": this.lp.base_sso_infor, "action": this.lp.base_sso_action, "editAction": this.lp.base_sso_editAction}, "data": {"key": "tokenData", "valueKey": "ssos", "notEmpty": false }, "value": this.explorer.tokenData.ssos, "itemTitle": "{client}", "addItem": {"client": "", "key": ""}, "icon": "sso.png" }); this.baseOauthsInput = new MWF.xApplication.Setting.Document.List(this.explorer, this.node, { "lp": {"title": this.lp.base_oauths, "infor": this.lp.base_oauths_infor, "action": this.lp.base_oauths_action, "editAction": this.lp.base_oauths_editAction}, "data": {"key": "tokenData", "valueKey": "oauths", "notEmpty": false }, "value": this.explorer.tokenData.oauths, "itemTitle": "{clientId}", "addItem": {"clientId": "", "mapping": {}}, "icon": "sso.png" }); this.baseQyweixinInput = new MWF.xApplication.Setting.Document.List(this.explorer, this.node, { "lp": {"title": this.lp.base_qyweixin, "infor": this.lp.base_qyweixin_infor, "action": this.lp.base_qyweixin_action}, "data": {"key": "tokenData", "valueKey": "qyweixin", "notEmpty": false}, "value": this.explorer.tokenData.qyweixin, "itemTitle": "corpId: {corpId}", "addItem": {"corpId": "", "corpSecret": ""}, "icon": "weixin.png" }); this.baseDingdingInput = new MWF.xApplication.Setting.Document.List(this.explorer, this.node, { "lp": {"title": this.lp.base_dingding, "infor": this.lp.base_dingding_infor, "action": this.lp.base_dingding_action}, "data": {"key": "tokenData", "valueKey": "dingding", "notEmpty": false}, "value": this.explorer.tokenData.dingding, "itemTitle": "corpId: {corpId}", "addItem": {"corpId": "", "corpSecret": "", "agentId": ""}, "icon": "dingding.png" }); } });