修改单据insert和update的代码,解决大数据量无法写入的bug,另外增加消息提醒的定时刷新

This commit is contained in:
季圣华
2020-03-28 19:04:04 +08:00
parent 89d2e29779
commit e45e3b119e
8 changed files with 186 additions and 53 deletions

View File

@@ -438,4 +438,25 @@ $(function () {
}, 10 * 1000);
}
//更新消息条数
function getMsgCountByStatus() {
$.ajax({
type: "get",
url: "/msg/getMsgCountByStatus?status=1",
dataType: "json",
success: function (res) {
if (res && res.code === 200) {
if(res.data) {
var count = res.data.count;
$("#msgNum, #msgNum2").text(count);
}
}
}
});
}
getMsgCountByStatus();
setInterval(function() {
getMsgCountByStatus()
}, 1000*60);
});