对比新文件 |
| | |
| | | import request from '@/utils/request'; |
| | | import {getTokenAndVerify} from "@/api/sgyhpczl/auth"; |
| | | |
| | | export function getPageList(data) { |
| | | var arr=[] |
| | | /*编号*/ |
| | | if(data.form.number!=null && data.form.number!=''){ |
| | | arr.push({field:"number",value:data.form.number,type:'TXT'}) |
| | | } |
| | | /*编号*/ |
| | | if(data.form.step!=null && data.form.step!=''){ |
| | | arr.push({field:"step",value:data.form.step,type:'TXT'}) |
| | | } |
| | | /*检查单位*/ |
| | | if(data.form.check_main_branch!=null && data.form.check_main_branch!=''){ |
| | | arr.push({field:"check_main_branch",value:data.form.check_main_branch,type:'OPT'}) |
| | | } |
| | | /*检查部门*/ |
| | | if(data.form.check_branch!=null && data.form.check_branch!=''){ |
| | | arr.push({field:"check_branch",value:data.form.check_branch,type:'OPT'}) |
| | | } |
| | | /*检查人*/ |
| | | if(data.form.check_man!=null && data.form.check_man!=''){ |
| | | arr.push({field:"check_man",value:data.form.check_man,type:'TXT'}) |
| | | } |
| | | /*隐患单位*/ |
| | | if(data.form.ht_community!=null && data.form.ht_community!=''){ |
| | | arr.push({field:"ht_community",value:data.form.ht_community,type:'TXT'}) |
| | | } |
| | | /*隐患部门*/ |
| | | if(data.form.ht_branch!=null && data.form.ht_branch!=''){ |
| | | arr.push({field:"ht_branch",value:data.form.ht_branch,type:'OPT'}) |
| | | } |
| | | /*隐患类别*/ |
| | | 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.checktype!=null && data.form.checktype!=''){ |
| | | arr.push({field:"checktype",value:data.form.checktype,type:'OPT'}) |
| | | } |
| | | /*隐患地点*/ |
| | | if(data.form.address!=null && data.form.address!=''){ |
| | | arr.push({field:"address",value:data.form.address,type:'TXT'}) |
| | | } |
| | | /*隐患内容*/ |
| | | 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_class!=null && data.form.check_class!=''){ |
| | | arr.push({field:"check_class",value:data.form.check_class,type:'OPT'}) |
| | | } |
| | | /*是否关联*/ |
| | | if(data.form.DTRisk_bankId!=null && data.form.DTRisk_bankId!=''){ |
| | | arr.push({field:"DTRisk_bankId",value:data.form.DTRisk_bankId,type:'OPT'}) |
| | | } |
| | | /*录入人*/ |
| | | if(data.form.createBy!=null && data.form.createBy!=''){ |
| | | arr.push({field:"Created_by",value:data.form.createBy,type:'OPT'}) |
| | | } |
| | | /*检查时间*/ |
| | | 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'}) |
| | | |
| | | } |
| | | /*限改时间*/ |
| | | if(data.form.alter_timeStart!=null && data.form.alter_timeStart!='' && data.form.alter_timeEnd!=null && data.form.alter_timeEnd!=''){ |
| | | arr.push({field:"alter_time",value:data.form.alter_timeStart+"至"+data.form.alter_timeEnd,type:'DAT'}) |
| | | |
| | | } |
| | | data.query_condition=arr |
| | | return request({ |
| | | headers:{ |
| | | 'token': getTokenAndVerify().token, |
| | | 'verify':getTokenAndVerify().verify |
| | | }, |
| | | url: "/taboi/danger/company_list", |
| | | contentType: "application/json", |
| | | method: 'POST', |
| | | data |
| | | }); |
| | | } |
| | | |
对比新文件 |
| | |
| | | import request from '@/utils/request'; |
| | | import {getTokenAndVerify} from "@/api/sgyhpczl/auth"; |
| | | |
| | | export function getPageList(data) { |
| | | var arr=[] |
| | | /*编号*/ |
| | | if(data.form.number!=null && data.form.number!=''){ |
| | | arr.push({field:"number",value:data.form.number,type:'TXT'}) |
| | | } |
| | | /*检查单位*/ |
| | | if(data.form.check_main_branch!=null && data.form.check_main_branch!=''){ |
| | | arr.push({field:"check_main_branch",value:data.form.check_main_branch,type:'OPT'}) |
| | | } |
| | | /*检查部门*/ |
| | | if(data.form.check_branch!=null && data.form.check_branch!=''){ |
| | | arr.push({field:"check_branch",value:data.form.check_branch,type:'OPT'}) |
| | | } |
| | | /*检查人*/ |
| | | if(data.form.check_man!=null && data.form.check_man!=''){ |
| | | arr.push({field:"check_man",value:data.form.check_man,type:'TXT'}) |
| | | } |
| | | /*隐患单位*/ |
| | | if(data.form.ht_community!=null && data.form.ht_community!=''){ |
| | | arr.push({field:"ht_community",value:data.form.ht_community,type:'TXT'}) |
| | | } |
| | | /*隐患部门*/ |
| | | if(data.form.ht_branch!=null && data.form.ht_branch!=''){ |
| | | arr.push({field:"ht_branch",value:data.form.ht_branch,type:'OPT'}) |
| | | } |
| | | /*隐患类别*/ |
| | | 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.checktype!=null && data.form.checktype!=''){ |
| | | arr.push({field:"checktype",value:data.form.checktype,type:'OPT'}) |
| | | } |
| | | /*隐患地点*/ |
| | | if(data.form.address!=null && data.form.address!=''){ |
| | | arr.push({field:"address",value:data.form.address,type:'TXT'}) |
| | | } |
| | | /*隐患内容*/ |
| | | 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_class!=null && data.form.check_class!=''){ |
| | | arr.push({field:"check_class",value:data.form.check_class,type:'OPT'}) |
| | | } |
| | | /*是否关联*/ |
| | | if(data.form.DTRisk_bankId!=null && data.form.DTRisk_bankId!=''){ |
| | | arr.push({field:"DTRisk_bankId",value:data.form.DTRisk_bankId,type:'OPT'}) |
| | | } |
| | | /*录入人*/ |
| | | if(data.form.createBy!=null && data.form.createBy!=''){ |
| | | arr.push({field:"Created_by",value:data.form.createBy,type:'OPT'}) |
| | | } |
| | | /*检查时间*/ |
| | | 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'}) |
| | | |
| | | } |
| | | /*限改时间*/ |
| | | if(data.form.alter_timeStart!=null && data.form.alter_timeStart!='' && data.form.alter_timeEnd!=null && data.form.alter_timeEnd!=''){ |
| | | arr.push({field:"alter_time",value:data.form.alter_timeStart+"至"+data.form.alter_timeEnd,type:'DAT'}) |
| | | |
| | | } |
| | | data.query_condition=arr |
| | | return request({ |
| | | headers:{ |
| | | 'token': getTokenAndVerify().token, |
| | | 'verify':getTokenAndVerify().verify |
| | | }, |
| | | url: "/taboi/danger/danger_all_list", |
| | | contentType: "application/json", |
| | | method: 'POST', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | |
| | | //督察督办 |
| | | export function inspect_do(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'token': getTokenAndVerify().token, |
| | | 'verify':getTokenAndVerify().verify |
| | | }, |
| | | url: "/taboi/danger/inspect_do", |
| | | contentType: "application/json", |
| | | method: 'POST', |
| | | data, |
| | | }); |
| | | } |
| | | |
| | | |
| | | //举一反三 |
| | | export function draw_inferences_do(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'token': getTokenAndVerify().token, |
| | | 'verify':getTokenAndVerify().verify |
| | | }, |
| | | url: "/taboi/danger/draw_inferences_do", |
| | | contentType: "application/json", |
| | | method: 'POST', |
| | | data, |
| | | }); |
| | | } |
| | |
| | | <el-form-item style="text-align:center;padding:0 50px"> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-search" @click="getPageList()">查询</el-button> |
| | | <el-button type="primary" class="btns" size="small" @click="reset()">重置</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-upload2">导出excel</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-upload2" @click="exportData">导出excel</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-row class="title-center"> |
| | | <el-col :span="10"> |
| | | <el-radio-group v-model="radio1"> |
| | | <el-radio-button label="待发送">待发送</el-radio-button> |
| | | <el-radio-button label="整改中">整改中</el-radio-button> |
| | | <el-radio-button label="待复查">待复查</el-radio-button> |
| | | <el-radio-button label="整改完成">整改完成</el-radio-button> |
| | | <el-radio-group v-model="YHType"> |
| | | <el-radio-button label="1">待发送</el-radio-button> |
| | | <el-radio-button label="2">整改中</el-radio-button> |
| | | <el-radio-button label="3">待复查</el-radio-button> |
| | | <el-radio-button label="end">整改完成</el-radio-button> |
| | | </el-radio-group> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <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="curWarningLevel" label="当前警情" align="center"> </el-table-column> |
| | | <el-table-column prop="date" label="流程操作" v-if="radio1=='待发送'" align="center" fixed="right"> |
| | | <el-table-column prop="date" label="流程操作" v-if="YHType=='1'" align="center" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="handleClick(scope.row)" type="text" size="small">点击发送</el-button> |
| | | </template> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import {getPageList,delDanger} from "@/api/sgyhpczl/hiddenDangerRegistration"; |
| | | import {initJCBM ,initYHLX, initBC ,initJCLB ,initYHBM ,initYHJB,initLlr} from "@/api/sgyhpczl/initSelect"; |
| | | import {getPageList} from "@/api/sgyhpczl/Issuedbysuperiors"; |
| | | import {danger_export_do} from "@/api/sgyhpczl/hiddenDangerRectification"; |
| | | import {initJCBM ,initYHLX, initBC ,initJCLB ,initYHBM ,initYHJB,initLlr,initReformStatus} from "@/api/sgyhpczl/initSelect"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | radio1:'待发送', |
| | | YHType:'1', |
| | | selectedList:[], |
| | | reList:[{label:"未关联",value:0}], |
| | | llrList:[], |
| | |
| | | JCLBList:[], |
| | | YHBMList:[], |
| | | YHJBList:[], |
| | | YHZTList:[], |
| | | tableData: [], |
| | | listQuery:{ |
| | | page:1, |
| | |
| | | this.initJCLB() |
| | | this.initLlr() |
| | | this.initYHBM() |
| | | this.initYHZT() |
| | | }, |
| | | watch:{ |
| | | "YHType":function (newVal,oldVal){ |
| | | this.getPageList() |
| | | } |
| | | }, |
| | | methods:{ |
| | | deleteBatch(){ |
| | |
| | | }, |
| | | getPageList(){ |
| | | this.listQuery.page=1 |
| | | this.listQuery.form.step = this.YHType; |
| | | this.checkTime() |
| | | getPageList(this.listQuery).then(res=>{ |
| | | if (res.data.ok==1) { |
| | |
| | | initYHJB().then(res=>{ |
| | | if (res.data.ok==1){ |
| | | this.YHJBList=res.data.data |
| | | } else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | | }) |
| | | }, |
| | | initYHZT(){ |
| | | initReformStatus().then(res=>{ |
| | | if (res.data.ok==1){ |
| | | this.YHZTList=res.data.data |
| | | console.log(this.YHZTList) |
| | | } else{ |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | |
| | | .catch(error =>{ |
| | | }); |
| | | }, |
| | | exportData() { |
| | | var requestData = this.listQuery; |
| | | requestData.export_type = 5; |
| | | //删除分页参数 |
| | | this.$delete(requestData, 'page') |
| | | this.$delete(requestData, 'limit') |
| | | danger_export_do(requestData).then(res => { |
| | | var blob = new Blob([res.data]) |
| | | var downloadElement = document.createElement('a') |
| | | var href = window.URL.createObjectURL(blob) //创建下载的链接 |
| | | downloadElement.href = href |
| | | downloadElement.download = '上级下达隐患.xlsx' //下载后文件名 |
| | | document.body.appendChild(downloadElement) |
| | | downloadElement.click() //点击下载 |
| | | document.body.removeChild(downloadElement) //下载完成移除元素 |
| | | window.URL.revokeObjectURL(href) //释放掉blob对象 |
| | | }).catch(err => { |
| | | console.log(err) |
| | | }) |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | this.initWXY() |
| | | this.initDangerRebound() |
| | | this.id = this.$route.query.id; |
| | | this.route = this.$route.query.route; |
| | | if( this.id!=null && this.id!=''){ |
| | | this.initInfo(); |
| | | this.addShow=false |
| | |
| | | |
| | | |
| | | returnIndex(){ |
| | | if(this.route!=null){ |
| | | this.$router.push({ |
| | | path:"/"+this.route |
| | | }) |
| | | }else{ |
| | | this.$router.push({ |
| | | path:"/hiddenDangerRegistration" |
| | | }) |
| | | } |
| | | }, |
| | | submitForm(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | |
| | | editDanger(param).then(res=>{ |
| | | if (res.data.ok==1){ |
| | | this.$message({type:'success', message:"编辑成功", duration:3000}) |
| | | if(this.route!=null){ |
| | | this.$router.push({ |
| | | path:"/"+this.route |
| | | }) |
| | | }else{ |
| | | this.$router.push({ |
| | | path:"/hiddenDangerRegistration" |
| | | }) |
| | | } |
| | | }else { |
| | | this.$message({type:'error', message:res.data.msg, duration:3000}) |
| | | } |
| | |
| | | </el-form-item> |
| | | <el-form-item label="检查时间"> |
| | | <el-col :span="11"> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.check_dateStart" style="width: 100%;" value-format="yyyy-MM-dd"></el-date-picker> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.check_dateStart" |
| | | style="width: 100%;" value-format="yyyy-MM-dd"></el-date-picker> |
| | | </el-col> |
| | | <el-col style="text-align:center" :span="2">-</el-col> |
| | | <el-col :span="11"> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.check_dateEnd" style="width: 100%;" value-format="yyyy-MM-dd"></el-date-picker> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.check_dateEnd" |
| | | style="width: 100%;" value-format="yyyy-MM-dd"></el-date-picker> |
| | | </el-col> |
| | | </el-form-item> |
| | | <el-form-item label="限改时间"> |
| | | <el-col :span="11"> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.alter_timeStart" value-format="yyyy-MM-dd" style="width: 100%;"></el-date-picker> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.alter_timeStart" |
| | | value-format="yyyy-MM-dd" style="width: 100%;"></el-date-picker> |
| | | </el-col> |
| | | <el-col style="text-align:center" :span="2">-</el-col> |
| | | <el-col :span="11"> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.alter_timeEnd" value-format="yyyy-MM-dd" style="width: 100%;"></el-date-picker> |
| | | <el-date-picker type="date" placeholder="选择日期" v-model="listQuery.form.alter_timeEnd" |
| | | value-format="yyyy-MM-dd" style="width: 100%;"></el-date-picker> |
| | | </el-col> |
| | | </el-form-item> |
| | | <el-form-item style="text-align:center;padding:0 50px"> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-search" @click="getPageList()">查询</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-search" @click="getPageList()">查询 |
| | | </el-button> |
| | | <el-button type="primary" class="btns" size="small" @click="reset()">重置</el-button> |
| | | <el-button type="primary" class="btns" size="small" icon="el-icon-upload2">导出excel</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-row class="title-center"> |
| | | <el-col :span="12"> |
| | | <el-radio-group v-model="radio1"> |
| | | <el-radio-button label="超期整改">超期整改</el-radio-button> |
| | | <el-radio-button label="到期未整改">到期未整改</el-radio-button> |
| | | <el-radio-button label="二次整改">二次整改</el-radio-button> |
| | | <el-radio-button label="正在整改">正在整改</el-radio-button> |
| | | <el-radio-button label="正在复查">正在复查</el-radio-button> |
| | | <el-radio-button label="整改完成">整改完成</el-radio-button> |
| | | <el-radio-button label="全部隐患">全部隐患</el-radio-button> |
| | | <el-radio-group v-model="YHType"> |
| | | <el-radio-button label="1">超期整改</el-radio-button> |
| | | <el-radio-button label="2">到期未整改</el-radio-button> |
| | | <el-radio-button label="3">二次整改</el-radio-button> |
| | | <el-radio-button label="4">正在整改</el-radio-button> |
| | | <el-radio-button label="5">正在复查</el-radio-button> |
| | | <el-radio-button label="6">整改完成</el-radio-button> |
| | | <el-radio-button label="0">全部隐患</el-radio-button> |
| | | </el-radio-group> |
| | | </el-col> |
| | | <el-col :span="12" style="text-align:right;" v-if="radio1=='全部隐患'"> |
| | | <el-button type="primary" class="btns" size="small">督查督办</el-button> |
| | | <el-button type="primary" class="btns" size="small">举一反三</el-button> |
| | | <el-col :span="12" style="text-align:right;" v-if="YHType=='0'"> |
| | | <el-button type="primary" class="btns" size="small" @click="supervision('1')">督查督办</el-button> |
| | | <el-button type="primary" class="btns" size="small" @click="supervision('2')">举一反三</el-button> |
| | | <el-button type="primary" class="btns" size="small" @click="base()">双基考核</el-button> |
| | | <el-button type="primary" class="btns" size="small">删除</el-button> |
| | | <el-button type="primary" class="btns" size="small" @click='deleteBatch'>删除</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <el-table :data="tableData" style="width: 100%" @selection-change="changeBox"> |
| | | <el-table :data="tableData" ref="pageTable" style="width: 100%" @selection-change="changeBox"> |
| | | <el-table-column type="selection" width="55" align="center"></el-table-column> |
| | | <el-table-column prop="number" label="编号" align="center" width="120"></el-table-column> |
| | | <el-table-column prop="check_branch" label="检查部门" align="center" width="120"></el-table-column> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="DTRisk_bankId" label="是否关联" align="center"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.DTRisk_bankId==0 || scope.row.DTRisk_bankId=='' || scope.row.DTRisk_bankId==null">未关联</span> |
| | | <span |
| | | v-if="scope.row.DTRisk_bankId==0 || scope.row.DTRisk_bankId=='' || scope.row.DTRisk_bankId==null">未关联</span> |
| | | <span v-else>已关联</span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | |
| | | <!--批量复查弹窗--> |
| | | <el-dialog |
| | | title="提示" |
| | | :visible.sync="dialogVisible" |
| | | :close-on-click-modal="false" |
| | | width="40%" |
| | | > |
| | | <el-form> |
| | | <el-row> |
| | | <el-checkbox style="width: 80px;height: 30px" v-for="item in YHBMList" v-model="checked" |
| | | :label="item.branch_id">{{ |
| | | item.branch_name |
| | | }} |
| | | </el-checkbox> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item style="text-align: center;"> |
| | | <el-button class="btn" size="small" type="primary" @click="submitForm()"> |
| | | 保存 |
| | | </el-button> |
| | | <el-button size="small" @click="close()">关闭</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | |
| | | </template> |
| | | <script> |
| | | import {getPageList,delDanger} from "@/api/sgyhpczl/hiddenDangerRegistration"; |
| | | import {getPageList, inspect_do, draw_inferences_do} from "@/api/sgyhpczl/safetyHazardAccount"; |
| | | import {delDanger} from "@/api/sgyhpczl/hiddenDangerRegistration"; |
| | | |
| | | import {initJCBM ,initYHLX, initBC ,initJCLB ,initYHBM ,initYHJB,initLlr} from "@/api/sgyhpczl/initSelect"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | radio1:'超期整改', |
| | | dialogVisible: false, |
| | | checked: [], |
| | | YHType: '0', |
| | | selectedList:[], |
| | | reList:[{label:"未关联",value:0}], |
| | | llrList:[], |
| | | options: [], |
| | | form:{}, |
| | | |
| | | buttonType: "", |
| | | JCDWList:[{label:"众泰煤焦化",value:0},{label:"上级单位",value:1}], |
| | | JCBMList:[], |
| | | YHLXList:[], |
| | |
| | | YHBMList:[], |
| | | YHJBList:[], |
| | | tableData: [], |
| | | requestData: {}, |
| | | listQuery:{ |
| | | page:1, |
| | | limit:10, |
| | |
| | | recordTotal: 0, |
| | | }; |
| | | }, |
| | | watch: { |
| | | "YHType": function (newVal, oldVal) { |
| | | if (newVal) { |
| | | this.listQuery.type = parseInt(newVal); |
| | | this.getPageList(); |
| | | } |
| | | }, |
| | | "dialogVisible": function (newVal, oldVal) { |
| | | this.checked = []; |
| | | } |
| | | }, |
| | | mounted(){ |
| | | this.getPageList() |
| | | this.initYHLX() |
| | |
| | | this.initYHBM() |
| | | }, |
| | | methods:{ |
| | | close() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | deleteBatch(){ |
| | | if(this.selectedList==null ||this.selectedList.length==0 ){ |
| | | this.$message({type:'warning', message:'至少选中一条数据', duration:3000}) |
| | |
| | | }, |
| | | updateClick(row){ |
| | | this.$router.push({ |
| | | path:"/safetyedit" |
| | | path: "/hiddenDangerAdd?id=" + row.id +"&route=safetyHazardAccount" |
| | | }) |
| | | }, |
| | | jump(){ |
| | |
| | | this.$router.push({ |
| | | path:"/Dualbase" |
| | | }) |
| | | }, |
| | | supervision(type) { |
| | | var selectDataList = this.$refs.pageTable.selection; |
| | | this.buttonType = type; |
| | | if (selectDataList.length != 1) { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '请选择一条数据!' |
| | | }); |
| | | return false; |
| | | } else { |
| | | this.requestData.id = selectDataList[0].id; |
| | | this.dialogVisible = true; |
| | | |
| | | } |
| | | }, |
| | | submitForm() { |
| | | if (this.checked.length == 0) { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '请勾选需要发送的部门!' |
| | | }); |
| | | return; |
| | | } |
| | | this.requestData.branchIds = this.checked.join(";"); |
| | | if (this.buttonType == '1') { |
| | | inspect_do(this.requestData).then(res => { |
| | | if (res.data.ok) { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: res.data.msg |
| | | }); |
| | | this.dialogVisible = false; |
| | | this.getPageList(); |
| | | } else { |
| | | this.$message({ |
| | | type: 'error', |
| | | message: res.data.msg |
| | | }); |
| | | } |
| | | }) |
| | | } else { |
| | | var checkData = this.YHBMList.filter(n => { |
| | | return this.checked.indexOf(n.branch_id) != -1; |
| | | }) |
| | | var branchNames = ""; |
| | | checkData.forEach(n => { |
| | | branchNames += n.branch_name + ";"; |
| | | }) |
| | | this.requestData.branchNames = branchNames; |
| | | draw_inferences_do(this.requestData).then(res => { |
| | | if (res.data.ok) { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: res.data.msg |
| | | }); |
| | | this.dialogVisible = false; |
| | | this.getPageList(); |
| | | } else { |
| | | this.$message({ |
| | | type: 'error', |
| | | message: res.data.msg |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | }; |
| | |
| | | justify-content: left; |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | .inquire .el-form-item { |
| | | padding: 0 30px; |
| | | } |
| | | |
| | | .title-center { |
| | | padding: 20px 0; |
| | | } |
| | | |
| | | .btns { |
| | | background-color: #034ea2; |
| | | border: 1px solid #034ea2; |
| | | } |
| | | |
| | | .title-center /deep/ .el-radio-button:first-child .el-radio-button__inner { |
| | | border: none; |
| | | } |