text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5df32d68"],{2934:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"c",(function(){return l}));var r=a("b775");function n(){return Object(r["a"])({url:"/v1/village/list",method:"post"})}function i(){return Object(r["a"])({url:"/v1/village/loadAll",method:"post"})}function o(){return Object(r["a"])({url:"/v1/position/query",method:"post"})}function l(e){return Object(r["a"])({url:"/v1/villageGroup/list",method:"post",data:e})}},5790:function(e,t,a){},"6cd7":function(e,t,a){"use strict";var r=a("5790"),n=a.n(r);n.a},"78de":function(e,t,a){},a9e3:function(e,t,a){"use strict";var r=a("83ab"),n=a("da84"),i=a("94ca"),o=a("6eeb"),l=a("5135"),s=a("c6b6"),c=a("7156"),u=a("c04e"),d=a("d039"),h=a("7c73"),g=a("241c").f,f=a("06cf").f,p=a("9bf2").f,b=a("58a8").trim,m="Number",v=n[m],I=v.prototype,N=s(h(I))==m,E=function(e){var t,a,r,n,i,o,l,s,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=b(c),t=c.charCodeAt(0),43===t||45===t){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+c}for(i=c.slice(2),o=i.length,l=0;l<o;l++)if(s=i.charCodeAt(l),s<48||s>n)return NaN;return parseInt(i,r)}return+c};if(i(m,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var y,w=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof w&&(N?d((function(){I.valueOf.call(a)})):s(a)!=m)?c(new v(E(t)),a,w):E(t)},C=r?g(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;C.length>_;_++)l(v,y=C[_])&&!l(w,y)&&p(w,y,f(v,y));w.prototype=I,I.constructor=w,o(n,m,w)}},ea34e:function(e,t,a){"use strict";var r=a("78de"),n=a.n(r);n.a},f52b:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"organization-page"},[a("area-selector",{on:{areaChange:e.areaChange}}),a("div",{staticClass:"content"},[a("div",{staticClass:"option-box"},[a("div",{staticClass:"search-box"},[a("el-input",{staticClass:"search-input",attrs:{placeholder:"组织代码、组织名称、法人信息输入",clearable:""},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}}),a("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(" 搜索 "),a("i",{staticClass:"el-icon-search el-icon--right"})])],1),a("el-button",{attrs:{icon:"el-icon-plus",type:"primary"},on:{click:function(){return e.handleEdit()}}},[e._v("添加经济组织")])],1),a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-class-name":"table-header-color",data:e.tableData,border:""}},[a("el-table-column",{attrs:{prop:"id",label:"编号",width:"60"}}),a("el-table-column",{attrs:{prop:"groupCode",label:"组织代码"}}),a("el-table-column",{attrs:{prop:"groupName",label:"组织名称"}}),a("el-table-column",{attrs:{prop:"legal",label:"法人代表"}}),a("el-table-column",{attrs:{prop:"establishTime",label:"成立日期"}}),a("el-table-column",{attrs:{prop:"address",label:"地址",width:"200"}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{icon:"el-icon-s-tools",type:"success",size:"small"},on:{click:function(a){return e.handleEdit(t.row)}}},[e._v("变更")]),a("el-button",{attrs:{icon:"el-icon-warning",type:"warning",size:"small"},on:{click:function(a){return e.goDetail(t.row.id)}}},[e._v("详情")])]}}])})],1),a("pagination",{attrs:{total:e.pageInfo.total,"current-page":e.pageInfo.pageNum},on:{"on-change":function(t){return e.handlePageChange(t)}}})],1)],1)},n=[],i=(a("99af"),a("7715")),o=a("1799"),l=a("2934"),s=a("cca8"),c={components:{AreaSelector:i["a"],Pagination:o["a"]},data:function(){return{searchKey:"",form:{},formLabelWidth:"100px",dialogFormVisible:!1,rules:{code:[{required:!0,message:"请输入组织代码",trigger:"blur"}],name:[{required:!0,message:"请输入组织名称",trigger:"blur"}],represent:[{required:!0,message:"请输入法人代表",trigger:"blur"}],createdDate:[{type:"date",message:"请选择成立日期",trigger:"change"}],desc:[{message:"请填写组织介绍",trigger:"blur"}]},groupOptions:[],areaList:[],isEdit:!1,pageInfo:{pageNum:1,pageSize:10,total:0,current:1},tableData:[]}},computed:{villageId:function(){return console.log(this.villageId),this.villageId}},created:function(){},methods:{showDialog:function(){this.isEdit=!1,this.resetForm(),this.dialogFormVisible=!this.dialogFormVisible},handleEdit:function(e){if(console.log(e),e){for(var t in this.form)this.form[t]=e[t];this.isEdit=!0,this.$router.push("/organ/edit?isEdit=".concat(this.isEdit,"&id=").concat(e&&e.id))}else this.$router.push("/organ/edit")},goDetail:function(e){this.$router.push({path:"/organ/detail",query:{id:e}})},areaChange:function(e){console.log(e),this.areaList=e,this.form.villageGroupId=e[1].value,this.handleSearch()},handleSearch:function(){var e=this;Object(s["a"])({keyword:this.searchKey,villageId:this.form.villageGroupId,pageNum:this.pageInfo.pageNum}).then((function(t){if(t&&0===t.status){var a=t.data;a&&(e.tableData=a.economicGroupInfos,e.pageInfo.total=t.data.total)}}))},handlePageChange:function(e){this.pageInfo.pageNum=e,this.handleSearch()},getGroupList:function(e){var t=this;Object(l["c"])({villageId:e}).then((function(e){t.groupOptions=e.data.villageGroupInfos||[]}))}}},u=c,d=(a("ea34e"),a("6cd7"),a("2877")),h=Object(d["a"])(u,r,n,!1,null,"f7de4ee8",null);t["default"]=h.exports}}]);