|
|
@@ -45,7 +45,32 @@ Ext.define('saas.view.core.query.QueryPanelController', {
|
|
|
onCloseClick:function(btn){
|
|
|
this.queryWin = Ext.destroy(this.queryWin);
|
|
|
},
|
|
|
- onImport: Ext.emptyFn,
|
|
|
+ onImport: function() {
|
|
|
+ var me = this;
|
|
|
+ var view = me.getView();
|
|
|
+ var panelEl = view.getEl();
|
|
|
+ var box = panelEl.getBox();
|
|
|
+ var height = box.height;
|
|
|
+ var width = box.width;
|
|
|
+
|
|
|
+ var win = view.add(Ext.create('saas.view.core.base.ImportWindow', {
|
|
|
+ cls:'x-window-dbfind',
|
|
|
+ belong:view,
|
|
|
+ modal:true,
|
|
|
+ height: height * 0.8,
|
|
|
+ width: width * 0.8,
|
|
|
+ title: '导入',
|
|
|
+ scrollable: true,
|
|
|
+ bodyPadding: 10,
|
|
|
+ constrain: true,
|
|
|
+ closable: true,
|
|
|
+ layout:'fit',
|
|
|
+ caller: view.caller,
|
|
|
+ importUploadPath: view.importUploadPath,
|
|
|
+ renderTo:view.getEl()
|
|
|
+ }));
|
|
|
+ win.show();
|
|
|
+ },
|
|
|
|
|
|
onColSetting: function() {
|
|
|
var me = this,
|