You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.1 KiB
HTML

<!-- 加载状态 -->
<div class="modal" id="usedList" tabindex="-1">
<div class="modal-dialog" style="margin-top: 5%;width: 70%">
<div class="modal-content">
<div class="modal-body text-center">
<div class="spinner-border text-primary" role="status">
<table id="usedlist_table" >
<thead>
<tr>
<th>姓名</th>
<th>电话</th>
<th>登记号</th>
<th>申请科室</th>
<th>项目</th>
<th>渠道</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script>
function test(id) {
event.stopPropagation();
console.log(id)
getUsedList(id)
}
function getUsedList(id){
$('#usedlist_table tbody').html('');
$('#loadingModal').modal('show');
$.post(BaseUrl+'/api/admin/GetPlanUsedList', {
planid: id,
}, function(data) {
$('#loadingModal').modal('hide');
if (data.status) {
data.data.forEach(function(v, i) {
$('#usedlist_table tbody').append('<tr >\n' +
' <td>' + v.user_name + '</td>\n' +
' <td>' + v.user_phone + '</td>\n' +
' <td>' + v.reg_num + '</td>\n' +
' <td>' + v.reservation_department + '</td>\n' +
' <td>' + v.entrust + '</td>\n' +
' <td>' + v.qudao_name + '</td>\n' +
' </tr>')
})
$('#usedList').modal('show');
}else{
MsgAlert(data.msg)
}
})
}
$(function () {
})
</script>