| 1 |
- <input type="hidden" name="dxid" value="${dxid}">
<div class='content-div' ssFith="{max:360,min:100}">
<table class="form">
<tr>
<th width="117px">名称</th>
<td><input width="168px" name='mc'/></td>
</tr>
<tr>
<th>上级指标</th>
<td><input width="168px" name="sjpjzbid"/>
</td>
</tr>
<tr>
<th>类型</th>
<td><input width="168px" name="pjzblxm"/></td>
</tr>
<tr class="zf" style="display:none">
<th>总分</th>
<td><input width="168px" name="zf"/></td>
</tr>
<tr>
<th>描述</th>
<td style="padding-bottom: 7px;padding-top:5px;">
<input name="ms" width="calc(100% + 12px)" height="60px"/>
</td>
</tr>
</table>
<!--指标是评价指标选项-->
<table class="form" id="zbs" style="display: none;margin:12px 0px 15px;">
<tr>
<th>选项</th>
<th>描述</th>
<th>分数</th>
</tr>
</table>
</div>
<script type="text/javascript">
$(function () {
var obj = ${pjzb.xxms};
var eid = ${pjzb.pjzblxm};
console.log(eid)
console.log(obj);
if(!$.isEmptyObject(obj)) {
$("#zbs").show();
$(".zf").hide();
var htmls = '';
for(var i =0;i< obj.length;i++) {
var item=obj[i];
htmls += '<tr><td>'+item.name+'</td><td>'+item.desc+'</td><td>'+item.score+'</td></tr>'
}
$("#zbs").append(htmls)
}
if(eid == '21' || eid == '51'){
$("#zbs").hide();
$(".zf").show();
}
});
</script>
|