W2ui网格远程数据源请求参数cmd

时间:2019-06-13 05:36:49

标签: javascript php w2ui

昨天(12-06-2019)我从github下载了最新的w2ui。现在,我无法从远程数据源请求php获取记录到网格。

在我的JavaScript源代码中,设置网格格式,自己的对象,我正在这样做:

  this.create_grid = function()
  {
     this.grid_conf   = 
     {
        name           : this.grid_id,
        limit          : this.grid_table.limit,
        reorderColumns : true,
        selectType     : this.grid_row_cell,
        multiSelect    : true,
        markSearch     : false,
        multiSearch    : ( this.grid_search.length > 0 ? true : false ),
        multiSort      : true,
        columns        : this.grid_columns,
        searches       : this.grid_search,
        toolbar        : { items: this.grid_toolbar },
        show           : 
        {
           toolbar        : true, 
           toolbarAdd     : ( this.grid_table.allw_new == 0 ? false : true ),
           toolbarDelete : ( this.grid_table.allw_del == 0 ? false : true ),
           toolbarSearch : true,
           header         : false,
           selectColumn  : true,
           footer         : this.footer_show                       //,               expandColumn  : this.grd_sbg
        } // ,            menu           : this.menu_show()
     }
     if ( this.grid_url != "" )
     {
        this.grid_conf[ 'url'      ] = this.grid_url
        this.grid_conf[ 'postData' ] = 
        { 
           prg: this.prg, 
           grd: this.grid_id, 
           whr: this.grid_filter, 
           db : this.grid_table.grid_dbu, 
           lng: user_lang, 
           hid: this.grid_table.grid_hide, 
           smr: this.summ_arr,
           aprm: this.aprm
        }
     }
  }

Ih php

$prm     = $_REQUEST[ 'request' ];
$rqs     = json_decode( $prm, true );
$cmd     = $rqs[ 'cmd' ];

使用最新的w2ui我现在无法获取“ cmd”参数...

最新的w2ui中发生了什么变化?如何使用php从远程数据源获取数据?

在此先感谢您的帮助...

0 个答案:

没有答案