8 lines
152 KiB
PHP
8 lines
152 KiB
PHP
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49af4496"],{"19f2":function(t,e,n){"use strict";n("6b5e")},"1b56":function(t,e,n){},"1b80":function(t,e,n){"use strict";e["a"]={data:function(){return{pagination:{page:1,pageSize:10,total:0,showTotal:function(t,e){return"共 ".concat(t," 条")}}}},computed:{requestData:function(){return{page:this.pagination.page,pageSize:this.pagination.pageSize}}},methods:{init:function(){},pageChange:function(t){this.pagination.page=t,this.requestData.page=t.current,this.init()}}}},"2480f":function(t,e,n){"use strict";
|
|
/**!
|
|
* Sortable 1.10.2
|
|
* @author RubaXa <trash@rubaxa.org>
|
|
* @author owenm <owen23355@gmail.com>
|
|
* @license MIT
|
|
*/
|
|
function a(t){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},r.apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},a=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),a.forEach((function(e){o(t,e,n[e])}))}return t}function s(t,e){if(null==t)return{};var n,a,o={},r=Object.keys(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||(o[n]=t[n]);return o}function c(t,e){if(null==t)return{};var n,a,o=s(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function l(t){return u(t)||d(t)||f()}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(e),n.d(e,"MultiDrag",(function(){return We})),n.d(e,"Sortable",(function(){return Zt})),n.d(e,"Swap",(function(){return Se}));var p="1.10.2";function h(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var m=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),v=h(/Edge/i),g=h(/firefox/i),b=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),k=h(/iP(ad|od|hone)/i),w=h(/chrome/i)&&h(/android/i),y={capture:!1,passive:!1};function _(t,e,n){t.addEventListener(e,n,!m&&y)}function C(t,e,n){t.removeEventListener(e,n,!m&&y)}function j(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function x(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function S(t,e,n,a){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&j(t,e):j(t,e))||a&&t===n)return t;if(t===n)break}while(t=x(t))}return null}var T,O=/\s+/g;function M(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var a=(" "+t.className+" ").replace(O," ").replace(" "+e+" "," ");t.className=(a+(n?" "+e:"")).replace(O," ")}}function D(t,e,n){var a=t&&t.style;if(a){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in a||-1!==e.indexOf("webkit")||(e="-webkit-"+e),a[e]=n+("string"===typeof n?"":"px")}}function E(t,e){var n="";if("string"===typeof t)n=t;else do{var a=D(t,"transform");a&&"none"!==a&&(n=a+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function R(t,e,n){if(t){var a=t.getElementsByTagName(e),o=0,r=a.length;if(n)for(;o<r;o++)n(a[o],o);return a}return[]}function P(){var t=document.scrollingElement;return t||document.documentElement}function N(t,e,n,a,o){if(t.getBoundingClientRect||t===window){var r,i,s,c,l,u,d;if(t!==window&&t!==P()?(r=t.getBoundingClientRect(),i=r.top,s=r.left,c=r.bottom,l=r.right,u=r.height,d=r.width):(i=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!m))do{if(o&&o.getBoundingClientRect&&("none"!==D(o,"transform")||n&&"static"!==D(o,"position"))){var f=o.getBoundingClientRect();i-=f.top+parseInt(D(o,"border-top-width")),s-=f.left+parseInt(D(o,"border-left-width")),c=i+r.height,l=s+r.width;break}}while(o=o.parentNode);if(a&&t!==window){var p=E(o||t),h=p&&p.a,v=p&&p.d;p&&(i/=v,s/=h,d/=h,u/=v,c=i+u,l=s+d)}return{top:i,left:s,bottom:c,right:l,width:d,height:u}}}function A(t,e,n){var a=z(t,!0),o=N(t)[e];while(a){var r=N(a)[n],i=void 0;if(i="top"===n||"left"===n?o>=r:o<=r,!i)return a;if(a===P())break;a=z(a,!1)}return!1}function L(t,e,n){var a=0,o=0,r=t.children;while(o<r.length){if("none"!==r[o].style.display&&r[o]!==Zt.ghost&&r[o]!==Zt.dragged&&S(r[o],n.draggable,t,!1)){if(a===e)return r[o];a++}o++}return null}function I(t,e){var n=t.lastElementChild;while(n&&(n===Zt.ghost||"none"===D(n,"display")||e&&!j(n,e)))n=n.previousElementSibling;return n||null}function W(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Zt.clone||e&&!j(t,e)||n++;return n}function $(t){var e=0,n=0,a=P();if(t)do{var o=E(t),r=o.a,i=o.d;e+=t.scrollLeft*r,n+=t.scrollTop*i}while(t!==a&&(t=t.parentNode));return[e,n]}function Y(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var a in e)if(e.hasOwnProperty(a)&&e[a]===t[n][a])return Number(n);return-1}function z(t,e){if(!t||!t.getBoundingClientRect)return P();var n=t,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return P();if(a||e)return n;a=!0}}}while(n=n.parentNode);return P()}function F(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function K(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function B(t,e){return function(){if(!T){var n=arguments,a=this;1===n.length?t.call(a,n[0]):t.apply(a,n),T=setTimeout((function(){T=void 0}),e)}}}function U(){clearTimeout(T),T=void 0}function V(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function X(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function H(t,e){D(t,"position","absolute"),D(t,"top",e.top),D(t,"left",e.left),D(t,"width",e.width),D(t,"height",e.height)}function q(t){D(t,"position",""),D(t,"top",""),D(t,"left",""),D(t,"width",""),D(t,"height","")}var G="Sortable"+(new Date).getTime();function J(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==D(t,"display")&&t!==Zt.ghost){e.push({target:t,rect:N(t)});var n=i({},e[e.length-1].rect);if(t.thisAnimationDuration){var a=E(t,!0);a&&(n.top-=a.f,n.left-=a.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Y(e,{target:t}),1)},animateAll:function(n){var a=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var o=!1,r=0;e.forEach((function(t){var e=0,n=t.target,i=n.fromRect,s=N(n),c=n.prevFromRect,l=n.prevToRect,u=t.rect,d=E(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&K(c,s)&&!K(i,s)&&(u.top-s.top)/(u.left-s.left)===(i.top-s.top)/(i.left-s.left)&&(e=Q(u,c,l,a.options)),K(s,i)||(n.prevFromRect=i,n.prevToRect=s,e||(e=a.options.animation),a.animate(n,u,s,e)),e&&(o=!0,r=Math.max(r,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),o?t=setTimeout((function(){"function"===typeof n&&n()}),r):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,a){if(a){D(t,"transition",""),D(t,"transform","");var o=E(this.el),r=o&&o.a,i=o&&o.d,s=(e.left-n.left)/(r||1),c=(e.top-n.top)/(i||1);t.animatingX=!!s,t.animatingY=!!c,D(t,"transform","translate3d("+s+"px,"+c+"px,0)"),Z(t),D(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),D(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){D(t,"transition",""),D(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),a)}}}}function Z(t){return t.offsetWidth}function Q(t,e,n,a){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*a.animation}var tt=[],et={initializeByDefault:!0},nt={mount:function(t){for(var e in et)et.hasOwnProperty(e)&&!(e in t)&&(t[e]=et[e]);tt.push(t)},pluginEvent:function(t,e,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var o=t+"Global";tt.forEach((function(a){e[a.pluginName]&&(e[a.pluginName][o]&&e[a.pluginName][o](i({sortable:e},n)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](i({sortable:e},n)))}))},initializePlugins:function(t,e,n,a){for(var o in tt.forEach((function(a){var o=a.pluginName;if(t.options[o]||a.initializeByDefault){var i=new a(t,e,t.options);i.sortable=t,i.options=t.options,t[o]=i,r(n,i.defaults)}})),t.options)if(t.options.hasOwnProperty(o)){var i=this.modifyOption(t,o,t.options[o]);"undefined"!==typeof i&&(t.options[o]=i)}},getEventProperties:function(t,e){var n={};return tt.forEach((function(a){"function"===typeof a.eventProperties&&r(n,a.eventProperties.call(e[a.pluginName],t))})),n},modifyOption:function(t,e,n){var a;return tt.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"===typeof o.optionListeners[e]&&(a=o.optionListeners[e].call(t[o.pluginName],n))})),a}};function at(t){var e=t.sortable,n=t.rootEl,a=t.name,o=t.targetEl,r=t.cloneEl,s=t.toEl,c=t.fromEl,l=t.oldIndex,u=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[G],e){var b,k=e.options,w="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||m||v?(b=document.createEvent("Event"),b.initEvent(a,!0,!0)):b=new CustomEvent(a,{bubbles:!0,cancelable:!0}),b.to=s||n,b.from=c||n,b.item=o||n,b.clone=r,b.oldIndex=l,b.newIndex=u,b.oldDraggableIndex=d,b.newDraggableIndex=f,b.originalEvent=p,b.pullMode=h?h.lastPutMode:void 0;var y=i({},g,nt.getEventProperties(a,e));for(var _ in y)b[_]=y[_];n&&n.dispatchEvent(b),k[w]&&k[w].call(e,b)}}var ot=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.evt,o=c(n,["evt"]);nt.pluginEvent.bind(Zt)(t,e,i({dragEl:it,parentEl:st,ghostEl:ct,rootEl:lt,nextEl:ut,lastDownEl:dt,cloneEl:ft,cloneHidden:pt,dragStarted:St,putSortable:kt,activeSortable:Zt.active,originalEvent:a,oldIndex:ht,oldDraggableIndex:vt,newIndex:mt,newDraggableIndex:gt,hideGhostForTarget:Ht,unhideGhostForTarget:qt,cloneNowHidden:function(){pt=!0},cloneNowShown:function(){pt=!1},dispatchSortableEvent:function(t){rt({sortable:e,name:t,originalEvent:a})}},o))};function rt(t){at(i({putSortable:kt,cloneEl:ft,targetEl:it,rootEl:lt,oldIndex:ht,oldDraggableIndex:vt,newIndex:mt,newDraggableIndex:gt},t))}var it,st,ct,lt,ut,dt,ft,pt,ht,mt,vt,gt,bt,kt,wt,yt,_t,Ct,jt,xt,St,Tt,Ot,Mt,Dt,Et=!1,Rt=!1,Pt=[],Nt=!1,At=!1,Lt=[],It=!1,Wt=[],$t="undefined"!==typeof document,Yt=k,zt=v||m?"cssFloat":"float",Ft=$t&&!w&&!k&&"draggable"in document.createElement("div"),Kt=function(){if($t){if(m)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Bt=function(t,e){var n=D(t),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=L(t,0,e),r=L(t,1,e),i=o&&D(o),s=r&&D(r),c=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+N(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+N(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i["float"]&&"none"!==i["float"]){var u="left"===i["float"]?"left":"right";return!r||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||c>=a&&"none"===n[zt]||r&&"none"===n[zt]&&c+l>a)?"vertical":"horizontal"},Ut=function(t,e,n){var a=n?t.left:t.top,o=n?t.right:t.bottom,r=n?t.width:t.height,i=n?e.left:e.top,s=n?e.right:e.bottom,c=n?e.width:e.height;return a===i||o===s||a+r/2===i+c/2},Vt=function(t,e){var n;return Pt.some((function(a){if(!I(a)){var o=N(a),r=a[G].options.emptyInsertThreshold,i=t>=o.left-r&&t<=o.right+r,s=e>=o.top-r&&e<=o.bottom+r;return r&&i&&s?n=a:void 0}})),n},Xt=function(t){function e(t,n){return function(a,o,r,i){var s=a.options.group.name&&o.options.group.name&&a.options.group.name===o.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(a,o,r,i),n)(a,o,r,i);var c=(n?a:o).options.group.name;return!0===t||"string"===typeof t&&t===c||t.join&&t.indexOf(c)>-1}}var n={},o=t.group;o&&"object"==a(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Ht=function(){!Kt&&ct&&D(ct,"display","none")},qt=function(){!Kt&&ct&&D(ct,"display","")};$t&&document.addEventListener("click",(function(t){if(Rt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Rt=!1,!1}),!0);var Gt=function(t){if(it){t=t.touches?t.touches[0]:t;var e=Vt(t.clientX,t.clientY);if(e){var n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[G]._onDragOver(n)}}},Jt=function(t){it&&it.parentNode[G]._isOutsideThisEl(t.target)};function Zt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=r({},e),t[G]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Bt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Zt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var a in nt.initializePlugins(this,t,n),n)!(a in e)&&(e[a]=n[a]);for(var o in Xt(e),this)"_"===o.charAt(0)&&"function"===typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Ft,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?_(t,"pointerdown",this._onTapStart):(_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Pt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),r(this,J())}function Qt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function te(t,e,n,a,o,r,i,s){var c,l,u=t[G],d=u.options.onMove;return!window.CustomEvent||m||v?(c=document.createEvent("Event"),c.initEvent("move",!0,!0)):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=e,c.from=t,c.dragged=n,c.draggedRect=a,c.related=o||e,c.relatedRect=r||N(e),c.willInsertAfter=s,c.originalEvent=i,t.dispatchEvent(c),d&&(l=d.call(u,c,i)),l}function ee(t){t.draggable=!1}function ne(){It=!1}function ae(t,e,n){var a=N(I(n.el,n.options.draggable)),o=10;return e?t.clientX>a.right+o||t.clientX<=a.right&&t.clientY>a.bottom&&t.clientX>=a.left:t.clientX>a.right&&t.clientY>a.top||t.clientX<=a.right&&t.clientY>a.bottom+o}function oe(t,e,n,a,o,r,i,s){var c=a?t.clientY:t.clientX,l=a?n.height:n.width,u=a?n.top:n.left,d=a?n.bottom:n.right,f=!1;if(!i)if(s&&Mt<l*o){if(!Nt&&(1===Ot?c>u+l*r/2:c<d-l*r/2)&&(Nt=!0),Nt)f=!0;else if(1===Ot?c<u+Mt:c>d-Mt)return-Ot}else if(c>u+l*(1-o)/2&&c<d-l*(1-o)/2)return re(e);return f=f||i,f&&(c<u+l*r/2||c>d-l*r/2)?c>u+l/2?1:-1:0}function re(t){return W(it)<W(t)?1:-1}function ie(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,a=0;while(n--)a+=e.charCodeAt(n);return a.toString(36)}function se(t){Wt.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var a=e[n];a.checked&&Wt.push(a)}}function ce(t){return setTimeout(t,0)}function le(t){return clearTimeout(t)}Zt.prototype={constructor:Zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Tt=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,it):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,a=this.options,o=a.preventOnFilter,r=t.type,i=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(i||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,l=a.filter;if(se(n),!it&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||a.disabled)&&!c.isContentEditable&&(s=S(s,a.draggable,n,!1),(!s||!s.animated)&&dt!==s)){if(ht=W(s),vt=W(s,a.draggable),"function"===typeof l){if(l.call(this,t,s,this))return rt({sortable:e,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),ot("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(a){if(a=S(c,a.trim(),n,!1),a)return rt({sortable:e,rootEl:a,name:"filter",targetEl:s,fromEl:n,toEl:n}),ot("filter",e,{evt:t}),!0})),l))return void(o&&t.cancelable&&t.preventDefault());a.handle&&!S(c,a.handle,n,!1)||this._prepareDragStart(t,i,s)}}},_prepareDragStart:function(t,e,n){var a,o=this,r=o.el,i=o.options,s=r.ownerDocument;if(n&&!it&&n.parentNode===r){var c=N(n);if(lt=r,it=n,st=it.parentNode,ut=it.nextSibling,dt=n,bt=i.group,Zt.dragged=it,wt={target:it,clientX:(e||t).clientX,clientY:(e||t).clientY},jt=wt.clientX-c.left,xt=wt.clientY-c.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,it.style["will-change"]="all",a=function(){ot("delayEnded",o,{evt:t}),Zt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!g&&o.nativeDraggable&&(it.draggable=!0),o._triggerDragStart(t,e),rt({sortable:o,name:"choose",originalEvent:t}),M(it,i.chosenClass,!0))},i.ignore.split(",").forEach((function(t){R(it,t.trim(),ee)})),_(s,"dragover",Gt),_(s,"mousemove",Gt),_(s,"touchmove",Gt),_(s,"mouseup",o._onDrop),_(s,"touchend",o._onDrop),_(s,"touchcancel",o._onDrop),g&&this.nativeDraggable&&(this.options.touchStartThreshold=4,it.draggable=!0),ot("delayStart",this,{evt:t}),!i.delay||i.delayOnTouchOnly&&!e||this.nativeDraggable&&(v||m))a();else{if(Zt.eventCanceled)return void this._onDrop();_(s,"mouseup",o._disableDelayedDrag),_(s,"touchend",o._disableDelayedDrag),_(s,"touchcancel",o._disableDelayedDrag),_(s,"mousemove",o._delayedDragTouchMoveHandler),_(s,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&_(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,i.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){it&&ee(it),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;C(t,"mouseup",this._disableDelayedDrag),C(t,"touchend",this._disableDelayedDrag),C(t,"touchcancel",this._disableDelayedDrag),C(t,"mousemove",this._delayedDragTouchMoveHandler),C(t,"touchmove",this._delayedDragTouchMoveHandler),C(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):_(document,e?"touchmove":"mousemove",this._onTouchMove):(_(it,"dragend",this),_(lt,"dragstart",this._onDragStart));try{document.selection?ce((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(Et=!1,lt&&it){ot("dragStarted",this,{evt:e}),this.nativeDraggable&&_(document,"dragover",Jt);var n=this.options;!t&&M(it,n.dragClass,!1),M(it,n.ghostClass,!0),Zt.active=this,t&&this._appendGhost(),rt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(yt){this._lastX=yt.clientX,this._lastY=yt.clientY,Ht();var t=document.elementFromPoint(yt.clientX,yt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(yt.clientX,yt.clientY),t===e)break;e=t}if(it.parentNode[G]._isOutsideThisEl(t),e)do{if(e[G]){var n=void 0;if(n=e[G]._onDragOver({clientX:yt.clientX,clientY:yt.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);qt()}},_onTouchMove:function(t){if(wt){var e=this.options,n=e.fallbackTolerance,a=e.fallbackOffset,o=t.touches?t.touches[0]:t,r=ct&&E(ct,!0),i=ct&&r&&r.a,s=ct&&r&&r.d,c=Yt&&Dt&&$(Dt),l=(o.clientX-wt.clientX+a.x)/(i||1)+(c?c[0]-Lt[0]:0)/(i||1),u=(o.clientY-wt.clientY+a.y)/(s||1)+(c?c[1]-Lt[1]:0)/(s||1);if(!Zt.active&&!Et){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(ct){r?(r.e+=l-(_t||0),r.f+=u-(Ct||0)):r={a:1,b:0,c:0,d:1,e:l,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");D(ct,"webkitTransform",d),D(ct,"mozTransform",d),D(ct,"msTransform",d),D(ct,"transform",d),_t=l,Ct=u,yt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ct){var t=this.options.fallbackOnBody?document.body:lt,e=N(it,!0,Yt,!0,t),n=this.options;if(Yt){Dt=t;while("static"===D(Dt,"position")&&"none"===D(Dt,"transform")&&Dt!==document)Dt=Dt.parentNode;Dt!==document.body&&Dt!==document.documentElement?(Dt===document&&(Dt=P()),e.top+=Dt.scrollTop,e.left+=Dt.scrollLeft):Dt=P(),Lt=$(Dt)}ct=it.cloneNode(!0),M(ct,n.ghostClass,!1),M(ct,n.fallbackClass,!0),M(ct,n.dragClass,!0),D(ct,"transition",""),D(ct,"transform",""),D(ct,"box-sizing","border-box"),D(ct,"margin",0),D(ct,"top",e.top),D(ct,"left",e.left),D(ct,"width",e.width),D(ct,"height",e.height),D(ct,"opacity","0.8"),D(ct,"position",Yt?"absolute":"fixed"),D(ct,"zIndex","100000"),D(ct,"pointerEvents","none"),Zt.ghost=ct,t.appendChild(ct),D(ct,"transform-origin",jt/parseInt(ct.style.width)*100+"% "+xt/parseInt(ct.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,a=t.dataTransfer,o=n.options;ot("dragStart",this,{evt:t}),Zt.eventCanceled?this._onDrop():(ot("setupClone",this),Zt.eventCanceled||(ft=X(it),ft.draggable=!1,ft.style["will-change"]="",this._hideClone(),M(ft,this.options.chosenClass,!1),Zt.clone=ft),n.cloneId=ce((function(){ot("clone",n),Zt.eventCanceled||(n.options.removeCloneOnHide||lt.insertBefore(ft,it),n._hideClone(),rt({sortable:n,name:"clone"}))})),!e&&M(it,o.dragClass,!0),e?(Rt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(C(document,"mouseup",n._onDrop),C(document,"touchend",n._onDrop),C(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",o.setData&&o.setData.call(n,a,it)),_(document,"drop",n),D(it,"transform","translateZ(0)")),Et=!0,n._dragStartId=ce(n._dragStarted.bind(n,e,t)),_(document,"selectstart",n),St=!0,b&&D(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,a,o,r=this.el,s=t.target,c=this.options,l=c.group,u=Zt.active,d=bt===l,f=c.sort,p=kt||u,h=this,m=!1;if(!It){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=S(s,c.draggable,r,!0),R("dragOver"),Zt.eventCanceled)return m;if(it.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return L(!1);if(Rt=!1,u&&!c.disabled&&(d?f||(a=!lt.contains(it)):kt===this||(this.lastPutMode=bt.checkPull(this,u,it,t))&&l.checkPut(this,u,it,t))){if(o="vertical"===this._getDirection(t,s),e=N(it),R("dragOverValid"),Zt.eventCanceled)return m;if(a)return st=lt,P(),this._hideClone(),R("revert"),Zt.eventCanceled||(ut?lt.insertBefore(it,ut):lt.appendChild(it)),L(!0);var v=I(r,c.draggable);if(!v||ae(t,o,this)&&!v.animated){if(v===it)return L(!1);if(v&&r===t.target&&(s=v),s&&(n=N(s)),!1!==te(lt,r,it,e,s,n,t,!!s))return P(),r.appendChild(it),st=r,$(),L(!0)}else if(s.parentNode===r){n=N(s);var g,b,k=0,w=it.parentNode!==r,y=!Ut(it.animated&&it.toRect||e,s.animated&&s.toRect||n,o),_=o?"top":"left",C=A(s,"top","top")||A(it,"top","top"),j=C?C.scrollTop:void 0;if(Tt!==s&&(g=n[_],Nt=!1,At=!y&&c.invertSwap||w),k=oe(t,s,n,o,y?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,At,Tt===s),0!==k){var x=W(it);do{x-=k,b=st.children[x]}while(b&&("none"===D(b,"display")||b===ct))}if(0===k||b===s)return L(!1);Tt=s,Ot=k;var T=s.nextElementSibling,O=!1;O=1===k;var E=te(lt,r,it,e,s,n,t,O);if(!1!==E)return 1!==E&&-1!==E||(O=1===E),It=!0,setTimeout(ne,30),P(),O&&!T?r.appendChild(it):s.parentNode.insertBefore(it,O?T:s),C&&V(C,0,j-C.scrollTop),st=it.parentNode,void 0===g||At||(Mt=Math.abs(g-N(s)[_])),$(),L(!0)}if(r.contains(it))return L(!1)}return!1}function R(c,l){ot(c,h,i({evt:t,isOwner:d,axis:o?"vertical":"horizontal",revert:a,dragRect:e,targetRect:n,canSort:f,fromSortable:p,target:s,completed:L,onMove:function(n,a){return te(lt,r,it,e,n,N(n),t,a)},changed:$},l))}function P(){R("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function L(e){return R("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(h),h!==p&&(M(it,kt?kt.options.ghostClass:u.options.ghostClass,!1),M(it,c.ghostClass,!0)),kt!==h&&h!==Zt.active?kt=h:h===Zt.active&&kt&&(kt=null),p===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){R("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===it&&!it.animated||s===r&&!s.animated)&&(Tt=null),c.dragoverBubble||t.rootEl||s===document||(it.parentNode[G]._isOutsideThisEl(t.target),!e&&Gt(t)),!c.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function $(){mt=W(it),gt=W(it,c.draggable),rt({sortable:h,name:"change",toEl:r,newIndex:mt,newDraggableIndex:gt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){C(document,"mousemove",this._onTouchMove),C(document,"touchmove",this._onTouchMove),C(document,"pointermove",this._onTouchMove),C(document,"dragover",Gt),C(document,"mousemove",Gt),C(document,"touchmove",Gt)},_offUpEvents:function(){var t=this.el.ownerDocument;C(t,"mouseup",this._onDrop),C(t,"touchend",this._onDrop),C(t,"pointerup",this._onDrop),C(t,"touchcancel",this._onDrop),C(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;mt=W(it),gt=W(it,n.draggable),ot("drop",this,{evt:t}),st=it&&it.parentNode,mt=W(it),gt=W(it,n.draggable),Zt.eventCanceled||(Et=!1,At=!1,Nt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),le(this.cloneId),le(this._dragStartId),this.nativeDraggable&&(C(document,"drop",this),C(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),b&&D(document.body,"user-select",""),D(it,"transform",""),t&&(St&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ct&&ct.parentNode&&ct.parentNode.removeChild(ct),(lt===st||kt&&"clone"!==kt.lastPutMode)&&ft&&ft.parentNode&&ft.parentNode.removeChild(ft),it&&(this.nativeDraggable&&C(it,"dragend",this),ee(it),it.style["will-change"]="",St&&!Et&&M(it,kt?kt.options.ghostClass:this.options.ghostClass,!1),M(it,this.options.chosenClass,!1),rt({sortable:this,name:"unchoose",toEl:st,newIndex:null,newDraggableIndex:null,originalEvent:t}),lt!==st?(mt>=0&&(rt({rootEl:st,name:"add",toEl:st,fromEl:lt,originalEvent:t}),rt({sortable:this,name:"remove",toEl:st,originalEvent:t}),rt({rootEl:st,name:"sort",toEl:st,fromEl:lt,originalEvent:t}),rt({sortable:this,name:"sort",toEl:st,originalEvent:t})),kt&&kt.save()):mt!==ht&&mt>=0&&(rt({sortable:this,name:"update",toEl:st,originalEvent:t}),rt({sortable:this,name:"sort",toEl:st,originalEvent:t})),Zt.active&&(null!=mt&&-1!==mt||(mt=ht,gt=vt),rt({sortable:this,name:"end",toEl:st,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){ot("nulling",this),lt=it=st=ct=ut=ft=dt=pt=wt=yt=St=mt=gt=ht=vt=Tt=Ot=kt=bt=Zt.dragged=Zt.ghost=Zt.clone=Zt.active=null,Wt.forEach((function(t){t.checked=!0})),Wt.length=_t=Ct=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":it&&(this._onDragOver(t),Qt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,a=0,o=n.length,r=this.options;a<o;a++)t=n[a],S(t,r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||ie(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,a){var o=n.children[a];S(o,this.options.draggable,n,!1)&&(e[t]=o)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return S(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var a=nt.modifyOption(this,t,e);n[t]="undefined"!==typeof a?a:e,"group"===t&&Xt(n)},destroy:function(){ot("destroy",this);var t=this.el;t[G]=null,C(t,"mousedown",this._onTapStart),C(t,"touchstart",this._onTapStart),C(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(C(t,"dragover",this),C(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Pt.splice(Pt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!pt){if(ot("hideClone",this),Zt.eventCanceled)return;D(ft,"display","none"),this.options.removeCloneOnHide&&ft.parentNode&&ft.parentNode.removeChild(ft),pt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(pt){if(ot("showClone",this),Zt.eventCanceled)return;lt.contains(it)&&!this.options.group.revertClone?lt.insertBefore(ft,it):ut?lt.insertBefore(ft,ut):lt.appendChild(ft),this.options.group.revertClone&&this.animate(it,ft),D(ft,"display",""),pt=!1}}else this._hideClone()}},$t&&_(document,"touchmove",(function(t){(Zt.active||Et)&&t.cancelable&&t.preventDefault()})),Zt.utils={on:_,off:C,css:D,find:R,is:function(t,e){return!!S(t,e,t,!1)},extend:F,throttle:B,closest:S,toggleClass:M,clone:X,index:W,nextTick:ce,cancelNextTick:le,detectDirection:Bt,getChild:L},Zt.get=function(t){return t[G]},Zt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Zt.utils=i({},Zt.utils,t.utils)),nt.mount(t)}))},Zt.create=function(t,e){return new Zt(t,e)},Zt.version=p;var ue,de,fe,pe,he,me,ve=[],ge=!1;function be(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):e.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):(C(document,"pointermove",this._handleFallbackAutoScroll),C(document,"touchmove",this._handleFallbackAutoScroll),C(document,"mousemove",this._handleFallbackAutoScroll)),we(),ke(),U()},nulling:function(){he=de=ue=ge=me=fe=pe=null,ve.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,a=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(a,o);if(he=t,e||v||m||b){_e(t,this.options,r,e);var i=z(r,!0);!ge||me&&a===fe&&o===pe||(me&&we(),me=setInterval((function(){var r=z(document.elementFromPoint(a,o),!0);r!==i&&(i=r,ke()),_e(t,n.options,r,e)}),10),fe=a,pe=o)}else{if(!this.options.bubbleScroll||z(r,!0)===P())return void ke();_e(t,this.options,z(r,!1),!1)}}},r(t,{pluginName:"scroll",initializeByDefault:!0})}function ke(){ve.forEach((function(t){clearInterval(t.pid)})),ve=[]}function we(){clearInterval(me)}var ye,_e=B((function(t,e,n,a){if(e.scroll){var o,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,c=e.scrollSpeed,l=P(),u=!1;de!==n&&(de=n,ke(),ue=e.scroll,o=e.scrollFn,!0===ue&&(ue=z(n,!0)));var d=0,f=ue;do{var p=f,h=N(p),m=h.top,v=h.bottom,g=h.left,b=h.right,k=h.width,w=h.height,y=void 0,_=void 0,C=p.scrollWidth,j=p.scrollHeight,x=D(p),S=p.scrollLeft,T=p.scrollTop;p===l?(y=k<C&&("auto"===x.overflowX||"scroll"===x.overflowX||"visible"===x.overflowX),_=w<j&&("auto"===x.overflowY||"scroll"===x.overflowY||"visible"===x.overflowY)):(y=k<C&&("auto"===x.overflowX||"scroll"===x.overflowX),_=w<j&&("auto"===x.overflowY||"scroll"===x.overflowY));var O=y&&(Math.abs(b-r)<=s&&S+k<C)-(Math.abs(g-r)<=s&&!!S),M=_&&(Math.abs(v-i)<=s&&T+w<j)-(Math.abs(m-i)<=s&&!!T);if(!ve[d])for(var E=0;E<=d;E++)ve[E]||(ve[E]={});ve[d].vx==O&&ve[d].vy==M&&ve[d].el===p||(ve[d].el=p,ve[d].vx=O,ve[d].vy=M,clearInterval(ve[d].pid),0==O&&0==M||(u=!0,ve[d].pid=setInterval(function(){a&&0===this.layer&&Zt.active._onTouchMove(he);var e=ve[this.layer].vy?ve[this.layer].vy*c:0,n=ve[this.layer].vx?ve[this.layer].vx*c:0;"function"===typeof o&&"continue"!==o.call(Zt.dragged.parentNode[G],n,e,t,he,ve[this.layer].el)||V(ve[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&f!==l&&(f=z(f,!1)));ge=u}}),30),Ce=function(t){var e=t.originalEvent,n=t.putSortable,a=t.dragEl,o=t.activeSortable,r=t.dispatchSortableEvent,i=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var c=n||o;i();var l=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(r("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function je(){}function xe(){}function Se(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;ye=e},dragOverValid:function(t){var e=t.completed,n=t.target,a=t.onMove,o=t.activeSortable,r=t.changed,i=t.cancel;if(o.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=ye;!1!==a(n)?(M(n,c.swapClass,!0),ye=n):ye=null,l&&l!==ye&&M(l,c.swapClass,!1)}r(),e(!0),i()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,a=t.dragEl,o=n||this.sortable,r=this.options;ye&&M(ye,r.swapClass,!1),ye&&(r.swap||n&&n.options.swap)&&a!==ye&&(o.captureAnimationState(),o!==e&&e.captureAnimationState(),Te(a,ye),o.animateAll(),o!==e&&e.animateAll())},nulling:function(){ye=null}},r(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ye}}})}function Te(t,e){var n,a,o=t.parentNode,r=e.parentNode;o&&r&&!o.isEqualNode(e)&&!r.isEqualNode(t)&&(n=W(t),a=W(e),o.isEqualNode(r)&&n<a&&a++,o.insertBefore(e,o.children[n]),r.insertBefore(t,r.children[a]))}je.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=L(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(e,a):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:Ce},r(je,{pluginName:"revertOnSpill"}),xe.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,a=n||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:Ce},r(xe,{pluginName:"removeOnSpill"});var Oe,Me,De,Ee,Re,Pe=[],Ne=[],Ae=!1,Le=!1,Ie=!1;function We(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?_(document,"pointerup",this._deselectMultiDrag):(_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag)),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var a="";Pe.length&&Me===t?Pe.forEach((function(t,e){a+=(e?", ":"")+t.textContent})):a=n.textContent,e.setData("Text",a)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;De=e},delayEnded:function(){this.isMultiDrag=~Pe.indexOf(De)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var a=0;a<Pe.length;a++)Ne.push(X(Pe[a])),Ne[a].sortableIndex=Pe[a].sortableIndex,Ne[a].draggable=!1,Ne[a].style["will-change"]="",M(Ne[a],this.options.selectedClass,!1),Pe[a]===De&&M(Ne[a],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,a=t.dispatchSortableEvent,o=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Pe.length&&Me===e&&(Ye(!0,n),a("clone"),o()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,a=t.cancel;this.isMultiDrag&&(Ye(!1,n),Ne.forEach((function(t){D(t,"display","")})),e(),Re=!1,a())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),a=t.cancel;this.isMultiDrag&&(Ne.forEach((function(t){D(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),Re=!0,a())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&Me&&Me.multiDrag._deselectMultiDrag(),Pe.forEach((function(t){t.sortableIndex=W(t)})),Pe=Pe.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),Ie=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Pe.forEach((function(t){t!==De&&D(t,"position","absolute")}));var a=N(De,!1,!0,!0);Pe.forEach((function(t){t!==De&&H(t,a)})),Le=!0,Ae=!0}n.animateAll((function(){Le=!1,Ae=!1,e.options.animation&&Pe.forEach((function(t){q(t)})),e.options.sort&&ze()}))}},dragOver:function(t){var e=t.target,n=t.completed,a=t.cancel;Le&&~Pe.indexOf(e)&&(n(!1),a())},revert:function(t){var e=t.fromSortable,n=t.rootEl,a=t.sortable,o=t.dragRect;Pe.length>1&&(Pe.forEach((function(t){a.addAnimationState({target:t,rect:Le?N(t):o}),q(t),t.fromRect=o,e.removeAnimationState(t)})),Le=!1,$e(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,a=t.insertion,o=t.activeSortable,r=t.parentEl,i=t.putSortable,s=this.options;if(a){if(n&&o._hideClone(),Ae=!1,s.animation&&Pe.length>1&&(Le||!n&&!o.options.sort&&!i)){var c=N(De,!1,!0,!0);Pe.forEach((function(t){t!==De&&(H(t,c),r.appendChild(t))})),Le=!0}if(!n)if(Le||ze(),Pe.length>1){var l=Re;o._showClone(e),o.options.animation&&!Re&&l&&Ne.forEach((function(t){o.addAnimationState({target:t,rect:Ee}),t.fromRect=Ee,t.thisAnimationDuration=null}))}else o._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,a=t.activeSortable;if(Pe.forEach((function(t){t.thisAnimationDuration=null})),a.options.animation&&!n&&a.multiDrag.isMultiDrag){Ee=r({},e);var o=E(De,!0);Ee.top-=o.f,Ee.left-=o.e}},dragOverAnimationComplete:function(){Le&&(Le=!1,ze())},drop:function(t){var e=t.originalEvent,n=t.rootEl,a=t.parentEl,o=t.sortable,r=t.dispatchSortableEvent,i=t.oldIndex,s=t.putSortable,c=s||this.sortable;if(e){var l=this.options,u=a.children;if(!Ie)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),M(De,l.selectedClass,!~Pe.indexOf(De)),~Pe.indexOf(De))Pe.splice(Pe.indexOf(De),1),Oe=null,at({sortable:o,rootEl:n,name:"deselect",targetEl:De,originalEvt:e});else{if(Pe.push(De),at({sortable:o,rootEl:n,name:"select",targetEl:De,originalEvt:e}),e.shiftKey&&Oe&&o.el.contains(Oe)){var d,f,p=W(Oe),h=W(De);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f<d;f++)~Pe.indexOf(u[f])||(M(u[f],l.selectedClass,!0),Pe.push(u[f]),at({sortable:o,rootEl:n,name:"select",targetEl:u[f],originalEvt:e}))}else Oe=De;Me=c}if(Ie&&this.isMultiDrag){if((a[G].options.sort||a!==n)&&Pe.length>1){var m=N(De),v=W(De,":not(."+this.options.selectedClass+")");if(!Ae&&l.animation&&(De.thisAnimationDuration=null),c.captureAnimationState(),!Ae&&(l.animation&&(De.fromRect=m,Pe.forEach((function(t){if(t.thisAnimationDuration=null,t!==De){var e=Le?N(t):m;t.fromRect=e,c.addAnimationState({target:t,rect:e})}}))),ze(),Pe.forEach((function(t){u[v]?a.insertBefore(t,u[v]):a.appendChild(t),v++})),i===W(De))){var g=!1;Pe.forEach((function(t){t.sortableIndex===W(t)||(g=!0)})),g&&r("update")}Pe.forEach((function(t){q(t)})),c.animateAll()}Me=c}(n===a||s&&"clone"!==s.lastPutMode)&&Ne.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Ie=!1,Ne.length=0},destroyGlobal:function(){this._deselectMultiDrag(),C(document,"pointerup",this._deselectMultiDrag),C(document,"mouseup",this._deselectMultiDrag),C(document,"touchend",this._deselectMultiDrag),C(document,"keydown",this._checkKeyDown),C(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Ie||!Ie)&&Me===this.sortable&&(!t||!S(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Pe.length){var e=Pe[0];M(e,this.options.selectedClass,!1),Pe.shift(),at({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},r(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[G];e&&e.options.multiDrag&&!~Pe.indexOf(t)&&(Me&&Me!==e&&(Me.multiDrag._deselectMultiDrag(),Me=e),M(t,e.options.selectedClass,!0),Pe.push(t))},deselect:function(t){var e=t.parentNode[G],n=Pe.indexOf(t);e&&e.options.multiDrag&&~n&&(M(t,e.options.selectedClass,!1),Pe.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return Pe.forEach((function(a){var o;e.push({multiDragElement:a,index:a.sortableIndex}),o=Le&&a!==De?-1:Le?W(a,":not(."+t.options.selectedClass+")"):W(a),n.push({multiDragElement:a,index:o})})),{items:l(Pe),clones:[].concat(Ne),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function $e(t,e){Pe.forEach((function(n,a){var o=e.children[n.sortableIndex+(t?Number(a):0)];o?e.insertBefore(n,o):e.appendChild(n)}))}function Ye(t,e){Ne.forEach((function(n,a){var o=e.children[n.sortableIndex+(t?Number(a):0)];o?e.insertBefore(n,o):e.appendChild(n)}))}function ze(){Pe.forEach((function(t){t!==De&&t.parentNode&&t.parentNode.removeChild(t)}))}Zt.mount(new be),Zt.mount(xe,je),e["default"]=Zt},"24cb":function(t,e,n){},"24d2":function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"l",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"g",(function(){return s})),n.d(e,"k",(function(){return c})),n.d(e,"i",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"j",(function(){return d})),n.d(e,"h",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return m}));var a=n("22b6");function o(t){return a["a"].post("project/project",t)}function r(t){return a["a"].post("project/project/selfList",t)}function i(t){var e="project/project/save";return t.projectCode&&(e="project/project/edit"),a["a"].post(e,t)}function s(t){return a["a"].post("project/project/quit",{projectCode:t})}function c(t){return a["a"].post("project/project/recycle",{projectCode:t})}function l(t){return a["a"].post("project/project/recovery",{projectCode:t})}function u(t){return a["a"].post("project/project/archive",{projectCode:t})}function d(t){return a["a"].post("project/project/recoveryArchive",{projectCode:t})}function f(t){return a["a"].post("project/project/read",{projectCode:t})}function p(t){return a["a"].post("project/project/analysis",t)}function h(t){return a["a"].post("project/project/_projectStats",t)}function m(t){return a["a"].post("project/project/_getProjectReport",t)}},"2ac5":function(t,e,n){},"2b2a":function(t,e,n){"use strict";n("24cb")},3335:function(t,e,n){(function(e,a){t.exports=a(n("2480f"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function n(a){if(e[a])return e[a].exports;var o=e[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(a,o,function(e){return t[e]}.bind(null,o));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var a=n("2d00"),o=n("5ca1"),r=n("2aba"),i=n("32e9"),s=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",v=function(){return this};t.exports=function(t,e,n,g,b,k,w){c(n,e,g);var y,_,C,j=function(t){if(!f&&t in O)return O[t];switch(t){case h:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S=b==m,T=!1,O=t.prototype,M=O[d]||O[p]||b&&O[b],D=M||j(b),E=b?S?j("entries"):D:void 0,R="Array"==e&&O.entries||M;if(R&&(C=u(R.call(new t)),C!==Object.prototype&&C.next&&(l(C,x,!0),a||"function"==typeof C[d]||i(C,d,v))),S&&M&&M.name!==m&&(T=!0,D=function(){return M.call(this)}),a&&!w||!f&&!T&&O[d]||i(O,d,D),s[e]=D,s[x]=v,b)if(y={values:S?D:j(m),keys:k?D:j(h),entries:E},w)for(_ in y)_ in O||r(O,_,y[_]);else o(o.P+o.F*(f||T),e,y);return y}},"02f4":function(t,e,n){var a=n("4588"),o=n("be13");t.exports=function(t){return function(e,n){var r,i,s=String(o(e)),c=a(n),l=s.length;return c<0||c>=l?t?"":void 0:(r=s.charCodeAt(c),r<55296||r>56319||c+1===l||(i=s.charCodeAt(c+1))<56320||i>57343?t?s.charAt(c):r:t?s.slice(c,c+2):i-56320+(r-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var a=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?a(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var a=n("cb7c");t.exports=function(){var t=a(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var a=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return a(t,o)}},1495:function(t,e,n){var a=n("86cc"),o=n("cb7c"),r=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,i=r(e),s=i.length,c=0;while(s>c)a.f(t,n=i[c++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var a=n("2aba"),o=n("32e9"),r=n("79e5"),i=n("be13"),s=n("2b4c"),c=n("520a"),l=s("species"),u=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!r((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),h=p?!r((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!e})):void 0;if(!p||!h||"replace"===t&&!u||"split"===t&&!d){var m=/./[f],v=n(i,f,""[t],(function(t,e,n,a,o){return e.exec===c?p&&!o?{done:!0,value:m.call(e,n,a)}:{done:!0,value:t.call(n,e,a)}:{done:!1}})),g=v[0],b=v[1];a(String.prototype,t,g),o(RegExp.prototype,f,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var a=n("d3f4"),o=n("7726").document,r=a(o)&&a(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},"23c6":function(t,e,n){var a=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==a(function(){return arguments}()),i=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=i(e=Object(t),o))?n:r?a(e):"Object"==(s=a(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var a=n("7726"),o=n("32e9"),r=n("69a8"),i=n("ca5a")("src"),s=n("fa5b"),c="toString",l=(""+s).split(c);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(r(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(r(n,i)||o(n,i,t[e]?""+t[e]:l.join(String(e)))),t===a?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[i]||s.call(this)}))},"2aeb":function(t,e,n){var a=n("cb7c"),o=n("1495"),r=n("e11e"),i=n("613b")("IE_PROTO"),s=function(){},c="prototype",l=function(){var t,e=n("230e")("iframe"),a=r.length,o="<",i=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+i+"document.F=Object"+o+"/script"+i),t.close(),l=t.F;while(a--)delete l[c][r[a]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=a(t),n=new s,s[c]=null,n[i]=t):n=l(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var a=n("5537")("wks"),o=n("ca5a"),r=n("7726").Symbol,i="function"==typeof r,s=t.exports=function(t){return a[t]||(a[t]=i&&r[t]||(i?r:o)("Symbol."+t))};s.store=a},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var a=n("5ca1"),o=n("d2c8"),r="includes";a(a.P+a.F*n("5147")(r),"String",{includes:function(t){return!!~o(this,t,r).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var a=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return a.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var a=n("69a8"),o=n("4bf8"),r=n("613b")("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),a(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},"41a0":function(t,e,n){"use strict";var a=n("2aeb"),o=n("4630"),r=n("7f20"),i={};n("32e9")(i,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=a(i,{next:o(1,n)}),r(t,e+" Iterator")}},"456d":function(t,e,n){var a=n("4bf8"),o=n("0d58");n("5eda")("keys",(function(){return function(t){return o(a(t))}}))},4588:function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var a=n("be13");t.exports=function(t){return Object(a(t))}},5147:function(t,e,n){var a=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[a]=!1,!"/./"[t](e)}catch(o){}}return!0}},"520a":function(t,e,n){"use strict";var a=n("0bfb"),o=RegExp.prototype.exec,r=String.prototype.replace,i=o,s="lastIndex",c=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t[s]||0!==e[s]}(),l=void 0!==/()??/.exec("")[1],u=c||l;u&&(i=function(t){var e,n,i,u,d=this;return l&&(n=new RegExp("^"+d.source+"$(?!\\s)",a.call(d))),c&&(e=d[s]),i=o.call(d,t),c&&i&&(d[s]=d.global?i.index+i[0].length:e),l&&i&&i.length>1&&r.call(i[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(i[u]=void 0)})),i}),t.exports=i},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var a=n("8378"),o=n("7726"),r="__core-js_shared__",i=o[r]||(o[r]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var a=n("7726"),o=n("8378"),r=n("32e9"),i=n("2aba"),s=n("9b43"),c="prototype",l=function(t,e,n){var u,d,f,p,h=t&l.F,m=t&l.G,v=t&l.S,g=t&l.P,b=t&l.B,k=m?a:v?a[e]||(a[e]={}):(a[e]||{})[c],w=m?o:o[e]||(o[e]={}),y=w[c]||(w[c]={});for(u in m&&(n=e),n)d=!h&&k&&void 0!==k[u],f=(d?k:n)[u],p=b&&d?s(f,a):g&&"function"==typeof f?s(Function.call,f):f,k&&i(k,u,f,t&l.U),w[u]!=f&&r(w,u,p),g&&y[u]!=f&&(y[u]=f)};a.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},"5eda":function(t,e,n){var a=n("5ca1"),o=n("8378"),r=n("79e5");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),a(a.S+a.F*r((function(){n(1)})),"Object",i)}},"5f1b":function(t,e,n){"use strict";var a=n("23c6"),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var r=n.call(t,e);if("object"!==typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==a(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"613b":function(t,e,n){var a=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return a[t]||(a[t]=o(t))}},"626a":function(t,e,n){var a=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},6762:function(t,e,n){"use strict";var a=n("5ca1"),o=n("c366")(!0);a(a.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var a=n("626a"),o=n("be13");t.exports=function(t){return a(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var a=n("d3f4");t.exports=function(t,e){if(!a(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!a(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!a(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){"use strict";var a=n("0d58"),o=n("2621"),r=n("52a7"),i=n("4bf8"),s=n("626a"),c=Object.assign;t.exports=!c||n("79e5")((function(){var t={},e={},n=Symbol(),a="abcdefghijklmnopqrst";return t[n]=7,a.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=a}))?function(t,e){var n=i(t),c=arguments.length,l=1,u=o.f,d=r.f;while(c>l){var f,p=s(arguments[l++]),h=u?a(p).concat(u(p)):a(p),m=h.length,v=0;while(m>v)d.call(p,f=h[v++])&&(n[f]=p[f])}return n}:c},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var a=n("4588"),o=Math.max,r=Math.min;t.exports=function(t,e){return t=a(t),t<0?o(t+e,0):r(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,n){var a=n("86cc").f,o=n("69a8"),r=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,r)&&a(t,r,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var a=n("cb7c"),o=n("c69a"),r=n("6a99"),i=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(a(t),e=r(e,!0),a(n),o)try{return i(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var a=n("d8e8");t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,o){return t.call(e,n,a,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var a=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[a]&&n("32e9")(o,a,{}),t.exports=function(t){o[a][t]=!0}},"9def":function(t,e,n){var a=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(a(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,n){e.exports=t},a481:function(t,e,n){"use strict";var a=n("cb7c"),o=n("4bf8"),r=n("9def"),i=n("4588"),s=n("0390"),c=n("5f1b"),l=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,h=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,m){return[function(a,o){var r=t(this),i=void 0==a?void 0:a[e];return void 0!==i?i.call(a,r,o):n.call(String(r),a,o)},function(t,e){var o=m(n,t,this,e);if(o.done)return o.value;var d=a(t),f=String(this),p="function"===typeof e;p||(e=String(e));var g=d.global;if(g){var b=d.unicode;d.lastIndex=0}var k=[];while(1){var w=c(d,f);if(null===w)break;if(k.push(w),!g)break;var y=String(w[0]);""===y&&(d.lastIndex=s(f,r(d.lastIndex),b))}for(var _="",C=0,j=0;j<k.length;j++){w=k[j];for(var x=String(w[0]),S=l(u(i(w.index),f.length),0),T=[],O=1;O<w.length;O++)T.push(h(w[O]));var M=w.groups;if(p){var D=[x].concat(T,S,f);void 0!==M&&D.push(M);var E=String(e.apply(void 0,D))}else E=v(x,f,S,T,M,e);S>=C&&(_+=f.slice(C,S)+E,C=S+x.length)}return _+f.slice(C)}];function v(t,e,a,r,i,s){var c=a+t.length,l=r.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,a);case"'":return e.slice(c);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>l){var f=d(u/10);return 0===f?n:f<=l?void 0===r[f-1]?o.charAt(1):r[f-1]+o.charAt(1):n}s=r[u-1]}return void 0===s?"":s}))}}))},aae3:function(t,e,n){var a=n("d3f4"),o=n("2d95"),r=n("2b4c")("match");t.exports=function(t){var e;return a(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==o(t))}},ac6a:function(t,e,n){for(var a=n("cadf"),o=n("0d58"),r=n("2aba"),i=n("7726"),s=n("32e9"),c=n("84f2"),l=n("2b4c"),u=l("iterator"),d=l("toStringTag"),f=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),m=0;m<h.length;m++){var v,g=h[m],b=p[g],k=i[g],w=k&&k.prototype;if(w&&(w[u]||s(w,u,f),w[d]||s(w,d,g),c[g]=f,b))for(v in a)w[v]||r(w,v,a[v],!0)}},b0c5:function(t,e,n){"use strict";var a=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var a=n("6821"),o=n("9def"),r=n("77f1");t.exports=function(t){return function(e,n,i){var s,c=a(e),l=o(c.length),u=r(i,l);if(t&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return c}));n("a481");function a(){return"undefined"!==typeof window?window.console:t.console}var o=a();function r(t){var e=Object.create(null);return function(n){var a=e[n];return a||(e[n]=t(n))}}var i=/-(\w)/g,s=r((function(t){return t.replace(i,(function(t,e){return e?e.toUpperCase():""}))}));function c(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function l(t,e,n){var a=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,a)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(a){"object"===typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},cadf:function(t,e,n){"use strict";var a=n("9c6c"),o=n("d53b"),r=n("84f2"),i=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},cb7c:function(t,e,n){var a=n("d3f4");t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var a=n("69a8"),o=n("6821"),r=n("c366")(!1),i=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,l=[];for(n in s)n!=i&&a(s,n)&&l.push(n);while(e.length>c)a(s,n=e[c++])&&(~r(l,n)||l.push(n));return l}},d2c8:function(t,e,n){var a=n("aae3"),o=n("be13");t.exports=function(t,e,n){if(a(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){"use strict";var a=n("5ca1"),o=n("9def"),r=n("d2c8"),i="startsWith",s=""[i];a(a.P+a.F*n("5147")(i),"String",{startsWith:function(t){var e=r(this,t,i),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),a=String(t);return s?s.call(e,a,n):e.slice(n,n+a.length)===a}})},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(a){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(a.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f751:function(t,e,n){var a=n("5ca1");a(a.S+a.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var a=n("7726").document;t.exports=a&&a.documentElement},fb15:function(t,e,n){"use strict";var a;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function o(t){if(Array.isArray(t))return t}function r(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],a=!0,o=!1,r=void 0;try{for(var i,s=t[Symbol.iterator]();!(a=(i=s.next()).done);a=!0)if(n.push(i.value),e&&n.length===e)break}catch(c){o=!0,r=c}finally{try{a||null==s["return"]||s["return"]()}finally{if(o)throw r}}return n}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function s(t,e){if(t){if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function c(){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 l(t,e){return o(t)||r(t,e)||s(t,e)||c()}n("6762"),n("2fdb");function u(t){if(Array.isArray(t))return i(t)}function d(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(t){return u(t)||d(t)||s(t)||f()}var h=n("a352"),m=n.n(h),v=n("c649");function g(t,e,n){return void 0===n||(t=t||{},t[e]=n),t}function b(t,e){return t.map((function(t){return t.elm})).indexOf(e)}function k(t,e,n,a){if(!t)return[];var o=t.map((function(t){return t.elm})),r=e.length-a,i=p(e).map((function(t,e){return e>=r?o.length:o.indexOf(t)}));return n?i.filter((function(t){return-1!==t})):i}function w(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function y(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),w.call(e,t,n)}}function _(t){return["transition-group","TransitionGroup"].includes(t)}function C(t){if(!t||1!==t.length)return!1;var e=l(t,1),n=e[0].componentOptions;return!!n&&_(n.tag)}function j(t,e,n){return t[n]||(e[n]?e[n]():void 0)}function x(t,e,n){var a=0,o=0,r=j(e,n,"header");r&&(a=r.length,t=t?[].concat(p(r),p(t)):p(r));var i=j(e,n,"footer");return i&&(o=i.length,t=t?[].concat(p(t),p(i)):p(i)),{children:t,headerOffset:a,footerOffset:o}}function S(t,e){var n=null,a=function(t,e){n=g(n,t,e)},o=Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{});if(a("attrs",o),!e)return n;var r=e.on,i=e.props,s=e.attrs;return a("on",r),a("props",i),Object.assign(n.attrs,s),n}var T=["Start","Add","Remove","Update","End"],O=["Choose","Unchoose","Sort","Filter","Clone"],M=["Move"].concat(T,O).map((function(t){return"on"+t})),D=null,E={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},R={name:"draggable",inheritAttrs:!1,props:E,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=C(e);var n=x(e,this.$slots,this.$scopedSlots),a=n.children,o=n.headerOffset,r=n.footerOffset;this.headerOffset=o,this.footerOffset=r;var i=S(this.$attrs,this.componentData);return t(this.getTag(),i,a)},created:function(){null!==this.list&&null!==this.value&&v["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&v["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&v["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};T.forEach((function(n){e["on"+n]=y.call(t,n)})),O.forEach((function(n){e["on"+n]=w.bind(t,n)}));var n=Object.keys(this.$attrs).reduce((function(e,n){return e[Object(v["a"])(n)]=t.$attrs[n],e}),{}),a=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in a)&&(a.draggable=">*"),this._sortable=new m.a(this.rootContainer,a),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(v["a"])(e);-1===M.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=k(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=b(this.getChildrenNodes()||[],t);if(-1===e)return null;var n=this.realList[e];return{index:e,element:n}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&_(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=p(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,p(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,a=this.getUnderlyingPotencialDraggableComponent(e);if(!a)return{component:a};var o=a.realList,r={list:o,component:a};if(e!==n&&o&&a.getUnderlyingVm){var i=a.getUnderlyingVm(n);if(i)return Object.assign(i,r)}return r},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),D=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(v["d"])(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var a={element:e,newIndex:n};this.emitChanges({added:a})}},onDragRemove:function(t){if(Object(v["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(v["d"])(t.clone)},onDragUpdate:function(t){Object(v["d"])(t.item),Object(v["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var a={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:a})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=p(e.to.children).filter((function(t){return"none"!==t.style["display"]})),a=n.indexOf(e.related),o=t.component.getVmIndex(a),r=-1!==n.indexOf(D);return r||!e.willInsertAfter?o:o+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var a=this.getRelatedContextFromMoveEvent(t),o=this.context,r=this.computeFutureIndex(a,t);Object.assign(o,{futureIndex:r});var i=Object.assign({},t,{relatedContext:a,draggedContext:o});return n(i,e)},onDragEnd:function(){this.computeIndexes(),D=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",R);var P=R;e["default"]=P}})["default"]}))},4200:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n("22b6");function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"collect";return a["a"].post("project/project_collect/collect",{type:e,projectCode:t})}},"58bf":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-tabs",{attrs:{tabPosition:"left",defaultActiveKey:"1",animated:!1},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[n("a-tab-pane",{key:"1"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"heat-map"}}),t._v("\n 概览\n ")],1),n("div",{staticClass:"config-content"},[n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("项目封面")]),n("div",{staticClass:"cover-item"},[t.project.cover?[n("img",{staticClass:"avatar",attrs:{src:t.project.cover}})]:t._e(),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.project.cover,expression:"!project.cover"}],staticClass:"no-avatar"}),n("a-upload",{staticClass:"cover-uploader",attrs:{name:"cover",showUploadList:!1,headers:t.headers,action:t.uploadAction,beforeUpload:t.beforeUpload},on:{change:t.handleChange}},[n("a-button",{staticClass:"upload",attrs:{size:"large"}},[t._v("上传新封面")]),n("p",{staticClass:"upload-tips muted"},[t._v("最佳图片比例为300*150")])],1)],2)])]),n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("项目名称")]),n("a-input",{attrs:{size:"large"},model:{value:t.project.name,callback:function(e){t.$set(t.project,"name",e)},expression:"project.name"}})],1),n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("项目进度 (%)")]),n("a-input-number",{attrs:{size:"large",min:0,max:100},model:{value:t.project.schedule,callback:function(e){t.$set(t.project,"schedule",e)},expression:"project.schedule"}})],1)]),n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("项目简介")]),n("a-input",{attrs:{type:"textarea",rows:3,size:"large",placeholder:"介绍一下这个项目"},model:{value:t.project.description,callback:function(e){t.$set(t.project,"description",e)},expression:"project.description"}})],1)]),n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("项目公开性")]),n("a-select",{attrs:{size:"large"},model:{value:t.project.private,callback:function(e){t.$set(t.project,"private",e)},expression:"project.private"}},[n("a-select-option",{key:0},[t._v("\n 公开项目(所有人都可通过链接访问,仅项目成员可编辑)\n ")]),n("a-select-option",{key:1},[t._v("\n 私有项目(仅项目成员可查看和编辑)\n ")])],1)],1)]),n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("项目拥有者")]),n("div",{staticClass:"m-t"},[n("a-avatar",{attrs:{src:t.project.owner_avatar}}),n("span",{staticClass:"m-l"},[t._v(t._s(t.project.owner_name))])],1)])]),n("a-divider"),n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("a-button",{staticClass:"middle-btn pull-right",attrs:{type:"primary",size:"large"},on:{click:t.saveProject}},[t._v("\n 保存\n ")])],1)])],1)]),n("a-tab-pane",{key:"2",attrs:{forceRender:""}},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"eye"}}),t._v("\n 项目偏好\n ")],1),n("div",{staticClass:"config-content task-config"},[n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("看板风格")]),n("div",{staticClass:"item-tips muted"},[t._v("切换任务看板的主题风格,内置两种风格。")]),n("a-radio-group",{on:{change:t.saveProject},model:{value:t.project.task_board_theme,callback:function(e){t.$set(t.project,"task_board_theme",e)},expression:"project.task_board_theme"}},[n("a-radio",{staticStyle:{display:"block",height:"30px","line-height":"30px"},attrs:{value:"default"}},[t._v("默认")]),n("a-radio",{staticStyle:{display:"block",height:"30px","line-height":"30px"},attrs:{value:"simple"}},[t._v("简约")])],1)],1)]),n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("自动更新项目进度")]),n("div",{staticClass:"item-tips muted"},[t._v("根据当前任务的完成情况自动计算项目进度。")])]),n("a-switch",{on:{change:t.saveProject},model:{value:t.project.auto_update_schedule,callback:function(e){t.$set(t.project,"auto_update_schedule",e)},expression:"project.auto_update_schedule"}})],1)])]),n("a-tab-pane",{key:"3"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"check-square"}}),t._v("\n 任务设置\n ")],1),n("div",{staticClass:"config-content task-config"},[n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("项目ID")]),n("div",{staticClass:"item-tips muted"},[t._v("设置项目编号,编号将作为 ID 前缀,用以区别项目。支持 2-6 位字母。")]),n("a-input",{staticClass:"prefix-input",attrs:{size:"large",placeholder:"如 Pear Project 可以设置为 EP",disabled:!t.project.open_prefix},model:{value:t.project.prefix,callback:function(e){t.$set(t.project,"prefix",e)},expression:"project.prefix"}}),n("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"primary",disabled:!t.project.open_prefix},on:{click:t.saveProject}},[t._v("保存\n ")])],1),n("a-switch",{on:{change:t.saveProject},model:{value:t.project.open_prefix,callback:function(e){t.$set(t.project,"open_prefix",e)},expression:"project.open_prefix"}})],1),n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("任务开始时间")]),n("div",{staticClass:"item-tips muted"},[t._v("为任务设置开始时间,更科学地规划工作。")])]),n("a-switch",{on:{change:t.saveProject},model:{value:t.project.open_begin_time,callback:function(e){t.$set(t.project,"open_begin_time",e)},expression:"project.open_begin_time"}})],1),n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("新任务默认开启隐私模式")]),n("div",{staticClass:"item-tips muted"},[t._v("对本项目内的新任务默认开启隐私模式,创建成功后仅参与者可见")])]),n("a-switch",{on:{change:t.saveProject},model:{value:t.project.open_task_private,callback:function(e){t.$set(t.project,"open_task_private",e)},expression:"project.open_task_private"}})],1)])]),n("a-tab-pane",{key:"4",attrs:{forceRender:""}},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"deployment-unit"}}),t._v("\n 任务流转\n ")],1),n("div",{staticClass:"config-content"},[n("div",{staticClass:"content-item task-workflow"},[n("div",{staticClass:"infos",staticStyle:{"padding-right":"0"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.doTaskWorkflowView,expression:"!doTaskWorkflowView"}]},[n("p",[n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:function(e){return t.doTaskWorkflow(null)}}},[t._v("创建规则")])],1),n("a-list",{staticClass:"task-workflow-list",attrs:{itemLayout:"horizontal",dataSource:t.taskWorkflowList},scopedSlots:t._u([{key:"renderItem",fn:function(e){return n("a-list-item",{},[n("span",{attrs:{slot:"actions"},slot:"actions"},[n("a-tooltip",{attrs:{placement:"top",title:"编辑"}},[n("a",{staticClass:"muted m-r-sm",on:{click:function(n){return t.doTaskWorkflow(e)}}},[n("a-icon",{attrs:{type:"edit"}})],1)]),n("a-tooltip",{attrs:{placement:"top",title:"删除"}},[n("a",{staticClass:"muted",on:{click:function(n){return t.delTaskWorkflow(e.code)}}},[n("a-icon",{attrs:{type:"delete"}})],1)])],1),n("a-list-item-meta",[n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))])])],1)}}])})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.doTaskWorkflowView,expression:"doTaskWorkflowView"}]},[n("div",{staticClass:"header"},[n("p",[n("a-button",{staticClass:"middle-btn m-r-sm",attrs:{size:"large"},on:{click:function(e){return t.saveTaskWorkflow(!1)}}},[t._v("\n 取消\n ")]),n("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"primary",disabled:!t.canSaveTaskWorkflow},on:{click:function(e){return t.saveTaskWorkflow(!0)}}},[t._v("保存\n ")])],1)]),n("div",{staticClass:"workflow-content"},[t.loadingWorkflowRule?t._e():[n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("\n 规则名称\n ")]),n("a-input",{attrs:{size:"large"},model:{value:t.currentTaskWorkflowRule.taskWorkflowName,callback:function(e){t.$set(t.currentTaskWorkflowRule,"taskWorkflowName",e)},expression:"currentTaskWorkflowRule.taskWorkflowName"}})],1),n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("选择任务列表")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstObj")}},model:{value:t.currentTaskWorkflowRule.firstObj,callback:function(e){t.$set(t.currentTaskWorkflowRule,"firstObj",e)},expression:"currentTaskWorkflowRule.firstObj"}},t._l(t.taskStages,(function(e,a){return n("a-select-option",{key:e.code,attrs:{value:e.code}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1),t.currentTaskWorkflowRule.firstObj?[n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("选择条件")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstAction.action")}},model:{value:t.currentTaskWorkflowRule.firstAction.action,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstAction,"action",e)},expression:"currentTaskWorkflowRule.firstAction.action"}},t._l(t.taskWorkflowRuleActions,(function(e,a){return n("a-select-option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name)+"\n ")])})),1)],1),-1!=t.currentTaskWorkflowRule.firstAction.action?[3==t.currentTaskWorkflowRule.firstAction.action?[n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("选择执行者")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstAction.value")}},model:{value:t.currentTaskWorkflowRule.firstAction.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstAction,"value",e)},expression:"currentTaskWorkflowRule.firstAction.value"}},t._l(t.projectMembers,(function(e,a){return n("a-select-option",{key:e.code,attrs:{value:e.code}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)]:t._e(),n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("选择结果")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstResult.action")}},model:{value:t.currentTaskWorkflowRule.firstResult.action,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstResult,"action",e)},expression:"currentTaskWorkflowRule.firstResult.action"}},t._l(t.taskWorkflowRuleTypes,(function(e,a){return n("a-select-option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name)+"\n ")])})),1)],1),0===t.currentTaskWorkflowRule.firstResult.action?[n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("流转任务列表")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstResult.value")}},model:{value:t.currentTaskWorkflowRule.firstResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstResult,"value",e)},expression:"currentTaskWorkflowRule.firstResult.value"}},t._l(t.taskStages,(function(e,a){return n("a-select-option",{key:e.code,attrs:{value:e.code}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1),t.currentTaskWorkflowRule.firstResult.value?[n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("选择执行者")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"lastResult.value")}},model:{value:t.currentTaskWorkflowRule.lastResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.lastResult,"value",e)},expression:"currentTaskWorkflowRule.lastResult.value"}},t._l(t.projectMembers,(function(e,a){return n("a-select-option",{key:e.code,attrs:{value:e.code}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)]:t._e(),[n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("修改任务状态")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"state.value")}},model:{value:t.currentTaskWorkflowRule.state.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.state,"value",e)},expression:"currentTaskWorkflowRule.state.value"}},t._l(t.taskStates,(function(e,a){return n("a-select-option",{key:e.id,attrs:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)]]:t._e(),3===t.currentTaskWorkflowRule.firstResult.action?[n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("选择执行者")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"firstAction.action")}},model:{value:t.currentTaskWorkflowRule.firstResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.firstResult,"value",e)},expression:"currentTaskWorkflowRule.firstResult.value"}},t._l(t.projectMembers,(function(e,a){return n("a-select-option",{key:e.code,attrs:{value:e.code}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1),t.currentTaskWorkflowRule.firstResult.value?[n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("流转任务列表")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"lastResult.value")}},model:{value:t.currentTaskWorkflowRule.lastResult.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.lastResult,"value",e)},expression:"currentTaskWorkflowRule.lastResult.value"}},t._l(t.taskStages,(function(e,a){return n("a-select-option",{key:e.code,attrs:{value:e.code}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)]:t._e(),[n("div",{staticClass:"workflow-rule-item"},[n("p",[t._v("修改任务状态")]),n("a-select",{attrs:{size:"large"},on:{change:function(e){return t.workflowRuleChange(e,"state.value")}},model:{value:t.currentTaskWorkflowRule.state.value,callback:function(e){t.$set(t.currentTaskWorkflowRule.state,"value",e)},expression:"currentTaskWorkflowRule.state.value"}},t._l(t.taskStates,(function(e,a){return n("a-select-option",{key:e.id,attrs:{value:e.id}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)]]:t._e()]:t._e()]:t._e()],n("div",{staticClass:"text-center"},[n("a-spin",{attrs:{spinning:t.loadingWorkflowRule}})],1)],2)])])])])]),n("a-tab-pane",{key:"5"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"ellipsis"}}),t._v("\n 更多\n ")],1),n("div",{staticClass:"config-content more-config"},[n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("p",{staticClass:"item-title"},[t._v("项目操作")]),n("div",{staticClass:"item-tips muted"},[t._v("您可以执行以下操作")]),n("a-button",{staticClass:"middle-btn",attrs:{size:"large"},on:{click:t.archiveProject}},[t.project.archive?n("span",[t._v("取消归档")]):t._e(),t.project.archive?t._e():n("span",[t._v("归档项目")])]),n("a-button",{staticClass:"middle-btn",attrs:{size:"large"},on:{click:t.quitProject}},[t._v("退出")]),n("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"danger"},on:{click:t.delProject}},[t.project.deleted?n("span",[t._v("恢复项目")]):t._e(),t.project.deleted?t._e():n("span",[t._v("移至回收站")])])],1)])])])],1)},o=[],r=(n("6d57"),n("f548"),n("163d"),n("cc57"),n("24d2")),i=n("22b6");function s(t){return i["a"].post("project/task_workflow",t)}function c(t){return i["a"].post("project/task_workflow/_getTaskWorkflowRules",t)}function l(t){return i["a"].post("project/task_workflow/save",t)}function u(t){return i["a"].post("project/task_workflow/edit",t)}function d(t){return i["a"].post("project/task_workflow/delete",t)}var f=n("e507"),p=n("9f5d"),h=n("97a8"),m=n("2f14"),v={name:"projectConfig",props:{code:{type:[String],default:function(){return""}}},data:function(){return{loading:!1,tabKey:"1",project:{},taskWorkflowList:[],doTaskWorkflowView:!1,loadingWorkflowRule:!1,taskWorkflow:null,taskWorkflowRuleList:[],currentTaskWorkflowRule:{taskWorkflowName:"",firstObj:"",firstAction:{action:-1,value:""},firstResult:{action:-1,value:""},lastResult:{action:-1,value:""},state:{action:-1,value:-1}},taskWorkflowRuleActions:[{id:-1,name:"请选择"},{id:0,name:"增加任务、被移动"},{id:1,name:"被完成"},{id:2,name:"被重做"},{id:3,name:"设置执行人"}],taskWorkflowRuleTypes:[{id:-1,name:"请选择"},{id:0,name:"自动流转到"},{id:3,name:"默认指派给"}],taskStates:[{id:-1,name:"不做修改"},{id:1,name:"已完成"},{id:2,name:"未完成"}],projectMembers:[],taskStages:[],uploadLoading:!1,uploadAction:Object(m["c"])("project/project/uploadCover")}},computed:{headers:function(){return Object(m["d"])()},canSaveTaskWorkflow:function(){return this.currentTaskWorkflowRule.taskWorkflowName.trim()&&this.currentTaskWorkflowRule.firstObj&&-1!=this.currentTaskWorkflowRule.firstAction.action&&-1!=this.currentTaskWorkflowRule.firstResult.action&&this.currentTaskWorkflowRule.firstResult.value}},watch:{code:function(){this.getProject()}},created:function(){this.getProject(),this.getTaskWorkflowList()},methods:{getProject:function(){var t=this;this.loading=!0,Object(r["h"])(this.code).then((function(e){t.loading=!1,t.project=e.data,t.project.open_prefix=!!e.data.open_prefix,t.project.open_begin_time=!!e.data.open_begin_time,t.project.open_task_private=!!e.data.open_task_private,t.project.auto_update_schedule=!!e.data.auto_update_schedule}))},getTaskWorkflowList:function(){var t=this;s({projectCode:this.code}).then((function(e){t.taskWorkflowList=e.data}))},saveProject:function(){var t=this,e=this.project;Object(r["e"])({projectCode:e.code,name:e.name,description:e.description,cover:e.cover,private:e.private,prefix:e.prefix,task_board_theme:e.task_board_theme,open_prefix:Number(e.open_prefix),open_begin_time:Number(e.open_begin_time),open_task_private:Number(e.open_task_private),schedule:Number(e.schedule),auto_update_schedule:Number(e.auto_update_schedule)}).then((function(e){Object(m["a"])(e)&&(t.$emit("update",t.project),Object(h["b"])({title:"保存成功"},"notice","success"))}))},archiveProject:function(){var t=this;t.project.archive?this.$confirm({title:"取消归档项目?",content:"取消归档「".concat(this.project.name,"」后就可以正常使用了"),okText:"取消归档",okType:"primary",cancelText:"再想想",onOk:function(){return Object(r["j"])(t.code).then((function(e){Object(m["a"])(e)&&t.$router.replace("/project/list/my")})),Promise.resolve()}}):this.$confirm({title:"归档项目",content:"一旦将项目「".concat(this.project.name,"」归档,本项目和所含信息将会被移到「归档项目」内,其中的内容依然会被统计和搜索收录,归档项目可以随时恢复并继续使用。"),okText:"归档",okType:"danger",cancelText:"再想想",onOk:function(){return Object(r["d"])(t.code).then((function(e){Object(m["a"])(e)&&t.$router.replace("/project/archive")})),Promise.resolve()}})},delProject:function(){var t=this;t.project.deleted?this.$confirm({title:"确定恢复项目?",content:"恢复「".concat(this.project.name,"」后就可以正常使用了"),okText:"恢复项目",okType:"primary",cancelText:"再想想",onOk:function(){return Object(r["i"])(t.code).then((function(e){Object(m["a"])(e)&&t.$router.replace("/project/list/my")})),Promise.resolve()}}):this.$confirm({title:"确定放入回收站?",content:"一旦将项目「".concat(this.project.name,"」放入回收站,所有与项目有关的信息将会被放入回收站"),okText:"放入回收站",okType:"danger",cancelText:"再想想",onOk:function(){return Object(r["k"])(t.code).then((function(e){Object(m["a"])(e)&&t.$router.replace("/project/recycle")})),Promise.resolve()}})},quitProject:function(){var t=this;this.$confirm({title:"退出项目",content:"一旦你退出了该项目,你将不能查看任何关于该项目的信息。退出项目后,如果想重新加入,请联系项目管理员。",okText:"确定退出",okType:"primary",cancelText:"再想想",onOk:function(){return Object(r["g"])(t.code).then((function(e){Object(m["a"])(e)&&t.$router.replace("/project/list/my")})),Promise.resolve()}})},doTaskWorkflow:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getTaskStages(),this.getProjectMembers(),this.taskWorkflow=t,t?(this.loadingWorkflowRule=!0,this.currentTaskWorkflowRule.taskWorkflowName=t.name,this.getTaskWorkflowRules(t.code)):this.currentTaskWorkflowRule={taskWorkflowName:"",firstObj:"",firstAction:{action:-1,value:""},firstResult:{action:-1,value:""},lastResult:{action:-1,value:""},state:{action:-1,value:-1},taskStates:[{id:-1,name:"不做修改"},{id:1,name:"已完成"},{id:2,name:"未完成"}]},this.doTaskWorkflowView=!0},saveTaskWorkflow:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.currentTaskWorkflowRule.firstResult.action?this.currentTaskWorkflowRule.lastResult.action=0:this.currentTaskWorkflowRule.lastResult.action=3;var n={taskWorkflowName:this.currentTaskWorkflowRule.taskWorkflowName,taskWorkflowRules:JSON.stringify(this.currentTaskWorkflowRule)};e&&(this.taskWorkflow?(n.taskWorkflowCode=this.taskWorkflow.code,u(n).then((function(e){t.getTaskWorkflowList()}))):(n.projectCode=this.code,l(n).then((function(e){t.getTaskWorkflowList()})))),this.doTaskWorkflowView=!1},getTaskStages:function(){var t=this;Object(f["a"])({projectCode:this.code}).then((function(e){var n=[{code:"",name:"不选择"}];e.data.forEach((function(t){n.push(t)})),t.taskStages=n}))},getTaskWorkflowRules:function(t){var e=this;c({taskWorkflowCode:t}).then((function(t){e.loadingWorkflowRule=!1;var n=t.data;e.taskWorkflowRuleList=n,n&&(e.currentTaskWorkflowRule.firstObj=n[0].object_code,e.currentTaskWorkflowRule.firstAction.action=n[1].action,e.currentTaskWorkflowRule.firstAction.value=n[1].object_code,e.currentTaskWorkflowRule.firstResult.action=n[2].action,e.currentTaskWorkflowRule.firstResult.value=n[2].object_code,n.length>=4&&(n[3].object_code?(e.currentTaskWorkflowRule.lastResult.action=n[3].action,e.currentTaskWorkflowRule.lastResult.value=n[3].object_code):(e.currentTaskWorkflowRule.state.action=n[3].action,e.currentTaskWorkflowRule.state.value=n[3].action),n.length>=5&&(n[4].object_code?(e.currentTaskWorkflowRule.lastResult.action=n[4].action,e.currentTaskWorkflowRule.lastResult.value=n[4].object_code):(e.currentTaskWorkflowRule.state.action=n[4].action,e.currentTaskWorkflowRule.state.value=n[4].action))))}))},delTaskWorkflow:function(t){var e=this;this.$confirm({title:"删除规则?",content:"您确定要删除该规则吗?",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return d({taskWorkflowCode:t}).then((function(t){Object(m["a"])(t)&&e.getTaskWorkflowList()})),Promise.resolve()}})},getProjectMembers:function(){var t=this;Object(p["d"])({projectCode:this.code,pageSize:100}).then((function(e){var n=[{code:"",name:"不选择"}];e.data.list.forEach((function(t){n.push(t)})),t.projectMembers=n}))},workflowRuleChange:function(t,e){console.log(t),console.log(e),"firstAction.action"==e&&(this.currentTaskWorkflowRule.firstAction.value=""),"firstResult.value"==e&&(this.currentTaskWorkflowRule.lastResult.value=""),"firstResult.action"==e&&(this.currentTaskWorkflowRule.firstResult.value="",this.currentTaskWorkflowRule.lastResult.value="")},handleChange:function(t){var e=this;"uploading"!==t.file.status?"done"===t.file.status&&Object(m["e"])(t.file.originFileObj,(function(){e.project.cover=t.file.response.data.url,e.uploadLoading=!1,Object(h["b"])({title:"封面上传成功"},"notice","success")})):this.uploadLoading=!0},beforeUpload:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("图片不能超过2MB!"),e}}},g=v,b=(n("9c6f"),n("c701")),k=Object(b["a"])(g,a,o,!1,null,null,null);e["a"]=k.exports},"6b5e":function(t,e,n){},7934:function(t,e,n){"use strict";n("f868")},"9c6f":function(t,e,n){"use strict";n("1b56")},a2cd:function(t,e,n){"use strict";var a=n("238a");t.exports=function(t,e){return!!t&&a((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},c904f:function(t,e,n){"use strict";var a=n("e46b"),o=n("5daa"),r=n("008a"),i=n("238a"),s=[].sort,c=[1,2,3];a(a.P+a.F*(i((function(){c.sort(void 0)}))||!i((function(){c.sort(null)}))||!n("a2cd")(s)),"Array",{sort:function(t){return void 0===t?s.call(r(this)):s.call(r(this),o(t))}})},c9b7:function(t,e,n){"use strict";n("2ac5")},d96e:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"project-space-task",class:t.project.task_board_theme},[n("div",{staticClass:"project-navigation"},[n("div",{staticClass:"project-nav-header"},[n("a-breadcrumb",[n("a-breadcrumb-item",[n("a",{on:{click:t.toHome}},[n("a-icon",{attrs:{type:"home"}}),t._v("\n 首页\n ")],1)]),n("a-breadcrumb-item",[n("project-select",{staticClass:"nav-title",staticStyle:{display:"inline-block"},attrs:{code:t.code}}),n("span",{staticClass:"actions"},[n("a-tooltip",{attrs:{mouseEnterDelay:.3,title:t.project.collected?"取消收藏":"加入收藏"},on:{click:t.collectProject}},[n("a-icon",{directives:[{name:"show",rawName:"v-show",value:!t.project.collected,expression:"!project.collected"}],staticStyle:{color:"grey"},attrs:{type:"star",theme:"filled"}}),n("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.project.collected,expression:"project.collected"}],staticStyle:{color:"#ffaf38"},attrs:{type:"star",theme:"filled"}})],1)],1),0===t.project.private?n("span",{staticClass:"label label-normal"},[n("a-icon",{attrs:{type:"global"}}),t._v(" 公开")],1):t._e()],1)],1)],1),n("section",{staticClass:"nav-body"},[n("ul",{staticClass:"nav-wrapper nav nav-underscore pull-left"},[t._m(0),n("li",{},[n("a",{staticClass:"app",attrs:{"data-app":"works"},on:{click:function(e){return t.$router.push("/project/space/files/"+t.code)}}},[t._v("\n 文件")])]),n("li",{},[n("a",{staticClass:"app",attrs:{"data-app":"build"},on:{click:function(e){return t.$router.push("/project/space/overview/"+t.code)}}},[t._v("\n 概览")])]),n("li",{},[n("a",{staticClass:"app",attrs:{"data-app":"build"},on:{click:function(e){return t.$router.push("/project/space/features/"+t.code)}}},[t._v("\n 版本")])])])]),n("div",{staticClass:"project-nav-footer"},[n("a",{staticClass:"footer-item",on:{click:function(e){return t.visibleDraw("taskSearch")}}},[n("a-icon",{attrs:{type:"search"}}),n("span",[t._v(" 筛选")])],1),n("a",{staticClass:"footer-item",class:{active:"member"==t.slideMenuKey},on:{click:function(e){return t.visibleDraw("member")}}},[n("a-icon",{attrs:{type:"user"}}),n("span",[t._v(" "+t._s(t.projectMembers.length))])],1),n("a",{staticClass:"footer-item",class:{active:"config"==t.slideMenuKey},on:{click:function(e){return t.visibleDraw("config")}}},[n("a-icon",{attrs:{type:"menu"}}),n("span",[t._v(" 菜单")])],1)])]),n("wrapper-content",{attrs:{showHeader:!1}},[n("draggable",{staticClass:"board-scrum-stages",attrs:{options:{group:"stages",filter:".undraggables",handle:".ui-sortable-handle",ghostClass:"stage-ghost",animation:200,forceFallback:!1},id:"board-scrum-stages"},on:{end:t.stageSort},model:{value:t.taskStages,callback:function(e){t.taskStages=e},expression:"taskStages"}},[t._l(t.taskStages,(function(e,a){return n("div",{key:a,staticClass:"scrum-stage",class:{"fixed-creator":1==e.fixedCreator},attrs:{id:e.code}},[n("header",{directives:[{name:"show",rawName:"v-show",value:!e.tasksLoading,expression:"!stage.tasksLoading"}],staticClass:"scrum-stage-header ui-sortable-handle"},[n("div",{staticClass:"stage-name hinted"},[t._v("\n "+t._s(e.name)+"\n "),e.tasks.length>0?n("span",{staticClass:"task-count"},[t._v(" · "+t._s(e.tasks.length))]):t._e()]),n("div",{staticClass:"stage-menu-toggler popover"},[n("a-dropdown",{attrs:{trigger:["click"],placement:"bottomCenter"}},[n("a-tooltip",{attrs:{placement:"top"}},[n("template",{slot:"title"},[n("span",[t._v("编辑任务列表")])]),n("a",{staticClass:"menu-toggler-title",attrs:{href:"javascript:void(0)"}},[n("a-icon",{staticStyle:{"font-size":"18px"},attrs:{type:"ellipsis"}})],1)],2),n("a-menu",{attrs:{slot:"overlay",selectable:!1},on:{click:t.doStage},slot:"overlay"},[n("a-menu-item",{key:"editStage_"+e.code+"_"+a},[n("a-icon",{attrs:{type:"edit"}}),t._v("\n 编辑列表\n ")],1),n("a-menu-item",{key:"setExecutor_"+e.code+"_"+a},[n("a-icon",{attrs:{size:"14",type:"user"}}),t._v("\n 设置本列所有任务执行者\n ")],1),n("a-menu-item",{key:"recycleBatch_"+e.code+"_"+a},[n("a-icon",{attrs:{size:"14",type:"delete"}}),t._v("\n 本列所有任务移到回收站\n ")],1),n("a-menu-item",{key:"delStage_"+e.code+"_"+a},[n("a-icon",{attrs:{size:"14",type:"delete"}}),t._v("\n 删除列表\n ")],1)],1)],1)],1)]),n("div",{staticClass:"scrum-stage-wrap ui-sortable",class:{"hidden-creator-bottom":e.showTaskCard}},[n("vue-scroll",{ref:a+"-stage",refInFor:!0,attrs:{ops:t.scrollOps},on:{"handle-resize":function(e){return t.handleResize(e,a)}}},[n("section",{staticClass:"scrum-stage-content thin-scroll",attrs:{id:e.code,"task-type-index":a}},[n("a-spin",{attrs:{wrapperClassName:"tasks-loading",spinning:e.tasksLoading}},[n("draggable",{staticClass:"scrum-stage-tasks",attrs:{options:{group:"task",ghostClass:"task-ghost",dragClass:"task-drag",fallbackClass:"task-drag",forceFallback:!1}},on:{end:t.taskSort},model:{value:e.unDoneTasks,callback:function(n){t.$set(e,"unDoneTasks",n)},expression:"stage.unDoneTasks"}},[t._l(e.unDoneTasks,(function(e,o){return[!e.done&&e.canRead?n("div",{key:e.code,staticClass:"task task-card ui-sortable-handle",class:t.showTaskPri(e.pri),attrs:{index:o,id:e.code},on:{click:function(n){return n.stopPropagation(),t.taskDetail(e.code,a)}}},[n("div",{staticClass:"task-priority bg-priority-0"}),n("a-tooltip",{attrs:{placement:a>0?"top":"right"}},[n("template",{slot:"title"},[e.hasUnDone?n("span",{staticStyle:{"font-size":"12px"}},[t._v("子任务尚未全部完成,无法完成父任务")]):t._e()]),n("div",{staticClass:"check-box-wrapper",on:{click:function(n){return n.stopPropagation(),t.taskDone(e.code,a,o,1)}}},[n("a-icon",{staticClass:"check-box",class:{disabled:e.hasUnDone},style:{fontSize:"16px"},attrs:{type:"border"}})],1)],2),n("div",{staticClass:"task-content-set open-detail"},[n("div",{staticClass:"task-content-wrapper"},[n("div",{staticClass:"task-content"},[t._v(" "+t._s(e.name))]),e.executor&&e.executor.avatar?n("a-tooltip",{attrs:{placement:"top"}},[n("template",{slot:"title"},[n("span",[t._v(t._s(e.executor.name))])]),n("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:e.executor.avatar,title:e.executor.name}})],2):t._e()],1),n("div",{staticClass:"task-info-wrapper clearfix"},[n("div",{staticClass:"task-infos"},[e.status?n("span",{staticClass:"icon-wrapper",style:{color:t.getStatusColor(e.status),fontSize:"12px"}},[t._v(t._s(e.statusText))]):t._e(),e.end_time?n("span",{staticClass:"label",class:t.showTimeLabel(e.end_time)},[n("span",{attrs:{title:e.end_time}},[t._v("\n "+t._s(t.showTaskTime(e.begin_time,e.end_time))+"\n ")])]):t._e(),e.description?n("span",{staticClass:"icon-wrapper muted"},[n("a-icon",{attrs:{type:"file-text"}})],1):t._e(),e.hasSource?n("span",{staticClass:"icon-wrapper muted"},[n("a-icon",{attrs:{type:"link"}})],1):t._e(),e.hasComment?n("span",{staticClass:"icon-wrapper muted"},[n("a-icon",{attrs:{type:"message"}})],1):t._e(),e.childCount[0]>0?n("span",{staticClass:"icon-wrapper muted"},[n("a-icon",{attrs:{type:"bars"}}),n("span",[t._v(t._s(e.childCount[1])+"/"+t._s(e.childCount[0]))])],1):t._e(),t._l(e.tags,(function(e){return n("span",{key:e.code,staticClass:"tag muted"},[n("a-badge",{class:"badge-"+e.tag.color,attrs:{status:"success"}}),t._v("\n "+t._s(e.tag.name)+"\n ")],1)})),e.execute_state>0?n("span",{class:"icon-wrapper text text-"+e.task_execute.color},[t._v(t._s(e.task_execute_name))]):t._e(),e.like?n("span",{staticClass:"icon-wrapper muted"},[n("a-icon",{attrs:{type:"like"}}),n("span",[t._v(t._s(e.like))])],1):t._e()],2)]),t.project.prefix&&t.project.open_prefix?n("footer",{staticClass:"task-info-footer"},[n("span",{staticClass:"task-id-number"},[t._v("\n "+t._s(t.project.prefix)+"-"+t._s(e.id_num)+"\n ")])]):t._e()])],1):t._e()]}))],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showTaskCard,expression:"stage.showTaskCard"}],staticClass:"task-creator-wrap card",attrs:{id:"card"+a}},[n("form",{staticClass:"task-creator"},[n("a-input",{ref:"inputTaskName"+a,refInFor:!0,staticClass:"task-content-input",attrs:{type:"textarea",rows:3,placeholder:"任务内容"},on:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.createTask(e.code,a)}},model:{value:t.task.name,callback:function(e){t.$set(t.task,"name",e)},expression:"task.name"}}),n("div",{staticClass:"handler-wrap"},[n("a-dropdown",{attrs:{trigger:["click"]}},[n("a",{staticClass:"executor-handler"},[n("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:t.defaultExecutor.avatar}}),n("span",{staticClass:"creator-handler-text name"},[t._v(t._s(t.defaultExecutor.name))])]),n("a-menu",{staticClass:"executor-handler-menu",attrs:{slot:"overlay"},on:{click:t.selectExecutor},slot:"overlay"},t._l(t.projectMembers,(function(e,a){return n("a-menu-item",{key:a},[n("img",{staticClass:"avatar img-circle img-32 pull-left m-r-sm ",attrs:{src:e.avatar}}),n("span",{staticClass:"muted",staticStyle:{"line-height":"25px"}},[t._v(t._s(e.name))]),e.code==t.defaultExecutor.code?n("a-icon",{staticClass:"muted",attrs:{type:"check"}}):t._e()],1)})),1)],1)],1),n("div",{staticClass:"submit-set"},[n("a-button",{staticClass:"middle-btn",attrs:{type:"default",size:"large"},on:{click:function(e){return e.stopPropagation(),t.showTaskCard(a,!1)}}},[t._v("取消\n ")]),n("a-button",{staticClass:"middle-btn",class:{"disabled-btn":!t.task.name},attrs:{loading:t.createTaskLoading,disabled:!t.task.name,type:"primary",size:"large"},on:{click:function(n){return n.stopPropagation(),t.createTask(e.code,a)}}},[t._v("创建\n ")])],1)],1)]),n("draggable",{staticClass:"scrum-stage-tasks-done",attrs:{options:{group:"task-done",ghostClass:"task-ghost",dragClass:"task-drag",fallbackClass:"task-drag",forceFallback:!1}},on:{end:t.taskSort},model:{value:e.doneTasks,callback:function(n){t.$set(e,"doneTasks",n)},expression:"stage.doneTasks"}},[t._l(e.doneTasks,(function(e,o){return[e.canRead?n("div",{key:e.code,staticClass:"task done task-card ui-sortable-handle",attrs:{index:o,id:e.code},on:{click:function(n){return n.stopPropagation(),t.taskDetail(e.code,a)}}},[n("div",{staticClass:"task-priority bg-priority-0"}),n("span",{staticClass:"check-box-wrapper",on:{click:function(n){return n.stopPropagation(),t.taskDone(e.code,a,o,0)}}},[n("a-icon",{staticClass:"check-box",class:{disabled:e.hasUnDone},style:{fontSize:"16px"},attrs:{type:"check-square"}})],1),n("div",{staticClass:"task-content-set open-detail"},[n("div",{staticClass:"task-content-wrapper"},[n("div",{staticClass:"task-content"},[t._v(t._s(e.name))]),e.executor&&e.executor.avatar?n("a-tooltip",{attrs:{placement:"top"}},[n("template",{slot:"title"},[n("span",[t._v(t._s(e.executor.name))])]),e.executor&&e.executor.avatar?n("img",{staticClass:"avatar img-circle img-24 hinted",attrs:{src:e.executor.avatar,title:e.executor.name}}):t._e()],2):t._e()],1),n("div",{staticClass:"task-info-wrapper clearfix"},[n("div",{staticClass:"task-infos"},t._l(e.task_tag_item_list,(function(e,a){return n("span",{key:e.code,staticClass:"tag muted",class:"tag-color-"+e.color},[t._v(" "+t._s(e.name)+" ")])})),0)])])]):t._e()]}))],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.canNotReadCount,expression:"stage.canNotReadCount"}],staticClass:"scrum-stage-tasks-done"},[n("li",{staticClass:"task muted",staticStyle:{margin:"0 10px 8px"}},[n("span",[n("a-icon",{attrs:{type:"lock"}}),t._v("\n 有 "+t._s(e.canNotReadCount)+" 个任务被隐藏(因为设置了仅参与者可见)")],1)])]),e.showTaskCard?t._e():n("div",{staticClass:"task-creator-handler-wrap",on:{click:function(e){return e.stopPropagation(),t.showTaskCard(a)}}},[n("a",{staticClass:"task-creator-handler link-add-handler"},[n("a-icon",{staticStyle:{"padding-right":"6px"},attrs:{type:"plus-circle"}}),t._v("\n 添加任务\n ")],1)])],1)],1)])],1)])})),n("div",{staticClass:"scrum-stage undraggable create-stage"},[n("header",{staticClass:"scrum-stage-header"},[n("div",{staticClass:"stage-name hinted",staticStyle:{width:"100%"}},[n("a",{directives:[{name:"show",rawName:"v-show",value:!t.showCreateStage,expression:"!showCreateStage"}],staticClass:"muted",on:{click:t.showInputStrageName}},[n("a-icon",{attrs:{type:"plus"}}),n("span",{staticClass:"m-l-xs"},[t._v("新建任务列表")])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showCreateStage,expression:"showCreateStage"}]},[n("div",[n("a-input",{ref:"inputStageName",attrs:{placeholder:"新建任务列表...","auto-focus":""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.creteStage(e)}},model:{value:t.stageName,callback:function(e){t.stageName=e},expression:"stageName"}})],1),n("div",{staticClass:"submit-set create-stage-footer"},[n("a",{staticClass:"cancel-text muted",attrs:{type:"text"},on:{click:function(e){t.showCreateStage=!t.showCreateStage}}},[t._v("\n 取消\n ")]),n("a-button",{staticClass:"middle-btn",attrs:{type:"primary"},on:{click:t.creteStage}},[t._v("保存")])],1)])])])])],2),n("router-view")],1),n("a-modal",{attrs:{width:360,title:t.stageModal.modalTitle,bodyStyle:{paddingBottom:"1px"},footer:null},model:{value:t.stageModal.modalStatus,callback:function(e){t.$set(t.stageModal,"modalStatus",e)},expression:"stageModal.modalStatus"}},[n("a-form",{attrs:{form:t.stageModal.form},on:{submit:function(e){return e.preventDefault(),t.editStage(e)}}},[n("a-form-item",[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入列表标题"}]}],expression:"[\n 'name',\n {rules: [{ required: true, message: '请输入列表标题' }]}\n ]"}],ref:"inputStageTitle",attrs:{placeholder:"列表标题"}})],1),n("a-form-item",[n("div",{staticClass:"action-btn pull-right"},[n("a",{staticClass:"cancel-text muted",attrs:{type:"text"},on:{click:function(e){t.stageModal.modalStatus=!1}}},[t._v("\n 取消\n ")]),n("a-button",{staticClass:"middle-btn",attrs:{type:"primary",htmlType:"submit"}},[t._v("保存")])],1)])],1)],1),n("a-drawer",{attrs:{wrapClassName:"info-drawer",title:"项目成员",width:"350",placement:"right",visible:t.inviteMemberDraw.visible},on:{close:function(e){t.inviteMemberDraw.visible=!1}}},[n("div",{staticClass:"search-content"},[n("a-input",{attrs:{size:"large",placeholder:"输入昵称或邮箱查找"},model:{value:t.inviteMemberDraw.keyword,callback:function(e){t.$set(t.inviteMemberDraw,"keyword",e)},expression:"inviteMemberDraw.keyword"}},[n("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),n("div",{staticClass:"member-list"},[n("div",{staticClass:"member-list-item ant-list-item header-action"},[n("div",{staticClass:"ant-list-item-meta",on:{click:function(e){t.showInviteMember=!0}}},[n("div",{staticClass:"ant-list-item-meta-avatar"},[n("a-avatar",{attrs:{icon:"plus"}})],1),n("div",{staticClass:"ant-list-item-meta-content"},[n("h4",{staticClass:"ant-list-item-meta-title"},[n("span",[t._v("邀请新成员")])])])])]),n("a-list",{attrs:{itemLayout:"horizontal",loading:t.inviteMemberDraw.searching,dataSource:t.projectMembers,locale:{emptyText:t.inviteMemberDraw.keyword&&t.inviteMemberDraw.keyword.length>1?"没有搜索到相关成员":""}},scopedSlots:t._u([{key:"renderItem",fn:function(e,a){return n("a-list-item",{staticClass:"member-list-item"},[e.is_owner?t._e():n("span",{attrs:{slot:"actions"},slot:"actions"},[n("a",{staticClass:"muted",on:{click:function(n){return t.removeMember(e,a)}}},[n("a-icon",{attrs:{type:"user-delete"}}),t._v(" 移除")],1)]),n("a-list-item-meta",{attrs:{description:e.email}},[n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))]),n("a-avatar",{attrs:{slot:"avatar",icon:"user",src:e.avatar},slot:"avatar"})],1)],1)}}])})],1)]),n("a-drawer",{attrs:{wrapClassName:"info-drawer",title:"项目设置",width:"350",placement:"right",visible:t.configDraw.visible},on:{close:function(e){t.configDraw.visible=!1}}},[n("div",{staticClass:"config-wrapper"},[n("ul",{staticClass:"config-menus"},[n("li",{staticClass:"menu-item"},[n("a",{on:{click:function(e){t.projectModal.modalStatus=!0}}},[n("a-icon",{attrs:{type:"setting"}}),t._v("\n 项目设置\n ")],1)]),n("li",{staticClass:"menu-item"},[n("a",{on:{click:function(e){t.taskTagModal.modalStatus=!0}}},[n("a-icon",{attrs:{type:"tags"}}),t._v("\n 标签\n ")],1)]),n("li",{staticClass:"menu-item"},[n("a",{on:{click:function(e){t.recycleModal.modalStatus=!0}}},[n("a-icon",{attrs:{type:"delete"}}),t._v("\n 查看回收站\n ")],1)]),n("li",{staticClass:"menu-item"},[n("a",{attrs:{href:t.downLoadUrl,target:"_blank"}},[n("a-icon",{attrs:{type:"copy"}}),t._v("\n 下载导入任务模板\n ")],1)]),n("li",{staticClass:"menu-item"},[n("a-upload",{attrs:{name:"file",showUploadList:!1,action:t.uploadAction,beforeUpload:t.beforeUpload,data:{projectCode:t.code},headers:t.headers},on:{change:t.handleChange}},[n("a",{staticClass:"text-default",attrs:{loading:t.uploadLoading,disabled:t.uploadLoading}},[n("a-icon",{directives:[{name:"show",rawName:"v-show",value:!t.uploadLoading,expression:"!uploadLoading"}],attrs:{type:"upload"}}),t._v("\n 上传文件导入任务\n ")],1)])],1),n("li",{staticClass:"menu-item"},[n("a",[n("a-icon",{attrs:{type:"logout"}}),t._v("\n 导出任务 *\n ")],1)]),n("li",{staticClass:"menu-item"},[n("a",[n("a-icon",{attrs:{type:"copy"}}),t._v("\n 复制项目 *\n ")],1)]),n("li",{staticClass:"menu-item"},[n("a",[n("a-icon",{attrs:{type:"block"}}),t._v("\n 保存为项目模板 *\n ")],1)])])])]),n("a-modal",{staticClass:"project-config-modal",attrs:{destroyOnClose:"",width:800,title:t.projectModal.modalTitle,footer:null},model:{value:t.projectModal.modalStatus,callback:function(e){t.$set(t.projectModal,"modalStatus",e)},expression:"projectModal.modalStatus"}},[n("project-config",{attrs:{code:t.code},on:{update:t.updateProject}})],1),n("a-modal",{staticClass:"recycle-bin-modal",attrs:{width:800,title:t.recycleModal.modalTitle,footer:null},model:{value:t.recycleModal.modalStatus,callback:function(e){t.$set(t.recycleModal,"modalStatus",e)},expression:"recycleModal.modalStatus"}},[t.recycleModal.modalStatus?n("recycle-bin",{attrs:{code:t.code},on:{update:t.init}}):t._e()],1),n("a-modal",{staticClass:"task-tag-modal",attrs:{width:800,title:t.taskTagModal.modalTitle,footer:null},model:{value:t.taskTagModal.modalStatus,callback:function(e){t.$set(t.taskTagModal,"modalStatus",e)},expression:"taskTagModal.modalStatus"}},[t.taskTagModal.modalStatus?n("task-tag",{attrs:{code:t.code},on:{update:t.init}}):t._e()],1),n("a-modal",{staticClass:"invite-project-member",attrs:{width:360,title:t.projectMemberModal.modalTitle,footer:null},model:{value:t.projectMemberModal.modalStatus,callback:function(e){t.$set(t.projectMemberModal,"modalStatus",e)},expression:"projectMemberModal.modalStatus"}},[n("div",{staticClass:"member-list"},[n("a-list",{staticClass:"project-list",attrs:{itemLayout:"horizontal",loading:t.loading,dataSource:t.projectMembers},scopedSlots:t._u([{key:"renderItem",fn:function(e){return n("a-list-item",{},[n("span",{attrs:{slot:"actions"},slot:"actions"},[n("a-button",{attrs:{size:"small",type:"dashed",icon:"user-add"},on:{click:function(n){return t.setExecutor(e)}}},[t._v("设置")])],1),n("a-list-item-meta",{attrs:{description:e.email}},[n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))]),n("a-avatar",{attrs:{slot:"avatar",icon:"user",src:e.avatar},slot:"avatar"})],1)],1)}}])})],1)]),n("a-drawer",{attrs:{wrapClassName:"info-drawer task-search",title:"任务筛选",width:"350",placement:"right",visible:t.taskSearch.visible},on:{close:function(e){t.taskSearch.visible=!1}}},[n("task-search",{attrs:{"project-code":t.code},on:{search:t.taskSearchAction}})],1),t.showInviteMember?n("invite-project-member",{attrs:{"project-code":t.code},model:{value:t.showInviteMember,callback:function(e){t.showInviteMember=e},expression:"showInviteMember"}}):t._e()],1)},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"actives"},[n("a",{staticClass:"app",attrs:{"data-app":"tasks"}},[t._v("任务")])])}],r=(n("5ab2"),n("e10e"),n("e697"),n("e204"),n("9a33"),n("c904f"),n("6d57"),n("cc57"),n("28f8")),i=n("9f3a"),s=n("a14a"),c=n.n(s),l=n("caaf"),u=n.n(l),d=n("f93e"),f=n("3335"),p=n.n(f),h=n("f8c7"),m=n("d3a1"),v=n("58bf"),g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-tabs",{attrs:{tabPosition:"left",defaultActiveKey:"1",animated:!1},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[n("a-tab-pane",{key:"1"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"check-square"}}),t._v("\n 任务\n ")],1)]),n("a-tab-pane",{key:"2"},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:"link"}}),t._v("\n 文件\n ")],1)]),n("div",{staticClass:"config-content"},[n("vue-scroll",[n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("a-list",[t.showLoadingMore?n("div",{style:{textAlign:"center",marginTop:"12px",height:"32px",lineHeight:"32px"},attrs:{slot:"loadMore"},slot:"loadMore"},[t.loadingMore?n("a-spin"):n("a-button",{on:{click:t.onLoadMore}},[t._v("加载更多")])],1):t._e(),t._l(t.list,(function(e,a){return n("a-list-item",{key:a},[n("a-list-item-meta",[n("div",{attrs:{slot:"title"},slot:"title"},[n("router-link",{directives:[{name:"show",rawName:"v-show",value:"1"==t.tabKey,expression:"tabKey == '1'"}],staticClass:"text-default",attrs:{to:"/project/space/task/"+t.code+"/detail/"+e.code}},[t._v("\n "+t._s(e.name)+"\n ")]),n("a",{directives:[{name:"show",rawName:"v-show",value:"2"==t.tabKey,expression:"tabKey == '2'"}],staticClass:"text-default",attrs:{target:"_blank",href:e.file_url}},[t._v("\n "+t._s(e.fullName)+"\n ")])],1),n("div",{attrs:{slot:"description"},slot:"description"},[t._v("\n "+t._s(t.showTaskTime(e.deleted_time))+"\n ")])]),n("a",{staticClass:"muted",attrs:{slot:"actions"},on:{click:function(n){return t.recoveryTask(e,a)}},slot:"actions"},[n("a-tooltip",{attrs:{title:"恢复内容"}},[n("a-icon",{attrs:{type:"undo"}})],1)],1),n("a",{staticClass:"muted",attrs:{slot:"actions"},on:{click:function(n){return t.deleteItem(e,a)}},slot:"actions"},[n("a-tooltip",{attrs:{title:"彻底删除"}},[n("a-icon",{attrs:{type:"delete"}})],1)],1)],1)}))],2)],1)])])],1)],1)},b=[],k=n("2f14"),w=n("b199"),y=n("3f5e"),_=n("1b80"),C=n("81fe"),j={name:"recycleBin",props:{code:{type:[String],default:function(){return""}}},mixins:[_["a"]],data:function(){return{loading:!1,tabKey:"1",project:{},list:[],showLoadingMore:!1,loadingMore:!1}},watch:{code:function(){this.init()},tabKey:function(t){this.init()}},created:function(){this.init()},methods:{init:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this;switch(t&&(this.list=[],this.pagination.page=1,this.pagination.pageSize=10,this.showLoadingMore=!1),this.requestData.deleted=1,this.requestData.projectCode=this.code,e.loading=!0,this.tabKey){case"1":e.getTasks();break;case"2":e.getFiles();break}},getTasks:function(){var t=this;Object(w["m"])(t.requestData).then((function(e){t.list=t.list.concat(e.data.list),t.pagination.total=e.data.total,t.showLoadingMore=t.pagination.total>t.list.length,t.loading=!1,t.loadingMore=!1}))},getFiles:function(){var t=this;Object(y["c"])(t.requestData).then((function(e){t.list=t.list.concat(e.data.list),t.pagination.total=e.data.total,t.showLoadingMore=t.pagination.total>t.list.length,t.loading=!1,t.loadingMore=!1}))},onLoadMore:function(){this.loadingMore=!0,this.pagination.page++,this.init(!1)},showTaskTime:function(t){return Object(C["b"])(t)},recoveryTask:function(t,e){var n=this;switch(this.tabKey){case"1":this.$confirm({title:"确定恢复内容?",content:"恢复后可在任务列表中查看",okText:"恢复内容",okType:"primary",cancelText:"再想想",onOk:function(){return Object(w["p"])(t.code).then((function(a){Object(k["a"])(a)&&(n.list.splice(e,1),n.$emit("update",t))})),Promise.resolve()}});break;case"2":this.$confirm({title:"确定恢复文件?",content:"恢复后可在我的文件中查看",okText:"恢复文件",okType:"primary",cancelText:"再想想",onOk:function(){return Object(y["d"])(t.code).then((function(a){Object(k["a"])(a)&&(n.list.splice(e,1),n.$emit("update",t))})),Promise.resolve()}});break}},deleteItem:function(t,e){var n=this;switch(this.tabKey){case"1":this.$confirm({title:"确定彻底删除任务?",content:"彻底删除任务后,该任务及其子任务将会被永久被删除。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(w["f"])(t.code).then((function(a){Object(k["a"])(a)&&(n.list.splice(e,1),n.$emit("update",t))})),Promise.resolve()}});break;case"2":this.$confirm({title:"确认彻底删除该文件?",content:"彻底删除文件后,相关的关联资源将会失效。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(y["a"])(t.code).then((function(a){Object(k["a"])(a)&&(n.list.splice(e,1),n.$emit("update",t))})),Promise.resolve()}});break}}}},x=j,S=(n("c9b7"),n("c701")),T=Object(S["a"])(x,g,b,!1,null,null,null),O=T.exports,M=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("a-tabs",{staticClass:"task-tag-index",attrs:{tabPosition:"left",defaultActiveKey:"1",animated:!1},model:{value:t.tabKey,callback:function(e){t.tabKey=e},expression:"tabKey"}},[t._l(t.taskTagList,(function(e){return n("a-tab-pane",{key:e.code},[n("div",{attrs:{slot:"tab"},slot:"tab"},[n("div",{staticClass:"tag-item"},[n("a-badge",{class:"badge-"+e.color,attrs:{status:"success"}}),t._v("\n "+t._s(e.name)+"\n ")],1)]),n("div",{staticClass:"config-content"},[n("vue-scroll",[n("div",{staticClass:"content-item"},[n("div",{staticClass:"infos"},[n("a-list",{attrs:{loading:{spinning:t.loading,delay:300}}},[t.showLoadingMore?n("div",{style:{textAlign:"center",marginTop:"12px",height:"32px",lineHeight:"32px"},attrs:{slot:"loadMore"},slot:"loadMore"},[t.loadingMore?n("a-spin"):n("a-button",{on:{click:t.onLoadMore}},[t._v("加载更多")])],1):t._e(),t._l(t.list,(function(e,a){return n("a-list-item",{key:a},[n("a-list-item-meta",[n("div",{staticClass:"task-list",class:{done:e.done},attrs:{slot:"title"},slot:"title"},[n("div",[n("router-link",{staticClass:"text-default task-content",attrs:{to:"/project/space/task/"+t.code+"/detail/"+e.code}},[e.executor&&e.executor.avatar?n("a-tooltip",{attrs:{placement:"top"}},[n("template",{slot:"title"},[n("span",[t._v(t._s(e.executor.name))])]),n("img",{staticClass:"avatar task-executor img-circle img-24 hinted m-r-sm",attrs:{src:e.executor.avatar,title:e.executor.name}})],2):n("a-avatar",{staticClass:"m-r-sm",attrs:{size:"small",icon:"user"}}),n("span",{staticClass:"task-name m-r"},[t._v(t._s(e.name))]),t._l(e.tags,(function(e){return n("span",{key:e.code,staticClass:"muted flex m-r tag-name"},[n("a-badge",{class:"badge-"+e.tag.color+" m-r-xs",attrs:{status:"success"}}),t._v("\n "+t._s(e.tag.name)+"\n ")],1)}))],2)],1),e.end_time?n("div",{staticClass:"label task-time",class:t.showTimeLabel(e.end_time)},[t._v("\n "+t._s(t.showTaskTime(e.begin_time,e.end_time))+"\n ")]):t._e()])])],1)}))],2)],1)])])],1)])})),t.loading||t.list.length?t._e():n("div",{staticClass:"m-t text-center"},[n("strong",[n("h2",[t._v("项目中还没有标签")])])])],2)],1)},D=[],E=n("813b"),R={name:"taskTag",props:{code:{type:[String],default:function(){return""}}},mixins:[_["a"]],data:function(){return{loading:!1,tabKey:"0",project:{},taskTagList:[],list:[],showLoadingMore:!1,loadingMore:!1}},watch:{code:function(){this.init()},tabKey:function(t){this.getTaskList()}},created:function(){this.init()},methods:{init:function(){var t=this;this.requestData.projectCode=this.code,t.getTaskTags()},getTaskTags:function(){var t=this;Object(E["c"])(t.requestData).then((function(e){t.taskTagList=e.data,e.data.length&&(t.tabKey=e.data[0].code)}))},getTaskList:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.tabKey)return!1;var e=this;e.loading=!0,t&&(this.list=[],this.pagination.page=1,this.pagination.pageSize=10,this.showLoadingMore=!1),Object(w["j"])({taskTagCode:this.tabKey}).then((function(t){e.list=e.list.concat(t.data.list),e.pagination.total=t.data.total,e.showLoadingMore=e.pagination.total>e.list.length,e.loading=!1,e.loadingMore=!1}))},onLoadMore:function(){this.loadingMore=!0,this.pagination.page++,this.getTaskList(!1)},showTaskTime:function(t,e){return Object(C["a"])(t,e)},showTimeLabel:function(t){var e="label-primary";if(null==t)return e;var n=u()(u()(t).format("YYYY-MM-DD")).diff(u()().format("YYYY-MM-DD"),"days");return n<0?e="label-danger":0==n?e="label-warning":n>7&&(e="label-normal"),e},deleteItem:function(t,e){var n=this;switch(this.tabKey){case"1":this.$confirm({title:"确定彻底删除任务?",content:"彻底删除任务后,该任务及其子任务将会被永久被删除。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(E["a"])(t.code).then((function(a){Object(k["a"])(a)&&(n.list.splice(e,1),n.$emit("update",t))})),Promise.resolve()}});break;case"2":this.$confirm({title:"确认彻底删除该文件?",content:"彻底删除文件后,相关的关联资源将会失效。",okText:"彻底删除",okType:"danger",cancelText:"再想想",onOk:function(){return delFile(t.code).then((function(a){Object(k["a"])(a)&&(n.list.splice(e,1),n.$emit("update",t))})),Promise.resolve()}});break}}}},P=R,N=(n("f9ef"),Object(S["a"])(P,M,D,!1,null,null,null)),A=N.exports,L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"task-search"},[n("a-spin",{attrs:{spinning:t.loading}},[n("div",{staticClass:"search-content"},[n("a-form",{staticClass:"m-t-md",attrs:{form:t.form},on:{submit:function(e){return e.preventDefault(),t.handleSubmit(e)}}},[n("a-form-item",{attrs:{label:"标题",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["title"],expression:"[\n 'title',\n ]"}],attrs:{placeholder:"搜索项目内任务"}})],1),n("a-form-item",{attrs:{label:"执行者",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["executor"],expression:"[\n 'executor',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.projectMemberList,(function(e){return n("a-select-option",{key:e.code},[n("div",{staticClass:"task-search-member-item"},[n("a-avatar",{staticClass:"m-r-sm",attrs:{size:24,icon:"user",src:e.avatar}}),n("div",[n("div",[t._v(t._s(e.name))]),n("div",{staticClass:"muted"},[t._v(t._s(e.email))])])],1)])})),1)],1),n("a-form-item",{attrs:{label:"创建者",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["creator"],expression:"[\n 'creator',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.projectMemberList,(function(e){return n("a-select-option",{key:e.code},[n("div",{staticClass:"task-search-member-item"},[n("a-avatar",{staticClass:"m-r-sm",attrs:{size:24,icon:"user",src:e.avatar}}),n("div",[n("div",[t._v(t._s(e.name))]),n("div",{staticClass:"muted"},[t._v(t._s(e.email))])])],1)])})),1)],1),n("a-form-item",{attrs:{label:"参与者",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["joiner"],expression:"[\n 'joiner',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.projectMemberList,(function(e){return n("a-select-option",{key:e.code},[n("div",{staticClass:"task-search-member-item"},[n("a-avatar",{staticClass:"m-r-sm",attrs:{size:24,icon:"user",src:e.avatar}}),n("div",[n("div",[t._v(t._s(e.name))]),n("div",{staticClass:"muted"},[t._v(t._s(e.email))])])],1)])})),1)],1),n("a-form-item",{attrs:{label:"是否完成",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["done",{initialValue:-1}],expression:"[\n 'done',\n {initialValue: -1}\n\n ]"}],attrs:{allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},[n("a-select-option",{key:-1},[t._v("全部")]),n("a-select-option",{key:1},[t._v("是")]),n("a-select-option",{key:0},[t._v("否")])],1)],1),n("a-form-item",{attrs:{label:"优先级",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["pri"],expression:"[\n 'pri',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},[n("a-select-option",{key:0},[t._v("普通")]),n("a-select-option",{key:1},[t._v("紧急")]),n("a-select-option",{key:2},[t._v("非常紧急")])],1)],1),n("a-form-item",{attrs:{label:"执行状态",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["status"],expression:"[\n 'status',\n ]"}],attrs:{mode:"multiple",showSearch:"",allowClear:"",placeholder:"请选择",optionFilterProp:"children"}},t._l(t.taskStatusList,(function(e,a){return n("a-select-option",{key:e.id},[t._v(t._s(e.name))])})),1)],1),n("a-form-item",{attrs:{label:"截止日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["end_time"],expression:"[\n 'end_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1),n("a-form-item",{attrs:{label:"创建日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["create_time"],expression:"[\n 'create_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1),n("a-form-item",{attrs:{label:"完成日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["done_time"],expression:"[\n 'done_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1),n("a-form-item",{attrs:{label:"开始日期",colon:!1,labelCol:{span:6},wrapperCol:{span:18}}},[n("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["begin_time"],expression:"[\n 'begin_time',\n ]"}],staticStyle:{width:"100%"},attrs:{allowClear:"",format:"YYYY-MM-DD"}})],1)],1),n("div",{staticClass:"footer m-t-md"},[n("a-button",{staticClass:"m-r",attrs:{type:"primary",size:"large"},on:{click:t.handleSubmit}},[t._v("搜索")]),n("a-button",{attrs:{size:"large"},on:{click:t.resetForm}},[t._v("重置")])],1)],1)])],1)},I=[],W=(n("163d"),n("9f5d")),$=n("e507"),Y=n("97a8"),z={name:"taskSearch",props:{projectCode:{type:[String,Number],default:function(){return""}}},data:function(){return{moment:u.a,form:this.$form.createForm(this),loading:!1,projectMemberList:[],taskStageList:[],taskStatusList:d["a"].TASK_STATUS}},watch:{projectCode:function(){this.init()}},created:function(){this.init()},methods:{init:function(){this.projectCode&&(this.resetForm(),this.loading=!0,this.getProjectMemberList(),this.getTaskStageList())},getProjectMemberList:function(){var t=this;Object(W["d"])({projectCode:this.projectCode,pageSize:300}).then((function(e){t.projectMemberList=e.data.list,t.loading=!1}))},getTaskStageList:function(){var t=this;Object($["a"])({projectCode:this.projectCode}).then((function(e){t.taskStageList=e.data,t.loading=!1}))},resetForm:function(){this.form.resetFields()},handleSubmit:function(){var t=this;this.form.validateFields((function(e,n){if(!e){var a=t.form.getFieldsValue();a.executor=JSON.stringify(a.executor),a.creator=JSON.stringify(a.creator),a.joiner=JSON.stringify(a.joiner),a.status=JSON.stringify(a.status),console.log(a),a.end_time&&a.end_time.length?a.endTime=JSON.stringify([u()(a.end_time[0]).format("YYYY-MM-DD"),u()(a.end_time[1]).format("YYYY-MM-DD")]):a.endTime=void 0,a.begin_time&&a.begin_time.length?a.beginTime=JSON.stringify([u()(a.begin_time[0]).format("YYYY-MM-DD"),u()(a.begin_time[1]).format("YYYY-MM-DD")]):a.beginTime=void 0,a.create_time&&a.create_time.length?a.createTime=JSON.stringify([u()(a.create_time[0]).format("YYYY-MM-DD"),u()(a.create_time[1]).format("YYYY-MM-DD")]):a.createTime=void 0,a.done_time&&a.done_time.length?a.doneTime=JSON.stringify([u()(a.done_time[0]).format("YYYY-MM-DD"),u()(a.done_time[1]).format("YYYY-MM-DD")]):a.doneTime=void 0,console.log(a),t.$emit("search",a)}}))}}},F=z,K=(n("19f2"),Object(S["a"])(F,L,I,!1,null,null,null)),B=K.exports,U=n("24d2"),V=n("4200");function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var q={name:"project-space-task",components:{RecycleBin:O,TaskTag:A,draggable:p.a,projectSelect:h["a"],TaskSearch:B,inviteProjectMember:m["a"],projectConfig:v["a"]},data:function(){return{code:this.$route.params.code,loading:!0,project:{task_board_theme:"simple"},stageName:"",task:{},taskStatusList:d["a"].TASK_STATUS,taskStages:[],defaultExecutor:{},projectMembers:[],projectMembersCopy:[],createTaskLoading:!1,showCreateStage:!1,preCode:"",nextCode:"",preTaskCode:"",nextTaskCode:"",taskSearchParams:{},stageKeys:[],stageModal:{form:this.$form.createForm(this),stageCode:"",stageIndex:0,modalStatus:!1,confirmLoading:!1,modalTitle:"编辑列表"},slideMenuKey:"",showInviteMember:!1,inviteMemberDraw:{visible:!1,keyword:"",searching:!1,list:[]},configDraw:{visible:!1},taskSearch:{visible:!1},downLoadUrl:Object(k["h"])("project/task/_downloadTemplate"),uploadLoading:!1,uploadAction:Object(k["c"])("project/task/uploadFile"),projectModal:{modalStatus:!1,modalTitle:"项目设置"},recycleModal:{modalStatus:!1,modalTitle:"查看回收站"},taskTagModal:{modalStatus:!1,modalTitle:"任务标签"},projectMemberModal:{loading:!1,currentStageIndex:0,modalStatus:!1,modalTitle:"设置任务执行者"}}},computed:H(H({},Object(i["c"])({userInfo:function(t){return t.userInfo},viewRefresh:function(t){return t.common.viewRefresh},socketAction:function(t){return t.socketAction}})),{},{headers:function(){return Object(k["d"])()},scrollOps:function(){return{rail:{background:"#e5e5e5",opacity:1},bar:{keepShow:!0}}}}),watch:{$route:function(t,e){var n=this;if(this.code!=t.params.code&&(this.code=t.params.code,this.defaultExecutor=this.userInfo,this.getProject(),this.getProjectMembers(),this.init()),"taskdetail"==e.name){var a=e.query.from;if(void 0!=a){var o=this.taskSearchParams,r=Object.assign({stageCode:this.taskStages[a].code},o);Object($["g"])(r).then((function(t){n.taskStages[a].tasksLoading=!1,n.taskStages[a].tasks=t.data;var e=n.taskStages[a].doneTasks=[],o=n.taskStages[a].unDoneTasks=[];t.data.forEach((function(t){t.done?e.push(t):o.push(t)}))}))}}},socketAction:function(t){if("organization:task"===t.action){var e=t.data.data;e.projectCode==this.code&&this.getTaskStages(!1)}},viewRefresh:function(){console.log("viewRefresh")},inviteMemberDraw:{handler:function(t){t.visible?this.slideMenuKey="member":this.slideMenuKey=!1,t.keyword&&this.searchInviteMember()},deep:!0},configDraw:{handler:function(t){t.visible?this.slideMenuKey="config":this.slideMenuKey=!1},deep:!0},showInviteMember:function(t){t||this.getProjectMembers()}},created:function(){this.defaultExecutor=this.userInfo,this.getProject(),this.getProjectMembers(),this.init()},methods:{init:function(){this.getTaskStages()},getProject:function(){var t=this;this.loading=!0,Object(U["h"])(this.code).then((function(e){t.loading=!1,t.project=e.data}))},getProjectMembers:function(){var t=this;Object(W["d"])({projectCode:this.code,pageSize:100}).then((function(e){t.projectMembers=e.data.list,t.projectMembersCopy=e.data.list}))},getTaskStages:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this;Object($["d"])({projectCode:this.code,pageSize:30}).then((function(a){var o=[];if(e?t.taskStages=o=a.data.list:a.data.list.forEach((function(t){t.tasksLoading=!1,o.push(t)})),o){var r=n.taskSearchParams,i={};o.forEach((function(t,a){i={stageCode:t.code},i=Object.assign(i,r),Object($["g"])(i).then((function(o){var r=0;o.data.forEach((function(e){e.canRead||r++,e.done?t.doneTasks.push(e):t.unDoneTasks.push(e)})),t.canNotReadCount=r,t.tasksLoading=!1,t.tasks=o.data,e||n.$set(n.taskStages,a,t)}))}))}}))},filterTask:function(t,e){return t.filter((function(t){return t.done==e}))},taskSearchAction:function(t){console.log(t),this.taskSearchParams=t,this.getTaskStages()},showTaskCard:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.taskStages.forEach((function(t){t.showTaskCard=!1})),!1===e)return!1;this.taskStages[e].showTaskCard=n,this.$nextTick((function(){t.$refs[e+"-stage"][0].scrollIntoView("#card"+e),t.$refs["inputTaskName".concat(e)][0].focus()}))},selectExecutor:function(t){var e=t.key;this.defaultExecutor=this.projectMembers[e]},createTask:function(t,e){if(!this.task.name)return this.$message.warning("任务内容不能为空",2),!1;this.task.stage_code=t,this.task.project_code=this.code,this.task.assign_to=this.defaultExecutor.code,this.confirmCreateTask(e)},confirmCreateTask:function(t){var e=this;if(e.createTaskLoading)return e.$message.warning("正在添加任务,请稍后...",2),!1;setTimeout((function(){!0===e.createTaskLoading&&e.$message.loading({content:"正在添加任务,请稍后...",duration:5})}),2e3),e.createTaskLoading=!0,Object(w["s"])(e.task).then((function(n){e.createTaskLoading=!1;var a=Object(k["a"])(n);if(a){e.$message.destroy();var o=e.taskStages[t];o.tasks.push(n.data),e.taskStages[t].unDoneTasks.push(n.data),e.task={}}})).catch((function(){e.createTaskLoading=!1}))},taskDone:function(t,e,n,a){var o=this,r=null,i=this.taskStages[e].unDoneTasks,s=this.taskStages[e].doneTasks;if(r=a?i[n]:s[n],r.hasUnDone)return!1;r.done=a,a?(i.splice(n,1),s.push(r),s=s.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))):(s.splice(n,1),i.push(r),i=i.sort((function(t,e){return t.sort===e.sort?t.id_num-e.id_num:t.sort-e.sort}))),Object(w["z"])(t,a).then((function(t){var e=Object(k["a"])(t);if(!e)return!1;o.getTaskStages(!1)}))},showInputStrageName:function(){var t=this;this.showCreateStage=!this.showCreateStage,this.$nextTick((function(){t.$refs.inputStageName.focus()}))},doStage:function(t){var e=this,n=this,a=t.key.split("_"),o=a[a.length-2],r=a[a.length-1],i=a[0];switch(i){case"editStage":this.stageModal.stageCode=o,this.stageModal.stageIndex=r,this.$nextTick((function(){e.stageModal.form.setFieldsValue({name:e.taskStages[r].name}),e.$refs.inputStageTitle.focus()})),this.stageModal.modalStatus=!0;break;case"recycleBatch":this.$confirm({title:"移到回收站",content:"您确定要把列表下的所有任务移到回收站吗?",okText:"移到回收站",okType:"danger",cancelText:"再想想",onOk:function(){return n.taskStages[r].tasks=[],n.$set(n.taskStages[r],"doneTasks",[]),Object(w["r"])({stageCode:o}).then((function(t){var e=Object(k["a"])(t);if(!e)return!1;n.$set(n.taskStages[r],"doneTasks",[]),n.$set(n.taskStages[r],"unDoneTasks",[])})),Promise.resolve()}});break;case"setEndTime":this.set_type_endTime_modal=!0;break;case"setExecutor":this.projectMemberModal.currentStageIndex=r,this.projectMemberModal.modalStatus=!0;break;case"delStage":if(this.taskStages[r].tasks.length>0)return this.$warning({title:"删除列表",content:"请先清空此列表上的任务,然后再删除这个列表",okText:"确定"}),!1;this.$confirm({title:"删除列表",content:"您确定要永远删除这个列表吗?",okText:"删除",okType:"danger",cancelText:"再想想",onOk:function(){return Object($["b"])(o),n.taskStages.splice(r,1),Promise.resolve()}});break}},creteStage:function(){var t=this;if(!this.stageName)return this.$message.warning("请输入列表名称",2),!1;Object($["e"])({name:this.stageName,projectCode:this.code}).then((function(e){var n=Object(k["a"])(e);if(!n)return!1;var a=e.data;t.taskStages.push(a),t.stageName="",t.$nextTick((function(){document.getElementById("board-scrum-stages").scrollLeft=1e4}))}))},editStage:function(){var t=this,e=this.stageModal.form.getFieldsValue();if(!e.name)return this.$message.warning("请输入列表名称",2),!1;Object($["c"])({name:e.name,stageCode:this.stageModal.stageCode}).then((function(n){var a=Object(k["a"])(n);if(!a)return!1;t.taskStages[t.stageModal.stageIndex].name=e.name,t.stageModal.modalStatus=!1}))},setExecutor:function(t){var e=this,n=this.taskStages[this.projectMemberModal.currentStageIndex],a=[];n.tasks.forEach((function(t){t.canRead&&a.push(t.code)})),a?Object(w["c"])({taskCodes:JSON.stringify(a),executorCode:t.code}).then((function(t){if(e.projectMemberModal.modalStatus=!1,!Object(k["a"])(t))return!1;Object($["g"])({stageCode:n.code}).then((function(t){var e=0;t.data.forEach((function(t){t.canRead||e++})),n.canNotReadCount=e,n.tasksLoading=!1,n.tasks=t.data}))})):this.projectMemberModal.modalStatus=!1},showTaskPri:function(t){return{warning:1==t,error:2==t}},showTimeLabel:function(t){var e="label-primary";if(null==t)return e;var n=u()(u()(t).format("YYYY-MM-DD")).diff(u()().format("YYYY-MM-DD"),"days");return n<0?e="label-danger":0==n?e="label-warning":n>7&&(e="label-normal"),e},showTaskTime:function(t,e){return Object(C["a"])(t,e)},taskDetail:function(t,e){this.$router.push("".concat(this.$route.path,"/detail/").concat(t,"?from=").concat(e))},stageSort:function(t){var e=this.getPreAndNextCode(t);Object($["f"])(e[0],e[1],this.code)},getPreAndNextCode:function(t){for(var e=t.clone.getAttribute("id"),n=[],a="",o=0,r=t.to.children.length;o<r;o++)n.push(t.to.children[o].getAttribute("id"));var i=n.findIndex((function(t){return t===e}));return i<n.length&&(a=n[i+1]),[e,a]},taskSort:function(t){var e=this.getPreAndNextCode(t);console.log(e);var n=t.to.parentNode.parentNode.parentNode.getAttribute("id");Object(w["x"])({preTaskCode:e[0],nextTaskCode:e[1],toStageCode:n})},handleResize:function(t,e){t.barSize&&(this.taskStages[e].fixedCreator=!0)},visibleDraw:function(t){"member"==t?(this.configDraw.visible=!1,this.taskSearch.visible=!1,this.inviteMemberDraw.visible=!this.inviteMemberDraw.visible):"taskSearch"==t?(this.taskSearch.visible=!this.taskSearch.visible,this.configDraw.visible=!1,this.inviteMemberDraw.visible=!1):(this.inviteMemberDraw.visible=!1,this.taskSearch.visible=!1,this.configDraw.visible=!this.configDraw.visible)},removeMember:function(t,e){var n=this;this.$confirm({title:"您确定要将「".concat(t.name,"」从项目中移除吗?"),content:"移除后该成员将不能查看任何关于该项目的信息",okText:"移除",okType:"danger",cancelText:"再想想",onOk:function(){return Object(W["e"])(t.code,n.code).then((function(t){Object(k["a"])(t)&&(n.projectMembers.splice(e,1),Object(Y["b"])({title:"移除成功"},"notice","success"))})),Promise.resolve()}})},inviteMember:function(t){Object(W["c"])(t.memberCode,this.projectCode).then((function(e){var n=Object(k["a"])(e);n&&(t.joined=!0)}))},searchInviteMember:c.a.debounce((function(){var t=this;if(this.inviteMemberDraw.keyword||(this.projectMembers=JSON.parse(JSON.stringify(this.projectMembersCopy))),this.inviteMemberDraw.keyword.length<=1)return!1;this.searching=!0,this.projectMembers=this.projectMembers.filter((function(e){return-1!=e.name.indexOf(t.inviteMemberDraw.keyword)}))}),500),updateProject:function(t){this.project=t},collectProject:function(){var t=this,e=this.project.collected?"cancel":"collect";Object(V["a"])(this.project.code,e).then((function(e){Object(k["a"])(e)&&(t.project.collected=!t.project.collected)}))},handleChange:function(t){if("uploading"===t.file.status)return Object(Y["b"])("正在导入,请稍后...","message","loading",0),void(this.uploadLoading=!0);if("done"===t.file.status&&(console.log(t),this.uploadLoading=!1,Object(k["a"])(t.file.response,!0))){var e=t.file.response.data;e?Object(Y["b"])("成功导入".concat(e,"个任务"),"message","success"):Object(Y["b"])("没有成功导入任何任务","message","warning"),this.getTaskStages(!1)}},beforeUpload:function(t){var e=t.size/1024/1024<2;return e||this.$message.error("文件不能超过2MB!"),e},getStatusColor:function(t){var e=this.taskStatusList.find((function(e){return e.id==t}));return e?e.color:""}}},G=q,J=(n("2b2a"),Object(S["a"])(G,a,o,!1,null,null,null));e["default"]=J.exports},dd44:function(t,e,n){},e507:function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return r})),n.d(e,"g",(function(){return i})),n.d(e,"f",(function(){return s})),n.d(e,"e",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return u}));var a=n("22b6");function o(t){return a["a"].post("project/task_stages",t)}function r(t){return a["a"].post("project/task_stages/_getAll",t)}function i(t){return a["a"].post("project/task_stages/tasks",t)}function s(t,e,n){return a["a"].post("project/task_stages/sort",{preCode:t,nextCode:e,projectCode:n})}function c(t){return a["a"].post("project/task_stages/save",t)}function l(t){return a["a"].post("project/task_stages/edit",t)}function u(t){return a["a"].post("project/task_stages/delete",{code:t})}},f868:function(t,e,n){},f8c7:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.currentProject?n("div",{attrs:{id:"project-select"}},[n("a-dropdown",{staticClass:"action-item",attrs:{trigger:["click"],placement:"bottomCenter"},model:{value:t.visibleMenu,callback:function(e){t.visibleMenu=e},expression:"visibleMenu"}},[n("a-tooltip",{attrs:{mouseEnterDelay:.3,title:t.currentProject.name}},[n("a",{staticClass:"project-select",staticStyle:{color:"#333"}},[n("span",[t._v(t._s(t.currentProject.name))]),n("span",{staticClass:"m-l-xs"},[n("a-icon",{attrs:{type:"down"}})],1)])]),n("div",{staticClass:"middle-menu member-menu project-select-menu",attrs:{slot:"overlay"},slot:"overlay"},[n("div",{staticClass:"search-content"},[n("a-input",{attrs:{size:"large",placeholder:"搜索"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[n("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1)],1),n("div",{staticClass:"member-list"},[n("vue-scroll",[n("div",{staticClass:"list-group"},[n("a-list",{staticClass:"list-content",attrs:{itemLayout:"horizontal",dataSource:t.projectList,locale:{emptyText:t.keyword&&t.keyword.length>1?"没有找到该项目":""}},scopedSlots:t._u([{key:"renderItem",fn:function(e){return n("a-list-item",{staticClass:"member-list-item",nativeOn:{click:function(n){return t.changeProject(e.code)}}},[n("span",{attrs:{slot:"actions"},slot:"actions"},[n("a-icon",{directives:[{name:"show",rawName:"v-show",value:t.showCheck(e.code),expression:"showCheck(item.code)"}],attrs:{type:"check"}})],1),n("a-list-item-meta",[n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))]),n("a-avatar",{attrs:{slot:"avatar",icon:"user",src:e.cover},slot:"avatar"})],1)],1)}}],null,!1,3141279394)})],1)])],1)])],1)],1):t._e()},o=[],r=(n("5ab2"),n("6d57"),n("e10e"),n("cc57"),n("c0c3"),n("28f8")),i=n("a14a"),s=n.n(i),c=n("9f3a"),l=n("24d2"),u=n("1b80");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={name:"ProjectSelect",props:{code:{type:[String],default:function(){return""}}},data:function(){return{visibleMenu:!1,keyword:"",loading:!1,currentProject:null,projectList:[],projectListCopy:[],projectTotal:0}},mixins:[u["a"]],computed:f({},Object(c["c"])({currentOrganization:function(t){return t.currentOrganization},organizationList:function(t){return t.organizationList}})),watch:{code:function(){this.init()},keyword:function(){this.search()}},created:function(){this.init()},methods:{init:function(){this.getProject(),this.getProjectList(!0)},getProject:function(){var t=this;Object(l["h"])(this.code).then((function(e){t.currentProject=e.data}))},getProjectList:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.loading=e,this.requestData.pageSize=50,this.requestData.archive=-1,Object(l["l"])(this.requestData).then((function(e){t.projectList=e.data.list,t.projectListCopy=e.data.list,t.projectTotal=e.data.total,t.loading=!1}))},changeProject:function(t){this.visibleMenu=!1,this.$router.push("/project/space/task/"+t)},showCheck:function(t){if(t==this.code)return!0},search:s.a.debounce((function(){var t=this;if(this.keyword=this.keyword.trim(),this.keyword||(this.projectList=JSON.parse(JSON.stringify(this.projectListCopy))),this.keyword.length<=1)return!1;this.projectList=this.projectList.filter((function(e){return-1!=e.name.indexOf(t.keyword)}))}),500),getPopup:function(){return document.getElementById("project-select")}}},h=p,m=(n("7934"),n("c701")),v=Object(m["a"])(h,a,o,!1,null,null,null);e["a"]=v.exports},f9ef:function(t,e,n){"use strict";n("dd44")}}]);
|