Newer
Older
smartwellapp / app / src / main / assets / static / js / 36.aa2300fb4866d0a6f62e.js
Pengxh on 19 May 2021 5 KB first commit
webpackJsonp([36],{cnln:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});e("wiJb");var l=e("X2Oc"),s=e("0EwI"),a=e("heyG"),i=!1,n={name:"WellManage",components:{Loading:s.a},data:function(){return{listQuery:{keywords:"",wellType:"",offset:1,limit:10,sort:"id",order:"asc"},wellType:"全部",wellTypeList:[],wellTypeShow:!1,showPopupModel:!1,list:[],total:50,loadConf:{loadTopConf:{isFinish:!1,topPullText:"下拉刷新",topDropText:"松开刷新",topLoadingText:"刷新中"},loadBottomConf:{isFinish:!1,bottomPullText:"",bottomDropText:"释放获取内容",bottomLoadingText:"加载中",count:1}},isLoading:!0,isFromDetail:!1,bigImageVisible:!1,bigImageSrc:""}},mounted:function(){this.fetchWellType(),this.loadTop()},beforeRouteEnter:function(t,o,e){i=!!o.name&&-1!=o.name.indexOf("wellDetail"),e()},activated:function(){i?this.$refs.wrapper.scrollTop=this.$store.getters.pageYOffset:(this.list=[],this.isLoading=!0,this.loadTop(),this.$refs.wrapper.scrollTop=0),this.wellTypeShow=!1},methods:{loadTop:function(){var t=this;console.log("wellManageloadTop"),this.list=[],this.$refs.loadmore.onTopLoaded(),this.loadConf.loadBottomConf.isFinish=!1,this.isLoading=!0,this.listQuery.offset=1,Object(a.a)("well/list",this.listQuery).then(function(o){t.listQuery.offset+=1,t.list=o.data.rows,t.total=parseInt(o.data.total),t.isLoading=!1,t.list.length>=t.total&&(t.loadConf.loadBottomConf.isFinish=!0,t.$refs.loadmore.onBottomLoaded())})},loadBottom:function(){var t=this;console.log("loadBottom"),this.wellTypeShow=!1,this.list.length>=this.total?(this.loadConf.loadBottomConf.isFinish=!0,this.$refs.loadmore.onBottomLoaded()):Object(a.a)("well/list",this.listQuery).then(function(o){t.listQuery.offset+=1,t.list=t.list.concat(o.data.rows),t.total=parseInt(o.data.total),t.$refs.loadmore.onBottomLoaded(),t.isLoading=!1})},chooseWellType:function(){this.wellTypeShow=!this.wellTypeShow},search:function(t){this.wellTypeShow=!1,this.wellTypeShow=!1,this.listQuery.wellType=t.value,this.wellType=t.name,this.loadTop()},searchKeyWords:function(){this.wellTypeShow=!1,document.activeElement.blur(),this.loadTop()},toWellDetail:function(t){this.wellTypeShow=!1;var o=t.id;this.$store.commit("SET_PAGE_OFFSET",this.$refs.wrapper.scrollTop),this.$router.push({path:"/wellDetail/"+o})},goToMap:function(t){this.wellTypeShow=!1,Object(l.a)(t.coordinateX,t.coordinateY,t.wellName)},fetchWellType:function(){var t=this;Object(a.a)("dict/code/sluicewellType").then(function(o){t.wellTypeList=o.data,t.wellTypeList.unshift({name:"全部",value:""})})}}},r={render:function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("transition",{attrs:{name:"slide"}},[e("div",[e("div",{staticClass:"index-container"},[e("mt-header",{staticClass:"header",attrs:{title:"闸井管理",fixed:""}}),t._v(" "),e("div",{staticClass:"search-div"},[e("span",{staticClass:"search-select",on:{click:t.chooseWellType}},[e("span",{staticClass:"select-text"},[t._v(t._s(t.wellType))]),t._v(" "),e("i",{staticClass:"iconfont icon-31xiala",attrs:{slot:"icon"},slot:"icon"})]),t._v(" "),e("span",[e("mt-search",{attrs:{placeholder:"闸井编号/位置"},nativeOn:{keyup:function(o){return!o.type.indexOf("key")&&t._k(o.keyCode,"enter",13,o.key,"Enter")?null:t.searchKeyWords(o)}},model:{value:t.listQuery.keywords,callback:function(o){t.$set(t.listQuery,"keywords","string"==typeof o?o.trim():o)},expression:"listQuery.keywords"}})],1),t._v(" "),e("div",{staticClass:"clear-float"})]),t._v(" "),e("div",{ref:"wrapper",staticClass:"listbody"},[e("Loading",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}]}),t._v(" "),e("mt-loadmore",{ref:"loadmore",staticClass:"loadmore-content",attrs:{"top-method":t.loadTop,topPullText:t.loadConf.loadTopConf.topPullText,topDropText:t.loadConf.loadTopConf.topDropText,topLoadingText:t.loadConf.loadTopConf.topLoadingText,"bottom-method":t.loadBottom,bottomAllLoaded:t.loadConf.loadBottomConf.isFinish,bottomPullText:t.loadConf.loadBottomConf.bottomPullText,bottomDropText:t.loadConf.loadBottomConf.bottomDropText,bottomLoadingText:t.loadConf.loadBottomConf.bottomLoadingText}},[e("ul",{staticClass:"list-ul"},t._l(t.list,function(o){return e("li",{staticClass:"list-li",on:{click:function(e){return t.toWellDetail(o)}}},[e("div",{staticClass:"well-card"},[e("div",{staticClass:"card-left"},[e("div",[e("span",{staticClass:"card-wellcode"},[t._v(t._s(o.wellCode))]),t._v(" "),e("span",{staticClass:"card-welltype"},[t._v(t._s(o.wellTypeName))]),t._v(" "),e("span",{staticClass:"card-bfzt"},[t._v(t._s(o.bfztName))])]),t._v(" "),e("div",{staticClass:"card-position"},[e("span",[t._v(t._s(o.position))])])]),t._v(" "),e("div",{staticClass:"card-right"},[e("mt-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return e.stopPropagation(),t.goToMap(o)}}},[t._v("前往")])],1),t._v(" "),e("div",{staticClass:"clear-float"})])])}),0),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.loadConf.loadBottomConf.isFinish,expression:"loadConf.loadBottomConf.isFinish"}],staticClass:"no-content"},[t._v("已经到底了")])])],1),t._v(" "),e("mt-popup",{staticClass:"welltype-popup",attrs:{"popup-transition":"popup-fade",modal:t.showPopupModel,position:"top"},model:{value:t.wellTypeShow,callback:function(o){t.wellTypeShow=o},expression:"wellTypeShow"}},[e("ul",t._l(t.wellTypeList,function(o){return e("li",{on:{click:function(e){return t.search(o)}}},[t._v("\n            "+t._s(o.name)+"\n          ")])}),0)]),t._v(" "),e("tabbottom",{attrs:{activeTabItem:"WELL"}})],1)])])},staticRenderFns:[]};var d=e("VU/8")(n,r,!1,function(t){e("l5Tk")},"data-v-1b80f28a",null);o.default=d.exports},l5Tk:function(t,o){}});
//# sourceMappingURL=36.aa2300fb4866d0a6f62e.js.map