(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3132dcda"],{"1e8f":function(t,e,n){"use strict";n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"g",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"h",(function(){return l})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p}));var a=n("b775"),r=".dspy";function c(t){return Object(a["a"])({url:"/hpc/HpcLdapSearch".concat(r),method:"get",params:t})}function u(t){return Object(a["a"])({url:"/hpc/HpcLdapAdd".concat(r),method:"get",params:t})}function s(t){return Object(a["a"])({url:"/hpc/HpcUserSearch".concat(r),method:"get",params:t})}function i(t){return Object(a["a"])({url:"/hpc/bind_ldap".concat(r),method:"get",params:t})}function o(t){return Object(a["a"])({url:"/hpc/sync_status_search".concat(r),method:"get",params:t})}function l(t){return Object(a["a"])({url:"/hpc/hpc_sync_user".concat(r),method:"get",params:t})}function d(t){return Object(a["a"])({url:"/hpc/HpcLdapDelete".concat(r),method:"post",params:t})}function p(t){return Object(a["a"])({url:"/hpc/HpcLdapUpdate".concat(r),method:"post",params:t})}},"3b43":function(t,e,n){},5543:function(t,e,n){"use strict";n("3b43")},c410:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content"},[n("el-table",{staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"",height:"calc(100vh - 100px)"}},[n("el-table-column",{attrs:{align:"center","header-align":"center","min-width":"130px",prop:"orgname",label:"客户名称"}}),n("el-table-column",{attrs:{align:"center","header-align":"center","min-width":"150px",prop:"contactor_phone",label:"客户电话"}}),n("el-table-column",{attrs:{align:"center","header-align":"center","min-width":"150px",prop:"clustercode",label:"集群编码"}}),n("el-table-column",{attrs:{align:"center","header-align":"center","min-width":"80px",prop:"quantity",label:"核时"}}),n("el-table-column",{attrs:{align:"center","header-align":"center","min-width":"120px",prop:"ldapuid",label:"ldap账号"}}),n("el-table-column",{attrs:{align:"center","header-align":"center","min-width":"120px",prop:"queuecode",label:"队列编码"}}),n("el-table-column",{attrs:{align:"center","header-align":"center","min-width":"80px",prop:"",label:"同步状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.getResult(e.row.sync_status))+" ")]}}])}),n("el-table-column",{attrs:{align:"center","header-align":"center","min-width":"150px",prop:"last_access",label:"最后使用时间"}}),n("el-table-column",{attrs:{align:"center","header-align":"center","min-width":"150px",prop:"address",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"small",type:"primary",disabled:"1"==e.row.sync_status||"2"==e.row.sync_status},on:{click:function(n){return t.submit(e.row)}}},[t._v("同步")])]}}])})],1)],1)},r=[],c=n("1e8f"),u={data:function(){return{tableData:[]}},mounted:function(){this.binding_search()},methods:{binding_search:function(){var t=this,e=sessionStorage.getItem("userId");Object(c["d"])({userid:e}).then((function(e){1==e.status?t.tableData=e.data:t.$message({message:e.msg,type:"error"})}))},submit:function(t){var e=this,n={syncinfoid:t.syncinfoid,customerid:t.customerid,productid:t.productid,quantity:t.quantity,ldapuid:t.ldapuid,clustercode:t.clustercode,queuecode:t.queuecode,orgid:t.orgid,orgname:t.orgname};Object(c["h"])(n).then((function(t){1==t.status?(e.$message({message:"同步成功",type:"success"}),e.binding_search()):e.$message({message:t.msg,type:"error"})}))},getResult:function(t){switch(t){case"0":return"未同步";case"1":return"已同步"}}}},s=u,i=(n("5543"),n("2877")),o=Object(i["a"])(s,a,r,!1,null,"10cfe192",null);e["default"]=o.exports}}]);