12345678 |
- webpackJsonp([54],{ELYc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("mvHQ"),i=n.n(o),r=(n("RIEG"),n("zjGD")),a=(n("cZ0s"),n("fIxc")),l=n("7+uW"),s=n("vLgD");
- /**!
- * Sortable 1.14.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */
- function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function d(t){"@babel/helpers - typeof";return(d="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})(t)}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(){return(f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function p(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n,o,i={},r=Object.keys(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function g(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var v=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=g(/Edge/i),b=g(/firefox/i),y=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),w=g(/iP(ad|od|hone)/i),_=g(/chrome/i)&&g(/android/i),E={capture:!1,passive:!1};function S(t,e,n){t.addEventListener(e,n,!v&&E)}function D(t,e,n){t.removeEventListener(e,n,!v&&E)}function C(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(t){return!1}return!1}}function T(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function x(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&C(t,e):C(t,e))||o&&t===n)return t;if(t===n)break}while(t=T(t))}return null}var O,k=/\s+/g;function I(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(k," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(k," ")}}function N(t,e,n){var o=t&&t.style;if(o){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 o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function M(t,e){var n="";if("string"==typeof t)n=t;else do{var o=N(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function P(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function A(){var t=document.scrollingElement;return t||document.documentElement}function X(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,d;if(t!==window&&t.parentNode&&t!==A()?(a=(r=t.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,u=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!v))do{if(i&&i.getBoundingClientRect&&("none"!==N(i,"transform")||n&&"static"!==N(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(N(i,"border-top-width")),l-=h.left+parseInt(N(i,"border-left-width")),s=a+r.height,c=l+r.width;break}}while(i=i.parentNode);if(o&&t!==window){var f=M(i||t),p=f&&f.a,g=f&&f.d;f&&(s=(a/=g)+(u/=g),c=(l/=p)+(d/=p))}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function Y(t,e,n){for(var o=j(t,!0),i=X(t)[e];o;){var r=X(o)[n];if(!("top"===n||"left"===n?i>=r:i<=r))return o;if(o===A())break;o=j(o,!1)}return!1}function R(t,e,n,o){for(var i=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==$t.ghost&&(o||a[r]!==$t.dragged)&&x(a[r],n.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function L(t,e){for(var n=t.lastElementChild;n&&(n===$t.ghost||"none"===N(n,"display")||e&&!C(n,e));)n=n.previousElementSibling;return n||null}function B(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===$t.clone||e&&!C(t,e)||n++;return n}function F(t){var e=0,n=0,o=A();if(t)do{var i=M(t),r=i.a,a=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function j(t,e){if(!t||!t.getBoundingClientRect)return A();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=N(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return A();if(o||e)return n;o=!0}}}while(n=n.parentNode);return A()}function H(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 W(t,e){return function(){if(!O){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),O=setTimeout(function(){O=void 0},e)}}}function z(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function $(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)}var G="Sortable"+(new Date).getTime();function U(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==N(t,"display")&&t!==$t.ghost){e.push({target:t,rect:X(t)});var n=u({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=M(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var i=!1,r=0;e.forEach(function(t){var e=0,n=t.target,a=n.fromRect,l=X(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=M(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&H(s,l)&&!H(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=function(t,e,n,o){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))*o.animation}(u,s,c,o.options)),H(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(i=!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),i?t=setTimeout(function(){"function"==typeof n&&n()},r):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){N(t,"transition",""),N(t,"transform","");var i=M(this.el),r=i&&i.a,a=i&&i.d,l=(e.left-n.left)/(r||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,N(t,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),N(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),N(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){N(t,"transition",""),N(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},o)}}}}var J=[],V={initializeByDefault:!0},Z={mount:function(t){for(var e in V)!V.hasOwnProperty(e)||e in t||(t[e]=V[e]);J.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),J.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=t+"Global";J.forEach(function(o){e[o.pluginName]&&(e[o.pluginName][i]&&e[o.pluginName][i](u({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](u({sortable:e},n)))})},initializePlugins:function(t,e,n,o){for(var i in J.forEach(function(o){var i=o.pluginName;if(t.options[i]||o.initializeByDefault){var r=new o(t,e,t.options);r.sortable=t,r.options=t.options,t[i]=r,f(n,r.defaults)}}),t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);void 0!==r&&(t.options[i]=r)}},getEventProperties:function(t,e){var n={};return J.forEach(function(o){"function"==typeof o.eventProperties&&f(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return J.forEach(function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(o=i.optionListeners[e].call(t[i.pluginName],n))}),o}};function q(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,f=t.originalEvent,p=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[G]){var b,y=e.options,w="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||v||m?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=a||n,b.from=l||n,b.item=i||n,b.clone=r,b.oldIndex=s,b.newIndex=c,b.oldDraggableIndex=d,b.newDraggableIndex=h,b.originalEvent=f,b.pullMode=p?p.lastPutMode:void 0;var _=u(u({},g),Z.getEventProperties(o,e));for(var E in _)b[E]=_[E];n&&n.dispatchEvent(b),y[w]&&y[w].call(e,b)}}var Q=["evt"],K=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=p(n,Q);Z.pluginEvent.bind($t)(t,e,u({dragEl:et,parentEl:nt,ghostEl:ot,rootEl:it,nextEl:rt,lastDownEl:at,cloneEl:lt,cloneHidden:st,dragStarted:_t,putSortable:pt,activeSortable:$t.active,originalEvent:o,oldIndex:ct,oldDraggableIndex:dt,newIndex:ut,newDraggableIndex:ht,hideGhostForTarget:jt,unhideGhostForTarget:Ht,cloneNowHidden:function(){st=!0},cloneNowShown:function(){st=!1},dispatchSortableEvent:function(t){tt({sortable:e,name:t,originalEvent:o})}},i))};function tt(t){q(u({putSortable:pt,cloneEl:lt,targetEl:et,rootEl:it,oldIndex:ct,oldDraggableIndex:dt,newIndex:ut,newDraggableIndex:ht},t))}var et,nt,ot,it,rt,at,lt,st,ct,ut,dt,ht,ft,pt,gt,vt,mt,bt,yt,wt,_t,Et,St,Dt,Ct,Tt=!1,xt=!1,Ot=[],kt=!1,It=!1,Nt=[],Mt=!1,Pt=[],At="undefined"!=typeof document,Xt=w,Yt=m||v?"cssFloat":"float",Rt=At&&!_&&!w&&"draggable"in document.createElement("div"),Lt=function(){if(At){if(v)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Bt=function(t,e){var n=N(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=R(t,0,e),r=R(t,1,e),a=i&&N(i),l=r&&N(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+X(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+X(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(i&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Yt]||r&&"none"===n[Yt]&&s+c>o)?"vertical":"horizontal"},Ft=function(t){function e(t,n){return function(o,i,r,a){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,i,r,a),n)(o,i,r,a);var s=(n?o:i).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==d(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},jt=function(){!Lt&&ot&&N(ot,"display","none")},Ht=function(){!Lt&&ot&&N(ot,"display","")};At&&document.addEventListener("click",function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1},!0);var Wt=function(t){if(et){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,r=t.clientY,Ot.some(function(t){var e=t[G].options.emptyInsertThreshold;if(e&&!L(t)){var n=X(t),o=i>=n.left-e&&i<=n.right+e,l=r>=n.top-e&&r<=n.bottom+e;return o&&l?a=t:void 0}}),a);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[G]._onDragOver(n)}}var i,r,a},zt=function(t){et&&et.parentNode[G]._isOutsideThisEl(t.target)};function $t(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=f({},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!==$t.supportPointer&&"PointerEvent"in window&&!y,emptyInsertThreshold:5};for(var o in Z.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var i in Ft(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Rt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?S(t,"pointerdown",this._onTapStart):(S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Ot.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),f(this,U())}function Gt(t,e,n,o,i,r,a,l){var s,c,u=t[G],d=u.options.onMove;return!window.CustomEvent||v||m?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=r||X(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function Ut(t){t.draggable=!1}function Jt(){Mt=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function Zt(t){return setTimeout(t,0)}function qt(t){return clearTimeout(t)}$t.prototype={constructor:$t,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Et=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,et):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,i=o.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(function(t){Pt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Pt.push(o)}}(n),!et&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!y||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=x(l,o.draggable,n,!1))&&l.animated||at===l)){if(ct=B(l),dt=B(l,o.draggable),"function"==typeof c){if(c.call(this,t,l,this))return tt({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),K("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some(function(o){if(o=x(s,o.trim(),n,!1))return tt({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),K("filter",e,{evt:t}),!0})))return void(i&&t.cancelable&&t.preventDefault());o.handle&&!x(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,i=this,r=i.el,a=i.options,l=r.ownerDocument;if(n&&!et&&n.parentNode===r){var s=X(n);if(it=r,nt=(et=n).parentNode,rt=et.nextSibling,at=n,ft=a.group,$t.dragged=et,gt={target:et,clientX:(e||t).clientX,clientY:(e||t).clientY},yt=gt.clientX-s.left,wt=gt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,et.style["will-change"]="all",o=function(){K("delayEnded",i,{evt:t}),$t.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!b&&i.nativeDraggable&&(et.draggable=!0),i._triggerDragStart(t,e),tt({sortable:i,name:"choose",originalEvent:t}),I(et,a.chosenClass,!0))},a.ignore.split(",").forEach(function(t){P(et,t.trim(),Ut)}),S(l,"dragover",Wt),S(l,"mousemove",Wt),S(l,"touchmove",Wt),S(l,"mouseup",i._onDrop),S(l,"touchend",i._onDrop),S(l,"touchcancel",i._onDrop),b&&this.nativeDraggable&&(this.options.touchStartThreshold=4,et.draggable=!0),K("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(m||v))o();else{if($t.eventCanceled)return void this._onDrop();S(l,"mouseup",i._disableDelayedDrag),S(l,"touchend",i._disableDelayedDrag),S(l,"touchcancel",i._disableDelayedDrag),S(l,"mousemove",i._delayedDragTouchMoveHandler),S(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&S(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,a.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(){et&&Ut(et),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;D(t,"mouseup",this._disableDelayedDrag),D(t,"touchend",this._disableDelayedDrag),D(t,"touchcancel",this._disableDelayedDrag),D(t,"mousemove",this._delayedDragTouchMoveHandler),D(t,"touchmove",this._delayedDragTouchMoveHandler),D(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?S(document,"pointermove",this._onTouchMove):S(document,e?"touchmove":"mousemove",this._onTouchMove):(S(et,"dragend",this),S(it,"dragstart",this._onDragStart));try{document.selection?Zt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Tt=!1,it&&et){K("dragStarted",this,{evt:e}),this.nativeDraggable&&S(document,"dragover",zt);var n=this.options;!t&&I(et,n.dragClass,!1),I(et,n.ghostClass,!0),$t.active=this,t&&this._appendGhost(),tt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(vt){this._lastX=vt.clientX,this._lastY=vt.clientY,jt();for(var t=document.elementFromPoint(vt.clientX,vt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(vt.clientX,vt.clientY))!==e;)e=t;if(et.parentNode[G]._isOutsideThisEl(t),e)do{if(e[G]){if(e[G]._onDragOver({clientX:vt.clientX,clientY:vt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ht()}},_onTouchMove:function(t){if(gt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=ot&&M(ot,!0),a=ot&&r&&r.a,l=ot&&r&&r.d,s=Xt&&Ct&&F(Ct),c=(i.clientX-gt.clientX+o.x)/(a||1)+(s?s[0]-Nt[0]:0)/(a||1),u=(i.clientY-gt.clientY+o.y)/(l||1)+(s?s[1]-Nt[1]:0)/(l||1);if(!$t.active&&!Tt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(ot){r?(r.e+=c-(mt||0),r.f+=u-(bt||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");N(ot,"webkitTransform",d),N(ot,"mozTransform",d),N(ot,"msTransform",d),N(ot,"transform",d),mt=c,bt=u,vt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ot){var t=this.options.fallbackOnBody?document.body:it,e=X(et,!0,Xt,!0,t),n=this.options;if(Xt){for(Ct=t;"static"===N(Ct,"position")&&"none"===N(Ct,"transform")&&Ct!==document;)Ct=Ct.parentNode;Ct!==document.body&&Ct!==document.documentElement?(Ct===document&&(Ct=A()),e.top+=Ct.scrollTop,e.left+=Ct.scrollLeft):Ct=A(),Nt=F(Ct)}I(ot=et.cloneNode(!0),n.ghostClass,!1),I(ot,n.fallbackClass,!0),I(ot,n.dragClass,!0),N(ot,"transition",""),N(ot,"transform",""),N(ot,"box-sizing","border-box"),N(ot,"margin",0),N(ot,"top",e.top),N(ot,"left",e.left),N(ot,"width",e.width),N(ot,"height",e.height),N(ot,"opacity","0.8"),N(ot,"position",Xt?"absolute":"fixed"),N(ot,"zIndex","100000"),N(ot,"pointerEvents","none"),$t.ghost=ot,t.appendChild(ot),N(ot,"transform-origin",yt/parseInt(ot.style.width)*100+"% "+wt/parseInt(ot.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;K("dragStart",this,{evt:t}),$t.eventCanceled?this._onDrop():(K("setupClone",this),$t.eventCanceled||((lt=$(et)).draggable=!1,lt.style["will-change"]="",this._hideClone(),I(lt,this.options.chosenClass,!1),$t.clone=lt),n.cloneId=Zt(function(){K("clone",n),$t.eventCanceled||(n.options.removeCloneOnHide||it.insertBefore(lt,et),n._hideClone(),tt({sortable:n,name:"clone"}))}),!e&&I(et,i.dragClass,!0),e?(xt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(D(document,"mouseup",n._onDrop),D(document,"touchend",n._onDrop),D(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,et)),S(document,"drop",n),N(et,"transform","translateZ(0)")),Tt=!0,n._dragStartId=Zt(n._dragStarted.bind(n,e,t)),S(document,"selectstart",n),_t=!0,y&&N(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,i,r=this.el,a=t.target,l=this.options,s=l.group,c=$t.active,d=ft===s,h=l.sort,f=pt||c,p=this,g=!1;if(!Mt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=x(a,l.draggable,r,!0),P("dragOver"),$t.eventCanceled)return g;if(et.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return F(!1);if(xt=!1,c&&!l.disabled&&(d?h||(o=nt!==it):pt===this||(this.lastPutMode=ft.checkPull(this,c,et,t))&&s.checkPut(this,c,et,t))){if(i="vertical"===this._getDirection(t,a),e=X(et),P("dragOverValid"),$t.eventCanceled)return g;if(o)return nt=it,A(),this._hideClone(),P("revert"),$t.eventCanceled||(rt?it.insertBefore(et,rt):it.appendChild(et)),F(!0);var v=L(r,l.draggable);if(!v||function(t,e,n){var o=X(L(n.el,n.options.draggable));return e?t.clientX>o.right+10||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+10}(t,i,this)&&!v.animated){if(v===et)return F(!1);if(v&&r===t.target&&(a=v),a&&(n=X(a)),!1!==Gt(it,r,et,e,a,n,t,!!a))return A(),r.appendChild(et),nt=r,j(),F(!0)}else if(v&&function(t,e,n){var o=X(R(n.el,0,n.options,!0));return e?t.clientX<o.left-10||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-10||t.clientY<o.bottom&&t.clientX<o.left}(t,i,this)){var m=R(r,0,l,!0);if(m===et)return F(!1);if(n=X(a=m),!1!==Gt(it,r,et,e,a,n,t,!1))return A(),r.insertBefore(et,m),nt=r,j(),F(!0)}else if(a.parentNode===r){n=X(a);var b,y,w,_=et.parentNode!==r,E=!function(t,e,n){var o=n?t.left:t.top,i=n?t.right:t.bottom,r=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||i===l||o+r/2===a+s/2}(et.animated&&et.toRect||e,a.animated&&a.toRect||n,i),S=i?"top":"left",D=Y(a,"top","top")||Y(et,"top","top"),C=D?D.scrollTop:void 0;if(Et!==a&&(y=n[S],kt=!1,It=!E&&l.invertSwap||_),0!==(b=function(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&Dt<c*i){if(!kt&&(1===St?s>u+c*r/2:s<d-c*r/2)&&(kt=!0),kt)h=!0;else if(1===St?s<u+Dt:s>d-Dt)return-St}else if(s>u+c*(1-i)/2&&s<d-c*(1-i)/2)return function(t){return B(et)<B(t)?1:-1}(e);if((h=h||a)&&(s<u+c*r/2||s>d-c*r/2))return s>u+c/2?1:-1;return 0}(t,a,n,i,E?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,It,Et===a))){var T=B(et);do{T-=b,w=nt.children[T]}while(w&&("none"===N(w,"display")||w===ot))}if(0===b||w===a)return F(!1);Et=a,St=b;var O=a.nextElementSibling,k=!1,M=Gt(it,r,et,e,a,n,t,k=1===b);if(!1!==M)return 1!==M&&-1!==M||(k=1===M),Mt=!0,setTimeout(Jt,30),A(),k&&!O?r.appendChild(et):a.parentNode.insertBefore(et,k?O:a),D&&z(D,0,C-D.scrollTop),nt=et.parentNode,void 0===y||It||(Dt=Math.abs(y-X(a)[S])),j(),F(!0)}if(r.contains(et))return F(!1)}return!1}function P(l,s){K(l,p,u({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:h,fromSortable:f,target:a,completed:F,onMove:function(n,o){return Gt(it,r,et,e,n,X(n),t,o)},changed:j},s))}function A(){P("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function F(e){return P("dragOverCompleted",{insertion:e}),e&&(d?c._hideClone():c._showClone(p),p!==f&&(I(et,pt?pt.options.ghostClass:c.options.ghostClass,!1),I(et,l.ghostClass,!0)),pt!==p&&p!==$t.active?pt=p:p===$t.active&&pt&&(pt=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll(function(){P("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===et&&!et.animated||a===r&&!a.animated)&&(Et=null),l.dragoverBubble||t.rootEl||a===document||(et.parentNode[G]._isOutsideThisEl(t.target),!e&&Wt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function j(){ut=B(et),ht=B(et,l.draggable),tt({sortable:p,name:"change",toEl:r,newIndex:ut,newDraggableIndex:ht,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){D(document,"mousemove",this._onTouchMove),D(document,"touchmove",this._onTouchMove),D(document,"pointermove",this._onTouchMove),D(document,"dragover",Wt),D(document,"mousemove",Wt),D(document,"touchmove",Wt)},_offUpEvents:function(){var t=this.el.ownerDocument;D(t,"mouseup",this._onDrop),D(t,"touchend",this._onDrop),D(t,"pointerup",this._onDrop),D(t,"touchcancel",this._onDrop),D(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ut=B(et),ht=B(et,n.draggable),K("drop",this,{evt:t}),nt=et&&et.parentNode,ut=B(et),ht=B(et,n.draggable),$t.eventCanceled?this._nulling():(Tt=!1,It=!1,kt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qt(this.cloneId),qt(this._dragStartId),this.nativeDraggable&&(D(document,"drop",this),D(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&N(document.body,"user-select",""),N(et,"transform",""),t&&(_t&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ot&&ot.parentNode&&ot.parentNode.removeChild(ot),(it===nt||pt&&"clone"!==pt.lastPutMode)&<&<.parentNode&<.parentNode.removeChild(lt),et&&(this.nativeDraggable&&D(et,"dragend",this),Ut(et),et.style["will-change"]="",_t&&!Tt&&I(et,pt?pt.options.ghostClass:this.options.ghostClass,!1),I(et,this.options.chosenClass,!1),tt({sortable:this,name:"unchoose",toEl:nt,newIndex:null,newDraggableIndex:null,originalEvent:t}),it!==nt?(ut>=0&&(tt({rootEl:nt,name:"add",toEl:nt,fromEl:it,originalEvent:t}),tt({sortable:this,name:"remove",toEl:nt,originalEvent:t}),tt({rootEl:nt,name:"sort",toEl:nt,fromEl:it,originalEvent:t}),tt({sortable:this,name:"sort",toEl:nt,originalEvent:t})),pt&&pt.save()):ut!==ct&&ut>=0&&(tt({sortable:this,name:"update",toEl:nt,originalEvent:t}),tt({sortable:this,name:"sort",toEl:nt,originalEvent:t})),$t.active&&(null!=ut&&-1!==ut||(ut=ct,ht=dt),tt({sortable:this,name:"end",toEl:nt,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){K("nulling",this),it=et=nt=ot=rt=lt=at=st=gt=vt=_t=ut=ht=ct=dt=Et=St=pt=ft=$t.dragged=$t.ghost=$t.clone=$t.active=null,Pt.forEach(function(t){t.checked=!0}),Pt.length=mt=bt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":et&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)x(t=n[o],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||Vt(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(t,e){var i=o.children[e];x(i,this.options.draggable,o,!1)&&(n[t]=i)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return x(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=Z.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Ft(n)},destroy:function(){K("destroy",this);var t=this.el;t[G]=null,D(t,"mousedown",this._onTapStart),D(t,"touchstart",this._onTapStart),D(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(D(t,"dragover",this),D(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ot.splice(Ot.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!st){if(K("hideClone",this),$t.eventCanceled)return;N(lt,"display","none"),this.options.removeCloneOnHide&<.parentNode&<.parentNode.removeChild(lt),st=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(st){if(K("showClone",this),$t.eventCanceled)return;et.parentNode!=it||this.options.group.revertClone?rt?it.insertBefore(lt,rt):it.appendChild(lt):it.insertBefore(lt,et),this.options.group.revertClone&&this.animate(et,lt),N(lt,"display",""),st=!1}}else this._hideClone()}},At&&S(document,"touchmove",function(t){($t.active||Tt)&&t.cancelable&&t.preventDefault()}),$t.utils={on:S,off:D,css:N,find:P,is:function(t,e){return!!x(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:W,closest:x,toggleClass:I,clone:$,index:B,nextTick:Zt,cancelNextTick:qt,detectDirection:Bt,getChild:R},$t.get=function(t){return t[G]},$t.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&&($t.utils=u(u({},$t.utils),t.utils)),Z.mount(t)})},$t.create=function(t,e){return new $t(t,e)},$t.version="1.14.0";var Qt,Kt,te,ee,ne,oe,ie=[],re=!1;function ae(){ie.forEach(function(t){clearInterval(t.pid)}),ie=[]}function le(){clearInterval(oe)}var se=W(function(t,e,n,o){if(e.scroll){var i,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=A(),u=!1;Kt!==n&&(Kt=n,ae(),Qt=e.scroll,i=e.scrollFn,!0===Qt&&(Qt=j(n,!0)));var d=0,h=Qt;do{var f=h,p=X(f),g=p.top,v=p.bottom,m=p.left,b=p.right,y=p.width,w=p.height,_=void 0,E=void 0,S=f.scrollWidth,D=f.scrollHeight,C=N(f),T=f.scrollLeft,x=f.scrollTop;f===c?(_=y<S&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),E=w<D&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(_=y<S&&("auto"===C.overflowX||"scroll"===C.overflowX),E=w<D&&("auto"===C.overflowY||"scroll"===C.overflowY));var O=_&&(Math.abs(b-r)<=l&&T+y<S)-(Math.abs(m-r)<=l&&!!T),k=E&&(Math.abs(v-a)<=l&&x+w<D)-(Math.abs(g-a)<=l&&!!x);if(!ie[d])for(var I=0;I<=d;I++)ie[I]||(ie[I]={});ie[d].vx==O&&ie[d].vy==k&&ie[d].el===f||(ie[d].el=f,ie[d].vx=O,ie[d].vy=k,clearInterval(ie[d].pid),0==O&&0==k||(u=!0,ie[d].pid=setInterval(function(){o&&0===this.layer&&$t.active._onTouchMove(ne);var e=ie[this.layer].vy?ie[this.layer].vy*s:0,n=ie[this.layer].vx?ie[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call($t.dragged.parentNode[G],n,e,t,ne,ie[this.layer].el)||z(ie[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=j(h,!1)));re=u}},30),ce=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||i;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function ue(){}function de(){}ue.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 o=R(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:ce},f(ue,{pluginName:"revertOnSpill"}),de.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:ce},f(de,{pluginName:"removeOnSpill"});$t.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,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?S(document,"dragover",this._handleAutoScroll):this.options.supportPointer?S(document,"pointermove",this._handleFallbackAutoScroll):e.touches?S(document,"touchmove",this._handleFallbackAutoScroll):S(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?D(document,"dragover",this._handleAutoScroll):(D(document,"pointermove",this._handleFallbackAutoScroll),D(document,"touchmove",this._handleFallbackAutoScroll),D(document,"mousemove",this._handleFallbackAutoScroll)),le(),ae(),clearTimeout(O),O=void 0},nulling:function(){ne=Kt=Qt=re=oe=te=ee=null,ie.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(o,i);if(ne=t,e||this.options.forceAutoScrollFallback||m||v||y){se(t,this.options,r,e);var a=j(r,!0);!re||oe&&o===te&&i===ee||(oe&&le(),oe=setInterval(function(){var r=j(document.elementFromPoint(o,i),!0);r!==a&&(a=r,ae()),se(t,n.options,r,e)},10),te=o,ee=i)}else{if(!this.options.bubbleScroll||j(r,!0)===A())return void ae();se(t,this.options,j(r,!1),!1)}}},f(t,{pluginName:"scroll",initializeByDefault:!0})}),$t.mount(de,ue);var he=$t;l.a.use(a.a),l.a.use(r.a);var fe={name:"add_common_menu",data:function(){return{app_list:[],menuList:[],isDisabled:!1}},watch:{menuList:function(t){t.length>=10?this.isDisabled=!0:this.isDisabled=!1}},methods:{returnMenul:function(t){return i()(t)},deleteEl:function(t){if(1==this.menuList.length)return this.$toast("常用菜单最少保留一个"),!1;this.itemChange(!1,t),this.app_list.forEach(function(e){e.child.length>0&&e.child.forEach(function(e){e.id==t.id&&(e.checked=!1)})})},itemChange:function(t,e){if(t)this.menuList.push(e);else for(var n=this.menuList,o=0;o<n.length;o++)n[o].id==e.id&&(n.splice(o,1),o--)},rowDrop:function(){var t=document.getElementById("items");he.create(t,{delay:500})},getIs:function(t){var e=!1;return(window.plus?JSON.parse(plus.storage.getItem("menuCommon")):JSON.parse(localStorage.getItem("menuCommon"))).forEach(function(n){n==t&&(e=!0)}),e},select:function(t){if(t.checked){if(1==this.menuList.length)return this.$toast("常用菜单最少保留一个"),!1;t.checked=!1}else{if(this.menuList.length>=10)return this.$toast("常用菜单最多10个"),!1;t.checked=!0}this.$forceUpdate()},save:function(){var t=this,e=[],n=[],o=document.getElementsByClassName("li-item");Array.prototype.forEach.call(o,function(t){var o=JSON.parse(t.dataset.item);e.push(o.code_id),n.push(o)});var r={id:this.$userInfo().id,menu_common:e};Object(s.a)("POST","/api/employee/update",r,"v2").then(function(o){1==o.data.code&&(window.plus?plus.storage.setItem("menuCommon",i()(e)):localStorage.setItem("menuCommon",i()(e)),t.$keep_alive_update("update_common_menu_list",n),t.$route_back())})}},mounted:function(){var t=this,e=window.plus?JSON.parse(plus.storage.getItem("menu")):JSON.parse(localStorage.getItem("menu")),n=[];e.forEach(function(e){e.child.length>0&&e.child.forEach(function(e){t.getIs(e.code_id)?(e.checked=!0,n.push(e)):e.checked=!1})}),this.app_list=e,this.menuList=n,this.$nextTick(function(){t.menuList.length>0&&t.rowDrop()})}},pe={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("van-nav-bar",{attrs:{title:"添加常用","left-text":"返回","right-text":"保存","left-arrow":""},on:{"click-left":t.$route_back,"click-right":t.save}}),t._v(" "),n("div",{staticClass:"menuAll"},[t._m(0),t._v(" "),n("div",{staticClass:"flex-box-ce flex-d-wrap",attrs:{id:"items"}},t._l(t.menuList,function(e,o){return n("div",{key:o,staticClass:"li-item flex-box-v flex-center-center",staticStyle:{width:"25%",position:"relative","margin-bottom":"0.2rem"},attrs:{"data-item":t.returnMenul(e)},on:{click:function(n){return t.deleteEl(e)}}},[n("img",{staticStyle:{width:"0.96rem",height:"0.96rem","border-radius":"0.42rem"},attrs:{src:e.icon}}),t._v(" "),n("span",{staticClass:"van-grid-item__text"},[t._v(t._s(e.code))]),t._v(" "),n("van-icon",{staticClass:"red iconx",attrs:{name:"clear"}})],1)}),0)]),t._v(" "),n("div",{staticClass:"body_com"},[t._l(t.app_list,function(e,o){return n("van-cell-group",{key:o},[n("div",{staticClass:"tip",attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.remark))]),t._v(" "),t._l(e.child,function(e,o){return n("van-cell",{key:o,attrs:{title:e.code},on:{click:function(n){return t.select(e)}}},[n("template",{slot:"icon"},[e.checked?[n("van-checkbox",{on:{change:function(n){return t.itemChange(n,e)}},model:{value:e.checked,callback:function(n){t.$set(e,"checked",n)},expression:"app.checked"}})]:[n("van-checkbox",{attrs:{disabled:t.isDisabled},on:{change:function(n){return t.itemChange(n,e)}},model:{value:e.checked,callback:function(n){t.$set(e,"checked",n)},expression:"app.checked"}})],t._v(" "),n("img",{staticClass:"app-icon",attrs:{src:e.icon}})],2),t._v(" "),n("template",{slot:"label"},[t._v("\n "+t._s(e.remark)+"\n ")])],2)})],2)}),t._v(" "),n("div",{staticStyle:{height:"1rem"}})],2)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex-box-ce",staticStyle:{"font-size":"0.32rem",padding:"0.24rem 0.32rem"}},[e("div",{staticClass:"flex-1 cy"},[this._v("常用菜单")]),this._v(" "),e("div",{staticClass:"fontColorC",staticStyle:{"font-size":"0.24rem"}},[this._v("按住图标拖动调整顺序")])])}]};var ge=n("VU/8")(fe,pe,!1,function(t){n("fyZW")},"data-v-ece57d3c",null);e.default=ge.exports},fyZW:function(t,e){}});
|