|
发表于 2015-9-23 00:30:36
|
显示全部楼层
odata.each(function(param){
if(param.row.val("orderCount")>0){
if (data.find([ 'sgId' ], [ param.row.val('sgId') ]).length === 0) {
data.newData({
index : 0,
defaultValues : [ {
"sgId" : param.row.val('sgId'),
"sgName" : param.row.val("sgName"),
"sgPrice" : param.row.val("sgPrice"),
"sgMarketPrice" : param.row.val("sgMarketPrice"),
"sgGuige" : param.row.val("sgGuige"),
"sgImage" : param.row.val("sgImage"),
"sgYxbdk" : param.row.val("sgYxbdk"),
"orderCount" : param.row.val("orderCount")
} ]
});
}else{
var row1 = data.find([ 'sgId' ], [ param.row.val('sgId') ])[0];
row1.val("orderCount", param.row.val("orderCount"));
}
}
});
我这个是将别的页面复制到本页面,我也研究的不深入,还没发现别的页面的数据怎么直接拿来绑定。 |
|