(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2aa3c2b7"],{"028a":function(t,e,a){"use strict";var i=a("fca0"),l=a.n(i);l.a},1276:function(t,e,a){"use strict";var i=a("d784"),l=a("44e7"),r=a("825a"),o=a("1d80"),n=a("4840"),s=a("8aa5"),c=a("50c4"),u=a("14c3"),d=a("9263"),p=a("d039"),f=[].push,g=Math.min,h=4294967295,m=!p((function(){return!RegExp(h,"y")}));i("split",2,(function(t,e,a){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,a){var i=String(o(this)),r=void 0===a?h:a>>>0;if(0===r)return[];if(void 0===t)return[i];if(!l(t))return e.call(i,t,r);var n,s,c,u=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,m=new RegExp(t.source,p+"g");while(n=d.call(m,i)){if(s=m.lastIndex,s>g&&(u.push(i.slice(g,n.index)),n.length>1&&n.index<i.length&&f.apply(u,n.slice(1)),c=n[0].length,g=s,u.length>=r))break;m.lastIndex===n.index&&m.lastIndex++}return g===i.length?!c&&m.test("")||u.push(""):u.push(i.slice(g)),u.length>r?u.slice(0,r):u}:"0".split(void 0,0).length?function(t,a){return void 0===t&&0===a?[]:e.call(this,t,a)}:e,[function(e,a){var l=o(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,l,a):i.call(String(l),e,a)},function(t,l){var o=a(i,t,this,l,i!==e);if(o.done)return o.value;var d=r(t),p=String(this),f=n(d,RegExp),v=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(m?"y":"g"),_=new f(m?d:"^(?:"+d.source+")",b),y=void 0===l?h:l>>>0;if(0===y)return[];if(0===p.length)return null===u(_,p)?[p]:[];var w=0,L=0,k=[];while(L<p.length){_.lastIndex=m?L:0;var C,x=u(_,m?p:p.slice(L));if(null===x||(C=g(c(_.lastIndex+(m?0:L)),p.length))===w)L=s(p,L,v);else{if(k.push(p.slice(w,L)),k.length===y)return k;for(var S=1;S<=x.length-1;S++)if(k.push(x[S]),k.length===y)return k;L=w=C}}return k.push(p.slice(w)),k}]}),!m)},"498a":function(t,e,a){"use strict";var i=a("23e7"),l=a("58a8").trim,r=a("c8d2");i({target:"String",proto:!0,forced:r("trim")},{trim:function(){return l(this)}})},a15b:function(t,e,a){"use strict";var i=a("23e7"),l=a("44ad"),r=a("fc6a"),o=a("a640"),n=[].join,s=l!=Object,c=o("join",",");i({target:"Array",proto:!0,forced:s||!c},{join:function(t){return n.call(r(this),void 0===t?",":t)}})},b140:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"table-classic-wrapper"},[a("Hints",[a("template",{slot:"hintName"},[t._v("地推授权管理")]),a("template",{slot:"hintInfo"},[a("p")])],2),a("el-button",{attrs:{type:"primary"},on:{click:t.fetchData}},[t._v("查询/刷新")]),a("el-button",{attrs:{type:"success"},on:{click:function(e){t.formVisible=!0}}},[t._v("新建地推")]),a("el-button",{attrs:{type:"primary"},on:{click:t.openAlertRecipients}},[t._v("通知接收者")]),a("el-button",{attrs:{type:"primary"},on:{click:t.openOpLogs}},[t._v("操作日志")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",size:"small"}},[a("el-table-column",{attrs:{prop:"id",label:"id",align:"center",fixed:"left",width:"100"}}),a("el-table-column",{attrs:{prop:"remark",label:"备注",align:"left",width:"180","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"stop",label:"授权状态",align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{attrs:{slot:"reference"},slot:"reference"},[e.row.stop?e.row.stop?a("el-tag",{attrs:{size:"medium",type:"danger"}},[t._v("需授权")]):a("el-tag",{attrs:{type:"danger"}},[t._v("异常")]):a("el-tag",{attrs:{size:"medium",type:"success"}},[t._v("正常")])],1)]}}])}),a("el-table-column",{attrs:{prop:"local_account_ids",label:"广告主id",align:"left"}}),a("el-table-column",{attrs:{prop:"authUrl",label:"授权地址（授权状态异常时可点击授权，禁止随意点击）",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("a",{attrs:{href:e.row.authUrl,target:"_blank"}},[t._v(t._s(e.row.authUrl))])]}}])}),a("el-table-column",{attrs:{prop:"createdAt",label:"创建时间",align:"left",width:"170"}}),a("el-table-column",{attrs:{align:"center",label:"操作",width:"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return a("div",{staticClass:"footer-item"},[a("el-button",{attrs:{type:"success",size:"small"},on:{click:function(e){return t.beforConfirmEdit(i)}}},[t._v("修改")]),a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return t.cluePullDelete(i)}}},[t._v("删除")])],1)}}])})],1),a("Pagination",{attrs:{total:t.total,page:t.listQuery.currentPage,limit:t.listQuery.pageSize},on:{"update:page":function(e){return t.$set(t.listQuery,"currentPage",e)},"update:limit":function(e){return t.$set(t.listQuery,"pageSize",e)},pagination:t.fetchData}}),a("el-drawer",{attrs:{size:"80%",title:(""==t.dialogForm.id?"新建":"修改")+"地推数据",visible:t.formVisible,direction:"rtl","close-on-press-escape":!1,"wrapper-closable":!1},on:{"update:visible":function(e){t.formVisible=e}}},[a("div",{staticStyle:{padding:"20px 20rpx 20px 0"}},[a("el-form",{ref:"dialogForm",attrs:{model:t.dialogForm,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"appid:",prop:"appid"}},[a("el-input",{attrs:{placeholder:"请输入"},model:{value:t.dialogForm.appid,callback:function(e){t.$set(t.dialogForm,"appid",e)},expression:"dialogForm.appid"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"secret:",prop:"secret"}},[a("el-input",{attrs:{placeholder:"请输入"},model:{value:t.dialogForm.secret,callback:function(e){t.$set(t.dialogForm,"secret",e)},expression:"dialogForm.secret"}})],1)],1)],1),a("el-form-item",{attrs:{label:"广告主id：'"}},[a("div",{staticStyle:{display:"flex","flex-wrap":"wrap",gap:"10px"}},[t._l(t.dialogForm.local_account_ids,(function(e,i){return[a("el-input",{key:i,staticStyle:{"max-width":"200px"},attrs:{placeholder:"一个输入框一个id"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})]}))],2),a("el-button",{staticStyle:{"margin-top":"10px"},attrs:{type:"success"},on:{click:t.addlocal_account_ids}},[t._v(" 新增广告主id ")])],1),a("el-form-item",{attrs:{label:"授权地址：",prop:"authUrl"}},[a("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:t.dialogForm.authUrl,callback:function(e){t.$set(t.dialogForm,"authUrl",e)},expression:"dialogForm.authUrl"}})],1),a("el-form-item",{attrs:{label:"备注：",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",rows:6,maxlength:"500","show-word-limit":"",placeholder:"请输入备注，最多500字"},model:{value:t.dialogForm.remark,callback:function(e){t.$set(t.dialogForm,"remark",e)},expression:"dialogForm.remark"}})],1),a("el-form-item",[a("el-button",{on:{click:t.cancleForm}},[t._v("取 消")]),""==t.dialogForm.id?a("el-button",{attrs:{type:"primary",disabled:t.isSubmit},on:{click:function(e){return t.submitForm("dialogForm")}}},[t._v("新增 ")]):a("el-button",{attrs:{type:"primary",disabled:t.isSubmit},on:{click:function(e){return t.confirmEdit(t.dialogForm)}}},[t._v("修改")])],1)],1)],1)]),a("el-dialog",{attrs:{title:"本地推异常通知接收者",visible:t.alertRecipientsVisible,width:"680px","append-to-body":""},on:{"update:visible":function(e){t.alertRecipientsVisible=e},closed:t.clearBindQrCode}},[a("div",{staticClass:"alert-recipient-toolbar"},[a("span",[t._v("全局接收者为已绑定新公众号的管理员账号。")]),a("div",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.bindCurrentAdminWechat}},[t._v("绑定当前管理员微信")]),a("el-button",{attrs:{size:"small"},on:{click:t.fetchAlertRecipients}},[t._v("刷新")])],1)]),t.followQrCodeUrl||t.bindUrl?a("div",{staticClass:"alert-bind-panel"},[t.followQrCodeUrl?a("div",{staticClass:"alert-bind-step"},[t.followQrCodeIsMaterial?a("img",{staticClass:"alert-follow-qrcode",attrs:{src:t.followQrCodeUrl,alt:"Follow QR code"}}):a("div",{ref:"alertFollowQrCode",staticClass:"alert-follow-qrcode-container"}),a("div",[t._v("先关注新公众号")])]):t._e(),t.bindUrl?a("div",{staticClass:"alert-bind-step"},[a("div",{ref:"alertBindQrCode",staticClass:"alert-bind-qrcode"}),a("div",[t._v("再使用管理员微信扫码授权；完成后点击“刷新”。")])]):t._e()]):t._e(),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.alertRecipientsLoading,expression:"alertRecipientsLoading"}],attrs:{data:t.alertRecipients,size:"small","max-height":"360"}},[a("el-table-column",{attrs:{label:"头像",width:"72",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.headimgurl?a("img",{staticClass:"alert-recipient-avatar",attrs:{src:e.row.headimgurl}}):a("span",[t._v("—")])]}}])}),a("el-table-column",{attrs:{prop:"nickname",label:"微信昵称","min-width":"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.nickname||"未设置昵称"))]}}])}),a("el-table-column",{attrs:{prop:"userName",label:"管理员账号","min-width":"120"}}),a("el-table-column",{attrs:{label:"状态",width:"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:e.row.subscribed?"success":"info",size:"mini"}},[t._v(" "+t._s(e.row.subscribed?"已关注":"未关注")+" ")])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[Number(e.row.userId)===Number(t.$store.state.all.userInfo.id)?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.unbindAlertRecipient(e.row)}}},[t._v("解绑")]):t._e()]}}])})],1),t.alertRecipients.length||t.alertRecipientsLoading?t._e():a("div",{staticClass:"alert-recipient-empty"},[t._v(" 暂无已绑定的新公众号管理员微信。 ")]),a("div",{staticClass:"alert-recipient-warning"},[t._v(" 只向 role ≥ 9 且已关注新公众号的账号发送。解绑会同时停止该微信接收新公众号线索提醒。 ")])],1),a("el-dialog",{attrs:{title:"地推授权操作日志",visible:t.opLogVisible,width:"70%"},on:{"update:visible":function(e){t.opLogVisible=e}}},[a("div",{staticClass:"op-log-toolbar"},[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","default-time":["00:00:00","23:59:59"]},model:{value:t.opLogQuery.time,callback:function(e){t.$set(t.opLogQuery,"time",e)},expression:"opLogQuery.time"}}),a("el-select",{staticClass:"op-log-select",attrs:{clearable:"",placeholder:"全部操作"},model:{value:t.opLogQuery.event,callback:function(e){t.$set(t.opLogQuery,"event",e)},expression:"opLogQuery.event"}},[a("el-option",{attrs:{label:"新建配置",value:"config-create"}}),a("el-option",{attrs:{label:"修改配置",value:"config-update"}}),a("el-option",{attrs:{label:"删除配置",value:"config-delete"}}),a("el-option",{attrs:{label:"授权回调",value:"config-auth"}})],1),a("el-button",{attrs:{type:"primary"},on:{click:t.searchOpLogs}},[t._v("查询")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.opLogLoading,expression:"opLogLoading"}],attrs:{data:t.opLogs,size:"small","max-height":"520","row-key":"id"}},[a("el-table-column",{attrs:{type:"expand",width:"36"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("div",{staticClass:"op-log-changes"},[i.changes.length?t._e():a("div",{staticClass:"op-log-changes-empty"},[t._v(" 本次仅提交，未产生字段变更 ")]),t._l(i.changes,(function(e,i){return a("div",{key:i,staticClass:"op-log-change"},[a("span",{staticClass:"op-log-change-label"},[t._v(t._s(e.label))]),a("span",{staticClass:"op-log-change-before"},[t._v(t._s(e.from))]),a("i",{staticClass:"el-icon-right op-log-change-arrow"}),a("span",{staticClass:"op-log-change-after"},[e.added||e.removed?[t._l(e.added,(function(e){return a("el-tag",{key:"a"+e,staticClass:"op-log-tag",attrs:{size:"mini",type:"success"}},[t._v("+"+t._s(e))])})),t._l(e.removed,(function(e){return a("el-tag",{key:"r"+e,staticClass:"op-log-tag",attrs:{size:"mini",type:"danger"}},[t._v("-"+t._s(e))])}))]:[a("span",{staticClass:"op-log-change-same"},[t._v(t._s(t.diffParts(e.from,e.to).prefix))]),a("span",{staticClass:"op-log-change-diff"},[t._v(t._s(t.diffParts(e.from,e.to).added))]),a("span",{staticClass:"op-log-change-same"},[t._v(t._s(t.diffParts(e.from,e.to).suffix))])]],2)])}))],2)]}}])}),a("el-table-column",{attrs:{label:"时间",width:"165"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(t.formatLogTime(a.createdAt)))]}}])}),a("el-table-column",{attrs:{label:"操作",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-tag",{attrs:{size:"mini",type:t.opLogTagType(i.event)}},[t._v(t._s(t.opLogEventLabel(i.event)))]),i.configId?a("span",{staticClass:"op-log-config-id"},[t._v(" #"+t._s(i.configId)+" ")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"操作人",prop:"operatorName",width:"100"}}),a("el-table-column",{attrs:{label:"备注","min-width":"140","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(a.remark||"-"))]}}])}),a("el-table-column",{attrs:{label:"IP",prop:"operatorIp",width:"130"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(a.operatorIp||"-"))]}}])}),a("el-table-column",{attrs:{label:"改动","min-width":"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.changes.length?[t._v(" "+t._s(i.changes.length)+" 项："+t._s(i.changes.map((function(t){return t.label})).join("、"))+" ")]:a("span",{staticClass:"op-log-changes-empty"},[t._v("无字段变更")])]}}])})],1),t.opLogLoading||t.opLogs.length?t._e():a("el-empty",{attrs:{description:"暂无操作日志"}}),a("el-pagination",{staticClass:"op-log-pagination",attrs:{"current-page":t.opLogQuery.currentPage,"page-size":t.opLogQuery.pageSize,total:t.opLogTotal,layout:"total, prev, pager, next"},on:{"current-change":t.handleOpLogPageChange}})],1)],1)},l=[];a("4de4"),a("a15b"),a("d81d"),a("fb6a"),a("a9e3"),a("d3b7"),a("ac1f"),a("1276"),a("498a");function r(t){if(Array.isArray(t))return t}a("a4d3"),a("e01a"),a("d28b"),a("3ca3"),a("ddb0");function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var a=[],i=!0,l=!1,r=void 0;try{for(var o,n=t[Symbol.iterator]();!(i=(o=n.next()).done);i=!0)if(a.push(o.value),e&&a.length===e)break}catch(s){l=!0,r=s}finally{try{i||null==n["return"]||n["return"]()}finally{if(l)throw r}}return a}}var n=a("06c5");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){return r(t)||o(t,e)||Object(n["a"])(t,e)||s()}var u=a("b522"),d=a("333d"),p=a("5c96"),f=a("d044"),g=a.n(f),h={name:"Table",components:{Hints:u["a"],Pagination:d["a"]},data:function(){return{content:"",placeholder:"",listQuery:{currentPage:1,pageSize:10},listLoading:!1,total:0,tableData:[],formVisible:!1,isSubmit:!1,dialogForm:{id:"",local_account_ids:[{value:""}],authUrl:"",remark:"",appid:"",secret:""},alertRecipientsVisible:!1,alertRecipientsLoading:!1,alertRecipients:[],bindUrl:"",followQrCodeUrl:"",followQrCodeIsMaterial:!1,opLogVisible:!1,opLogLoading:!1,opLogs:[],opLogTotal:0,opLogQuery:{currentPage:1,pageSize:20,event:"",time:[]}}},created:function(){this.fetchData()},methods:{openOpLogs:function(){this.opLogVisible=!0,this.fetchOpLogs()},searchOpLogs:function(){this.opLogQuery.currentPage=1,this.fetchOpLogs()},handleOpLogPageChange:function(t){this.opLogQuery.currentPage=t,this.fetchOpLogs()},fetchOpLogs:function(){var t=this,e=this.opLogQuery,a=e.time,i=e.event,l=e.currentPage,r=e.pageSize;this.opLogLoading=!0,this.api.cluePullOperationLogs({event:i||void 0,startTime:a&&a[0]?a[0]:void 0,endTime:a&&a[1]?a[1]:void 0,page:l,pageSize:r}).then((function(e){t.opLogs=e&&e.list||[],t.opLogTotal=Number(e&&e.total||0)})).catch((function(){t.opLogs=[],t.opLogTotal=0})).finally((function(){t.opLogLoading=!1}))},opLogEventLabel:function(t){var e={"config-create":"新建配置","config-update":"修改配置","config-delete":"删除配置","config-auth":"授权回调"};return e[t]||t||"-"},opLogTagType:function(t){var e={"config-create":"success","config-update":"warning","config-delete":"danger","config-auth":"info"};return e[t]||"info"},diffParts:function(t,e){var a=String(null==t?"":t),i=String(null==e?"":e),l=0;while(l<a.length&&l<i.length&&a[l]===i[l])l++;var r=a.length,o=i.length;while(r>l&&o>l&&a[r-1]===i[o-1])r--,o--;var n=function(t){var e=12;return t.length<=e?t:t.slice(0,6)+"…"+t.slice(-4)},s=a.slice(0,l),c=i.slice(o),u=s.length>12?"…"+s.slice(-8):s,d=c.length>12?c.slice(0,8)+"…":c,p=i.slice(l,o);return{prefix:u,suffix:d,added:n(p||i)}},formatLogTime:function(t){return t?new Date(t).toLocaleString():"-"},openAlertRecipients:function(){var t=this;this.alertRecipientsVisible=!0,this.bindUrl="",this.fetchAlertRecipients(),this.api.wechatLeadFollowQrCode().then((function(e){t.followQrCodeUrl=e.url,t.followQrCodeIsMaterial=e.isMaterial,e.url&&!e.isMaterial&&t.$nextTick((function(){var a=t.$refs.alertFollowQrCode;a&&(a.innerHTML="",new g.a(a,{text:e.url,width:180,height:180,correctLevel:g.a.CorrectLevel.M}))}))})).catch((function(){t.followQrCodeUrl="",t.followQrCodeIsMaterial=!1}))},fetchAlertRecipients:function(){var t=this;this.alertRecipientsLoading=!0,this.api.cluePullAlertRecipients().then((function(e){t.alertRecipients=Array.isArray(e)?e:[],t.alertRecipientsLoading=!1})).catch((function(){t.alertRecipientsLoading=!1}))},bindCurrentAdminWechat:function(){var t=this;this.api.wechatLeadBindUrl().then((function(e){var a=e.url;t.bindUrl=a,t.$nextTick((function(){t.$refs.alertBindQrCode&&(t.$refs.alertBindQrCode.innerHTML="",new g.a(t.$refs.alertBindQrCode,{text:a,width:180,height:180,colorDark:"#182238",colorLight:"#ffffff",correctLevel:g.a.CorrectLevel.H}))}))}))},clearBindQrCode:function(){this.bindUrl="",this.followQrCodeUrl="",this.followQrCodeIsMaterial=!1,this.$refs.alertBindQrCode&&(this.$refs.alertBindQrCode.innerHTML=""),this.$refs.alertFollowQrCode&&(this.$refs.alertFollowQrCode.innerHTML="")},unbindAlertRecipient:function(t){var e=this;this.$confirm("解绑后，该微信也将停止接收此管理员账号的新公众号线索提醒，是否继续？","解绑通知微信",{confirmButtonText:"确定解绑",cancelButtonText:"取消",type:"warning"}).then((function(){return e.api.wechatLeadUnbind({id:t.id})})).then((function(){p["Message"].success("解绑成功"),e.fetchAlertRecipients()})).catch((function(){}))},fetchData:function(){var t=this;this.listLoading=!0,this.api.cluePullList(this.listQuery).then((function(e){for(var a=c(e,2),i=a[0],l=a[1],r=0;r<i.length;r++){var o=i[r];o.createdAt=new Date(o.createdAt).format("yyyy-MM-dd h:m:s")}t.tableData=i,t.total=l,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},cancleForm:function(){this.dialogForm={id:"",local_account_ids:[{value:""}],authUrl:"",remark:"",appid:"",secret:""},this.$refs.dialogForm.resetFields(),this.formVisible=!1},addlocal_account_ids:function(){if(this.dialogForm.local_account_ids.length>=50)return p["Message"].error("最多只能添加50个广告主id");this.dialogForm.local_account_ids.push({value:""})},beforConfirmEdit:function(t){var e=t.local_account_ids.split(",")||[];this.dialogForm={id:t.id,local_account_ids:e.map((function(t){return{value:t}})),authUrl:t.authUrl,remark:t.remark||"",appid:t.appid,secret:t.secret},this.formVisible=!0,console.log(t)},cluePullDelete:function(t){var e=this;this.$confirm("此操作将永久删除该数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.isSubmit=!0,e.api.cluePullDelete(t.id).then((function(){e.fetchData(),e.isSubmit=!1,p["Message"].success("删除成功")})).catch((function(){e.isSubmit=!1}))})).catch((function(){}))},confirmEdit:function(t){var e=this;console.log(t),this.isSubmit=!0;var a=t.local_account_ids.map((function(t){return t.value.trim()})).filter((function(t){return""!==t}));this.api.cluePullUpdateById(t.id,{local_account_ids:a.join(","),authUrl:t.authUrl,remark:t.remark||"",appid:t.appid,secret:t.secret}).then((function(){e.cancleForm(),e.fetchData(),e.isSubmit=!1,p["Message"].success("修改成功")})).catch((function(){e.isSubmit=!1,e.cancleForm()}))},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return e.isSubmit=!1,!1;var a=e.dialogForm.local_account_ids.map((function(t){return t.value.trim()})).filter((function(t){return""!==t}));e.isSubmit=!0,e.api.cluePullCreate([{local_account_ids:a.join(","),authUrl:e.dialogForm.authUrl,remark:e.dialogForm.remark,appid:e.dialogForm.appid,secret:e.dialogForm.secret}]).then((function(){e.isSubmit=!1,e.formVisible=!1,e.fetchData(),p["Message"].success("创建成功")})).catch((function(){e.listLoading=!1,e.isSubmit=!1}))}))}}},m=h,v=(a("028a"),a("2877")),b=Object(v["a"])(m,i,l,!1,null,"10afddbb",null);e["default"]=b.exports},c8d2:function(t,e,a){var i=a("d039"),l=a("5899"),r="​᠎";t.exports=function(t){return i((function(){return!!l[t]()||r[t]()!=r||l[t].name!==t}))}},d81d:function(t,e,a){"use strict";var i=a("23e7"),l=a("b727").map,r=a("1dde"),o=a("ae40"),n=r("map"),s=o("map");i({target:"Array",proto:!0,forced:!n||!s},{map:function(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}})},fca0:function(t,e,a){}}]);