| | |
| | | id: jid, |
| | | }, |
| | | }).then(function (response) { |
| | | console.log(response, 123) |
| | | var userId = JSON.parse( |
| | | window.localStorage.getItem("物联网安保云服务平台-userInfo") |
| | | ).content.user_id; |
| | | |
| | | if (response.data.data.length > 0) { |
| | | // that.deviceId = response.data.data[0].id; |
| | | that.form = response.data.data[0]; |
| | | |
| | | if (response.data.data.records.length > 0) { |
| | | that.form = response.data.data.records[0]; |
| | | if ( |
| | | response.data.data[0].waringType == "紧急求救" && |
| | | response.data.data[0].alarmId == userId |
| | | response.data.data.records[0].waringType == "紧急求救" && |
| | | response.data.data.records[0].alarmId == userId |
| | | ) { |
| | | response.data.data[0].waringType = "一键求助"; |
| | | response.data.data.records[0].waringType = "一键求助"; |
| | | |
| | | that.peopleList = [ |
| | | { label: that.form.oneContacts, value: that.form.onePhone }, |