11 changed files with 91 additions and 18 deletions
-
13app/AdminAgent/Controllers/WorkorderController.php
-
2app/AdminAgent/bootstrap.php
-
6app/AdminAgent/routes.php
-
8app/AdminGuide/Controllers/WorkorderController.php
-
2app/AdminGuide/bootstrap.php
-
5app/AdminSupplier/Controllers/WorkorderController.php
-
2app/AdminSupplier/bootstrap.php
-
22public/js/workorder-notice.js
-
14resources/views/admin/pages/guide-index.blade.php
-
21resources/views/admin/pages/index.blade.php
-
14resources/views/admin/pages/supplier-index.blade.php
@ -0,0 +1,22 @@ |
|||||
|
Dcat.ready(function () { |
||||
|
|
||||
|
// const workorderNoticeTimer = setInterval(function () {
|
||||
|
//
|
||||
|
// $.ajax({
|
||||
|
// url: '/workorder_notice',
|
||||
|
// type: 'POST',
|
||||
|
// data: {},
|
||||
|
// dataType: 'json',
|
||||
|
// success: function (res) {
|
||||
|
// Dcat.info('您有新的工单信息', null, {
|
||||
|
// timeOut: 5000, // 5秒后自动消失
|
||||
|
// });
|
||||
|
// },
|
||||
|
// error: function (error) {
|
||||
|
//
|
||||
|
// }
|
||||
|
// });
|
||||
|
//
|
||||
|
// }, 2000);
|
||||
|
|
||||
|
}); |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue