(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1edf"],{QdX0:function(t,e,a){"use strict";var n=a("VWda");a.n(n).a},VWda:function(t,e,a){},lDyf:function(t,e,a){"use strict";a.r(e);var n={data:function(){return{tableData:[],employeeID:"",pagination:{total:0,page:1,pageSize:20}}},created:function(){this.getData()},methods:{getData:function(){var t=this;$http.pc_post("plugin/OutboundSystem/staffAgent/agentList",{page:this.pagination.page},"loading").then(function(e){var a=e.result,n=e.msg,l=e.data;if(1!=a)return t.$message.error(n);t.tableData=l.list.data,t.pagination.total=l.list.total,t.pagination.page=l.list.current_page,t.pagination.pageSize=l.list.per_page})},changeEmployeeID:function(t){var e=this;$http.pc_post("plugin/OutboundSystem/staffAgent/setAgent",{staff_id:t,agent_no:this.employeeID},"loading").then(function(t){var a=t.result,n=t.msg;t.data;if(1!=a)return e.$message.error(n);e.getData()})},handleCurrentChange:function(t){console.log(t),this.pagination.page=t,this.getData()}},components:{externalCallSystemsSide:a("vXQA").a}},l=(a("QdX0"),a("KHd+")),i=Object(l.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"all external_call_system_statistics"},[a("external-call-systems-side",{attrs:{defaultActive:"externalCallSystem_EmployeeManagement"}}),t._v(" "),a("div",{staticStyle:{width:"calc(100% - 150px)"},attrs:{id:"app"}},[a("div",{staticClass:"vue-main"},[t._m(0),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"员工姓名"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"头像"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{staticStyle:{width:"80px",height:"80px"},attrs:{src:t.row.avatar,alt:""}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"工号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{staticStyle:{display:"flex","justify-content":"center"},attrs:{placement:"right",width:"200",trigger:"click"}},[a("el-input",{attrs:{placeholder:"请输入修改的工号",value:e.row.staff_agent?e.row.staff_agent.agent_no:""},model:{value:t.employeeID,callback:function(e){t.employeeID=e},expression:"employeeID"}}),a("el-button",{on:{click:function(a){t.changeEmployeeID(e.row.id)}}},[t._v("确定")]),t._v(" "),e.row.staff_agent?a("span",{staticStyle:{color:"#29ba9c",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.row.staff_agent.agent_no))]):a("span",{staticStyle:{color:"#29ba9c",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[t._v("点击设置员工工号")])],1)]}}])})],1)],1)]),t._v(" "),a("div",{staticClass:"vue-page"},[a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.pagination.total,"current-page":t.pagination.page,"page-size":t.pagination.pageSize},on:{"current-change":t.handleCurrentChange}})],1)],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"vue-main-title",staticStyle:{"margin-bottom":"20px"}},[e("div",{staticClass:"vue-main-title-left"}),this._v(" "),e("div",{staticClass:"vue-main-title-content",staticStyle:{flex:"0 0 130px"}},[this._v("\n 员工工号管理\n ")])])}],!1,null,"08e9e5d8",null);i.options.__file="employeeManagement.vue";e.default=i.exports}}]);