| | |
| | | }, |
| | | created() { |
| | | this.form = this.$route.query; |
| | | if ( |
| | | !( |
| | | this.form.securityArr && |
| | | this.form.securityArr != null && |
| | | this.form.securityArr != undefined && |
| | | this.form.securityArr.length > 0 |
| | | ) |
| | | ) { |
| | | this.form.securityArr = []; |
| | | } |
| | | this.updatedPageData(); |
| | | this.vaddress = this.form.vaddress; |
| | | this.getReceivingAlarm(); |
| | |
| | | bz: this.form.bz, |
| | | snumber: this.form.alarmId, |
| | | sname: this.form.alarmPeople, |
| | | deviceNumber:this.form.deviceNumber, |
| | | deviceNumber: this.form.deviceNumber, |
| | | zc: zc, |
| | | zctime: this.getDate().current, |
| | | }; |
| | |
| | | |
| | | getList() { |
| | | var that = this; |
| | | var deptid = that.form.deptId.slice(0,19);//报错deptId格式不对liu.2021.5.7 |
| | | var deptid = that.form.deptId.slice(0, 19); //报错deptId格式不对liu.2021.5.7 |
| | | axios |
| | | .get( |
| | | `/api/blade-user/pages?current=1&size=9999&work_status=&deptId=${deptid}` |
| | |
| | | .then(function (res) { |
| | | that.tableData = []; |
| | | var i = 0; |
| | | |
| | | if (that.form.securityArr.length > 0) { |
| | | console.log(that.form, 89); |
| | | if ( |
| | | that.form.securityArr && |
| | | that.form.securityArr != null && |
| | | that.form.securityArr != undefined && |
| | | that.form.securityArr.length > 0 |
| | | ) { |
| | | res.data.data.records.forEach((item) => { |
| | | if (item.id == that.form.securityId) { |
| | | that.tableData.push({ |
| | |
| | | }, |
| | | }).then(function (res) { |
| | | that.form = res.data.data.records[0]; |
| | | that.getList();//报错deptId格式不对liu.2021.5.7 |
| | | if ( |
| | | !( |
| | | that.form.securityArr && |
| | | that.form.securityArr != null && |
| | | that.form.securityArr != undefined && |
| | | that.form.securityArr.length > 0 |
| | | ) |
| | | ) { |
| | | that.form.securityArr = []; |
| | | } |
| | | that.getList(); //报错deptId格式不对liu.2021.5.7 |
| | | }); |
| | | }, |
| | | }, |