企微助手 ,仓库名 短剧

90.3f37bb3ebb245a060232.js 5.1KB

1
  1. webpackJsonp([90],{"925W":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"importRecord",components:{dialogPublic:a("MYCg").a},data:function(){return{loading:!1,tableData:[],height:"",page:1,pages:0,total:0,page_size:20,dialogTitle:"",dialogMsg:""}},created:function(){this.height=document.documentElement.clientHeight-230>400?document.documentElement.clientHeight-230:400,this.init(1)},methods:{remindCustomer:function(t,e){var a=this;this.$nextTick(function(){a.$refs.dialogPublic.dialogVisible=!0,a.dialogTitle="提醒",a.dialogMsg="确认后将会给所有未发送成员发送提醒通知,是否发送?"})},deleCustomer:function(t){var e=this;this.$alert("删除后仅可删除本条记录,员工已收到的任务分配提醒无法撤回,是否确认删除?","提示",{cancelButtonText:"取消",confirmButtonText:"确定"}).then(function(){e.loading=!0,e.$axios.post(e.URL.BASEURL+e.URL.record_delete,{record_id:t}).then(function(t){t=t.data;e.$message({message:t.err,type:"warning"}),e.init(1)}).catch(function(t){e.loading=!1,e.$message({message:t,type:"warning"})})})},goDetail:function(t){this.$router.push("/importRecordDetial/"+t)},handleCurrentChange:function(t){this.init(t)},init:function(t,e){var a=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.batchAddCustomerRecordList,{params:{page:this.page,page_size:this.page_size}}).then(function(t){t=t.data;a.loading=!1,t&&0==t.errno?(a.tableData=t.rst.data,a.total=t.rst.pageInfo.total,a.pages=t.rst.pageInfo.pages):4002!=t.errno&&a.$message({message:t.err,type:"warning"})}).catch(function(t){a.loading=!1})}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"backBox",on:{click:function(e){return t.$router.go(-1)}}},[t._m(0)]),t._v(" "),a("div",{staticClass:"bg-ffffff",staticStyle:{padding:"15px"}},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"名称",align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.file_name?e.row.file_name:"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"120",label:"上传时间",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.import_time?e.row.import_time:"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分配客服",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_list&&0==e.row.user_list.length?[t._v("-")]:t._e(),t._v(" "),a("div",{staticClass:"flex-align-center"},t._l(e.row.user_list,function(e,i){return a("div",{key:i+"kefu",staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag"},[a("i",{staticClass:"el-icon-user-solid"}),t._v(" "+t._s(e))])])}),0)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"客户标签",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.tag_list&&0==e.row.tag_list.length?[t._v("-")]:a("div",{staticClass:"customerServiceTagBox biaoqian"},t._l(e.row.tag_list,function(e,i){return a("div",{key:i+"biaoqian",staticClass:"customerServiceTag"},[t._v(t._s(e))])}),0)]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"120",label:"导入客户数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.total_count?e.row.total_count:"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"已添加客户数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.complete_count?e.row.complete_count:"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"添加完成率",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.complete_rate?e.row.complete_rate:"-"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("div",{staticClass:"c-00B38A pointer lMar10",on:{click:function(a){return t.deleCustomer(e.row.id)}}},[t._v("删除")]),t._v(" "),a("div",{staticClass:"c-00B38A pointer lMar10",on:{click:function(a){return t.goDetail(e.row.id)}}},[t._v("详情")])])]}}])})],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),a("dialogPublic",{ref:"dialogPublic",attrs:{dialogTitle:t.dialogTitle,dialogMsg:t.dialogMsg}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"back"},[e("i",{staticClass:"el-icon-back"}),this._v(" "),e("span",[this._v("返回")]),this._v("\n (导入记录)\n ")])}]};var l=a("VU/8")(i,n,!1,function(t){a("eMum")},"data-v-3d231fc5",null);e.default=l.exports},eMum:function(t,e){}});