| | |
| | | }, |
| | | methods: { |
| | | startElevator() { |
| | | this.http.post(`http://localhost:9291/api/Elevator/startElevator`) |
| | | this.http.post(`http://10.31.3.241:9291/api/Elevator/startElevator`) |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message) |
| | |
| | | }) |
| | | }, |
| | | stopElevator() { |
| | | this.http.post(`http://localhost:9291/api/Elevator/stopElevator`) |
| | | this.http.post(`http://10.31.3.241:9291/api/Elevator/stopElevator`) |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message) |
| | |
| | | }) |
| | | }, |
| | | ResetElevator() { |
| | | this.http.post(`http://localhost:9291/api/Elevator/ResetElevator`) |
| | | this.http.post(`http://10.31.3.241:9291/api/Elevator/ResetElevator`) |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message) |
| | |
| | | }) |
| | | }, |
| | | initialzationElevator() { |
| | | this.http.post(`http://localhost:9291/api/Elevator/initialization`) |
| | | this.http.post(`http://10.31.3.241:9291/api/Elevator/initialization`) |
| | | .then((x) => { |
| | | if (!x.status) { |
| | | this.$message.error(x.message) |