/*TMODJS:{"version":22,"md5":"72e3f2e1105f1199d525e1b215d8a387"}*/
template('calcmodelindexsetvalue',function($data,$filename
/**/) {
'use strict';var $utils=this,$helpers=$utils.$helpers,$escape=$utils.$escape,res=$data.res,$each=$utils.$each,value=$data.value,key=$data.key,$out='';$out+='<form class="form-horizontal center-block" style="width: 92%; margin: 10px auto;"> <input type="text" style="display: none;" id="calc-model-id" value="';
$out+=$escape(res.data.id);
$out+='"> <div class="form-group"> <label class="col-sm-3 control-label">公式</label> <div class="col-sm-8"> <input type="text" class="form-control" readonly value="';
$out+=$escape(res.data.expression);
$out+='"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">描述</label> <div class="col-sm-8"> <textarea rows="5" readonly class="form-control">';
$out+=$escape(res.data.description);
$out+='</textarea> </div> </div> ';
$each(res.data.indexs,function(value,key){
$out+=' ';
if(value.isCustomer === false){
$out+=' <div class="form-group"> <label class="col-sm-3 control-label">';
$out+=$escape(value.name);
$out+='</label> <div class="col-sm-8"> <input class="form-control" type="number" placeholder="无需设值" readonly value=""> </div> </div> ';
}else{
$out+=' <div class="form-group"> <label class="col-sm-3 control-label">';
$out+=$escape(value.name);
$out+='</label> <div class="col-sm-8"> <input class="form-control custom-index-setting" data-id="';
$out+=$escape(value.id);
$out+='" data-name="';
$out+=$escape(value.name);
$out+='" type="number" placeholder="自定义指标需要设值" value=""> </div> </div> ';
}
$out+=' ';
});
$out+=' </form>';
return new String($out);
});