|
@@ -56,8 +56,10 @@ $(function () {
|
|
|
<span class="text-muted">${item.role || ''}</span>
|
|
|
</dd>`
|
|
|
});
|
|
|
- $('#' + code + '_dropdownMenu .book-list').empty();
|
|
|
- $('#' + code + '_dropdownMenu .book-list').append(html);
|
|
|
+ $(this).parents('.dropdown-menu').children('.book-list').empty();
|
|
|
+ $(this).parents('.dropdown-menu').children('.book-list').append(html);
|
|
|
+ // $('#' + code + '_dropdownMenu .book-list').empty();
|
|
|
+ // $('#' + code + '_dropdownMenu .book-list').append(html);
|
|
|
} else {
|
|
|
if (!$('#' + code + '_dropdownMenu .acc-btn').length) {
|
|
|
accountGroup.forEach((group, idx) => {
|
|
@@ -76,8 +78,10 @@ $(function () {
|
|
|
});
|
|
|
html += '</div>';
|
|
|
});
|
|
|
- $('#' + code + '_dropdownMenu .book-list').empty();
|
|
|
- $('#' + code + '_dropdownMenu .book-list').append(html);
|
|
|
+ // $('#' + code + '_dropdownMenu .book-list').empty();
|
|
|
+ // $('#' + code + '_dropdownMenu .book-list').append(html);
|
|
|
+ $(this).parents('.dropdown-menu').children('.book-list').empty();
|
|
|
+ $(this).parents('.dropdown-menu').children('.book-list').append(html);
|
|
|
}
|
|
|
}
|
|
|
}, 400);
|
|
@@ -178,7 +182,7 @@ $(function () {
|
|
|
html +='<div><span class="d-inline-block">\n' +
|
|
|
' <div class="dropdown text-right">\n' +
|
|
|
' <button class="btn btn-outline-primary btn-sm dropdown-toggle" type="button" id="' + tr_id + '_dropdownMenuButton2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n' +
|
|
|
- ' 选择审批人\n' +
|
|
|
+ ' 选择上报人\n' +
|
|
|
' </button>\n' +
|
|
|
' <div class="dropdown-menu dropdown-menu-right" id="' + tr_id + '_dropdownMenu2" aria-labelledby="' + tr_id + '_dropdownMenuButton2" style="width:220px">\n' +
|
|
|
' <div class="mb-2 p-2"><input class="form-control form-control-sm gr-search"\n' +
|