| | |
| | | }, |
| | | 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() { |