Your Name
2022-09-26 bb455cebea17349a2f5ed0d4e86eac3905b24585
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-0103"],{UyGd:function(t,e,a){"use strict";a.d(e,"j",function(){return s}),a.d(e,"h",function(){return o}),a.d(e,"i",function(){return i}),a.d(e,"l",function(){return l}),a.d(e,"e",function(){return c}),a.d(e,"k",function(){return u}),a.d(e,"f",function(){return d}),a.d(e,"c",function(){return p}),a.d(e,"b",function(){return f}),a.d(e,"d",function(){return h}),a.d(e,"a",function(){return m}),a.d(e,"g",function(){return b});var n=a("X4fA"),r=a("t3Un");function s(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetySelfInspection/page",method:"post",data:t})}function o(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetySelfInspection/info",method:"post",data:t})}function i(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetySelfInspection/itemInfo",method:"post",data:t})}function l(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetySelfInspection/modItemInfo",method:"post",data:t})}function c(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetySelfInspection/add",method:"post",data:t})}function u(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetySelfInspection/mod",method:"post",data:t})}function d(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetySelfInspection/del",method:"post",data:t})}function p(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/elementManagement/getElementTree",method:"post",data:t})}function f(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/getUserList",method:"post",data:t})}function h(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetyInspectionItem/infoElementA",method:"post",data:t})}function m(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetyInspectionItem/info",method:"post",data:t})}function b(t){return Object(r.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safetySelfInspection/finish",method:"post",data:t})}},VT2g:function(t,e,a){"use strict";a.r(e);var n=a("cLjf"),r=a.n(n),s=a("hDQ3"),o=a.n(s),i=a("bS4n"),l=a.n(i),c=a("jJIE"),u=a.n(c),d=a("d8E+"),p=a("8t5x"),f=(a("7Qib"),a("6Mdz")),h=a("WgQi"),m=a("UyGd"),b={name:"index",filters:{parseType:function(t){return 1===t?"日常检查":"周期检查"},parseStatus:function(t){return 1===t?"任务开启":"任务关闭"},parseUnitStatus:function(t){return 1===t?"待巡检":2===t?"已完成":void 0},parseStatusList:function(t){return 1===t?"待巡检":2===t?"巡检中":3===t?"已完成":4===t?"超时未巡检":"已取消"}},computed:l()({},Object(p.b)(["userType"])),data:function(){return{tableKey:0,inspectionRecordData:[],departmentList:[],userList:[],typeList:[{id:1,name:"日常检查"},{id:2,name:"周期检查"}],statusListList:[{id:1,name:"待巡检"},{id:2,name:"巡检中"},{id:3,name:"已完成"},{id:4,name:"超时未巡检"},{id:5,name:"已取消"}],resultList:[{id:1,name:"正常"},{id:2,name:"存在隐患"},{id:3,name:"未排查"},{id:4,name:"其他"}],checkResultList:[{id:1,name:"正常"},{id:2,name:"异常"},{id:3,name:"未处理"}],taskStatusList:[{id:1,name:"待排查"},{id:2,name:"已完成"},{id:3,name:"超时未排查"},{id:4,name:"排查中"}],taskTypeList:[{id:1,name:"周期任务"},{id:2,name:"日常任务"}],listLoading:!1,pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,title:"",company:"",code:"",inspectionRecordForm:{},listQuery:{pageIndex:1,pageSize:10,result:null,taskStatus:null,execDepId:null,taskType:null}}},components:{detail:d.default},created:function(){this.getInspectionRecordData(),this.getDepartment(),this.getUser()},methods:{getInspectionRecordData:function(){var t=this;return o()(r.a.mark(function e(){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(f.g)(t.listQuery);case 3:"200"===(a=e.sent).data.code?(t.recordTotal=a.data.count,t.inspectionRecordData=a.data.data):t.$message({message:a.data.message,type:"warning"}),t.listLoading=!1;case 6:case"end":return e.stop()}},e,t)}))()},getDepartment:function(){var t=this;return o()(r.a.mark(function e(){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.e)({pageSize:1e3,pageIndex:1});case 2:"200"===(a=e.sent).data.code?t.departmentList=a.data.result.result:t.$message({message:a.data.message,type:"warning"});case 4:case"end":return e.stop()}},e,t)}))()},getUser:function(){var t=this;return o()(r.a.mark(function e(){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.b)();case 2:"200"===(a=e.sent).data.code?t.userList=a.data.result:t.$message({message:a.data.message,type:"warning"});case 4:case"end":return e.stop()}},e,t)}))()},onHandleTask:function(t){var e=this;this.$confirm("此操作将认领该任务,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(f.l)({id:t.id}).then(function(t){"200"===t.data.code?(e.getInspectionRecordData(),e.$notify({title:"成功",message:"认领成功",type:"success",duration:2e3})):e.$message({type:"warning",message:t.data.message})})})},onOpenDialogRef:function(t,e){this.$refs.detail.showInspectionRecordForm(t,e)},showInspectionRecordDetailForm:function(t,e){this.$refs.detail.showInspectionRecordDetailForm(t,e,this.userList,this.departmentList)},submitInspectionRecordForm:function(t){var e=this;return o()(r.a.mark(function a(){var n;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(void 0!==t.unitList.find(function(t){return 1===t.status})){a.next=8;break}return{},a.next=4,Object(f.i)({execUid:u.a.get("userId"),info:"",taskId:t.id});case 4:"200"===(n=a.sent).data.code?(e.getInspectionRecordData(),e.$message({type:"success",message:"提交成功",duration:2e3,title:"成功"})):e.$message({type:"warning",message:n.data.message}),a.next=9;break;case 8:e.$message({type:"warning",message:"请先上报所有巡检单元"});case 9:case"end":return a.stop()}},a,e)}))()},downloadFile:function(t){if(null===t.problem.imageInfoList)this.$message({type:"warning",message:"无文件可下载"});else for(var e in t.problem.imageInfoList)window.open("http://222.92.213.22:8006/zhongtai/upload/"+t.problem.imageInfoList[e].imgPath,"_blank")},parseNumber:function(t,e){return"状态"===e?this.taskStatusList.find(function(e){return e.id===t}).name:"检查结果"===e?this.checkResultList.find(function(e){return e.id===t}).name:1===t?"未认领":"已认领"},refreshHandle:function(){this.getInspectionRecordData()},handleSizeChange:function(t){this.listQuery.pageSize=t,this.getInspectionRecordData()},handleCurrentChange:function(t){this.listQuery.pageIndex=t,this.getInspectionRecordData()}}},g=(a("j7xG"),a("ZrdR")),v=Object(g.a)(b,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"basic_search"},[a("span",[t._v("排查结果:")]),t._v(" "),a("el-select",{staticClass:"analyseUnit_box",attrs:{placeholder:"排查结果",filterable:"",clearable:""},model:{value:t.listQuery.result,callback:function(e){t.$set(t.listQuery,"result",e)},expression:"listQuery.result"}},t._l(t.resultList,function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),a("div",{staticClass:"basic_search"},[a("span",[t._v("排查任务状态:")]),t._v(" "),a("el-select",{staticClass:"analyseUnit_box",attrs:{placeholder:"排查任务状态",filterable:"",clearable:""},model:{value:t.listQuery.taskStatus,callback:function(e){t.$set(t.listQuery,"taskStatus",e)},expression:"listQuery.taskStatus"}},t._l(t.taskStatusList,function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),a("div",{staticClass:"basic_search"},[a("span",[t._v("任务类型:")]),t._v(" "),a("el-select",{staticClass:"analyseUnit_box",attrs:{placeholder:"任务类型",filterable:"",clearable:""},model:{value:t.listQuery.taskType,callback:function(e){t.$set(t.listQuery,"taskType",e)},expression:"listQuery.taskType"}},t._l(t.taskTypeList,function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),a("div",{staticClass:"basic_search"},[a("span",[t._v("部门名称:")]),t._v(" "),a("el-select",{staticClass:"analyseUnit_box",attrs:{placeholder:"部门名称",filterable:"",clearable:""},model:{value:t.listQuery.execDepId,callback:function(e){t.$set(t.listQuery,"execDepId",e)},expression:"listQuery.execDepId"}},t._l(t.departmentList,function(t){return a("el-option",{key:t.id,attrs:{label:t.department,value:t.id}})}))],1),t._v(" "),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px","margin-top":"10px"},attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.refreshHandle}},[t._v("搜索")])],1),t._v(" "),a("div",{staticClass:"table_content"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.inspectionRecordData}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.row.checkContent}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"150",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"检查内容",prop:"checkContent",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"检查结果",prop:"checkResult",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:1===e.row.checkResult?"success":2===e.row.checkResult?"danger":"info"}},[t._v("\n                                    "+t._s(t.parseNumber(e.row.checkResult,"检查结果"))+"\n                                ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"280","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"small",type:"text"},on:{click:function(a){t.onOpenDialogRef("查看",e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{size:"small",type:"text"},on:{click:function(a){t.onOpenDialogRef("提交",e.row)}}},[t._v("提交")])]}}])})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{type:"index",label:"序号",width:"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCode",label:"排查名称","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"execDep",label:"执行部门","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"taskStatus",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n                    "+t._s(t.parseNumber(e.row.taskStatus,"状态"))+"\n                ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskBelong",label:"是否认领","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n                    "+t._s(t.parseNumber(e.row.taskBelong,"认领状态"))+"\n                ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"startTime",label:"开始时间","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"validTime",label:"有效时间","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"execUserName",label:"执行人","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"createUserName",label:"创建人","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"gmtCreate",label:"创建时间","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"lastEditUserName",label:"最后修改人","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"gmtModitify",label:"最后修改时间","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"280","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{directives:[{name:"show",rawName:"v-show",value:(1===e.row.taskStatus||4===e.row.taskStatus)&&1===e.row.taskBelong,expression:"(scope.row.taskStatus === 1 || scope.row.taskStatus === 4) && scope.row.taskBelong === 1"}],attrs:{type:"text"},on:{click:function(a){t.onHandleTask(e.row)}}},[t._v("任务认领")])]}}])})],1),t._v(" "),a("br"),t._v(" "),a("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":t.listQuery.pageIndex,"page-sizes":[10,20,30,50],"page-size":t.listQuery.pageSize,total:t.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}),t._v(" "),a("br")],1),t._v(" "),a("detail",{ref:"detail",on:{refreshRecord:t.getInspectionRecordData}})],1)},[],!1,null,"a1abc7d8",null);v.options.__file="index.vue";e.default=v.exports},WgQi:function(t,e,a){"use strict";a.d(e,"e",function(){return s}),a.d(e,"a",function(){return o}),a.d(e,"f",function(){return i}),a.d(e,"b",function(){return l}),a.d(e,"d",function(){return c}),a.d(e,"c",function(){return u});var n=a("t3Un"),r=a("X4fA");function s(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.22:8006/zhongtai/department",method:"get",params:t||{}})}function o(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.22:8006/zhongtai/addDepartment",method:"post",data:t})}function i(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.22:8006/zhongtai/putDepartment",method:"post",data:t})}function l(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.22:8006/zhongtai/delDepartment",method:"post",data:t})}function c(){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.22:8006/zhongtai/departmentList",method:"get"})}function u(t){return Object(n.a)({headers:{Authorization:Object(r.a)()},url:"http://222.92.213.22:8006/zhongtai/department-userList",method:"post",data:t})}},gX8V:function(t,e,a){},j7xG:function(t,e,a){"use strict";var n=a("gX8V");a.n(n).a}}]);