|
|
@@ -24,7 +24,7 @@ Ext.define('saas.view.core.query.QueryFormPanel', {
|
|
|
|
|
|
dockedItems: [{
|
|
|
width:140,
|
|
|
- height: 40,
|
|
|
+ height: 70,
|
|
|
xtype: 'toolbar',
|
|
|
dock: 'right',
|
|
|
items: [{
|
|
|
@@ -32,23 +32,23 @@ Ext.define('saas.view.core.query.QueryFormPanel', {
|
|
|
xtype: 'buttongroup',
|
|
|
cls:'x-query-buttongroup',
|
|
|
items:[{
|
|
|
- height:24,
|
|
|
- width:50,
|
|
|
+ height:32,
|
|
|
+ width:70,
|
|
|
style:'min-width: 0px;min-height: 0px;',
|
|
|
xtype: 'button',
|
|
|
name:'query',
|
|
|
text: '查询',
|
|
|
handler: 'onQuery',
|
|
|
},{
|
|
|
- height:24,
|
|
|
- style:'margin-left: 2px;min-width: 0px;min-height: 0px;border-color: #fff;background-color: #fff; height: 24px;width: 36px;margin-top: -4px;',
|
|
|
+ style:'min-width: 0px;min-height: 0px;border-color: #fff;background-color: #fff;padding: 0px;margin-top: -1px;margin-left: -2px;',
|
|
|
xtype: 'button',
|
|
|
- iconCls:'x-fa fa-caret-square-o-down',
|
|
|
+ iconCls:'x-btn-show',
|
|
|
handler: 'showMore',
|
|
|
name:'showMore',
|
|
|
tooltip:'更多',
|
|
|
listeners:{
|
|
|
afterrender:function(b){
|
|
|
+ var count = window.innerHeight - 110>=800?2:1;
|
|
|
var columnWidthCount = 0;
|
|
|
var items = b.ownerCt.ownerCt.ownerCt.items.items;
|
|
|
Ext.each(items, function(item, index){
|
|
|
@@ -57,7 +57,7 @@ Ext.define('saas.view.core.query.QueryFormPanel', {
|
|
|
}
|
|
|
});
|
|
|
columnWidthCount = Math.ceil(columnWidthCount);
|
|
|
- if(columnWidthCount<=1){
|
|
|
+ if(columnWidthCount<=count){
|
|
|
b.hide();
|
|
|
}
|
|
|
}
|
|
|
@@ -65,17 +65,21 @@ Ext.define('saas.view.core.query.QueryFormPanel', {
|
|
|
},{
|
|
|
name:'hideMore',
|
|
|
hidden:true,
|
|
|
- height:24,
|
|
|
tooltip:'隐藏',
|
|
|
- style:'margin-left: 2px;min-width: 0px;min-height: 0px;border-color: #fff;background-color: #fff; height: 24px;width: 36px;margin-top: -4px;',
|
|
|
+ style:'min-width: 0px;min-height: 0px;border-color: #fff;background-color: #fff;padding: 0px;margin-top: -1px;margin-left: -2px;',
|
|
|
xtype: 'button',
|
|
|
- iconCls:'x-fa fa-caret-square-o-up',
|
|
|
+ iconCls:'x-btn-hide',
|
|
|
handler: 'hideMore'
|
|
|
}]
|
|
|
},'->']
|
|
|
}],
|
|
|
|
|
|
listeners: {
|
|
|
+ boxReady:function(form){
|
|
|
+ if(window.innerHeight - 110 >= 800){
|
|
|
+ form.setHeight(112);
|
|
|
+ }
|
|
|
+ },
|
|
|
beforerender: function(form) {
|
|
|
// var fiels = form.getForm().getFields();
|
|
|
// fiels.each(function(f) {
|