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 * @author owenm * @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=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o=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<=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;r2&&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))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.clientXu+c*r/2:sd-Dt)return-St}else if(s>u+c*(1-i)/2&&sd-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=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=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){}});