webpackJsonp([15],{sFUz:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("P9l9"),s={name:"business-list",data:function(){return{menuData:[{name:"商户列表"}],search:{status:"",input:""},tableData:[],page:{currentPage:1,pageSize:20,totalCount:999}}},created:function(){this.getList(),this.$emit("showTab","platform_business_list")},methods:{getList:function(){var e=this,t=this.page,a=t.currentPage,s=t.pageSize,r=this.search,i=r.input,o=r.status,l={pageNum:a,pageSize:s,search:i||void 0,status:o||void 0};Object(n.a)("/gic-platform-operation/enterpriseLog/getEnterpriseList",l).then(function(t){if(0==t.data.code){var a=t.data.result||{};e.page.totalCount=a.totalCount||0,e.tableData=a.result||[]}})},statusChanged:function(){this.page.currentPage=1,this.getList()},clearSearch:function(){this.search.input="",this.page.currentPage=1,this.getList()},handleSizeChange:function(e){this.page.currentPage=1,this.page.pageSize=e,this.getList()},handleCurrentChange:function(e){this.page.currentPage=e,this.getList()}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"business-list"}},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},e._l(e.menuData,function(t,n){return a("el-breadcrumb-item",{key:n,attrs:{to:{path:t.path}}},[e._v(e._s(t.name))])}),1),e._v(" "),a("div",{staticClass:"content"},[a("header",[a("el-select",{attrs:{placeholder:"所有状态"},on:{change:e.statusChanged},model:{value:e.search.status,callback:function(t){e.$set(e.search,"status",t)},expression:"search.status"}}),e._v(" "),a("el-input",{attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search"},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.statusChanged(t)}},model:{value:e.search.input,callback:function(t){e.$set(e.search,"input","string"==typeof t?t.trim():t)},expression:"search.input"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:e.search.input.length>0,expression:"search.input.length > 0"}],staticClass:"el-input__icon el-icon-error",attrs:{slot:"suffix"},on:{click:e.clearSearch},slot:"suffix"})])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"商户信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("div",{staticClass:"businessInfo"},[a("img",{attrs:{src:n.imageUrl}}),e._v(" "),a("div",{staticClass:"businessInfoCon"},[a("p",[e._v(e._s(n.enterpriseName||"--"))]),e._v(" "),a("p",[e._v(e._s(n.brandName||"--"))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"enterprise_id","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n          "+e._s(a.enterpriseId||"--")+"\n        ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},nativeOn:{click:function(t){return t.preventDefault(),e.$router.push({path:"/business-log",query:{enterpriseId:n.enterpriseId}})}}},[e._v("\n            客户资料\n          ")])]}}])})],1),e._v(" "),e.tableData.length?a("el-pagination",{attrs:{background:"","current-page":e.page.currentPage,"page-sizes":[20,40,60,80],"page-size":e.page.pageSize,layout:"total, sizes, prev, pager, next",total:e.page.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},staticRenderFns:[]};var i=a("C7Lr")(s,r,!1,function(e){a("wAoO")},"data-v-6f6f4afc",null);t.default=i.exports},wAoO:function(e,t){}});
//# sourceMappingURL=15.9c98c5367c58ec12e43c.1582616133060.js.map