| | |
| | | </el-col> |
| | | </el-row>--> |
| | | |
| | | <el-row> |
| | | <el-row style="margin-bottom: 20px"> |
| | | <el-col :span="9"> |
| | | <el-button type="primary" class="btns" @click="addDanger">新增隐患</el-button> |
| | | </el-col> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row>--> |
| | | <el-row> |
| | | <el-row style="margin-top: 20px"> |
| | | <el-col :span="22"> |
| | | <el-form-item style="text-align: center"> |
| | | <el-button type="primary" class="btns" @click="submitDanger('form')" |
| | |
| | | if (res.data.ok==1){ |
| | | this.$message({type:'success', message:"新增成功", duration:3000}) |
| | | this.$router.push({ |
| | | path:"/hiddenDangerRegistration" |
| | | path:"/hiddenDangerManagement" |
| | | }) |
| | | }else { |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | |
| | | } |
| | | }); |
| | | }, |
| | | close(){ |
| | | this.$router.push({ |
| | | path:"/hiddenDangerManagement" |
| | | }) |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |