|
Model.prototype.button1Click = function(event) {
var Data = this.comp("mainData");
var params = new biz.Request.ActionParam();
var self = this;
var sqrdm=Data.getValue("fSQRDM");
var ycdbh=Data.getValue("fYCDBH");
var title="用车单已收到!";
params.setString("fid", Data.getCurrentRowID());
params.setString("zt", "待派车");
params.setFloat("fy",0.0);
// 调用动作
biz.Request.sendBizRequest({
"context" : this.getContext(),
"action" : "jsyxd",
"parameters" : params,
"callback" : function(data) {
data.ignoreError = false;
if (data.state) {
justep.Util.hint("收单成功!");
Data.refreshData();
$(self.getElementByXid("button1_3")).css("display","none");
}
}
});
};
以上为源码,其中如果params.setFloat("fy",0.0);params.setFloat("fy",9);这两种情况传值过去后都会提示传的是integer类型不匹配,action中的参数也是float型的,请问怎么破?
|
|