chooseLabels.html
1.43 KB
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
<div style="margin-top: 20px;margin-left: 30px">
<table style="width: 80%">
<thead>
<tr>
<th style="width: 30%">选择<!--<input type="checkbox" id="checkAll">--></th>
<th style="width: 30%">id</th>
<th style="width: 40%">标签名称</th>
</tr>
</thead>
<tbody id="labelTbody">
</tbody>
</table>
</div>
</div>
<script>
$(function () {
$.post(serverContextPath + "/grassLabelManage/getAllGrassLabelInfo", function (data) {
//数据填到框框里面
// debugger
if(data.code ==200){
var labelInfoData = data.data;
for(var i=0;i<labelInfoData.length; i++){
var str = "<tr><td><input type='checkbox' class='tagCheckbox' data-labelName='"+labelInfoData[i].labelName+"' data-labelId='"+labelInfoData[i].id+"'></td><td>"+labelInfoData[i].id+"</td><td>"+labelInfoData[i].labelName+"</td></tr>"
$("#labelTbody").append(str);
}
}else{//
$.messager.alert("失败", "标签信息查询失败,请稍后再试!", "error");
}
}, "json");
})
</script>