$("#toSearchAllBtn").on("click",function(){
$.get("findAllEnterprise",{
},function(listenterPriseInfo){
/* console.log(listhenterPriseInfo); */
if (listenterPriseInfo.length > 0) {
$("#tbenterPriseInfo").empty();
$.each(listenterPriseInfo, function(i, enterPriseInfo) {
var html= "<tr class=success>"+
"<td>"+
"<td>"+i+"</td>"+
"<td>"+enterPriseInfo.fprovince+"</td>"+ //省份
"<td>"+enterPriseInfo.fcity+"</td>"+ //地市集团
"<td>"+enterPriseInfo.fname+"</td>"+ //煤矿名称
"<td>"+enterPriseInfo.taskayear+"</td>"+//考评年度
"<td>"+enterPriseInfo.fmodifytime+"</td>"+//检查时间
"<td>"+enterPriseInfo.rminemscore.rminemscore+"</td>"+//煤矿得分
"<td>"+enterPriseInfo.FLevel+"</td>"+//标准化等级
"<td>"+
"<a id=toenterPriseInfo"+enterPriseInfo.fguid+" name=toenterPriseInfoName data-id="+enterPriseInfo.fguid+">降级</a>"+ /* href= data-toggle=modal data-target=#myModal2 */
"</td>"
$("#tbenterPriseInfo").append(html);
});
}
});
});