(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18af9f1c"],{5685:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"container"},[s("Header",{attrs:{title:"检查计划"}}),s("div",{staticClass:"main"},[s("van-collapse",{attrs:{accordion:""},on:{change:t.setChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},t._l(t.list,(function(e,a){return s("van-collapse-item",{key:a,staticClass:"collapse",attrs:{name:e.riskUnitId},scopedSlots:t._u([{key:"title",fn:function(){return[s("div",[s("p",[t._v(t._s(a+1)+". "+t._s(e.riskUnitName))]),s("p",{staticClass:"lastP"},[s("span",[t._v("管控措施:")]),t._v(t._s(e.riskMeasureCount)+" "),s("b",[t._v("|")]),s("span",[t._v("排查任务:")]),t._v(t._s(e.checkTaskInventoryCount)+" ")])])]},proxy:!0}],null,!0)},[s("van-tabs",{attrs:{animated:"",color:"#1c4990"},on:{click:t.setTab},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[s("van-tab",{attrs:{title:"未完成",name:"0"}},[t._l(t.childrenList1,(function(e,a){return s("van-swipe-cell",{key:a,scopedSlots:t._u([{key:"right",fn:function(){return[s("button",{staticClass:"appearBtn",on:{click:function(s){return t.addDanger(e.areaId)}}},[t._v("隐患上报")])]},proxy:!0}],null,!0)},[s("div",{staticClass:"swipeCell"},[s("p",[t._v(t._s(a+1)+". "+t._s(e.riskEeasureItem))]),s("p",{staticClass:"types",style:{background:e.status?"#1c4990":"orange"}},[t._v(" "+t._s(e.status?"已巡检":"待巡检")+" ")])])])})),t.childrenList1.length?t._e():s("p",{staticStyle:{"text-align":"center"}},[t._v(" 没有更多了 ")])],2),s("van-tab",{attrs:{title:"已完成",name:"1"}},[t._l(t.childrenList,(function(e,a){return s("van-swipe-cell",{key:a,scopedSlots:t._u([{key:"right",fn:function(){return[s("button",{staticClass:"appearBtn",on:{click:function(s){return t.addDanger(e.areaId)}}},[t._v("隐患上报")])]},proxy:!0}],null,!0)},[s("div",{staticClass:"swipeCell"},[s("p",[t._v(t._s(a+1)+". "+t._s(e.riskEeasureItem))]),s("p",{staticClass:"types",style:{background:e.status?"#1c4990":"orange"}},[t._v(" "+t._s(e.status?"已巡检":"待巡检")+" ")])])])})),!t.typeBtn&&t.childrenList.length?s("p",{staticStyle:{"text-align":"center"},on:{click:t.setList}},[t._v(" 点击加载更多 ")]):s("p",{staticStyle:{"text-align":"center"}},[t._v("没有更多了")])],2)],1)],1)})),1)],1)],1)},i=[],n=s("2909"),c=s("0319"),r={name:"VueSkInspect",data:function(){return{activeNames:"",active:"0",list:[],childrenList:[],childrenList1:[],loading:!1,finished:!1,pageSize:10,pageNum:1,typeBtn:!1}},mounted:function(){var t=this;console.log(this.$route.query),Object(c["b"])({areaId:this.$route.query.id}).then((function(e){var s=e.data;200===s.code&&(console.log(s.rows),t.list=s.rows)}))},methods:{addDanger:function(t){this.$router.push({name:"addDanger",params:{id:t}})},setTab:function(t){var e=this;this.typeBtn=!1,"0"===t?this.setActive():(this.childrenList=[],this.pageNum=1,Object(c["c"])({riskUnitId:this.activeNames,pageNum:this.pageNum,pageSize:this.pageSize,status:this.active}).then((function(t){var s=t.data;200===s.code&&(e.childrenList=s.rows)})))},setChange:function(t){this.childrenList=[],this.childrenList1=[],console.log(t,this.activeNames),this.typeBtn=!1,t&&(this.active="0",this.activeNames=t,this.setActive())},setList:function(){var t=this;this.pageNum++,Object(c["c"])({riskUnitId:this.activeNames,pageNum:this.pageNum,pageSize:this.pageSize,status:this.active}).then((function(e){var s,a=e.data;200===a.code&&((s=t.childrenList).push.apply(s,Object(n["a"])(a.rows)),t.childrenList.length>=a.total&&(t.typeBtn=!0))}))},setActive:function(){var t=this;Object(c["c"])({riskUnitId:this.activeNames,status:this.active}).then((function(e){var s=e.data;200===s.code&&(t.childrenList1=s.rows)}))}}},l=r,o=(s("b7aa"),s("2877")),u=Object(o["a"])(l,a,i,!1,null,"6472c5db",null);e["default"]=u.exports},a43f:function(t,e,s){},b7aa:function(t,e,s){"use strict";var a=s("a43f"),i=s.n(a);i.a}}]);