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.
28 lines
730 B
28 lines
730 B
const workordertimer = setInterval(function () {
|
|
|
|
$.ajax({
|
|
url: '/'+window.location.pathname.split('/')[1]+'/workorder_notice',
|
|
type: 'POST',
|
|
data: {},
|
|
dataType: 'text',
|
|
success: function (res) {
|
|
if (res == true) {
|
|
Dcat.info("你有新的工单信息 <a href='/"+window.location.pathname.split('/')[1]+"/workorder_item' target='_blank'>[前往查看]</a>", '新消息提醒', {
|
|
closeButton: true,
|
|
escapeHtml: false,
|
|
timeOut: 10000,
|
|
extendedTimeOut: 5000,
|
|
onHidden: function () {
|
|
if (window.location.pathname == '/'+window.location.pathname.split('/')[1]+'/workorder_item') {
|
|
location.reload()
|
|
}
|
|
}
|
|
})
|
|
}
|
|
},
|
|
error: function (error) {
|
|
|
|
}
|
|
});
|
|
|
|
}, 5000);
|