问题描述
autoLoad : true,proxy : {type : 'rest',// 通过拼接url的方式不太友好。//url : 'api/machine/device?organization='+ewayUser.organizationId,url : 'api/machine/device',reader : {type : 'json',root : 'data'},params : { organization : ewayUser.organizationId}}
解决方案
extraParams : ObjectExtra parameters that will be included on every request. Individual requests with params of the same name will override these params when they are in conflict. autoLoad : true,proxy : {type : 'rest',// 通过拼接url的方式不太友好。//url : 'api/machine/device?organization='+ewayUser.organizationId,url : 'api/machine/device', extraParams : {organization:ewayUser.organizationId},reader : {type : 'json',root : 'data'},params : { organization : ewayUser.organizationId}}