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