| | |
| | | data |
| | | }); |
| | | } |
| | | |
| | | //下发单位 |
| | | export function initXFDW() { |
| | | return request({ |
| | | headers:{ |
| | | 'token': getTokenAndVerify().token, |
| | | 'verify':getTokenAndVerify().verify |
| | | }, |
| | | contentType: "multipart/form-data", |
| | | url: "/taboi/user/review_do", |
| | | method: 'GET', |
| | | }); |
| | | } |
对比新文件 |
| | |
| | | import request from '@/utils/request'; |
| | | import {getTokenAndVerify} from "@/api/sgyhpczl/auth"; |
| | | |
| | | |
| | | export function getPageList(data) { |
| | | var arr=[] |
| | | /*下发单位*/ |
| | | if(data.form.ht_typesub!=null && data.form.ht_typesub!=''){ |
| | | arr.push({field:"ht_typesub",value:data.form.ht_typesub,type:'OPT'}) |
| | | } |
| | | /*隐患单位*/ |
| | | if(data.form.ht_branch!=null && data.form.ht_branch!=''){ |
| | | arr.push({field:"ht_branch",value:data.form.ht_branch,type:'TXT'}) |
| | | } |
| | | /*隐患类别*/ |
| | | if(data.form.ht_typesub!=null && data.form.ht_typesub!=''){ |
| | | arr.push({field:"ht_typesub",value:data.form.ht_typesub,type:'OPT'}) |
| | | } |
| | | /*隐患级别*/ |
| | | if(data.form.ht_level!=null && data.form.ht_level!=''){ |
| | | arr.push({field:"ht_level",value:data.form.ht_level,type:'OPT'}) |
| | | } |
| | | /*隐患地点*/ |
| | | if(data.form.address!=null && data.form.address!=''){ |
| | | arr.push({field:"address",value:data.form.address,type:'TXT'}) |
| | | } |
| | | /*检查类别*/ |
| | | if(data.form.ht_typesub!=null && data.form.ht_typesub!=''){ |
| | | arr.push({field:"ht_typesub",value:data.form.ht_typesub,type:'OPT'}) |
| | | } |
| | | /*隐患内容*/ |
| | | if(data.form.ht_content!=null && data.form.ht_content!=''){ |
| | | arr.push({field:"ht_content",value:data.form.ht_content,type:'TXT'}) |
| | | } |
| | | /*检查时间*/ |
| | | if(data.form.check_dateStart!=null && data.form.check_dateStart!='' && data.form.check_dateEnd!=null && data.form.check_dateEnd!=''){ |
| | | arr.push({field:"check_date",value:data.form.check_dateStart+"至"+data.form.check_dateEnd,type:'DAT'}) |
| | | } |
| | | data.query_condition=arr |
| | | return request({ |
| | | headers:{ |
| | | 'token': getTokenAndVerify().token, |
| | | 'verify':getTokenAndVerify().verify |
| | | }, |
| | | url: "/taboi/analogy/danger_list", |
| | | contentType: "application/json", |
| | | method: 'POST', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | <el-form-item label="下发单位"> |
| | | <el-select v-model="listQuery.form.ht_typesub" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in YHLXList" |
| | | v-for="item in XFDWList" |
| | | :key="item.value" |
| | | :label="item.value" |
| | | :value="item.value"> |
| | |
| | | <el-form-item label="隐患类别"> |
| | | <el-select v-model="listQuery.form.ht_typesub" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in YHLXList" |
| | | v-for="item in YHLBList" |
| | | :key="item.value" |
| | | :label="item.value" |
| | | :value="item.value"> |
| | |
| | | <el-form-item label="检查类别"> |
| | | <el-select v-model="listQuery.form.ht_typesub" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in YHLXList" |
| | | v-for="item in JCLBList" |
| | | :key="item.value" |
| | | :label="item.value" |
| | | :value="item.value"> |
| | |
| | | <el-button class="btns" type="primary" size="small" @click="sendBath()">撤销</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-table ref="dataTable" :data="tableData" style="width: 100%" @selection-change="handleSelectionChange"> |
| | | <el-table |
| | | v-loading="listLoading" |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center"></el-table-column> |
| | | <el-table-column prop="check_date" label="检查时间" width="120" align="center"> |
| | | <template slot-scope="scope"> |
| | | <!-- <template slot-scope="scope"> |
| | | <label>{{ formatDate(scope.row.check_date)}}</label><br/> |
| | | <label>{{ scope.row.check_class}}</label> |
| | | </template> |
| | | </template> --> |
| | | </el-table-column> |
| | | <el-table-column prop="check_branch" label="检查单位" align="center"></el-table-column> |
| | | <el-table-column prop="check_main_branch" label="检查单位" align="center"></el-table-column> |
| | | <el-table-column prop="checktype" label="检查类别" align="center"></el-table-column> |
| | | <el-table-column prop="measure" label="被检单位" align="center"></el-table-column> |
| | | <el-table-column prop="date" label="隐患类别" align="center"></el-table-column> |
| | | <el-table-column prop="DTRisk_level" label="隐患级别" align="center"></el-table-column> |
| | | <el-table-column prop="warningLevel" label="隐患地点" align="center"></el-table-column> |
| | | <el-table-column prop="address" label="隐患地点" align="center"></el-table-column> |
| | | <el-table-column prop="curWarningLevel" label="内容" width="200" align="center"></el-table-column> |
| | | <el-table-column prop="curWarningLevel" label="下发单位" align="center"></el-table-column> |
| | | <el-table-column prop="date" label="流程操作" align="center"> |
| | |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { getPageList } from "@/api/sgyhpczl/oneFromanother" |
| | | import {initXFDW, initYHLX, initJCLB, initYHJB} from "@/api/sgyhpczl/initSelect"; |
| | | |
| | | export default{ |
| | | data(){ |
| | | return{ |
| | | listQuery:{ |
| | | form:{} |
| | | page:1, |
| | | limit:10, |
| | | type: 0, |
| | | form:{}, |
| | | }, |
| | | radio1:'待自查', |
| | | XFDWList:[], |
| | | YHLBList:[], |
| | | YHJBList:[], |
| | | JCLBList:[], |
| | | tableData:[], |
| | | radio1:'待自查', |
| | | listLoading: false, |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getPageList(); |
| | | this.initJCLB(); |
| | | this.initXFDW(); |
| | | this.initYHJB(); |
| | | this.initYHLB(); |
| | | }, |
| | | methods:{ |
| | | sendBath(){ |
| | |
| | | path:'/exist' |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | initXFDW(){ |
| | | initXFDW().then(res=>{ |
| | | if (res.data.ok==1){ |
| | | this.XFDWList=res.data.data |
| | | } else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | | }) |
| | | }, |
| | | initYHLB(){ |
| | | initYHLX().then(res=>{ |
| | | if (res.data.ok==1){ |
| | | this.YHLBList=res.data.data |
| | | } else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | | }) |
| | | }, |
| | | initYHJB(){ |
| | | initYHJB().then(res=>{ |
| | | if (res.data.ok==1){ |
| | | this.YHJBList=res.data.data |
| | | } else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | | }) |
| | | }, |
| | | initJCLB(){ |
| | | initJCLB().then(res=>{ |
| | | if (res.data.ok==1){ |
| | | this.JCLBList=res.data.data |
| | | } else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | | }) |
| | | }, |
| | | //搜索 |
| | | getPageList(){ |
| | | this.listQuery.page=1 |
| | | // this.checkTime() |
| | | getPageList(this.listQuery).then(res=>{ |
| | | if (res.data.ok==1) { |
| | | this.tableData = res.data.data.items |
| | | this.recordTotal=res.data.data.total |
| | | }else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | background-color: #034ea2; |
| | | background-color: #034ea2; |
| | | } |
| | | </style> |
| | | </style> |