From c6306bb5b6f66f3a12772defa2983df51be31356 Mon Sep 17 00:00:00 2001 From: cqf <1219224667@qq.com> Date: 星期四, 19 五月 2022 22:08:24 +0800 Subject: [PATCH] 您关注的隐患-列表 --- src/views/careabout/index.vue | 90 ++++++++++++++++++++++++++++++++------------ 1 files changed, 65 insertions(+), 25 deletions(-) diff --git a/src/views/careabout/index.vue b/src/views/careabout/index.vue index 2cdb1e8..6d72984 100644 --- a/src/views/careabout/index.vue +++ b/src/views/careabout/index.vue @@ -96,7 +96,7 @@ </el-select> </el-form-item> <el-form-item label="深入现场情况"> - <el-select v-model="listQuery.form.DTRisk_bankId" placeholder="请选择"> + <el-select v-model="listQuery.form.class_situation" placeholder="请选择"> <el-option v-for="item in reList" :key="item.value" @@ -135,8 +135,7 @@ </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-refresh-right" @click="reset()">重置</el-button> + <el-button type="primary" class="btns" size="small" icon="el-icon-refresh-right" @click="reset()">重置</el-button> <el-button type="primary" class="btns" size="small" icon="el-icon-upload2">导出excel</el-button> </el-form-item> </el-form> @@ -162,7 +161,7 @@ <el-table-column prop="check_man" label="检查人" align="center" width="120"></el-table-column> <el-table-column prop="checktype" label="检查类别" align="center"></el-table-column> <el-table-column label="隐患项目" align="center"> - <el-table-column prop="check_date" label="检查时间" width="120" align="center"></el-table-column> + <el-table-column prop="check_date" label="检查时间" :formatter="formatColumnDate" width="120" align="center"></el-table-column> <el-table-column prop="address" label="地点" align="center"> </el-table-column> <el-table-column prop="ht_content" label="内容" align="center"> </el-table-column> <el-table-column prop="ht_typesub" label="类别" align="center"> </el-table-column> @@ -172,21 +171,21 @@ <el-table-column prop="measure" label="整改措施" align="center"> </el-table-column> <el-table-column prop="ht_branch" label="隐患部门" align="center"> </el-table-column> <el-table-column prop="duty_officer" label="责任人" align="center"> </el-table-column> - <el-table-column prop="alter_time" label="限改时间" width="120" align="center"></el-table-column> + <el-table-column prop="alter_time" label="限改时间" :formatter="formatColumnDate" width="120" align="center"></el-table-column> <el-table-column prop="ht_level" label="级别" align="center"> </el-table-column> </el-table-column> <el-table-column label="整改情况" align="center"> - <el-table-column prop="ACCOMPLISHTIME" label="完成时间" width="110px" align="center"> </el-table-column> + <el-table-column prop="ACCOMPLISHTIME" label="完成时间" :formatter="formatColumnDate" width="110px" align="center"> </el-table-column> <el-table-column prop="CALLBACKRESULT" label="复查结果" align="center"> </el-table-column> <el-table-column prop="CALLBACKPERSON" label="复查人" align="center"> </el-table-column> - <el-table-column prop="CALLBACKTIME" label="复查时间" width="120" align="center"></el-table-column> + <el-table-column prop="CALLBACKTIME" label="复查时间" :formatter="formatColumnDate" width="120" align="center"></el-table-column> </el-table-column> <el-table-column label="隐患处理状态" align="center"> <template slot-scope="scope"> <span v-if="scope.row.step =='1'">初始状态</span> <span v-if="scope.row.step =='2'">整改中</span> <span v-if="scope.row.step =='3'">复查中</span> - <span v-if="scope.row.step =='end'">处理结束</span> + <span v-if="scope.row.step =='END'">处理结束</span> </template> </el-table-column> <el-table-column prop="DTRisk_bankId" label="是否关联" align="center"> @@ -227,8 +226,8 @@ </div> </template> <script> - import { getPageList, analogy_export_do} from "@/api/sgyhpczl/oneFromanotherN" - import {initJCBM, initYHLX, initJCLB, initYHJB} from "@/api/sgyhpczl/initSelect"; +import { getPageList, analogy_export_do} from "@/api/sgyhpczl/careabout" +import {initJCBM ,initYHLX, initBC ,initJCLB ,initYHBM ,initYHJB,initLlr} from "@/api/sgyhpczl/initSelect"; export default{ data(){ @@ -248,10 +247,13 @@ currentPage: 1, pageSize: 10, recordTotal: 0, - XFDWList:[], - YHLBList:[], - YHJBList:[], + JCDWList:[{label:"众泰煤焦化",value:0},{label:"上级单位",value:1}], + JCBMList:[], + YHLXList:[], + BCList:[], JCLBList:[], + YHBMList:[], + YHJBList:[], tableData:[], selectedList:[], listLoading: false, @@ -271,10 +273,12 @@ }, mounted() { this.getPageList(); - this.initJCLB(); - this.initXFDW(); + this.initYHLX(); this.initYHJB(); - this.initYHLB(); + this.initBC(); + this.initJCLB(); + this.initLlr(); + this.initYHBM(); }, methods:{ sendBath(){ @@ -301,15 +305,6 @@ this.table2=false } }, - initXFDW(){ - initJCBM(1).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){ @@ -337,6 +332,51 @@ } }) }, + initBC(){ + initBC().then(res=>{ + if (res.data.ok==1){ + this.BCList=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}) + } + }) + }, + initYHBM(){ + initYHBM().then(res=>{ + if (res.data.ok==1){ + this.YHBMList=res.data.data + } else{ + this.$message({type:'error', message:res.data.msg, duration:3000}) + } + }) + }, + initLlr(){ + initLlr().then(res=>{ + if (res.data.ok==1){ + this.llrList=res.data.data + } else{ + this.$message({type:'error', message:res.data.msg, duration:3000}) + } + }) + }, + changeJCDW(val){ + initJCBM(val).then(res=>{ + if (res.data.ok==1){ + this.JCBMList=res.data.data + } else{ + this.$message({type:'error', message:res.data.msg, duration:3000}) + } + }) + }, checkTime(){ if(this.listQuery.form.check_dateStart!=null && this.listQuery.form.check_dateStart!=''){ if(this.listQuery.form.check_dateEnd!=null && this.listQuery.form.check_dateEnd!=''){ -- Gitblit v1.9.2