chunk-2f75.6cdd8cfb.js 4.1 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2f75"],{M30D:function(t,e,a){"use strict";var n=a("T/S8");a.n(n).a},"T/S8":function(t,e,a){},fhqx:function(t,e,a){"use strict";a.r(e);var n={data:function(){return{importId:"",detailData:[{id:1,customerName:"客户名称",phone:"121345789",current:"客户来源",industry:"客户行业",tags:["标签一","标签二","标签三"],progress:"客户进展",address:{province:"广东省",city:"广州市"},status:"未开启"}],importStatus:["失败","成功","更新"],pagination:{total:0,currentPage:1,pageSize:20},menu_type_value:"",getDetailDataUrl:""}},created:function(){this.importId=this.$route.params.id,this.menu_type_value=this.$route.query.menu_type,this.getDetailDataUrl=1==this.menu_type_value?"plugin/CustomerManage/MyCustomer/getImportDetailList":"plugin/CustomerManage/PublicCustomer/getImportDetailList",this.getDetailData()},methods:{getDetailData:function(){var t=this;$http.pc_post(this.getDetailDataUrl,{menu_type:this.$route.query.menu_type,page:this.pagination.currentPage,limit:this.pagination.pageSize,search:{import_id:this.importId}}).then(function(e){if(1!=e.result)return t.$message.error(e.msg);t.detailData=e.data.data,t.pagination.total=e.data.total,t.pagination.pageSize=e.data.per_page})},handleSizeChange:function(t){this.pagination.pageSize=t,this.getDetailData()},handleCurrentChange:function(t){this.pagination.currentPage=t,this.getDetailData()}},components:{customerManageSide:a("Re+u").a}},i=(a("M30D"),a("KHd+")),s=Object(i.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"all private-customer"},[a("customer-manage-side",{attrs:{defaultActive:3==t.menu_type_value?"manageExternalCustomer":"managePrivateCustomer"}}),t._v(" "),a("div",{staticStyle:{width:"calc(100% - 150px)"},attrs:{id:"app"}},[a("div",{staticClass:"vue-main"},[a("div",{staticClass:"vue-main-title",staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content"},[t._v("详细记录")]),t._v(" "),a("div",{staticClass:"total"},[t._v("总数:"+t._s(t.pagination.total))])]),t._v(" "),a("el-table",{staticClass:"table-class",staticStyle:{width:"100%"},attrs:{data:t.detailData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"ID",prop:"id",align:"center",width:"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"客户名称",align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"green-font"},[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"客户电话",prop:"mobile",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"客户来源",prop:"source_name",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"客户行业",prop:"industry_name",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"客户标签",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.tag_name,function(e,n){return a("span",{key:n,staticClass:"tag-class"},[t._v(t._s(e))])})}}])}),t._v(" "),a("el-table-column",{attrs:{label:"客户进展",prop:"progress_name",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"所在地区",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.prov)+"-"+t._s(e.row.city))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态",prop:"status",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.importStatus[e.row.import_status])+t._s(0==e.row.import_status?"【"+e.row.error_msg+"】":""))])]}}])})],1)],1),t._v(" "),a("div",{staticClass:"vue-pagination"},[a("el-pagination",{attrs:{"current-page":t.pagination.currentPage,"page-sizes":[20,50,100,200],"page-size":t.pagination.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pagination.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t._v(" "),a("div",{staticClass:"vue-footer"},[a("el-button",{on:{click:function(e){t.$router.back()}}},[t._v("返回")])],1)])],1)},[],!1,null,"32919362",null);s.options.__file="detailRecord.vue";e.default=s.exports}}]);