webpackJsonp([19],{aVJt:function(e,t){},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}}},mounted: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,l=r.status,o={pageNum:a,pageSize:s,search:i||void 0,status:l||void 0};Object(n.a)("/gic-platform-operation/enterpriseLog/getEnterpriseList",o).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:"所有状态",clearable:""},on:{change:e.statusChanged},model:{value:e.search.status,callback:function(t){e.$set(e.search,"status",t)},expression:"search.status"}},[a("el-option",{attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{attrs:{label:"合同欠费停用",value:3}}),e._v(" "),a("el-option",{attrs:{label:"商户冻结停用",value:5}})],1),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.qcloudImageUrl}}),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?name=平台运维&icon=icon-03&code=platform_operation&tabCode=platform_business_list",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("aVJt")},"data-v-3892927e",null);t.default=i.exports}});
//# sourceMappingURL=19.94e91fd1bc34c71981ac.1583336413025.js.map