This commit is contained in:
fengjh5 2024-05-13 17:51:51 +08:00
parent 5f51b161bf
commit 2872f15778
1 changed files with 21 additions and 1 deletions

View File

@ -29,7 +29,7 @@
<div class="box-footer">
<div class="row col-md-12">
<div class="col-md-2 col-md-offset-4">
<button id="btn-add" class="btn btn-primary btn-block" type="button"><i class="fa fa-plus"></i>
<button id="btn-add" class="btn btn-primary btn-block btn-add" type="button"><i class="fa fa-plus"></i>
添加包间
</button>
</div>
@ -68,6 +68,26 @@
$(function() {
// initBind();
getListByPage(1);
// 编辑操作绑定
$(".btn-add").on('click', function() {
var id = $(this).data('id');
$.ajax({
url: "<?= site_url('order/edit_bjgl') ?>/" + id,
type: 'post',
dataType: 'json',
success: function(data) {
console.log(data);
if (data.success) {
console.log('成功');
$("#modalView").html(data.html);
$("#modalView").modal();
} else {
$.zui.messager.show(data.msg);
}
}
})
});
});
// // DOM 元素绑定事件