(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1a28"],{"4p7F":function(e,t,n){},"77fj":function(e,t,n){"use strict";var a=n("Btlj");n.n(a).a},Btlj:function(e,t,n){},HB9S:function(e,t,n){},"I+NK":function(e,t,n){"use strict";var a=n("PWYh");n.n(a).a},JR57:function(e,t,n){"use strict";var a=n("qJF7");n.n(a).a},PWYh:function(e,t,n){},Vm8M:function(e,t,n){"use strict";var a=n("7Qib"),i={name:"MapView",components:{},props:{title:{type:String,default:""},lat:{type:[String,Number],default:0},lng:{type:[String,Number],default:0}},data:function(){return{}},computed:{},mounted:function(){var e=this;this.$el.style.zIndex=Object(a.q)(),document.body.appendChild(this.$el),Object(a.l)().then(function(){var t=new BMap.Map("choicemap",{enableMapClick:!1}),n=new BMap.Point(parseFloat(e.lng),parseFloat(e.lat));t.centerAndZoom(n,18),t.enableScrollWheelZoom();var a=new BMap.Marker(n);t.addOverlay(a);var i=new BMap.InfoWindow(e.title);a.addEventListener("click",function(){t.openInfoWindow(i,n)})})},destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{hiddenView:function(){this.$emit("hidden")}}},o=(n("I+NK"),n("KHd+")),s=Object(o.a)(i,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"map-view"},[t("div",{attrs:{id:"choicemap"}}),this._v(" "),t("i",{staticClass:"el-icon-close map-close",on:{click:this.hiddenView}})])},[],!1,null,"33a9f6bf",null);s.options.__file="MapView.vue";t.a=s.exports},YSp2:function(e,t,n){"use strict";n.d(t,"f",function(){return s}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return l}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"i",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return h}),n.d(t,"c",function(){return m}),n.d(t,"o",function(){return f}),n.d(t,"n",function(){return y}),n.d(t,"m",function(){return b}),n.d(t,"l",function(){return v}),n.d(t,"a",function(){return T}),n.d(t,"b",function(){return C});var a=n("GQeE"),i=n.n(a),o=n("t3Un");function s(e){return Object(o.a)({url:"admin/structures/delete",method:"post",data:e})}function r(e){return Object(o.a)({url:"admin/structures/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function l(e){return Object(o.a)({url:"admin/structures/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(o.a)({url:"admin/users/update",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function u(e){return Object(o.a)({url:"admin/users/save",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e){return Object(o.a)({url:"admin/groups/index",method:"post",data:e})}function p(e){return Object(o.a)({url:"admin/users/updatePwd",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function h(e){return Object(o.a)({url:"admin/users/usernameEdit",method:"post",data:e})}function m(e){return Object(o.a)({url:"adminUser/usernameEditByManager",method:"post",data:e})}function f(e){return Object(o.a)({url:"admin/users/enables",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}function y(e){return Object(o.a)({url:"admin/users/excelDownload",method:"get",data:e,responseType:"blob"})}function b(e){var t=new FormData;return i()(e).forEach(function(n){t.append(n,e[n])}),Object(o.a)({url:"admin/users/import",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"},timeout:6e4})}function v(e){return Object(o.a)({url:"admin/file/download",method:"post",data:e,responseType:"blob"})}function T(){return Object(o.a)({url:"admin/users/countNumOfUser",method:"post"})}function C(e){return Object(o.a)({url:"admin/users/setUserDept",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}},ZX9L:function(e,t,n){"use strict";var a={name:"TimeTypeSelect",props:{defaultType:[String,Object],width:{type:Number,default:200},options:{type:Array,default:function(){return[{label:"今天",value:"today"},{label:"昨天",value:"yesterday"},{label:"本周",value:"week"},{label:"上周",value:"lastWeek"},{label:"本月",value:"month"},{label:"上月",value:"lastMonth"},{label:"本季度",value:"quarter"},{label:"上季度",value:"lastQuarter"},{label:"本年",value:"year"},{label:"去年",value:"lastYear"}]}}},data:function(){return{selectType:{label:"本年",value:"year"},showTypePopover:!1,showCustomContent:!1,sureCustomContent:!1,startTime:"",endTime:""}},computed:{typeShowValue:function(){return this.sureCustomContent?this.startTime||this.endTime?(this.startTime||"")+"-"+(this.endTime||""):"":this.selectType.label}},watch:{defaultType:function(){this.selectType.value!=this.defaultType&&(this.selectType=this.getDefaultTypeValue(this.defaultType))}},mounted:function(){void 0!==this.defaultType?"string"==typeof this.defaultType?this.selectType=this.getDefaultTypeValue(this.defaultType):this.defaultType.label?this.selectType=this.defaultType:"default"==this.defaultType.type?this.selectType=this.getDefaultTypeValue(this.defaultType.value):"custom"==this.defaultType.type&&(this.sureCustomContent=!0,this.showCustomContent=!0,this.startTime=this.defaultType.startTime,this.endTime=this.defaultType.endTime):this.$emit("change",{type:"default",value:this.selectType.value})},methods:{getDefaultTypeValue:function(e){for(var t=0;t2&&void 0!==arguments[2]&&arguments[2];this.relationID=t,this.relationCrmType=n?b.a.convertTypeToKey(e):e,this.showFullDetail=!0},userChange:function(e){this.filterForm.user_id=e.value.length>0?e.value[0].id:""},timeTypeChange:function(e){this.timeSelect=e,this.refreshList()},detailHandle:function(e){"delete"==e.type&&this.refreshList()},logCellDelete:function(e,t,n){this.list.splice(t,1),this.scrollKey=Date.now()},logCellEdit:function(e,t,n){this.logEditData=e,this.logEditPosition={seciton:n,index:t},this.logEditDialogVisible=!0},logEditSave:function(e){this.logEditPosition.index>=0&&this.list.splice(this.logEditPosition.index,1,e)},handleTypeDrop:function(e){var t=this;if(this.requestParams.label){if("out"==e)Object(r.m)(this.requestParams).then(function(e){Object(v.c)(e)}).catch(function(){});else if("enter"==e){var n=this.options.find(function(e){return e.value===t.requestParams.label});this.$bus.emit("import-crm-bus","crmFollowLog",{typeName:n.label+"跟进记录",ownerSelectShow:!1,repeatHandleShow:!1,historyShow:!1,noImportProcess:!0,importRequest:r.n,importParams:{crmType:this.requestParams.label},templateRequest:r.l,templateParams:{crmType:this.requestParams.label},downloadErrFuc:this.getImportError})}}else this.$message.error("请先选择一个模块导入/导出")},getImportError:function(e){return new i.a(function(t,n){Object(l.l)({token:e.token}).then(function(e){t(e)}).catch(function(){n()})})}}},g=(n("pW/d"),Object(u.a)(C,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"main"},[n("record-tab-head",{attrs:{tabs:e.tabs,count:e.count,"select-value":e.tabsSelectValue},on:{"update:selectValue":function(t){e.tabsSelectValue=t},change:e.tabsChange}}),e._v(" "),n("flexbox",{staticClass:"filter-control card"},[n("el-input",{attrs:{placeholder:"关键字搜索","prefix-icon":"el-icon-search"},model:{value:e.filterForm.search,callback:function(t){e.$set(e.filterForm,"search",t)},expression:"filterForm.search"}}),e._v(" "),e.userSelectShow?n("xh-user-cell",{staticClass:"xh-user-cell",attrs:{radio:"",placeholder:"选择人员"},on:{"value-change":e.userChange}}):e._e(),e._v(" "),n("time-type-select",{attrs:{width:190,"default-type":e.timeSelect.value},on:{change:e.timeTypeChange}}),e._v(" "),n("el-select",{attrs:{placeholder:"选择"},model:{value:e.filterForm.crmType,callback:function(t){e.$set(e.filterForm,"crmType",t)},expression:"filterForm.crmType"}},e._l(e.options,function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),e._v(" "),n("el-select",{attrs:{placeholder:"选择"},model:{value:e.filterForm.queryType,callback:function(t){e.$set(e.filterForm,"queryType",t)},expression:"filterForm.queryType"}},e._l([{label:"全部",value:0},{label:"跟进记录",value:1},{label:"外勤签到",value:4}],function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),e._v(" "),e.moreTypes.length>0?n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleTypeDrop}},[n("el-button",{attrs:{icon:"el-icon-more"}}),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.moreTypes,function(t,a){return n("el-dropdown-item",{key:a,attrs:{icon:t.icon,command:t.type}},[e._v(e._s(t.name))])}))],1):e._e()],1),e._v(" "),n("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.getList,expression:"getList"}],key:""+e.scrollKey+e.tabsSelectValue,staticClass:"cell-section",attrs:{"infinite-scroll-distance":"100","infinite-scroll-disabled":"scrollDisabled"}},[e._l(e.list,function(t,a){return n("log-cell",{key:a,staticClass:"log-cell",attrs:{item:t,index:a},on:{"crm-detail":e.checkRelationDetail,delete:e.logCellDelete,edit:e.logCellEdit}},[n("div",{staticClass:"relate-cell",on:{click:function(n){e.checkRelationDetail(t.activity_type,t.activity_type_id,!0)}}},[n("i",{staticClass:"relate-cell-icon",class:e._f("crmIconClass")(t.activity_type)}),e._v(" "),n("span",{staticClass:"relate-cell-type"},[e._v(e._s(e._f("crmName")(t.activity_type))+"-")]),e._v(" "),n("span",{staticClass:"relate-cell-name"},[e._v(e._s(t.activity_type_name))])])])}),e._v(" "),e.loading?n("p",{staticClass:"scroll-bottom-tips"},[e._v("加载中...")]):e._e(),e._v(" "),e.noMore?n("p",{staticClass:"scroll-bottom-tips"},[e._v("没有更多了")]):e._e()],2),e._v(" "),n("c-r-m-full-screen-detail",{attrs:{visible:e.showFullDetail,"crm-type":e.relationCrmType,id:e.relationID},on:{"update:visible":function(t){e.showFullDetail=t},handle:e.detailHandle}}),e._v(" "),n("log-edit-dialog",{attrs:{visible:e.logEditDialogVisible,data:e.logEditData},on:{"update:visible":function(t){e.logEditDialogVisible=t},save:e.logEditSave}})],1)},[],!1,null,"39ac00fd",null));g.options.__file="FollowIndex.vue";t.default=g.exports}}]);