webpackJsonp([14],{Ekyy:function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("aA9S"),e=i.n(a),o={name:"demo",data:function(){return{form:this.$form.createForm(this),columns:[{title:"门牌幢",dataIndex:"unitNo",key:"unitNo",width:"15%"},{title:"门牌幢地址",dataIndex:"unitAddr",key:"unitAddr",width:"40%"},{title:"门牌属性",dataIndex:"unitKind",key:"unitKind",width:"15%",customRender:function(n){return"1"==n?"高层":"2"==n?"多层":"3"==n?"小高层":"4"==n?"联体别墅":"5"==n?"单体别墅":" "}},{title:"操作",dataIndex:"action",key:"action",width:"20%",scopedSlots:{customRender:"action"}}],pagination:{pageNo:1,pageSize:10,total:0,current:1,defaultCurrent:1,defaultPageSize:20,showQuickJumper:!0,onChange:this.pageChange,showSizeChanger:!0,showTotal:function(n){return"总条数: "+n},onShowSizeChange:this.showSizeChange,pageSizeOptions:["10","20","50","100"]},postParams:[],customKeyEnable:!1,tbl:"tbl_building",keyCodeList:[],searchParams:{},tableData:[]}},mounted:function(){this.$nextTick(function(){this.getSearchParams()})},methods:{pageChange:function(n,t){this.pagination.pageNo=n,this.pagination.current=n,this.pagination.pageSize=t,this.getList()},showSizeChange:function(n,t){this.pagination.pageNo=1,this.pagination.current=1,this.pagination.pageSize=t,this.getList()},getList:function(){var n=this,t={};this.keyCodeList.forEach(function(i){var a=n.form.getFieldValue(i)||"";a.constructor===Array&&(a=a.join("、")),n.$set(t,i,a)});var i=e()({},{unitAddr_l:this.form.getFieldValue("unitAddr_l")||""},{sectId:0x60f9babe1f66e},t);this.searchParams=i,this.$ajax.get({url:this.$api.GET_BUILDINGS_LIST,params:e()({},i,{pageSize:this.pagination.pageSize,pageNo:this.pagination.pageNo})}).then(function(t){"200"===t.code&&(i.token=n.$cookie.get("token"),n.pagination.total=n.$com.confirm(t,"data.totalRows",0),n.tableData=n.$com.confirm(t,"data.content",[]),n.tableData.forEach(function(n){"1"==n.unitKind?n.unitKind="高层":"2"==n.unitKind?n.unitKind="多层":"3"==n.unitKind?n.unitKind="小高层":"4"==n.unitKind?n.unitKind="联体别墅":"5"==n.unitKind&&(n.unitKind="单体别墅"),0==n.unitFlag?n.unitFlag="无":n.unitFlag="有"})),n.$com.storeSearchParams(n.$route.name,n.pagination,i)})},getSearchParams:function(){var n=this.$store.state.listSearchParams?this.$store.state.listSearchParams[this.$route.name]:null;n&&n.routeName&&this.$route.name==n.routeName&&n.pagination&&n.pagination.pageNo&&1!=n.pagination.pageNo&&(this.pagination.pageNo=n.pagination.pageNo,this.pagination.current=n.pagination.pageNo),this.getList()}}},s=function(){var n=this.$createElement,t=this._self._c||n;return t("div",[t("tableAndMut",{attrs:{tableData:this.tableData,pagination:this.pagination}})],1)};s._withStripped=!0;var r={render:s,staticRenderFns:[]},u=r;var c=!1;var h=i("C7Lr")(o,u,!1,function(n){c||i("u9Pd")},null,null);h.options.__file="src/views/components/demo.vue";t.default=h.exports},eHLk:function(n,t,i){(n.exports=i("UTlt")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"demo.vue",sourceRoot:""}])},u9Pd:function(n,t,i){var a=i("eHLk");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);i("FIqI")("1fef8a86",a,!1,{})}});