webpackJsonp([146],{hWjI:function(t,e){},wQfN: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"); /**! * Sortable 1.15.1 * @author RubaXa * @author owenm * @license MIT */ function s(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 c(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 p(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var g=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),v=p(/Edge/i),m=p(/firefox/i),b=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),y=p(/iP(ad|od|hone)/i),w=p(/chrome/i)&&p(/android/i),_={capture:!1,passive:!1};function E(t,e,n){t.addEventListener(e,n,!g&&_)}function S(t,e,n){t.removeEventListener(e,n,!g&&_)}function D(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 C(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function T(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&D(t,e):D(t,e))||o&&t===n)return t;if(t===n)break}while(t=C(t))}return null}var x,O=/\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(O," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(O," ")}}function k(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 N(t,e){var n="";if("string"==typeof t)n=t;else do{var o=k(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 M(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=f(n,Z);q.pluginEvent.bind($t)(t,e,c({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(c({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=[],It=!1,kt=!1,Nt=[],Mt=!1,At=[],Pt="undefined"!=typeof document,Xt=y,Yt=v||g?"cssFloat":"float",Rt=Pt&&!w&&!y&&"draggable"in document.createElement("div"),Bt=function(){if(Pt){if(g)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Lt=function(t,e){var n=k(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&&k(i),l=r&&k(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+P(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+P(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"==u(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(){!Bt&&ot&&k(ot,"display","none")},Ht=function(){!Bt&&ot&&k(ot,"display","")};Pt&&!w&&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&&!B(t)){var n=P(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=h({},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 Lt(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&&!b,emptyInsertThreshold:5};for(var o in q.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?E(t,"pointerdown",this._onTapStart):(E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Ot.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),h(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||g||v?(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||P(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 qt(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){At.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&At.push(o)}}(n),!et&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!b||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=T(l,o.draggable,n,!1))&&l.animated||at===l)){if(ct=L(l),dt=L(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=T(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&&!T(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=P(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(),!m&&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){M(et,t.trim(),Ut)}),E(l,"dragover",Wt),E(l,"mousemove",Wt),E(l,"touchmove",Wt),E(l,"mouseup",i._onDrop),E(l,"touchend",i._onDrop),E(l,"touchcancel",i._onDrop),m&&this.nativeDraggable&&(this.options.touchStartThreshold=4,et.draggable=!0),K("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(v||g))o();else{if($t.eventCanceled)return void this._onDrop();E(l,"mouseup",i._disableDelayedDrag),E(l,"touchend",i._disableDelayedDrag),E(l,"touchcancel",i._disableDelayedDrag),E(l,"mousemove",i._delayedDragTouchMoveHandler),E(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&E(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;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?E(document,"pointermove",this._onTouchMove):E(document,e?"touchmove":"mousemove",this._onTouchMove):(E(et,"dragend",this),E(it,"dragstart",this._onDragStart));try{document.selection?qt(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&&E(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&&N(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))i.right+10||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>i.bottom+10||t.clientX>o.right&&t.clientY>o.top}(t,i,this)&&!v.animated){if(v===et)return j(!1);if(v&&r===t.target&&(a=v),a&&(n=P(a)),!1!==Gt(it,r,et,e,a,n,t,!!a))return F(),v&&v.nextSibling?r.insertBefore(et,v.nextSibling):r.appendChild(et),nt=r,H(),j(!0)}else if(v&&function(t,e,n){var o=P(R(n.el,0,n.options,!0)),i=X(n.el);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,kt,Et===a))){var x=L(et);do{x-=b,w=nt.children[x]}while(w&&("none"===k(w,"display")||w===ot))}if(0===b||w===a)return j(!1);Et=a,St=b;var O=a.nextElementSibling,N=!1,M=Gt(it,r,et,e,a,n,t,N=1===b);if(!1!==M)return 1!==M&&-1!==M||(N=1===M),Mt=!0,setTimeout(Jt,30),F(),N&&!O?r.appendChild(et):a.parentNode.insertBefore(et,N?O:a),D&&z(D,0,C-D.scrollTop),nt=et.parentNode,void 0===y||kt||(Dt=Math.abs(y-P(a)[S])),H(),j(!0)}if(r.contains(et))return j(!1)}return!1}function A(l,s){K(l,p,c({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:h,fromSortable:f,target:a,completed:j,onMove:function(n,o){return Gt(it,r,et,e,n,P(n),t,o)},changed:H},s))}function F(){A("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function j(e){return A("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(p),p!==f&&(I(et,pt?pt.options.ghostClass:u.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(){A("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 H(){ut=L(et),ht=L(et,l.draggable),tt({sortable:p,name:"change",toEl:r,newIndex:ut,newDraggableIndex:ht,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Wt),S(document,"mousemove",Wt),S(document,"touchmove",Wt)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ut=L(et),ht=L(et,n.draggable),K("drop",this,{evt:t}),nt=et&&et.parentNode,ut=L(et),ht=L(et,n.draggable),$t.eventCanceled?this._nulling():(Tt=!1,kt=!1,It=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qt(this.cloneId),Qt(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),b&&k(document.body,"user-select",""),k(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&&S(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,At.forEach(function(t){t.checked=!0}),At.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};this.$axiosUser("POST","/api/pro/employee/update",r,"v2").then(function(n){1==n.data.code&&(window.plus?plus.storage.setItem("menuCommon",i()(e)):localStorage.setItem("menuCommon",i()(e)),setTimeout(function(){t.$route_back()},500))})}},mounted:function(){var t=this,e=window.plus?JSON.parse(plus.storage.getItem("menu")):JSON.parse(localStorage.getItem("menu")),n=[];e.forEach(function(t){t.child.length>0&&t.child.forEach(function(t){n.push(t)})}),this.app_list=e,this.menuList=this.getIs(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)}},[n("img",{staticStyle:{width:"0.96rem",height:"0.96rem","border-radius":"0.42rem","-webkit-touch-callout":"none"},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"},on:{click:function(n){return t.deleteEl(e)}}})],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("hWjI")},"data-v-3b3530b9",null);e.default=ge.exports}});