(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7eaf"],{"20Z4":function(t,a,e){"use strict";e.r(a);var i=e("QbLZ"),s=e.n(i),n=e("t3Un");var l={name:"AddressBookIndex",components:{XhStructureCell:e("UCfG").a},data:function(){return{bookType:"",initStrucValue:[],listData:[],tableMap:[{label:"手机",key:"mobile"},{label:"部门",key:"structure_name"},{label:"岗位",key:"post"}],tableHeight:0,specialRowArr:[],currentPage:1,pageSizes:[15,30,60],pageSize:10,total:0,loading:!1,params:null}},created:function(){var t=this;this.bookType=this.$route.params.type,this.params=this.getDefaultParams(this.bookType),this.getList(),this.$nextTick(function(){t.tableHeight=document.getElementsByClassName("container-hook")[0].clientHeight-94})},beforeRouteUpdate:function(t,a,e){this.bookType=t.params.type,this.params=this.getDefaultParams(this.bookType),this.initStrucValue=[],this.listData=[],this.getList(),e()},methods:{getList:function(){var t,a=this;this.loading=!0,(t=this.params,Object(n.a)({url:"oa/addresslist/queryList",method:"post",data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})).then(function(t){a.loading=!1,a.total=t.data.totalRow,a.listData=t.data.list||[]}).catch(function(){a.loading=!1})},getDefaultParams:function(t){var a={page:1,limit:15,structure_id:"",search:"",initials:1};return"attention"==this.bookType&&(a.star_type=1),a},formatList:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(this.specialRowArr=[],this.listData=[],0===t.length)return[];var a=[],e={structure_id:"",deptName:"",mobile:"",postName:"",realname:""};a.push(s()({},e,{initials:t[0].initials})),this.specialRowArr.push(0),a.push(t[0]);for(var i=1;i