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-8c5b.dc1ef5f9.js

1 line
70 KiB

4 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-8c5b"],{"+D+8":function(t,e,s){"use strict";var i=s("M6Gn");s.n(i).a},"+mv6":function(t,e,s){"use strict";var i=s("cV04");s.n(i).a},"/BaV":function(t,e,s){"use strict";var i=s("MI42");s.n(i).a},"/esw":function(t,e,s){"use strict";var i=s("Flj7"),a={name:"TaskCell",components:{},mixins:[s("kK4T").a],props:{data:Object,dataIndex:Number,dataSection:Number},data:function(){return{}},computed:{priority:function(){return 0!=this.data.priority&&this.data.priority?this.getPriorityColor(this.data.priority):this.priorityList[3]},showLabels:function(){return this.data.lableList.length>3?this.data.lableList.slice(0,3):this.data.lableList},hideShowLabels:function(){return this.data.lableList.length>3?this.data.lableList.slice(3):[]}},watch:{},mounted:function(){},methods:{taskOverClick:function(t){var e=this;Object(i.n)({task_id:t.task_id,status:t.checked?5:1}).then(function(t){e.$emit("on-handle","complete",e.data,e.dataIndex,e.dataSection)}).catch(function(){t.checked=!1})},rowFun:function(t){this.$emit("on-handle","view",this.data,this.dataIndex,this.dataSection)},onmouseoverFun:function(t){this.$refs.itemSpan.offsetWidth>this.$refs.listLeft.offsetWidth-21?this.$set(t,"show",!0):this.$set(t,"show",!1)}}},n=(s("+D+8"),s("KHd+")),o=Object(n.a)(a,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"taskRow",staticClass:"list task-cell",on:{click:function(e){t.rowFun(t.data)}}},[s("div",{ref:"listLeft",staticClass:"list-left"},[s("div",{class:t.data.checked?"title title-active":"title",on:{click:function(t){t.stopPropagation()}}},[s("el-checkbox",{on:{change:function(e){t.taskOverClick(t.data)}},model:{value:t.data.checked,callback:function(e){t.$set(t.data,"checked",e)},expression:"data.checked"}})],1),t._v(" "),s("span",{staticClass:"priority",style:{backgroundColor:t.priority.color}},[t._v(t._s(t.priority.label))]),t._v(" "),s("el-tooltip",{attrs:{placement:"bottom",effect:"light","popper-class":"task-tooltip tooltip-change-border"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.data.task_name||t.data.name))])]),t._v(" "),s("span",{ref:"itemSpan",class:t.data.checked?"item-name-active":"item-name"},[t._v("\n "+t._s(t.data.task_name||t.data.name)+"\n ")])])],1),t._v(" "),s("div",{staticClass:"list-right"},[t.data.lableList&&t.data.lableList.length>0?s("div",{staticClass:"tag-box"},[t._l(t.showLabels,function(e,i){return s("span",{key:i,staticClass:"k-name",style:{background:e.color}},[t._v(t._s(e.name))])}),t._v(" "),t.hideShowLabels.length?s("el-tooltip",{attrs:{placement:"top",effect:"light","popper-class":"tooltip-change-border"}},[s("div",{staticClass:"tooltip-content",attrs:{slot:"content"},slot:"content"},t._l(t.hideShowLabels,function(e,i){return s("div",{key:i,staticClass:"item-label",staticStyle:{display:"inline-block","margin-right":"10px"}},[s("span",{staticClass:"k-name",staticStyle:{"border-radius":"3px",color:"#FFF",padding:"3px 10px"},style:{background:e.color||"#ccc"}},[t._v(t._s(e.name))])])})),t._v(" "),s("el-button",{staticClass:"more-btn",attrs:{icon:"el-icon-more"}})],1):t._e()],2):t._e(),t._v(" "),t.data.stop_time||t.data.stopTime?s("span",{class:["due-time",{"is-past":1==t.data.is_end}]},[t._v("\n 截止时间"+t._s(t.data.stop_time||t.data.stopTime)+"\n ")]):t._e(),t._v(" "),s("div",{staticClass:"img-group"},[t.data.relationCount?s("div",{staticClass:"img-box"},[s("i",{staticClass:"wukong wukong-relevance"}),t._v(" "),s("span",[t._v(t._s(t.data.relationCount))])]):t._e(),t._v(" "),t.data.subdonecount>0||t.data.subcount?s("div",{staticClass:"img-box"},[s("i",{staticClass:"wukong wukong-sub-task"}),t._v(" "),s("span",[t._v(t._s(t.data.subdonecount)+"/"+t._s(t.data.subdonecount+t.data.subcount))])]):t._e(),t._v(" "),t.data.filecount?s("div",{staticClass:"img-box"},[s("i",{staticClass:"wukong wukong-file"}),t._v(" "),s("span",[t._v(t._s(t.data.filecount))])]):t._e(),t._v(" "),t.data.commentcount||t.data.commentCount?s("div",{staticClass:"img-box"},[s("i",{staticClass:"wukong wukong-c