(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72574b12"],{"4bf9":function(e,t,a){},"6cf8":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",{staticStyle:{padding:"20px"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入企业/商户","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search","string"===typeof t?t.trim():t)},expression:"search.search"}}),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部版本",clearable:""},on:{change:e.onSearch},model:{value:e.search.version,callback:function(t){e.$set(e.search,"version",t)},expression:"search.version"}},e._l(e.versionList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部状态",clearable:""},on:{change:e.onSearch},model:{value:e.search.bindFlag,callback:function(t){e.$set(e.search,"bindFlag",t)},expression:"search.bindFlag"}},e._l(e.bindFlagList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.enterpriseList}},[a("el-table-column",{attrs:{label:"企业信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticClass:"enterprise-info"},[a("div",{staticClass:"logo"},[r.corpSquareLogoUrl?a("img",{attrs:{src:r.corpSquareLogoUrl,alt:""}}):e._e()]),a("span",{staticClass:"enterprise-name"},[e._v(e._s(r.wxEnterpriseName))])])}}])}),a("el-table-column",{attrs:{label:"订购版本",prop:"version",formatter:e.formatVersion}}),a("el-table-column",{attrs:{label:"授权GIC商户数",prop:"enterpriseCount"}}),a("el-table-column",{attrs:{label:"最近授权时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])])}}])}),a("el-table-column",{attrs:{label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.updateTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.updateTime)))])])}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEnterpriseDetail(r)}}},[e._v("详情")])}}])})],1),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)},n=[],i=(a("386d"),a("a30a")),s=i["a"].getEnterpriseList,l={name:"enterprise-list",data:function(){return{versionList:[{label:"基础版",value:"1"},{label:"高级版",value:"2"}],bindFlagList:[{label:"未绑定",value:"1"},{label:"已绑定",value:"2"}],search:{search:"",version:"",bindFlag:""},pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},enterpriseList:[]}},created:function(){this.getEnterpriseList()},methods:{getEnterpriseList:function(){var e=this,t=this.search,a=t.search,r=t.version,n=t.bindFlag,i=this.pager,l=i.pageSize,o=i.currentPage,c={search:a,version:r,bindFlag:n,pageSize:l,pageNum:o};s(c).then((function(t){var a=t.result||{},r=a.totalCount,n=a.result;e.pager.total=r||0,e.enterpriseList=n||[]}))},onSearch:function(){this.pager.currentPage=1,this.getEnterpriseList()},onCurrentChange:function(e){this.pager.currentPage=e,this.getEnterpriseList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},formatVersion:function(e,t,a){var r="--";return this.versionList.some((function(e){return e.value==a&&(r=e.label),e.value==a})),r},toEnterpriseDetail:function(e){var t=e.wxEnterpriseId;this.$router.push("/enterprise-detail?enterpriseId=".concat(t))}}},o=l,c=(a("83bc"),a("2877")),p=Object(c["a"])(o,r,n,!1,null,"182add08",null);t["default"]=p.exports},"83bc":function(e,t,a){"use strict";var r=a("4bf9"),n=a.n(r);n.a},a30a:function(e,t,a){"use strict";var r=a("07db"),n={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail"};t["a"]=Object(r["a"])(n,"/hb-manage-operation-web")}}]);