You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
943 B
58 lines
943 B
|
|
$(function () {
|
|
|
|
|
|
|
|
$('#modal_info').on('hide.bs.modal',function() {//提示模糊框隐藏时候触发
|
|
location.reload(); //刷新当前页面
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
function getBookInfo(id){
|
|
|
|
ajax(
|
|
{
|
|
method:'POST',
|
|
url:'admin/bookManageAction_getBook.action',
|
|
params: "bookId=" + id,
|
|
type:"json",
|
|
callback:function(data) {
|
|
$("#findISBN").val(data.ISBN);
|
|
$("#findBookName").val(data.bookName);
|
|
$("#findBookType").val(data.bookType.typeName);
|
|
$("#findAutho").val(data.autho);
|
|
$("#findPress").val(data.press);
|
|
$("#findPrice").val(data.price);
|
|
$("#findDescription").val(data.description);
|
|
$("#findNum").val(data.num);
|
|
$("#findAdmin").val(data.admin.name);
|
|
$("#findCurrentNum").val(data.currentNum);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function showInfo(msg) {
|
|
$("#div_info").text(msg);
|
|
$("#modal_info").modal('show');
|
|
}
|
|
|
|
|