vmaif
This commit is contained in:
@@ -1358,9 +1358,8 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
|
||||
StartAlarmProcess() {
|
||||
StartAlarmProcessProc() {
|
||||
const self = this;
|
||||
const alarming = function alarming(self) {
|
||||
new Dexie.Promise.resolve().then(() => {
|
||||
return self.PrepareVehicleNeedList();
|
||||
}).then(() => {
|
||||
@@ -1420,8 +1419,10 @@ class AutomaticDispose {
|
||||
}, 250);
|
||||
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
StartAlarmProcess() {
|
||||
const self = this;
|
||||
|
||||
var $div = $("#mission-form > div:nth-child(7) > a");
|
||||
var isShow = $div.is(':hidden');
|
||||
@@ -1429,22 +1430,21 @@ class AutomaticDispose {
|
||||
if ($div.length && isShow && 1 == 0) {
|
||||
var observer = new MutationObserver(function (mutations) {
|
||||
mutations.forEach(function (mutation) {
|
||||
console.log(mutation.type, self.MissionID);
|
||||
console.table(mutation, self.MissionID);
|
||||
if (mutation.attributeName === "style") {
|
||||
setTimeout(function () {
|
||||
alarming(self)
|
||||
}, 1500);
|
||||
self.StartAlarmProcessProc()
|
||||
}
|
||||
});
|
||||
});
|
||||
observer.observe($div[0], {
|
||||
attributes: true
|
||||
attributes: true,
|
||||
characterData: true
|
||||
});
|
||||
|
||||
$div.click();
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
alarming(self)
|
||||
}, 500);
|
||||
self.StartAlarmProcessProc()
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user