| | |
| | | data |
| | | }); |
| | | } |
| | | //不存在结果详情 |
| | | export function selfCheckNotInfo(params) { |
| | | return request({ |
| | | headers: { |
| | | 'token': getTokenAndVerify().token, |
| | | 'verify': getTokenAndVerify().verify |
| | | }, |
| | | url: '/taboi/danger/self_check_not_info', |
| | | // '?id=24871&type=0', |
| | | contentType: "multipart/form-data", |
| | | method: 'GET', |
| | | params:params?params:{} |
| | | }); |
| | | } |
| | |
| | | meta: { title: '内部举一反三', icon: '' } |
| | | }, |
| | | { |
| | | path: '/addDanger', |
| | | component: () => import('@/views/oneFromanotherN/addDanger'), |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/existN', |
| | | component: () => import('@/views/oneFromanotherN/existN'), |
| | | hidden: true |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- <el-row style="margin-bottom: 20px" v-if="addShow"> |
| | | <el-row style="margin-bottom: 20px"> |
| | | <el-col :span="9"> |
| | | <el-button type="primary" class="btns" @click="addDanger">新增隐患</el-button> |
| | | </el-col> |
| | | </el-row> --> |
| | | </el-row> |
| | | |
| | | <el-table :data="tableData" style="width: 100%"> |
| | | <el-table-column type="index" width="55" align="center" label="序号"></el-table-column> |
| | |
| | | initYHLX, |
| | | initYwks |
| | | } from "@/api/sgyhpczl/initSelect"; |
| | | import {getPageList,initDangerRebound} from '@/api/sgyhpczl/hiddenDangerRegistration' |
| | | import {getPageList,initDangerRebound,saveDanger} from '@/api/sgyhpczl/hiddenDangerRegistration' |
| | | import {deepClone} from '@/utils' |
| | | |
| | | export default { |
| | |
| | | address: [{ required: true, message: '不能为空', trigger: 'blur' },], |
| | | ht_content: [{ required: true, message: '不能为空', trigger: 'blur' },], |
| | | ht_typesub: [{ required: true, message: '不能为空', trigger: 'blur' },], |
| | | measure: [{ required: true, message: '不能为空', trigger: 'blur' },], |
| | | DTRisk_bankId: [{ required: true, message: '不能为空', trigger: 'blur' },], |
| | | ht_level: [{ required: true, message: '不能为空', trigger: 'blur' },], |
| | | alter_time: [{ required: true, message: '不能为空', trigger: 'blur' },], |
| | |
| | | pageSize: 10, |
| | | recordTotal: 0, |
| | | detailTableData:[],//隐患详情列表 |
| | | beforeData:{}, //上个页面信息 |
| | | beforeFlag:true,//上个页面信息保存标志 |
| | | }; |
| | | }, |
| | | |
| | |
| | | initInfo(data){ |
| | | this.paramsData = this.$route.query.data; |
| | | this.ruleForm.jyfsId = data.id; |
| | | this.tableData[0] = { |
| | | address: data.address, |
| | | ht_content: data.ht_content, |
| | | ht_level: data.ht_level, |
| | | }; |
| | | this.dangerForm.address = data.address; |
| | | this.dangerForm.ht_content = data.ht_content; |
| | | // this.tableData[0] = { |
| | | // address: data.address, |
| | | // ht_content: data.ht_content, |
| | | // ht_level: data.ht_level, |
| | | // }; |
| | | }, |
| | | |
| | | // async initInfo(){ |
| | |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | if(this.title=='新增'){ |
| | | this.beforeFlag = false; |
| | | this.tableData.push(this.dangerForm) |
| | | console.log(this.tableData) |
| | | }else { |
| | | var arr = this.tableData; |
| | | arr.splice(this.rowIndex, 1, this.dangerForm); |
| | |
| | | }, |
| | | |
| | | addDanger(){ |
| | | if (!this.beforeFlag){ |
| | | this.dangerForm={} |
| | | } |
| | | this.title="新增" |
| | | this.dialogVisible=true |
| | | }, |
| | |
| | | }, |
| | | submitForm(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | |
| | | if (valid) { |
| | | this.ruleForm.items=this.tableData |
| | | if(this.judge(this.tableData[0])){ |
| | | this.$message({type:'error', message:"请完整录入隐患", duration:2000}) |
| | | } |
| | | // if(this.addShow){ |
| | | console.log(this.ruleForm) |
| | | saveDanger(this.ruleForm).then(res=>{ |
| | |
| | | this.$nextTick(() =>{ |
| | | this.$refs["selfInspectForm"].clearValidate() |
| | | }) |
| | | this.selfInspectForm={} |
| | | this.selfInspectForm={id:data.id} |
| | | this.selfInspectVisible = true |
| | | if (this.listQuery.type == '1'){ |
| | | let params = { |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { getPageList, edit, del, send, revoke,selfCheckNotInfo} from "@/api/sgyhpczl/oneFromanotherN" |
| | | import { getPageList, edit, del, send, revoke} from "@/api/sgyhpczl/oneFromanotherN" |
| | | import {noExistSave,selfCheckNotInfo} from "@/api/sgyhpczl/oneFromanother" |
| | | import {initJCBM, initYHLX, initJCLB, initYHJB,initYHBM} from "@/api/sgyhpczl/initSelect"; |
| | | import {deepClone} from '@/utils' |
| | | |
| | |
| | | this.$nextTick(() =>{ |
| | | this.$refs["selfInspectForm"].clearValidate() |
| | | }) |
| | | this.selfInspectForm={} |
| | | this.selfInspectForm={id:data.id} |
| | | this.selfInspectVisible = true |
| | | if (this.listQuery.sendType == '1'){ |
| | | let params = { |
| | | id: data.id, |
| | | type: 0, |
| | | type: 1, |
| | | } |
| | | selfCheckNotInfo(params).then(res=>{ |
| | | if (res.data.ok==1){ |