123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- /**
- * 重新登录弹窗
- */
- Ext.define('saas.view.auth.ReLogin', {
- extend: 'Ext.window.Window',
- xtype: 'relogin',
- id: 'relogin',
- controller: 'relogin',
- title: '重新登录',
- cls: 'x-window-dbfind x-relogin-win',
- layout: 'fit',
- modal: true,
- width: 350,
- bodyPadding: 20,
- items: [{
- xtype: 'form',
- reference: 'reloginform',
- defaults: {
- anchor: '100%',
- labelWidth: 120
- },
- items: [{
- xtype: 'displayfield',
- height: 32,
- cls: 'infoLabel',
- value: '会话已过期,请重新登录',
- }, {
- xtype: 'textfield',
- name: 'username',
- emptyText: '请输入账号/邮箱/手机号',
- fieldLabel: '账号',
- bind: '{account.username}',
- readOnly: true,
- hideLabel: true,
- allowBlank: false
- }, {
- xtype: 'textfield',
- hideLabel: true,
- fieldLabel: '密码',
- emptyText: '密码',
- inputType: 'password',
- name: 'password',
- // bind: '{password}',
- allowBlank: false,
- enableKeyEvents: true,
- listeners: {
- keydown: {
- fn: function(th, e, eOpts) {
- if(e.keyCode == 13) {
- this.up('relogin').getController().onLogin();
- }
- }
- }
- }
- }, {
- xtype: 'container',
- layout: 'hbox',
- items: [{
- xtype: 'checkboxfield',
- flex: 1,
- cls: 'form-panel-font-color rememberMeCheckbox',
- height: 30,
- name: 'remember',
- bind: '{remember}',
- boxLabel: '记住密码'
- }, {
- xtype: 'box',
- // html: '<a href="#passwordreset" class="link-forgot-password"> 忘记密码 ?</a>'
- }]
- }, {
- xtype: 'container',
- layout: {
- type: 'hbox',
- pack: 'center'
- },
- items: [{
- xtype: 'button',
- text: '登录',
- formBind: true,
- width: 68,
- margin: '0 12 0 0',
- listeners: {
- click: 'onLogin'
- }
- }, {
- xtype: 'button',
- text: '取消',
- width: 68,
- margin: '0 0 0 12',
- listeners: {
- click: 'onCancel'
- }
- }]
- }]
- }],
- listeners: {
- afterrender: 'onAfterRender',
- }
- });
|