| | |
| | | |
| | | <el-row style="margin-bottom: 20px"> |
| | | <el-col :span="9"> |
| | | <el-button type="primary" class="btns" @click="addDanger">新增隐患</el-button> |
| | | <el-button type="primary" class="btns" v-show="!update" @click="addDanger">新增隐患</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | |
| | | >编辑 |
| | | </el-button> |
| | | <el-button |
| | | v-if="!update" |
| | | size="mini" |
| | | @click="deleteDanger(scope.row, scope.$index)" |
| | | >删除 |
| | |
| | | <el-col :span="22"> |
| | | <el-form-item style="text-align: center"> |
| | | <el-button type="primary" class="btns" @click="submitForm('ruleForm')" |
| | | >保存</el-button |
| | | >保存 |
| | | </el-button |
| | | > |
| | | <el-button @click="close()">关闭</el-button> |
| | | </el-form-item> |
| | |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="地点" prop="address"> |
| | | <el-input v-model="dangerForm.address" rows="3" type="textarea" class="multiline"></el-input> |
| | | <el-input v-model="dangerForm.address" rows="3" type="textarea" |
| | | class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="隐患内容" prop="ht_content"> |
| | | <el-input v-model="dangerForm.ht_content" rows="3" type="textarea" class="multiline"></el-input> |
| | | <el-input v-model="dangerForm.ht_content" rows="3" type="textarea" |
| | | class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="整改措施" prop="measure"> |
| | | <el-input v-model="dangerForm.measure" rows="3" type="textarea" class="multiline"></el-input> |
| | | <el-input v-model="dangerForm.measure" rows="3" type="textarea" |
| | | class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="关联危险源" prop="DTRisk_bankId"> |
| | | <el-select v-model="dangerForm.DTRisk_bankId" placeholder="请选择" @change="changeWxy" filterable> |
| | | <el-select v-model="dangerForm.DTRisk_bankId" placeholder="请选择" @change="changeWxy" |
| | | filterable> |
| | | <el-option |
| | | v-for="item in dangerList" |
| | | :key="item.id" |
| | |
| | | <el-col :span="22"> |
| | | <el-form-item style="text-align: center"> |
| | | <el-button type="primary" class="btns" @click="submitDanger('form')" |
| | | >保存</el-button |
| | | >保存 |
| | | </el-button |
| | | > |
| | | <el-button @click="dialogVisible=false">关闭</el-button> |
| | | </el-form-item> |
| | |
| | | <script> |
| | | import Titlename from "../../components/Titlename/index.vue"; |
| | | |
| | | import {initJCBM ,initYHLX, initBC ,initJCLB ,initYHBM ,initYHJB,initLlr,initReformStatus,initYwks,initWxy} from "@/api/sgyhpczl/initSelect"; |
| | | import { |
| | | initJCBM, |
| | | initYHLX, |
| | | initBC, |
| | | initJCLB, |
| | | initYHBM, |
| | | initYHJB, |
| | | initLlr, |
| | | initReformStatus, |
| | | initYwks, |
| | | initWxy |
| | | } from "@/api/sgyhpczl/initSelect"; |
| | | import {initDangerRebound} from '@/api/sgyhpczl/hiddenDangerRegistration' |
| | | import {getDangerDetails} from "@/api/sgyhpczl/recheckCancellationNumber"; |
| | | |
| | | import {saveSelfDanger} from '@/api/sgyhpczl/hiddenDangerManagement' |
| | | import {deepClone} from '@/utils' |
| | | |
| | |
| | | llrList:[], |
| | | statusList:[], |
| | | YWKSList:[], |
| | | update: false, |
| | | reboundList:[], |
| | | ruleForm: {}, |
| | | rules: { |
| | |
| | | }; |
| | | }, |
| | | mounted(){ |
| | | if (this.$route.query != null) { |
| | | console.log(11111) |
| | | getDangerDetails(this.$route.query.id).then(res => { |
| | | console.log(res) |
| | | if (res.data.ok) { |
| | | this.tableData.push(res.data.data); |
| | | this.ruleForm.check_date = res.data.data.check_date |
| | | this.ruleForm.check_class = res.data.data.check_class |
| | | this.ruleForm.check_man = res.data.data.check_man |
| | | this.update = true; |
| | | } |
| | | }) |
| | | |
| | | } |
| | | this.initBC() |
| | | //this.initJCLB() |
| | | this.initYHJB() |
| | |
| | | }, |
| | | |
| | | |
| | | |
| | | submitForm(formName) { |
| | | if (!this.update) { |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | if(this.tableData==null || this.tableData.length==0){ |
| | |
| | | return false; |
| | | } |
| | | }); |
| | | } else { |
| | | console.log(this.tableData) |
| | | } |
| | | }, |
| | | close(){ |
| | | this.$router.push({ |