(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2e47f0ad"],{"314e":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[e._m(0),a("div",{staticClass:"main"},[a("van-pull-refresh",{on:{refresh:e.onRefresh},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}},[a("ul",e._l(e.list,(function(t,s){return a("van-swipe-cell",{key:s,scopedSlots:e._u([10===t.dangerStatus?{key:"right",fn:function(){return[a("button",{staticClass:"editBtn"},[e._v("编辑")])]},proxy:!0}:null],null,!0)},[a("li",{class:[10===t.dangerStatus?"itemLi":"itemLi1"],on:{click:function(a){return e.seeItem(t.id)}}},[a("div",{staticClass:"itemTop"},[a("h4",[e._v(e._s(t.dangerName))]),a("p",[a("van-tag",{attrs:{color:e.colorList[t.dangerStatus]}},[e._v(e._s(e.textList[t.dangerStatus]))]),a("van-icon",{attrs:{name:"arrow"}})],1)]),a("div",{staticClass:"cont"},[t.dangerImage?a("img",{staticClass:"img",attrs:{src:e.baseUrl+t.dangerImage.split(",")[0],alt:""}}):a("div",{staticClass:"img"}),a("div",{staticClass:"text"},[a("p",[e._v("隐患区域："),a("span",[e._v(e._s(t.areaName))])]),a("p",[e._v("发现时间："),a("span",[e._v(e._s(t.registTime))])]),a("p",[e._v("隐患类型："),a("span",[e._v(e._s(e.$findItemById(e.dangerTypeList,t.hazardDangerType)))])])])])])])})),1)])],1)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"topHeader"},[a("span",[e._v("待办事项")])])}],i=(a("e7e5"),a("d399")),r=a("5530"),o=a("3e48"),c=a("2f62"),l={name:"Vueh5CbsDangerList",computed:Object(r["a"])({},Object(c["b"])("baseUrl",["baseUrl"]),{},Object(c["b"])("dangerList",["dangerSrcList","dangerTypeList","getAreaTree","getDeptTree","getDeptUserTree"])),data:function(){return{list:[],isLoading:!1,colorList:{10:"#1c4990",20:"#1c4990",30:"orange",40:"#c66ac3",50:"green",60:"#768091"},textList:{10:"待审核",20:"认领中",30:"整改中",40:"待验收",50:"已验收",60:"已取消"}}},mounted:function(){var e=this;console.log(this.dangerTypeList,"lalalalala啦啦啦啦啦"),Object(o["m"])().then((function(t){var a=t.data;console.log(a),200===a.code?e.list=a.rows:e.$notify({type:"warning",message:a.msg,duration:1e3})}))},methods:{onRefresh:function(){var e=this;Object(o["m"])().then((function(t){var a=t.data;console.log(a),200===a.code?(e.list=a.rows,Object(i["a"])("刷新成功"),e.isLoading=!1):e.$notify({type:"danger",message:a.msg,duration:1e3})}))},seeItem:function(e){this.$router.push({path:"/dangerDetails",query:{id:e}})}}},d=l,u=(a("d4a3"),a("2877")),g=Object(u["a"])(d,s,n,!1,null,"52e427a7",null);t["default"]=g.exports},c019:function(e,t,a){},d4a3:function(e,t,a){"use strict";var s=a("c019"),n=a.n(s);n.a}}]);