Commit 898d58ea authored by 莫林毅's avatar 莫林毅

调整 输入框 '权值' 的步长

parent 38b6a97b
......@@ -166,7 +166,7 @@
<tr>
<td>权重(<font color="red">必填</font>):</td>
<td><input type="number" class="form-control" name="descTd" id="kpiWeightTd" value="1.00" style="display: inline;" />
<td><input type="number" step="0.01" class="form-control" name="descTd" id="kpiWeightTd" value="1.00" style="display: inline;" />
<span id="writeWarningInfTd" style="color:red;display: inline;padding-left:10px;"></span></td>
</tr>
......@@ -670,12 +670,13 @@
if (kpiWeightTdVal < 0){
$.alert("权重不能为负");
var mmm=(1-Number(sumkpiWeightTdVal)).toFixed(2);
$.alert(mmm);
$("#kpiWeightTd").val(mmm);
return;
}
if(kpiWeightTdVal >1.00){
$.alert("权重超值 1");
var mmmm=(1-Number(sumkpiWeightTdVal)).toFixed(2);
$("#kpiWeightTd").val(mmmm);
return ;
}
var tt=0.00;
......
......@@ -208,7 +208,7 @@
</tr>
<tr id="tr_id_weight">
<td>权重(<font color="red">必填</font>):</td>
<td><input type="number" class="form-control" name="descTd" id="kpiWeightTd" style="display: inline;" />
<td><input type="number" step="0.01" class="form-control" name="descTd" id="kpiWeightTd" style="display: inline;" />
<span id="writeWarningInfTd" style="color:red;display: inline;padding-left:10px;"></span></td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment