"7088:function(e,t,a){\"use strict\";var r=a(\"dbce\").default,n=a(\"4ea4\").default;Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0,a(\"d81d\"),a(\"b0c0\"),a(\"e9c4\"),a(\"96cf\");var i=n(a(\"ded3\")),o=n(a(\"c973\")),u=n(a(\"970b\")),l=n(a(\"5bc3\")),s=n(a(\"ed6d\")),c=n(a(\"2d0d\")),d=r(a(\"9ab4\")),f=a(\"60a3\"),p=function(e){(0,s.default)(a,e);var t=(0,c.default)(a);function a(){var e;return(0,u.default)(this,a),e=t.apply(this,arguments),e.loading=!1,e.value=null,e.tableData=[],e.pager={currentPage:1,rowsOfPage:10,total:0},e.buildingList=[],e.tableColumns=[{prop:\"name\",label:\"楼层名称\",unitNum:\"\"},{prop:\"deviceNumber\",label:\"梯控设备数量\"},{prop:\"personNumber\",label:\"通行人员\"},{type:\"opts\",label:\"操作\",opts:[{label:\"通行设置\",command:\"set\"}]}],e.options=[],e.cityId=\"\",e}return(0,l.default)(a,[{key:\"businessId\",get:function(){return this.$store.state.user.userInfo.businessId}},{key:\"created\",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.fetchFloorList();case 2:return t={},this.$route.query.fromDetail&&localStorage.getItem(\"searchCondition\")&&(a=JSON.parse(localStorage.getItem(\"searchCondition\")||\"\"),this.cityId=a.cityId,t={currentPage:a.currentPage,rowsOfPage:a.rowsOfPage}),e.next=6,this.fetchTableData(t);case 6:case\"end\":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:\"fetchFloorList\",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.service.getFloorList({type:\"楼栋\"});case 3:t=e.sent,a=t.data,this.buildingList=a.map((function(e){return{label:e.name,value:e.id}})),this.buildingList.length&&(this.cityId=this.buildingList[0].value),e.next=11;break;case 9:e.prev=9,e.t0=e[\"catch\"](0);case 11:case\"end\":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}()},{key:\"fetchTableData\",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,a,r,n,o=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},e.prev=1,this.loading=!0,e.next=5,this.service.queryFloor((0,i.default)((0,i.default)({zoneId:this.cityId},this.pager),t));case 5:a=e.sent,r=a.data,this.tableData=r.datas,this.pager.total=r.totalRows,this.$route.query.fromDetail&&localStorage.getItem(\"searchCondition\")&&(n=JSON.parse(localStorage.getItem(\"searchCondition\")||\"\"),this.pager.currentPage=n.currentPage,this.pager.rowsOfPage=n.rowsOfPage,localStorage.removeItem(\"searchCondition\")),this.loading=!1,e.next=16;break;case 13:e.prev=13,e.t0=e[\"catch\"](1),this.loading=!1;case 16:case\"end\":return e.stop()}}),e,this,[[1,13]])})));function t(){return e.apply(this,arguments)}return t}()},{key:\"onSearch\",value:function(){this.pager.currentPage=1,this.pager.rowsOfPage=10,this.fetchTableData()}},{key:\"handleClick\",value:function(e,t){\"set\"===t&&(localStorage.setItem(\"searchCondition\",JSON.stringify((0,i.default)({cityId:this.cityId},this.pager))),this.$router.push({name:\"TrafficListSetting\",query:{type:\"set\",deviceId:e.id,imageStoreId:\"e1128d057ed24862a0731d2bde1c5151\",zoneName:e.name,parentId:this.cityId}}))}}]),a}(f.Vue);p=d.__decorate([(0,f.Component)({name:\"ComponentName\",components:{}})],p);var v=p;t.default=v}";