| | |
| | | }, |
| | | onSubmit() { |
| | | var that = this; |
| | | if (typeof that.form.securityArr != "string"){ |
| | | var security = ""; |
| | | that.form.securityArr.forEach((item) => { |
| | | security = security + item + ","; |
| | | |
| | | if (that.form.securityArr != null && that.form.securityArr != ""){ |
| | | that.form.jtype = "1"; |
| | | if (typeof that.form.securityArr != "string"){ |
| | | var security = ""; |
| | | that.form.securityArr.forEach((item) => { |
| | | security = security + item + ","; |
| | | }); |
| | | that.form.securityArr = security.substring(0, security.length - 1); |
| | | } |
| | | |
| | | axios({ |
| | | url: '/api/blade-jfpts/alarm/alarm/submit', |
| | | method: 'post', |
| | | data: that.form |
| | | }).then((resdata) => { |
| | | that.$message({ |
| | | message: '派遣完成', |
| | | type: 'success' |
| | | }); |
| | | }); |
| | | that.form.securityArr = security.substring(0, security.length - 1); |
| | | |
| | | }else { |
| | | that.$message({ |
| | | message: '未选择保安,请重试', |
| | | type: 'warning' |
| | | }); |
| | | } |
| | | |
| | | axios({ |
| | | url: '/api/blade-jfpts/alarm/alarm/submit', |
| | | method: 'post', |
| | | data: that.form |
| | | }).then((resdata) => { |
| | | that.$message({ |
| | | message: '派遣完成', |
| | | type: 'success' |
| | | }); |
| | | }); |
| | | |
| | | |
| | | }, |
| | | |
| | | getReceivingAlarm() { |
| | |
| | | column: [ |
| | | { |
| | | label: "警情类型", |
| | | prop: "waringType", |
| | | prop: "alarmType", |
| | | search: false, |
| | | searchSpan: 3, |
| | | width: 85, |
| | |
| | | label: "未派发", |
| | | value: "0", |
| | | }, |
| | | { |
| | | label: "处理中", |
| | | value: "1", |
| | | }, |
| | | // { |
| | | // label: "处理中", |
| | | // value: "1", |
| | | // }, |
| | | { |
| | | label: "已处理", |
| | | value: "2", |