(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cddd2b0"],{"6f1a":function(e,t,a){},9295:function(e,t,a){"use strict";var s=a("6f1a"),n=a.n(s);n.a},b1d25: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"},[a("Header",{attrs:{title:"隐患列表"}}),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&&t.createUserId===e.user.userId?{key:"right",fn:function(){return[a("button",{staticClass:"editBtn",on:{click:function(a){return e.editItem(t.id)}}},[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)],1)},n=[],i=(a("e7e5"),a("d399")),r=a("5530"),o=a("3e48"),c=a("2f62"),d={name:"Vueh5CbsDangerList",computed:Object(r["a"])({},Object(c["b"])("baseUrl",["baseUrl"]),{},Object(c["b"])("login",["user"]),{},Object(c["b"])("dangerList",["dangerSrcList","dangerTypeList","getAreaTree","getDeptTree","getDeptUserTree"])),data:function(){return{list:[],isLoading:!1,colorList:{10:"#1c4990",20:"#1c4990",30:"orange",40:"#1c4990",50:"green",60:"#768091"},textList:{10:"待审核",20:"认领中",30:"整改中",40:"待验收",50:"已验收",60:"已取消"}}},mounted:function(){var e=this;Object(o["l"])().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["l"])().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}})},editItem:function(e){this.$router.push({path:"/addDanger",query:{id:e}})}}},l=d,u=(a("9295"),a("2877")),g=Object(u["a"])(l,s,n,!1,null,"336a6580",null);t["default"]=g.exports}}]);