webpackJsonp([43],{"/1EA":function(t,e){},nDjU:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("BO1k"),l=i.n(a),s=i("X2Oc"),n=(i("wiJb"),i("heyG")),o={name:"WellDetail",data:function(){return{wellForm:{id:"",wellCode:"",wellName:"",wellType:"",wellTypeName:"",deptid:"",deptName:"",bfztName:"",deep:"",position:"",coordinateX:"",coordinateY:"",photos:"",notes:"",qu:"",area:"",responsibleDept:""},bigImageVisible:!1,bigImageSrc:""}},computed:{wellInfo:function(){return[{title:"闸井名称",value:this.wellForm.wellName},{title:"闸井类型",value:this.wellForm.wellTypeName},{title:"布防状态",value:this.wellForm.bfztName},{title:"井深(米)",value:this.wellForm.deep},{title:"位置描述",value:this.wellForm.position}]},imageList:function(){var t=this.wellForm.photos.split(";"),e=[],i=!0,a=!1,s=void 0;try{for(var n,o=l()(t);!(i=(n=o.next()).done);i=!0){var r=n.value;r&&e.push({name:r,url:"http://20.1.11.52:5988/static/"+r})}}catch(t){a=!0,s=t}finally{try{!i&&o.return&&o.return()}finally{if(a)throw s}}return e}},mounted:function(){this.fetchData(this.$route.params.id)},methods:{fetchData:function(t){var e=this;Object(n.a)("well/info",{id:t}).then(function(t){200==t.code&&(e.wellForm=t.data)})},watchDataByWell:function(){var t=this.wellForm.id;this.$router.push({path:"/watchData/"+t})},goToMap:function(){Object(s.a)(this.wellForm.coordinateX,this.wellForm.coordinateY,this.wellForm.wellName)},showBigImage:function(t){this.bigImageVisible=!0,this.bigImageSrc=t}}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"slide"}},[i("div",{staticClass:"index-container"},[i("mt-header",{staticClass:"header",attrs:{title:"闸井详情",fixed:""}},[i("div",{attrs:{slot:"left"},slot:"left"},[i("mt-button",{attrs:{icon:"back"},on:{click:function(e){return t.$router.back(-1)}}})],1)]),t._v(" "),i("div",{staticClass:"listbody"},[i("div",{staticClass:"well-info-card"},[i("div",{staticClass:"well-title"},[t._v("\n "+t._s(t.wellForm.wellCode)+"\n ")]),t._v(" "),t._l(t.wellInfo,function(e){return i("div",{key:e.title,staticClass:"well-info"},[i("span",{staticClass:"info-name"},[t._v(t._s(e.title))]),t._v(" "),i("span",{staticClass:"info-value"},[t._v(t._s(e.value))])])})],2),t._v(" "),i("div",{staticClass:"well-info-card",on:{click:t.watchDataByWell}},[i("div",{staticClass:"well-info-button"},[i("span",{staticClass:"info-name"},[t._v("监控内容")]),t._v(" "),i("span",{staticClass:"info-value"},[i("i",{staticClass:"iconfont icon-fanhui2"})])])]),t._v(" "),t.imageList.length>0?i("div",{staticClass:"well-info-card"},[i("div",{staticClass:"well-info-button"},[i("span",{staticClass:"info-name"},[t._v("路标图片")])]),t._v(" "),i("div",{staticClass:"img-area"},t._l(t.imageList,function(e){return i("img",{staticClass:"imgzip",attrs:{src:e.url},on:{click:function(i){return t.showBigImage(e.url)}}})}),0)]):t._e(),t._v(" "),i("div",{staticClass:"button-div"},[i("mt-button",{attrs:{type:"primary"},on:{click:t.goToMap}},[t._v("到这里去")])],1)]),t._v(" "),i("mt-popup",{staticClass:"imageShowPopup",model:{value:t.bigImageVisible,callback:function(e){t.bigImageVisible=e},expression:"bigImageVisible"}},[i("img",{staticStyle:{width:"100%","max-height":"100%"},attrs:{src:t.bigImageSrc}})])],1)])},staticRenderFns:[]};var c=i("VU/8")(o,r,!1,function(t){i("/1EA")},"data-v-05b6eebd",null);e.default=c.exports}}); //# sourceMappingURL=43.e9101a838ba0b8c8ba40.js.map