Browse Source

查询界面

rainco 7 years ago
parent
commit
4556e6c5ef

+ 0 - 46
frontend/saas-web/app/util/QueryUtil.js

@@ -2,47 +2,6 @@ Ext.define('saas.util.QueryUtil', {
 
     BaseUtil: Ext.create('saas.util.BaseUtil'),
 
-    // 请求页面组件接口模板
-    baseUrl: 'http://192.168.0.181:8560/api/ui/co_view/config?name={xtype}',
-    // 模板替换正则
-    urlRe: /(.*){xtype}(.*)/g,
-    
-    /**
-     * 获得form的字段配置
-     * @param form: form组件
-     */
-    setItems: function(form) {
-        var me = this;
-        debuggre;
-        Ext.each(form.items.items, function(f){
-            if(f.xtype=='core-query-queryformpanel'){
-
-            }else if(f.xtype=='core-query-gridpanel'){
-                
-            }
-
-        });
-        // xtype = form.xtype,
-        //     url = me.baseUrl.replace(me.urlRe, '$1' + xtype);
-        //     me.BaseUtil.request({url})
-        // .then(function(response) {
-        //     var res = Ext.decode(response.responseText);
-        //     if(res.success) {
-        //         var config = res.data, items = [];
-        //         if(config) {
-        //             items = config.items;
-        //             //_baseItems
-        //             // _BaseColumn: '',
-        //             // _RelativeColumn: '',
-        //             form.add(items);
-        //         }
-        //         form.fireEvent('afterSetItems', form, items);               
-        //     }
-        // })
-        // .catch(function(response) {
-        //     console.error(response);
-        // });
-    },
      /**
      * 获得form的字段查询条件
      * @param form: form组件
@@ -50,11 +9,6 @@ Ext.define('saas.util.QueryUtil', {
      */
     getStoreMode: function(form,Mode){
         var Mode = "MAIN";
-        // Ext.each(form.items.items, function(f){
-        //     if(!Ext.isEmpty(f.value)&&f.fieldMode == "DETAIL") {
-        //         Mode = "DETAIL";
-        //     }
-        // });
         if(form.items.items.find(function(item) {
             return !Ext.isEmpty(item.value)&&item.fieldMode == "DETAIL";
         })) {

+ 1 - 1
frontend/saas-web/app/view/core/query/QueryGridPanel.js

@@ -57,7 +57,7 @@ Ext.define('saas.view.core.query.QueryGridPanel', {
                         }
                         console.log("condition:" + condition);
                         Ext.apply(store.proxy.extraParams, {
-                            number: op._start + 1,
+                            number: op._page + 1,
                             size: store.pageSize,
                             keyword: condition
                         });