chunk-ae8b6190.ceb30ba2.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ae8b6190"],{"09fe":function(t,e,i){},1304:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page"},[n("div",{staticClass:"flex-row border-bottom"},[n("van-field",{staticStyle:{padding:"10px 0"},attrs:{placeholder:"请输入关键字"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),n("div",{staticClass:"search",on:{click:t.search}},[n("img",{attrs:{src:i("c181"),alt:"搜索",width:"18px",height:"18px"}}),n("span",{staticClass:"color28a1ff ml10 font34"},[t._v("搜索")])])],1),t._m(0),n("van-index-bar",{attrs:{"index-list":t.indexList}},[n("van-checkbox-group",{on:{change:t.changeData},model:{value:t.result,callback:function(e){t.result=e},expression:"result"}},t._l(t.list,(function(e){return n("div",{key:e.index},[n("van-index-anchor",{attrs:{index:e.index}},[t._v(t._s(e.index))]),t._l(e.subList,(function(e){return n("van-cell",{key:e.id},[n("van-checkbox",{attrs:{name:e.id}},[n("van-image",{staticClass:"ml10",attrs:{width:"40",height:"40",radius:"5",src:e.headimgurl}}),n("span",{staticClass:"ml20 font28"},[t._v(t._s(e.name))])],1)],1)}))],2)})),0)],1),n("div",{staticClass:"fixedBottom"},[n("div",{staticClass:"flex-sub"},t._l(t.reportObjArr,(function(t){return n("van-image",{key:t.id,staticClass:"mr10 flex-none",attrs:{width:"40",height:"40",radius:"5",src:t.headimgurl}})})),1),n("div",{staticClass:"ml10"},[n("van-button",{staticClass:"font28",attrs:{type:"info",size:"small"},on:{click:t.confirm}},[t._v("确定("+t._s(t.result.length)+") ")])],1)]),n("wzhload",{directives:[{name:"show",rawName:"v-show",value:t.loadFlag,expression:"loadFlag"}]})],1)},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"padding-sm color999 font28 mb20"},[i("span",[t._v("最近联系人")])])}],a=(i("e7e5"),i("d399")),o=i("5530"),s=i("ade3"),c=(i("4056"),i("44bf")),l=(i("66b9"),i("b650")),h=(i("be7f"),i("565f")),d=(i("5852"),i("d961")),u=(i("a909"),i("3acc")),f=(i("3c32"),i("417e")),g=(i("68ef"),i("1f97"),i("d282")),b=i("9884"),v=i("b1d2"),p=i("a8c1"),m=Object(g["a"])("index-anchor"),x=m[0],y=m[1],A=x({mixins:[Object(b["a"])("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var t=this.$el.getBoundingClientRect();this.rect.height=t.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(t,e){var i=this.$el,n=i.getBoundingClientRect();return this.rect.height=n.height,t===window||t===document.body?this.rect.top=n.top+Object(p["b"])():this.rect.top=n.top+Object(p["c"])(t)-e.top,this.rect}},render:function(){var t,e=arguments[0],i=this.sticky;return e("div",{style:{height:i?this.rect.height+"px":null}},[e("div",{style:this.anchorStyle,class:[y({sticky:i}),(t={},t[v["b"]]=i,t)]},[this.slots("default")||this.index])])}}),j=(i("bd4f"),i("a142")),O=i("02de"),k=i("1325"),w=i("3875"),C=i("5fbe");function S(){for(var t=[],e="A".charCodeAt(0),i=0;i<26;i++)t.push(String.fromCharCode(e+i));return t}var L,I=Object(g["a"])("index-bar"),z=I[0],E=I[1],T=z({mixins:[w["a"],Object(b["b"])("vanIndexBar"),Object(C["a"])((function(t){this.scroller||(this.scroller=Object(p["d"])(this.$el)),t(this.scroller,"scroll",this.onScroll)}))],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:S}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Object(j["c"])(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var t=this.highlightColor;if(t)return{color:t}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(t){t&&this.$emit("change",t)}},methods:{onScroll:function(){var t=this;if(!Object(O["a"])(this.$el)){var e=Object(p["c"])(this.scroller),i=this.getScrollerRect(),n=this.children.map((function(e){return e.getRect(t.scroller,i)})),r=this.getActiveAnchorIndex(e,n);this.activeAnchorIndex=this.indexList[r],this.sticky&&this.children.forEach((function(a,o){if(o===r||o===r-1){var s=a.$el.getBoundingClientRect();a.left=s.left,a.width=s.width}else a.left=null,a.width=null;if(o===r)a.active=!0,a.top=Math.max(t.stickyOffsetTop,n[o].top-e)+i.top;else if(o===r-1){var c=n[r].top-e;a.active=c>0,a.top=c+i.top-n[o].height}else a.active=!1}))}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(t,e){for(var i=this.children.length-1;i>=0;i--){var n=i>0?e[i-1].height:0,r=this.sticky?n+this.stickyOffsetTop:0;if(t+r>=e[i].top)return i}return-1},onClick:function(t){this.scrollToElement(t.target)},onTouchMove:function(t){if(this.touchMove(t),"vertical"===this.direction){Object(k["c"])(t);var e=t.touches[0],i=e.clientX,n=e.clientY,r=document.elementFromPoint(i,n);if(r){var a=r.dataset.index;this.touchActiveIndex!==a&&(this.touchActiveIndex=a,this.scrollToElement(r))}}},scrollTo:function(t){var e=this.children.filter((function(e){return String(e.index)===t}));e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&Object(p["g"])(Object(p["b"])()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(t){var e=t.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var t=this,e=arguments[0],i=this.indexList.map((function(i){var n=i===t.activeAnchorIndex;return e("span",{class:E("index",{active:n}),style:n?t.highlightStyle:null,attrs:{"data-index":i}},[i])}));return e("div",{class:E()},[e("div",{class:E("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[i]),this.slots("default")])}}),B=(i("b0c0"),i("d3b7"),i("159b"),i("bcc1")),U=i("2f62"),P={components:(L={},Object(s["a"])(L,T.name,T),Object(s["a"])(L,A.name,A),Object(s["a"])(L,f["a"].name,f["a"]),Object(s["a"])(L,u["a"].name,u["a"]),Object(s["a"])(L,d["a"].name,d["a"]),Object(s["a"])(L,h["a"].name,h["a"]),Object(s["a"])(L,l["a"].name,l["a"]),Object(s["a"])(L,c["a"].name,c["a"]),L),data:function(){return{loadFlag:!1,indexList:[],result:[],value:"",list:[]}},mounted:function(){this.list=[],this.indexList=[],this.getDataList()},computed:{reportObjArr:function(){var t=this,e=[];return this.list.forEach((function(i){i.subList.forEach((function(i){t.result.indexOf(i.id)>-1&&e.push(i)}))})),e}},methods:Object(o["a"])(Object(o["a"])({},Object(U["b"])(["setTransmitData"])),{},{changeData:function(t){console.log(t)},confirm:function(){this.reportObjArr.length?(this.setTransmitData(this.reportObjArr),this.$router.go(-1)):Object(a["a"])({message:"请选择汇报对象",position:"top"})},getDataList:function(){var t=this;this.loadFlag=!0,B["c"]({keyword:this.value}).then((function(e){t.loadFlag=!1;var i=e.data.data;for(var n in i)t.indexList.push(n),t.list.push({index:n,subList:i[n]})})).catch((function(e){t.loadFlag=!1}))},search:function(){this.list=[],this.indexList=[],this.getDataList()}})},D=P,R=(i("e662"),i("2877")),N=Object(R["a"])(D,n,r,!1,null,"12d1d260",null);e["default"]=N.exports},"1f97":function(t,e,i){},2375:function(t,e,i){},4056:function(t,e,i){"use strict";i("68ef"),i("9d70"),i("3743"),i("09fe")},"44bf":function(t,e,i){"use strict";var n=i("2638"),r=i.n(n),a=i("d282"),o=i("a142"),s=i("ea8e"),c=i("ad06"),l=Object(a["a"])("image"),h=l[0],d=l[1];e["a"]=h({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(o["c"])(this.width)&&(t.width=Object(s["a"])(this.width)),Object(o["c"])(this.height)&&(t.height=Object(s["a"])(this.height)),Object(o["c"])(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(s["a"])(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&o["b"]&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){var e=t.el;e===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){var e=t.el;e!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:d("loading")},[this.slots("loading")||t(c["a"],{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:d("loading-icon")})]):this.error&&this.showError?t("div",{class:d("error")},[this.slots("error")||t(c["a"],{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:d("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:d("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",r()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",r()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:d({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}})},5852:function(t,e,i){"use strict";i("68ef"),i("9d70"),i("3743"),i("1a04"),i("1146"),i("f032")},"66b9":function(t,e,i){"use strict";i("68ef"),i("9d70"),i("3743"),i("e3b3"),i("bc1b")},bcc1:function(t,e,i){"use strict";i.d(e,"c",(function(){return r})),i.d(e,"f",(function(){return a})),i.d(e,"e",(function(){return o})),i.d(e,"b",(function(){return s})),i.d(e,"d",(function(){return c})),i.d(e,"a",(function(){return l}));var n=i("b775");function r(t){return Object(n["a"])({url:"/api/dailyWork/reporting_object",method:"post",data:t})}function a(t){return Object(n["a"])({url:"/api/dailyWork/submit_daily",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/api/dailyWork/send_record",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/api/dailyWork/details",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/api/dailyWork/send_comments",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/api/dailyWork/comment_list",method:"post",data:t})}},bd4f:function(t,e,i){},c181:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAzlJREFUWEfFl1+IVHUUxz/fn2NvCr1IhiJBJaRJD8r82SwXUnzobXXmjvQUPgRlG4E9pG/+gf6AZfYQ0lvu3FldKQyCjbCs3d9spZlQYPnQQ1TSkytEjLP3xL3MLrvr7NzZdna8MC/39z3nfH73nN/vnBH3+NE9jk/HAH0V2zoFuyR2GjwosRZL7G82fxcMRmuBrixmU6kAfRXbPiUGBQOdODYYWWG8O1bW153o2wIUqnbMjNebjq5iXDHHdU1xrZHh6sp/iciwOXJsEmwGcsCWWC94bzzQy2kQCwLkQ/sG6Gs6eCtqcHTiOU22c1g4b2uszilgb1N3wwd6pJ1NS4B8aL8CD8eGUcSuiX36PG0ns9fzoQ0C7zTfjflATy5kfxdAIbSTBgdiAx8otUbageVDsyQd4vh4SYdaaecEiAsuEpcSoXjbl3RwMTufr80O2U7nGI3fO+OpVoU5ByAX2rmk2sW3vqTsUoJP2+ZDexM4GJ+OWqA9833OAGSHbItz/JgIjGd8WV90AyD7ka12Gb4CnnDGtrGyvp/tdwYgX7UXMU4hvC+p0I3gM1+hYh8injfjUK2s460BQrsI7MA44ct6tZsAuaq9JuMN4EsfqL8lQC6064JHgaIPdLabAPkh243jM4NfaoE2LpSCSYxV0UrWTwzo924CbBu2BzIRfyJu+5JW9xxg+4itbdzhD+BvH2hN71MQ2rPABeCSD/R0z4uwULXDZhwBPvCBXuj9MQztDLBPYnC8pJMtAZbrIsoP2+NEyUV0f6vGtvxXccWqiCLifV/SSwtexfFCt5tRLrT9gtNAo+FY/11Rf7UFiBe71Y6bPeAasAE44APFg8pdz7IMJHGU7LA95iJ+SnqbkauVNdExQCz8PyPZ/AC5ih2RONyEeKhW1m+pKZgtSBtKXZ1/uI91LmJTcw6MZ8HLPtDWmU4Y2gngFYzJxgo2zq+D1JFrsWM5cNYHKs7ZSGinDfYDP9Qd/ZeLujW9ngowLUz7YyJx3sQnvqgbrXJdCC00KAGf3nIM/FxUPdZ1DLDU7rjjomXqNxk16Mc458tKRveeASQnY8TWuTt8DNyeHkx6CrCoY7jUT96p/X8Cu2owlSS0PgAAAABJRU5ErkJggg=="},d961:function(t,e,i){"use strict";var n=i("2638"),r=i.n(n),a=i("c31d"),o=i("d282"),s=i("ba31"),c=i("1325"),l=i("565f"),h=Object(o["a"])("search"),d=h[0],u=h[1],f=h[2];function g(t,e,i,n){function o(){if(i.label||e.label)return t("div",{class:u("label")},[i.label?i.label():e.label])}function h(){if(e.showAction)return t("div",{class:u("action"),attrs:{role:"button",tabindex:"0"},on:{click:r}},[i.action?i.action():e.actionText||f("cancel")]);function r(){i.action||(Object(s["a"])(n,"input",""),Object(s["a"])(n,"cancel"))}}var d={attrs:n.data.attrs,on:Object(a["a"])({},n.listeners,{keypress:function(t){13===t.keyCode&&(Object(c["c"])(t),Object(s["a"])(n,"search",e.value)),Object(s["a"])(n,"keypress",t)}})},g=Object(s["b"])(n);return g.attrs=void 0,t("div",r()([{class:u({"show-action":e.showAction}),style:{background:e.background}},g]),[null==i.left?void 0:i.left(),t("div",{class:u("content",e.shape)},[o(),t(l["a"],r()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":i["left-icon"],"right-icon":i["right-icon"]}},d]))]),h()])}g.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}},e["a"]=d(g)},e662:function(t,e,i){"use strict";i("2375")},f032:function(t,e,i){}}]);