html
<tr data-id="001"> <%--门店id--%>
<td>氧车乐广德湖路店</td>
<td>44</td>
<td>40</td>
<td> <a href="#" data-toggle="modal" data-target="#modal-failTotal">11</a></td>
<td>98.5%</td>
<td>66</td>
<td>89.00%</td>
</tr>
$(function(){
//获取门店id
var storeId_arr = []
$(document).on("click", "a[data-toggle='modal']", function () {
var tr_id = $(this).parents("tr").attr("data-id");
storeId_arr = [];
storeId_arr.push(tr_id);
});
//模态窗打开传入门店id
$('#modal-failTotal').on('shown.bs.modal', function () {
var this_storeId = storeId_arr[0];
alert("当前门店id为"+this_storeId);
})
})