v2 up aiogja80a

This commit is contained in:
2018-12-03 12:00:44 +01:00
parent ec01dfbec1
commit ea290015ef
3 changed files with 30 additions and 8 deletions

View File

@@ -1279,7 +1279,7 @@ class AutomaticDispose {
if (self.MyRunner == 'os') {
self.OweSecure = true;
}
self.GetMissionConfiguration(self.MyRunner == 'kt' ? 147 : Mission.type);
self.GetMissionConfiguration(Mission.type);
}
});
}
@@ -1313,35 +1313,45 @@ class AutomaticDispose {
StartAlarmProcess() {
const self = this;
setTimeout(function () {
console.log('StartAlarmProcess')
Promise.resolve().then(async () => {
console.log('PrepareVehicleNeedList')
return await self.PrepareVehicleNeedList();
}).then(async () => {
console.log('CollectInvolvedVehicles')
return await self.CollectInvolvedVehicles();
}).then(async () => {
console.log('CollectPatients')
return await self.CollectPatients();
})
.then(async () => {
console.log('ProcessEmergencyMedicalService')
return await self.ProcessEmergencyMedicalService()
})
.then(async () => {
console.log('ProcessFireDepartment')
return await self.ProcessFireDepartment()
})
.then(async () => {
console.log('ProcessPoliceDepartment')
return await self.ProcessPoliceDepartment()
})
.then(async () => {
console.log('ProcessTechnicalEmergencyService')
return await self.ProcessTechnicalEmergencyService()
})
.then(async () => {
console.log('ProcessWaterRescue')
return await self.ProcessWaterRescue()
}).then(() => {
console.log('OweSecure?')
if (self.OweSecure) {
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').length > 0) {
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
}
}
console.log('MissionConfig.share?')
// TODO check cars driving or already there
if (self.MissionConfig.share){
console.log('self.MissionConfig.share',self.MissionConfig.share)
@@ -1352,10 +1362,11 @@ class AutomaticDispose {
continue;
}
elems[i].click();
}
}
console.log('MissionConfig.share - after')
console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked'));
console.log("WILL KLICK SEND")
setTimeout(() => {