You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/static/js/chunk-64cb.fcd32d76.js

1 line
19 KiB

3 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-64cb"],{"2f65":function(t,e,i){},"7mY3":function(t,e,i){"use strict";var s=i("2f65");i.n(s).a},"9GgJ":function(t,e,i){"use strict";var s={name:"XrHeader",components:{},props:{iconClass:[String,Array],iconColor:String,label:String,showSearch:{type:Boolean,default:!1},searchIconType:{type:String,default:"text"},placeholder:{type:String,default:"请输入内容"},ftTop:{type:String,default:"15px"},content:[String,Number],inputAttr:{type:Object,default:function(){}}},data:function(){return{search:""}},computed:{},watch:{content:{handler:function(){this.search!=this.content&&(this.search=this.content)},immediate:!0}},mounted:function(){},beforeDestroy:function(){},methods:{inputChange:function(){this.$emit("update:content",this.search)},searchClick:function(){this.$emit("search",this.search)}}},n=(i("7mY3"),i("KHd+")),a=Object(n.a)(s,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("flexbox",{staticClass:"xr-header"},[t.iconClass?i("div",{staticClass:"xr-header__icon",style:{backgroundColor:t.iconColor}},[i("i",{class:t.iconClass})]):t._e(),t._v(" "),i("div",{staticClass:"xr-header__label"},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2),t._v(" "),t.showSearch?i("el-input",t._b({staticClass:"xr-header__search",class:{"is-text":"text"===t.searchIconType},style:{"margin-top":t.ftTop},attrs:{placeholder:t.placeholder},on:{input:t.inputChange},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchClick(e):null}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},"el-input",t.inputAttr,!1),["text"===t.searchIconType?i("el-button",{attrs:{slot:"append",type:"primary"},nativeOn:{click:function(e){return t.searchClick(e)}},slot:"append"},[t._v("搜索")]):i("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(e){return t.searchClick(e)}},slot:"append"})],1):t._e(),t._v(" "),i("div",{staticClass:"xr-header__ft",style:{top:t.ftTop}},[t._t("ft")],2)],1)},[],!1,null,"acb6d756",null);a.options.__file="index.vue";e.a=a.exports},IJOt:function(t,e,i){"use strict";i.r(e);var s=i("FyfS"),n=i.n(s),a=i("hSIE"),c=i("Flj7"),l=i("C3Po"),o=i("pKm3"),r=i("9GgJ"),d=i("Mzjh"),u=i("t2rG"),h=i.n(u),m=i("IKCp"),p=i("kK4T"),f=i("7Qib"),v={components:{draggable:h.a,TaskQuickAdd:l.a,TaskDetail:o.a,XrHeader:r.a,TaskScreening:d.a},directives:{scrollx:m.a},mixins:[p.a],data:function(){return{taskHandleShow:!1,taskList:[],loading:!0,filterObj:{},filterValue:{sort:2,completed_task:!0},filterList:[{label:"按手动拖拽",value:1},{label:"按最近创建",value:2},{label:"按最近截止",value:3},{label:"按最近更新",value:4},{label:"按最高优先级",value:5}],search:"",screeningValue:{userIds:[],timeId:"",tagIds:[]},screeningShow:!1,screeningProps:{searchShow:!1,userRequest:a.c},task_iD:"",detailIndex:-1,detailSection:-1,taskDetailShow:!1}},created:function(){var t=this;this.filterList.forEach(function(e){t.filterObj[e.value]=e.label}),this.getList()},mounted:function(){document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},methods:{searchClick:function(t){this.search=t,this.getList()},taskScreeningChange:function(t,e,i){this.screeningValue={userIds:t,timeId:e,tagIds:i},this.getList()},filterClick:function(t){this.filterValue.sort=t,this.getList()},getList:function(){var t=this;this.loading=!0,Object(a.f)({search:this.search,sort_field:this.filterValue.sort,completed_task:this.filterValue.completed_task,owner_user_id:this.screeningValue.userIds,time_type:this.screeningValue.timeId,label_id:this.screeningValue.tagIds}).then(function(e){var i=!0,s=!1,a=void 0;try{for(var c,l=n()(e.data);!(i=(c=l.next()).done);i=!0){var o=c.value;o.checkedNum=0,o.showTaskAdd=!1;var r=!0,d=!1,u=void 0;try{for(var h,m=n()(o.list);!(r=(h=m.next()).done);r=!0){var p=h.value;5==p.status?(p.checked=!0,o.checkedNum+=1):p.checked=!1}}catch(t){d=!0,u=t}finally{try{!r&&m.return&&m.return()}finally{if(d)throw u}}}}catch(t){s=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(s)thro