|
|
|
@ -120,28 +120,6 @@
|
|
|
|
|
return {
|
|
|
|
|
EXPERTMODE: false,
|
|
|
|
|
configTab: null,
|
|
|
|
|
pagerTypes: [
|
|
|
|
|
{ k: 'Simple', v: 'simple' },
|
|
|
|
|
{ k: 'Duplex', v: 'duplex' },
|
|
|
|
|
],
|
|
|
|
|
deviceType: [
|
|
|
|
|
{ k: 'Generic', v: 'generic' },
|
|
|
|
|
{ k: 'Birdy Slim (IoT)', v: 'birdyslim' },
|
|
|
|
|
],
|
|
|
|
|
connectorTypes: [
|
|
|
|
|
{ k: 'Dummy', v: 'dummy' },
|
|
|
|
|
{ k: 'POCSAG GW', v: 'pocsag' },
|
|
|
|
|
{ k: 'DAPNET', v: 'dapnet' },
|
|
|
|
|
|
|
|
|
|
{ k: 'e*Cityruf inetgw', v: 'ecityruf' },
|
|
|
|
|
{ k: 'e*Cityruf Puppeteer', v: 'em-p-cityruf' },
|
|
|
|
|
{ k: 'e*Cityruf alertManager', v: 'em-a-cityruf' },
|
|
|
|
|
|
|
|
|
|
{ k: 'e*2wayS Puppeteer', v: 'em-p-twoways' },
|
|
|
|
|
{ k: 'e*2wayS alertManager', v: 'em-a-twoways' },
|
|
|
|
|
|
|
|
|
|
{ k: 'LoRaWAN TTNv3', v: 'lorawan' },
|
|
|
|
|
],
|
|
|
|
|
alarmSchedulingMode: [
|
|
|
|
|
{ k: 'Weekly', v: 'weekly' },
|
|
|
|
|
{ k: 'Monthly at first occurance of a specific weekday', v: 'monthlyFirstOccWeekday' },
|
|
|
|
@ -192,31 +170,22 @@
|
|
|
|
|
delete a._id
|
|
|
|
|
return a
|
|
|
|
|
})
|
|
|
|
|
this.$http.post('/config', storeConfig).then(response => {
|
|
|
|
|
this.$http.post('/config', storeConfig)
|
|
|
|
|
.then(response => {})
|
|
|
|
|
.then(this.$http.post('/restart'))
|
|
|
|
|
.then(() => {
|
|
|
|
|
document.body.style = 'display:none'
|
|
|
|
|
setTimeout(() => window.location.reload(), 1e3)
|
|
|
|
|
})
|
|
|
|
|
.then(this.$http.post('/restart'))
|
|
|
|
|
.then(() => {
|
|
|
|
|
document.body.style = 'display:none'
|
|
|
|
|
setTimeout(() => window.location.reload(), 1e3)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
addDeliveryTarget(index) {
|
|
|
|
|
this.configData.alarms[index].params.routing.connectors.push(["connectorName", "connectorParam"])
|
|
|
|
|
},
|
|
|
|
|
addAlarm() {
|
|
|
|
|
this.configData.alarms.push({
|
|
|
|
|
name: "Testalarm",
|
|
|
|
|
params: {
|
|
|
|
|
"type": "simple",
|
|
|
|
|
"routing": {
|
|
|
|
|
"device": "generic",
|
|
|
|
|
"connectors": []
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
"alarmSchedulingMode": "weekly",
|
|
|
|
|
"alarmTime": "13:37",
|
|
|
|
|
"payload": "Probealarm jeden Tag 1337",
|
|
|
|
|
"weekDay": {
|
|
|
|
|
preset: null,
|
|
|
|
|
alarmSchedulingMode: "weekly",
|
|
|
|
|
alarmTime: "13:37",
|
|
|
|
|
payload: "Probealarm jeden Tag 1337",
|
|
|
|
|
weekDay: {
|
|
|
|
|
"0": true,
|
|
|
|
|
"1": true,
|
|
|
|
|
"2": true,
|
|
|
|
|