$.ajax({
url:imovie.base+'/cardBatch/findCardTemplateById',
type:"GET",
data:{"cardTemplateId":data.cardTemplateId},
success:function(res){
$("#cardTemplateId").val(res.cardTemplateChoiceVo.cardTemplateId);
$("#planTotal").val(res.cardTemplateChoiceVo.planTotal);
$("#realTotal").val(res.cardTemplateChoiceVo.realTotal);
$("#type").val(res.cardTemplateChoiceVo.typeName);
$("#cardTemplateCode").val(res.cardTemplateChoiceVo.cardTemplateCode);
$("#name").val(res.cardTemplateChoiceVo.name);
$("#facePrice").html("<span>"+res.cardTemplateChoiceVo.facePriceDecimal+"点"+"<span>");
$("#costPrice").html("<span>"+res.cardTemplateChoiceVo.salePriceDecimal+"点"+"<span>");
$("#validDate").html("<span>"+res.cardTemplateChoiceVo.validDate+"<span>");
$("#plan").html("<span>"+"计划发行"+res.cardTemplateChoiceVo.planTotal+"张,已发行"+res.cardTemplateChoiceVo.realTotal+"张"+"<span>");
console.log(res);
}
})
ajax请求回填数据到页面
最新推荐文章于 2021-08-06 06:41:59 发布