|
@@ -2,7 +2,7 @@ Ext.define('saas.view.core.query.QueryFormPanel', {
|
|
|
extend: 'Ext.form.Panel',
|
|
extend: 'Ext.form.Panel',
|
|
|
xtype: 'core-query-queryformpanel',
|
|
xtype: 'core-query-queryformpanel',
|
|
|
|
|
|
|
|
- viewModel: 'core-query-queryformpanel',
|
|
|
|
|
|
|
+ // viewModel: 'core-query-queryformpanel',
|
|
|
|
|
|
|
|
//字段属性
|
|
//字段属性
|
|
|
_baseItems: [],
|
|
_baseItems: [],
|
|
@@ -29,26 +29,31 @@ Ext.define('saas.view.core.query.QueryFormPanel', {
|
|
|
columnWidth: 0.25,
|
|
columnWidth: 0.25,
|
|
|
blankText: '该字段不能为空'
|
|
blankText: '该字段不能为空'
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- dockedItems: [{
|
|
|
|
|
- xtype: 'toolbar',
|
|
|
|
|
- dock: 'bottom',
|
|
|
|
|
- style: {
|
|
|
|
|
- 'border-bottom': '1px solid #35baf6 !important'
|
|
|
|
|
- },
|
|
|
|
|
- items: ['->',{
|
|
|
|
|
- xtype: 'button',
|
|
|
|
|
- text: '更多查询',
|
|
|
|
|
- handler: me.moreQuery
|
|
|
|
|
- }, {
|
|
|
|
|
- xtype: 'button',
|
|
|
|
|
- text: '查询',
|
|
|
|
|
- handler: me.onQuery
|
|
|
|
|
- },'->']
|
|
|
|
|
- }],
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
remoteConfig: false, // 是否需要从远端读取form配置
|
|
remoteConfig: false, // 是否需要从远端读取form配置
|
|
|
bindFields: [], // 已绑定字段(需要保存到数据库)
|
|
bindFields: [], // 已绑定字段(需要保存到数据库)
|
|
|
|
|
+ initComponent: function() {
|
|
|
|
|
+ var me = this;
|
|
|
|
|
+ Ext.apply(me, {
|
|
|
|
|
+ dockedItems: [{
|
|
|
|
|
+ xtype: 'toolbar',
|
|
|
|
|
+ dock: 'bottom',
|
|
|
|
|
+ style: {
|
|
|
|
|
+ 'border-bottom': '1px solid #35baf6 !important'
|
|
|
|
|
+ },
|
|
|
|
|
+ items: ['->',{
|
|
|
|
|
+ xtype: 'button',
|
|
|
|
|
+ text: '更多查询',
|
|
|
|
|
+ handler: me.moreQuery
|
|
|
|
|
+ }, {
|
|
|
|
|
+ xtype: 'button',
|
|
|
|
|
+ text: '查询',
|
|
|
|
|
+ handler: me.onQuery
|
|
|
|
|
+ },'->']
|
|
|
|
|
+ }]
|
|
|
|
|
+ });
|
|
|
|
|
+ me.callParent(arguments);
|
|
|
|
|
+ },
|
|
|
moreQuery: function(btn){
|
|
moreQuery: function(btn){
|
|
|
var win = Ext.getCmp('queryMoreWin');
|
|
var win = Ext.getCmp('queryMoreWin');
|
|
|
if(!win){
|
|
if(!win){
|