| | |
| | | submitSafetyRiskSpace(){ |
| | | this.$refs["safetyRiskSpaceForm"].validate((valid) =>{ |
| | | if(valid){ |
| | | debugger |
| | | addSafetyRiskSpace(this.safetyRiskSpaceForm).then((res)=>{ |
| | | if(res.data.code === '200'){ |
| | | this.safetyRiskSpaceVisible = false |
| | |
| | | }, |
| | | onFileSuccess(response){ |
| | | if(response.code === '200'){ |
| | | debugger |
| | | this.safetyRiskSpaceForm.img = response.result.path |
| | | this.fileList = [] |
| | | this.fileList.push({url:process.env.IMG_API + response.result.path}) |
| | |
| | | } |
| | | }, |
| | | handleFile(file){ |
| | | debugger |
| | | this.dialogImageUrl = file.url; |
| | | this.dialogVisible = true; |
| | | }, |