gds-plus-design-vue 1.2.41 → 1.2.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/gd-initial.js CHANGED
@@ -24,7 +24,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
24
24
  * @license MIT
25
25
  */function ownKeys(i,t){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);t&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),s.push.apply(s,a)}return s}function _objectSpread2(i){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(s),!0).forEach(function(a){_defineProperty(i,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(s,a))})}return i}function _typeof(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(t){return typeof t}:_typeof=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(i)}function _defineProperty(i,t,s){return t in i?Object.defineProperty(i,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[t]=s,i}function _extends(){return _extends=Object.assign||function(i){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])}return i},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(i,t){if(i==null)return{};var s={},a=Object.keys(i),l,n;for(n=0;n<a.length;n++)l=a[n],!(t.indexOf(l)>=0)&&(s[l]=i[l]);return s}function _objectWithoutProperties(i,t){if(i==null)return{};var s=_objectWithoutPropertiesLoose(i,t),a,l;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);for(l=0;l<n.length;l++)a=n[l],!(t.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(i,a)||(s[a]=i[a]))}return s}var version$1="1.15.6";function userAgent(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(i,t,s){i.addEventListener(t,s,!IE11OrLess&&captureMode)}function off(i,t,s){i.removeEventListener(t,s,!IE11OrLess&&captureMode)}function matches(i,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch{return!1}return!1}}function getParentOrHost(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function closest(i,t,s,a){if(i){s=s||document;do{if(t!=null&&(t[0]===">"?i.parentNode===s&&matches(i,t):matches(i,t))||a&&i===s)return i;if(i===s)break}while(i=getParentOrHost(i))}return null}var R_SPACE=/\s+/g;function toggleClass(i,t,s){if(i&&t)if(i.classList)i.classList[s?"add":"remove"](t);else{var a=(" "+i.className+" ").replace(R_SPACE," ").replace(" "+t+" "," ");i.className=(a+(s?" "+t:"")).replace(R_SPACE," ")}}function css(i,t,s){var a=i&&i.style;if(a){if(s===void 0)return document.defaultView&&document.defaultView.getComputedStyle?s=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(s=i.currentStyle),t===void 0?s:s[t];!(t in a)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),a[t]=s+(typeof s=="string"?"":"px")}}function matrix(i,t){var s="";if(typeof i=="string")s=i;else do{var a=css(i,"transform");a&&a!=="none"&&(s=a+" "+s)}while(!t&&(i=i.parentNode));var l=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return l&&new l(s)}function find(i,t,s){if(i){var a=i.getElementsByTagName(t),l=0,n=a.length;if(s)for(;l<n;l++)s(a[l],l);return a}return[]}function getWindowScrollingElement(){var i=document.scrollingElement;return i||document.documentElement}function getRect(i,t,s,a,l){if(!(!i.getBoundingClientRect&&i!==window)){var n,o,r,d,u,p,h;if(i!==window&&i.parentNode&&i!==getWindowScrollingElement()?(n=i.getBoundingClientRect(),o=n.top,r=n.left,d=n.bottom,u=n.right,p=n.height,h=n.width):(o=0,r=0,d=window.innerHeight,u=window.innerWidth,p=window.innerHeight,h=window.innerWidth),(t||s)&&i!==window&&(l=l||i.parentNode,!IE11OrLess))do if(l&&l.getBoundingClientRect&&(css(l,"transform")!=="none"||s&&css(l,"position")!=="static")){var f=l.getBoundingClientRect();o-=f.top+parseInt(css(l,"border-top-width")),r-=f.left+parseInt(css(l,"border-left-width")),d=o+n.height,u=r+n.width;break}while(l=l.parentNode);if(a&&i!==window){var m=matrix(l||i),y=m&&m.a,g=m&&m.d;m&&(o/=g,r/=y,h/=y,p/=g,d=o+p,u=r+h)}return{top:o,left:r,bottom:d,right:u,width:h,height:p}}}function isScrolledPast(i,t,s){for(var a=getParentAutoScrollElement(i,!0),l=getRect(i)[t];a;){var n=getRect(a)[s],o=void 0;if(s==="top"||s==="left"?o=l>=n:o=l<=n,!o)return a;if(a===getWindowScrollingElement())break;a=getParentAutoScrollElement(a,!1)}return!1}function getChild(i,t,s,a){for(var l=0,n=0,o=i.children;n<o.length;){if(o[n].style.display!=="none"&&o[n]!==Sortable.ghost&&(a||o[n]!==Sortable.dragged)&&closest(o[n],s.draggable,i,!1)){if(l===t)return o[n];l++}n++}return null}function lastChild(i,t){for(var s=i.lastElementChild;s&&(s===Sortable.ghost||css(s,"display")==="none"||t&&!matches(s,t));)s=s.previousElementSibling;return s||null}function index$2(i,t){var s=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==Sortable.clone&&(!t||matches(i,t))&&s++;return s}function getRelativeScrollOffset(i){var t=0,s=0,a=getWindowScrollingElement();if(i)do{var l=matrix(i),n=l.a,o=l.d;t+=i.scrollLeft*n,s+=i.scrollTop*o}while(i!==a&&(i=i.parentNode));return[t,s]}function indexOfObject(i,t){for(var s in i)if(!!i.hasOwnProperty(s)){for(var a in t)if(t.hasOwnProperty(a)&&t[a]===i[s][a])return Number(s)}return-1}function getParentAutoScrollElement(i,t){if(!i||!i.getBoundingClientRect)return getWindowScrollingElement();var s=i,a=!1;do if(s.clientWidth<s.scrollWidth||s.clientHeight<s.scrollHeight){var l=css(s);if(s.clientWidth<s.scrollWidth&&(l.overflowX=="auto"||l.overflowX=="scroll")||s.clientHeight<s.scrollHeight&&(l.overflowY=="auto"||l.overflowY=="scroll")){if(!s.getBoundingClientRect||s===document.body)return getWindowScrollingElement();if(a||t)return s;a=!0}}while(s=s.parentNode);return getWindowScrollingElement()}function extend(i,t){if(i&&t)for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s]);return i}function isRectEqual(i,t){return Math.round(i.top)===Math.round(t.top)&&Math.round(i.left)===Math.round(t.left)&&Math.round(i.height)===Math.round(t.height)&&Math.round(i.width)===Math.round(t.width)}var _throttleTimeout;function throttle(i,t){return function(){if(!_throttleTimeout){var s=arguments,a=this;s.length===1?i.call(a,s[0]):i.apply(a,s),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},t)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(i,t,s){i.scrollLeft+=t,i.scrollTop+=s}function clone(i){var t=window.Polymer,s=window.jQuery||window.Zepto;return t&&t.dom?t.dom(i).cloneNode(!0):s?s(i).clone(!0)[0]:i.cloneNode(!0)}function getChildContainingRectFromElement(i,t,s){var a={};return Array.from(i.children).forEach(function(l){var n,o,r,d;if(!(!closest(l,t.draggable,i,!1)||l.animated||l===s)){var u=getRect(l);a.left=Math.min((n=a.left)!==null&&n!==void 0?n:1/0,u.left),a.top=Math.min((o=a.top)!==null&&o!==void 0?o:1/0,u.top),a.right=Math.max((r=a.right)!==null&&r!==void 0?r:-1/0,u.right),a.bottom=Math.max((d=a.bottom)!==null&&d!==void 0?d:-1/0,u.bottom)}}),a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var i=[],t;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var a=[].slice.call(this.el.children);a.forEach(function(l){if(!(css(l,"display")==="none"||l===Sortable.ghost)){i.push({target:l,rect:getRect(l)});var n=_objectSpread2({},i[i.length-1].rect);if(l.thisAnimationDuration){var o=matrix(l,!0);o&&(n.top-=o.f,n.left-=o.e)}l.fromRect=n}})}},addAnimationState:function(a){i.push(a)},removeAnimationState:function(a){i.splice(indexOfObject(i,{target:a}),1)},animateAll:function(a){var l=this;if(!this.options.animation){clearTimeout(t),typeof a=="function"&&a();return}var n=!1,o=0;i.forEach(function(r){var d=0,u=r.target,p=u.fromRect,h=getRect(u),f=u.prevFromRect,m=u.prevToRect,y=r.rect,g=matrix(u,!0);g&&(h.top-=g.f,h.left-=g.e),u.toRect=h,u.thisAnimationDuration&&isRectEqual(f,h)&&!isRectEqual(p,h)&&(y.top-h.top)/(y.left-h.left)===(p.top-h.top)/(p.left-h.left)&&(d=calculateRealTime(y,f,m,l.options)),isRectEqual(h,p)||(u.prevFromRect=p,u.prevToRect=h,d||(d=l.options.animation),l.animate(u,y,h,d)),d&&(n=!0,o=Math.max(o,d),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},d),u.thisAnimationDuration=d)}),clearTimeout(t),n?t=setTimeout(function(){typeof a=="function"&&a()},o):typeof a=="function"&&a(),i=[]},animate:function(a,l,n,o){if(o){css(a,"transition",""),css(a,"transform","");var r=matrix(this.el),d=r&&r.a,u=r&&r.d,p=(l.left-n.left)/(d||1),h=(l.top-n.top)/(u||1);a.animatingX=!!p,a.animatingY=!!h,css(a,"transform","translate3d("+p+"px,"+h+"px,0)"),this.forRepaintDummy=repaint(a),css(a,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),css(a,"transform","translate3d(0,0,0)"),typeof a.animated=="number"&&clearTimeout(a.animated),a.animated=setTimeout(function(){css(a,"transition",""),css(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},o)}}}}function repaint(i){return i.offsetWidth}function calculateRealTime(i,t,s,a){return Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))/Math.sqrt(Math.pow(t.top-s.top,2)+Math.pow(t.left-s.left,2))*a.animation}var plugins=[],defaults={initializeByDefault:!0},PluginManager={mount:function(t){for(var s in defaults)defaults.hasOwnProperty(s)&&!(s in t)&&(t[s]=defaults[s]);plugins.forEach(function(a){if(a.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),plugins.push(t)},pluginEvent:function(t,s,a){var l=this;this.eventCanceled=!1,a.cancel=function(){l.eventCanceled=!0};var n=t+"Global";plugins.forEach(function(o){!s[o.pluginName]||(s[o.pluginName][n]&&s[o.pluginName][n](_objectSpread2({sortable:s},a)),s.options[o.pluginName]&&s[o.pluginName][t]&&s[o.pluginName][t](_objectSpread2({sortable:s},a)))})},initializePlugins:function(t,s,a,l){plugins.forEach(function(r){var d=r.pluginName;if(!(!t.options[d]&&!r.initializeByDefault)){var u=new r(t,s,t.options);u.sortable=t,u.options=t.options,t[d]=u,_extends(a,u.defaults)}});for(var n in t.options)if(!!t.options.hasOwnProperty(n)){var o=this.modifyOption(t,n,t.options[n]);typeof o<"u"&&(t.options[n]=o)}},getEventProperties:function(t,s){var a={};return plugins.forEach(function(l){typeof l.eventProperties=="function"&&_extends(a,l.eventProperties.call(s[l.pluginName],t))}),a},modifyOption:function(t,s,a){var l;return plugins.forEach(function(n){!t[n.pluginName]||n.optionListeners&&typeof n.optionListeners[s]=="function"&&(l=n.optionListeners[s].call(t[n.pluginName],a))}),l}};function dispatchEvent(i){var t=i.sortable,s=i.rootEl,a=i.name,l=i.targetEl,n=i.cloneEl,o=i.toEl,r=i.fromEl,d=i.oldIndex,u=i.newIndex,p=i.oldDraggableIndex,h=i.newDraggableIndex,f=i.originalEvent,m=i.putSortable,y=i.extraEventProperties;if(t=t||s&&s[expando],!!t){var g,_=t.options,v="on"+a.charAt(0).toUpperCase()+a.substr(1);window.CustomEvent&&!IE11OrLess&&!Edge?g=new CustomEvent(a,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(a,!0,!0)),g.to=o||s,g.from=r||s,g.item=l||s,g.clone=n,g.oldIndex=d,g.newIndex=u,g.oldDraggableIndex=p,g.newDraggableIndex=h,g.originalEvent=f,g.pullMode=m?m.lastPutMode:void 0;var C=_objectSpread2(_objectSpread2({},y),PluginManager.getEventProperties(a,t));for(var $ in C)g[$]=C[$];s&&s.dispatchEvent(g),_[v]&&_[v].call(t,g)}}var _excluded=["evt"],pluginEvent=function(t,s){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=a.evt,n=_objectWithoutProperties(a,_excluded);PluginManager.pluginEvent.bind(Sortable)(t,s,_objectSpread2({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:l,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(r){_dispatchEvent({sortable:s,name:r,originalEvent:l})}},n))};function _dispatchEvent(i){dispatchEvent(_objectSpread2({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},i))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(!!documentExists){if(IE11OrLess)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),_detectDirection=function(t,s){var a=css(t),l=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),n=getChild(t,0,s),o=getChild(t,1,s),r=n&&css(n),d=o&&css(o),u=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+getRect(n).width,p=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+getRect(o).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&r.float&&r.float!=="none"){var h=r.float==="left"?"left":"right";return o&&(d.clear==="both"||d.clear===h)?"vertical":"horizontal"}return n&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||u>=l&&a[CSSFloatProperty]==="none"||o&&a[CSSFloatProperty]==="none"&&u+p>l)?"vertical":"horizontal"},_dragElInRowColumn=function(t,s,a){var l=a?t.left:t.top,n=a?t.right:t.bottom,o=a?t.width:t.height,r=a?s.left:s.top,d=a?s.right:s.bottom,u=a?s.width:s.height;return l===r||n===d||l+o/2===r+u/2},_detectNearestEmptySortable=function(t,s){var a;return sortables.some(function(l){var n=l[expando].options.emptyInsertThreshold;if(!(!n||lastChild(l))){var o=getRect(l),r=t>=o.left-n&&t<=o.right+n,d=s>=o.top-n&&s<=o.bottom+n;if(r&&d)return a=l}}),a},_prepareGroup=function(t){function s(n,o){return function(r,d,u,p){var h=r.options.group.name&&d.options.group.name&&r.options.group.name===d.options.group.name;if(n==null&&(o||h))return!0;if(n==null||n===!1)return!1;if(o&&n==="clone")return n;if(typeof n=="function")return s(n(r,d,u,p),o)(r,d,u,p);var f=(o?r:d).options.group.name;return n===!0||typeof n=="string"&&n===f||n.join&&n.indexOf(f)>-1}}var a={},l=t.group;(!l||_typeof(l)!="object")&&(l={name:l}),a.name=l.name,a.checkPull=s(l.pull,!0),a.checkPut=s(l.put),a.revertClone=l.revertClone,t.group=a},_hideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&!ChromeForAndroid&&document.addEventListener("click",function(i){if(ignoreNextClick)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function(t){if(dragEl){t=t.touches?t.touches[0]:t;var s=_detectNearestEmptySortable(t.clientX,t.clientY);if(s){var a={};for(var l in t)t.hasOwnProperty(l)&&(a[l]=t[l]);a.target=a.rootEl=s,a.preventDefault=void 0,a.stopPropagation=void 0,s[expando]._onDragOver(a)}}},_checkOutsideTargetEl=function(t){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(t.target)};function Sortable(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=_extends({},t),i[expando]=this;var s={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,r){o.setData("Text",r.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:Sortable.supportPointer!==!1&&"PointerEvent"in window&&(!Safari||IOS),emptyInsertThreshold:5};PluginManager.initializePlugins(this,i,s);for(var a in s)!(a in t)&&(t[a]=s[a]);_prepareGroup(t);for(var l in this)l.charAt(0)==="_"&&typeof this[l]=="function"&&(this[l]=this[l].bind(this));this.nativeDraggable=t.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?on(i,"pointerdown",this._onTapStart):(on(i,"mousedown",this._onTapStart),on(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(i,"dragover",this),on(i,"dragenter",this)),sortables.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(lastTarget=null)},_getDirection:function(t,s){return typeof this.options.direction=="function"?this.options.direction.call(this,t,s,dragEl):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var s=this,a=this.el,l=this.options,n=l.preventOnFilter,o=t.type,r=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,d=(r||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||d,p=l.filter;if(_saveInputCheckedState(a),!dragEl&&!(/mousedown|pointerdown/.test(o)&&t.button!==0||l.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Safari&&d&&d.tagName.toUpperCase()==="SELECT")&&(d=closest(d,l.draggable,a,!1),!(d&&d.animated)&&lastDownEl!==d)){if(oldIndex=index$2(d),oldDraggableIndex=index$2(d,l.draggable),typeof p=="function"){if(p.call(this,t,d,this)){_dispatchEvent({sortable:s,rootEl:u,name:"filter",targetEl:d,toEl:a,fromEl:a}),pluginEvent("filter",s,{evt:t}),n&&t.preventDefault();return}}else if(p&&(p=p.split(",").some(function(h){if(h=closest(u,h.trim(),a,!1),h)return _dispatchEvent({sortable:s,rootEl:h,name:"filter",targetEl:d,fromEl:a,toEl:a}),pluginEvent("filter",s,{evt:t}),!0}),p)){n&&t.preventDefault();return}l.handle&&!closest(u,l.handle,a,!1)||this._prepareDragStart(t,r,d)}}},_prepareDragStart:function(t,s,a){var l=this,n=l.el,o=l.options,r=n.ownerDocument,d;if(a&&!dragEl&&a.parentNode===n){var u=getRect(a);if(rootEl=n,dragEl=a,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=a,activeGroup=o.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:(s||t).clientX,clientY:(s||t).clientY},tapDistanceLeft=tapEvt.clientX-u.left,tapDistanceTop=tapEvt.clientY-u.top,this._lastX=(s||t).clientX,this._lastY=(s||t).clientY,dragEl.style["will-change"]="all",d=function(){if(pluginEvent("delayEnded",l,{evt:t}),Sortable.eventCanceled){l._onDrop();return}l._disableDelayedDragEvents(),!FireFox&&l.nativeDraggable&&(dragEl.draggable=!0),l._triggerDragStart(t,s),_dispatchEvent({sortable:l,name:"choose",originalEvent:t}),toggleClass(dragEl,o.chosenClass,!0)},o.ignore.split(",").forEach(function(p){find(dragEl,p.trim(),_disableDraggable)}),on(r,"dragover",nearestEmptyInsertDetectEvent),on(r,"mousemove",nearestEmptyInsertDetectEvent),on(r,"touchmove",nearestEmptyInsertDetectEvent),o.supportPointer?(on(r,"pointerup",l._onDrop),!this.nativeDraggable&&on(r,"pointercancel",l._onDrop)):(on(r,"mouseup",l._onDrop),on(r,"touchend",l._onDrop),on(r,"touchcancel",l._onDrop)),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:t}),o.delay&&(!o.delayOnTouchOnly||s)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}o.supportPointer?(on(r,"pointerup",l._disableDelayedDrag),on(r,"pointercancel",l._disableDelayedDrag)):(on(r,"mouseup",l._disableDelayedDrag),on(r,"touchend",l._disableDelayedDrag),on(r,"touchcancel",l._disableDelayedDrag)),on(r,"mousemove",l._delayedDragTouchMoveHandler),on(r,"touchmove",l._delayedDragTouchMoveHandler),o.supportPointer&&on(r,"pointermove",l._delayedDragTouchMoveHandler),l._dragStartTimer=setTimeout(d,o.delay)}else d()}},_delayedDragTouchMoveHandler:function(t){var s=t.touches?t.touches[0]:t;Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag),off(t,"touchend",this._disableDelayedDrag),off(t,"touchcancel",this._disableDelayedDrag),off(t,"pointerup",this._disableDelayedDrag),off(t,"pointercancel",this._disableDelayedDrag),off(t,"mousemove",this._delayedDragTouchMoveHandler),off(t,"touchmove",this._delayedDragTouchMoveHandler),off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,s){s=s||t.pointerType=="touch"&&t,!this.nativeDraggable||s?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):s?on(document,"touchmove",this._onTouchMove):on(document,"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,s){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:s}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var a=this.options;!t&&toggleClass(dragEl,a.dragClass,!1),toggleClass(dragEl,a.ghostClass,!0),Sortable.active=this,t&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:s})}else this._nulling()},_emulateDragOver:function(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),s=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),t!==s);)s=t;if(dragEl.parentNode[expando]._isOutsideThisEl(t),s)do{if(s[expando]){var a=void 0;if(a=s[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:s}),a&&!this.options.dragoverBubble)break}t=s}while(s=getParentOrHost(s));_unhideGhostForTarget()}},_onTouchMove:function(t){if(tapEvt){var s=this.options,a=s.fallbackTolerance,l=s.fallbackOffset,n=t.touches?t.touches[0]:t,o=ghostEl&&matrix(ghostEl,!0),r=ghostEl&&o&&o.a,d=ghostEl&&o&&o.d,u=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),p=(n.clientX-tapEvt.clientX+l.x)/(r||1)+(u?u[0]-ghostRelativeParentInitialScroll[0]:0)/(r||1),h=(n.clientY-tapEvt.clientY+l.y)/(d||1)+(u?u[1]-ghostRelativeParentInitialScroll[1]:0)/(d||1);if(!Sortable.active&&!awaitingDragStarted){if(a&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<a)return;this._onDragStart(t,!0)}if(ghostEl){o?(o.e+=p-(lastDx||0),o.f+=h-(lastDy||0)):o={a:1,b:0,c:0,d:1,e:p,f:h};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");css(ghostEl,"webkitTransform",f),css(ghostEl,"mozTransform",f),css(ghostEl,"msTransform",f),css(ghostEl,"transform",f),lastDx=p,lastDy=h,touchEvt=n}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,s=getRect(dragEl,!0,PositionGhostAbsolutely,!0,t),a=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=t;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),s.top+=ghostRelativeParent.scrollTop,s.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(!0),toggleClass(ghostEl,a.ghostClass,!1),toggleClass(ghostEl,a.fallbackClass,!0),toggleClass(ghostEl,a.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",s.top),css(ghostEl,"left",s.left),css(ghostEl,"width",s.width),css(ghostEl,"height",s.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,t.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function(t,s){var a=this,l=t.dataTransfer,n=a.options;if(pluginEvent("dragStart",this,{evt:t}),Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this),Sortable.eventCanceled||(cloneEl=clone(dragEl),cloneEl.removeAttribute("id"),cloneEl.draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),a.cloneId=_nextTick(function(){pluginEvent("clone",a),!Sortable.eventCanceled&&(a.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),a._hideClone(),_dispatchEvent({sortable:a,name:"clone"}))}),!s&&toggleClass(dragEl,n.dragClass,!0),s?(ignoreNextClick=!0,a._loopId=setInterval(a._emulateDragOver,50)):(off(document,"mouseup",a._onDrop),off(document,"touchend",a._onDrop),off(document,"touchcancel",a._onDrop),l&&(l.effectAllowed="move",n.setData&&n.setData.call(a,l,dragEl)),on(document,"drop",a),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,a._dragStartId=_nextTick(a._dragStarted.bind(a,s,t)),on(document,"selectstart",a),moved=!0,window.getSelection().removeAllRanges(),Safari&&css(document.body,"user-select","none")},_onDragOver:function(t){var s=this.el,a=t.target,l,n,o,r=this.options,d=r.group,u=Sortable.active,p=activeGroup===d,h=r.sort,f=putSortable||u,m,y=this,g=!1;if(_silent)return;function _(se,H){pluginEvent(se,y,_objectSpread2({evt:t,isOwner:p,axis:m?"vertical":"horizontal",revert:o,dragRect:l,targetRect:n,canSort:h,fromSortable:f,target:a,completed:C,onMove:function(S,x){return _onMove(rootEl,s,dragEl,l,S,getRect(S),t,x)},changed:$},H))}function v(){_("dragOverAnimationCapture"),y.captureAnimationState(),y!==f&&f.captureAnimationState()}function C(se){return _("dragOverCompleted",{insertion:se}),se&&(p?u._hideClone():u._showClone(y),y!==f&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:u.options.ghostClass,!1),toggleClass(dragEl,r.ghostClass,!0)),putSortable!==y&&y!==Sortable.active?putSortable=y:y===Sortable.active&&putSortable&&(putSortable=null),f===y&&(y._ignoreWhileAnimating=a),y.animateAll(function(){_("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===dragEl&&!dragEl.animated||a===s&&!a.animated)&&(lastTarget=null),!r.dragoverBubble&&!t.rootEl&&a!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(t.target),!se&&nearestEmptyInsertDetectEvent(t)),!r.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function $(){newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,r.draggable),_dispatchEvent({sortable:y,name:"change",toEl:s,newIndex,newDraggableIndex,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),a=closest(a,r.draggable,s,!0),_("dragOver"),Sortable.eventCanceled)return g;if(dragEl.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||y._ignoreWhileAnimating===a)return C(!1);if(ignoreNextClick=!1,u&&!r.disabled&&(p?h||(o=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,u,dragEl,t))&&d.checkPut(this,u,dragEl,t))){if(m=this._getDirection(t,a)==="vertical",l=getRect(dragEl),_("dragOverValid"),Sortable.eventCanceled)return g;if(o)return parentEl=rootEl,v(),this._hideClone(),_("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),C(!0);var k=lastChild(s,r.draggable);if(!k||_ghostIsLast(t,m,this)&&!k.animated){if(k===dragEl)return C(!1);if(k&&s===t.target&&(a=k),a&&(n=getRect(a)),_onMove(rootEl,s,dragEl,l,a,n,t,!!a)!==!1)return v(),k&&k.nextSibling?s.insertBefore(dragEl,k.nextSibling):s.appendChild(dragEl),parentEl=s,$(),C(!0)}else if(k&&_ghostIsFirst(t,m,this)){var T=getChild(s,0,r,!0);if(T===dragEl)return C(!1);if(a=T,n=getRect(a),_onMove(rootEl,s,dragEl,l,a,n,t,!1)!==!1)return v(),s.insertBefore(dragEl,T),parentEl=s,$(),C(!0)}else if(a.parentNode===s){n=getRect(a);var N=0,A,O=dragEl.parentNode!==s,I=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||l,a.animated&&a.toRect||n,m),P=m?"top":"left",U=isScrolledPast(a,"top","top")||isScrolledPast(dragEl,"top","top"),L=U?U.scrollTop:void 0;lastTarget!==a&&(A=n[P],pastFirstInvertThresh=!1,isCircumstantialInvert=!I&&r.invertSwap||O),N=_getSwapDirection(t,a,n,m,I?1:r.swapThreshold,r.invertedSwapThreshold==null?r.swapThreshold:r.invertedSwapThreshold,isCircumstantialInvert,lastTarget===a);var R;if(N!==0){var w=index$2(dragEl);do w-=N,R=parentEl.children[w];while(R&&(css(R,"display")==="none"||R===ghostEl))}if(N===0||R===a)return C(!1);lastTarget=a,lastDirection=N;var M=a.nextElementSibling,Z=!1;Z=N===1;var G=_onMove(rootEl,s,dragEl,l,a,n,t,Z);if(G!==!1)return(G===1||G===-1)&&(Z=G===1),_silent=!0,setTimeout(_unsilent,30),v(),Z&&!M?s.appendChild(dragEl):a.parentNode.insertBefore(dragEl,Z?M:a),U&&scrollBy(U,0,L-U.scrollTop),parentEl=dragEl.parentNode,A!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs(A-getRect(a)[P])),$(),C(!0)}if(s.contains(dragEl))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop),off(t,"touchend",this._onDrop),off(t,"pointerup",this._onDrop),off(t,"pointercancel",this._onDrop),off(t,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function(t){var s=this.el,a=this.options;if(newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,a.draggable),pluginEvent("drop",this,{evt:t}),parentEl=dragEl&&dragEl.parentNode,newIndex=index$2(dragEl),newDraggableIndex=index$2(dragEl,a.draggable),Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off(s,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),t&&(moved&&(t.cancelable&&t.preventDefault(),!a.dropBubble&&t.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(t){t.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(t),_globalDragOver(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],s,a=this.el.children,l=0,n=a.length,o=this.options;l<n;l++)s=a[l],closest(s,o.draggable,this.el,!1)&&t.push(s.getAttribute(o.dataIdAttr)||_generateId(s));return t},sort:function(t,s){var a={},l=this.el;this.toArray().forEach(function(n,o){var r=l.children[o];closest(r,this.options.draggable,l,!1)&&(a[n]=r)},this),s&&this.captureAnimationState(),t.forEach(function(n){a[n]&&(l.removeChild(a[n]),l.appendChild(a[n]))}),s&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,s){return closest(t,s||this.options.draggable,this.el,!1)},option:function(t,s){var a=this.options;if(s===void 0)return a[t];var l=PluginManager.modifyOption(this,t,s);typeof l<"u"?a[t]=l:a[t]=s,t==="group"&&_prepareGroup(a)},destroy:function(){pluginEvent("destroy",this);var t=this.el;t[expando]=null,off(t,"mousedown",this._onTapStart),off(t,"touchstart",this._onTapStart),off(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(t,"dragover",this),off(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(s){s.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;dragEl.parentNode==rootEl&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}};function _globalDragOver(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function _onMove(i,t,s,a,l,n,o,r){var d,u=i[expando],p=u.options.onMove,h;return window.CustomEvent&&!IE11OrLess&&!Edge?d=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(d=document.createEvent("Event"),d.initEvent("move",!0,!0)),d.to=t,d.from=i,d.dragged=s,d.draggedRect=a,d.related=l||t,d.relatedRect=n||getRect(t),d.willInsertAfter=r,d.originalEvent=o,i.dispatchEvent(d),p&&(h=p.call(u,d,o)),h}function _disableDraggable(i){i.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsFirst(i,t,s){var a=getRect(getChild(s.el,0,s.options,!0)),l=getChildContainingRectFromElement(s.el,s.options,ghostEl),n=10;return t?i.clientX<l.left-n||i.clientY<a.top&&i.clientX<a.right:i.clientY<l.top-n||i.clientY<a.bottom&&i.clientX<a.left}function _ghostIsLast(i,t,s){var a=getRect(lastChild(s.el,s.options.draggable)),l=getChildContainingRectFromElement(s.el,s.options,ghostEl),n=10;return t?i.clientX>l.right+n||i.clientY>a.bottom&&i.clientX>a.left:i.clientY>l.bottom+n||i.clientX>a.right&&i.clientY>a.top}function _getSwapDirection(i,t,s,a,l,n,o,r){var d=a?i.clientY:i.clientX,u=a?s.height:s.width,p=a?s.top:s.left,h=a?s.bottom:s.right,f=!1;if(!o){if(r&&targetMoveDistance<u*l){if(!pastFirstInvertThresh&&(lastDirection===1?d>p+u*n/2:d<h-u*n/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)f=!0;else if(lastDirection===1?d<p+targetMoveDistance:d>h-targetMoveDistance)return-lastDirection}else if(d>p+u*(1-l)/2&&d<h-u*(1-l)/2)return _getInsertDirection(t)}return f=f||o,f&&(d<p+u*n/2||d>h-u*n/2)?d>p+u/2?1:-1:0}function _getInsertDirection(i){return index$2(dragEl)<index$2(i)?1:-1}function _generateId(i){for(var t=i.tagName+i.className+i.src+i.href+i.textContent,s=t.length,a=0;s--;)a+=t.charCodeAt(s);return a.toString(36)}function _saveInputCheckedState(i){savedInputChecked.length=0;for(var t=i.getElementsByTagName("input"),s=t.length;s--;){var a=t[s];a.checked&&savedInputChecked.push(a)}}function _nextTick(i){return setTimeout(i,0)}function _cancelNextTick(i){return clearTimeout(i)}documentExists&&on(document,"touchmove",function(i){(Sortable.active||awaitingDragStarted)&&i.cancelable&&i.preventDefault()});Sortable.utils={on,off,css,find,is:function(t,s){return!!closest(t,s,t,!1)},extend,throttle,closest,toggleClass,clone,index:index$2,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild,expando};Sortable.get=function(i){return i[expando]};Sortable.mount=function(){for(var i=arguments.length,t=new Array(i),s=0;s<i;s++)t[s]=arguments[s];t[0].constructor===Array&&(t=t[0]),t.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),a.utils)),PluginManager.mount(a)})};Sortable.create=function(i,t){return new Sortable(i,t)};Sortable.version=version$1;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return i.prototype={dragStarted:function(s){var a=s.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):a.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(s){var a=s.originalEvent;!this.options.dragOverBubble&&!a.rootEl&&this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function(s){this._handleAutoScroll(s,!0)},_handleAutoScroll:function(s,a){var l=this,n=(s.touches?s.touches[0]:s).clientX,o=(s.touches?s.touches[0]:s).clientY,r=document.elementFromPoint(n,o);if(touchEvt$1=s,a||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(s,this.options,r,a);var d=getParentAutoScrollElement(r,!0);scrolling&&(!pointerElemChangedInterval||n!==lastAutoScrollX||o!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var u=getParentAutoScrollElement(document.elementFromPoint(n,o),!0);u!==d&&(d=u,clearAutoScrolls()),autoScroll(s,l.options,u,a)},10),lastAutoScrollX=n,lastAutoScrollY=o)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(r,!0)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(s,this.options,getParentAutoScrollElement(r,!1),!1)}}},_extends(i,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(i){clearInterval(i.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle(function(i,t,s,a){if(!!t.scroll){var l=(i.touches?i.touches[0]:i).clientX,n=(i.touches?i.touches[0]:i).clientY,o=t.scrollSensitivity,r=t.scrollSpeed,d=getWindowScrollingElement(),u=!1,p;scrollRootEl!==s&&(scrollRootEl=s,clearAutoScrolls(),scrollEl=t.scroll,p=t.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement(s,!0)));var h=0,f=scrollEl;do{var m=f,y=getRect(m),g=y.top,_=y.bottom,v=y.left,C=y.right,$=y.width,k=y.height,T=void 0,N=void 0,A=m.scrollWidth,O=m.scrollHeight,I=css(m),P=m.scrollLeft,U=m.scrollTop;m===d?(T=$<A&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),N=k<O&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(T=$<A&&(I.overflowX==="auto"||I.overflowX==="scroll"),N=k<O&&(I.overflowY==="auto"||I.overflowY==="scroll"));var L=T&&(Math.abs(C-l)<=o&&P+$<A)-(Math.abs(v-l)<=o&&!!P),R=N&&(Math.abs(_-n)<=o&&U+k<O)-(Math.abs(g-n)<=o&&!!U);if(!autoScrolls[h])for(var w=0;w<=h;w++)autoScrolls[w]||(autoScrolls[w]={});(autoScrolls[h].vx!=L||autoScrolls[h].vy!=R||autoScrolls[h].el!==m)&&(autoScrolls[h].el=m,autoScrolls[h].vx=L,autoScrolls[h].vy=R,clearInterval(autoScrolls[h].pid),(L!=0||R!=0)&&(u=!0,autoScrolls[h].pid=setInterval(function(){a&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var M=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*r:0,Z=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*r:0;typeof p=="function"&&p.call(Sortable.dragged.parentNode[expando],Z,M,i,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,Z,M)}.bind({layer:h}),24))),h++}while(t.bubbleScroll&&f!==d&&(f=getParentAutoScrollElement(f,!1)));scrolling=u}},30),drop=function(t){var s=t.originalEvent,a=t.putSortable,l=t.dragEl,n=t.activeSortable,o=t.dispatchSortableEvent,r=t.hideGhostForTarget,d=t.unhideGhostForTarget;if(!!s){var u=a||n;r();var p=s.changedTouches&&s.changedTouches.length?s.changedTouches[0]:s,h=document.elementFromPoint(p.clientX,p.clientY);d(),u&&!u.el.contains(h)&&(o("spill"),this.onSpill({dragEl:l,putSortable:a}))}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function(t){var s=t.oldDraggableIndex;this.startIndex=s},onSpill:function(t){var s=t.dragEl,a=t.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var l=getChild(this.sortable.el,this.startIndex,this.options);l?this.sortable.el.insertBefore(s,l):this.sortable.el.appendChild(s),this.sortable.animateAll(),a&&a.animateAll()},drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function(t){var s=t.dragEl,a=t.putSortable,l=a||this.sortable;l.captureAnimationState(),s.parentNode&&s.parentNode.removeChild(s),l.animateAll()},drop};_extends(Remove,{pluginName:"removeOnSpill"});Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);const main_vue_vue_type_style_index_0_scoped_15dbbf3c_lang="",columns$2=[{type:"selection",width:"60",fixed:!0},{transKey:"gd.field.describe",prop:"columnComment",label:"\u63CF\u8FF0",width:"200",type:"slot",slotType:"columnComment",align:"left"},{transKey:"gd.field.field",prop:"columnname",label:"\u5B57\u6BB5",width:"120",align:"left"},{transKey:"gd.field.effectType",prop:"effectType",label:"\u4F5C\u7528\u7C7B\u578B",width:"100",type:"slot",slotType:"effectType",align:"left"},{transKey:"gd.view.sourceTable",prop:"fktable",label:"\u6765\u6E90\u8868",width:"120",type:"slot",slotType:"fktable",align:"left"},{transKey:"gd.field.handle",prop:"handle",label:"\u64CD\u4F5C",width:"80",type:"slot",slotType:"handle",align:"center"}],_sfc_main$4T={name:"GdXlsxExport",props:{tableData:{type:Object,default:()=>({})}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],exportData:{},record:{},visible:!1,confirmLoading:!1,fullscreen:!1,loadData:[],selectedRowKeys:[],selectedRows:[],width:"90%",disabledRowId:[],checkedList:[],loadFieldData:i=>new Promise((t,s)=>{t({pageNo:1,pageSize:100,totalRows:0,rows:this.loadData})}),loadFieldDatad:i=>new Promise((t,s)=>{t({pageNo:1,pageSize:100,totalRows:0,rows:this.checkedList})})}},computed:{tableColumns(){return columns$2.filter(i=>i.prop!=="handle")},tableColumnsd(){return columns$2.filter(i=>i.type!=="selection"&&i.prop!=="effectType")},title(){return`${this.$i18nt(`Dynamics.${this.tableData.transkey}`,this.tableData.busname)} (${this.tableData.tablename}) ${this.$i18nt("gd.btn.export","\u5BFC\u51FA")}`},height(){return this.screenHeight-(this.fullscreen?72:230)},...chartbi.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){if(this.checkedList.length===0){this.$message.error(this.$i18nt("gd.xlsxImport.leastTip","\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u9879"));return}const i=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});let t=[];this.checkedList.forEach(l=>{const n=this.$i18nt(`Dynamics.${l.transkey}`,l.columncomment),o=l.fkId?`${n} (${this.$i18nt("gd.xlsxImport.foreignTable","\u5916\u952E\u8868: ")} ${l.fkName})`:n;t.push({aliasName:o,columnName:l.columnname,id:l.ids,tableId:l.codegenid,fkId:l.fkId})});let s=Object.assign({...this.record},{displayColumns:t}),a=this.exportData.url?this.exportData.url:!1;messages.baseExport(s,a).then(l=>{this.exportWay(l,i),this.closed()}).catch(l=>{i.close(),this.$message.error("err!")})},deleteItem(i){this.checkedList=this.checkedList.filter(t=>t.keyId!==i.keyId),this.$refs.tabled.setTableData([...this.checkedList],!1),this.selectedRowKeys=this.selectedRowKeys.filter(t=>t!==i.keyId),this.selectedRows=this.selectedRows.filter(t=>t.keyId!==i.keyId),this.$nextTick(()=>{setTimeout(()=>{this.$refs.table.toggleRowSelectioClear([i.keyId])},0)})},checkItem(){let i=[],t=[...this.checkedList];t.forEach(s=>{this.selectedRows.filter(l=>l.keyId===s.keyId)[0]&&i.push(s)}),this.selectedRows.forEach(s=>{t.filter(l=>l.keyId===s.keyId)[0]===void 0&&i.push(s)}),this.checkedList=[...i],this.$refs.tabled.refresh(!1)},emptyItem(){const i=[...this.selectedRowKeys];this.checkedList=[],this.selectedRowKeys=[],this.selectedRows=[],this.$refs.tabled.setTableData([...this.checkedList],!1),this.$nextTick(()=>{setTimeout(()=>{this.$refs.table.toggleRowSelectioClear(i)},0)})},loadChildren(i,t,s){messages.getCodeByEntity({entityName:i.fkentityname}).then(a=>{let l=a.data.map(n=>{let o=n.effecttype=="fk"||n.effecttype=="user"?n.fkentityname:n.codegenname.tablename,r=this.tableLists.filter(d=>o==d.tablename)[0];return r&&(n.fktable=r),n.ids=i.id,n.fkId=n.id,n.keyId=`${i.id}@${n.id}`,n.fkItem=i,n.fkName=i.fkentityname,n});i.children=[...l],s(l)})},open(i,t){this.exportData=t,this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.record=i,messages.sysCodeGenerateConfigList({codeGenId:this.tableData.id}).then(s=>{this.confirmLoading=!1;let a=[];this.loadData=s.data.filter(l=>!(l.effecttype=="about"&&l.columnname==(l.relations+"_AboutTable").toLowerCase())).map(l=>{let n=l.effecttype=="fk"||l.effecttype=="user"?l.fkentityname:l.codegenname.tablename,o=this.tableLists.filter(r=>n==r.tablename)[0];return o&&(l.fktable=o),(l.effecttype=="fk"||l.effecttype=="user")&&(a.push(l.id),l.hasChildren=!0),l.ids=l.id,l.fkId=null,l.keyId=l.id,l.fkName=null,l}),this.disabledRowId=a,this.refresh(!1),this.$nextTick(()=>{setTimeout(()=>{this.rowDrop()},0)})})},exportWay(i,t){if(i){const s=new Blob([i.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),a=URL.createObjectURL(s),l=document.createElement("a");l.style.display="none",l.href=a,l.download=this.tableData.tablename,l.click(),URL.revokeObjectURL(l.href),setTimeout(()=>{t.close()},1e3)}else t.close(),this.$message.error(i.message)},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},refresh(i=!0){this.$refs.table.refresh(!1),this.$refs.tabled.refresh(!1)},rowDrop(){const i=document.querySelector("#config-table .el-table__body-wrapper tbody");let t=this;Sortable.create(i,{onEnd:s=>{const a=t.checkedList[s.oldIndex];t.checkedList.splice(s.oldIndex,1),t.checkedList.splice(s.newIndex,0,a),console.log(t.checkedList)},animation:300,handle:".el-table__row"})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const t=i.item.functionName,s=i.key?i:i.item;if(this[t]===void 0&&this.func===void 0){console.log("\u8BF7\u5B9A\u4E49 "+t+" \u65B9\u6CD5");return}this[t]&&this[t](s)}}};var _sfc_render$4T=function(){var t=this,s=t._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.title,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"export-container"},[s("div",{staticClass:"l"},[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadFieldData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,disabledRowId:t.disabledRowId,lazy:"",load:t.loadChildren,rowKey:"keyId"},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"columnComment",fn:function({column:a,row:l}){return[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" ")]}},{key:"effectType",fn:function({column:a,row:l}){return[t._v(" "+t._s(t._f("dictType")("code_gen_effect_type",l.effecttype))+" ")]}},{key:"fktable",fn:function({column:a,row:l}){return[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.fktable.transkey}`,l.fktable.busname))+" ")]}}])})],1),s("div",{staticClass:"c"},[s("div",{staticClass:"citem"},[s("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:t.checkItem}},[t._v(" "+t._s(t.$i18nt("gd.btn.choice","\u9009\u62E9"))+" "),s("i",{staticClass:"el-icon-d-arrow-right"})])],1),s("div",{staticClass:"citem"},[s("el-button",{staticStyle:{width:"100%"},attrs:{type:"danger"},on:{click:t.emptyItem}},[t._v(" "+t._s(t.$i18nt("gd.btn.empty","\u6E05\u7A7A"))+" "),s("i",{staticClass:"el-icon-close"})])],1)]),s("div",{staticClass:"l",attrs:{id:"config-table"}},[s("gd-tables",{ref:"tabled",attrs:{dataSource:t.loadFieldDatad,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumnsd,height:t.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,rowKey:"keyId"},scopedSlots:t._u([{key:"columnComment",fn:function({column:a,row:l}){return[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" ")]}},{key:"effectType",fn:function({column:a,row:l}){return[t._v(" "+t._s(t._f("dictType")("code_gen_effect_type",l.effecttype))+" ")]}},{key:"fktable",fn:function({column:a,row:l}){return[l.fkId?s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.fktable.transkey}`,l.fktable.busname))+" ( "+t._s(t.$i18nt(`Dynamics.${l.fkItem.transkey}`,l.fkItem.columncomment))+" ) ")]):t._e()]}},{key:"handle",fn:function({column:a,row:l}){return[s("div",{staticClass:"export-handle"},[s("i",{staticClass:"el-icon-rank active-color drag-move"}),s("i",{staticClass:"el-icon-close",on:{click:function(n){return t.deleteItem(l)}}})])]}}])})],1)])],2)},_sfc_staticRenderFns$4T=[],__component__$4T=chartbi.normalizeComponent(_sfc_main$4T,_sfc_render$4T,_sfc_staticRenderFns$4T,!1,null,"15dbbf3c",null,null);const XlsxExport=__component__$4T.exports,result_vue_vue_type_style_index_0_scoped_c817ec1f_lang="",_sfc_main$4S={props:{height:{type:Number,default:400},showTitle:{type:Boolean,default:!0}},data(){return{statu:!1,viewType:3,imgList:[],currentImg:"",show:!1,spinning:!1,sysViewFields:[],detail:{tableData:{}},columns:[],columnsSetting:[],selectedRowKeys:[],selectedRows:[],queryCriteria:{},loadData:i=>{const t=Object.assign(i,this.switchingDate);return this.queryCriteria={...t},messages.baseSeniorQuery(t).then(s=>s.data)},buttons:[{displayName:"\u5BFC\u51FA",functionName:"exportData",show:!0,transKey:"gd.btn.export",icon:"gd-icon-daoru",name:"sysUser:advancedFindExport",children:[{displayName:"\u5F53\u524D\u9759\u6001\u9875",functionName:null,key:"1",transKey:"gd.advancedFind.exportCurrent",icon:""},{displayName:"\u5F53\u524D\u9759\u6001\u9875(\u6240\u6709)",functionName:null,key:"2",transKey:"gd.advancedFind.exportCurrentAll",icon:""},{displayName:"\u9009\u5B9A\u8BB0\u5F55",functionName:null,key:"4",transKey:"gd.advancedFind.exportSelected",icon:""},{displayName:"\u81EA\u5B9A\u4E49",functionName:null,key:"3",transKey:"gd.advancedFind.exportCustom",icon:""}]}]}},components:{ChildRenItem,ImgPreview,XlsxExport},computed:{switchingDate(){if(this.detail.tableData===void 0)return{};const i={...this.detail};return{tableId:i.tableData.id,viewId:i.viewId,sysViewFields:this.sysViewFields,sysViewFilters:i.sysViewFilters}},getFristColumn(){const i=this.columnsSetting.filter(t=>t.type!=="selection"&&t.checked)[0];return i||{}},getColumnsed(){return this.columns.filter(t=>t.type==="slot")},hig(){const i=this.showTitle?32:0;return this.height-i-40},...chartbi.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{refresh(i=!0){this.$refs.table?this.$refs.table.refresh(i):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},init(i){this.show=!1,this.spinning=!0,this.detail={...i};let t=[],s=[];t.push({type:"selection",width:"60",fixed:!0});let a=0;i.viewList.sysviewfields.forEach((l,n)=>{const o=String(l.id).split("-");let r=this.getColumns(l,n,i.viewList.frozencolumn);a===0&&r&&r.checked&&(Object.assign(r,{type:"slot",slotType:r.prop}),a+=1),t.push(r);let d={name:l.alias==""?l.columncomment:l.alias,width:Number(l.num),order:n,type:o.length>1?2:1,fieldid:o.length>1?o[1]:o[0],jointableid:l.codegenid,joinfieldid:o[0],orderconfig:l.orderconfig?1:0,maxtagcount:l.maxtagcount?Number(l.maxtagcount):2};s.push(d)}),this.sysViewFields=[...s],this.columns=[...t],this.columnsSetting=[...t],setTimeout(()=>{this.show=!0,this.spinning=!1},10),this.$nextTick(()=>{setTimeout(()=>{this.refresh()},100)})},getColumns(i,t,s){const a=[...this.detail.loadData];let l=[];a.forEach(h=>{h.children&&l.push(h.children)});const n=String(i.id).split("-");let o={};n.length>1?o=a.filter(h=>n[1]==h.id&&h.children)[0]:o=a.filter(h=>h.columnname==i.columnname)[0];const r=n.length>1?"fk":o.effecttype,d=this.getColumnName(i,o).toLowerCase(),u=this.getScopedSlots(i.effecttype,d,i,o,r);let p={key:d,columnName:o.columnname,fkEntityName:o.fkentityname,transKey:null,prop:d,label:i.alias!=""?i.alias:i.columncomment,width:Number(i.num),id:r=="fk"||r=="user"?o.id:n[0],fkId:r=="fk"||r=="user"?n[0]:null,align:i.align,checked:i.visible,effectType:i.effecttype,fieldType:r,fieldFormat:i.format,dictTypeCode:i.dicttypecode,dictTypeList:i.dicttypecode?this.getDictionary(i.dicttypecode):[],maxTagCount:i.maxtagcount?Number(i.maxtagcount):2,sourceFk:n.length>1?!0:!(i.effecttype!="fk"&&i.effecttype!="about"&&i.effecttype!="user"),displayMode:i.displaymode,displayPrefix:i.displayprefix,preview:i.preview,download:i.download,format:i.format};return i.operate!="add"&&i.alias!=""&&i.aliastranskey?Object.assign(p,{transKey:`Dynamics.${i.aliastranskey}`}):i.operate!="add"&&i.alias==""&&i.transkey&&Object.assign(p,{transKey:`Dynamics.${i.transkey}`}),t<s&&Object.assign(p,{fixed:"left"}),i.orderConfig==1&&Object.assign(p,{sortable:"custom"}),["participants"].includes(i.effectType)&&Object.assign(p,{showTooltip:!1}),Object.assign(p,u)},getColumnName(i,t){switch(t.effecttype){case"fk":return i.columnname+t.fkentityname+t.columnname;case"user":return i.columnname+t.fkentityname+t.columnname;case"about":return i.relations;default:return t.columnname}},getScopedSlots(i,t,s,a,l){return l=="input"?{}:["datepicker"].includes(l)&&s.format===1?{}:{type:"slot",slotType:t}},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},columnChange(i){this.columnsSetting=[...i]},operatorScope(i,t){const s=i.sourceFk!==void 0?i.sourceFk:!(i.fieldType!="fk"&&i.fieldType!="about"&&i.fieldType!="user");if(this.getFristColumn.prop===i.prop&&!s){this.changeQuickView(t);return}s&&this.baseQuickForm(t,i)},baseQuickForm(i,t){if(!this.statu){if(t.fieldType=="about"){this.baseQuickAbout(i,t);return}if(t.fieldType=="participants"){let s=this.tableLists.filter(l=>l.tablename==i.tableName)[0];if(s===void 0){this.$message.error(this.$i18nt("gd.solution.dataErrorTip","\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));return}this.statu=!0;const a=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});this.$refs.middleware.init({tableId:s.id,data:[i]}).then(l=>{setTimeout(()=>{this.statu=!1},1e3),a.close()});return}this.baseQuickFk({data:i,item:t})}},changeQuickView(i){if(this.statu)return;this.statu=!0;const t=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});this.$refs.middleware.init({tableId:this.detail.tableData.id,data:[i]}).then(s=>{setTimeout(()=>{this.statu=!1},1e3),t.close()})},baseQuickAbout(i,t){this.statu=!0;const s=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});messages.baseDetails({tableId:this.detail.tableData.id,id:i.id}).then(a=>{if(a.success){let l=t.prop+"_AboutTable",n={data:i,item:Object.assign(t,{fkEntityName:a.data[0][l]})};this.baseQuickFk(n,s)}else s.close(),setTimeout(()=>{this.statu=!1},1e3),this.$nextTick(()=>{setTimeout(()=>{this.$message.error(a.message)},0)})})},baseQuickFk(i,t){let s=t;i.item.fieldType!="about"&&(this.statu=!0,s=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"})),console.log(this.detail,i);let a={thisTableName:this.detail.tableData.tablename,thisIdValue:i.data.id,thisFiled:i.item.columnName,fkTable:i.item.fkEntityName};messages.onlineFormGetFkRelation(a).then(l=>{l.success?this.$refs.middleware.init(Object.assign(l.data,{fieldType:i.item.fieldType})).then(n=>{setTimeout(()=>{this.statu=!1},1e3),s.close()}):(s.close(),setTimeout(()=>{this.statu=!1},1e3),this.$nextTick(()=>{setTimeout(()=>{this.$message.error(l.message)},0)}))})},showFile(i,t){const s=t[i.prop];let a=s;typeof s=="string"&&(a=JSON.parse(s));let l=t.name!==void 0?t.name:c.title,n=new JSZip$1,o=[],r={};a.forEach(u=>{let p=this.getFileBlob(u).then(h=>{n.file(u.FileOriginName,h,{binary:!0}),r[u.FileOriginName]=h});o.push(p)});const d=this.$message({message:this.$i18nt("gd.https.downloadingFiles","\u6587\u4EF6\u6B63\u5728\u538B\u7F29\u4E0B\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});Promise.all(o).then(()=>{n.generateAsync({type:"blob"}).then(u=>{FileSaver$1.saveAs(u,l)}),d.close()}).catch(u=>{d.close(),this.$message.error("err!")})},showImg(i,t,s){let l=t[i.prop].split(",");this.imgList=l,this.currentImg=s||l[0],this.$refs.imgPreview.imgListShow=!0,this.$refs.imgPreview.open()},getFileBlob(i){return messages.sysFileInfoDownload({id:i.Id}).then(t=>t.data)},exportData(i){if(i.key==1||i.key==2){this.baseExport(i);return}if(i.key==4){this.baseExportSel(i);return}let t=Object.assign({type:i.key?i.key:0,whereS:[]},{...this.foreign},{tableId:this.detail.tableData.id,viewId:this.detail.viewId,viewType:this.viewType,filterConfig:this.detail.sysViewFilters});this.$refs.xlsxExport.open(t,i)},baseExport(i){const t=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});let s=this.handleMenuClick(i.key),a=Object.assign({...s},{tableId:this.detail.tableData.id,viewId:this.detail.viewId,viewType:this.viewType,filterConfig:this.detail.sysViewFilters}),l=i.url?i.url:!1;messages.baseExport(a,l).then(n=>{this.$refs.xlsxExport.exportWay(n,t)}).catch(n=>{t.close(),console.log("\u7CFB\u7EDF\u5F02\u5E38\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458")})},baseExportSel(i){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.exportTip","\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u6570\u636E!"));return}const t=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});let s=this.handleMenuClick(i.key),a=Object.assign({...s},{tableId:this.detail.tableData.id,viewId:this.detail.viewId,type:4,exportIds:this.selectedRowKeys.join(","),viewType:this.viewType,filterConfig:this.sysViewFilters}),l=i.url?i.url:!1;messages.baseExport(a,l).then(n=>{this.$refs.xlsxExport.exportWay(n,t)}).catch(n=>{t.close(),console.log("\u7CFB\u7EDF\u5F02\u5E38\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458")})},handleMenuClick(i){let t=this.$refs.table,s=[];t.columnsSetting.forEach(n=>{(n.checked===void 0?!0:n.checked)&&n.id&&s.push({id:n.id,columnName:n.prop,aliasName:this.$i18nt(n.transKey,n.label),fkId:n.fkId})}),this.viewType==2&&s.pop();let a={pageNo:t.currentPage,pageSize:t.pageSized};return Object.assign({displayColumns:s,whereS:[],type:i},{...a})},getDictionary(i){return this.$options.filters.dictData(i)},doEvent(i){let t=i.item.functionName;this[t](i)}}};var _sfc_render$4S=function(){var t=this,s=t._self._c;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}]},[t.show?s("gd-table-virtual",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.columns,selectedRowKeys:t.selectedRowKeys,height:t.hig,filtering:!1,initialLoading:!1},on:{onChange:t.onSelectChange,columnChange:t.columnChange},scopedSlots:t._u([{key:"operator",fn:function(){return[s("gd-btn-list",{attrs:{sysViewButtons:t.buttons},on:{functionName:t.doEvent}})]},proxy:!0},t._l(t.getColumnsed,function(a){return{key:a.prop,fn:function({column:l,row:n}){return[s("ChildRenItem",{attrs:{item:a,row:n,getFristColumn:t.getFristColumn},on:{operatorScope:t.operatorScope,baseQuickForm:t.baseQuickForm,showFile:t.showFile,showImg:t.showImg}})]}}})],null,!0)}):t._e(),s("ImgPreview",{ref:"imgPreview",attrs:{filePreviewShow:t.imgList.length>0,imgList:t.imgList,currentImg:t.currentImg}}),s("XlsxExport",{ref:"xlsxExport",attrs:{entityId:t.detail.tableData.id,queryParam:{},tableData:t.detail.tableData}}),s("gd-middleware",{ref:"middleware",on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$4S=[],__component__$4S=chartbi.normalizeComponent(_sfc_main$4S,_sfc_render$4S,_sfc_staticRenderFns$4S,!1,null,"c817ec1f",null,null);const result=__component__$4S.exports,viewList_vue_vue_type_style_index_0_scoped_e309a873_lang="",plugFilters$4={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$4R={props:{height:{type:Number,default:400},showTitle:{type:Boolean,default:!0}},data(){return{buttons:[{displayName:"\u8BBE\u4E3A\u9ED8\u8BA4\u89C6\u56FE",functionName:"setDefault",show:!0,icon:"el-icon-star-off",transKey:"gd.advancedFind.setDefaultView"},{displayName:"\u7F16\u8F91",functionName:"edit",icon:"el-icon-edit",show:!0,transKey:"gd.btn.edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,icon:"el-icon-delete",transKey:"gd.btn.del",btnType:"danger"},{displayName:"\u5171\u4EAB",functionName:"share",show:!0,icon:"el-icon-share",transKey:"gd.share"}],columns:[{type:"selection",width:"60",fixed:!0},{label:"\u663E\u793A\u540D\u79F0",width:"180",prop:"name",type:"slot",slotType:"name",align:"left",transKey:"gd.develop.view.displayName"},{label:"\u89C6\u56FE\u540D\u79F0",width:"100",prop:"viewname",align:"left",transKey:"gd.develop.view.viewName"},{label:"\u5E8F\u53F7",width:"100",prop:"order",align:"left",transKey:"gd.develop.view.sort"},{label:"\u9ED8\u8BA4\u89C6\u56FE",width:"100",prop:"isDefault",type:"slot",slotType:"isDefault",align:"left",transKey:"gd.advancedFind.isDefaultView"},{label:"\u8BF4\u660E",width:"220",prop:"description",align:"left",transKey:"gd.view.explain"}],selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:i=>system_fieldsecurity.sysSavedQueryPage(this.queryParam).then(t=>({pageNo:1,pageSize:100,totalRows:0,rows:t.data})),tableNames:"sys_user,sys_team",tableData:{}}},components:{EditPerson},computed:{table(){return this.tableLists.filter(i=>i.id===this.queryParam.codeGenId)[0]},getColumnsed(){return this.columns.filter(t=>t.type==="slot")},hig(){const i=this.showTitle?32:0;return this.height-i-8},...chartbi.mapGetters(["primaryColor","screenHeight","tableLists","tableSize","tablePageSize"])},methods:{editItem(i){let t=i.filterconfig?JSON.parse(i.filterconfig):plugFilters$4,s=Array.isArray(t)?Object.assign({...plugFilters$4},{list:t}):{...t},a=s.pid===null?s.list:[s],l=s.pid===null?s:plugFilters$4,n={sysviewfilters:Object.assign({...l},{list:a,tableName:this.tableLists.filter(o=>o.id==this.queryParam.codeGenId)[0].tablename}),frozencolumn:i.frozencolumn,sysviewfields:i.syssavedqueryfields,viewlistdata:[],type:3,viewid:i.baseview,data:Object.assign({...i},{sysviewqueries:i.syssavedqueryquerys}),id:i.id,order:i.order,explain:i.description,name:i.name,transkey:i.transkey,viewname:i.viewname};this.$refs.editPerson.open(n)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editItem(this.selectedRows[0])},setDefault(){let i=this;if(this.selectedRowKeys.length===0){i.$message.warning(this.$i18nt("gd.https.defaultViewTip","\u8BF7\u9009\u62E9\u9700\u8981\u8BBE\u7F6E\u4E3A\u9ED8\u8BA4\u89C6\u56FE\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){i.$message.warning(this.$i18nt("gd.https.defaultViewTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u8BBE\u7F6E\u4E3A\u9ED8\u8BA4\u89C6\u56FE!"));return}this.$confirm(this.$i18nt("gd.https.defaultViewContent","\u662F\u5426\u8BBE\u7F6E\u6B64\u6570\u636E\u4E3A\u9ED8\u8BA4\u89C6\u56FE?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.defaultViewOk","\u786E\u8BA4\u8BBE\u7F6E"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{if(t!=="confirm"){a();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,system_fieldsecurity.sysSavedQueryDefault({defaultQuery:i.selectedRowKeys[0],codeGenId:i.queryParam.codeGenId}).then(l=>{s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,a(),l.success?(i.$message.success(i.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),i.refresh()):i.$message.error(i.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message)})}})},del(){let i=this;if(this.selectedRowKeys.length===0){i.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{if(t!=="confirm"){a();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1,system_fieldsecurity.sysSavedQueryDelQueries({ids:i.selectedRowKeys.join(",")}).then(l=>{s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,a(),l.success?(i.$message.success(i.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),i.refresh()):i.$message.error(i.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+l.message)})}})},open(i){this.queryParam={codeGenId:i.sysCodeGenId},this.refresh()},share(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.shareTip","\u8BF7\u9009\u62E9\u8981\u5171\u4EAB\u7684\u6570\u636E"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.shareTipOne"));return}this.$refs.teamSharing.open(this.selectedRowKeys[0])},configOk(){this.$emit("ok"),this.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},refresh(i=!0){this.$refs.table?this.$refs.table.refresh(i):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},doEvent(i){let t=i.item.functionName;this[t](i)}}};var _sfc_render$4R=function(){var t=this,s=t._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.columns,selectedRowKeys:t.selectedRowKeys,height:t.hig,initialLoading:!1,filtering:!1,showPagination:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[s("div",{staticClass:"setting-navs"},[s("div",[s("el-select",{ref:"refTable",staticStyle:{width:"260px"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:""},on:{change:t.refresh},model:{value:t.queryParam.codeGenId,callback:function(a){t.$set(t.queryParam,"codeGenId",a)},expression:"queryParam.codeGenId"}},t._l(t.tableLists,function(a){return s("el-option",{key:a.id,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname),value:a.id}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+t._s(a.tablename)+" ")])}),1)],1),s("gd-btn-list",{attrs:{sysViewButtons:t.buttons},on:{functionName:t.doEvent}})],1)]},proxy:!0},{key:"name",fn:function({column:a,row:l}){return[s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:function(n){return t.editItem(l)}}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.name))+" ")])]}},{key:"isDefault",fn:function({column:a,row:l}){return[l.isdefault?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})]}}])}),s("EditPerson",{ref:"editPerson",attrs:{table:t.table},on:{ok:t.configOk}}),s("gd-team-sharing",{ref:"teamSharing",attrs:{tableData:{tablename:"sys_saved_query"},tableNames:t.tableNames},on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$4R=[],__component__$4R=chartbi.normalizeComponent(_sfc_main$4R,_sfc_render$4R,_sfc_staticRenderFns$4R,!1,null,"e309a873",null,null);const viewList=__component__$4R.exports,main_vue_vue_type_style_index_0_scoped_f5ab2694_lang="",_sfc_main$4Q={name:"GdAdvancedFind",props:{showTitle:{type:Boolean,default:!0},isSelect:{type:Boolean,default:!1}},components:{settings,result,viewList},data(){return{sysCodeGenId:"",height:0,activeKeys:1,activeKey:"1",disabled:!1,detail:{sysViewFilters:[],viewList:{frozenColumn:0,sysViewFields:[]}}}},watch:{screenHeight(){this.getHeight()}},computed:{getHig(){const i=this.showTitle?88:56;return this.height-i-24},style(){return`min-height:${this.height==0?600:this.height}px`},...chartbi.mapGetters(["screenHeight","seekTableId"])},methods:{beforeLeave(i,t){return console.log(i,t),!1},changeId(i){this.sysCodeGenId=i},change(i){if(i==="3")return new Promise((t,s)=>{this.$refs.settings.seeResult().then(a=>{a.statu?(this.seeResult(a.data),t()):s()})});this.$refs.result.show=!1,i==="2"&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.viewList.open({sysCodeGenId:this.$refs.settings.sysCodeGenId})},0)}),this.disabled=i==="2",this.$refs.result,this.$emit("change",i)},seeResult(i){this.detail=i,this.$emit("change",3),this.$nextTick(()=>{setTimeout(()=>{this.$refs.result.init(i)},0)})},init(){this.$nextTick(()=>{this.getHeight();const i=this.seekTableId?this.seekTableId:"";this.$refs.settings.setTableNameData(i)})},getHeight(){const i=document.getElementById("gd-layout-head-height"),t=i?i.offsetHeight:0,s=12;this.height=this.screenHeight-t-s}},created(){this.init()}};var _sfc_render$4Q=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-advanced-find",style:t.style},[t.showTitle?s("div",{staticClass:"advanced-find-title"},[t._v(" "+t._s(t.$i18nt("gd.menu.menuAdvancedFind","\u9AD8\u7EA7\u67E5\u627E"))+" ")]):t._e(),s("el-tabs",{attrs:{type:"card","before-leave":t.change},model:{value:t.activeKey,callback:function(a){t.activeKey=a},expression:"activeKey"}},[s("el-tab-pane",{attrs:{label:t.$i18nt("gd.advancedFind.basicSettings","\u57FA\u672C\u8BBE\u7F6E"),name:"1"}},[s("settings",{ref:"settings",attrs:{showTitle:t.showTitle,height:t.getHig},on:{changeId:t.changeId}})],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.advancedFind.savedViews","\u4FDD\u5B58\u7684\u89C6\u56FE"),name:"2"}},[s("viewList",{ref:"viewList",attrs:{showTitle:t.showTitle,height:t.getHig}})],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.advancedFind.query","\u67E5\u8BE2\u7ED3\u679C"),name:"3",disabled:t.disabled}},[s("result",{ref:"result",attrs:{showTitle:t.showTitle,height:t.getHig}})],1)],1)],1)},_sfc_staticRenderFns$4Q=[],__component__$4Q=chartbi.normalizeComponent(_sfc_main$4Q,_sfc_render$4Q,_sfc_staticRenderFns$4Q,!1,null,"f5ab2694",null,null);const GDpackage$A=__component__$4Q.exports;GDpackage$A.install=function(i){i.component(GDpackage$A.name,GDpackage$A)};const mixins$P={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.echarts.type",prop:"echartsType",width:"160",label:"\u56FE\u8868\u7C7B\u578B",type:"slot",slotType:"echartsType",align:"left",showOverflowTooltip:!0},{transKey:"gd.echarts.mode",prop:"collectWay",width:"160",label:"\u6C47\u603B\u65B9\u5F0F",type:"slot",slotType:"collectWay",align:"left",showOverflowTooltip:!0},{transKey:"gd.settings.echartsColor",prop:"colour",minWidth:"360",label:"\u989C\u8272",type:"slot",slotType:"colour",align:"left",showOverflowTooltip:!0}],formColumns:[],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysOrg:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysOrg:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysOrg:delete"},{displayName:"\u5171\u4EAB",functionName:"share",title:"\u5171\u4EAB",show:!0,transKey:"gd.btn.share",icon:"el-icon-share",name:"sysOrg:delete"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}]}}},edit_vue_vue_type_style_index_0_scoped_f8244293_lang="",_sfc_main$4P={props:{table:{type:Object,default:()=>({})},holderType:{type:[String,Number],default:1}},data(){return{width:"80%",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,show:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{tableName:"",name:"",transKey:"",type:"1",colorList:[],code:"",mode:"",viewId:"",columnName:"",list:""},list:[],viewList:[],loadFieldData:[],loadCountData:[],loadTableData:[],selectedRowKeys:[],selectedRows:[],pid:[],tableShow:!1,transKey:null,loadData:i=>this.getLoadField(),rules:{tableName:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"},{pattern:/^[a-zA-Z]([a-zA-Z0-9]+)?$/,message:this.$i18nt("gd.view.viewNameTip","\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")}],type:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],list:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],viewId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},tableColumns:[{type:"selection",width:"80"},{type:"selection-radio",width:"80"},{transKey:"gd.field.describe",prop:"columncomment",label:"\u663E\u793A\u540D",width:"160",align:"left",showOverflowTooltip:!0},{transKey:"gd.field.field",prop:"columnname",label:"\u5B57\u6BB5\u540D",width:"140",align:"left",showOverflowTooltip:!0},{transKey:"gd.field.effectType",prop:"effectType",label:"\u7C7B\u578B",width:"110",align:"left",type:"slot",slotType:"effectType",showOverflowTooltip:!0}]}},components:{EffectTypeIcon:messages.EffectTypeIcon},computed:{megs(){let i="";return this.list.forEach((t,s)=>{i+=s==0?t.alias:" ,"+t.alias}),`${this.$i18nt("gd.echarts.selected","\u5DF2\u9009")}: ${i}`},getTableColumns(){return this.tableColumns.filter(i=>{let t=this.ruleFormData.mode==="1"||this.ruleFormData.columnName!==""?"radio":"checkbox";return i.type==="selection"?t==="checkbox":i.type==="selection-radio"?t==="radio":!0})},disabled(){return!!this.record},title(){return this.record?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E")},height(){let i=this.fullscreen?190:340;return this.screenHeight-i},...chartbi.mapGetters(["screenHeight","tableLists","echartsColor","primaryColor","tablePageSize","tableSize"])},methods:{present(){(this.list.length===0?0:this.type)===0?this.$refs.VEcharts.setType():this.seeEcharts()},seeEcharts(){const i=this.tableLists.filter(t=>t.tablename===this.ruleFormData.tableName)[0];this.$nextTick(()=>{setTimeout(()=>{let t={tableId:i.id,view:this.viewList.filter(s=>s.id==this.ruleFormData.viewId)[0],viewId:this.ruleFormData.viewId,mode:this.ruleFormData.mode,type:this.ruleFormData.type,columnName:this.ruleFormData.columnName,list:this.list,name:this.ruleFormData.name,transKey:this.transKey};this.$refs.VEcharts.init(t)},0)})},save(){let i=this.record?this.holderType==2?system_fieldsecurity.sysEchartsPersonalEdit:system_fieldsecurity.sysEchartsEdit:system_fieldsecurity.sysEchartsAdd;const t=this.tableLists.filter(a=>a.tablename===this.ruleFormData.tableName)[0];let s={name:this.ruleFormData.name,syscodegenid:t.id,collectway:this.ruleFormData.mode,echartstype:this.ruleFormData.type,classlabel:JSON.stringify(this.list),echartsorder:this.ruleFormData.columnName!==""?this.ruleFormData.columnName:null,echartspreview:this.ruleFormData.viewId!==""?this.ruleFormData.viewId:null,holdertype:this.holderType,colour:this.ruleFormData.colorList.join(","),code:this.ruleFormData.code};this.record&&(s=Object.assign(this.record,s)),i(s).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25:")+a.message),this.confirmLoading=!1})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(i=>{i?this.save():this.confirmLoading=!1})},hidePopover(){let i=[];this.loadFieldData.forEach(t=>{this.selectedRowKeys.filter(a=>t.id===a)[0]&&i.push({dataIndex:t.dataindex,alias:t.alias,transKey:t.transkey,id:t.id,columnComment:t.columncomment,dictTypeCode:t.dicttypecode}),t.children&&t.children.length>0&&t.children.forEach(a=>{if(this.selectedRowKeys.filter(n=>a.id===n)[0]){let n=this.$i18nt(`Dynamics.${t.transkey}`,t.columncomment),o=this.$i18nt(`Dynamics.${a.transkey}`,a.columncomment);i.push({dataIndex:a.dataindex,alias:a.alias,transKey:a.transkey,id:a.id,columnComment:`${o}(${n})`,dictTypeCode:a.dicttypecode})}})}),this.list=[...i],this.ruleFormData.list=JSON.stringify(i),this.tableShow=!1,this.present()},showPopover(){this.tableShow=!0,this.$nextTick(()=>{setTimeout(()=>{this.refresh(!1)},300)})},getLoadField(){return new Promise((i,t)=>{let s=[...this.loadFieldData].filter(a=>!(a.effecttype=="about"&&a.columnname==(a.relations+"_AboutTable").toLowerCase()));s.forEach((a,l)=>{if(a.children&&a.children.length>0){let n=[];a.children.forEach((o,r)=>{if(o.effecttype!="fk"&&o.effecttype!="about"){let d=this.$i18nt(`Dynamics.${a.transkey}`,a.columncomment),u=this.$i18nt(`Dynamics.${o.transkey}`,o.columncomment),p=Object.assign({...o},{id:o.id+"-"+a.id},{dataindex:chartbi.getEchartColumnName(o,a),alias:`${u}(${d})`,transkey:a.transkey?a.transkey:null,transkeys:o.transkey?o.transkey:null,columncommentd:`${u}`});n.push(p)}}),n=n.filter(o=>!(o.effecttype=="about"&&o.columnname==(o.relations+"_AboutTable").toLowerCase())),this.ruleFormData.mode!=="1"&&this.ruleFormData.columnName===""&&(n=n.filter(o=>o.effecttype=="currency"||o.effecttype=="inputnumber"||o.effecttype=="double")),s[l].children=n.length==0?null:[...n]}s[l].alias=this.$i18nt(`Dynamics.${a.transkey}`,a.columncomment),s[l].dataindex=chartbi.getEchartColumnName(a,a),s[l].transkey=a.transkey?a.transkey:null,s[l].transkeys=null,s[l].columncommentd=this.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}),this.ruleFormData.mode!=="1"&&this.ruleFormData.columnName===""&&(s=s.filter(a=>a.effecttype=="currency"||a.effecttype=="inputnumber"||a.effecttype=="double"?!0:!!((a.effecttype=="fk"||a.effecttype=="about")&&a.children&&a.children.length>0))),this.loadTableData=[...s],i({pageNo:1,pageSize:200,totalRows:0,rows:this.loadTableData})})},changeMode(){let i=this.show;this.show=this.ruleFormData.mode!=="1",i!=this.show&&(this.ruleFormData.columnName="",this.ruleFormData.list="",this.list=[],this.selectedRowKeys=[],this.selectedRows=[]),this.present()},changeColumnName(){this.list.length>1&&(this.list=[],this.selectedRowKeys=[],this.selectedRows=[]),this.present()},changeTable(){this.ruleFormData=Object.assign(this.ruleFormData,{viewId:"",columnName:"",list:""}),this.list=[],this.selectedRowKeys=[],this.selectedRows=[],this.init()},okColor(i){this.ruleFormData.colorList=[...i]},editEchartsTheme(){this.$refs.echartsTheme.open(this.ruleFormData.colorList)},init(){this.confirmLoading=!0,Promise.all([this.getLoadData(),this.getViewList()]).then(i=>{this.confirmLoading=!1,this.present()})},open(i){this.record=i,this.visible=!0;const t=this.tableLists.filter(s=>s.tablename===this.table.tablename)[0];if(this.transKey=i&&i.transkey?i.transkey:null,this.list=i&&i.classlabel?JSON.parse(i.classlabel):[],this.list.length>0){let s=[];this.list.forEach(a=>{s.push(a.id)}),this.selectedRowKeys=s}this.ruleFormData={tableName:t?t.tablename:"",name:i?i.name:"",type:i?String(i.echartstype):"1",colorList:i&&i.colour?i.colour.split(","):[...this.echartsColor],code:i?i.code?i.code:"":chartbi.uuid(8),columnName:i&&i.echartsorder?i.echartsorder:"",list:i?JSON.parse(i.classlabel):"",viewId:i?Number(i.echartspreview):"",mode:i?String(i.collectway):"1",transKey:i?i.transkey:""},this.show=this.ruleFormData.mode!=="1",this.$nextTick(()=>{this.$refs.ruleForm.clearValidate(),this.init()})},getViewList(){const i=this.tableLists.filter(t=>t.tablename===this.ruleFormData.tableName)[0];if(!i)return new Promise((t,s)=>{t()});system_fieldsecurity.sysViewList({SysCodeGenId:i.id}).then(t=>{if(t.success){let s=t.data.filter(a=>a.type==1);this.viewList=s}})},getLoadData(){const i=this.tableLists.filter(t=>t.tablename===this.ruleFormData.tableName)[0];return i?messages.onlineFormGetCodeGenerateList({codeGenId:i.id}).then(t=>{let s=[],a=t.data.filter(o=>(o.children&&o.children.length>0&&s.push(o.id),o.effecttype=="about"&&o.columnname==(o.relations+"_AboutTable").toLowerCase()?!1:!(o.effecttype=="currency"&&o.columnname==(o.relations+"_Currency_Base").toLowerCase())));this.pid=s,this.loadFieldData=[...t.data];let l=a.filter(o=>o.effecttype=="currency"||o.effecttype=="inputnumber"||o.effecttype=="double"),n=a.filter(o=>o.dicttypecode).filter(o=>!!this.isChecked(o.dicttypecode));return this.loadCountData=l.concat(n),t.data}):new Promise((t,s)=>{t()})},isChecked(i){return this.$options.filters.dictData(i).every((s,a,l)=>!isNaN(Number(s.name)))},refresh(i=!0){this.$refs.table.refresh(i)},closed(){this.fullscreen=!1,this.visible=!1,this.selectedRowKeys=[],this.selectedRows=[]},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.present()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()},getDictionary(i){return this.$options.filters.dictData(i)},lookupSeled(i){this.ruleFormData.name=i.defaulttext}}};var _sfc_render$4P=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.title,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[s("div",{staticClass:"view-config"},[s("div",{staticClass:"config-item"},[t.visible?s("gd-echarts",{ref:"VEcharts",attrs:{loadData:t.loadFieldData,color:t.ruleFormData.colorList}}):t._e()],1),s("div",{staticClass:"config-item config-items"},[s("div",{staticClass:"b"},[s("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:t.ruleFormData,size:"mini",rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.view.sourceTable","\u6765\u6E90\u8868"),prop:"tableName"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",disabled:!!t.table.tablename},on:{change:t.changeTable},model:{value:t.ruleFormData.tableName,callback:function(a){t.$set(t.ruleFormData,"tableName",a)},expression:"ruleFormData.tableName"}},t._l(t.tableLists,function(a,l){return s("el-option",{key:a.tablename,attrs:{value:a.tablename,label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" ("+t._s(a.tablename)+") ")])}),1)],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.echarts.name","\u540D\u79F0"),prop:"name"}},[t.record?t._e():s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}}),t.record&&t.visible?s("gd-translation",{ref:"gdTranslation",attrs:{keyI18n:"transKey",recordData:t.ruleFormData,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.approval.code","\u7F16\u7801"),prop:"code"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.code,callback:function(a){t.$set(t.ruleFormData,"code",a)},expression:"ruleFormData.code"}})],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.echarts.viewId","\u7528\u4E8E\u56FE\u8868\u9884\u89C8\u7684\u89C6\u56FE"),prop:"viewId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.present},model:{value:t.ruleFormData.viewId,callback:function(a){t.$set(t.ruleFormData,"viewId",a)},expression:"ruleFormData.viewId"}},t._l(t.viewList,function(a,l){return s("el-option",{key:a.id,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.echarts.type","\u56FE\u8868\u7C7B\u578B"),prop:"type"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.present},model:{value:t.ruleFormData.type,callback:function(a){t.$set(t.ruleFormData,"type",a)},expression:"ruleFormData.type"}},t._l(t.getDictionary("table_echarts_type"),function(a,l){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}},[s("span",[a.code==="1"?s("i",{staticClass:"gd-icons gd-icon-zhuzhuangtu"}):t._e(),a.code==="2"?s("i",{staticClass:"gd-icons gd-icon-bingtu"}):t._e(),a.code==="3"?s("i",{staticClass:"gd-icons gd-icon-loudoutu"}):t._e(),a.code==="4"?s("i",{staticClass:"gd-icons gd-icon-zhexiantu"}):t._e()]),s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])])}),1)],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.settings.echartsColor","\u56FE\u8868\u989C\u8272")}},[s("div",{staticClass:"echarts-color"},[t._l(t.ruleFormData.colorList,function(a){return[a==0?s("div",{staticClass:"echarts-color-item",style:`background:${t.primaryColor}`}):s("div",{staticClass:"echarts-color-item",style:`background:${a}`})]}),s("div",{staticClass:"echarts-color-btn active-color",on:{click:t.editEchartsTheme}},[t._v(" "+t._s(t.$i18nt("gd.btn.edit","\u7F16\u8F91"))+" ")])],2)]),s("el-form-item",{attrs:{label:t.$i18nt("gd.echarts.mode","\u6C47\u603B\u65B9\u5F0F"),prop:"mode"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.changeMode},model:{value:t.ruleFormData.mode,callback:function(a){t.$set(t.ruleFormData,"mode",a)},expression:"ruleFormData.mode"}},t._l(t.getDictionary("table_echarts_mode"),function(a,l){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1),t.show?s("el-form-item",{attrs:{label:t.$i18nt("gd.echarts.columnName","\u56FE\u4F8B\u6761\u76EE(\u5E8F\u5217)"),prop:"columnName"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.changeColumnName},model:{value:t.ruleFormData.columnName,callback:function(a){t.$set(t.ruleFormData,"columnName",a)},expression:"ruleFormData.columnName"}},t._l(t.loadCountData,function(a,l){return s("el-option",{key:a.columnname,attrs:{value:a.columnname,label:t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}},[s("EffectTypeIcon",{attrs:{effectType:a.effecttype}}),s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" ("+t._s(a.columnname)+") ")])],1)}),1),s("el-alert",{staticStyle:{"margin-top":"6px"},attrs:{title:t.$i18nt("gd.echarts.columnNameTip","\u53EF\u9009\u62E9\u8BA1\u7B97\u5B57\u6BB5(\u6309\u9009\u62E9\u5B57\u6BB5\u8FD0\u7B97)\uFF1B\u5982\u9700\u9009\u62E9\u5B57\u6BB5\u542B\u6709\u5B57\u5178,\u8BF7\u6309\u5B57\u5178\u540D\u79F0\u8BBE\u7F6E\u503C(\u6309\u5B57\u5178\u503C\u540D\u79F0\u8FD0\u7B97)\u3002"),type:"info","show-icon":"",closable:!1}})],1):t._e(),s("el-form-item",{attrs:{label:t.$i18nt("gd.echarts.label","\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E"),prop:"list"}},[s("el-popover",{attrs:{placement:"top-end",trigger:"click"},on:{hide:t.hidePopover,show:t.showPopover}},[s("span",{staticClass:"el-dropdown-link",attrs:{slot:"reference"},slot:"reference"},[s("el-button",{attrs:{type:"primary",disabled:t.ruleFormData.tableName===""}},[t._v(" "+t._s(t.$i18nt("gd.echarts.addLabel","\u6DFB\u52A0\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E"))+" ")])],1),s("div",[t.tableShow?s("gd-table-umy",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,showPagination:!1,disabledRowId:t.pid,initialLoading:!1,disabledRefresh:!0,tableTree:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"effectType",fn:function({column:a,row:l}){return[t._v(" "+t._s(t._f("dictType")("code_gen_effect_type",l.effecttype))+" ")]}}],null,!1,4060202120)}):t._e()],1)]),t.list.length==0?s("el-alert",{staticStyle:{"margin-top":"6px"},attrs:{title:t.$i18nt("gd.echarts.addsLabel","\u8BF7\u6DFB\u52A0\u6C34\u5E73(\u5206\u7C7B)\u8F74\u6807\u7B7E"),type:"warning","show-icon":"",closable:!1}}):s("el-alert",{staticStyle:{"margin-top":"6px"},attrs:{title:t.megs,type:"success","show-icon":"",closable:!1}})],1)],1)],1)])])])],2),s("gd-color-editor",{ref:"echartsTheme",on:{ok:t.okColor}})],1)},_sfc_staticRenderFns$4P=[],__component__$4P=chartbi.normalizeComponent(_sfc_main$4P,_sfc_render$4P,_sfc_staticRenderFns$4P,!1,null,"f8244293",null,null);const EditEchartsConfig=__component__$4P.exports,main_vue_vue_type_style_index_0_scoped_74494856_lang="",_sfc_main$4O={name:"GdTeamSharing",props:{tableNames:{type:String,default:"sys_user,sys_team"},tableData:{type:Object,default:()=>({})},isInterface:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],operatorButtons:[{displayName:"\u6DFB\u52A0\u7528\u6237/\u56E2\u961F",functionName:"selRecord",show:!0,transKey:"gd.teamSharing.addut",icon:"el-icon-plus"},{displayName:"\u5220\u9664\u5DF2\u9009",functionName:"delRecord",show:!0,transKey:"gd.teamSharing.delSelected",icon:"el-icon-delete",btnType:"danger"}],id:"",visible:!1,confirmLoading:!1,fullscreen:!1,selectedAllRowKeys:[],selectedRowKeys:[],selectedRows:[],width:"90%",loadDataList:i=>new Promise((t,s)=>{t({pageNo:1,pageSize:100,totalRows:0,rows:this.loadData})}),loadData:[],loadOldData:[],columns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.teamSharing.name",prop:"name",label:"\u7528\u6237\u540D\u79F0",align:"left"},{transKey:"gd.teamSharing.query",prop:"isQuery",label:"\u67E5\u8BE2",type:"slot",slotType:"isQuery",align:"center",width:"120px"},{transKey:"gd.teamSharing.edit",prop:"isEdit",label:"\u7F16\u8F91",type:"slot",slotType:"isEdit",align:"center",width:"120px"},{transKey:"gd.teamSharing.delete",prop:"isDelete",label:"\u5220\u9664",type:"slot",slotType:"isDelete",align:"center",width:"120px"},{transKey:"gd.https.assign",prop:"isAllocation",label:"\u5206\u6D3E",type:"slot",slotType:"isAllocation",align:"center",width:"120px"},{transKey:"gd.teamSharing.share",prop:"isShare",label:"\u5171\u4EAB",type:"slot",slotType:"isShare",align:"center",width:"120px"},{transKey:"gd.teamSharing.source",prop:"source",label:"\u6765\u6E90",align:"left",type:"slot",slotType:"source"}]}},computed:{height(){return this.screenHeight-(this.fullscreen?130:280)},...chartbi.mapGetters(["screenHeight","tableLists","tableSize","tablePageSize"])},methods:{handleSubmit(){let i=this;i.confirmLoading=!0;const t=this.$refs.table.tableData;if(t.length===0&&this.loadOldData.length===0){this.$message.warning(this.$i18nt("gd.teamSharing.addutTip","\u8BF7\u6DFB\u52A0\u7528\u6237/\u56E2\u961F!")),i.confirmLoading=!1;return}this.$confirm(this.$i18nt("gd.https.confirmSaveTip","\u662F\u5426\u786E\u8BA4\u4FDD\u5B58\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,a,l)=>{if(s!=="confirm"){i.confirmLoading=!1,l();return}a.confirmButtonLoading=!0,a.cancelButtonLoading=!0,a.showCancelButton=!1;let n=[],o=[];t.forEach(d=>{o.push(d.ids);const u=i.loadOldData.filter(p=>d.ids===p.ids)[0];n.push({isdelete:d.isdelete?1:0,isedit:d.isedit?1:0,isquery:d.isquery?1:0,isshare:d.isshare?1:0,isallocation:d.isallocation?1:0,dataid:d.dataid,userteamid_aboutid:d.userteamid_aboutid,userteamid_abouttable:d.userteamid_abouttable,name:d.name,type:u?2:1,id:u?u.id:0})});let r=i.loadOldData.filter(d=>!o.includes(d.ids)).map(d=>(d.isdelete=d.isdelete?1:0,d.isedit=d.isedit?1:0,d.isquery=d.isquery?1:0,d.isshare=d.isshare?1:0,d.isallocation=d.isallocation?1:0,d.type=3,d));if(this.isInterface){let d={tablename:i.tableData.tablename,dataid:i.id,list:n.concat(r)};messages.baseSharedDataSave(d).then(u=>{a.confirmButtonLoading=!1,a.cancelButtonLoading=!1,a.showCancelButton=!0,i.confirmLoading=!1,u.success?(i.$message.success(i.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),l(),i.$emit("ok",d),i.closed()):i.$message.error(i.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+u.message)})}else{let d={tablename:i.tableData.tablename,dataid:i.id,list:n};i.$message.success(i.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),l(),i.$emit("ok",d),i.closed()}}})},delRecord(){this.selectedRowKeys.length!==0&&this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{if(s(),i!=="confirm")return;const a=this.$refs.table.tableData,l=a.filter(o=>!this.selectedRowKeys.includes(o.ids)),n=a.filter(o=>this.selectedRowKeys.includes(o.ids));this.selectedAllRowKeys=this.selectedAllRowKeys.filter(o=>!n.filter(d=>d.userteamid_aboutid===o)[0]),this.loadData=[...l],this.refresh()}})},lookupSeled(i){const t=this.$refs.table.tableData,s=t.filter(l=>i.data.includes(l.userteamid_aboutid));let a=[...s];i.fkData.forEach(l=>{if(!s.filter(o=>o.userteamid_aboutid===l.id)[0]){const o=this.tableLists.filter(d=>d.tablename===l.tableName)[0],r=t.filter(d=>d.id===l.userteamid_aboutid)[0];a.push(Object.assign({...l},{transkey:o.transkey,busname:o.busname,isquery:!0,isedit:!1,isdelete:!1,isshare:!1,isallocation:!1,userteamid_abouttable:o.tablename,userteamid_aboutid:l.id,dataid:this.id,ids:`${l.id}&${o.tablename}`},r?{isquery:r.isquery,isedit:r.isedit,isdelete:r.isdelete,isshare:r.isshare,isallocation:r.isallocation}:{}))}}),this.selectedAllRowKeys=[...i.data],this.loadData=[...a],this.refresh()},selRecord(){this.$refs.viewSearch.open({fkEntityName:this.tableNames,effectType:"participants",val:this.selectedAllRowKeys})},open(i){if(this.visible=!0,this.loadOldData=[],this.isInterface)this.id=i,this.getShared();else{if(i.extensionobj){let t=[];this.loadData=[...JSON.parse(i.extensionobj)].map(s=>{const a=this.tableLists.filter(l=>l.tablename===s.userteamid_abouttable)[0];return s.isdelete=s.isdelete===1,s.isedit=s.isedit===1,s.isquery=s.isquery===1,s.isshare=s.isshare===1,s.isallocation=s.isallocation===1,s.transkey=a.transkey,s.busname=a.busname,s.ids=`${s.userteamid_aboutid}&${a.tablename}`,t.push(s.userteamid_aboutid),s}),this.loadOldData=JSON.parse(i.extensionobj),this.selectedAllRowKeys=[...t]}this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)}),this.confirmLoading=!1}},getShared(){this.confirmLoading=!0,messages.baseGetShared({id:this.id,tableName:this.tableData.tablename}).then(i=>{if(i.success){let t=[];this.loadData=[...i.data].map(s=>{const a=this.tableLists.filter(l=>l.tablename===s.userteamid_abouttable)[0];return s.isdelete=s.isdelete===1,s.isedit=s.isedit===1,s.isquery=s.isquery===1,s.isshare=s.isshare===1,s.isallocation=s.isallocation===1,s.transkey=a.transkey,s.busname=a.busname,s.ids=`${s.userteamid_aboutid}&${a.tablename}`,t.push(s.userteamid_aboutid),s}),this.loadOldData=JSON.parse(JSON.stringify(i.data)),this.selectedAllRowKeys=[...t]}else this.$message.warning(i.message),this.confirmLoading=!1;this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)}),this.confirmLoading=!1})},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},refresh(){this.$refs.table.refresh(!0)},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$4O=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,appendToBody:!0,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.teamSharing.title","\u5171\u4EAB"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadDataList,size:t.tableSize,pageSize:t.tablePageSize,columns:t.columns,selectedRowKeys:t.selectedRowKeys,height:t.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0,rowKey:"ids"},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[s("gd-btn-list",{attrs:{sysViewButtons:t.operatorButtons},on:{functionName:t.doEvent}})]},proxy:!0},{key:"isQuery",fn:function({column:a,row:l}){return[s("el-checkbox",{model:{value:l.isquery,callback:function(n){t.$set(l,"isquery",n)},expression:"row.isquery"}})]}},{key:"isEdit",fn:function({column:a,row:l}){return[s("el-checkbox",{model:{value:l.isedit,callback:function(n){t.$set(l,"isedit",n)},expression:"row.isedit"}})]}},{key:"isDelete",fn:function({column:a,row:l}){return[s("el-checkbox",{model:{value:l.isdelete,callback:function(n){t.$set(l,"isdelete",n)},expression:"row.isdelete"}})]}},{key:"isAllocation",fn:function({column:a,row:l}){return[s("el-checkbox",{model:{value:l.isallocation,callback:function(n){t.$set(l,"isallocation",n)},expression:"row.isallocation"}})]}},{key:"isShare",fn:function({column:a,row:l}){return[s("el-checkbox",{model:{value:l.isshare,callback:function(n){t.$set(l,"isshare",n)},expression:"row.isshare"}})]}},{key:"source",fn:function({column:a,row:l}){return[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.busname))+"/"+t._s(l.userteamid_abouttable)+" ")]}}],null,!1,428592404)}):t._e()],1)],2),s("gd-search",{ref:"viewSearch",attrs:{modalAppendToBody:t.modalAppendToBody,appendToBody:t.appendToBody},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$4O=[],__component__$4O=chartbi.normalizeComponent(_sfc_main$4O,_sfc_render$4O,_sfc_staticRenderFns$4O,!1,null,"74494856",null,null);const TeamSharing=__component__$4O.exports,main_vue_vue_type_style_index_0_scoped_10015ba4_lang="",_sfc_main$4N={name:"GdPersonalEcharts",mixins:[messages.tablesFilter,mixins$P],data(){return{height:0,transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{tableId:""},loadData:i=>this.queryParam.tableId===""?new Promise((t,s)=>{t({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):system_fieldsecurity.sysEchartsPersonalPage({sysCodeGenId:this.queryParam.tableId,holderType:2}).then(t=>({pageNo:1,pageSize:40,totalRows:0,rows:t.data})),tableNames:"sys_user,sys_team"}},components:{EditForm:EditEchartsConfig,TeamSharing},watch:{screenHeight(){this.getHeight()}},computed:{tableData(){return this.tableLists.filter(i=>this.queryParam.tableId===i.id)[0]},style(){return`min-height:${this.height==0?600:this.height}px`},getHig(){return this.height-24},...chartbi.mapGetters(["tablePageSize","tableSize","echartsColor","primaryColor","tableLists","screenHeight","seekTableId"])},methods:{share(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.shareTip","\u8BF7\u9009\u62E9\u8981\u5171\u4EAB\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.shareTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u5171\u4EAB!"));return}this.$refs.teamSharing.open(this.selectedRowKeys[0])},getHeight(){const i=document.getElementById("gd-layout-head-height"),t=i?i.offsetHeight:0,s=80;this.height=this.screenHeight-t-s,this.queryParam.tableId===""&&(this.queryParam.tableId=this.seekTableId?Number(this.seekTableId):this.tableLists[0].id),this.refresh()},getColor(i){return i.colour?i.colour.split(","):[...this.echartsColor]},refresh(){this.$refs.table.refresh()},editForm(i){this.transKey="gd.btn.edit",this.$refs.editForm.open(i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,system_fieldsecurity.sysEchartsPersonalDel({ids:this.selectedRowKeys.join(",")}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}},mounted(){this.getHeight()}};var _sfc_render$4N=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-personal-echarts",style:t.style},[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,showPagination:!1,initialLoading:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:"",transKey:`Dynamics.${l.transKey}`},on:{click:t.editForm}})]}},{key:"echartsType",fn:function({column:a,row:l}){return[l.echartstype==1?s("i",{staticClass:"active-color gd-icons gd-icon-zhuzhuangtu"}):l.echartstype==2?s("i",{staticClass:"active-color gd-icons gd-icon-bingtu"}):l.echartstype==3?s("i",{staticClass:"active-color gd-icons gd-icon-loudoutu"}):l.echartstype==4?s("i",{staticClass:"active-color gd-icons gd-icon-zhexiantu"}):t._e(),t._v(" "+t._s(t._f("dictType")("table_echarts_type",l.echartstype))+" ")]}},{key:"collectWay",fn:function(a){return[t._v(" "+t._s(t._f("dictType")("table_echarts_mode",a.row.collectway))+" ")]}},{key:"colour",fn:function({column:a,row:l}){return[s("div",{staticClass:"follow-theme"},[t._l(t.getColor(l),function(n,o){return[s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:n==="0"?t.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):n,placement:"top","open-delay":50}},[n==="0"?s("div",{style:`background:${t.primaryColor};width: 15px;height: 15px;margin-right: 4px;`}):s("div",{style:`background:${n};width: 15px;height: 15px;margin-right: 4px;`})])]})],2)]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl",staticStyle:{width:"260px"}},[s("el-select",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.fieldSecurity.table","\u8868"),"reserve-keyword":"",filterable:"",remote:""},on:{change:t.refresh},model:{value:t.queryParam.tableId,callback:function(a){t.$set(t.queryParam,"tableId",a)},expression:"queryParam.tableId"}},t._l(t.tableLists,function(a){return s("el-option",{key:a.id,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname),value:a.id}},[s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+t._s(a.tablename)+" ")])])}),1),s("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0}])}),s("EditForm",{ref:"editForm",attrs:{table:t.tableData,holderType:2},on:{ok:t.refresh}}),s("TeamSharing",{ref:"teamSharing",attrs:{tableData:{tableName:"Sys_Echarts"},tableNames:t.tableNames},on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$4N=[],__component__$4N=chartbi.normalizeComponent(_sfc_main$4N,_sfc_render$4N,_sfc_staticRenderFns$4N,!1,null,"10015ba4",null,null);const GDpackage$z=__component__$4N.exports;GDpackage$z.install=function(i){i.component(GDpackage$z.name,GDpackage$z)};const constantRouterComponents={BasicLayout:GDpackage$F,BlankLayout:GDpackage$K,RouteView:routeView,PageView:GDpackage$E,Iframe:GDpackage$D,BasicLayoutEmpty:GDpackage$C,BasicLayoutTop:GDpackage$B,AccountSettings:system_account.GDpackage,BaseSettings:system_account.GDpackage$1,SecuritySettings:system_account.GDpackage$2,CustomSettings:system_account.GDpackage$3,Console:system_welcome.GDpackage,AdvancedFind:GDpackage$A,EchartsManage:GDpackage$z},routerUserAccount=[{name:"account",pid:0,id:10028,meta:{title:"\u4E2A\u4EBA\u9875",icon:"user",show:!1},redirect:"/account/center",component:"RouteView"},{name:"accountSettings",pid:"10028",id:"10030",meta:{title:"\u4E2A\u4EBA\u8BBE\u7F6E",hideHeader:!0,hideChildren:!0,show:!1},redirect:"/account/settings/base",component:"AccountSettings"},{name:"BaseSettings",path:"/account/settings/base",pid:10030,id:10031,meta:{title:"\u57FA\u672C\u8BBE\u7F6E",show:!1,transKeyd:"gd.account.basicSettings"},component:"BaseSettings",transKeyd:"gd.account.basicSettings"},{name:"SecuritySettings",path:"/account/settings/security",pid:10030,id:10032,meta:{title:"\u5B89\u5168\u8BBE\u7F6E",show:!1,transKeyd:"gd.account.securitySetting"},component:"SecuritySettings",transKeyd:"gd.account.securitySetting"},{name:"CustomSettings",path:"/account/settings/custom",pid:10030,id:10033,meta:{title:"\u4E2A\u6027\u5316\u8BBE\u7F6E",show:!1,transKeyd:"gd.account.personalization"},component:"CustomSettings",transKeyd:"gd.account.personalization"},{name:"Console",path:"/welcome",pid:0,id:183183,meta:{title:"\u9996\u9875",show:!1,transKeyd:"gd.menu.home"},component:"Console",transKeyd:"gd.menu.home"},{name:"platformapps",path:"/platformapps",pid:0,id:183184,meta:{},component:"PageView",redirect:"/platform/application"},{name:"platformapplications",path:"/platform/application",pid:183184,id:183185,meta:{title:"\u5E94\u7528",show:!1,transKeyd:"gd.menu.home"},component:"GdApplication",transKeyd:"gd.menu.home"},{name:"advancedFind",path:"/advancedFind",pid:0,id:18318999,meta:{title:"\u9AD8\u7EA7\u641C\u7D22",show:!1,transKeyd:"gd.menu.advancedFind"},component:"AdvancedFind",transKeyd:"gd.menu.advancedFind"},{name:"echartsManage",path:"/echartsManage",pid:0,id:18320001,meta:{title:"\u4E2A\u4EBA\u56FE\u8868\u7BA1\u7406",show:!1,transKeyd:"gd.menu.echarts"},component:"EchartsManage",transKeyd:"gd.menu.echarts"}];function routerMeta(i){const{title:t,target:s,icon:a,link:l,sysviewid:n,tableid:o}=i.meta||{};return{title:t,icon:a||"",target:s,link:l,viewId:n||"",tableId:o||"",id:i.id||"",transKey:i.transKeyd?i.transKeyd:i.transkey?`Dynamics.${i.transkey}`:null,viewWeights:i.viewweights?i.viewweights:"2",type:i.type}}const iconfont="",index$1="",formMixins={props:{modeType:{type:String,default:"editForm"},fieldData:{type:Array,default:()=>[]},tableData:{type:Object,default:()=>({})},recordRelation:{type:Object,default:()=>({})},openMode:{type:[String,Number],default:1},isRelevance:{type:Boolean,default:!1}},data(){return{statu:!1,visible:!1,id:"",record:null,confirmLoading:!1,parameterData:{},formRecord:{},formRecordSource:{},formData:{},sysViewButtons:[],allField:[],excludeButtons:[],componentList:[]}},computed:{options(){return this.formData.options}},methods:{showLoading(){this.statu=!0,this.$refs.form.showLoading()},hideLoading(i=1500){this.$refs.form.hideLoading(i),setTimeout(()=>{this.statu=!1},i)},save(i){this.id===""?this.baseAdd():this.baseEdit()},saveClose(i){this.id===""?this.baseAdd(1):this.baseEdit(1)},saveAdd(i){this.baseAdd(3)},deactivateData(){this.baseEnable(0)},enableData(){this.baseEnable()},assign(i){this.baseAssign(i)},teamSharing(i){this.baseTeamSharing(i)},setFormRecord(i){return new Promise(t=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.form.baseCustomComponents(this.componentList),this.$refs.form.setFormRecord(i).then(s=>{this.formRecordSource=s.formRecordSource,this.formData=s.formData,this.allField=s.allField,this.sysViewButtons=s.sysViewButtons,t(!0)})},0)})})},open(i){this.visible=!0,this.record=i,this.$refs.form.open(i)},openDisplay(i,t="open"){if(t==="refresh"){this.$refs.form.setDisplayId(i);return}this.visible=!0,this.record=i,this.$refs.form.openDisplay(i)},openCopyData(i){this.visible=!0,this.record=i,this.$refs.form.openCopyData(i)},onChangeParameter(i){this.parameterData=i},onChangeId(i){this.id=i},onChangeBtn(i){this.sysViewButtons=i,this.$emit("onChangeBtn",i)},getFormAllData(i=!0,t=!1){return this.$refs.form.getFormAllData(i,t).then(s=>s)},refresh(i=!0,t){this.$refs.form.refresh(i,t)},baseRelationRefresh(i=!0,t,s={}){this.$refs.form.baseViewRefreshFrom(i,t,s)},beaseLoadComplete(i){this.$emit("onLoadCompleted",i);const t=i==="changeStage"?"onChangeStage":"onLoadCompleted";this[t]===void 0&&this.func===void 0||this[t]&&this[t](i)},baseAdd(i=2){return this.$refs.form.baseAdd(i)},baseEdit(i=2){return this.$refs.form.baseEdit(i)},baseEnable(i=1){return this.$refs.form.baseEnable(i)},baseAssign(i){this.$refs.form.baseAssign(i)},baseTeamSharing(i){this.$refs.form.baseTeamSharing(i)},baseSetError(i){this.$refs.form.baseSetError(i)},baseSetVal(i,t=!0){this.$refs.form.baseSetVal(i,t)},baseSetEssential(i){this.$refs.form.baseSetEssential(i)},baseSetVisibility(i){this.$refs.form.baseSetVisibility(i)},baseSetDefaultsVal(i,t=!0){this.$refs.form.baseSetDefaultsVal(i,t)},baseSetLocking(i){this.$refs.form.baseSetLocking(i)},baseSetEmpty(i,t=!0){this.$refs.form.baseSetEmpty(i,t)},baseSetData(i,t=!0){this.$refs.form.baseSetData(i,t)},baseChange(i){let t=this.allField.filter(a=>a.options.columnName==i.options.columnName)[0];const s="onChange";this[s]===void 0&&this.func===void 0||this.$nextTick(()=>{setTimeout(()=>{this[s]&&this[s]({value:t?this.parameterData[i.options.columnName]:null,item:i})},0)})},baseDisableALL(){this.$refs.form.baseDisableALL()},baseGetItemList(i){return this.$refs.form.baseGetItemList(i).then(t=>t)},baseMountData(i){this.$refs.form.baseMountData(i)},baseParserData(i){return this.$refs.form.baseParserData(i)},baseBtnsStatus(i){this.$refs.form.baseBtnsStatus(i)},baseForceShowBtns(i){this.$refs.form.baseForceShowBtns(i)},baseComponentsInit(i){this.$refs.form.baseComponentsInit(i)},baseClosed(){this.$refs.form.closed()},baseAddFlowAgain(){return this.$refs.form.baseAddFlowAgain()},baseDisableAdvance(i){this.$refs.form.baseDisableAdvance(i)},baseSetTitlePrefix(i){this.$refs.form.baseSetTitlePrefix(i)},closed(){this.visible=!1,this.$emit("closed")},doEvent(i){const t=i.item.functionName||i.item.functionname,s=i.key?i:i.item;if(this[t]===void 0&&this.func===void 0){console.log("\u8BF7\u5B9A\u4E49 "+t+" \u65B9\u6CD5");return}this.showLoading(),this[t]&&this[t](s),this.hideLoading()}}},viewMixins={props:{record:{type:Object,default:()=>({})},recordoperations:{type:Object,default:()=>({})},develop:{type:[Number,String],default:1},openMode:{type:[String,Number],default:1},height:{type:Number,default:100},foreign:{type:Object,default:()=>({})},disabledRowId:{type:Array,default:()=>[]},istable:{type:Boolean,default:!1}},data(){return{statu:!1,viewRecord:{},formList:[],tableData:{},sysViewList:[],personalViewList:[],sysViewButtons:[],selectedRowKeys:[],selectedRows:[],defaultViewId:0,excludeButtons:[],fieldData:[],tableDataSource:[],componentList:[],lineQuickView:i=>{const t="baseQuickView";return this[t]===void 0&&this.func===void 0?new Promise(s=>s(i)):this[t](i)}}},computed:{componentForm(){const i=this.$importViewFiles();let s=`../views/main/${this.options.table.tableName||this.options.table.tablename}/editForm.vue`;const a=i[s];return a?a.default:GdsDesignVue.GdFormBuildDesigner},viewList(){return this.sysViewList.concat(this.personalViewList)},formCode(){return this.options.form.id},options(){return this.record.options},...chartbi.mapGetters(["tableLists"])},methods:{showLoading(){this.statu=!0,this.$refs.table.showLoading()},hideLoading(i=1500){this.$refs.table.hideLoading(i),setTimeout(()=>{this.statu=!1},i)},add(i){this.baseAdd()},edit(i){this.baseEdit()},del(i){this.baseDel()},deactivateData(){this.baseEnable(0)},enableData(){this.baseEnable()},assign(i){this.baseAssign(i)},batchUpdate(i){this.baseBatchUpdate()},teamSharing(i){this.baseTeamSharing(i)},importData(){this.baseImportData()},exportData(i){this.baseExportData(i)},open(i){console.log(i),this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm?this.tableData.isvirtualtable===1?this.$refs.editForm.openDisplay(i):this.$refs.editForm.open(i):console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},refresh(i=!0){this.$refs.table?this.$refs.table.refresh(i):console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},init(){this.record.hasLoad&&this.record.hasLoad(this.record.key),Promise.all([this.baseGetTableView(),this.baseGetPersonalView(!0),this.baseGetLoadData()]).then(i=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.table&&(this.$refs.table.init({fieldData:this.fieldData,tableData:this.tableData,sysViewList:this.sysViewList,personalViewList:this.personalViewList,defaultViewId:this.defaultViewId}),this.$refs.table.baseCustomComponents(this.componentList));let t=this.formList.filter(s=>s.id===this.formCode)[0];t||(t=this.formList.filter(s=>s.type===1)[0]),this.$refs.editForm&&t&&this.$refs.editForm.setFormRecord(t),this.beaseLoadComplete()},0)})})},onChangeBtn(i){this.sysViewButtons=i},onChangeView(i){this.viewRecord=i},onChangeData(i){this.tableDataSource=[...i],this.$emit("changeData",i)},onChangeSelect(i,t){this.selectedRowKeys=i,this.selectedRows=t,this.$emit("onChangeSelect",i,t);const s="baseChangeSelect";this[s]&&this[s](i,t)},beaseLoadComplete(){const i="onLoadCompleted";this[i]===void 0&&this.func===void 0||this[i]&&this[i]()},baseGetTableView(){const i=this.tableLists.filter(t=>{const s=this.options.table.tableName||this.options.table.tablename;return t.tablename.toLowerCase()===s.toLowerCase()})[0];return i?messages.baseTableData({tableId:i.id}).then(t=>(t.code===200?(t.data.viewlist.map(s=>(s.mode=1,s)),this.formList=t.data.formlist,this.tableData=t.data.table,this.sysViewList=t.data.viewlist):this.$message.error(t.message),t)):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((t,s)=>{t({})}))},baseGetPersonalView(i){if(i&&this.openMode!=1)return new Promise((s,a)=>{s()});const t=this.tableLists.filter(s=>{const a=this.options.table.tableName||this.options.table.tablename;return s.tablename.toLowerCase()===a.toLowerCase()})[0];return t===void 0?(console.log("\u8868\u4E0D\u5B58\u5728"),new Promise((s,a)=>{s()})):messages.basePersonalData({tableId:t.id}).then(s=>{if(s.code===200){const a=this.options.layoutConfig!==void 0?this.options.layoutConfig:!1;this.defaultViewId=a?0:s.data.defaultqueryid,this.personalViewList=s.data.savedquerylist}else console.log(s.message);return s.data})},baseGetLoadData(){const i=this.tableLists.filter(t=>{const s=this.options.table.tableName||this.options.table.tablename;return t.tablename.toLowerCase()===s.toLowerCase()})[0];return i?messages.onlineFormGetCodeGenerateList({codeGenId:i.id}).then(t=>{t.code===200&&(this.fieldData=t.data,this.$emit("fieldData",t.data))}):(console.log("\u6570\u636E\u9519\u8BEF,\u8868\u4E0D\u5B58\u5728"),new Promise((t,s)=>{t({})}))},baseAdd(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm?this.$refs.editForm.open({title:this.$i18nt("gd.https.add","\u65B0\u589E")}):console.log("err:\u8868\u5355\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01")},0)})},baseEdit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}let i={title:this.$i18nt("gd.https.edit","\u7F16\u8F91")};this.openMode==3?Object.assign(i,{data:this.selectedRows[0]}):Object.assign(i,{id:this.selectedRowKeys[0]}),this.open(i)},baseCopyData(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}const i=this.tableDataSource.filter(t=>this.selectedRowKeys.includes(t.id))[0];this.$refs.editForm.openCopyData({title:this.$i18nt("gd.advancedFind.anotherSave","\u53E6\u5B58\u4E3A"),data:i})},baseDel(){this.$refs.table.baseDel()},baseEnable(i=1){return this.$refs.table.baseEnable(i)},baseRelationOk(i){this.$refs.table.baseRelationOk(i)},baseBatchUpdate(){this.$refs.table.baseBatchUpdate()},baseTeamSharing(i){this.$refs.table.baseTeamSharing(i)},baseAssign(i){this.$refs.table.baseAssign(i)},baseImportData(){this.$refs.table.baseImportData()},baseExportData(i){this.$refs.table.baseExportData(i)},baseGetParentFormData(i){if(this.openMode!=3)return new Promise((s,a)=>{s({})});let t=i===void 0?!1:i;return this.record.getFormAllData(t,!0).then(s=>s)},baseRelationRefresh(i=!0,t,s={}){this.openMode==3&&this.record.refresh(i,t,s)},baseBtnsStatus(i){this.$refs.table.baseBtnsStatus(i)},baseForceShowBtns(i){this.$refs.table.baseForceShowBtns(i)},baseComponentsInit(i){this.$refs.table.baseComponentsInit(i)},baseSetTableData(i){this.$refs.table.baseSetTableData(i)},getDictionary(i){return this.$options.filters.dictData(i)},baseTriggerFilter(i){this.$refs.table.baseTriggerFilter(i)},doEvent(i){const t=i.item.functionName||i.item.functionname,s=i.key?i:i.item;if(this[t]===void 0&&this.func===void 0){console.log("\u8BF7\u5B9A\u4E49 "+t+" \u65B9\u6CD5");return}this.showLoading(),this[t]&&this[t](s),this.hideLoading()},executeEvent(i){const t=i.functionName?i.functionName:"";t&&this[t]!==void 0?this.$nextTick(()=>{setTimeout(()=>{this[t](i)},100)}):console.log("\u6267\u884C\u9519\u8BEF")}},created(){this.init(),this.develop==2&&(this.record.executeEvent=this.executeEvent)}},main_vue_vue_type_style_index_0_scoped_1420d480_lang="",ORIGINAL_THEME="#409EFF",_sfc_main$4M={name:"GdButtons",props:{record:{type:Object,default:()=>({})}},computed:{...chartbi.mapGetters(["primaryColor"])},data(){return{showColorPicker:!1,value1:"",svalue:!0,currentRow:null,radio:"0",themes:"",chalk:"",tableData:[{date:"2016-05-03",name:"\u738B\u5C0F\u864E",province:"\u4E0A\u6D77",city:"\u666E\u9640\u533A",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",zip:200333},{date:"2016-05-02",name:"\u738B\u5C0F\u864E",province:"\u4E0A\u6D77",city:"\u666E\u9640\u533A",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",zip:200334},{date:"2016-05-04",name:"\u738B\u5C0F\u864E",province:"\u4E0A\u6D77",city:"\u666E\u9640\u533A",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",zip:200335},{date:"2016-05-01",name:"\u738B\u5C0F\u864E",province:"\u4E0A\u6D77",city:"\u666E\u9640\u533A",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",zip:200336},{date:"2016-05-08",name:"\u738B\u5C0F\u864E",province:"\u4E0A\u6D77",city:"\u666E\u9640\u533A",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",zip:200337},{date:"2016-05-06",name:"\u738B\u5C0F\u864E",province:"\u4E0A\u6D77",city:"\u666E\u9640\u533A",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",zip:200338},{date:"2016-05-07",name:"\u738B\u5C0F\u864E",province:"\u4E0A\u6D77",city:"\u666E\u9640\u533A",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",zip:200339}]}},methods:{hideColorPicker(i){console.log(i)},lange(i){this.$i18n.locale=i,i==="en_US"&&(this.showColorPicker=!0,this.$refs.colorPicker.showPicker=!0,console.log(this.$refs.colorPicker))},dateD(i){console.log(i)},async changeTheme(i){console.log(i);const t=this.chalk?this.primaryColor:ORIGINAL_THEME;if(typeof i!="string")return;const s=this.getThemeCluster(i.replace("#","")),a=this.getThemeCluster(t.replace("#","")),l=(r,d)=>()=>{const u=this.getThemeCluster(ORIGINAL_THEME.replace("#","")),p=this.updateStyle(this[r],u,s);let h=document.getElementById(d);h||(h=document.createElement("style"),h.setAttribute("id",d),document.head.appendChild(h)),h.innerText=p};this.chalk||await Promise.resolve().then(()=>require("./element-theme-chalk.dee12271.js")).then(r=>{this.chalk=r.default}),l("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter(r=>{const d=r.innerText;return new RegExp(t,"i").test(d)&&!/Chalk Variables/.test(d)}).forEach(r=>{const{innerText:d}=r;typeof d=="string"&&(r.innerText=this.updateStyle(d,a,s))}),this.$store.dispatch("ToggleColor",i)},updateStyle(i,t,s){let a=i;return t.forEach((l,n)=>{a=a.replace(new RegExp(l,"ig"),s[n])}),a},getThemeCluster(i){const t=(l,n)=>{let o=parseInt(l.slice(0,2),16),r=parseInt(l.slice(2,4),16),d=parseInt(l.slice(4,6),16);return n===0?[o,r,d].join(","):(o+=Math.round(n*(255-o)),r+=Math.round(n*(255-r)),d+=Math.round(n*(255-d)),o=o.toString(16),r=r.toString(16),d=d.toString(16),`#${o}${r}${d}`)},s=(l,n)=>{let o=parseInt(l.slice(0,2),16),r=parseInt(l.slice(2,4),16),d=parseInt(l.slice(4,6),16);return o=Math.round((1-n)*o),r=Math.round((1-n)*r),d=Math.round((1-n)*d),o=o.toString(16),r=r.toString(16),d=d.toString(16),`#${o}${r}${d}`},a=[i];for(let l=0;l<=9;l++)a.push(t(i,Number((l/10).toFixed(2))));return a.push(s(i,.1)),a},rowClick(i){this.currentRow=i.zip},selectionChange(i){console.log(i)},sortChange({prop:i,order:t}){console.log(i,t)},primary(){console.log(this.record),this.$emit("changeComponent","\u6211\u662F\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u8FD4\u56DE")},tableRowClassName({row:i,rowIndex:t}){return t===1?"warning-row":t===3?"success-row":""}},created(){this.changeTheme(Vue__default.default.ls.get("DEFAULT_COLOR")||this.primaryColor),this.themes=Vue__default.default.ls.get("DEFAULT_COLOR")||this.primaryColor}};var _sfc_render$4M=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-buts"},[s("i",{staticClass:"el-icon-xiazai40"}),s("i",{staticClass:"gd-icon-qiyeweixin"}),s("el-row",[s("el-button",[t._v("\u9ED8\u8BA4\u6309\u94AE77"+t._s(t.primaryColor))]),s("el-button",{attrs:{type:"primary",loading:!0}},[t._v("\u4E3B\u8981\u6309\u94AE1 "+t._s(t.$i18nt("common.add")))]),s("el-button",{attrs:{type:"success"},on:{click:function(a){return t.lange("en_US")}}},[t._v("\u6210\u529F\u6309\u94AE2 en_US "+t._s(t.$i18nt("el.cascader.loading")))]),s("el-button",{attrs:{type:"info"},on:{click:function(a){return t.lange("zh_CN")}}},[t._v("\u4FE1\u606F\u6309\u94AE3 zh-CN")]),s("el-button",{attrs:{type:"warning"},on:{click:function(a){return t.lange("vi_VN")}}},[t._v("\u8B66\u544A\u6309\u94AE4")]),s("el-button",{attrs:{type:"danger"},on:{click:function(a){return t.lange("id_ID")}}},[t._v("\u5371\u9669\u6309\u94AE5")]),s("el-button",{attrs:{type:"warning"}},[t._v("\u8B66\u544A\u6309\u94AE6")]),s("el-radio",{attrs:{label:"1",size:"medium",border:""},model:{value:t.radio,callback:function(a){t.radio=a},expression:"radio"}},[t._v("\u5907\u9009\u9879")]),s("el-color-picker",{directives:[{name:"show",rawName:"v-show",value:t.showColorPicker,expression:"showColorPicker"}],ref:"colorPicker",staticClass:"theme-picker",attrs:{predefine:["#13c2c2","#FB5E13","#409EFF","#1F65F9","#11a983","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},on:{change:t.changeTheme,show:t.hideColorPicker,hide:t.hideColorPicker},model:{value:t.themes,callback:function(a){t.themes=a},expression:"themes"}}),s("el-button",{attrs:{type:"text"}},[t._v("\u70B9\u51FB\u6253\u5F00 Dialog")]),s("a",[t._v("\u8B66\u544A\u6309\u94AE")]),s("el-switch",{model:{value:t.svalue,callback:function(a){t.svalue=a},expression:"svalue"}})],1),s("i",{staticClass:"el-icon-edit"}),s("i",{staticClass:"el-icon-share"}),s("i",{staticClass:"el-icon-delete-solid"}),s("el-button",{attrs:{type:"primary",icon:"el-icon-search"}},[t._v("\u641C\u7D22")]),s("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,"row-class-name":t.tableRowClassName,border:"",height:"250",stripe:"","show-overflow-tooltip":"","highlight-current-row":""},on:{"sort-change":t.sortChange,"selection-change":t.selectionChange,"row-click":t.rowClick}},[s("el-table-column",{attrs:{label:"",width:"50",align:"center",fixed:""},scopedSlots:t._u([{key:"default",fn:function(a){return[s("el-radio",{attrs:{label:a.row.zip,size:"small"},model:{value:t.currentRow,callback:function(l){t.currentRow=l},expression:"currentRow"}},[t._v(" "+t._s("")+" ")])]}}])}),s("el-table-column",{attrs:{fixed:"",prop:"date",label:"\u65E5\u671F",width:"150",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function({$index:a,row:l,column:n}){return[s("span",{on:{click:function(o){return o.stopPropagation(),t.dateD({$index:a,row:l,column:n})}}},[t._v(t._s(l.date)+"-"+t._s(a))])]}}])}),s("el-table-column",{attrs:{prop:"name",label:"\u59D3\u540D",width:"120"}}),s("el-table-column",{attrs:{prop:"province",label:"\u7701\u4EFD",width:"120"}}),s("el-table-column",{attrs:{prop:"city",label:"\u5E02\u533A",width:"120"}}),s("el-table-column",{attrs:{prop:"address",label:"\u5730\u5740","min-width":"250"}}),s("el-table-column",{attrs:{prop:"zip",label:"\u90AE\u7F16",width:"120"}})],1),s("div",{staticClass:"block"},[s("span",{staticClass:"demonstration"},[t._v("Default")]),s("el-date-picker",{attrs:{type:"date",placeholder:"Pick a day",size:"medium"},model:{value:t.value1,callback:function(a){t.value1=a},expression:"value1"}})],1),s("div",{staticClass:"block",staticStyle:{"background-color":"#fff",padding:"20px"}},[s("span",{staticClass:"demonstration"},[t._v("\u5B8C\u6574\u529F\u80FD")]),s("el-pagination",{attrs:{"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",background:"",total:1e3}})],1)],1)},_sfc_staticRenderFns$4M=[],__component__$4M=chartbi.normalizeComponent(_sfc_main$4M,_sfc_render$4M,_sfc_staticRenderFns$4M,!1,null,"1420d480",null,null);const GDpackage$y=__component__$4M.exports;GDpackage$y.install=function(i){i.component(GDpackage$y.name,GDpackage$y)};const column_vue_vue_type_style_index_0_scoped_cff47705_lang="",_sfc_main$4L={name:"Column",props:{col:{type:Object}},computed:{}};var _sfc_render$4L=function(){var t=this,s=t._self._c;return s("el-table-column",{attrs:{type:t.col.type,"show-overflow-tooltip":typeof t.col.showTooltip>"u"?!0:t.col.showTooltip,sortable:t.col.sortable,fixed:t.col.fixed?t.col.fixed:!1,prop:t.col.prop,label:t.$i18nt(t.col.transKey,t.col.label),align:t.col.align?t.col.align:"center",width:t.col.width,filters:t.col.filters,"filter-method":t.col.filterTag,"reserve-selection":t.col.reserveSelection,"render-header":t.col.renderHeader,selectable:t.col.selectable}},[t.col.children&&t.col.children.length>0?[t._l(t.col.children,function(a,l){return[a.type!=="slot"?[s("column",{attrs:{col:a},scopedSlots:t._u([t._l(Object.keys(t.$scopedSlots),function(n){return{key:n,fn:function(o){return[t._t(n,null,null,o)]}}})],null,!0)})]:a.type==="slot"?[s("el-table-column",{attrs:{sortable:a.sortable,width:a.width,prop:a.prop,"show-overflow-tooltip":typeof a.showTooltip>"u"?!0:a.showTooltip,label:t.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:!1,align:a.align?a.align:"center","render-header":a.renderHeader,filters:a.filters,"filter-method":a.filterTag,"filter-placement":"bottom-end","reserve-selection":a.reserveSelection,type:a.colType},scopedSlots:t._u([{key:"default",fn:function(n){return[t._t(a.slotType,null,{row:n.row,index:n.$index})]}}],null,!0)})]:t._e()]})]:t._e()],2)},_sfc_staticRenderFns$4L=[],__component__$4L=chartbi.normalizeComponent(_sfc_main$4L,_sfc_render$4L,_sfc_staticRenderFns$4L,!1,null,"cff47705",null,null);const Column=__component__$4L.exports,main_vue_vue_type_style_index_0_scoped_51332654_lang="",__default__={name:"GdTables",props:Object.assign({},{record:{type:Object,default:()=>({})},recordoperations:{type:Object,default:()=>({})},dataSource:{type:Function,required:!0},size:{type:String,default:"small"},rowKey:{type:[String,Function],default:"id"},amount:{type:Function},load:{type:Function},tableTree:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},border:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},cellStyle:{type:Function},cellClassName:{type:Function},rowClassName:{type:Function},defaultExpandedKeys:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},selectedKeep:{type:Boolean,default:!1},height:{type:Number,default:0},maxHeight:{type:Number,default:0},indent:{type:Number,default:16},pageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100,200,500]},tableExpand:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},method:{type:Boolean,default:!1},columnKey:{type:String,default:""},showSummary:{type:Boolean,default:!1},headerCellStyle:{type:[Object,Function],default:()=>({})},showPagination:{type:Boolean,default:!0},initialLoading:{type:Boolean,default:!0},filtering:{type:Boolean,default:!1},isGather:{type:Boolean,default:!1},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},disabledColumnSettings:{type:Boolean,default:!1},density:{type:Boolean,default:!0},stripe:{type:Boolean,default:!0},istool:{type:Boolean,default:!0},istable:{type:Boolean,default:!1},stripeColor:{type:String,default:"#FAFAFA"},lineHeight:{type:Number,default:0},paginationStyle:{type:String,default:""},defaultSort:{type:Object,default:()=>({prop:"id",order:null})}}),components:{Column},computed:{fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){let i=0,t=this.columnsSetting.filter(o=>{const r=o.checked===void 0||o.checked,d=this.columns.filter(p=>p.prop===o.prop)[0],u=d?d.owidth?d.owidth:d.width?d.width:d.minWidth?d.minWidth:"150":"150";return d&&d.width&&!o.width&&(o.width=d.width),d&&d.minWidth&&!o.minWidth&&(o.minWidth=d.minWidth),r&&(i+=Number(u)),r});if(this.wid===0||t.filter(o=>o.width||o.minWidth).length!==t.length)return t;const a=i-this.wid,l=t[t.length-1],n=l?l.width?Number(l.width):l.minWidth?Number(l.minWidth):0:0;if(a<0){const o=t.length===0?0:Math.floor(Math.abs(a)/t.length);t.filter(r=>(r.width&&!["selection","selection-radio"].includes(r.type)&&(r.width=o+Number(r.owidth)),l.prop===r.prop&&delete r.width,r))}else a<n&&(l.minWidth||l.width)&&(l.width=n);return t},selectionType(){const i=this.columns.filter(t=>t.type==="selection"||t.type==="selection-radio")[0];return i?i.type==="selection"?"checkbox":"radio":null},hasClear(){let i=[];for(let t in this.sorter)i.push(t);return i.length},dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.1)};color:${this.primaryColor}`},computedLineHeight(){return this.lineHeight+"px"},totalPages(){return Math.ceil(this.total/this.pageSized)},...chartbi.mapGetters(["primaryColor","language","screenWidth","multiTab"])},data(){return{hasTableExpand:!1,tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1,frozenColumn:0,wid:0,triggerFilter:"manual",clearData:!1,tableKey:chartbi.uuid(12)}},watch:{screenWidth(){this.$nextTick(()=>{this.getWid(),setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},tableExpand:{handler(i){const t=this.$refs.refTable,s=this.getChildRens(this.tableData),a=chartbi.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children");this.hasTableExpand||a.map(l=>{s.includes(l.id)?t.toggleRowExpansion(l,!1):(console.log(8),t.toggleRowExpansion(l,!0))})},deep:!0},tableData:{handler(){this.keyValue=void 0,this.numbers=0},deep:!0},language:{handler(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},deep:!0},size:{handler(i){this.$nextTick(()=>{setTimeout(()=>{this.customSize=i,this.$refs.refTable.doLayout(),this.getWid()},0)})},deep:!0},"$route.path"(i,t){i!==t&&this.multiTab&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},0)})}},methods:{rowContextmenu(i,t,s){this.$emit("rowContextmenu",{row:i,column:t,event:s})},changeFilterVisible(){this.visibleFilter=!this.visibleFilter},changeTriggerFilter(i){},doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getWid(){let i=new ResizeObserver(s=>{for(let a of s)this.wid=a.contentRect.width,this.wid>0&&i.disconnect()}),t=this.$refs.reftables;this.wid=t?t.clientWidth:this.wid,t&&this.wid===0&&i.observe(t)},setTableData(i,t=!1){this.tableData=i,this.loading=t},selecTables(i,t){return!this.disabledRowId.includes(i.id)},changeFilter(i){this.visibleFilter=i},closeFilter(){this.$refs.filterdropdown.doClose()},cellClassNamed({row:i,rowIndex:t}){return this.cellClassName&&typeof this.cellClassName=="function"?this.cellClassName({row:i,rowIndex:t}):""},rowClassNamed({row:i,rowIndex:t}){if(this.rowClassName&&typeof this.rowClassName=="function")return this.rowClassName({row:i,rowIndex:t});if(this.istable){const s=[];return this.stripe&&t%2===1&&s.push("gd-table-row-even"),this.border&&s.push("gd-table-row-border"),this.lineHeight!==0&&s.push("gd-table-row-row-height"),s.join(" ")||""}return""},columnChange(i){this.columns.filter(l=>l.fixed);let t=[...i],s=1;return t.forEach((l,n)=>{t[n].fixed=!1,s<this.frozenColumn&&l.checked&&(t[n].fixed=!0,s++)}),t.filter(l=>["selection","selection-radio"].includes(l.type)?!1:l.checked).length===0&&(t=JSON.parse(JSON.stringify(t))),this.$emit("columnChange",t),this.columnsSetting=t,this.loading=!0,new Promise((l,n)=>{this.$nextTick(()=>{setTimeout(()=>{this.tableKey=chartbi.uuid(12),this.loading=!1,this.$refs.refTable.doLayout(),l()},0)})})},summaries(i){return this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},10)}),this.amount(i)},spanMethod({row:i,column:t}){if(t.property===this.columnKey){let s=0,a=0;if(this.keyValue!==i[this.columnKey]){for(;s<this.tableData.length;)this.tableData[s][this.columnKey]===i[this.columnKey]&&a++,s++;this.keyValue=i[this.columnKey]}else a=0;return{rowspan:a,colspan:1}}},handlerClick(i){this.$emit("handlerClick",i)},handleButton(i,t,s){this.$emit("handleButton",{methods:i,row:t})},handleFilterChange(i){this.$emit("handleFilterChange",i)},handleSelectionChange(i){if(!this.loading){const t=this.rowKey||"index";let s=[];i.forEach((a,l)=>{s.push(a[t])}),this.$emit("onChange",s,i);return}this.selectedKeep&&this.$emit("onChange",this.selectedRowKeys,[])},changRadio(i){if(this.loading)return;const t=this.rowKey||"index",s=this.tableData.filter(a=>a[t]===i)[0];this.$emit("onChange",[s[t]],[s])},changRadioStop(){},handleSelect(i,t){this.$emit("handleSelect",i,t)},selectAll(i){this.$emit("selectAll",i)},rowClick(i,t,s){this.$emit("rowClick",i,t)},handleSizeChange(i){this.pageSized=i,this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.istable&&(this.currentPage=1),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},handleCurrentChange(i,t){this.currentPage=i,this.istable&&(this.pageSized=t),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},expandChange(i,t){this.hasTableExpand=!0,this.$emit("expandChange",{val:i,expanded:t})},getChildRens(i){const t=[];return i.map(s=>{if(this.tableExpand.includes(s[this.rowKey])||t.push(s[this.rowKey]),Object.prototype.hasOwnProperty.call(s,"children")){const a=this.getChildRens(s.children);t.push(...a)}}),t},handleCurrentRowChange(i){this.$emit("handleCurrentRowChange",i)},handleHeaderDragEnd(){this.$nextTick(()=>{this.$refs.refTable.doLayout()})},changColumnHeight(i){this.customSize=i,this.$nextTick(()=>{this.$refs.refTable.doLayout()}),this.$emit("changTableSize",i)},sortChange({prop:i,order:t}){this.sorter=t?{sortField:i,sortOrder:t.replace("ending","")}:{},this.loadData()},loadData(){if(this.loading)return;this.loading=!0;const i=this.dataSource(Object.assign({...this.sorter},{pageNo:this.currentPage,pageSize:this.pageSized}));(typeof i=="object"||typeof i=="function")&&typeof i.then=="function"?i.then(t=>{let s=t&&t.rows?t.rows:[];this.currentPage=t.pageno,this.total=t.totalrows,this.clearData&&(this.tableData=[]),setTimeout(()=>{this.tableData=s,this.toggleRowSelection()},0),this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},50)})}):this.loading=!1},loadColumns(){return new Promise(i=>{this.$nextTick(()=>{this.columnsSetting=this.columns.map(s=>Object.assign({...s},{owidth:s.owidth!==void 0?s.owidth:s.width!==void 0?s.width:s.minWidth})),this.$emit("columnChange",this.columnsSetting);const t=this.columns.filter(s=>s.fixed);this.frozenColumn=t.length,setTimeout(()=>{this.$refs.columnSettings&&this.$refs.columnSettings.init(),this.$refs.refTable&&this.$refs.refTable.doLayout(),i(!0)},0)})})},setLoadData(i){this.tableData=JSON.parse(JSON.stringify(i)),this.total=i.length},getLoadData(){return new Promise((i,t)=>{i(this.tableData)})},rowClickSelection(i,t){this.$refs.refTable.toggleRowSelection(i,t)},toggleRowSelectioClear(i){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=i[0]?i[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const t=this.rowKey||"index";let s=[];const a=(d,u)=>(d=d.filter((p,h)=>(i.includes(p[t])&&s.push(p),p.children&&p.children.length>0&&a(p.children),!0)),d);await a(this.tableData);const l=i.filter(d=>{let u=null;return this.tableData.filter(p=>{if(d===p[t]&&(u=p),p.children&&p.children.length>0){const h=p.children.filter(f=>d===f[t])[0];u=h||u}return!0})[0],!u});let n=[];for(let d=0;d<l.length;d++){let u=new Map;u.set(t,l[d]),n.push(Object.fromEntries(u))}const o=s.concat(n);let r=[];for(let d=0;d<o.length;d++){let u=new Promise((p,h)=>{this.$refs.refTable.toggleRowSelection(o[d],!1),p(d)});r.push(u)}Promise.all(r).then(d=>{this.loading=!1})},10)})},async toggleRowSelection(){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=this.selectedRowKeys[0]?this.selectedRowKeys[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const i=this.rowKey||"index";let t=[];const s=(r,d)=>(r=r.filter((u,p)=>(this.selectedRowKeys.includes(u[i])&&t.push(u),u.children&&u.children.length>0&&s(u.children),!0)),r);await s(this.tableData);const a=this.selectedRowKeys.filter(r=>!this.tableData.filter(u=>r===u[i])[0]);let l=[];for(let r=0;r<a.length;r++){let d=new Map;d.set(i,a[r]),l.push(Object.fromEntries(d))}const n=t.concat(l);let o=[];for(let r=0;r<n.length;r++){let d=new Promise((u,p)=>{this.$refs.refTable&&this.$refs.refTable.toggleRowSelection(n[r],!0),u(r)});o.push(d)}Promise.all(o).then(r=>{this.loading=!1})},10)})},triggerRefresh(){this.refresh(!1),this.$emit("triggerRefresh")},refresh(i=!0){!this.selectedKeep&&i&&this.$emit("onChange",[],[]),i&&(this.currentPage=1),this.loadData()},clearAll(){if(this.state||this.loading)return;let i=[];for(let t in this.sorter)i.push(t);i.length!==0&&(this.state=!0,this.sorter={},this.$refs.refTable.clearSort(),this.$refs.refTable.clearFilter(),setTimeout(()=>{this.refresh(),this.state=!1},100))},fadeColor(i,t){let s=parseInt(i.substring(1,3),16),a=parseInt(i.substring(3,5),16),l=parseInt(i.substring(5,7),16);return`rgba(${s},${a},${l},${t})`}},created(){this.columnsSetting=this.columns.map(t=>Object.assign({...t},{owidth:t.owidth!==void 0?t.owidth:t.width!==void 0?t.width:t.minWidth}));const i=this.columns.filter(t=>t.fixed);this.frozenColumn=i.length,this.initialLoading&&this.loadData(),this.$nextTick(()=>{this.getWid()})}},__injectCSSVars__=()=>{Vue$1.useCssVars((i,t)=>({"3f45c621":i.stripeColor,"767963bd":i.computedLineHeight}))},__setup__=__default__.setup;__default__.setup=__setup__?(i,t)=>(__injectCSSVars__(),__setup__(i,t)):__injectCSSVars__;const _sfc_main$4K=__default__;var _sfc_render$4K=function(){var t=this,s=t._self._c;return s("div",[t.visibleFilter?s("div",{staticClass:"tables-tool-meng",on:{click:function(a){t.visibleFilter=!1}}}):t._e(),s("div",{ref:"reftables",staticClass:"gd-tables",style:{"--theme":t.primaryColor,"--fadecolor":t.fadeColord},attrs:{id:"reftables"}},[t.istool?s("div",{staticClass:"tables-tool"},[s("div",{staticClass:"tables-tool-l"},[t._t("operator")],2),s("div",{staticClass:"tables-tool-r"},[t.filtering?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.screen","\u7B5B\u9009"),placement:"bottom"}},[s("el-popover",{ref:"filterdropdown",attrs:{tabindex:2025,trigger:t.triggerFilter,placement:"bottom"},on:{show:function(a){return t.changeFilter(!0)},hide:function(a){return t.changeFilter(!1)}},model:{value:t.visibleFilter,callback:function(a){t.visibleFilter=a},expression:"visibleFilter"}},[s("span",{staticClass:"el-dropdown-link",attrs:{slot:"reference"},on:{click:t.changeFilterVisible},slot:"reference"},[s("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),s("div",[t._t("filtering",null,{columns:t.columns,height:t.height,colse:t.closeFilter,visible:t.visibleFilter,changeTrigger:t.changeTriggerFilter})],2)])],1):t._e(),t.isGather?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.chart","\u56FE\u8868"),placement:"bottom"}},[s("i",{staticClass:"gd-icons gd-icon-zhuzhuangtu",on:{click:function(a){return t.$emit("baseSeecharts")}}})]):t._e(),t.disabledRefresh?t._e():s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.refresh","\u5237\u65B0"),placement:"bottom"}},[s("i",{staticClass:"el-icon-refresh",on:{click:t.triggerRefresh}})]),t.density?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.density","\u5BC6\u5EA6"),placement:"bottom"}},[s("el-dropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.changColumnHeight}},[s("span",{staticClass:"el-dropdown-link"},[s("i",{staticClass:"el-icon-s-operation"})]),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{style:t.customSize==="medium"?t.dropdownActive:"",attrs:{command:"medium"}},[t._v(" "+t._s(t.$i18nt("gd.basics.default","\u9ED8\u8BA4"))+" ")]),s("el-dropdown-item",{style:t.customSize==="small"?t.dropdownActive:"",attrs:{command:"small"}},[t._v(" "+t._s(t.$i18nt("gd.basics.secondary","\u4E2D\u7B49"))+" ")]),s("el-dropdown-item",{style:t.customSize==="mini"?t.dropdownActive:"",attrs:{command:"mini"}},[t._v(" "+t._s(t.$i18nt("gd.basics.compact","\u7D27\u51D1"))+" ")])],1)],1)],1):t._e(),t.disabledColumnSettings?t._e():s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.columnSettings","\u5217\u8BBE\u7F6E"),placement:"bottom"}},[s("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[s("span",{staticClass:"el-dropdown-link"},[s("i",{staticClass:"el-icon-setting"})]),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("gd-column-settings",{ref:"columnSettings",attrs:{columns:t.columns,height:t.height},on:{columnChange:t.columnChange}})],1)],1)],1)],1)]):t._e(),s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:t.tableKey,ref:"refTable",staticClass:"table",class:t.border?"":"table-border",style:{width:"100%"},attrs:{stripe:t.stripe,"row-key":t.rowKey,"expand-row-keys":t.tableExpand,"tree-props":t.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,tooltip:!0,border:t.border,size:t.customSize,indent:t.indent,lazy:t.lazy,"show-summary":t.showSummary,"summary-method":t.summaries,"default-expand-all":t.defaultExpandAll,"virtual-scroll":!0,"element-loading-background":"rgba(255, 255, 255, 0.8)","element-loading-spinner":"el-icon-loading",data:t.tableData,"cell-style":t.cellStyle,height:t.height||null,"max-height":t.maxHeight||null,"default-sort":t.defaultSort,load:t.lazy?t.load:null,"span-method":t.method?t.spanMethod:null,"header-cell-style":t.headerCellStyle,"cell-class-name":t.cellClassNamed,"row-class-name":t.rowClassNamed},on:{"sort-change":t.sortChange,"filter-change":t.handleFilterChange,"selection-change":t.handleSelectionChange,"row-click":t.rowClick,"expand-change":t.expandChange,"select-all":t.selectAll,select:t.handleSelect,"current-change":t.handleCurrentRowChange,"header-dragend":t.handleHeaderDragEnd,"row-contextmenu":t.rowContextmenu}},[t._l(t.getColumns,function(a,l){return[a.type=="selection"?[s("el-table-column",{key:`${a.prop}_${l}`,attrs:{type:"selection",width:a.width,fixed:a.fixed?a.fixed:!1,align:a.align?a.align:"center",selectable:t.selecTables}})]:a.hidden!=!1&&a.type!=="slot"&&a.type!="expand"&&a.type!="selection-radio"?[s("column",{key:`${a.prop}_${l}`,attrs:{col:a,width:a.width},scopedSlots:t._u([t._l(Object.keys(t.$scopedSlots),function(n){return{key:n,fn:function(o){return[t._t(n,null,null,o)]}}})],null,!0)})]:a.type=="expand"?[s("el-table-column",{key:`${a.prop}_${l}`,attrs:{width:a.width,label:t.$i18nt(a.transKey,a.label),type:"expand"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._t(a.slotType,null,{row:n.row,index:n.$index})]}}],null,!0)})]:a.type=="selection-radio"?[s("el-table-column",{key:`${a.prop}_${l}`,attrs:{width:a.width,label:"",fixed:a.fixed?a.fixed:!1,align:a.align?a.align:"center",selectable:t.selecTables},scopedSlots:t._u([{key:"default",fn:function(n){return[s("div",{on:{click:function(o){return o.stopPropagation(),t.changRadioStop.apply(null,arguments)}}},[s("el-radio",{attrs:{label:n.row[t.rowKey],size:"small",disabled:!t.selecTables(n.row)},on:{input:t.changRadio},model:{value:t.currentRow,callback:function(o){t.currentRow=o},expression:"currentRow"}},[t._v(" "+t._s("")+" ")])],1)]}}],null,!0)})]:a.type==="slot"?[s("el-table-column",{key:`${a.prop}_${l}`,attrs:{width:a.width,"show-overflow-tooltip":typeof a.showTooltip>"u"?!0:a.showTooltip,prop:a.prop,label:t.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:!1,sortable:a.sortable,align:a.align?a.align:"center","render-header":a.renderHeader,filters:a.filters,"filter-method":a.filterTag,"filter-placement":"bottom-end","reserve-selection":a.reserveSelection,type:a.colType},scopedSlots:t._u([{key:"default",fn:function(n){return[t._t(a.slotType,null,{row:n.row,index:n.$index,column:n.column})]}}],null,!0)})]:t._e()]}),s("template",{slot:"empty"},[s("div",{staticClass:"gd-table-empty"},[s("i",{staticClass:"el-icon-receiving"}),s("div",{staticClass:"empty-title"},[t._v(" "+t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A"))+" ")])])])],2),t.showPagination?s("div",{staticClass:"gd-paging",style:t.paginationStyle},[s("el-pagination",{attrs:{background:"","page-sizes":t.pageSizes,"page-size":t.pageSized,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"update:currentPage":function(a){t.currentPage=a},"update:current-page":function(a){t.currentPage=a},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},_sfc_staticRenderFns$4K=[],__component__$4K=chartbi.normalizeComponent(_sfc_main$4K,_sfc_render$4K,_sfc_staticRenderFns$4K,!1,null,"51332654",null,null);const GDpackage$x=__component__$4K.exports;GDpackage$x.install=function(i){i.component(GDpackage$x.name,GDpackage$x)};const main_vue_vue_type_style_index_0_scoped_790b1923_lang="",_sfc_main$4J={name:"GdTableVirtual",props:Object.assign({},{record:{type:Object,default:()=>({})},dataSource:{type:Function,required:!0},size:{type:String,default:"small"},rowKey:{type:[String,Function],default:"id"},amount:{type:Function},load:{type:Function},tableTree:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},border:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},cellStyle:{type:Function},cellClassName:{type:Function},rowClassName:{type:Function},defaultExpandedKeys:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},selectedKeep:{type:Boolean,default:!1},height:{type:Number,default:0},maxHeight:{type:Number,default:0},indent:{type:Number,default:16},pageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100,200,500]},tableExpand:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},method:{type:Boolean,default:!1},columnKey:{type:String,default:""},showSummary:{type:Boolean,default:!1},headerCellStyle:{type:[Object,Function],default:()=>({})},showPagination:{type:Boolean,default:!0},initialLoading:{type:Boolean,default:!0},filtering:{type:Boolean,default:!1},isGather:{type:Boolean,default:!1},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},disabledColumnSettings:{type:Boolean,default:!1},stripe:{type:Boolean,default:!0},rowHeight:{type:Number,default:25}}),computed:{getRowHeight(){let i=0;return this.rowHeight+i},fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){let i=0,t=this.columnsSetting.filter(o=>{const r=o.checked===void 0||o.checked,d=this.columns.filter(p=>p.prop===o.prop)[0],u=d?d.width?d.width:d.minWidth?d.minWidth:"150":"150";return d&&d.width&&!o.width&&(o.width=d.width),d&&d.minWidth&&!o.minWidth&&(o.minWidth=d.minWidth),r&&(i+=Number(u)),r});if(this.wid===0||t.filter(o=>o.width||o.minWidth).length!==t.length)return t;const a=i-this.wid,l=t[t.length-1],n=l.width?Number(l.width):l.minWidth?Number(l.minWidth):0;return a<0?t.filter(o=>(o.width&&!["selection","selection-radio"].includes(o.type)&&delete o.width,o)):a<n&&(l.minWidth||l.width)&&(l.width=n),t},selectionType(){const i=this.columns.filter(t=>t.type==="selection"||t.type==="selection-radio")[0];return i?i.type==="selection"?"checkbox":"radio":null},hasClear(){let i=[];for(let t in this.sorter)i.push(t);return i.length},dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.1)};color:${this.primaryColor}`},totalPages(){return Math.ceil(this.total/this.pageSized)},...chartbi.mapGetters(["primaryColor","language","screenWidth","multiTab"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1,frozenColumn:0,wid:0}},watch:{screenWidth(){this.$nextTick(()=>{this.getWid(),setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},tableExpand:{handler(){const i=this.$refs.refTable,t=this.getChildRens(this.tableData);chartbi.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(a=>{t.includes(a.id)?i.toggleRowExpansion(a,!1):i.toggleRowExpansion(a,!0)})},deep:!0},tableData:{handler(){this.keyValue=void 0,this.numbers=0},deep:!0},language:{handler(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},deep:!0},size:{handler(i){this.$nextTick(()=>{setTimeout(()=>{this.customSize=i,this.$refs.refTable.doLayout(),this.getWid()},0)})},deep:!0},"$route.path"(i,t){i!==t&&this.multiTab&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},0)})}},methods:{doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getWid(){let i=this.$refs.reftables;this.wid=i?i.clientWidth:this.wid},setTableData(i,t=!1){this.tableData=i,this.loading=t},selecTables(i,t){return!this.disabledRowId.includes(i.id)},changeFilter(i){this.visibleFilter=i},closeFilter(){this.$refs.filterdropdown.doClose()},cellClassNamed({row:i,rowIndex:t}){return this.cellClassName&&typeof this.cellClassName=="function"?this.cellClassName({row:i,rowIndex:t}):""},rowClassNamed({row:i,rowIndex:t}){return this.rowClassName&&typeof this.rowClassName=="function"?this.rowClassName({row:i,rowIndex:t}):""},columnChange(i){this.columns.filter(a=>a.fixed);let t=[...i],s=1;return t.forEach((a,l)=>{t[l].fixed=!1,s<this.frozenColumn&&a.checked&&(t[l].fixed=!0,s++)}),this.$emit("columnChange",t),this.columnsSetting=t,new Promise((a,l)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(i){return this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable&&this.$refs.refTable.doLayout()},10)}),this.amount(i)},spanMethod({row:i,column:t}){if(t.property===this.columnKey){let s=0,a=0;if(this.keyValue!==i[this.columnKey]){for(;s<this.tableData.length;)this.tableData[s][this.columnKey]===i[this.columnKey]&&a++,s++;this.keyValue=i[this.columnKey]}else a=0;return{rowspan:a,colspan:1}}},handlerClick(i){this.$emit("handlerClick",i)},handleButton(i,t,s){this.$emit("handleButton",{methods:i,row:t})},handleFilterChange(i){this.$emit("handleFilterChange",i)},handleSelectionChange(i){if(!this.loading){const t=this.rowKey||"index";let s=[];i.forEach((a,l)=>{s.push(a[t])}),this.$emit("onChange",s,i);return}this.selectedKeep&&this.$emit("onChange",this.selectedRowKeys,[])},changRadio(i){if(this.loading)return;const t=this.rowKey||"index",s=this.tableData.filter(a=>a[t]===i)[0];this.$emit("onChange",[s[t]],[s])},handleSelect(i,t){this.$emit("handleSelect",i,t)},selectAll(i){this.$emit("selectAll",i)},rowClick(i,t,s){this.$emit("rowClick",i,t)},handleSizeChange(i){this.pageSized=i,this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},handleCurrentChange(i){this.currentPage=i,this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},expandChange(i,t){this.$emit("expandChange",{val:i,expanded:t})},getChildRens(i){const t=[];return i.map(s=>{if(this.tableExpand.includes(s.id)||t.push(s.id),Object.prototype.hasOwnProperty.call(s,"children")){const a=this.getChildRens(s.children);t.push(...a)}}),t},handleCurrentRowChange(i){this.$emit("handleCurrentRowChange",i)},handleHeaderDragEnd(){this.$nextTick(()=>{this.$refs.refTable.doLayout()})},changColumnHeight(i){this.customSize=i,this.$nextTick(()=>{this.$refs.refTable.doLayout()})},sortChange({prop:i,order:t}){this.sorter=t?{sortField:i,sortOrder:t.replace("ending","")}:{},this.loadData()},loadData(){if(this.loading)return;this.loading=!0;const i=this.dataSource(Object.assign({...this.sorter},{pageNo:this.currentPage,pageSize:this.pageSized}));(typeof i=="object"||typeof i=="function")&&typeof i.then=="function"?i.then(t=>{let s=t&&t.rows?t.rows:[];this.tableData=s,this.currentPage=t.pageno,this.total=t.totalrows,this.getWid(),this.toggleRowSelection()}):this.loading=!1},loadColumns(){return new Promise(i=>{this.$nextTick(()=>{this.columnsSetting=[...this.columns],this.$emit("columnChange",this.columnsSetting);const t=this.columns.filter(s=>s.fixed);this.frozenColumn=t.length,setTimeout(()=>{this.$refs.columnSettings.init(),this.$refs.refTable.doLayout(),i(!0)},0)})})},setLoadData(i){this.tableData=[...i],this.total=i.length},getLoadData(){return new Promise((i,t)=>{i(this.tableData)})},toggleRowSelectioClear(i){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=i[0]?i[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const t=this.rowKey||"index";let s=[];const a=(d,u)=>(d=d.filter((p,h)=>(i.includes(p[t])&&s.push(p),p.children&&p.children.length>0&&a(p.children),!0)),d);await a(this.tableData);const l=i.filter(d=>{let u=null;return this.tableData.filter(p=>{if(d===p[t]&&(u=p),p.children&&p.children.length>0){const h=p.children.filter(f=>d===f[t])[0];u=h||u}return!0})[0],!u});let n=[];for(let d=0;d<l.length;d++){let u=new Map;u.set(t,l[d]),n.push(Object.fromEntries(u))}const o=s.concat(n);let r=[];for(let d=0;d<o.length;d++){let u=new Promise((p,h)=>{this.$refs.refTable.toggleRowSelection(o[d],!1),p(d)});r.push(u)}Promise.all(r).then(d=>{this.loading=!1})},10)})},async toggleRowSelection(){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=this.selectedRowKeys[0]?this.selectedRowKeys[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const i=this.rowKey||"index";let t=[];const s=(r,d)=>(r=r.filter((u,p)=>(this.selectedRowKeys.includes(u[i])&&t.push(u),u.children&&u.children.length>0&&s(u.children),!0)),r);await s(this.tableData);const a=this.selectedRowKeys.filter(r=>!this.tableData.filter(u=>r===u[i])[0]);let l=[];for(let r=0;r<a.length;r++){let d=new Map;d.set(i,a[r]),l.push(Object.fromEntries(d))}const n=t.concat(l);let o=[];for(let r=0;r<n.length;r++){let d=new Promise((u,p)=>{this.$refs.refTable.toggleRowSelection(n[r],!0),u(r)});o.push(d)}Promise.all(o).then(r=>{this.loading=!1})},10)})},refresh(i=!0){!this.selectedKeep&&i&&this.$emit("onChange",[],[]),i&&(this.currentPage=1),this.loadData()},clearAll(){if(this.state||this.loading)return;let i=[];for(let t in this.sorter)i.push(t);i.length!==0&&(this.state=!0,this.sorter={},this.$refs.refTable.clearSort(),this.$refs.refTable.clearFilter(),setTimeout(()=>{this.refresh(),this.state=!1},100))},fadeColor(i,t){let s=parseInt(i.substring(1,3),16),a=parseInt(i.substring(3,5),16),l=parseInt(i.substring(5,7),16);return`rgba(${s},${a},${l},${t})`}},created(){this.columnsSetting=[...this.columns];const i=this.columns.filter(t=>t.fixed);this.frozenColumn=i.length,this.initialLoading&&this.loadData()}};var _sfc_render$4J=function(){var t=this,s=t._self._c;return s("div",{ref:"reftables",staticClass:"gd-tables",style:{"--theme":t.primaryColor,"--fadecolor":t.fadeColord},attrs:{id:"reftables"}},[s("div",{staticClass:"tables-tool"},[s("div",{staticClass:"tables-tool-l"},[t._t("operator")],2),s("div",{staticClass:"tables-tool-r"},[t.hasClear?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.reset","\u91CD\u7F6E"),placement:"bottom"}},[s("i",{staticClass:"el-icon-brush",on:{click:t.clearAll}})]):t._e(),t.filtering?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.screen","\u7B5B\u9009"),placement:"bottom"}},[s("el-popover",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"},on:{show:function(a){return t.changeFilter(!0)},hide:function(a){return t.changeFilter(!1)}}},[s("span",{staticClass:"el-dropdown-link",attrs:{slot:"reference"},slot:"reference"},[s("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),s("div",[t._t("filtering",null,{columns:t.columns,height:t.height,colse:t.closeFilter,visible:t.visibleFilter})],2)])],1):t._e(),t.isGather?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.chart","\u56FE\u8868"),placement:"bottom"}},[s("i",{staticClass:"gd-icons gd-icon-zhuzhuangtu",on:{click:function(a){return t.$emit("baseSeecharts")}}})]):t._e(),t.disabledRefresh?t._e():s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.refresh","\u5237\u65B0"),placement:"bottom"}},[s("i",{staticClass:"el-icon-refresh",on:{click:function(a){return t.refresh(!1)}}})]),s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.density","\u5BC6\u5EA6"),placement:"bottom"}},[s("el-dropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.changColumnHeight}},[s("span",{staticClass:"el-dropdown-link"},[s("i",{staticClass:"el-icon-s-operation"})]),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{style:t.customSize==="medium"?t.dropdownActive:"",attrs:{command:"medium"}},[t._v(" "+t._s(t.$i18nt("gd.basics.default","\u9ED8\u8BA4"))+" ")]),s("el-dropdown-item",{style:t.customSize==="small"?t.dropdownActive:"",attrs:{command:"small"}},[t._v(" "+t._s(t.$i18nt("gd.basics.secondary","\u4E2D\u7B49"))+" ")]),s("el-dropdown-item",{style:t.customSize==="mini"?t.dropdownActive:"",attrs:{command:"mini"}},[t._v(" "+t._s(t.$i18nt("gd.basics.compact","\u7D27\u51D1"))+" ")])],1)],1)],1),t.disabledColumnSettings?t._e():s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.columnSettings","\u5217\u8BBE\u7F6E"),placement:"bottom"}},[s("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[s("span",{staticClass:"el-dropdown-link"},[s("i",{staticClass:"el-icon-setting"})]),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("gd-column-settings",{ref:"columnSettings",attrs:{columns:t.columns,height:t.height},on:{columnChange:t.columnChange}})],1)],1)],1)],1)]),s("u-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"refTable",staticClass:"table",class:t.border?"":"table-border",staticStyle:{width:"100%"},attrs:{"row-height":t.getRowHeight,"use-virtual":"",stripe:t.stripe,"row-key":t.rowKey,"expand-row-keys":t.tableExpand,"tree-props":t.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,tooltip:!0,border:t.border,size:t.customSize,indent:t.indent,lazy:t.lazy,"show-summary":t.showSummary,"summary-method":t.summaries,"default-expand-all":t.defaultExpandAll,"virtual-scroll":!0,"element-loading-background":"rgba(255, 255, 255, 0.8)","element-loading-spinner":"el-icon-loading",data:t.tableData,"cell-style":t.cellStyle,height:t.height||null,"max-height":t.maxHeight||null,"default-sort":{prop:"id",order:null},load:t.lazy?t.load:null,"span-method":t.method?t.spanMethod:null,"header-cell-style":t.headerCellStyle,"cell-class-name":t.cellClassNamed,"row-class-name":t.rowClassNamed},on:{"sort-change":t.sortChange,"filter-change":t.handleFilterChange,"selection-change":t.handleSelectionChange,"row-click":t.rowClick,"expand-change":t.expandChange,"select-all":t.selectAll,select:t.handleSelect,"current-change":t.handleCurrentRowChange,"header-dragend":t.handleHeaderDragEnd}},[t._l(t.getColumns,function(a,l){return[a.type=="selection"?[s("u-table-column",{attrs:{type:"selection",width:a.width,fixed:a.fixed?a.fixed:!1,align:a.align?a.align:"center",selectable:t.selecTables}})]:a.type=="selection-radio"?[s("u-table-column",{key:a.key?a.key:l,attrs:{width:a.width,label:"",fixed:a.fixed?a.fixed:!1,align:a.align?a.align:"center"},scopedSlots:t._u([{key:"default",fn:function(n){return[s("el-radio",{attrs:{label:n.row[t.rowKey],size:"small"},on:{input:t.changRadio},model:{value:t.currentRow,callback:function(o){t.currentRow=o},expression:"currentRow"}},[t._v(" "+t._s("")+" ")])]}}],null,!0)})]:a.hidden!=!1&&a.type!=="slot"&&a.type!="expand"&&a.type!="selection-radio"?[s("u-table-column",{attrs:{width:a.width,prop:a.prop,label:t.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:!1,title:t.$i18nt(a.transKey,a.label)}})]:a.type=="expand"?[s("u-table-column",{key:a.key?a.key:l,attrs:{width:a.width,label:t.$i18nt(a.transKey,a.label),type:"expand"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._t(a.slotType,null,{row:n.row,index:n.$index})]}}],null,!0)})]:a.type==="slot"?[s("u-table-column",{key:a.key?a.key:l,attrs:{width:a.width,"show-overflow-tooltip":typeof a.showTooltip>"u"?!0:a.showTooltip,"min-width":a.minWidth,prop:a.prop,label:t.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:!1,sortable:a.sortable?a.sortable:!1,align:a.align?a.align:"center","render-header":a.renderHeader,filters:a.filters,"filter-method":a.filterTag,"filter-placement":"bottom-end","reserve-selection":a.reserveSelection,type:a.colType},scopedSlots:t._u([{key:"default",fn:function(n){return[t._t(a.slotType,null,{row:n.row,index:n.$index,column:n.column})]}}],null,!0)})]:t._e()]}),s("template",{slot:"empty"},[s("div",{staticClass:"gd-table-empty"},[s("i",{staticClass:"el-icon-receiving"}),s("div",{staticClass:"empty-title"},[t._v(" "+t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A"))+" ")])])])],2),s("div",{staticClass:"gd-paging"},[t.showPagination?s("el-pagination",{attrs:{background:"","page-sizes":t.pageSizes,"page-size":t.pageSized,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"update:currentPage":function(a){t.currentPage=a},"update:current-page":function(a){t.currentPage=a},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)],1)},_sfc_staticRenderFns$4J=[],__component__$4J=chartbi.normalizeComponent(_sfc_main$4J,_sfc_render$4J,_sfc_staticRenderFns$4J,!1,null,"790b1923",null,null);const GDpackage$w=__component__$4J.exports;GDpackage$w.install=function(i){i.component(GDpackage$w.name,GDpackage$w)};const main_vue_vue_type_style_index_0_scoped_5815332a_lang="",_sfc_main$4I={name:"GdTableUmy",props:Object.assign({},{record:{type:Object,default:()=>({})},dataSource:{type:Function,required:!0},size:{type:String,default:"small"},rowKey:{type:[String,Function],default:"id"},amount:{type:Function},load:{type:Function},tableTree:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},border:{type:Boolean,default:!1},columns:{type:Array,default:()=>[]},cellStyle:{type:Function},cellClassName:{type:Function},rowClassName:{type:Function},defaultExpandedKeys:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},selectedKeep:{type:Boolean,default:!1},height:{type:Number,default:0},maxHeight:{type:Number,default:0},indent:{type:Number,default:16},pageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100,200,500]},tableExpand:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},method:{type:Boolean,default:!1},columnKey:{type:String,default:""},showSummary:{type:Boolean,default:!1},headerCellStyle:{type:[Object,Function],default:()=>({})},showPagination:{type:Boolean,default:!0},initialLoading:{type:Boolean,default:!0},filtering:{type:Boolean,default:!1},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1}}),computed:{fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){return this.columnsSetting.filter(i=>i.checked===void 0||i.checked)},selectionType(){const i=this.columns.filter(t=>t.type==="selection"||t.type==="selection-radio")[0];return i?i.type==="selection"?"checkbox":"radio":null},hasClear(){let i=[];for(let t in this.sorter)i.push(t);return i.length},dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.1)};color:${this.primaryColor}`},totalPages(){return Math.ceil(this.total/this.pageSized)},...chartbi.mapGetters(["primaryColor","language"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1}},watch:{tableExpand:{handler(){const i=this.$refs.refTable,t=this.getChildRens(this.tableData);chartbi.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(a=>{t.includes(a.id)?i.toggleRowExpansion(a,!1):i.toggleRowExpansion(a,!0)})},deep:!0},tableData:{handler(){this.keyValue=void 0,this.numbers=0},deep:!0},language:{handler(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},deep:!0},size:{handler(i){this.$nextTick(()=>{setTimeout(()=>{this.customSize=i,this.$refs.refTable.doLayout()},0)})},deep:!0}},methods:{selecTables({row:i}){return!this.disabledRowId.includes(i.id)},changeFilter(i){this.visibleFilter=i},closeFilter(){this.$refs.filterdropdown.hide()},cellClassNamed({row:i,rowIndex:t}){return this.cellClassName&&typeof this.cellClassName=="function"?this.cellClassName({row:i,rowIndex:t}):""},rowClassNamed({row:i,rowIndex:t}){return this.rowClassName&&typeof this.rowClassName=="function"?this.rowClassName({row:i,rowIndex:t}):""},columnChange(i){let t=i.filter(a=>a.fixed),s=[...i];return s.forEach((a,l)=>{s[l].fixed=!1,l<t.length&&(s[l].fixed=!0)}),this.$emit("columnChange",s),this.columnsSetting=s,new Promise((a,l)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(i){return this.amount(i)},spanMethod({row:i,column:t}){if(t.property===this.columnKey){let s=0,a=0;if(this.keyValue!==i[this.columnKey]){for(;s<this.tableData.length;)this.tableData[s][this.columnKey]===i[this.columnKey]&&a++,s++;this.keyValue=i[this.columnKey]}else a=0;return{rowspan:a,colspan:1}}},handlerClick(i){this.$emit("handlerClick",i)},handleButton(i,t,s){this.$emit("handleButton",{methods:i,row:t})},handleFilterChange(i){this.$emit("handleFilterChange",i)},handleSelectionChange(i){if(this.loading)return;const t=this.rowKey||"index";let s=[];i.forEach((a,l)=>{s.push(a[t])}),this.$emit("onChange",s,i)},changRadio(i){if(this.loading)return;const t=this.rowKey||"index";let s={};this.tableData.forEach(a=>{if(a[t]===i&&(s={...a}),a.children&&a.children.length>0){const l=a.children.filter(n=>n[t]===i)[0];s=l?{...l}:s}}),this.$emit("onChange",[s[t]],[s])},handleSelect(i,t){this.$emit("handleSelect",i,t)},selectAll(i){this.$emit("selectAll",i)},rowClick(i,t,s){this.$emit("rowClick",i,t)},handleSizeChange(i){this.pageSized=i,this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},handleCurrentChange(i){this.currentPage=i,this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},expandChange(i,t){this.$emit("expandChange",{val:i,expanded:t})},getChildRens(i){const t=[];return i.map(s=>{if(this.tableExpand.includes(s.id)||t.push(s.id),Object.prototype.hasOwnProperty.call(s,"children")){const a=this.getChildRens(s.children);t.push(...a)}}),t},handleCurrentRowChange(i){this.$emit("handleCurrentRowChange",i)},handleHeaderDragEnd(){this.$nextTick(()=>{this.$refs.refTable.doLayout()})},changColumnHeight(i){this.customSize=i,this.$nextTick(()=>{this.$refs.refTable.doLayout()})},sortChange({prop:i,order:t}){this.sorter=t?{sortField:i,sortOrder:t.replace("ending","")}:{},this.loadData()},loadData(){this.loading=!0;const i=this.dataSource(Object.assign({...this.sorter},{pageNo:this.currentPage,pageSize:this.pageSized}));(typeof i=="object"||typeof i=="function")&&typeof i.then=="function"?i.then(t=>{let s=t&&t.rows?t.rows:[];this.tableData=[...s],this.currentPage=t.pageNo,this.total=t.totalRows,this.toggleRowSelection()}):this.loading=!1},setLoadData(i){this.tableData=[...i],this.total=i.length,this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getLoadData(){return new Promise((i,t)=>{i(this.tableData)})},async toggleRowSelection(){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=this.selectedRowKeys[0]?this.selectedRowKeys[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const i=this.rowKey||"index";let t=[];const s=(r,d)=>(r=r.filter((u,p)=>(this.selectedRowKeys.includes(u[i])&&t.push(u),u.children&&u.children.length>0&&s(u.children),!0)),r);await s(this.tableData);const a=this.selectedRowKeys.filter(r=>!this.tableData.filter(u=>r===u[i])[0]);let l=[];for(let r=0;r<a.length;r++){let d=new Map;d.set(i,a[r]),l.push(Object.fromEntries(d))}const n=t.concat(l);let o=[];for(let r=0;r<n.length;r++){let d=new Promise((u,p)=>{this.$refs.refTable.toggleRowSelection([{row:n[r],selected:!0}]),u(r)});o.push(d)}Promise.all(o).then(r=>{this.loading=!1})},10)})},refresh(i=!0){!this.selectedKeep&&i&&this.$emit("onChange",[],[]),i&&(this.currentPage=1),this.loadData()},clearAll(){if(this.state||this.loading)return;let i=[];for(let t in this.sorter)i.push(t);i.length!==0&&(this.state=!0,this.sorter={},this.$refs.refTable.clearSort(),this.$refs.refTable.clearFilter(),setTimeout(()=>{this.refresh(),this.state=!1},100))},fadeColor(i,t){let s=parseInt(i.substring(1,3),16),a=parseInt(i.substring(3,5),16),l=parseInt(i.substring(5,7),16);return`rgba(${s},${a},${l},${t})`}},created(){this.columnsSetting=this.columns,this.initialLoading&&this.loadData()}};var _sfc_render$4I=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-tables",style:{"--theme":t.primaryColor,"--fadecolor":t.fadeColord}},[s("div",{staticClass:"tables-tool"},[s("div",{staticClass:"tables-tool-l"},[t._t("operator")],2),s("div",{staticClass:"tables-tool-r"},[t.hasClear?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.reset","\u91CD\u7F6E"),placement:"bottom"}},[s("i",{staticClass:"el-icon-brush",on:{click:t.clearAll}})]):t._e(),t.filtering?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.screen","\u7B5B\u9009"),placement:"bottom"}},[s("el-dropdown",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"},on:{"visible-change":t.changeFilter}},[s("span",{staticClass:"el-dropdown-link"},[s("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t._t("filtering",null,{columns:t.columns,height:t.height,colse:t.closeFilter,visible:t.visibleFilter})],2)],1)],1):t._e(),t.disabledRefresh?t._e():s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.refresh","\u5237\u65B0"),placement:"bottom"}},[s("i",{staticClass:"el-icon-refresh",on:{click:function(a){return t.refresh(!1)}}})]),s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.density","\u5BC6\u5EA6"),placement:"bottom"}},[s("el-dropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.changColumnHeight}},[s("span",{staticClass:"el-dropdown-link"},[s("i",{staticClass:"el-icon-s-operation"})]),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{style:t.customSize==="medium"?t.dropdownActive:"",attrs:{command:"medium"}},[t._v(" "+t._s(t.$i18nt("gd.basics.default","\u9ED8\u8BA4"))+" ")]),s("el-dropdown-item",{style:t.customSize==="small"?t.dropdownActive:"",attrs:{command:"small"}},[t._v(" "+t._s(t.$i18nt("gd.basics.secondary","\u4E2D\u7B49"))+" ")]),s("el-dropdown-item",{style:t.customSize==="mini"?t.dropdownActive:"",attrs:{command:"mini"}},[t._v(" "+t._s(t.$i18nt("gd.basics.compact","\u7D27\u51D1"))+" ")])],1)],1)],1),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$i18nt("gd.basics.columnSettings","\u5217\u8BBE\u7F6E"),placement:"bottom"}},[s("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[s("span",{staticClass:"el-dropdown-link"},[s("i",{staticClass:"el-icon-setting"})]),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("gd-column-settings",{attrs:{columns:t.columns,height:t.height},on:{columnChange:t.columnChange}})],1)],1)],1)],1)]),s("ux-grid",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"refTable",staticClass:"table",staticStyle:{width:"100%"},attrs:{stripe:t.stripe,"row-key":"","expand-row-keys":t.tableExpand,"tree-props":t.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,"tree-config":t.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,tooltip:!0,border:t.border,size:t.customSize,indent:t.indent,lazy:t.lazy,"show-summary":t.showSummary,"summary-method":t.summaries,"default-expand-all":t.defaultExpandAll,"virtual-scroll":!0,"element-loading-background":"rgba(255, 255, 255, 0.8)","element-loading-spinner":"el-icon-loading",data:t.tableData,"cell-style":t.cellStyle,height:t.height||null,"max-height":t.maxHeight||null,"default-sort":{prop:"id",order:null},load:t.lazy?t.load:null,"span-method":t.method?t.spanMethod:null,"header-cell-style":t.headerCellStyle,"cell-class-name":t.cellClassNamed,"row-class-name":t.rowClassNamed,"checkbox-config":{checkMethod:t.selecTables}},on:{"sort-change":t.sortChange,"filter-change":t.handleFilterChange,"selection-change":t.handleSelectionChange,"row-click":t.rowClick,"expand-change":t.expandChange,"select-all":t.selectAll,select:t.handleSelect,"current-change":t.handleCurrentRowChange,"header-dragend":t.handleHeaderDragEnd}},[t._l(t.getColumns,function(a,l){return[a.type=="selection"?[s("ux-table-column",{attrs:{"tree-node":"",type:"checkbox",width:a.width,align:a.align?a.align:"center"}})]:a.type=="selection-radio"?[s("ux-table-column",{key:a.key?a.key:l,attrs:{"tree-node":"",width:a.width,label:"",fixed:a.fixed?a.fixed:"left",align:a.align?a.align:"center"},scopedSlots:t._u([{key:"default",fn:function(n){return[s("el-radio",{attrs:{label:n.row[t.rowKey],size:"small",disabled:t.disabledRowId.includes(n.row[t.rowKey])},on:{input:t.changRadio},model:{value:t.currentRow,callback:function(o){t.currentRow=o},expression:"currentRow"}},[t._v(" "+t._s("")+" ")])]}}],null,!0)})]:a.hidden!=!1&&a.type!=="slot"&&a.type!="expand"&&a.type!="selection-radio"?[s("ux-table-column",{attrs:{width:a.width,field:a.prop,label:t.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",title:t.$i18nt(a.transKey,a.label)}})]:a.type==="slot"?[s("ux-table-column",{key:a.key?a.key:l,attrs:{width:a.width,"show-header-overflow":typeof a.showTooltip>"u"?!0:a.showTooltip,"min-width":a.minWidth,field:a.prop,title:t.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",sortable:a.sortable?a.sortable:!1,align:a.align?a.align:"center","render-header":a.renderHeader,filters:a.filters,"filter-method":a.filterTag,"filter-placement":"bottom-end","reserve-selection":a.reserveSelection,type:a.colType},scopedSlots:t._u([{key:"default",fn:function(n){return[t._t(a.slotType,null,{row:n.row,index:n.$index,column:n.column})]}}],null,!0)})]:t._e()]}),s("template",{slot:"empty"},[s("div",{staticClass:"gd-table-empty"},[s("i",{staticClass:"el-icon-receiving"}),s("div",{staticClass:"empty-title"},[t._v(t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])],2),s("div",{staticClass:"gd-paging"},[t.showPagination?s("el-pagination",{attrs:{background:"","page-sizes":t.pageSizes,"page-size":t.pageSized,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"update:currentPage":function(a){t.currentPage=a},"update:current-page":function(a){t.currentPage=a},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)],1)},_sfc_staticRenderFns$4I=[],__component__$4I=chartbi.normalizeComponent(_sfc_main$4I,_sfc_render$4I,_sfc_staticRenderFns$4I,!1,null,"5815332a",null,null);const GDpackage$v=__component__$4I.exports;GDpackage$v.install=function(i){i.component(GDpackage$v.name,GDpackage$v)};const weekDays=6;function currentWeek(i){const t=new Date,s=t.getDay(),a=new Date(t.getFullYear(),t.getMonth(),t.getDate()-s),l=new Date(t.getFullYear(),t.getMonth(),t.getDate()+6-s);i.$emit("pick",[a,l])}function lasWeek(i){const t=new Date,s=new Date,a=[1,2,3,4,5,6,7][t.getDay()];s.setTime(s.getTime()-3600*1e3*24*(a+weekDays)),t.setTime(t.getTime()-3600*1e3*24*a),i.$emit("pick",[s,t])}function nextWeek(i){const t=new Date,s=new Date,a=[7,6,5,4,3,2,1][t.getDay()];s.setTime(s.getTime()+3600*1e3*24*a),t.setTime(t.getTime()+3600*1e3*24*(a+weekDays)),i.$emit("pick",[s,t])}function currentMonth(i){const t=new Date,s=new Date(t.getFullYear(),t.getMonth(),1),a=new Date(t.getFullYear(),t.getMonth()+1,1);a.setDate(a.getDate()-1),i.$emit("pick",[s,a])}function lastMonth(i){const t=new Date,s=new Date(t.getFullYear(),t.getMonth(),0),a=new Date(t.getFullYear(),t.getMonth()-1,1);i.$emit("pick",[a,s])}function nextMonth(i){const t=new Date,s=new Date(t.getFullYear(),t.getMonth()+2,0),a=new Date(t.getFullYear(),t.getMonth()+1,1);i.$emit("pick",[a,s])}function currentQuarter(i){const t=new Date,s=t.getMonth(),a=t.getFullYear();let l,n;s<3?(l=0,n=2):s<6?(l=3,n=5):s<9?(l=6,n=8):(l=9,n=11);const o=new Date(a,l,1),r=new Date(a,n+1,0);i.$emit("pick",[o,r])}function lastQuarter(i){const t=new Date,s=t.getMonth();let a=t.getFullYear(),l,n;s<3?(l=9,n=11,a--):s<6?(l=0,n=2):s<9?(l=3,n=5):(l=6,n=8);const o=new Date(a,l,1),r=new Date(a,n,new Date(a,n+1,0).getDate());i.$emit("pick",[o,r])}function nextQuarter(i){const t=new Date,s=t.getMonth();let a=t.getFullYear(),l,n;s<3?(l=3,n=5):s<6?(l=6,n=8):s<9?(l=9,n=11):(l=0,n=2,a++);const o=new Date(a,l,1),r=new Date(a,n+1,0);i.$emit("pick",[o,r])}function yearDate(i,t=0){const a=new Date().getFullYear()+t,l=new Date(a,0,1),n=new Date(a,11,31);i.$emit("pick",[l,n])}const column_vue_vue_type_style_index_0_scoped_5c146aff_lang="",_sfc_main$4H={name:"GdTablesFilter",props:{column:{type:Object,required:!0},queryParam:{type:Object,default:()=>({})},hideQueryField:{type:Array,default:()=>[]}},computed:{pickerIntervalOptions(){return{shortcuts:[{text:this.$i18nt("gd.view.lastWeek","\u6700\u8FD1\u4E00\u5468"),onClick(i){const t=new Date,s=new Date;s.setTime(s.getTime()-3600*1e3*24*6),i.$emit("pick",[s,t])}},{text:this.$i18nt("gd.view.lastMonth","\u6700\u8FD1\u4E00\u4E2A\u6708"),onClick(i){const t=new Date,s=new Date;s.setTime(s.getTime()-3600*1e3*24*30),i.$emit("pick",[s,t])}},{text:this.$i18nt("gd.view.pastThreeMonths","\u6700\u8FD1\u4E09\u4E2A\u6708"),onClick(i){const t=new Date,s=new Date;s.setTime(s.getTime()-3600*1e3*24*90),i.$emit("pick",[s,t])}},{text:this.$i18nt("gd.view.currentWeek","\u672C\u5468"),onClick(i){currentWeek(i)}},{text:this.$i18nt("gd.view.lastWeeks","\u4E0A\u4E00\u5468"),onClick(i){lasWeek(i)}},{text:this.$i18nt("gd.view.nextWeeks","\u4E0B\u4E00\u5468"),onClick(i){nextWeek(i)}},{text:this.$i18nt("gd.view.thisMonth","\u672C\u6708"),onClick(i){currentMonth(i)}},{text:this.$i18nt("gd.view.lastMonths","\u4E0A\u4E2A\u6708"),onClick(i){lastMonth(i)}},{text:this.$i18nt("gd.view.nextMonths","\u4E0B\u4E2A\u6708"),onClick(i){nextMonth(i)}},{text:this.$i18nt("gd.view.currentQuarter","\u672C\u5B63\u5EA6"),onClick(i){currentQuarter(i)}},{text:this.$i18nt("gd.view.lastQuarter","\u4E0A\u5B63\u5EA6"),onClick(i){lastQuarter(i)}},{text:this.$i18nt("gd.view.nextQuarter","\u4E0B\u5B63\u5EA6"),onClick(i){nextQuarter(i)}},{text:this.$i18nt("gd.view.currentYear","\u672C\u5E74"),onClick(i){yearDate(i)}},{text:this.$i18nt("gd.view.lastYear","\u53BB\u5E74"),onClick(i){yearDate(i,-1)}},{text:this.$i18nt("gd.view.nextYear","\u660E\u5E74"),onClick(i){yearDate(i,1)}}]}},pickerOptions(){return{shortcuts:[{text:this.$i18nt("gd.view.today","\u4ECA\u5929"),onClick(i){i.$emit("pick",new Date)}},{text:this.$i18nt("gd.view.yesterday","\u6628\u5929"),onClick(i){const t=new Date;t.setTime(t.getTime()-3600*1e3*24),i.$emit("pick",t)}},{text:this.$i18nt("gd.view.daysAgo3","3\u5929\u4E4B\u524D"),onClick(i){const t=new Date;t.setTime(t.getTime()-3600*1e3*24*3),i.$emit("pick",t)}},{text:this.$i18nt("gd.view.daysAgo5","5\u5929\u4E4B\u524D"),onClick(i){const t=new Date;t.setTime(t.getTime()-3600*1e3*24*5),i.$emit("pick",t)}},{text:this.$i18nt("gd.view.daysAgo7","7\u5929\u4E4B\u524D"),onClick(i){const t=new Date;t.setTime(t.getTime()-3600*1e3*24*7),i.$emit("pick",t)}}]}},rules(){return this.column.rules?this.column.rules:[]},disabled(){return this.column.disabled===void 0?!1:this.column.disabled},options(){return this.column.options?this.column.options:{}},style(){return this.column.align==="is-center"?"padding-left:18px":""},getDict(){return this.column.dictData?this.column.dictData:this.getDictionary()}},watch:{queryParam:{handler(i){this.$nextTick(()=>{let t=i[this.column.property];Array.isArray(t)?this.hasActive=t.length>0:this.hasActive=t!==""&&t!==void 0&&t!==null})},deep:!0,immediate:!0}},data(){return{ruleFormData:{},value:"",fkValue:[],visible:!1,hasActive:!1,show:!1,fkData:[],loading:!1,firstLoading:!1}},methods:{fkSearch(){!this.firstLoading&&this.fkData.length===0&&(this.searchData(""),this.firstLoading=!0)},searchData(i){this.loading=!0;const t=this.column.fkEntityName.split(",")[0];let s={name:i,fkEntityName:t};const a=this.fkData.filter(l=>this.fkValue.includes(String(l.id)));messages.baseFkList(s).then(l=>{if(this.loading=!1,l.code===200){const n=l.data.filter(o=>!this.fkValue.includes(String(o.id)));this.fkData=a.concat(n)}})},reset(){let i=new Map;for(let t of Object.keys(this.queryParam))t!==this.column.property&&i.set(t,this.queryParam[t]);this.$emit("query",Object.fromEntries(i),[this.column]),this.cancel()},save(){this.$refs.ruleForm.validate((i,t)=>{if(i){let s=new Map;for(let a of Object.keys(this.queryParam))a!==this.column.property&&s.set(a,this.queryParam[a]);this.$emit("query",Object.assign(Object.fromEntries(s),this.ruleFormData),[this.column]),this.cancel(),this.$nextTick(()=>{setTimeout(()=>{this.search()},10)})}else this.$message.error(`${this.$i18nt("gd.https.errors","\u6821\u9A8C\u5931\u8D25")}: ${this.rules[0].message}!`)})},cancel(){this.visible=!1,this.$refs.filterdropdown.doClose()},triggerSearch(){this.search(),this.$refs.filterdropdown.doToggle(),this.$emit("change",this.column),this.renderHeaderInit()},search(){let i=new Map;if(["inputnumber","double","currency"].includes(this.column.effectType))i.set(this.column.property,this.queryParam[this.column.property]);else if(["checkbox","selectMultiple","selectFkMultiple"].includes(this.column.effectType)||["datepicker"].includes(this.column.effectType)&&this.options.displayStyle!==1){let s=this.queryParam[this.column.property]===void 0?[]:this.queryParam[this.column.property];i.set(this.column.property,Array.isArray(s)?s:s.split(","))}else{let s=this.queryParam[this.column.property]===void 0?"":this.queryParam[this.column.property];i.set(this.column.property,s)}this.ruleFormData=Object.fromEntries(i);let t=this.ruleFormData[this.column.property];Array.isArray(t)?this.show=this.hasActive=t.length>0:this.show=this.hasActive=t!==""&&t!==void 0&&t!==null},renderHeaderInit(){this.column.executeEvent=this.cancel,this.$emit("renderHeaderInit",this.column)},getDictionary(){return this.$options.filters.dictData(this.column.dictTypeCode)}},created(){this.search(),this.renderHeaderInit()}};var _sfc_render$4H=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-table-head"},[s("div",{staticClass:"gd-table-label",style:t.style},[s("div",{staticClass:"line1",attrs:{title:t.column.label}},[t._v(t._s(t.column.label))])]),t.hideQueryField.includes(t.column.property)?t._e():s("el-popover",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"}},[s("span",{staticClass:"el-dropdown-link",attrs:{slot:"reference"},slot:"reference"},[s("i",{staticClass:"el-icon-search",class:t.hasActive?"active-color":"",on:{click:function(a){return a.stopPropagation(),t.triggerSearch.apply(null,arguments)}}})]),s("div",{staticClass:"gd-table-kuang"},[s("div",{staticClass:"gd-table-brush"},[t.show&&!t.disabled?s("span",{staticClass:"active-color",on:{click:function(a){return a.stopPropagation(),t.reset.apply(null,arguments)}}},[s("i",{staticClass:"el-icon-brush active-color"}),t._v(" "+t._s(t.$i18nt("gd.btn.resetFilter","\u91CD\u7F6E\u7B5B\u9009"))+" ")]):t._e(),s("div",{staticClass:"gd-table-btom"},[s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.save}},[t._v(t._s(t.$i18nt("gd.btn.confirm","\u786E\u8BA4")))]),s("el-button",{attrs:{type:"info",size:"mini"},on:{click:t.cancel}},[t._v(t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88")))])],1)]),s("el-form",{ref:"ruleForm",attrs:{model:t.ruleFormData,size:"small"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-form-item",{attrs:{label:"",prop:t.column.property,rules:t.rules}},[["inputnumber","double","currency"].includes(t.column.effectType)?[s("el-input-number",{staticStyle:{width:"100%"},attrs:{min:t.column.min||t.column.min===0?t.column.min:-1/0,max:t.column.max||t.column.max===0?t.column.max:1/0,placeholder:t.$i18nt("gd.placeholder.input"),clearable:"","controls-position":"right",disabled:t.disabled},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}})]:t.column.effectType==="checkbox"?[s("el-checkbox-group",{attrs:{disabled:t.disabled},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}},t._l(t.getDict,function(a){return s("el-checkbox",{key:a.code,attrs:{label:a.code,name:t.$i18nt(a.prefix?`${a.prefix}.${a.transKey}`:`Dynamics.${a.transKey}`,a.name)}},[t._v(" "+t._s(t.$i18nt(a.prefix?`${a.prefix}.${a.transKey}`:`Dynamics.${a.transKey}`,a.name))+" ")])}),1)]:t.column.effectType==="radio"?[s("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}},t._l(t.getDict,function(a){return s("el-radio",{key:a.code,attrs:{label:a.code,name:t.$i18nt(a.prefix?`${a.prefix}.${a.transKey}`:`Dynamics.${a.transKey}`,a.name)}},[t._v(" "+t._s(t.$i18nt(a.prefix?`${a.prefix}.${a.transKey}`:`Dynamics.${a.transKey}`,a.name))+" ")])}),1)]:t.column.effectType==="selectMultiple"?[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",clearable:"",multiple:"","collapse-tags":!0,disabled:t.disabled},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}},t._l(t.getDict,function(a){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(a.prefix?`${a.prefix}.${a.transKey}`:`Dynamics.${a.transKey}`,a.name)}},[t._v(" "+t._s(t.$i18nt(a.prefix?`${a.prefix}.${a.transKey}`:`Dynamics.${a.transKey}`,a.name))+" ")])}),1)]:t.column.effectType==="selectFkMultiple"?[s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":t.searchData,multiple:"","collapse-tags":!0,disabled:t.disabled},on:{focus:t.fkSearch},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}},t._l(t.fkData,function(a){return s("el-option",{key:a.id,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)]:t.column.effectType=="datepicker"?[t.column.displayStyle===1?[t.column.hasTimePicker?s("el-time-picker",{staticStyle:{width:"100%"},attrs:{"value-format":t.column.valueFormat,format:t.column.valueFormat,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}}):[t.column.pickerType==="date"?s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:t.column.pickerType,"value-format":t.column.valueFormat,format:t.column.valueFormat,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled,"picker-options":t.pickerOptions},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}}):s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:t.column.pickerType,"value-format":t.column.valueFormat,format:t.column.valueFormat,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}})]]:[t.column.pickerType==="month"?s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"monthrange",format:"yyyy-MM","value-format":"yyyy-MM","range-separator":"~","start-placeholder":t.$i18nt("el.datepicker.startDate","\u5F00\u59CB\u65E5\u671F"),"end-placeholder":t.$i18nt("el.datepicker.endDate","\u7ED3\u675F\u65E5\u671F"),disabled:t.disabled},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}}):s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"~","start-placeholder":t.$i18nt("el.datepicker.startDate","\u5F00\u59CB\u65E5\u671F"),"end-placeholder":t.$i18nt("el.datepicker.endDate","\u7ED3\u675F\u65E5\u671F"),disabled:t.disabled,"picker-options":t.pickerIntervalOptions},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}})]]:[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),clearable:"",disabled:t.disabled},model:{value:t.ruleFormData[t.column.property],callback:function(a){t.$set(t.ruleFormData,t.column.property,a)},expression:"ruleFormData[column.property]"}})]],2)],1)],1)])],1)},_sfc_staticRenderFns$4H=[],__component__$4H=chartbi.normalizeComponent(_sfc_main$4H,_sfc_render$4H,_sfc_staticRenderFns$4H,!1,null,"5c146aff",null,null);const GDpackage$u=__component__$4H.exports;GDpackage$u.install=function(i){i.component(GDpackage$u.name,GDpackage$u)};const column_vue_vue_type_style_index_0_scoped_ee61beed_lang="",_sfc_main$4G={name:"GdColumnSettings",props:{columns:{type:Array,default:()=>[]},height:{type:Number,default:0}},components:{draggable},data(){return{indeterminate:!1,checkAll:!0,columnsSetting:[]}},computed:{styled(){let i=this.height||null;return`max-height:${i?i+20:300}px;overflow-y: auto;`}},methods:{init(){let i=this.columns.filter(t=>t.type!=="selection"&&t.type!=="selection-radio").map(t=>({...t,checked:t.checked!=null?t.checked:!0}));this.columnsSetting=[...i],this.originColumns=JSON.parse(JSON.stringify(this.columnsSetting))},reset(){this.columnsSetting=JSON.parse(JSON.stringify(this.originColumns)),this.indeterminate=!1,this.checkAll=!0,this.emitColumnChange()},onChange(){let i=this.columnsSetting.filter(t=>t.checked);this.indeterminate=!!i.length&&i.length<this.columnsSetting.length,this.checkAll=i.length===this.columnsSetting.length,this.emitColumnChange()},onCheckAllChange(i){this.columnsSetting.filter(s=>s.checked);let t=[...this.columnsSetting];t.forEach((s,a)=>{t[a].checked=i}),this.columnsSetting=[...t],this.indeterminate=!1,this.emitColumnChange()},emitColumnChange(){let i=this.columns.filter(s=>s.type==="selection"||s.type==="selection-radio"),t=i!==void 0?i.concat(this.columnsSetting):this.columnsSetting;this.$emit("columnChange",t)}},mounted(){this.init()}};var _sfc_render$4G=function(){var t=this,s=t._self._c;return s("div",[s("div",{staticClass:"gd-tool-column-header"},[s("el-checkbox",{attrs:{indeterminate:t.indeterminate,gdtag:""},on:{change:t.onCheckAllChange},model:{value:t.checkAll,callback:function(a){t.checkAll=a},expression:"checkAll"}},[t._v(" "+t._s(t.$i18nt("gd.basics.columnDisplay","\u5217\u5C55\u793A"))+" ")]),s("div",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.reset}},[t._v(t._s(t.$i18nt("gd.basics.reset","\u91CD\u7F6E")))])],1),s("div",{staticClass:"gd-checkbox-group",style:t.styled},[s("div",[s("draggable",{attrs:{animation:"300"},on:{end:t.emitColumnChange},model:{value:t.columnsSetting,callback:function(a){t.columnsSetting=a},expression:"columnsSetting"}},t._l(t.columnsSetting,function(a,l){return s("div",{key:l,staticClass:"s-tool-column-item"},[s("div",{staticClass:"s-tool-column-handle"},[s("i",{staticClass:"el-icon-rank"})]),s("el-checkbox",{attrs:{gdtag:""},on:{change:t.onChange},model:{value:a.checked,callback:function(n){t.$set(a,"checked",n)},expression:"item.checked"}},[t._v(" "+t._s(t.$i18nt(a.transKey,a.label))+" ")])],1)}),0)],1)])])},_sfc_staticRenderFns$4G=[],__component__$4G=chartbi.normalizeComponent(_sfc_main$4G,_sfc_render$4G,_sfc_staticRenderFns$4G,!1,null,"ee61beed",null,null);const GDpackage$t=__component__$4G.exports;GDpackage$t.install=function(i){i.component(GDpackage$t.name,GDpackage$t)};const main_vue_vue_type_style_index_0_scoped_b6a24a5e_lang="",_sfc_main$4F={name:"GdTooltip",props:{highlight:{type:Boolean,default:!1},align:{type:String,default:"align"},rowKey:{type:String,default:"name"},line:{type:[String,Number],default:"1"},row:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!0},transKey:{type:String,default:""},prevent:{type:Boolean,default:!0}},computed:{content(){const i=this.row[this.rowKey]||"";return this.$i18nt(this.transKey,i)},lineClass(){return`line${this.line}`},placement(){let i="top";const t=this.row[this.align]||"is-center";return t==="is-left"?i="top-start":t==="is-right"&&(i="top-end"),i},cstyle(){return this.highlight?`color:${this.primaryColor};cursor: pointer;`:"cursor: pointer;"},...chartbi.mapGetters(["primaryColor"])},data(){return{}},methods:{changeHand(){this.$emit("click",this.row)}}};var _sfc_render$4F=function(){var t=this,s=t._self._c;return s("div",[s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{placement:t.placement,"open-delay":50,disabled:t.disabled}},[s("div",{staticClass:"tooltip-content",attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.content))]),t.prevent?s("div",{class:t.lineClass,style:t.cstyle,on:{click:function(a){return a.stopPropagation(),t.changeHand.apply(null,arguments)}}},[t._v(t._s(t.content))]):s("div",{class:t.lineClass,style:t.cstyle,on:{click:t.changeHand}},[t._v(t._s(t.content))])])],1)},_sfc_staticRenderFns$4F=[],__component__$4F=chartbi.normalizeComponent(_sfc_main$4F,_sfc_render$4F,_sfc_staticRenderFns$4F,!1,null,"b6a24a5e",null,null);const GDpackage$s=__component__$4F.exports;GDpackage$s.install=function(i){i.component(GDpackage$s.name,GDpackage$s)};const main_vue_vue_type_style_index_0_scoped_e6d7dddb_lang="",_sfc_main$4E={name:"GdBtnList",props:{sysViewButtons:{type:Array,default:()=>[]},max:{type:Number,default:12},followSys:{type:Boolean,default:!0},styled:{type:String,default:""}},data(){return{}},computed:{btnModed(){return this.followSys?this.btnMode:"btn"},btnList(){return this.sysViewButtons.filter((i,t)=>t<this.max)},moreList(){return this.sysViewButtons.filter((i,t)=>t>=this.max)},fadeColord(){return this.fadeColor(this.primaryColor,.1)},...chartbi.mapGetters(["btnMode","primaryColor"])},methods:{command(i){this.$emit("functionName",i)},functionName(i){this.$emit("functionName",{item:i,key:null})},fadeColor(i,t){let s=parseInt(i.substring(1,3),16),a=parseInt(i.substring(3,5),16),l=parseInt(i.substring(5,7),16);return`rgba(${s},${a},${l},${t})`}}};var _sfc_render$4E=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-btns-flex"},[t._l(t.btnList,function(a,l){return[t.$hasPerm(a.name)&&(a.show===void 0?!0:a.show)?[t.btnModed==="text"?[a.children&&a.children.length>0?s("el-dropdown",{attrs:{placement:"bottom"},on:{command:t.command}},[s("el-button",{class:a.btnType==="info"?"active-block":"active-color",style:a.btnType==="danger"?"color:#ff4d4f!important;font-size: 14px;":"font-size: 14px;",attrs:{type:"text"}},[s("i",{staticClass:"gd-icons",class:a.icon,staticStyle:{"font-size":"14px"}}),t._v(" "+t._s(t.$i18nt(a.transKey,a.displayName))+" ")]),s("el-dropdown-menu",{style:{"--dilute":t.fadeColord},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(a.children,function(n){return n.show===void 0||n.show?s("el-dropdown-item",{key:n.key,attrs:{command:{item:a,key:n.key}}},[s("i",{staticClass:"gd-icons",class:n?n.icon:a.icon,staticStyle:{"font-size":"14px"}}),t._v(" "+t._s(t.$i18nt(n.transKey,n.displayName))+" ")]):t._e()}),1)],1):a.btnType=="popconfirm"?s("el-popconfirm",{staticStyle:{"margin-left":"10px"},attrs:{"confirm-button-text":t.$i18nt("gd.btn.confirm","\u786E\u8BA4"),"cancel-button-text":t.$i18nt("gd.btn.cancel","\u53D6\u6D88"),icon:"el-icon-warning","icon-color":"#faad14",title:t.$i18nt(a.transKeyTip,a.tip)},on:{confirm:function(n){return t.functionName(a)}}},[s("el-button",{class:a.btnType==="info"?"active-block":"active-color",style:a.btnType==="danger"?"color:#ff4d4f!important;font-size: 14px;":"font-size: 14px;",attrs:{slot:"reference",type:"text"},slot:"reference"},[s("i",{staticClass:"gd-icons",class:a.icon,staticStyle:{"font-size":"14px"}}),t._v(" "+t._s(t.$i18nt(a.transKey,a.displayName))+" ")])],1):a.btnType=="tooltip"?s("el-tooltip",{attrs:{placement:"top"}},[s("template",{slot:"content"},[t._v(" "+t._s(t.$i18nt(a.tipI18n,a.tip))+" ")]),s("el-button",{class:a.btnType==="info"?"active-block":"active-color",style:a.btnType==="danger"?"color:#ff4d4f!important;font-size: 14px;":"font-size: 14px;",attrs:{type:"text"},on:{click:function(n){return t.functionName(a)}}},[s("i",{staticClass:"gd-icons",class:a.icon,staticStyle:{"font-size":"14px"}}),t._v(" "+t._s(t.$i18nt(a.transKey,a.displayName))+" ")])],2):s("el-button",{class:a.btnType==="info"?"active-block":"active-color",style:a.btnType==="danger"?"color:#ff4d4f!important;font-size: 14px;":"font-size: 14px;",attrs:{type:"text"},on:{click:function(n){return t.functionName(a)}}},[s("i",{staticClass:"gd-icons",class:a.icon,style:a.iconStyle?a.iconStyle:"font-size: 14px"}),t._v(" "+t._s(t.$i18nt(a.transKey,a.displayName))+" ")]),s("el-divider",{attrs:{direction:"vertical"}})]:[a.children&&a.children.length>0?s("el-dropdown",{attrs:{placement:"bottom"},on:{command:t.command}},[s("el-button",{style:`margin: 0 1px 0 0;padding: 6px 8px;font-size: 13px;${t.styled}${a.style?a.style:""}`,attrs:{type:"primary"}},[s("i",{staticClass:"gd-icons",class:a.icon,staticStyle:{"font-size":"14px"}}),t._v(" "+t._s(t.$i18nt(a.transKey,a.displayName))+" "),s("i",{staticClass:"el-icon-arrow-down"})]),s("el-dropdown-menu",{style:{"--dilute":t.fadeColord,minWidth:"100px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(a.children,function(n){return n.show===void 0||n.show?s("el-dropdown-item",{key:n.key,attrs:{command:{item:a,key:n.key}}},[s("i",{staticClass:"gd-icons",class:n.icon?n.icon:a.icon,staticStyle:{"font-size":"14px"}}),t._v(" "+t._s(t.$i18nt(n.transKey,n.displayName))+" ")]):t._e()}),1)],1):a.btnType=="popconfirm"?s("el-popconfirm",{attrs:{slot:"reference","confirm-button-text":t.$i18nt("gd.btn.confirm","\u786E\u8BA4"),"cancel-button-text":t.$i18nt("gd.btn.cancel","\u53D6\u6D88"),icon:"el-icon-warning","icon-color":"#faad14",title:t.$i18nt(a.transKeyTip,a.tip)},on:{confirm:function(n){return t.functionName(a)}},slot:"reference"},[s("el-button",{style:`margin: 0 1px 0 0;padding: 6px 8px; font-size: 13px;${t.styled}${a.style?a.style:""}`,attrs:{slot:"reference",type:a.btnType||"primary"},slot:"reference"},[s("i",{staticClass:"gd-icons",class:a.icon,staticStyle:{"font-size":"14px"}}),t._v(" "+t._s(t.$i18nt(a.transKey,a.displayName))+" ")])],1):a.btnType=="tooltip"?s("el-tooltip",{attrs:{placement:"top"}},[s("template",{slot:"content"},[t._v(" "+t._s(t.$i18nt(a.tipI18n,a.tip))+" ")]),s("el-button",{style:`margin: 0 1px 0 0; padding: 6px 8px;font-size: 13px;${t.styled}${a.style?a.style:""}`,attrs:{type:"primary"},on:{click:function(n){return t.functionName(a)}}},[s("i",{staticClass:"gd-icons",class:a.icon,staticStyle:{"font-size":"14px"}}),t._v(" "+t._s(t.$i18nt(a.transKey,a.displayName))+" ")])],2):s("el-button",{style:`margin: 0 1px 0 0; padding: 6px 8px;font-size: 13px;${t.styled}${a.style?a.style:""}`,attrs:{type:a.btnType?a.btnType:"primary"},on:{click:function(n){return t.functionName(a)}}},[s("i",{staticClass:"gd-icons",class:a.icon,style:a.iconStyle?a.iconStyle:"font-size: 14px"}),t._v(" "+t._s(t.$i18nt(a.transKey,a.displayName))+" ")])]]:t._e()]}),t.moreList.length>0?s("el-dropdown",{attrs:{placement:"bottom"},on:{command:t.command}},[t.btnModed==="text"?s("el-button",{staticClass:"active-color",staticStyle:{margin:"0 1px 0 0",padding:"6px 8px"},attrs:{type:"text"}},[s("i",{staticClass:"gd-icons el-icon-more",staticStyle:{"font-size":"14px"}})]):s("el-button",{style:`margin: 0 1px 0 0; padding: 6px 8px;${t.styled}`,attrs:{type:"primary"}},[s("i",{staticClass:"gd-icons el-icon-more",staticStyle:{"font-size":"14px"}})]),s("el-dropdown-menu",{style:{"--dilute":t.fadeColord,minWidth:"100px"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.moreList,function(a){return s("el-dropdown-item",{key:a.key,attrs:{command:{item:a,key:null}}},[s("i",{staticClass:"gd-icons",class:a.icon,staticStyle:{"font-size":"14px"}}),t._v(" "+t._s(t.$i18nt(a.transKey,a.displayName))+" ")])}),1)],1):t._e()],2)},_sfc_staticRenderFns$4E=[],__component__$4E=chartbi.normalizeComponent(_sfc_main$4E,_sfc_render$4E,_sfc_staticRenderFns$4E,!1,null,"e6d7dddb",null,null);const GDpackage$r=__component__$4E.exports;GDpackage$r.install=function(i){i.component(GDpackage$r.name,GDpackage$r)};const iconsList=[{key:"linear",title:"\u7EBF\u6027",transKey:"gd.icon.linear",icons:["gd-icon-dingwei1","gd-icon-xiangqing_shujuxiangqing","gd-icon-icon-xy","gd-icon-binghangjiedian","gd-icon-binghangjiediantubiao","gd-icon-anquanyunying","gd-icon-qiansemoshi","gd-icon-xiazaibiaodan","gd-icon-xitongguanli1","gd-icon-fahuoguanli","gd-icon-zichanjiaoyi","gd-icon-yijianzhengyoujian","gd-icon-shiyongpeizhi","gd-icon-attachment","gd-icon-gird","gd-icon-italic","gd-icon-associate","gd-icon-fullscreen-exit","gd-icon-underline","gd-icon-a-goforward","gd-icon-a-goback","gd-icon-unlink","gd-icon-hide","gd-icon-link","gd-icon-filter","gd-icon-xiaji1","gd-icon-zuzhiguanli","gd-icon-denglushezhi","gd-icon-mimashezhi","gd-icon-liuchengguanli","gd-icon-wodeliucheng","gd-icon-CPU","gd-icon-neicun","gd-icon-cipan","gd-icon-zhaotoubiaoguanli","gd-icon-dangjiandangqun","gd-icon-niandukaohe","gd-icon-renwutongji","gd-icon-fawenbanli","gd-icon-shouwenbanli","gd-icon-huiyishiguanli","gd-icon-huizhongjiankong","gd-icon-huiyimoban","gd-icon-huiyileixing","gd-icon-huiyixinxi","gd-icon-huiyishiyuyue","gd-icon-xinwendongtai","gd-icon-xiangmugongzuotai","gd-icon-shaixuan2","gd-icon-erjidaohang","gd-icon-jinhangzhong","gd-icon-gengduo1","gd-icon-tishixinxi","gd-icon-quanxianguanli1","gd-icon-fabucepingjihua","gd-icon-tuichu","gd-icon-rili1","gd-icon-gongzuotai1","gd-icon-tianjiagongyingshang","gd-icon-biangengjihua","gd-icon-shuju","gd-icon-wenjianjia1","gd-icon-zanting","gd-icon-yidong","gd-icon-bingtu1","gd-icon-bili","gd-icon-bianji3","gd-icon-a-bianji2","gd-icon-bofang","gd-icon-diannao","gd-icon-dayin","gd-icon-tiaozheng","gd-icon-fuzhi","gd-icon-a-guanbi2","gd-icon-dianhua2","gd-icon-guan","gd-icon-a-dingwei2","gd-icon-dingwei","gd-icon-a-huabanbeifen35","gd-icon-guajie","gd-icon-huihua","gd-icon-guanbi","gd-icon-kejian","gd-icon-kai","gd-icon-a-huihua3","gd-icon-kefu","gd-icon-qingchu","gd-icon-jingyin","gd-icon-paizhao","gd-icon-mingpian","gd-icon-shanchu5","gd-icon-rili","gd-icon-a-shanchu2","gd-icon-a-shezhi2","gd-icon-shangchuan2","gd-icon-shezhi2","gd-icon-shengyin","gd-icon-shijian","gd-icon-shouji1","gd-icon-a-shezhi3","gd-icon-shipin1","gd-icon-shoucang3","gd-icon-a-sousuo3","gd-icon-tuxiang","gd-icon-a-wenjian2","gd-icon-wenti","gd-icon-validation","gd-icon-date","gd-icon-exchange","gd-icon-total","gd-icon-good","gd-icon-movie","gd-icon-video","gd-icon-idea","gd-icon-aotumate","gd-icon-video1","gd-icon-click","gd-icon-icon-test1","gd-icon-icon-test2","gd-icon-icon-test3","gd-icon-icon-test4","gd-icon-icon-test5","gd-icon-icon-test6","gd-icon-icon-test7","gd-icon-icon-test8","gd-icon-icon-test9","gd-icon-icon-test10","gd-icon-icon-test11","gd-icon-icon-test12","gd-icon-icon-test13","gd-icon-icon-test14","gd-icon-icon-test15","gd-icon-icon-test16","gd-icon-icon-test17","gd-icon-icon-test18","gd-icon-icon-test19","gd-icon-icon-test20","gd-icon-icon-test21","gd-icon-icon-test22","gd-icon-icon-test23","gd-icon-icon-test24","gd-icon-icon-test25","gd-icon-icon-test26","gd-icon-icon-test27","gd-icon-icon-test28","gd-icon-icon-test29","gd-icon-icon-test30","gd-icon-icon-test31","gd-icon-icon-test32","gd-icon-icon-test33","gd-icon-icon-test34","gd-icon-icon-test35","gd-icon-icon-test36","gd-icon-icon-test37","gd-icon-icon-test38","gd-icon-yujing","gd-icon-zhihuishenghuo","gd-icon-zhihuixiaoyuan","gd-icon-zhihui","gd-icon-zhihuiyuanqu","gd-icon-zhoubian","gd-icon-chanpin2","gd-icon-gaoxingneng","gd-icon-dingzhi","gd-icon-fuwu","gd-icon-zhuzuoquan","gd-icon-jingwu","gd-icon-jiankong","gd-icon-nengxiaoguankong","gd-icon-qiye","gd-icon-lianxiren","gd-icon-pinzhi","gd-icon-shouji","gd-icon-rengong","gd-icon-dashuju","gd-icon-search","gd-icon-gouwuche-","gd-icon-dianhua1","gd-icon-houchu","gd-icon-loumian","gd-icon-zhouzhuan","gd-icon-qitachanpin","gd-icon-chongzhi","gd-icon-huiyuan","gd-icon-jifen","gd-icon-tianjia","gd-icon-tianjia1","gd-icon-jianshao-","gd-icon-jianshao-1","gd-icon-cuowu","gd-icon-cuowu-","gd-icon-zhengque","gd-icon-zhengque-","gd-icon-xihuan","gd-icon-shoucang2","gd-icon-liebiao","gd-icon-jiantoushang","gd-icon-jiantouxia","gd-icon-jiantouyou","gd-icon-jiantouzuo","gd-icon-faxiandiscover","gd-icon-zhidingtop","gd-icon-zhidingtop1","gd-icon-biaoqiantag","gd-icon-pinzhibaozhengQuality","gd-icon-zhuanlirenzhengPatent","gd-icon-koubeipublicpraise","gd-icon-pinpaiwenhuaBrandculture","gd-icon-zaixiankefucustomerservice","gd-icon-daifukuan","gd-icon-daishouhuo","gd-icon-quanbudingdan","gd-icon-yijianfankui","gd-icon-shouhoutuikuan","gd-icon-webpeizhi","gd-icon-bizhongguanli","gd-icon-fabijiaoyi","gd-icon-guanggaojiaoyi","gd-icon-guanggaoxiaoxi","gd-icon-jiedianpeizhi","gd-icon-lunbotuguanli","gd-icon-rizhiguanli","gd-icon-tubiaozhizuosvg-03","gd-icon-tubiaozhizuosvg-01","gd-icon-tubiaozhizuosvg-15","gd-icon-tubiaozhizuosvg-04","gd-icon-tubiaozhizuosvg-05","gd-icon-tubiaozhizuosvg-06","gd-icon-tubiaozhizuosvg-07","gd-icon-tubiaozhizuosvg-11","gd-icon-tubiaozhizuosvg-21","gd-icon-tubiaozhizuosvg-17","gd-icon-tubiaozhizuosvg-13","gd-icon-tubiaozhizuosvg-22","gd-icon-tubiaozhizuosvg-29","gd-icon-tubiaozhizuosvg-12","gd-icon-tubiaozhizuosvg-10","gd-icon-tubiaozhizuosvg-31","gd-icon-tubiaozhizuosvg-34","gd-icon-tubiaozhizuosvg-33","gd-icon-tubiaozhizuosvg-18","gd-icon-tubiaozhizuosvg-41","gd-icon-tubiaozhizuosvg-32","gd-icon-dianhua","gd-icon-bumenxinxigongkai","gd-icon-chengshijianshe","gd-icon-chengshimingpian","gd-icon-gongkaiyijianxiang","gd-icon-fadingzhudonggongkaineirong","gd-icon-gonggongjiaotong","gd-icon-minyizhengji","gd-icon-jingjifazhan","gd-icon-lvsefazhan","gd-icon-meishixiaochi","gd-icon-shichangxinxiang","gd-icon-hudongjiaoliu","gd-icon-zaixianfangtan","gd-icon-zhengfuxinxigongkaizhinan","gd-icon-zhaoshangxiangmu","gd-icon-weibopingtai","gd-icon-zaixiankefu","gd-icon-yishenqinggongkai","gd-icon-zhishiku","gd-icon-touzihuanjing","gd-icon-zhusu","gd-icon-zhengfujigou","gd-icon-zhengwuweixin","gd-icon-woyaoping","gd-icon-woyaoban","gd-icon-woyaocha","gd-icon-CMS","gd-icon-chengchangdaoshi","gd-icon-fazhanlinian","gd-icon-HPC","gd-icon-guangxingjihua","gd-icon-hezuohuoban","gd-icon-hezuolinian","gd-icon-fuwupinpai","gd-icon-jituannianhui","gd-icon-hexinjiazhiguan","gd-icon-niandushuzhi","gd-icon-jiankongyunwei","gd-icon-qiyewenhua","gd-icon-qingyingjihua","gd-icon-quweiyundonghui","gd-icon-rencaifazhan","gd-icon-shehuizhaopin","gd-icon-shequ","gd-icon-rongqi1","gd-icon-rencaipeiyang","gd-icon-zhiyuanzhehuodong","gd-icon-zhanlvefangxiang","gd-icon-yuanjingyushiming","gd-icon-tuanjianri","gd-icon-wenjianguanli","gd-icon-yixiaoweijihuo","gd-icon-yonghuguanli","gd-icon-jiamengshenhe","gd-icon-jiamenghuoban","gd-icon-jiamengyaoqing","gd-icon-chongzhika","gd-icon-xianjinhongbao","gd-icon-renwuhuizong","gd-icon-zijinshenhe","gd-icon-zijinshenhe1","gd-icon-gongzuotai","gd-icon-renwuhuizong1","gd-icon-shebeiguanli","gd-icon-shouquan","gd-icon-yonghuqianbao","gd-icon-fukuan","gd-icon-zhudonghehu","gd-icon-icon-test","gd-icon-shizhong","gd-icon-cuo1","gd-icon-shuaxin1","gd-icon-zhuanfa1","gd-icon-tuihui","gd-icon-withdraw","gd-icon-jiaqian1","gd-icon-rollback","gd-icon-a-32shuangduigou","gd-icon-houjiaqian","gd-icon-zuojiaqian","gd-icon-chehui","gd-icon-a-loudou_huaban1","gd-icon-audit","gd-icon-Interaction","gd-icon-shitumoshi","gd-icon-shitumoshi1","gd-icon-biaodanmoshi","gd-icon-question-line","gd-icon-webduanmobancaozuo_qiyong","gd-icon-webduanmobancaozuo_gengduo","gd-icon-webduanmobancaozuo_tingyong","gd-icon-shouqitubiao","gd-icon-star-line","gd-icon-copy","gd-icon-jisuan","gd-icon-biaoqian1","gd-icon-gongwenbao","gd-icon-tubiao","gd-icon-cangku","gd-icon-weixiu","gd-icon-dituzuobiao","gd-icon-chanpin","gd-icon-saoyisao","gd-icon-tixing","gd-icon-bianji2","gd-icon-tuichudenglu2","gd-icon-guanyuwomen","gd-icon-shuaxin","gd-icon-fenxiang1","gd-icon-shezhi1","gd-icon-xiaoxi2","gd-icon-gouxuan","gd-icon-shangchuan1","gd-icon-shoucang1","gd-icon-xiangce","gd-icon-xiazai","gd-icon-shuju1","gd-icon-daikuanshenpi","gd-icon-gonggongmobanku","gd-icon-caozuojilu","gd-icon-wodemoban","gd-icon-yonghuhuaxiang","gd-icon-xiaoxiyangshi","gd-icon-jiekoufenxi","gd-icon-tongji1","gd-icon-mobanxiaoxi","gd-icon-xiaoxiyangshi1","gd-icon-mti-diannao","gd-icon-mti-dianhuabao","gd-icon-mti-tonghuazhong","gd-icon-mti-weiqun","gd-icon-mti-weixin2","gd-icon-a-mti-xiaoximti-duanyu","gd-icon-mti-xiaoxi3","gd-icon-shipin","gd-icon-tupian2","gd-icon-shoubiao","gd-icon-pinglun","gd-icon-peixunxuexi","gd-icon-mima","gd-icon-yanzhengma","gd-icon-chanpin1","gd-icon-shoucang","gd-icon-sousuo","gd-icon-weizhi","gd-icon-riqi1","gd-icon-gengduo","gd-icon-shezhi","gd-icon-shenpi","gd-icon-bianji1","gd-icon-tongji","gd-icon-tongjifenxi","gd-icon-xitongtongzhi","gd-icon-shanchu3","gd-icon-shaixuan","gd-icon-biaoqian","gd-icon-ditu","gd-icon-jinrong","gd-icon-xianshi","gd-icon-yincang","gd-icon-tupian1","gd-icon-fenxiang","gd-icon-fujian","gd-icon-bianji","gd-icon-bianjisekuai","gd-icon-star","gd-icon-bullet-list--points-bullet-unordered-list-lists-bu","gd-icon-shaixuan1","gd-icon-guanlian","gd-icon-a-dingshuding1","gd-icon-xiaji","gd-icon-icon_shangxiaji","gd-icon-huobiduihuan","gd-icon-guanyu","gd-icon-canyu","gd-icon-waijian","gd-icon-fudianshu","gd-icon-huobi","gd-icon-shangchuan","gd-icon-ziyuansu","gd-icon-shousuo","gd-icon-shousuo1","gd-icon-ZeekrVisualDialog","gd-icon-danhangshurukuang","gd-icon-duohangshuru","gd-icon-baobiaotongji","gd-icon-tabs","gd-icon-tuwendaohang4","gd-icon-qiapian","gd-icon-mulu","gd-icon-fuwenbenkuang","gd-icon-24gl-bubbles6","gd-icon-jurassic_audit-something","gd-icon-renqunfenlei","gd-icon-danchuang","gd-icon-duohangwenben","gd-icon-iframe","gd-icon-chouti","gd-icon-erweima","gd-icon-lianjie","gd-icon-liebiaomoshi","gd-icon-shuzi","gd-icon-html","gd-icon-wenjian","gd-icon-zhediemianban","gd-icon-anniu","gd-icon-riqi","gd-icon-miaoshu","gd-icon-tupian","gd-icon-xiangqing-","gd-icon-miaoshu1","gd-icon-dagang_biaoqianzu","gd-icon-wenbentishi","gd-icon-jueyuandianzu","gd-icon-wenbentishi1","gd-icon-fengexian","gd-icon-zhage","gd-icon-xiala","gd-icon-a-shuanglie1","gd-icon-zititubiao","gd-icon-gonggao","gd-icon-rongqi11","gd-icon-banquan","gd-icon-biaodanzujian-biaoge","gd-icon-yulanmoban","gd-icon-fuzhimoban","gd-icon-kaifazujian","gd-icon-moban","gd-icon-dagangshu","gd-icon-mubanbianpai","gd-icon-id","gd-icon-a-guangqi_guolv11x","gd-icon-jinyong1","gd-icon-bingtu","gd-icon-zhuzhuangtu","gd-icon-loudoutu","gd-icon-zhexiantu","gd-icon-bushu","gd-icon-wrench","gd-icon-fabu","gd-icon-fabu1","gd-icon-daoru","gd-icon-daoru1","gd-icon-qinglihuancun","gd-icon-quanpingsuoxiao","gd-icon-fangda","gd-icon-shujuku","gd-icon-odbc","gd-icon-jigouguanli","gd-icon-shujuzidian","gd-icon-zidianguanli","gd-icon-zhiweixinxi","gd-icon-tuichudenglu1","gd-icon-shanchu1","gd-icon-jia1","gd-icon-jia2","gd-icon-jian","gd-icon-jian1","gd-icon-shanchu","gd-icon-shouye","gd-icon-quanxianguanli","gd-icon-user","gd-icon-xitongshezhi","gd-icon-xiaoxi","gd-icon-liucheng","gd-icon-xitongrizhi","gd-icon-xitongrizhi2","gd-icon-yewuquanxian","gd-icon-application","gd-icon-yemian1","gd-icon-jichuguanli1","gd-icon-jichushezhi","gd-icon-zuzhi","gd-icon-map-site","gd-icon-jichushuju1","gd-icon-xitong","gd-icon-xitongrizhi3","gd-icon-jichushuju2","gd-icon-xitongrizhi4","gd-icon-xitongrizhi5","gd-icon-xiaoximoban","gd-icon-group-line","gd-icon-jichushuju3","gd-icon-xitongrizhi7","gd-icon-guoji","gd-icon-yanjing-kai","gd-icon-yanjing-guan","gd-icon-xiazai40","gd-icon-qiyeweixin","gd-icon-jurassic_process","gd-icon-wenbenneirong","gd-icon-equalizer-line","gd-icon-a-icon_zhage2","gd-icon-wendangguanli","gd-icon-shujia","gd-icon-shujia2","gd-icon-liqilingyongjilu","gd-icon-xiangmu1","gd-icon-xitongzhuangpei","gd-icon-shuxian","gd-icon-gengduo-shu","gd-icon-xuexi-","gd-icon-baocun","gd-icon-qiyong","gd-icon-baocun1","gd-icon-tingyong1","gd-icon-baocunbingguanbi","gd-icon-qiyong1","gd-icon-tingyong2","gd-icon-qiyong2","gd-icon-baocunbingguanbi1","gd-icon-shuaxin2","gd-icon-refresh","gd-icon-youjiantou_huaban","gd-icon-zuojiantou_huaban"]},{key:"facial",title:"\u9762\u6027",transKey:"gd.icon.facial",icons:["gd-icon-shijiantoushang","gd-icon-shijiantouxia","gd-icon-shijiantouyou","gd-icon-shijiantouzuo","gd-icon-xihuanlike","gd-icon-shoucang-collect","gd-icon-zhengque-1","gd-icon-cuowu-1","gd-icon-jianshao-2","gd-icon-tianjia2","gd-icon-faxiandiscover1","gd-icon-fenxiangshare","gd-icon-zhidingtop2","gd-icon-biaoqiantag1","gd-icon-zaixiankefucustomerservice1","gd-icon-youhui","gd-icon-liwu","gd-icon-yue","gd-icon-chongzhizengsong","gd-icon-quanbuyue","gd-icon-wodeqianbao","gd-icon-zhanghuanquan","gd-icon-nongyerongdan","gd-icon-guangfuban","gd-icon-zhongmiaogongyingshang","gd-icon-nongyaogongyingshang","gd-icon-cangchu","gd-icon-nongjifuwugongyingshang","gd-icon-feiliaogongyingshang","gd-icon-dianziqianzhang","gd-icon-jianguanjigou1","gd-icon-kuangye","gd-icon-yinhang","gd-icon-jingxiaoshang1","gd-icon-zhiwenshibie","gd-icon-chayuanjidi","gd-icon-wuliu","gd-icon-EPC","gd-icon-jiaoyisuo","gd-icon-jiancejigou","gd-icon-dianzihetong","gd-icon-taige","gd-icon-Excelguanli","gd-icon-tishijinggao","gd-icon-yiwenshiyi","gd-icon-yanzhengma1","gd-icon-zhiling_binghang","gd-icon-shanchu4","gd-icon-a-mti-duanxinshi","gd-icon-a-mti-tonghuazhongshi","gd-icon-a-mti-weiqunshi","gd-icon-a-mti-weixin2shi","gd-icon-xiujiashenqing","gd-icon-jiabanshenqing","gd-icon-chuchashenqing","gd-icon-kaoqinshensu","gd-icon-waichushenqing","gd-icon-tiaodongshenqing","gd-icon-zhengzhangshenqing","gd-icon-lizhishenqing","gd-icon-canjiapeixun","gd-icon-gongzuohuibao","gd-icon-zhuanzhengshenqing","gd-icon-jixiaoziping","gd-icon-xinxibiangeng","gd-icon-faqihuiyi","gd-icon-qitatongyong","gd-icon-caigoushenqing","gd-icon-baoxiaoshenqing","gd-icon-jiekuanshenqing","gd-icon-ruzhishenpi","gd-icon-zidingyi","gd-icon-hetongqianding","gd-icon-zhaopinxuqiu","gd-icon-gongzuojiaojietubiao","gd-icon-waichukaoqin","gd-icon-chufadan","gd-icon-tiaodongshenpi","gd-icon-tiaogangtiaoxin","gd-icon-jianglidan","gd-icon-Xtubiao-chakan","gd-icon-Xtubiao-guanbichakan","gd-icon-custom-receipt","gd-icon-custom-change","gd-icon-custom-other","gd-icon-custom-authority","gd-icon-custom-clock","gd-icon-custom-data","gd-icon-custom-entrust","gd-icon-custom-department","gd-icon-custom-approve","gd-icon-star1","gd-icon-quanxuan","gd-icon-chaosong","gd-icon-xiayibu","gd-icon-shangyibu","gd-icon-zhuanshen","gd-icon-dunpaibaozhang","gd-icon-dasuozi","gd-icon-zuji1","gd-icon-shengji","gd-icon-renyuan","gd-icon-renyuan1","gd-icon-rongqi","gd-icon-12quanxianguanli","gd-icon-yingyong","gd-icon-xueshengquanxian","gd-icon-jichushuju","gd-icon-yemian","gd-icon-xitongrizhi1","gd-icon-quanxian","gd-icon-jichuguanli","gd-icon-bg-application","gd-icon-xiaoxi1","gd-icon-xitongguanli","gd-icon-zuzhi1","gd-icon-yonghu","gd-icon-map-site-full","gd-icon-ziliucheng","gd-icon-xiaoximobanpeizhi","gd-icon-group-fill","gd-icon-page","gd-icon-xitongrizhi6","gd-icon-yemianbuju-06","gd-icon-xiaoximobanguanli","gd-icon-shouye1","gd-icon-jia","gd-icon-jian2","gd-icon-shanchu2","gd-icon-76xinzeng","gd-icon-bianji5","gd-icon-bianji4","gd-icon-yulan","gd-icon-tuichudenglu","gd-icon-wenjianxiazai","gd-icon-wenjiandaoru","gd-icon-shujuku1","gd-icon-xuanzhong","gd-icon-jinyong","gd-icon-weixin","gd-icon-xing","gd-icon-dingbudaohang","gd-icon-shouyelunbotu","gd-icon-zhanghaomimadenglu","gd-icon-ai-code","gd-icon-anniu_kaiqi","gd-icon-touxiang","gd-icon-tongjitubiao","gd-icon-quanjushijiao","gd-icon-ziti","gd-icon-shangxiapailiehuabu","gd-icon-danxuan_xuanzhong","gd-icon-NEW","gd-icon-new2","gd-icon-a-dingshuding-fill1","gd-icon-flex-wrap","gd-icon-star-full","gd-icon-wenjianjia","gd-icon-a-mti-diannaoshi","gd-icon-wenjianjia-shouqi","gd-icon-yinpin","gd-icon-GIF1","gd-icon-office-pptx","gd-icon-txt-full","gd-icon-XML","gd-icon-wendangguanli1","gd-icon-xlsx_2x","gd-icon-file-pdf","gd-icon-mp3","gd-icon-mp4","gd-icon-Html","gd-icon-img","gd-icon-DOCX","gd-icon-jiaoyupeixun","gd-icon-liqi","gd-icon-wendangzhongxin","gd-icon-xueshimao","gd-icon-xuexi","gd-icon-xueshimao-shi","gd-icon-duizhan-01"]},{key:"elIcon",title:"UI",transKey:"",icons:["el-icon-delete-solid","el-icon-delete","el-icon-s-tools","el-icon-setting","el-icon-user-solid","el-icon-user","el-icon-phone","el-icon-phone-outline","el-icon-more","el-icon-more-outline","el-icon-star-on","el-icon-star-off","el-icon-s-goods","el-icon-goods","el-icon-warning","el-icon-warning-outline","el-icon-question","el-icon-info","el-icon-remove","el-icon-circle-plus","el-icon-success","el-icon-error","el-icon-zoom-in","el-icon-zoom-out","el-icon-remove-outline","el-icon-circle-plus-outline","el-icon-circle-check","el-icon-circle-close","el-icon-s-help","el-icon-help","el-icon-minus","el-icon-plus","el-icon-check","el-icon-close","el-icon-picture","el-icon-picture-outline","el-icon-picture-outline-round","el-icon-upload","el-icon-upload2","el-icon-download","el-icon-camera-solid","el-icon-camera","el-icon-video-camera-solid","el-icon-video-camera","el-icon-message-solid","el-icon-bell","el-icon-s-cooperation","el-icon-s-order","el-icon-s-platform","el-icon-s-fold","el-icon-s-unfold","el-icon-s-operation","el-icon-s-promotion","el-icon-s-home","el-icon-s-release","el-icon-s-ticket","el-icon-s-management","el-icon-s-open","el-icon-s-shop","el-icon-s-marketing","el-icon-s-flag","el-icon-s-comment","el-icon-s-finance","el-icon-s-claim","el-icon-s-custom","el-icon-s-opportunity","el-icon-s-data","el-icon-s-check","el-icon-s-grid","el-icon-menu","el-icon-share","el-icon-d-caret","el-icon-caret-left","el-icon-caret-right","el-icon-caret-bottom","el-icon-caret-top","el-icon-bottom-left","el-icon-bottom-right","el-icon-back","el-icon-right","el-icon-bottom","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-down","el-icon-arrow-up","el-icon-video-play","el-icon-refresh","el-icon-refresh-right","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-video-pause","el-icon-refresh-left","el-icon-finished","el-icon-sort","el-icon-sort-up","el-icon-sort-down","el-icon-rank","el-icon-loading","el-icon-view","el-icon-c-scale-to-original","el-icon-date","el-icon-edit","el-icon-edit-outline","el-icon-folder","el-icon-folder-opened","el-icon-folder-add","el-icon-folder-remove","el-icon-folder-delete","el-icon-folder-checked","el-icon-tickets","el-icon-document-remove","el-icon-document-delete","el-icon-document-copy","el-icon-document-checked","el-icon-document","el-icon-document-add","el-icon-printer","el-icon-paperclip","el-icon-takeaway-box","el-icon-search","el-icon-monitor","el-icon-attract","el-icon-mobile","el-icon-scissors","el-icon-umbrella","el-icon-headset","el-icon-brush","el-icon-mouse","el-icon-coordinate","el-icon-magic-stick","el-icon-reading","el-icon-data-line","el-icon-data-board","el-icon-pie-chart","el-icon-data-analysis","el-icon-collection-tag","el-icon-film","el-icon-suitcase","el-icon-suitcase-1","el-icon-receiving","el-icon-collection","el-icon-files","el-icon-notebook-1","el-icon-notebook-2","el-icon-toilet-paper","el-icon-office-building","el-icon-school","el-icon-table-lamp","el-icon-house","el-icon-no-smoking","el-icon-smoking","el-icon-shopping-cart-full","el-icon-shopping-cart-1","el-icon-shopping-cart-2","el-icon-shopping-bag-1","el-icon-shopping-bag-2","el-icon-sold-out","el-icon-sell","el-icon-present","el-icon-box","el-icon-bank-card","el-icon-money","el-icon-coin","el-icon-wallet","el-icon-discount","el-icon-price-tag","el-icon-news","el-icon-guide","el-icon-male","el-icon-female","el-icon-thumb","el-icon-cpu","el-icon-link","el-icon-connection","el-icon-open","el-icon-turn-off","el-icon-set-up","el-icon-chat-round","el-icon-chat-line-round","el-icon-chat-square","el-icon-chat-dot-round","el-icon-chat-dot-square","el-icon-chat-line-square","el-icon-message","el-icon-postcard","el-icon-position","el-icon-turn-off-microphone","el-icon-microphone","el-icon-close-notification","el-icon-bangzhu","el-icon-time","el-icon-odometer","el-icon-crop","el-icon-aim","el-icon-switch-button","el-icon-full-screen","el-icon-copy-document","el-icon-mic","el-icon-stopwatch","el-icon-medal-1","el-icon-medal","el-icon-trophy","el-icon-trophy-1","el-icon-first-aid-kit","el-icon-discover","el-icon-place","el-icon-location","el-icon-location-outline","el-icon-location-information","el-icon-add-location","el-icon-delete-location","el-icon-map-location","el-icon-alarm-clock","el-icon-timer","el-icon-watch-1","el-icon-watch","el-icon-lock","el-icon-unlock","el-icon-key","el-icon-service","el-icon-mobile-phone","el-icon-bicycle","el-icon-truck","el-icon-ship","el-icon-basketball","el-icon-football","el-icon-soccer","el-icon-baseball","el-icon-wind-power","el-icon-light-rain","el-icon-lightning","el-icon-heavy-rain","el-icon-sunrise","el-icon-sunrise-1","el-icon-sunset","el-icon-sunny","el-icon-cloudy","el-icon-partly-cloudy","el-icon-cloudy-and-sunny","el-icon-moon","el-icon-moon-night","el-icon-dish","el-icon-dish-1","el-icon-food","el-icon-chicken","el-icon-fork-spoon","el-icon-knife-fork","el-icon-burger","el-icon-tableware","el-icon-sugar","el-icon-dessert","el-icon-ice-cream","el-icon-hot-water","el-icon-water-cup","el-icon-coffee-cup","el-icon-cold-drink","el-icon-goblet","el-icon-goblet-full","el-icon-goblet-square","el-icon-goblet-square-full","el-icon-refrigerator","el-icon-grape","el-icon-watermelon","el-icon-cherry","el-icon-apple","el-icon-pear","el-icon-orange","el-icon-coffee","el-icon-ice-tea","el-icon-ice-drink","el-icon-milk-tea","el-icon-potato-strips","el-icon-lollipop","el-icon-ice-cream-square","el-icon-ice-cream-round"]}],main_vue_vue_type_style_index_0_scoped_ec277d44_lang="",_sfc_main$4D={name:"GdIconSelector",props:{width:{type:String,default:"80%"},value:{type:String,default:""},mode:{type:String,default:"dialog"}},data(){return{selectedIcon:"",confirmLoading:!1,visible:!1,fullscreen:!1,activeName:"linear",iconsList}},computed:{list(){const i=this.iconsList.filter(t=>t.key===this.activeName)[0];return i&&i.icons},...chartbi.mapGetters(["primaryColor"])},methods:{open(i){this.selectedIcon=this.value||"",this.visible=!0},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},selItem(i){this.selectedIcon=i,this.$emit("input",i),this.$emit("change",i),this.closed()},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$4D=function(){var t=this,s=t._self._c;return t.mode==="dialog"?s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("div",{staticClass:"gd-dialog-head"},[s("div",{staticClass:"dialog-head-title",staticStyle:{flex:"1","margin-right":"40px"}},[s("el-tabs",{staticStyle:{height:"24px"},model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},t._l(t.iconsList,function(a){return s("el-tab-pane",{key:a.key,attrs:{label:t.$i18nt(a.transKey,a.title),name:a.key}})}),1)],1),s("div",{staticClass:"dialog-head-operate"},[s("gd-modal-title",{attrs:{title:"",fullscreen:t.fullscreen,buttons:[],showClose:!0},on:{changeEvent:t.doEvent}})],1)])]),s("div",{staticClass:"icon-list"},t._l(t.list,function(a){return s("div",{key:a,staticClass:"item",class:t.value===a?"item-active":"",on:{click:function(l){return t.selItem(a)}}},[s("div",{staticClass:"gd-icons",class:a})])}),0)],2):s("div",{staticClass:"icon-popover"},[s("el-tabs",{model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},t._l(t.iconsList,function(a){return s("el-tab-pane",{key:a.key,attrs:{label:t.$i18nt(a.transKey,a.title),name:a.key}})}),1),s("div",{staticStyle:{"min-height":"300px"}},[s("div",{staticClass:"icon-list"},t._l(t.list,function(a){return s("div",{key:a,staticClass:"item",class:t.value===a?"item-active":"",on:{click:function(l){return t.selItem(a)}}},[s("div",{staticClass:"gd-icons",class:a})])}),0)])],1)},_sfc_staticRenderFns$4D=[],__component__$4D=chartbi.normalizeComponent(_sfc_main$4D,_sfc_render$4D,_sfc_staticRenderFns$4D,!1,null,"ec277d44",null,null);const GDpackage$q=__component__$4D.exports;GDpackage$q.install=function(i){i.component(GDpackage$q.name,GDpackage$q)};const selectFkMultiple_vue_vue_type_style_index_0_scoped_fd7f028e_lang="",_sfc_main$4C={props:{column:{type:Object,default:()=>({})},ruleFormData:{type:Object,required:!0},multiple:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},data(){return{fkData:[],loading:!1,firstLoading:!1}},computed:{effectType(){return this.column.effectType?this.column.effectType:"about"},disabled(){return this.column.disabled===void 0?!1:this.column.disabled}},methods:{setData(i){this.fkData=[...i]},lookup(){const i=this.ruleFormData[this.column.prop];this.$refs.viewSearch.open({fkEntityName:this.column.fkEntityName,effectType:this.effectType,val:i||[]})},lookupSeled(i){this.fkData=[...i.fkData],this.ruleFormData[this.column.prop]=this.effectType!=="participants"?i.data[0]:i.data},fkSearch(){this.firstLoading||(this.searchData(""),this.firstLoading=!0)},searchData(i){this.loading=!0;const t=this.ruleFormData[this.column.prop]?this.ruleFormData[this.column.prop]:[],s=t?[t]:[],a=this.column.fkEntityName.split(",")[0];let l={name:i,fkEntityName:a};const n=this.fkData.filter(o=>s.includes(o.id));messages.baseFkList(l).then(o=>{if(this.loading=!1,o.code===200){const r=o.data.filter(d=>!s.includes(d.id)).map(d=>(d.tableName=a,d));this.fkData=n.concat(r)}})},changeTemplate(i){this.$emit("selectFk",i)}},mounted(){this.column.setData=this.setData}};var _sfc_render$4C=function(){var t=this,s=t._self._c;return s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{disabled:t.disabled,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":t.searchData,multiple:t.multiple,"collapse-tags":!0},on:{focus:t.fkSearch,change:t.changeTemplate},model:{value:t.ruleFormData[t.column.prop],callback:function(a){t.$set(t.ruleFormData,t.column.prop,a)},expression:"ruleFormData[column.prop]"}},t._l(t.fkData,function(a){return s("el-option",{key:a.id,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting"},[s("i",{staticClass:"el-input__icon el-icon-search",on:{click:t.lookup}})]),s("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$4C=[],__component__$4C=chartbi.normalizeComponent(_sfc_main$4C,_sfc_render$4C,_sfc_staticRenderFns$4C,!1,null,"fd7f028e",null,null);const SelectFkMultiple$1=__component__$4C.exports,column_vue_vue_type_style_index_0_scoped_dfafeab8_lang="",_sfc_main$4B={props:{record:{type:Object,default:()=>({})},ruleFormData:{type:Object,required:!0},defaultProps:{type:Object,default:()=>({children:"children",label:"title",value:"value"})},visible:{type:Boolean,default:!1}},components:{childEditor:system_email.childEditor,iconSelector:GDpackage$q,SelectFkMultiple:SelectFkMultiple$1},watch:{visible:{handler(i){this.handleFile(i),this.fileclick(i)},deep:!0,immediate:!0}},computed:{fieldFormat(){return this.record.valueFormat!==void 0?this.record.valueFormat.replace("DD","dd"):"yyyy-MM-dd"},predefine(){return["#F5222D","#52C41A","#FAAD14","#13C2C2","#1890FF","#722ED1","#eee"]},disabled(){return this.record.disabled===void 0?!1:this.record.disabled},...chartbi.mapGetters(["primaryColor"])},data(){return{headers:{"Content-Type":"multipart/form-data"},fileListFile:[],imgList:[],currentImg:""}},methods:{handleIcon(){this.$refs.iconSelector.open()},fileclick(i){this.$nextTick(()=>{setTimeout(()=>{const t=this.ruleFormData[this.record.prop]?this.ruleFormData[this.record.prop]:[];["file"].includes(this.record.effectType)&&(this.fileListFile=[...t])},0)})},handleFile(i){if(!!["image"].includes(this.record.effectType)){if(!i){this.fileList=[];return}this.$nextTick(()=>{setTimeout(()=>{this.$refs.uploadImg.setData(this.ruleFormData[this.record.prop])},0)})}},uploadFile(i){new FormData().append("file",i.file),messages.sysFileInfoUploadShop(i).then(s=>{if(s.code===200){const a=s.data.url,n=(this.ruleFormData[this.record.prop]?this.ruleFormData[this.record.prop].split(","):[]).concat([a]);return this.ruleFormData[this.record.prop]=n.join(","),i.onSuccess(s.data),s.data}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+s.message),i.onError()}).catch(s=>{i.onError(s)})},successFile(i,t,s){},removeFile(i,t){let s=[];t.forEach(a=>{a.response&&a.response.id?s.push(a.response.id):s.push(a.url)}),this.ruleFormData[this.record.prop]=s.join(",")},previewFile(i){let t="";i.response&&i.response.fileOriginName?(t=i.response.fileOriginName,i.response.url):(t=i.name,i.url);const s=t.substr(t.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","JPG","PNG"].includes(s)?(this.imgList=[t],this.currentImg=t,this.$refs.imgPreview.open()):this.downFile(i)},downFile(i){console.log(i)},changeEditor(i){this.ruleFormData[this.record.prop]=i},getDict(i){return i.dictData?i.dictData:this.getDictionary(i)},getDictionary(i){return this.$options.filters.dictData(i.dictTypeCode)},selectFk(i){this.$emit("selectFk",i)}}};var _sfc_render$4B=function(){var t=this,s=t._self._c;return s("div",[["input"].includes(t.record.effectType)?[s("el-input",{attrs:{disabled:t.disabled,placeholder:t.$i18nt(t.record.placeholderTransKey,t.record.placeholder)},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}})]:["inputnumber","double","currency"].includes(t.record.effectType)?s("el-input-number",{attrs:{disabled:t.disabled,type:"number",min:t.record.min||t.record.min===0?t.record.min:-1/0,max:t.record.max||t.record.max===0?t.record.max:1/0,step:t.record.step||1,precision:t.record.precision||0,placeholder:t.$i18nt(t.record.placeholderTransKey,t.record.placeholder),"controls-position":"right"},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}}):["textarea"].includes(t.record.effectType)?s("el-input",{attrs:{disabled:t.disabled,type:"textarea",placeholder:t.$i18nt(t.record.placeholderTransKey,t.record.placeholder),autosize:t.record.autosize||{minRows:4,maxRows:6}},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}}):["switch"].includes(t.record.effectType)?s("el-switch",{attrs:{disabled:t.disabled,"active-color":t.primaryColor},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}}):["date"].includes(t.record.effectType)?s("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,type:"date","value-format":t.fieldFormat,format:t.fieldFormat,placeholder:t.$i18nt(t.record.placeholderTransKey,t.record.placeholder)},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}}):["selectTree"].includes(t.record.effectType)?s("gd-select-tree",{attrs:{defaultProps:t.defaultProps,filterable:t.record.filterable||!0,"tree-options":t.record.treeOptions||[],"default-value":t.ruleFormData[t.record.prop],placeholder:t.$i18nt(t.record.placeholderTransKey,t.record.placeholder),disabled:t.disabled},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}}):["radio"].includes(t.record.effectType)?[s("el-radio-group",{model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}},t._l(t.getDict(t.record),function(a){return s("el-radio",{key:a.code,attrs:{label:a.code,disabled:t.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.name))+" ")])}),1)]:["checkbox"].includes(t.record.effectType)&&t.ruleFormData[t.record.prop]?[s("el-checkbox-group",{model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}},t._l(t.getDict(t.record),function(a){return s("el-checkbox",{key:a.code,attrs:{label:a.code,name:a.name,disabled:t.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.name))+" ")])}),1)]:["select"].includes(t.record.effectType)?[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}},t._l(t.getDict(t.record),function(a){return s("el-option",{key:a.code,attrs:{label:a.name,value:a.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.name))+" ")])}),1)]:["colorPicker"].includes(t.record.effectType)?[s("el-input",{attrs:{disabled:t.disabled,placeholder:t.$i18nt(t.record.placeholderTransKey,t.record.placeholder)},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}},[s("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",staticStyle:{"margin-right":"-5px"},attrs:{slot:"suffix",size:"small",predefine:t.predefine,"popper-class":"theme-picker-dropdown"},slot:"suffix",model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}})],1)]:["icon"].includes(t.record.effectType)?[s("div",{staticClass:"item-operator"},[s("el-input",{attrs:{placeholder:t.$i18nt(t.record.placeholderTransKey,t.record.placeholder),clearable:""},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}},[t.ruleFormData[t.record.prop]?s("i",{staticClass:"el-input__icon gd-icons active-color",class:t.ruleFormData[t.record.prop],staticStyle:{"font-size":"18px"},attrs:{slot:"prefix"},slot:"prefix"}):t._e()]),s("div",{staticClass:"item-operator-cao"},[s("i",{staticClass:"el-icon-search",on:{click:t.handleIcon}})])],1)]:["editor"].includes(t.record.effectType)?s("childEditor",{attrs:{record:t.record,ruleFormData:t.ruleFormData},on:{change:t.changeEditor}}):["image"].includes(t.record.effectType)?s("gd-upload-img",{ref:"uploadImg",attrs:{record:t.record,model:t.ruleFormData,limit:t.record.limit,prop:t.record.prop}}):["file"].includes(t.record.effectType)?s("el-upload",{attrs:{action:"","on-preview":t.previewFile,"on-remove":t.removeFile,multiple:"",limit:t.record.limit,"http-request":t.uploadFile,"file-list":t.fileListFile,"on-success":t.successFile}},[s("el-button",{attrs:{size:"mini",type:"primary"}},[s("i",{staticClass:"gd-icons gd-icon-shangchuan"}),t._v(" "+t._s(t.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1):["selectFkMultiple"].includes(t.record.effectType)?[s("SelectFkMultiple",{attrs:{column:t.record,multiple:t.record.multiple,visible:t.visible,disabled:t.disabled,ruleFormData:t.ruleFormData},on:{selectFk:t.selectFk}})]:["datetime"].includes(t.record.effectType)?s("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,type:"datetime","value-format":t.fieldFormat,format:t.fieldFormat,placeholder:t.$i18nt(t.record.placeholderTransKey,t.record.placeholder)},model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}}):t._e(),["image","file"].includes(t.record.effectType)?s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:t.imgList.length>0,imgList:t.imgList,currentImg:t.currentImg}}):t._e(),["icon"].includes(t.record.effectType)?s("iconSelector",{ref:"iconSelector",model:{value:t.ruleFormData[t.record.prop],callback:function(a){t.$set(t.ruleFormData,t.record.prop,a)},expression:"ruleFormData[record.prop]"}}):t._e()],2)},_sfc_staticRenderFns$4B=[],__component__$4B=chartbi.normalizeComponent(_sfc_main$4B,_sfc_render$4B,_sfc_staticRenderFns$4B,!1,null,"dfafeab8",null,null);const childRenColumn=__component__$4B.exports,main_vue_vue_type_style_index_0_scoped_f553700d_lang="",_sfc_main$4A={name:"GdEditForm",props:{width:{type:String,default:"800px"},transKey:{type:String,default:""},title:{type:String,default:"\u6807\u9898"},labelWidth:{type:String,default:"140px"},size:{type:String,default:"small"},inline:{type:Boolean,default:!1},formWidth:{type:String,default:"100%"},formItemWidth:{type:String,default:"100%"},loading:{type:Boolean,default:!1},buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},defaultProps:{type:Object,default:()=>({children:"children",label:"title",value:"value"})},labelPosition:{type:String,default:"right"},needLoad:{type:Boolean,default:!1},formMode:{type:String,default:"dialog"}},components:{childRenColumn},data(){return{record:null,confirmLoading:!1,visible:!1,fullscreen:!1,ruleFormData:{}}},watch:{loading(i){this.confirmLoading=i}},computed:{getColumns(){let i=[...this.columns];return i.filter(t=>(t.rules.filter(s=>(s.oldMessage===void 0&&(s.oldMessage=s.message),s.message=this.$i18nt(s.transKey,s.message),!0)),!0)),[...i]},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`width:${this.formWidth};margin: 0 auto;min-height:400px;--form-inline-wid:calc(100% - ${this.labelWidth})`},istyle(){return this.inline?`width:50%;padding-left:0px;margin:${this.formMode==="dialog"?"0 auto":"7px auto"} ;`:this.formMode==="dialog"?`width:${this.formItemWidth};margin: 0 auto;`:`width:${this.formItemWidth};margin: 14px auto;`}},methods:{init(){return new Promise((i,t)=>{this.$nextTick(()=>{setTimeout(()=>{const s=this.record&&typeof this.record=="object"?this.record:{};let a=new Map,l=new Map;this.columns.forEach(n=>{if(!(n.type==="slot"&&(n.slotType==="none"||n.slotType==="divider")))if(["input","textarea","image","file","editor"].includes(n.effectType))a.set(n.prop,n.defaultValue!==void 0?n.defaultValue:"");else if(["fk","user","select","radio"].includes(n.effectType))a.set(n.prop,n.defaultValue!==void 0?n.defaultValue:"");else if(["participants","checkbox"].includes(n.effectType))a.set(n.prop,n.defaultValue!==void 0?n.defaultValue:[]);else if(["switch"].includes(n.effectType)){const o=n.defaultValue!==void 0?n.defaultValue:!1,r=s[n.prop]===void 0?o:s[n.prop]==1;a.set(n.prop,r),l.set(n.prop,r)}else["inputnumber","currency","double"].includes(n.effectType)?a.set(n.prop,n.defaultValue!==void 0?n.defaultValue==="undefined"?void 0:n.defaultValue:void 0):a.set(n.prop,n.defaultValue!==void 0?n.defaultValue:"")}),this.ruleFormData=Object.assign(Object.fromEntries(a),{...s},Object.fromEntries(l)),this.$refs.ruleForm&&this.$refs.ruleForm.resetFields(),i(this.ruleFormData)},0)})})},setData(i){this.$nextTick(()=>{setTimeout(()=>{const t=i||{};this.ruleFormData=Object.assign({...this.ruleFormData},{...t}),this.$refs.ruleForm.resetFields()},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){if(this.record=i?{...i}:null,this.visible=!0,this.init(),this.needLoad)return new Promise((t,s)=>{t({instance:this,done:this.setData})})},openHand(i){if(this.record=i?{...i}:null,this.visible=!0,this.needLoad)return new Promise((t,s)=>{t({instance:this,done:this.setData})})},closed(){this.$refs.ruleForm&&this.$refs.ruleForm.resetFields(),this.fullscreen=!1,this.visible=!1,this.record=null},handleSubmit(i){i.item.functionName,this.$refs.ruleForm.validate((t,s)=>{if(t){let a={...this.ruleFormData};this.columns.forEach(l=>{["switch"].includes(l.effectType)&&a[l.prop]!==void 0&&(a[l.prop]=a[l.prop]?1:0)}),this.$emit("sbumit",{data:Object.assign({},{...a}),record:this.record,btn:i},this,this.closed)}})},doEvent(i){if(i.item.validate){this.handleSubmit(i);return}this.$emit("sbumit",{data:Object.assign({},{...this.ruleFormData}),record:this.record,btn:i},this,this.closed)},selectFk(i){this.$emit("selectFk",i)}}};var _sfc_render$4A=function(){var t=this,s=t._self._c;return s("div",[t.formMode==="dialog"?s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:t.headTitle,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen,close:t.closed},slot:"title"}),t.visible?s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",class:`gd-form gd-form-${t.inline}`,style:t.style,attrs:{model:t.ruleFormData,"label-width":t.labelWidth,"label-position":t.labelPosition,size:t.size,inline:t.inline},nativeOn:{submit:function(a){a.preventDefault()}}},[t._l(t.getColumns,function(a,l){return[a.type==="slot"&&a.slotType==="none"?s("el-form-item",{style:t.istyle,attrs:{label:""}}):a.type==="slot"&&a.slotType==="divider"?s("el-divider"):s("el-form-item",{style:t.istyle,attrs:{prop:a.prop,rules:a.rules}},[s("span",{attrs:{slot:"label",title:t.$i18nt(a.transKey,a.label)},slot:"label"},[t._v(" "+t._s(t.$i18nt(a.transKey,a.label))+" ")]),a.type==="slot"?t._t(a.slotType,null,{data:t.ruleFormData,column:a,record:t.record}):s("child-ren-column",{attrs:{ruleFormData:t.ruleFormData,record:a,defaultProps:t.defaultProps,visible:t.visible},on:{selectFk:t.selectFk}})],2)]})],2):t._e()],1):s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:t.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(a){t.visible=a}}},[s("gd-modal-title",{attrs:{slot:"title",title:t.headTitle,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:t.doEvent,close:t.closed},slot:"title"}),s("div",[t.visible?s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",class:`gd-form gd-form-${t.inline}`,style:t.style,attrs:{model:t.ruleFormData,"label-width":t.labelWidth,"label-position":t.labelPosition,size:t.size,inline:t.inline},nativeOn:{submit:function(a){a.preventDefault()}}},[t._l(t.getColumns,function(a,l){return[a.type==="slot"&&a.slotType==="none"?s("el-form-item",{style:t.istyle,attrs:{label:""}}):a.type==="slot"&&a.slotType==="divider"?s("el-divider"):s("el-form-item",{style:t.istyle,attrs:{label:t.$i18nt(a.transKey,a.label),prop:a.prop,rules:a.rules}},[s("span",{attrs:{slot:"label",title:t.$i18nt(a.transKey,a.label)},slot:"label"},[t._v(" "+t._s(t.$i18nt(a.transKey,a.label))+" ")]),a.type==="slot"?t._t(a.slotType,null,{data:t.ruleFormData,column:a}):s("childRenColumn",{attrs:{ruleFormData:t.ruleFormData,record:a,defaultProps:t.defaultProps,visible:t.visible}})],2)]})],2):t._e()],1)],1)],1)},_sfc_staticRenderFns$4A=[],__component__$4A=chartbi.normalizeComponent(_sfc_main$4A,_sfc_render$4A,_sfc_staticRenderFns$4A,!1,null,"f553700d",null,null);const GDpackage$p=__component__$4A.exports;GDpackage$p.install=function(i){i.component(GDpackage$p.name,GDpackage$p)};const main_vue_vue_type_style_index_0_scoped_c66125a1_lang="",_sfc_main$4z={name:"GdSelectTree",components:{},model:{prop:"inputValue",event:"myInputEvent"},props:{defaultValue:{type:[Number,String]},filterable:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},remoteMethod:{type:Function},treeOptions:{type:Array,default:()=>[]},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},defaultProps:{type:Object,default:()=>({children:"children",label:"title",value:"value"})}},watch:{treeOptions:{handler(i){this.loading=!1,this.dataOfTree=JSON.parse(JSON.stringify(i)),this.dataSource=JSON.parse(JSON.stringify(i))},deep:!0,immediate:!1},defaultValue:{handler(i){this.isFilterWithValue||(this.selectedNode={},this.currentLabel=void 0,this.currentValue=i,this.$nextTick(()=>{setTimeout(()=>{this.isFilterWithValue=!0,this.dataOfTree&&this.$refs.treeRef&&this.$refs.treeRef.filter(i),!i&&this.$refs.treeRef&&i!==0&&this.$refs.treeRef.setCurrentKey(null)},100)}))},deep:!0,immediate:!0}},computed:{filterableFor(){return this.remote?!1:this.filterable},remoteFor(){return this.filterable?!1:this.remote}},data(){return{selectedNode:{},loading:!1,currentValue:void 0,currentLabel:void 0,dataOfTree:[],isFilterWithValue:!1}},created(){this.dataOfTree=JSON.parse(JSON.stringify(this.treeOptions)),this.dataSource=JSON.parse(JSON.stringify(this.treeOptions))},mounted(){},methods:{selectRemoteMethod(i){this.isFilterWithValue=!1,this.filterableFor?this.$refs.treeRef.filter(i):this.remoteFor&&(this.loading=!0,this.remoteMethod(i))},handleClear(){this.selectedNode={},this.currentLabel=void 0,this.currentValue=void 0;const i=this.buildEmptyResult();this.$emit("myInputEvent",i.data.value),this.$emit("onNodeSelectEvent",i)},handleVisibleChange(i){i||(this.dataOfTree.splice(0),this.dataOfTree.splice(0,0,...this.dataSource),this.$refs.treeRef.filter(""))},filterNode(i,t){if(!i&&i!==0)return t;if(this.isFilterWithValue){if(t[this.defaultProps.value]===i){this.selectedNode=t,this.currentLabel=t[this.defaultProps.label],this.$refs.treeRef.setCurrentKey(this.selectedNode[this.defaultProps.value]);const s=this.buildResultByNodeData(t);this.$emit("myInputEvent",s.data.value)}}else return t[this.defaultProps.label].indexOf(i)!==-1;return t},closeSelect(){this.$refs.selectRef.blur()},handleNodeClicked(i,t,s){if(i.disabled!==void 0&&i.disabled){this.$refs.treeRef.setCurrentKey(null);return}this.selectedNode=i,this.currentLabel=i[this.defaultProps.label],this.currentValue=i[this.defaultProps.value];const a=this.buildResultByNodeData(i);this.$emit("myInputEvent",a.data.value),this.$emit("onNodeSelectEvent",a),this.closeSelect()},buildResultByNodeData(i){return{node:i[this.defaultProps.value],data:{label:i[this.defaultProps.label],value:i[this.defaultProps.value]},meta:i}},buildEmptyResult(){return{node:void 0,data:{label:void 0,value:void 0},meta:void 0}}}};var _sfc_render$4z=function(){var t=this,s=t._self._c;return s("el-select",{ref:"selectRef",staticStyle:{width:"100%"},attrs:{disabled:t.disabled,clearable:"",filterable:t.filterableFor||t.remoteFor,remote:t.filterableFor||t.remoteFor,"remote-method":t.selectRemoteMethod,placeholder:t.placeholder},on:{"visible-change":t.handleVisibleChange,clear:t.handleClear},model:{value:t.currentLabel,callback:function(a){t.currentLabel=a},expression:"currentLabel"}},[s("el-option",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{height:"100%",padding:"0"},attrs:{value:"","element-loading-text":t.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),"element-loading-spinner":"el-icon-loading"}},[s("el-tree",{ref:"treeRef",attrs:{data:t.dataOfTree,"node-key":t.defaultProps.value,props:t.defaultProps,"highlight-current":"","default-expand-all":"","current-node-key":t.selectedNode.value,"expand-on-click-node":!1,"filter-node-method":t.filterNode},on:{"node-click":t.handleNodeClicked},scopedSlots:t._u([{key:"default",fn:function({node:a,data:l}){return s("span",{},[s("span",{class:l.disabled?"tree-is-disabled":"",attrs:{title:l[t.defaultProps.label]}},[t._v(t._s(l[t.defaultProps.label]))])])}}])})],1)],1)},_sfc_staticRenderFns$4z=[],__component__$4z=chartbi.normalizeComponent(_sfc_main$4z,_sfc_render$4z,_sfc_staticRenderFns$4z,!1,null,"c66125a1",null,null);const GDpackage$o=__component__$4z.exports;GDpackage$o.install=function(i){i.component(GDpackage$o.name,GDpackage$o)};const selectFkMultiple_vue_vue_type_style_index_0_scoped_45ca93b0_lang="",_sfc_main$4y={props:{column:{type:Object,default:()=>[]},ruleFormData:{type:Object,required:!0},visible:{type:Boolean,default:!1},openMode:{type:[String,Number],default:1},recordRelation:{type:Object,default:()=>({})},changeTrigger:{type:Function},tagWidth:{type:String,default:"50%"}},data(){return{fkData:[],loading:!1,firstLoading:!1}},watch:{visible(i,t){i&&this.init()}},computed:{...chartbi.mapGetters(["userInfo","tableLists"])},methods:{fkNotice(){this.$nextTick(()=>{setTimeout(()=>{this.fkData=[],this.firstLoading=!1},10)})},handleChange(i){this.$emit("change",i)},init(){if(this.column.fkData&&this.column.fkData.length>0&&(this.fkData=this.column.fkData,this.firstLoading=!1),this.openMode!=2)return;const i=this.recordRelation.options&&this.recordRelation.options.filterList?this.recordRelation.options.filterList:[],t=this.ruleFormData[this.column.prop];t===void 0||t===""||t.length===0||!i.filter(l=>l.fieldName===this.column.prop)[0]||this.fkData.filter(l=>t.includes(l.id))[0]||(Array.isArray(t)||(this.ruleFormData[this.column.prop]=[this.ruleFormData[this.column.prop]]),this.searchDataId())},lookup(){let i=[];this.column.filterList.forEach(t=>{let s=t.columnName==="&user&"?this.userInfo.id:this.ruleFormData[t.columnName];s!==""&&s!==void 0&&i.push({fieldName:t.fieldName,fieldValue:s,operator:t.operator,columnName:t.columnName})}),this.$nextTick(()=>{setTimeout(()=>{const t=this.ruleFormData[this.column.prop],s=this.column.options.openWidth!==void 0?this.column.options.openWidth:"90",a=this.column.options.widthUnit!==void 0?this.column.options.widthUnit:"%",l=this.column.viewId!==void 0?this.column.viewId:"";let n={fkEntityName:this.column.fkEntityName,effectType:"participants",val:t||[],column:this.column,filterList:i,width:`${s}${a}`};l&&Object.assign(n,{viewId:l}),this.$refs.viewSearch.open(n)},0)})},lookupSeled(i){this.fkData=[...i.fkData],this.ruleFormData[this.column.prop]=i.data,this.$emit("change",i)},fkSearch(){this.column.prop!=="baseRecordTable"&&this.column.prop!=="matchingRecordTable"&&(this.firstLoading||(this.searchData(""),this.firstLoading=!0))},getFilterList(i,t){let s=[];return t===""||t===void 0||t===null?[]:(Object.prototype.toString.call(t)==="[object Array]"?s.push({fieldName:i.fieldName,fieldValue:t.join(","),operator:i.operator,columnName:i.columnName}):s.push({fieldName:i.fieldName,fieldValue:t,operator:i.operator,columnName:i.columnName}),s)},searchData(i){this.loading=!0;const t=this.ruleFormData[this.column.prop]?this.ruleFormData[this.column.prop]:[],s=this.column.fkEntityName.split(",")[0];let a={name:i,fkEntityName:s};if(this.column.filterList&&this.column.filterList.length>0){let n=[];this.column.filterList.forEach(o=>{let r=o.columnName==="&user&"?this.userInfo.id:this.ruleFormData[o.columnName];const d=this.getFilterList(o,r);n=n.concat(d)}),n.length>0&&Object.assign(a,{filter:n})}const l=this.fkData.filter(n=>t.includes(n.id));this.column.filterConfig&&this.column.filterConfig.tablename&&Object.assign(a,{filterConfig:this.column.filterConfig}),messages.baseFkList(a).then(n=>{if(this.loading=!1,n.code===200){const o=n.data.filter(r=>!t.includes(r.id));this.fkData=l.concat(o),this.column.fkData=this.fkData,this.$emit("setFkData",this.column,this.fkData)}})},searchDataId(i){this.loading=!0;const t=this.column.fkEntityName.split(",")[0];let s=this.ruleFormData[this.column.prop],a=[];s.forEach(l=>{let n={id:l,fkEntityName:t},o=this.getBaseFkList(n).then(r=>r);a.push(o)}),Promise.all(a).then(l=>{let n=[];l.forEach(o=>{o.code===200&&(n=n.concat(o.data))}),this.fkData=n,this.column.fkData=n,this.loading=!1,this.$emit("setFkData",this.column,this.fkData)})},getBaseFkList(i){return messages.baseFkList(i).then(t=>t)}}};var _sfc_render$4y=function(){var t=this,s=t._self._c;return s("div",{staticClass:"cao_about",style:{"--fkwidth":t.tagWidth}},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":t.searchData,multiple:"","collapse-tags":!0,"popper-append-to-body":!0,disabled:t.column.disabled===void 0?!1:t.column.disabled},on:{focus:t.fkSearch,change:t.handleChange},model:{value:t.ruleFormData[t.column.prop],callback:function(a){t.$set(t.ruleFormData,t.column.prop,a)},expression:"ruleFormData[column.prop]"}},t._l(t.fkData,function(a){return s("el-option",{key:a.id,attrs:{label:a.transkey?t.$i18nt(`Dynamics.${a.transkey}`,a.busname):a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting",class:t.column.disabled?"pointerevents":"",on:{click:t.lookup}},[s("i",{staticClass:"el-input__icon el-icon-search"})]),s("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0,modalAppendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$4y=[],__component__$4y=chartbi.normalizeComponent(_sfc_main$4y,_sfc_render$4y,_sfc_staticRenderFns$4y,!1,null,"45ca93b0",null,null);const SelectFkMultiple=__component__$4y.exports;function usageBusinessRules({rules:i,data:t,field:s,source:a,done:l,statu:n}){const o=s.options.columnName.toLowerCase(),r=s.options.effectType,d=t[o],u=a||"form",p=n===void 0?!0:n;let h=[];return i.forEach((f,m)=>{let y=[];f.list.forEach((_,v)=>{let C=[];_.condition.list.forEach($=>{let k=usageRules$2({data:$,val:u==="form"?t[$.columnComment]:d,type:r});C.push(k)}),y.push(processingResults$2(C,_))});let g=y.indexOf(!0);if(g!==-1){const _=f.adapted===void 0?["form","flowsProcess"]:f.adapted;f.list[g].operation.list.forEach(v=>{typeof l=="function"&&l(v,p,u==="form"?_:[],f)})}}),h}function usageRules$2(i){switch(i.data.rules){case"1":return isEqual$2(i);case"2":return isEqual$2(i);case"3":return isContain$2(i);case"4":return isContain$2(i);case"5":return isIncludeData$2(i);case"6":return isIncludeData$2(i);case"7":return isGreaterThan$2(i);case"8":return isGreaterThan$2(i);case"9":return isGreaterThan$2(i);case"10":return isGreaterThan$2(i)}}function isEqual$2({data:i,val:t,type:s}){if(t===""||t===void 0)return!1;let a=Array.isArray(t)?t.join(","):t,l=i.val;return["currency","double","inputnumber"].includes(s)&&(a=Number(a),l=Number(l)),["switch","select","radiobox"].includes(s)&&(a=String(a),l=String(l)),i.rules==="1"?a===l:a!==l}function isContain$2({data:i,val:t}){let s=t===void 0?"":String(t),a=String(i.val);return i.rules==="3"?s.indexOf(a)!==-1:s.indexOf(a)===-1}function isIncludeData$2({data:i,val:t}){let s=!0;return(t===null||t===""||t===void 0)&&(s=!1),i.rules==="5"?s:!s}function isGreaterThan$2({data:i,val:t,type:s}){if(t===""||t===void 0)return!1;let a=dataConversion$2(s,{val:t}),l=dataConversion$2(s,i);if(i.rules==="7")return a>l;if(i.rules==="8")return a>=l;if(i.rules==="9")return a<l;if(i.rules==="10")return a<=l}function dataConversion$2(i,t){let s=0;return i==="inputnumber"?s=Number(t.val):s=new Date(String(t.val)).getTime(),s}function processingResults$2(i,t){let s=t.condition.list.length;if(s===0)return!0;let a=s===0?"1":t.condition.list[s-1].type,l=isSatisfyed$2(i,a);return a==="2"&&!l?!0:!!(a!=="2"&&l)}function isSatisfyed$2(i,t){return t==="2"?i.every((s,a,l)=>!s):i.every((s,a,l)=>!!s)}const main_vue_vue_type_style_index_0_scoped_ded8650d_lang="",_sfc_main$4x={name:"GdTableQueriesField",props:{height:{type:Number,default:0},columns:{type:Array,default:()=>[]},queryParam:{type:Object,default:()=>({})},colse:{type:Function},visible:{type:Boolean,default:!1},openMode:{type:[String,Number],default:1},recordRelation:{type:Object,default:()=>({})},viewRecord:{type:Object,default:()=>({})},openRules:{type:Boolean,default:!1},changeTrigger:{type:Function},queriesMode:{type:String,default:"popover"}},data(){return{ruleFormData:{},ruleConfig:[],hideItem:[],viewQueries:[],oldvalue:{}}},components:{SelectFkMultiple},computed:{pickerIntervalOptions(){return{shortcuts:[{text:this.$i18nt("gd.view.lastWeek","\u6700\u8FD1\u4E00\u5468"),onClick(i){const t=new Date,s=new Date;s.setTime(s.getTime()-3600*1e3*24*6),i.$emit("pick",[s,t])}},{text:this.$i18nt("gd.view.lastMonth","\u6700\u8FD1\u4E00\u4E2A\u6708"),onClick(i){const t=new Date,s=new Date;s.setTime(s.getTime()-3600*1e3*24*30),i.$emit("pick",[s,t])}},{text:this.$i18nt("gd.view.pastThreeMonths","\u6700\u8FD1\u4E09\u4E2A\u6708"),onClick(i){const t=new Date,s=new Date;s.setTime(s.getTime()-3600*1e3*24*90),i.$emit("pick",[s,t])}},{text:this.$i18nt("gd.view.currentWeek","\u672C\u5468"),onClick(i){currentWeek(i)}},{text:this.$i18nt("gd.view.lastWeeks","\u4E0A\u4E00\u5468"),onClick(i){lasWeek(i)}},{text:this.$i18nt("gd.view.nextWeeks","\u4E0B\u4E00\u5468"),onClick(i){nextWeek(i)}},{text:this.$i18nt("gd.view.thisMonth","\u672C\u6708"),onClick(i){currentMonth(i)}},{text:this.$i18nt("gd.view.lastMonths","\u4E0A\u4E2A\u6708"),onClick(i){lastMonth(i)}},{text:this.$i18nt("gd.view.nextMonths","\u4E0B\u4E2A\u6708"),onClick(i){nextMonth(i)}},{text:this.$i18nt("gd.view.currentQuarter","\u672C\u5B63\u5EA6"),onClick(i){currentQuarter(i)}},{text:this.$i18nt("gd.view.lastQuarter","\u4E0A\u5B63\u5EA6"),onClick(i){lastQuarter(i)}},{text:this.$i18nt("gd.view.nextQuarter","\u4E0B\u5B63\u5EA6"),onClick(i){nextQuarter(i)}},{text:this.$i18nt("gd.view.currentYear","\u672C\u5E74"),onClick(i){yearDate(i)}},{text:this.$i18nt("gd.view.lastYear","\u53BB\u5E74"),onClick(i){yearDate(i,-1)}},{text:this.$i18nt("gd.view.nextYear","\u660E\u5E74"),onClick(i){yearDate(i,1)}}]}},pickerOptions(){return{shortcuts:[{text:this.$i18nt("gd.view.today","\u4ECA\u5929"),onClick(i){i.$emit("pick",new Date)}},{text:this.$i18nt("gd.view.yesterday","\u6628\u5929"),onClick(i){const t=new Date;t.setTime(t.getTime()-3600*1e3*24),i.$emit("pick",t)}},{text:this.$i18nt("gd.view.daysAgo3","3\u5929\u4E4B\u524D"),onClick(i){const t=new Date;t.setTime(t.getTime()-3600*1e3*24*3),i.$emit("pick",t)}},{text:this.$i18nt("gd.view.daysAgo5","5\u5929\u4E4B\u524D"),onClick(i){const t=new Date;t.setTime(t.getTime()-3600*1e3*24*5),i.$emit("pick",t)}},{text:this.$i18nt("gd.view.daysAgo7","7\u5929\u4E4B\u524D"),onClick(i){const t=new Date;t.setTime(t.getTime()-3600*1e3*24*7),i.$emit("pick",t)}}]}},style(){return this.queriesMode==="popover"?`max-height:${this.height}px;min-height:${this.height/3*2}px`:`height:${this.height}px;`},istyle(){return"margin: 0 auto;"},getColumns(){return(this.openRules?this.viewQueries:this.columns).filter(t=>(t.rules=t.rules?t.rules:[],t.show===void 0?!0:t.show))},...chartbi.mapGetters(["tableLists"])},watch:{visible(i,t){i&&this.init()}},methods:{columnFkData(i,t){this.viewQueries=this.viewQueries.map(s=>Object.assign({...s},{fkData:s.prop===i.prop?i.fkData:s.fkData}))},fkNotice(i){this.viewQueries.filter(s=>s.effectType==="selectFkMultiple").filter(s=>s.filterList&&s.filterList.length>0).forEach(s=>{const a=s.filterList.filter(l=>l.columnName===i.prop)[0];a&&this.changeEmptying(a,s)})},changeEmptying(i,t){if(!(i.changeEmpty===void 0?!0:i.changeEmpty))return;let a=new Map;a.set(t.prop,[]),this.setData(Object.fromEntries(a),t),!this.hideItem.includes(t.prop)&&this.$nextTick(()=>{setTimeout(()=>{let l=this.$refs[`fk_${t.prop}`];l&&l[0].fkNotice()},20)})},handleChange(i){const t=i.rulesList&&i.rulesList.length>0?i.rulesList:[];t.length>0&&usageBusinessRules({data:this.ruleFormData,rules:[{list:t}],field:{options:{columnName:i.prop,effectType:i.effectType}},source:"queries",done:this.hitRules}),setTimeout(()=>{this.fkNotice(i)},20)},setData(i,t){this.ruleFormData=Object.assign({...this.ruleFormData},i),this.handleChange(t)},usageAllRulesReset(){this.ruleConfig.length!==0&&this.viewQueries.forEach(i=>{i.rulesList&&i.rulesList.length>0&&usageBusinessRules({data:this.ruleFormData,rules:[{list:i.rulesList}],field:{options:{columnName:i.prop,effectType:i.effectType}},done:this.hitRules})})},hitRules(i){let t=this.viewQueries.filter(l=>l.id==i.columnComment)[0];if(!t)return;let s=this.hideItem.filter(l=>l!==t.prop);this.hideItem=i.val==="1"?[...s]:s.concat([t.prop]),this.$emit("hideQueryParam",this.hideItem);let a=new Map;a.set(t.prop,this.getTypeVal(t));for(let l in this.ruleFormData)this.hideItem.includes(l)||a.set(l,this.ruleFormData[l]);this.ruleFormData=Object.assign({...this.ruleFormData},Object.fromEntries(a))},getTypeVal(i){return["selectMultiple","selectFkMultiple"].includes(i.effectType)?[]:["datepicker"].includes(i.effectType)&&i.options.displayStyle!==1?[]:""},init(i="init"){let t=new Map;this.columns.filter(o=>o.effectType==="checkbox").forEach(o=>{t.set(o.prop,[])});let s=new Map;for(let o in this.queryParam){let r=this.columns.filter(d=>d.prop===o)[0];r&&["checkbox","selectMultiple"].includes(r.effectType)?s.set(o,i==="init"?Array.isArray(this.queryParam[o])?this.queryParam[o]:this.queryParam[o].split(","):[]):r&&["inputnumber","double","currency"].includes(r.effectType)?s.set(o,i==="init"?this.queryParam[o]:void 0):Array.isArray(this.queryParam[o])?s.set(o,i==="init"?this.queryParam[o]:[]):s.set(o,i==="init"?this.queryParam[o]:"")}if(this.ruleFormData=Object.assign(Object.fromEntries(t),Object.fromEntries(s)),setTimeout(()=>{this.oldvalue={},this.oldvalue=JSON.stringify(this.ruleFormData)},100),!this.openRules)return;let a=[],l=[];return this.ruleConfig=this.viewRecord.ruleconfig?JSON.parse(this.viewRecord.ruleconfig):[],this.columns.forEach(o=>{a.push(Object.assign({...o},{rulesList:this.hitItem(o)})),o.options.hidden&&l.push(o.prop)}),this.columns.filter(o=>o.options.filter!==void 0&&o.options.filter.length>0).forEach(o=>{let r=[];o.options.filter.forEach(d=>{let u=this.columns.filter(p=>p.prop==d.columnName)[0];if(u){let p=this.ruleFormData[u.prop];r.push({fieldName:d.fieldName,fieldValue:p,operator:d.operator,columnName:d.columnName,changeEmpty:d.changeEmpty===void 0?!0:d.changeEmpty})}if(r.length>0){let p=a.findIndex(h=>h.prop===o.prop);a[p].filterList=r}})}),this.viewQueries=a,this.hideItem=[...l],this.usageAllRulesReset(),new Promise(o=>{setTimeout(()=>{o()},10)})},hitItem(i){if(this.ruleConfig.length==0)return[];let t=[];return this.ruleConfig.forEach((s,a)=>{s.condition.list.filter(n=>n.columnComment===i.id)[0]&&t.push(s)}),t},isHitItemChecked(i,t){return i.every((s,a,l)=>s.columnComment!==t.id)},save(){this.$refs.ruleForm.validate((i,t)=>{if(i){let s=new Map;for(let a in this.ruleFormData){let l=this.columns.filter(n=>n.prop===a)[0];["checkbox"].includes(l.effectType)?s.set(a,this.ruleFormData[a].join(",")):s.set(a,this.ruleFormData[a])}this.$emit("save",Object.fromEntries(s),this.openRules?this.viewQueries:this.columns),this.cancel()}else{let s=new Map(Object.entries(t)),a=[];for(let r of s.keys())a.push(r);const l=t[a[0]][0],n=this.columns.filter(r=>r.prop===l.field)[0],o=n?`${this.$i18nt(`Dynamics.${n.transKey}`,n.label)} `:l.field;this.$message.error(`${this.$i18nt("gd.https.errors","\u6821\u9A8C\u5931\u8D25")}: ${o} ${l.message}!`)}})},cancel(){this.colse()},close(){},reset(){this.init("reset"),this.$emit("reset")},getDict(i){return i.dictData?i.dictData:this.getDictionary(i)},getDictionary(i){return this.$options.filters.dictData(i.dictTypeCode)}}};var _sfc_render$4x=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-table-queries",style:t.style},[s("el-form",{ref:"ruleForm",staticClass:"gd-form table-queries-form",attrs:{model:t.ruleFormData,size:"small",labelPosition:"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[t._l(t.getColumns,function(a,l){return[t.hideItem.includes(a.prop)?t._e():s("el-form-item",{style:t.istyle,attrs:{label:t.$i18nt(a.transKey,a.label),prop:a.prop,rules:a.rules},nativeOn:{submit:function(n){n.preventDefault()}}},[["inputnumber","double","currency"].includes(a.effectType)?[s("el-input-number",{staticStyle:{width:"100%","text-align":"left"},attrs:{placeholder:t.$i18nt("gd.placeholder.input"),clearable:"",min:a.min||a.min===0?a.min:-1/0,max:a.max||a.max===0?a.max:1/0,disabled:a.disabled===void 0?!1:a.disabled,"controls-position":"right"},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}})]:a.effectType==="checkbox"?[t.ruleFormData[a.prop]?s("el-checkbox-group",{attrs:{disabled:a.disabled===void 0?!1:a.disabled},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}},t._l(t.getDict(a),function(n){return s("el-checkbox",{key:n.code,attrs:{label:n.code,name:t.$i18nt(n.prefix?`${n.prefix}.${n.transkey}`:`Dynamics.${n.transkey}`,n.name)}},[t._v(" "+t._s(t.$i18nt(n.prefix?`${n.prefix}.${n.transkey}`:`Dynamics.${n.transkey}`,n.name))+" ")])}),1):t._e()]:a.effectType==="radio"?[s("el-radio-group",{attrs:{disabled:a.disabled===void 0?!1:a.disabled},on:{input:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}},t._l(t.getDict(a),function(n){return s("el-radio",{key:n.code,attrs:{label:n.code,name:t.$i18nt(n.prefix?`${n.prefix}.${n.transkey}`:`Dynamics.${n.transkey}`,n.name)}},[t._v(" "+t._s(t.$i18nt(n.prefix?`${n.prefix}.${n.transkey}`:`Dynamics.${n.transkey}`,n.name))+" ")])}),1)]:a.effectType==="selectMultiple"?[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",clearable:"",multiple:"",filterable:"","collapse-tags":!0,"popper-append-to-body":!1,disabled:a.disabled===void 0?!1:a.disabled},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}},t._l(t.getDict(a),function(n){return s("el-option",{key:n.code,attrs:{value:n.code,label:t.$i18nt(n.prefix?`${n.prefix}.${n.transkey}`:`Dynamics.${n.transkey}`,n.name)}},[t._v(" "+t._s(t.$i18nt(n.prefix?`${n.prefix}.${n.transkey}`:`Dynamics.${n.transkey}`,n.name))+" ")])}),1)]:a.effectType==="select"?[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",clearable:"","collapse-tags":!0,"popper-append-to-body":!1,disabled:a.disabled===void 0?!1:a.disabled},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}},t._l(t.getDict(a),function(n){return s("el-option",{key:n.code,attrs:{value:n.code,label:t.$i18nt(n.prefix?`${n.prefix}.${n.transkey}`:`Dynamics.${n.transkey}`,n.name)}},[t._v(" "+t._s(t.$i18nt(n.prefix?`${n.prefix}.${n.transkey}`:`Dynamics.${n.transkey}`,n.name))+" ")])}),1)]:a.effectType==="selectTable"?[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"reserve-keyword":"",clearable:"","collapse-tags":!0,"popper-append-to-body":!1,disabled:a.disabled===void 0?!1:a.disabled},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}},t._l(t.tableLists,function(n){return s("el-option",{key:n.id,attrs:{label:t.$i18nt(`Dynamics.${n.transkey}`,n.busname),value:n.id}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.busname))+" "+t._s(n.tablename)+" ")])}),1)]:a.effectType==="selectFkMultiple"?[s("SelectFkMultiple",{ref:`fk_${a.prop}`,refInFor:!0,attrs:{column:a,ruleFormData:t.ruleFormData,visible:t.visible,recordRelation:t.recordRelation,openMode:t.openMode,changeTrigger:t.changeTrigger},on:{change:function(n){return t.handleChange(a)},setFkData:t.columnFkData}})]:a.effectType=="datepicker"?[a.options.displayStyle===1?[a.hasTimePicker?s("el-time-picker",{staticStyle:{width:"100%"},attrs:{"value-format":a.valueFormat,format:a.valueFormat,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:a.disabled===void 0?!1:a.disabled},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}}):[a.pickerType==="date"?s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:a.pickerType,"value-format":a.valueFormat,format:a.valueFormat,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:a.disabled===void 0?!1:a.disabled,"picker-options":t.pickerOptions},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}}):s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:a.pickerType,"value-format":a.valueFormat,format:a.valueFormat,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:a.disabled===void 0?!1:a.disabled},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}})]]:[a.pickerType==="month"?s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"monthrange",format:"yyyy-MM","value-format":"yyyy-MM","range-separator":"~","start-placeholder":t.$i18nt("el.datepicker.startDate","\u5F00\u59CB\u65E5\u671F"),"end-placeholder":t.$i18nt("el.datepicker.endDate","\u7ED3\u675F\u65E5\u671F"),disabled:a.disabled===void 0?!1:a.disabled},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}}):s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"~","start-placeholder":t.$i18nt("el.datepicker.startDate","\u5F00\u59CB\u65E5\u671F"),"end-placeholder":t.$i18nt("el.datepicker.endDate","\u7ED3\u675F\u65E5\u671F"),disabled:a.disabled===void 0?!1:a.disabled,"picker-options":t.pickerIntervalOptions},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}})]]:[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input"),clearable:"",disabled:a.disabled===void 0?!1:a.disabled},on:{change:function(n){return t.handleChange(a)}},model:{value:t.ruleFormData[a.prop],callback:function(n){t.$set(t.ruleFormData,a.prop,n)},expression:"ruleFormData[column.prop]"}})]],2)]})],2),s("div",{staticClass:"gd-table-btom"},[s("div",{staticClass:"active-color btom-reset",on:{click:t.reset}},[s("i",{staticClass:"el-icon-brush"}),t._v(" "+t._s(t.$i18nt("gd.btn.reset","\u91CD\u7F6E"))+" ")]),s("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-document-checked"},on:{click:t.save}},[t._v(" "+t._s(t.$i18nt("gd.btn.confirm","\u786E\u8BA4"))+" ")]),s("el-button",{attrs:{type:"info",size:"mini",icon:"el-icon-error"},on:{click:t.cancel}},[t._v(t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88")))])],1)],1)},_sfc_staticRenderFns$4x=[],__component__$4x=chartbi.normalizeComponent(_sfc_main$4x,_sfc_render$4x,_sfc_staticRenderFns$4x,!1,null,"ded8650d",null,null);const GDpackage$n=__component__$4x.exports;GDpackage$n.install=function(i){i.component(GDpackage$n.name,GDpackage$n)};ImgPreview.install=function(i){i.component(ImgPreview.name,ImgPreview)};const main_vue_vue_type_style_index_0_scoped_ade642f2_lang="",_sfc_main$4w={name:"GdModalTitle",props:{showTitle:{type:Boolean,default:!0},showScale:{type:Boolean,default:!0},title:{type:String,default:""},showClose:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},buttons:{type:Array,default:()=>[]},confirmLoading:{type:Boolean,default:!1},modalType:{type:String,default:"dialog"},closed:{type:String,default:"closed"},toggleFullscreen:{type:String,default:"toggleFullscreen"},emitFun:{type:Boolean,default:!1}},data(){return{}},computed:{getButtons(){const i=this.showFullscreen?[{displayName:this.fullscreen?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F",functionName:this.toggleFullscreen,icon:this.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",show:!0,transKey:this.fullscreen?"gd.menu.outFullScreen":"gd.menu.fullScreen",btnType:this.fullscreen?"danger":"primary",btnMode:"scale"}]:[],t=this.showClose?[{displayName:"\u5173\u95ED",functionName:this.closed,icon:"el-icon-close",show:!0,transKey:"gd.btn.close",btnType:"info",btnMode:"close"}]:[];return this.buttons.concat(i).concat(t)},mstyle(){const i=this.getButtons.filter(a=>a.functionName===this.closed)[0],t=this.showClose?0:20;return`right:${i?t+62:t}px`},style(){return this.showClose?"margin-right: 0;padding-right:0;":this.modalType==="dialog"?"margin-right: 26px;padding-right:0;":"margin-right: 6px;padding-right:0;"},...chartbi.mapGetters(["btnMode"])},methods:{doEvent(i){if(i.item.btnMode==="close"&&this.emitFun){this.$emit("close");return}if(i.item.btnMode==="scale"&&this.emitFun){this.toggle();return}this.$emit("changeEvent",i)},toggle(){this.$emit("toggleFullscreen")}}};var _sfc_render$4w=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-dialog-head",style:t.style},[t.showTitle?s("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.title))]):t._e(),t._t("default"),s("div",{staticClass:"dialog-head-btn"},[s("gd-btn-list",{attrs:{sysViewButtons:t.getButtons},on:{functionName:t.doEvent}})],1),t.confirmLoading?s("div",{staticClass:"gd-dialog-meng",style:t.mstyle}):t._e()],2)},_sfc_staticRenderFns$4w=[],__component__$4w=chartbi.normalizeComponent(_sfc_main$4w,_sfc_render$4w,_sfc_staticRenderFns$4w,!1,null,"ade642f2",null,null);const GDpackage$m=__component__$4w.exports;GDpackage$m.install=function(i){i.component(GDpackage$m.name,GDpackage$m)};const table_vue_vue_type_style_index_0_scoped_a7de7119_lang="",_sfc_main$4v={mixins:[viewMixins],methods:{}};var _sfc_render$4v=function(){var t=this,s=t._self._c;return s("div",[s("gd-view-build-designer",{ref:"table",attrs:{record:t.record,develop:t.develop,openMode:t.openMode,height:t.height,foreign:t.foreign,disabledRowId:t.disabledRowId,excludeButtons:t.excludeButtons,lineQuickView:t.lineQuickView},on:{baseOpen:t.open,changeBtn:t.onChangeBtn,changeView:t.onChangeView,changeData:t.onChangeData,changeSelect:t.onChangeSelect,doEvent:t.doEvent}}),s(t.componentForm,{ref:"editForm",tag:"component",attrs:{fieldData:t.fieldData,tableData:t.tableData,recordRelation:t.record,openMode:t.openMode},on:{ok:t.refresh,relationOk:t.baseRelationOk}})],1)},_sfc_staticRenderFns$4v=[],__component__$4v=chartbi.normalizeComponent(_sfc_main$4v,_sfc_render$4v,_sfc_staticRenderFns$4v,!1,null,"a7de7119",null,null);const ViewTable$1=__component__$4v.exports,main_vue_vue_type_style_index_0_scoped_e1e79f77_lang="",_sfc_main$4u={name:"GdSearch",props:{disabled:{type:Boolean,default:!1},showView:{type:Boolean,default:!1},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},openMode:{type:[String,Number],default:2},disabledRowId:{type:Array,default:()=>[]}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:{},lookupItem:{},visible:!1,confirmLoading:!1,childLoading:!1,fullscreen:!1,width:"90%",fkEntityName:"",show:!1,dataList:[],isRelevance:!1,tableList:[],title:this.$i18nt("gd.menu.advancedFind","\u67E5\u627E"),timeOut:null}},computed:{showTitle(){return!(this.tableList.length>1||this.showView)},table(){return this.tableLists.filter(i=>i.tablename===this.fkEntityName)[0]},height(){return this.screenHeight-(this.fullscreen?80:240)},getHig(){return this.height*66},getRecord(){let i=this.lookupItem.viewId?this.lookupItem.viewId:"";if(this.tableList.length>1){const a=(this.lookupItem.viewList?this.lookupItem.viewList:[]).filter(l=>l.fkEntityName===this.fkEntityName)[0];i=a?a.id:""}return{type:"search",options:Object.assign({...this.lookupItem},{heightMode:"fill",table:this.table,form:{id:this.lookupItem.formId?this.lookupItem.formId:""},btn:[],formKey:"",formMode:"form",view:{id:i}}),hasLoad:this.hasLoad,hideLoad:this.hideLoad,modalAppendToBody:this.modalAppendToBody,appendToBody:this.appendToBody}},componentItemed(){const i=this.record.fkEntityName||this.record.fkentityname,t=GdsDesignVue[`Gd${i}`];if(t)return t;const s=this.$importViewFiles();let a=`../views/main/${this.fkEntityName}/index.vue`,l=s[a];return l?l.default:ViewTable$1},...chartbi.mapGetters(["screenHeight","tableLists"])},methods:{hasLoad(i){this.timeOut&&clearTimeout(this.timeOut)},hideLoad(){setTimeout(()=>{this.confirmLoading=!1,this.childLoading=!1},0)},handleSubmit(){this.confirmLoading=!0;let i=this.$refs.lookuptable.selectedRowKeys;const t=this.dataList.filter(a=>i.includes(a.id));let s={table:this.table,data:i,fkData:t};this.$emit("lookupSeled",s),this.isRelevance||this.closed(),setTimeout(()=>{this.confirmLoading=!1},1500)},open(i){this.confirmLoading=!0,this.childLoading=!0,this.record=i;const s=(i.fkEntityName||i.fkentityname).split(",");this.width=i.width?i.width:"90%",this.fkEntityName=s[0].toLowerCase(),this.lookupItem={...i},this.isRelevance=i.isRelevance?i.isRelevance:!1,this.tableList=this.tableLists.filter(a=>s.includes(a.tablename)),this.visible=!0,this.title=i.title?i.title:this.$i18nt("gd.menu.advancedFind","\u67E5\u627E"),this.$nextTick(()=>{setTimeout(()=>{this.show=!0},0),this.timeOut=setTimeout(()=>{this.confirmLoading=!1,this.childLoading=!1},50)})},change(i){let t=this.$refs.lookuptable.selectedRowKeys;this.show=!1,this.confirmLoading=!0,this.lookupItem=Object.assign(this.lookupItem,{val:t}),this.$nextTick(()=>{setTimeout(()=>{this.show=!0},0),this.timeOut=setTimeout(()=>{this.confirmLoading=!1},50)})},changeData(i){let t=[];this.dataList.forEach(a=>{t.push(a.id)});const s=i.filter(a=>t.includes(a.id)?!1:(a.tableName=this.fkEntityName,!0));this.dataList=this.dataList.concat(s)},closed(){this.fullscreen=!1,this.visible=!1,this.show=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$4u=function(){var t=this,s=t._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":t.modalAppendToBody,"append-to-body":t.appendToBody,top:"80px","destroy-on-close":!0,"show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.title,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showTitle:t.showTitle,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}},[t.showTitle?t._e():s("el-form",{ref:"ruleForm",staticClass:"gd-search-form",attrs:{"label-width":"130px"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:"","label-width":"0px"}},[s("el-select",{attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},on:{change:t.change},model:{value:t.fkEntityName,callback:function(a){t.fkEntityName=a},expression:"fkEntityName"}},t._l(t.tableList,function(a){return s("el-option",{key:a.tablename,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname),value:a.tablename}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+t._s(a.tablename)+" ")])}),1)],1)],1)],1)],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],class:t.confirmLoading?"gd-page-bulid":""},[t.childLoading?s("div",{staticClass:"bulid-loading"},[s("gd-view-loading",{attrs:{height:t.getHig,openMode:2}})],1):t._e(),t.show?s(t.componentItemed,{ref:"lookuptable",tag:"component",attrs:{record:t.getRecord,height:t.height,develop:2,openMode:t.openMode,disabledRowId:t.disabledRowId},on:{changeData:t.changeData}}):t._e()],1)],2)},_sfc_staticRenderFns$4u=[],__component__$4u=chartbi.normalizeComponent(_sfc_main$4u,_sfc_render$4u,_sfc_staticRenderFns$4u,!1,null,"e1e79f77",null,null);const GDpackage$l=__component__$4u.exports;GDpackage$l.install=function(i){i.component(GDpackage$l.name,GDpackage$l)};TeamSharing.install=function(i){i.component(TeamSharing.name,TeamSharing)};const main_vue_vue_type_style_index_0_scoped_b6031a49_lang="",_sfc_main$4t={name:"GdBatchUpdate",props:{viewRecord:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},tableData:{type:Object,default:()=>({})},fieldData:{type:Array,default:()=>[]},viewCode:{type:[String,Number],required:!0}},data(){return{ruleFormData:{value:"",values:"",columnName:""},rules:{value:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],values:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],columnName:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],operatorButtons:[{displayName:"\u9009\u62E9\u8BB0\u5F55",functionName:"selRecord",show:!0,transKey:"gd.batchUpdate.selRecords",icon:"el-icon-plus"},{displayName:"\u5220\u9664\u5DF2\u9009",functionName:"delRecord",show:!0,transKey:"gd.batchUpdate.delSelected",icon:"el-icon-delete",btnType:"danger"}],visible:!1,confirmLoading:!1,fullscreen:!1,selectedRowKeys:[],selectedRows:[],width:"90%",loadDataList:i=>new Promise((t,s)=>{t({pageNo:1,pageSize:200,totalRows:0,rows:this.loadData})}),loadData:[],loading:!1,fkData:[],show:!0,type:1}},components:{ChildRenItem,EffectTypeIcon:messages.EffectTypeIcon},computed:{fieldFormat(){const t=this.$options.filters.dictData("time_longshort").filter(s=>String(s.code)===String(this.getColumnName.fieldfrmat))[0];return t?t.name.replace("DD","dd"):"yyyy-MM-dd HH:mm:ss"},precision(){return this.getColumnName.effecttype==="inputnumber"?0:this.getColumnName.filedsize},getColumnName(){const i=this.fieldData.filter(t=>t.columnname===this.ruleFormData.columnName)[0];return i||{effecttype:"input"}},getColumnsed(){return[...this.columns].map(s=>(s.renderHeader&&delete s.renderHeader,s)).filter(s=>s.type==="slot")},getFieldData(){return this.fieldData.filter(i=>!(i.effecttype=="about"&&i.columnname===(i.relations+"_AboutTable").toLowerCase()))},height(){return this.screenHeight-(this.fullscreen?130:280)},...chartbi.mapGetters(["screenHeight","tableSize","tablePageSize","tableLists"])},methods:{save(){let i=this;this.$confirm(this.$i18nt("gd.batchUpdate.confirmUpdateTip","\u662F\u5426\u786E\u8BA4\u66F4\u65B0\u6240\u9009\u5DF2\u6709\u8BB0\u5F55?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.batchUpdate.confirmUpdate","\u786E\u8BA4\u66F4\u65B0"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(t,s,a)=>{if(t!=="confirm"){i.confirmLoading=!1,a();return}s.confirmButtonLoading=!0,s.cancelButtonLoading=!0,s.showCancelButton=!1;const l=i.$refs.table.tableData;let n=[];l.forEach(p=>{n.push(p.id)});const o=["select","radio","checkbox","switch","fk","user","about","participants"].includes(i.getColumnName.effecttype)?i.ruleFormData.values:i.ruleFormData.value;let r;if(["participants"].includes(i.getColumnName.effecttype)){let p=[];i.fkData.forEach(h=>{o.includes(h.id)&&p.push({name:h.name,id:h.id,tableName:h.tableName})}),r=JSON.stringify(p)}else r=o;let d={filedName:this.ruleFormData.columnName,value:r};if(["about"].includes(i.getColumnName.effecttype)){const p=i.fkData.filter(f=>f.id==o)[0],h=i.tableLists.filter(f=>f.tablename===p.tableName)[0];Object.assign(d,{valueTable:h.id})}let u={tableName:i.tableData.tablename,idValues:n.join(","),filedList:[d]};messages.baseBatchUpdate(u).then(p=>{s.confirmButtonLoading=!1,s.cancelButtonLoading=!1,s.showCancelButton=!0,p.success?(i.$message.success(i.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),a(),i.$emit("ok"),i.closed()):i.$message.error(i.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+p.message),i.confirmLoading=!1})}})},handleSubmit(){if(this.$refs.table.tableData.length==0){this.$message.error(this.$i18nt("gd.batchUpdate.delSelectedTip","\u8BF7\u9009\u62E9\u5DF2\u6709\u8BB0\u5F55"));return}if(this.ruleFormData.columnName===""){this.$message.error(this.$i18nt("gd.batchUpdate.updateFieldsTip","\u8BF7\u9009\u62E9\u66F4\u65B0\u5B57\u6BB5!"));return}this.confirmLoading=!0,this.$refs.ruleForm.validate((t,s)=>{t?this.save():(this.$message.error(this.$i18nt("gd.batchUpdate.updateValueTip","\u8BF7\u9009\u62E9\u66F4\u65B0\u503C!")),this.confirmLoading=!1)})},delRecord(){this.selectedRowKeys.length!==0&&this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{if(s(),i!=="confirm")return;const l=this.$refs.table.tableData.filter(n=>!this.selectedRowKeys.includes(n.id));this.loadData=[...l],this.refresh()}})},selRecordBack(i){const s=this.$refs.table.tableData.filter(l=>i.data.includes(l.id)),a=i.fkData.filter(l=>!s.filter(o=>o.id===l.id)[0]);this.loadData=s.concat(a),this.refresh()},selRecord(){this.type=2;const i=this.$refs.table.tableData;let t=[];i.forEach(s=>{t.push(s.id)}),this.$refs.viewSearch.open({fkEntityName:this.tableData.tablename,effectType:"participants",val:t,viewId:this.viewCode})},lookup(){this.type=1,this.$refs.viewSearch.open({fkEntityName:this.getColumnName.fkentityname,effectType:this.getColumnName.effecttype,val:this.ruleFormData.values})},lookupSeled(i){if(console.log(i),this.type===2){this.selRecordBack(i);return}this.getColumnName.effecttype==="participants"?this.ruleFormData.values=i.data:this.ruleFormData.values=i.data[0]?i.data[0]:"";const t=this.ruleFormData.values,a=typeof t=="string"||typeof t=="number"?String(t).split(","):t.map(n=>String(n)),l=this.fkData.filter(n=>!a.includes(String(n.id)));this.fkData=i.fkData.concat(l)},searchData(i){let t=this.getColumnName.fkentityname.split(",")[0];this.loading=!0;const s=this.ruleFormData.values,l=typeof s=="string"||typeof s=="number"?String(s).split(","):s.map(o=>String(o)),n=this.fkData.filter(o=>l.includes(String(o.id)));this.fkData=[],messages.baseFkList({name:i,fkEntityName:t}).then(o=>{if(this.loading=!1,o.code===200){o.data.map(d=>(d.tableName=t,d));const r=o.data.filter(d=>!l.includes(String(d.id)));this.fkData=n.concat(r)}})},handleSelect(){this.ruleFormData.value="",this.ruleFormData.values="",this.fkData=[],this.show=!1,["fk","about","participants"].includes(this.getColumnName.effecttype)&&this.$nextTick(()=>{setTimeout(()=>{this.show=!0,this.searchData("")},100)})},open(){this.visible=!0},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},refresh(){this.$refs.table.refresh(!0)},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionary(i){return this.$options.filters.dictData(i.dicttypecode)},doEvent(i){const t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$4t=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,appendToBody:!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.batchUpdate.title","\u7EDF\u4E00\u66F4\u65B0\u5DF2\u6709\u8BB0\u5F55"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadDataList,size:t.tableSize,pageSize:t.tablePageSize,columns:t.columns,selectedRowKeys:t.selectedRowKeys,height:t.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[s("div",{staticClass:"operator-flex"},[s("el-form",{ref:"ruleForm",staticClass:"operator-flexl",attrs:{model:t.ruleFormData,"label-width":"130px",rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:11}},[s("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:t.$i18nt("gd.batchUpdate.updateFields","\u66F4\u65B0\u5B57\u6BB5"),prop:"columnName"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",size:"mini"},on:{change:t.handleSelect},model:{value:t.ruleFormData.columnName,callback:function(a){t.$set(t.ruleFormData,"columnName",a)},expression:"ruleFormData.columnName"}},t._l(t.getFieldData,function(a){return s("el-option",{key:a.columnname,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment),value:a.columnname}},[s("EffectTypeIcon",{attrs:{effectType:a.effecttype}}),s("span",{staticStyle:{"padding-left":"2px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" ("+t._s(a.columnname)+") ")])],1)}),1)],1)],1),s("el-col",{attrs:{span:11}},[s("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:t.$i18nt("gd.batchUpdate.updateValue","\u66F4\u65B0\u503C"),prop:["select","radio","checkbox","switch","fk","user","about","participants"].includes(t.getColumnName.effecttype)?"values":"value"}},[["select","radio","checkbox","switch"].includes(t.getColumnName.effecttype)?s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",size:"mini"},model:{value:t.ruleFormData.values,callback:function(a){t.$set(t.ruleFormData,"values",a)},expression:"ruleFormData.values"}},[t._l(t.getDictionary(t.getColumnName),function(a){return[s("el-option",{attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.name),value:a.code}})]})],2):["inputnumber","double","currency"].includes(t.getColumnName.effecttype)?s("el-input-number",{attrs:{type:"number",precision:t.precision,placeholder:t.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),"controls-position":"right"},model:{value:t.ruleFormData.value,callback:function(a){t.$set(t.ruleFormData,"value",a)},expression:"ruleFormData.value"}}):["datepicker"].includes(t.getColumnName.effecttype)?[t.getColumnName.fieldformat===3?s("el-time-picker",{staticStyle:{width:"100%"},attrs:{"value-format":t.fieldFormat,format:t.fieldFormat,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.values,callback:function(a){t.$set(t.ruleFormData,"values",a)},expression:"ruleFormData.values"}}):s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:t.getColumnName.fieldformat===1?"date":"datetime","value-format":t.fieldFormat,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.values,callback:function(a){t.$set(t.ruleFormData,"values",a)},expression:"ruleFormData.values"}})]:["fk","about","user"].includes(t.getColumnName.effecttype)?s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":t.searchData,"collapse-tags":!0,"popper-append-to-body":!1,size:"mini"},model:{value:t.ruleFormData.values,callback:function(a){t.$set(t.ruleFormData,"values",a)},expression:"ruleFormData.values"}},[t._l(t.fkData,function(a){return[s("el-option",{attrs:{label:a.name,value:a.id}})]})],2),s("div",{staticClass:"cao_setting",on:{click:t.lookup}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1):["participants"].includes(t.getColumnName.effecttype)&&t.show?s("div",{staticClass:"cao_about"},[s("el-select",{ref:"selectParticipants",staticClass:"cao_input",attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":t.searchData,"multiple-limit":12,multiple:"","collapse-tags":!0,"popper-append-to-body":!1,size:"mini"},model:{value:t.ruleFormData.values,callback:function(a){t.$set(t.ruleFormData,"values",a)},expression:"ruleFormData.values"}},[t._l(t.fkData,function(a){return[s("el-option",{attrs:{label:a.name,value:a.id}})]})],2),s("div",{staticClass:"cao_setting",on:{click:t.lookup}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1):s("el-input",{attrs:{placeholder:t.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.value,callback:function(a){t.$set(t.ruleFormData,"value",a)},expression:"ruleFormData.value"}})],2)],1)],1)],1),s("div",{staticClass:"operator-flexr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.operatorButtons},on:{functionName:t.doEvent}})],1)],1)]},proxy:!0},t._l(t.getColumnsed,function(a){return{key:a.prop,fn:function({column:l,row:n}){return[s("ChildRenItem",{attrs:{item:a,row:n,getFristColumn:{}}})]}}})],null,!0)}):t._e()],1)],2),s("gd-search",{ref:"viewSearch",on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$4t=[],__component__$4t=chartbi.normalizeComponent(_sfc_main$4t,_sfc_render$4t,_sfc_staticRenderFns$4t,!1,null,"b6031a49",null,null);const BatchUpdate=__component__$4t.exports;BatchUpdate.install=function(i){i.component(BatchUpdate.name,BatchUpdate)};const main_vue_vue_type_style_index_0_scoped_85864215_lang="",_sfc_main$4s={name:"GdDataAssign",props:{tableData:{type:Object,default:()=>({})}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],record:[],visible:!1,confirmLoading:!1,fullscreen:!1,width:"600px",fkEntityName:"sys_user",loading:!1,serviceData:[],ruleFormData:{ownerId:""},rules:{ownerId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},computed:{message(){return`${this.$i18nt("gd.https.assignMsgl","\u60A8\u5DF2\u9009\u62E9")} ${this.record.length} ${this.$i18nt("gd.https.assignMsgr","\u6761\u6570\u636E\uFF0C\u8981\u5C06\u5B83\u5206\u6D3E\u7ED9\u8C01?")}`},title(){return`${this.$i18nt("gd.https.assign","\u5206\u6D3E")} (${this.$i18nt(`Dynamics.${this.tableData.transkey}`,this.tableData.busname)})`},...chartbi.mapGetters(["screenHeight","tableLists","userInfo"])},methods:{handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(i=>{if(i){const t={tableId:this.tableData.id,ids:this.record.join(","),ownerId:this.ruleFormData.ownerId};messages.baseAssign(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.closed(),this.$emit("ok",t)):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+s.message),this.confirmLoading=!1})}else this.confirmLoading=!1})},lookup(){this.$refs.viewSearch.open({fkEntityName:this.fkEntityName,effectType:"fk",val:this.ruleFormData.ownerId})},lookupSeled(i){this.serviceData=[...i.fkData],this.ruleFormData.ownerId=i.data[0]?i.data[0]:""},open(i){this.confirmLoading=!0,this.record=[...i],this.visible=!0,this.searchData("").then(t=>{this.serviceData.filter(a=>a.id===this.userInfo.id)[0]||(this.serviceData=[{name:this.userInfo.name,id:this.userInfo.id}].concat(this.serviceData)),this.ruleFormData.ownerId=this.userInfo.id,this.confirmLoading=!1})},searchData(i){this.loading=!0;const t=this.serviceData.filter(a=>this.ruleFormData.ownerId===a.id);this.serviceData=[];let s={name:i,fkEntityName:this.fkEntityName};return messages.baseFkList(s).then(a=>{if(this.loading=!1,a.code===200){const l=a.data.filter(n=>{const o=n.statecodes===void 0?1:n.statecodes;return this.ruleFormData.ownerId!==n.id&&o===1});this.serviceData=t.concat(l)}return a.data})},closed(){this.fullscreen=!1,this.visible=!1,this.show=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$4s=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.title,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("el-alert",{attrs:{title:t.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),type:"warning",description:t.message,"show-icon":"",closable:!1}}),s("el-form",{ref:"ruleForm",staticStyle:{margin:"12px 12px 0 0"},attrs:{"label-width":"130px",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.https.assignedTo","\u5206\u6D3E\u5BF9\u8C61"),prop:"ownerId"}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.loading,"reserve-keyword":"",filterable:"",remote:"",clearable:"","remote-method":t.searchData,"collapse-tags":!0},model:{value:t.ruleFormData.ownerId,callback:function(a){t.$set(t.ruleFormData,"ownerId",a)},expression:"ruleFormData.ownerId"}},t._l(t.serviceData,function(a){return s("el-option",{key:a.id,attrs:{label:a.name,value:a.id}})}),1),s("div",{staticClass:"cao_setting",on:{click:t.lookup}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])],1)],1)],2),s("gd-search",{ref:"viewSearch",on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$4s=[],__component__$4s=chartbi.normalizeComponent(_sfc_main$4s,_sfc_render$4s,_sfc_staticRenderFns$4s,!1,null,"85864215",null,null);const DataAssign=__component__$4s.exports;DataAssign.install=function(i){i.component(DataAssign.name,DataAssign)};const main_vue_vue_type_style_index_0_scoped_52dfaf58_lang="",_sfc_main$4r={name:"GdFormBuildDesigner",mixins:[formMixins]};var _sfc_render$4r=function(){var t=this,s=t._self._c;return s("gd-form-build",{ref:"form",attrs:{modeType:t.modeType,fieldData:t.fieldData,tableData:t.tableData,recordRelation:t.recordRelation,openMode:t.openMode,excludeButtons:t.excludeButtons,isRelevance:t.isRelevance},on:{doEvent:t.doEvent,change:t.baseChange,changeParameter:t.onChangeParameter,changeId:t.onChangeId,changeBtn:t.onChangeBtn,closed:t.closed,relationOk:a=>t.$emit("relationOk",a),ok:function(a){return t.$emit("ok")},onLoadCompleted:t.beaseLoadComplete}})},_sfc_staticRenderFns$4r=[],__component__$4r=chartbi.normalizeComponent(_sfc_main$4r,_sfc_render$4r,_sfc_staticRenderFns$4r,!1,null,"52dfaf58",null,null);const GDpackage$k=__component__$4r.exports,main_vue_vue_type_style_index_0_scoped_020bd72f_lang="",_sfc_main$4q={name:"GdMiddleware",data(){return{isRelevance:!1,tableData:{},tableId:"",detail:{},fieldData:[],visible:!1}},computed:{componentItem(){const i=this.$importViewFiles();let t=`../views/main/${this.tableData.tablename}/editForm.vue`,s=i[t];return s?s.default:GDpackage$k}},methods:{invokeFun({ref:i="editForm",functionName:t,data:s,time:a=50}){return new Promise((l,n)=>{this.$nextTick(()=>{setTimeout(()=>{const o=this.$refs[i];if(!o){l({code:404,message:"\u672A\u627E\u5230\u5BF9\u5E94\u5143\u7D20"});return}t&&o[t]?(o[t](s),l({code:200})):l({code:404,message:"\u672A\u627E\u5230\u65B9\u6CD5"})},a)})})},initAdd(i){let t=this;return this.tableId=i.tableId,this.isRelevance=i.isRelevance?i.isRelevance:!1,new Promise((s,a)=>{Promise.all([t.baseTableData(),t.getLoadData()]).then(l=>{t.visible=!0;let n={title:i.title?i.title:this.$i18nt("gd.https.quickActions","\u5FEB\u6377\u64CD\u4F5C")};t.$nextTick(()=>{setTimeout(()=>{t.openForm(n)},0),setTimeout(()=>{s({res:l,invokeFun:this.invokeFun})},20)})})})},init(i){this.tableId=i.tableId||i.tableid,this.detail=i.data[0],this.isRelevance=i.isRelevance?i.isRelevance:!1;let t=this;return new Promise((s,a)=>{i.data.length==0?(t.$nextTick(()=>{setTimeout(()=>{t.$message.error(t.$i18nt("gd.https.noData","\u672A\u67E5\u8BE2\u5230\u5BF9\u5E94\u6570\u636E"))},0)}),s()):Promise.all([t.baseTableData(),t.getLoadData()]).then(l=>{if(this.formList.length>0){t.visible=!0;let n={title:this.$i18nt("gd.https.quickActions","\u5FEB\u6377\u64CD\u4F5C"),id:t.detail.id};t.$nextTick(()=>{setTimeout(()=>{t.openForm(n)},0)})}else t.$nextTick(()=>{setTimeout(()=>{t.$message.error(t.$i18nt("gd.https.noDataForm","\u672A\u67E5\u8BE2\u5230\u5BF9\u5E94\u8868\u5355\u6570\u636E"))},10)});s()})})},openForm(i){if(this.$refs.editForm){const t=this.formList.filter(s=>s.type===1)[0];this.$refs.editForm.setFormRecord(t).then(s=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm.open(i)},10)})})}else setTimeout(()=>{this.openForm(i)},200)},baseTableData(){return messages.baseTableData({tableId:this.tableId}).then(i=>{if(i.success){if(i.data.formlist.length==0)return i.data;this.formList=i.data.formlist,this.tableData=i.data.table}return i})},getLoadData(){return messages.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(i=>(this.fieldData=i.data,i.data))},relationOk(i){this.$emit("ok",i)},handleSubmit(i){this.$emit("ok")},closed(){this.$emit("closed"),this.visible=!1}}};var _sfc_render$4q=function(){var t=this,s=t._self._c;return s("div",[t.visible?s(t.componentItem,{ref:"editForm",tag:"component",attrs:{fieldData:t.fieldData,isRelevance:t.isRelevance,tableData:t.tableData},on:{ok:t.handleSubmit,closed:t.closed,relationOk:t.relationOk}}):t._e()],1)},_sfc_staticRenderFns$4q=[],__component__$4q=chartbi.normalizeComponent(_sfc_main$4q,_sfc_render$4q,_sfc_staticRenderFns$4q,!1,null,"020bd72f",null,null);const GDpackage$j=__component__$4q.exports;GDpackage$j.install=function(i){i.component(GDpackage$j.name,GDpackage$j)};const main_vue_vue_type_style_index_0_scoped_ad8de0a5_lang="",colorList$1=["#00A88E","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#5470c6","#ea7ccc","#FA6400"],_sfc_main$4p={name:"GdColorEditor",props:{maxLength:{type:Number,default:12}},data(){return{buttons:[{displayName:"\u5BFC\u5165\u6570\u636E",functionName:"importData",show:!0,transKey:"gd.btnConfig.btnImportData",icon:"el-icon-plus"},{displayName:"\u590D\u5236\u6570\u636E",functionName:"copyData",show:!0,transKey:"gd.form.copyData",icon:"el-icon-document-copy"},{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus"},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],width:"800px",visible:!1,confirmLoading:!1,fullscreen:!1,loadData:[],columns:[{transKey:"gd.settings.color",prop:"color",label:"\u989C\u8272",type:"slot",slotType:"color",align:"left"},{transKey:"gd.settings.colorValue",prop:"name",label:"\u989C\u8272\u503C",type:"slot",slotType:"name",align:"left"},{transKey:"gd.settings.colorType",prop:"colorType",label:"\u9009\u62E9\u65B9\u5F0F",width:"320",type:"slot",slotType:"colorType",align:"left"},{transKey:"gd.btn.handle",prop:"handle",label:"\u64CD\u4F5C",width:"120",type:"slot",slotType:"handle",align:"center"}],loadDataSource:i=>new Promise((t,s)=>{this.confirmLoading=!1,t({pageNo:1,pageSize:100,totalRows:0,rows:this.loadData})})}},computed:{height(){return this.screenHeight-(this.fullscreen?72:230)},predefine(){let i=[];return colorList$1.forEach(t=>{i.push(t)}),i},getButtons(){return this.buttons.filter(i=>!(this.loadData.length>=this.maxLength&&i.functionName==="add"))},...chartbi.mapGetters(["screenHeight","tableSize","tablePageSize","echartsColor","primaryColor"])},methods:{followingColor(i){let t=[];i.forEach(s=>{t.push({color:String(s)==="0"?this.primaryColor:s,name:String(s)==="0"?this.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):s,code:s,colorType:String(s)==="0"?"0":"1",id:chartbi.uuid(8)})}),this.loadData=[...t],this.$refs.table.setTableData(this.loadData,!1)},importData(){let i=this;const t=this.$createElement;chartbi.clipboardContent(s=>{if(!s){i.$message.error(i.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25"));return}const a=s.split(",");let l=[];a.forEach(n=>{l.push(t("div",{style:`width: 15px;height: 15px;margin: 0 2px 6px 0;background:${Number(n)===0?i.primaryColor:n}`},""))}),i.$msgbox({title:i.$i18nt("gd.settings.followingColorTip","\u662F\u5426\u5BFC\u5165\u4EE5\u4E0B\u989C\u8272\u503C?"),message:t("div",{style:"display: flex;align-items: center;justify-content: flex-start; flex-wrap: wrap;"},[l]),showCancelButton:!0,confirmButtonText:i.$i18nt("gd.btn.confirm","\u786E\u8BA4"),cancelButtonText:i.$i18nt("gd.https.delCancel","\u53D6\u6D88"),callback:()=>{},beforeClose:(n,o,r)=>{n==="confirm"&&i.followingColor(a),r()}})})},copyData(){let i=[];this.loadData.forEach(t=>{i.push(t.colorType==="0"?"0":t.color)}),chartbi.copyTextToClipboard(i.join(","),()=>{this.$message.success(this.$i18nt("gd.https.beenCopied","\u6570\u636E\u5DF2\u590D\u5236"))})},handleSubmit(){if(this.loadData.length<5){this.$message.error(this.$i18nt("gd.settings.colorTip","\u6700\u5C11\u8BBE\u7F6E5\u79CD\u989C\u8272!"));return}let i=[];this.loadData.forEach(t=>{i.push(t.colorType==="0"?"0":t.color)}),this.$emit("ok",i),this.closed()},add(){const i={color:this.primaryColor,name:this.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"),code:"0",colorType:"0",id:chartbi.uuid(8)};this.loadData=this.loadData.concat(i),this.$refs.table.setTableData(this.loadData,!1)},deleteItem(i){this.loadData=this.loadData.filter(t=>t.id!==i.id),this.$refs.table.setTableData(this.loadData,!1)},open(i){this.confirmLoading=!0;let t=i||[...this.echartsColor];this.record=i,this.visible=!0;let s=[];t.forEach(a=>{s.push({color:String(a)==="0"?this.primaryColor:a,name:String(a)==="0"?this.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):a,code:a,colorType:String(a)==="0"?"0":"1",id:chartbi.uuid(8)})}),this.loadData=[...s],this.$nextTick(()=>{setTimeout(()=>{this.refresh(),this.rowDrop()},100)})},refresh(){this.$refs.table.refresh()},rowDrop(){const i=document.querySelector("#config-table .el-table__body-wrapper tbody");let t=this;Sortable.create(i,{onEnd:s=>{const a=t.loadData[s.oldIndex];t.loadData.splice(s.oldIndex,1),t.loadData.splice(s.newIndex,0,a),console.log(t.loadData)},animation:300,handle:".el-table__row"})},closed(){this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(i){const t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$4p=function(){var t=this,s=t._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.settings.echartsColorStyle"),fullscreen:t.fullscreen,buttons:t.getButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticStyle:{"margin-top":"-44px"},attrs:{id:"config-table"}},[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadDataSource,size:t.tableSize,pageSize:t.tablePageSize,columns:t.columns,height:t.height,showPagination:!1,initialLoading:!1,disabledRefresh:!0},scopedSlots:t._u([{key:"color",fn:function({column:a,row:l}){return[l.colorType==="1"?s("div",{staticClass:"echarts-color-item",style:`background:${l.color}`}):s("div",{staticClass:"echarts-color-item",style:`background:${t.primaryColor}`})]}},{key:"name",fn:function({column:a,row:l}){return[l.colorType==="1"?s("div",[t._v(t._s(l.name))]):s("div",[t._v(t._s(t.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272")))])]}},{key:"colorType",fn:function({column:a,row:l,index:n}){return[s("div",{staticClass:"flex-between"},[s("el-select",{staticStyle:{flex:"1","margin-right":"12px"},attrs:{placeholder:t.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")},model:{value:l.colorType,callback:function(o){t.$set(l,"colorType",o)},expression:"row.colorType"}},[s("el-option",{attrs:{label:t.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"),value:"0"}}),s("el-option",{attrs:{label:t.$i18nt("gd.settings.custom","\u81EA\u5B9A\u4E49"),value:"1"}})],1),l.colorType==="0"?s("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",attrs:{size:"small",predefine:t.predefine,"popper-class":"theme-picker-dropdown",disabled:""},model:{value:t.primaryColor,callback:function(o){t.primaryColor=o},expression:"primaryColor"}}):s("el-color-picker",{ref:"colorPicker",staticClass:"theme-picker",attrs:{size:"small",predefine:t.predefine,"popper-class":"theme-picker-dropdown"},model:{value:l.color,callback:function(o){t.$set(l,"color",o)},expression:"row.color"}})],1)]}},{key:"handle",fn:function({column:a,row:l,index:n}){return[s("div",{staticClass:"export-handle"},[s("i",{staticClass:"el-icon-rank active-color drag-move"}),s("i",{staticClass:"el-icon-close",on:{click:function(o){return t.deleteItem(l)}}})])]}}])})],1)],2)},_sfc_staticRenderFns$4p=[],__component__$4p=chartbi.normalizeComponent(_sfc_main$4p,_sfc_render$4p,_sfc_staticRenderFns$4p,!1,null,"ad8de0a5",null,null);const GDpackage$i=__component__$4p.exports;GDpackage$i.install=function(i){i.component(GDpackage$i.name,GDpackage$i)};const columnarChart_vue_vue_type_style_index_0_scoped_ca109126_lang="",_sfc_main$4o={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(i){let t=chartbi.echarts.init(this.$refs.container),s=this.getOption(i);t.clear(),t.dispose(),t=chartbi.echarts.init(this.$refs.container),t.setOption(s),t.on("click",a=>{this.$emit("change",a)})},getOption(i){let t=[];i.data.forEach(n=>{t.push(n.value)});let s=this.$i18nt(`Dynamics.${i.transKey}`,i.name),a={text:s?`${s} (${this.$i18nt("gd.basics.total","\u5171")} ${i.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.table.total","\u5171")} ${i.count} ${this.$i18nt("gd.table.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},l={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:i.columns.filter((n,o)=>o<30),axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:30}}],yAxis:[{type:"value"}],series:[{type:"bar",barWidth:"60%",data:t.filter((n,o)=>o<30),itemStyle:{normal:{label:{show:!0,position:"top",textStyle:{color:"#333",fontSize:14}},color:n=>this.color[n.dataIndex]}}}]};return this.showTitle?Object.assign(l,{title:a}):l}}};var _sfc_render$4o=function(){var t=this,s=t._self._c;return s("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},_sfc_staticRenderFns$4o=[],__component__$4o=chartbi.normalizeComponent(_sfc_main$4o,_sfc_render$4o,_sfc_staticRenderFns$4o,!1,null,"ca109126",null,null);const ColumnarChart=__component__$4o.exports,funnelChart_vue_vue_type_style_index_0_scoped_b06311be_lang="",_sfc_main$4n={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(i){let t=chartbi.echarts.init(this.$refs.container),s=this.getOption(i);t.clear(),t.dispose(),t=chartbi.echarts.init(this.$refs.container),t.setOption(s),t.on("click",a=>{this.$emit("change",a)})},getOption(i){let t=0;i.data.forEach((n,o)=>{t+=Number(n.value),i.data[o].order=n.value}),i.data=[...chartbi.sort(i.data)];let s=this.$i18nt(`Dynamics.${i.transKey}`,i.name),a={text:s?`${s} (${this.$i18nt("gd.basics.total","\u5171")} ${i.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${i.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},l={tooltip:{trigger:"item",formatter:function(n){return n.data.name+":\r"+n.data.values}},color:this.color,legend:{type:"scroll",bottom:0,data:i.columns},series:[{type:"funnel",left:"10%",top:50,bottom:50,width:"76%",min:0,max:100,minSize:"10%",maxSize:"90%",sort:"descending",gap:1,label:{show:!0,formatter:function(n){return n.data.name+":\r"+n.data.values+`
26
26
  `+n.data.percentage+"%"}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:i.data.map((n,o)=>{const r=n.value;return n.values=r,n.percentage=t===0?"0":(Number(r)/t*1e4).toFixed(0)/100,n.value=(1/i.data.length*(o+1)*100).toFixed(0),n})}]};return this.showTitle?Object.assign(l,{title:a}):l}}};var _sfc_render$4n=function(){var t=this,s=t._self._c;return s("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},_sfc_staticRenderFns$4n=[],__component__$4n=chartbi.normalizeComponent(_sfc_main$4n,_sfc_render$4n,_sfc_staticRenderFns$4n,!1,null,"b06311be",null,null);const FunnelChart=__component__$4n.exports,lineChart_vue_vue_type_style_index_0_scoped_f8a9de5c_lang="",_sfc_main$4m={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(i){let t=chartbi.echarts.init(this.$refs.container),s=this.getOption(i);t.clear(),t.dispose(),t=chartbi.echarts.init(this.$refs.container),t.setOption(s),t.on("click",a=>{this.$emit("change",a)})},getOption(i){let t=this.$i18nt(`Dynamics.${i.transKey}`,i.name),s={text:t?`${t} (${this.$i18nt("gd.basics.total","\u5171")} ${i.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${i.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},a={tooltip:{trigger:"axis"},color:this.color,legend:{},xAxis:{type:"category",data:i.columns,axisLabel:{interval:0,rotate:30}},yAxis:{type:"value"},series:[{data:i.data,type:"line"}]};return this.showTitle?Object.assign(a,{title:s}):a}}};var _sfc_render$4m=function(){var t=this,s=t._self._c;return s("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},_sfc_staticRenderFns$4m=[],__component__$4m=chartbi.normalizeComponent(_sfc_main$4m,_sfc_render$4m,_sfc_staticRenderFns$4m,!1,null,"f8a9de5c",null,null);const LineChart=__component__$4m.exports,pieChart_vue_vue_type_style_index_0_scoped_16dc885e_lang="",_sfc_main$4l={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},showTitle:{type:Boolean,default:!0},left:{type:[Number,String],default:10}},data(){return{}},computed:{},methods:{init(i){let t=chartbi.echarts.init(this.$refs.container),s=this.getOption(i);t.clear(),t.dispose(),t=chartbi.echarts.init(this.$refs.container),t.setOption(s),t.on("click",a=>{this.$emit("change",a)})},getOption(i){let t=this.$i18nt(`Dynamics.${i.transKey}`,i.name),s={text:t?`${t} (${this.$i18nt("gd.basics.total","\u5171")} ${i.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")})`:`${this.$i18nt("gd.basics.total","\u5171")} ${i.count} ${this.$i18nt("gd.basics.data","\u6761\u6570\u636E")}`,left:this.left,textStyle:{fontSize:16}},a={tooltip:{trigger:"item"},color:this.color,legend:{type:"scroll",bottom:0,data:i.columns},series:[{type:"pie",radius:["30%","58%"],center:this.develop==4?["50%","45%"]:["50%","50%"],data:i.data,label:{show:!0,position:"outside",textStyle:{fontWeight:500,color:"#333",fontSize:14,lineHeight:20},formatter:`{b}:\r{c}\r
27
- ({d}%)`},itemStyle:{borderRadius:2}}]};return this.showTitle?Object.assign(a,{title:s}):a}}};var _sfc_render$4l=function(){var t=this,s=t._self._c;return s("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},_sfc_staticRenderFns$4l=[],__component__$4l=chartbi.normalizeComponent(_sfc_main$4l,_sfc_render$4l,_sfc_staticRenderFns$4l,!1,null,"16dc885e",null,null);const PieChart=__component__$4l.exports,amplify_vue_vue_type_style_index_0_scoped_bb8cc0bf_lang="",_sfc_main$4k={props:{loadData:{type:Array,default:()=>[]},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:"center"}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(i){this.visible=!0,this.record={...i},this.$nextTick(()=>{setTimeout(()=>{this.$refs.VEcharts.open(i)},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.VEcharts.open(this.record)},0)})},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()},closed(){this.fullscreen=!1,this.visible=!1}}};var _sfc_render$4k=function(){var t=this,s=t._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:t.fullscreen,buttons:[],confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[s("gd-echarts",{ref:"VEcharts",attrs:{loadData:t.loadData,color:t.color,left:t.left}})],1)],1)},_sfc_staticRenderFns$4k=[],__component__$4k=chartbi.normalizeComponent(_sfc_main$4k,_sfc_render$4k,_sfc_staticRenderFns$4k,!1,null,"bb8cc0bf",null,null);const AmplifyEchart=__component__$4k.exports,main_vue_vue_type_style_index_0_scoped_11a80d1f_lang="",_sfc_main$4j={name:"GdEcharts",props:{loadData:{type:Array,default:()=>[]},develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10}},components:{ColumnarChart,FunnelChart,LineChart,PieChart,AmplifyEchart},data(){return{type:"0",detail:{},dataSource:[],spinning:!1}},computed:{getColor(){let i=[];return(this.color.length===0?this.echartsColor:this.color).forEach(s=>{i.push(s==="0"?this.primaryColor:s)}),i},...chartbi.mapGetters(["echartsColor","primaryColor"])},methods:{amplify(){this.$refs.amplifyEchart.open(this.detail)},change(i){this.$emit("change",i)},setType(){this.type="0"},open(i){this.spinning=!0,this.detail={...i},this.type=i.type,this.dataSource=[...i.data],this.assembly()},init(i){this.spinning=!0,this.detail={...i},this.type=i.type,messages.basePage({pageNo:1,pageSize:100,tableId:i.tableId,viewId:i.viewId}).then(t=>{t.success?(this.dataSource=t.data.rows.filter(s=>s.id!==null),this.assembly()):this.spinning=!1})},assembly(){let i={};this.detail.mode==1?i=this.getTotals():this.detail.mode==2?i=this.getGentles():this.detail.mode==3?i=this.getAverage():this.detail.mode==4?i=this.getMaximum():this.detail.mode==5&&(i=this.getMinimum());let t={name:this.$i18nt(`Dynamics.${this.detail.transKey}`,this.detail.name),count:this.dataSource.length,columns:i.columns,data:i.data},s="columnarChart";this.detail.type==2?s="pieChart":this.detail.type==3?s="funnelChart":this.detail.type==4&&(s="lineChart"),this.$nextTick(()=>{setTimeout(()=>{this.$refs[s].init(t),this.spinning=!1},0)})},getTotals(){let i=[],t=[],s=[];(this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser()).forEach(n=>{let o=0;this.dataSource.forEach(r=>{r[this.detail.list[0].dataIndex]==n.code&&(o+=1)}),i.push({value:o,name:this.$i18nt(`Dynamics.${n.transkey}`,n.name)}),t.push(this.$i18nt(`Dynamics.${n.transkey}`,n.name)),s.push(String(n.code))});let l=this.dataSource.filter(n=>!s.includes(String(n[this.detail.list[0].dataIndex])));if(l.length>0){let n=0;l.forEach(o=>{n+=1}),i=[{value:n,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(i),t=[`${this.$i18nt("gd.echarts.none"),"\u7A7A\u767D"}`].concat(t)}return{data:i,columns:t}},getGentles(){let i=[],t=[],s=2;if(this.detail.columnName&&this.detail.list.length===1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),l=[],n=this.loadData.filter(r=>r.columnname==this.detail.columnName)[0];s=n===void 0?s:n.filedsize!==null?n.filedsize:s,a.forEach(r=>{let d=0;this.dataSource.forEach(u=>{if(u[this.detail.list[0].dataIndex]==r.code){let p=u[this.detail.columnName]!==null?u[this.detail.columnName]:0;d+=n.dicttypecode?this.getDictionaryData(n.dicttypecode,u[this.detail.columnName]):p}}),i.push({value:d.toString().length>s?Number(d.toFixed(s)):d,name:this.$i18nt(`Dynamics.${r.transkey}`,r.name)}),t.push(this.$i18nt(`Dynamics.${r.transkey}`,r.name)),l.push(String(r.code))});let o=this.dataSource.filter(r=>!l.includes(String(r[this.detail.list[0].dataIndex])));if(o.length>0){let r=0;o.forEach(d=>{let u=d[this.detail.columnName]!==null?d[this.detail.columnName]:0;r+=n.dicttypecode?this.getDictionaryData(n.dicttypecode,d[this.detail.columnName]):u}),i=[{value:r,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(i),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let l=0,n=this.loadData.filter(o=>o.columnname==a.dataIndex)[0];s=n===void 0?s:n.filedsize!==null?n.filedsize:s,this.dataSource.forEach(o=>{l+=o[a.dataIndex]!==null&&o[a.dataIndex]!==void 0?o[a.dataIndex]:0}),i.push({value:l.toString().length>s?Number(l.toFixed(s)):l,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment)}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:i,columns:t}},getAverage(){let i=[],t=[],s=2;if(this.detail.columnName&&this.detail.list.length==1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),l=[],n=this.loadData.filter(r=>r.columnname==this.detail.columnName)[0];a.forEach(r=>{let d=0,u=0,p=this.loadData.filter(h=>h.columnname==this.detail.columnName)[0];s=p==null?s:p.filedsize!==null?p.filedsize:s,this.dataSource.forEach(h=>{if(h[this.detail.list[0].dataIndex]==r.code){let f=h[this.detail.columnName]!==null&&h[this.detail.columnName]!==void 0?h[this.detail.columnName]:0;d+=p.dicttypecode?this.getDictionaryData(p.dicttypecode,h[this.detail.columnName]):f,u+=1}}),i.push({value:d.toString().length>s?Number(d.toFixed(s)):d,name:this.$i18nt(`Dynamics.${r.transKey}`,r.name),leg:u}),t.push(this.$i18nt(`Dynamics.${r.transKey}`,r.name)),l.push(String(r.code))});let o=this.dataSource.filter(r=>!l.includes(String(r[this.detail.list[0].dataIndex])));if(o.length>0){let r=0;o.forEach(d=>{let u=d[this.detail.columnName]!==null&&d[this.detail.columnName]!==void 0?d[this.detail.columnName]:0;r+=n.dicttypecode?this.getDictionaryData(n.dicttypecode,d[this.detail.columnName]):u}),i=[{value:r,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,leg:o.length}].concat(i),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let l=0,n=0,o=this.loadData.filter(r=>r.columnname==a.dataIndex)[0];s=o==null?s:o.filedsize!==null?o.filedsize:s,this.dataSource.forEach(r=>{l+=r[a.dataIndex]!==null&&r[a.dataIndex]!==void 0?r[a.dataIndex]:0,n+=1}),i.push({value:l.toString().length>s?Number(l.toFixed(s)):l,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment),leg:n}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:i,columns:t}},getMaximum(){let i=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let s=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),a=[],l=this.loadData.filter(o=>o.columnname==this.detail.columnName)[0];s.forEach(o=>{let r=0;this.dataSource.forEach(d=>{if(d[this.detail.list[0].dataIndex]==o.code){let u=d[this.detail.columnName]!==null&&d[this.detail.columnName]!==void 0?d[this.detail.columnName]:0;u=l.dicttypecode?this.getDictionaryData(l.dicttypecode,d[this.detail.columnName]):u,r=u>r?u:r}}),i.push({value:r,name:this.$i18nt(`Dynamics.${o.transkey}`,o.name)}),t.push(this.$i18nt(`Dynamics.${o.transkey}`,o.name)),a.push(String(o.code))});let n=this.dataSource.filter(o=>!a.includes(String(o[this.detail.list[0].dataIndex])));if(n.length>0){let o=0;n.forEach(r=>{let d=r[this.detail.columnName]!==null?r[this.detail.columnName]:0;o=l.dicttypecode?this.getDictionaryData(l.dicttypecode,r[this.detail.columnName]):d,o=d>o?d:o}),i=[{value:o,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(i),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(s=>{let a=0;this.dataSource.forEach(l=>{let n=l[s.dataIndex]!=null?l[s.dataIndex]:0;a=n>a?n:a}),i.push({value:a,name:this.$i18nt(`Dynamics.${s.transKey}`,s.columnComment)}),t.push(this.$i18nt(`Dynamics.${s.transKey}`,s.columnComment))});return{data:i,columns:t}},getMinimum(){let i=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let s=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),a=[],l=this.loadData.filter(o=>o.columnname==this.detail.columnName)[0];s.forEach(o=>{let r=null;this.dataSource.forEach((d,u)=>{if(d[this.detail.list[0].dataIndex]==o.code){let p=d[this.detail.columnName]!==null?d[this.detail.columnName]:0;p=l.dicttypecode?this.getDictionaryData(l.dicttypecode,d[this.detail.columnName]):p,r=r===null||p<r?p:r}}),i.push({value:r,name:this.$i18nt(`Dynamics.${o.transkey}`,o.name)}),t.push(this.$i18nt(`Dynamics.${o.transkey}`,o.name)),a.push(String(o.code))});let n=this.dataSource.filter(o=>!a.includes(String(o[this.detail.list[0].dataIndex])));if(n.length>0){let o=null;n.forEach((r,d)=>{let u=r[this.detail.columnName]!==null&&r[this.detail.columnName]!==void 0?r[this.detail.columnName]:0;o=l.dicttypecode?this.getDictionaryData(l.dicttypecode,r[this.detail.columnName]):u,o=o===null||u<o?u:o}),i=[{value:o,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(i),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(s=>{let a=null;this.dataSource.forEach((l,n)=>{let o=l[s.dataIndex]!==null&&l[s.dataIndex]!==void 0?l[s.dataIndex]:0;a=a===null||o<a?o:a}),i.push({value:a,name:this.$i18nt(`Dynamics.${s.transKey}`,s.columnComment)}),t.push(this.$i18nt(`Dynamics.${s.transKey}`,s.columnComment))});return{data:i,columns:t}},getUser(){let i=this.duplicate(this.dataSource,this.detail.list[0].dataIndex),t=[];return i.forEach(s=>{let a=s[this.detail.list[0].dataIndex];t.push({name:a||`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,code:s[this.detail.list[0].dataIndex]})}),t},duplicate(i,t){if(i.length==0)return i;if(t){var s={},a=i.reduce((l,n)=>(s[n[t]]||(s[n[t]]=l.push(n)),l),[]);return a}else return Array.from(new Set(i))},getDictionary(i){return this.$options.filters.dictData(i)},getDictionaryData(i,t){let s=this.getDictionary(i).filter(a=>a.code==t)[0];return s===void 0?0:Number(s.name)}}};var _sfc_render$4j=function(){var t=this,s=t._self._c;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"gd-echart"},[t.type==="0"?s("div",{staticClass:"empty"},[s("i",{staticClass:"el-icon-receiving"}),s("div",{staticClass:"empty-err"},[t._v(t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):t._e(),t.type==1?s("ColumnarChart",{ref:"columnarChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==2?s("PieChart",{ref:"pieChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==3?s("FunnelChart",{ref:"funnelChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==4?s("LineChart",{ref:"lineChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),s("AmplifyEchart",{ref:"amplifyEchart",attrs:{loadData:t.loadData,color:t.getColor}})],1)},_sfc_staticRenderFns$4j=[],__component__$4j=chartbi.normalizeComponent(_sfc_main$4j,_sfc_render$4j,_sfc_staticRenderFns$4j,!1,null,"11a80d1f",null,null);const GDpackage$h=__component__$4j.exports;GDpackage$h.install=function(i){i.component(GDpackage$h.name,GDpackage$h)};const skeleton_vue_vue_type_style_index_0_scoped_17808e78_lang="",_sfc_main$4i={props:{spinning:{type:Boolean,default:!1},wid:{type:[Number,String],default:100},hig:{type:Number,default:32}},data(){return{}},computed:{style(){let i=typeof this.wid,t="";return i==="string"?t=`width:${this.wid}%;height:${this.hig}px`:t=`width:${this.wid}px;height:${this.hig}px`,t}}};var _sfc_render$4i=function(){var t=this,s=t._self._c;return s("div",{staticClass:"skeleton animations",style:t.style},[t._t("default")],2)},_sfc_staticRenderFns$4i=[],__component__$4i=chartbi.normalizeComponent(_sfc_main$4i,_sfc_render$4i,_sfc_staticRenderFns$4i,!1,null,"17808e78",null,null);const Skeleton=__component__$4i.exports,main_vue_vue_type_style_index_0_scoped_a7a85ae8_lang="",_sfc_main$4h={name:"GdViewLoading",props:{spinning:{type:Boolean,default:!0},openMode:{type:[String,Number],default:1},height:{type:Number,default:100}},computed:{style(){return`height:${this.height}px`}},components:{Skeleton},data(){return{}}};var _sfc_render$4h=function(){var t=this,s=t._self._c;return s("div",{staticClass:"spinningl",style:t.style},[t.openMode!==3&&t.spinning?s("div",[s("div",{staticClass:"btn"},[s("Skeleton",{attrs:{wid:170}}),s("Skeleton",{attrs:{wid:400}})],1),s("Skeleton",{attrs:{wid:"100",hig:24}}),t._l(22,function(a){return[s("div",{staticClass:"listt"},t._l(5,function(l){return s("Skeleton",{key:l,attrs:{wid:"18",hig:24}})}),1),s("Skeleton",{attrs:{wid:a%2==1?"66":"100",hig:24}})]})],2):t._e(),t.openMode===3&&t.spinning?s("div",[s("div",{staticClass:"btnr"},[s("Skeleton",{attrs:{wid:246,hig:22}})],1),s("div",{staticClass:"listt listts"},t._l(6,function(a){return s("Skeleton",{key:a,attrs:{wid:"15",hig:20}})}),1),t._l(4,function(a){return s("Skeleton",{key:a,attrs:{wid:a%2==1?"66":"100",hig:20}})})],2):t._e()])},_sfc_staticRenderFns$4h=[],__component__$4h=chartbi.normalizeComponent(_sfc_main$4h,_sfc_render$4h,_sfc_staticRenderFns$4h,!1,null,"a7a85ae8",null,null);const GDpackage$g=__component__$4h.exports;GDpackage$g.install=function(i){i.component(GDpackage$g.name,GDpackage$g)};const types={403:{img:"data:image/png;base64,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",title:"403",desc:"\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762",transKey:"gd.exception.err403"},404:{img:"data:image/png;base64,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",title:"404",desc:"\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728\u6216\u4ECD\u5728\u5F00\u53D1\u4E2D",transKey:"gd.exception.err404"},500:{img:"data:image/png;base64,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",title:"500",desc:"\u62B1\u6B49\uFF0C\u670D\u52A1\u5668\u51FA\u9519\u4E86",transKey:"gd.exception.err500"}},main_vue_vue_type_style_index_0_lang$2="",_sfc_main$4g={name:"GdExceptionPage",props:{type:{type:String,default:"404"}},data(){return{config:types}},computed:{},methods:{handleToHome(){this.$router.push({name:"Console"})}}};var _sfc_render$4g=function(){var t=this,s=t._self._c;return s("div",{staticClass:"exception"},[s("div",{staticClass:"img-block"},[s("div",{staticClass:"img-ele",style:{backgroundImage:`url(${t.config[t.type].img})`}})]),s("div",{staticClass:"content"},[s("h1",[t._v(t._s(t.config[t.type].title))]),s("div",{staticClass:"desc"},[t._v(" "+t._s(t.$i18nt(`${t.config[t.type].transKey}`,t.config[t.type].desc))+" ")]),s("div",{staticClass:"actions"},[s("el-button",{attrs:{type:"primary"},on:{click:t.handleToHome}},[t._v(t._s(t.$i18nt("gd.exception.homepage","\u8FD4\u56DE\u9996\u9875")))])],1)])])},_sfc_staticRenderFns$4g=[],__component__$4g=chartbi.normalizeComponent(_sfc_main$4g,_sfc_render$4g,_sfc_staticRenderFns$4g,!1,null,null,null,null);const GDpackage$f=__component__$4g.exports;GDpackage$f.install=function(i){i.component(GDpackage$f.name,GDpackage$f)};const main_vue_vue_type_style_index_0_scoped_a10263b1_lang="",_sfc_main$4f={name:"GdUploadFile",props:{record:{type:Object,required:!0},model:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},limit:{type:Number,default:1},prop:{type:String,default:""},develop:{type:[Number,String],default:1},accept:{type:String,default:""},size:{type:Number,default:100}},data(){return{fileUploadList:[],fileListFile:[],uid:"",imgList:[],currentImg:"",leg:0,fileName:"",uidUploading:[]}},computed:{isDrag(){return this.options.drag!==void 0?this.options.drag:!1},download(){return this.options.download!==void 0?this.options.download:!1},disableds(){return this.limit<=this.leg?!0:this.disabled},fileAccept(){return this.accept?this.accept:chartbi.getFileAccept("file")},fileSize(){return this.size?this.size:chartbi.getFileSize("file")},options(){return this.record.options}},methods:{clearFiles(){this.$refs.uploadFile&&this.$refs.uploadFile.clearFiles()},onExceed(){this.$message.error(this.$i18nt("gd.view.fileLimitTip","\u5DF2\u8D85\u8FC7\u6700\u5927\u4E0A\u4F20\u6570\u91CF"))},beforeUpload(i){return!(this.limit<=this.leg)},setDataMore({val:i,data:t,items:s,fkData:a}){this.setData(i)},isJSON(i){try{JSON.parse(i)}catch{return!1}return!0},setData(i){if(i===""||i===null){this.fileListFile=[],this.clearFiles();return}const t=this.isJSON(i)?JSON.parse(i):[];let s=[],a=[];t.forEach(l=>{const n=l.id?l.id:l.fileId;s.push({uid:n,name:l.name?l.name:l.fileoriginname,fileoriginname:l.name?l.name:l.fileoriginname,id:n,fileId:n,url:l.url?l.url:l.filepath}),n&&a.push(n)}),this.fileListFile=[...s],this.fileListFile.length===0&&this.clearFiles(),this.leg=s.length,this.record.sourceData=JSON.stringify(s),this.model[this.prop]=a.join(",")},previewFile(i){this.fileName=i.fileoriginname||i.name;let t="",s="";i.response&&i.response.fileoriginname?(t=i.response.fileoriginname,s=i.response.id):(t=i.name,s=i.fileId);const a=t.substr(t.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","gif","bmp","JPG","PNG"].includes(a)?this.imgPreview(s):["mp4","webm","mp3","wav","docx","excel","pdf","xlsx","pptx","doc","dot","txt"].includes(a)&&this.$refs.filePreview.open(Object.assign(i,{fileId:i.response&&i.response.fileoriginname?i.response.id:i.fileId}))},imgPreview(i){messages.sysFileInfoPreview({id:i}).then(t=>{const s=window.URL.createObjectURL(new Blob([t]));this.imgList=[s],this.currentImg=s,this.$refs.imgPreview.open()})},removeFileManual(i){const t=this.fileUploadList.filter(s=>(s.response?s.response.id:s.id)===i)[0];t&&this.$refs.uploadFile.handleRemove&&this.$refs.uploadFile.handleRemove(t)},removeFile(i,t){let s=[],a=[];t.forEach(l=>{l.response&&l.response.id?(s.push(l.response.id),a.push({uid:l.response.id,name:l.response.fileoriginname,fileoriginname:l.response.fileoriginname,id:l.response.id,fileId:l.response.id,url:l.response.url})):(s.push(l.fileId),a.push({uid:l.id?l.id:l.fileId,name:l.name?l.name:l.fileoriginname,fileoriginname:l.name?l.name:l.fileoriginname,id:l.fileId?l.fileId:l.id,fileId:l.fileId?l.fileId:l.id,url:l.url?l.url:l.filepath}))}),this.uidUploading=this.uidUploading.filter(l=>l!==i.uid),this.record.uidUploading=this.uidUploading,this.record.sourceData=JSON.stringify(a),this.model[this.prop]=s.join(","),this.leg=s.length,this.handleChange()},uploadFile(i){if(!this.fileAccept.includes(i.file.type)||i.file.type===""){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),i.onError();return}if(!(i.file.size/1024/1024<this.fileSize)){this.$message.error(this.$i18nt("gd.view.fileSizeTip","\u4E0A\u4F20\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7")+this.fileSize+"(MB)"),i.onError();return}this.$emit("uploadFile",i);const a=new FormData;a.append(this.options.fileName,i.file),this.uidUploading.push(i.file.uid),this.record.uidUploading=this.uidUploading,messages.sysFileInfoUploadShop(a,{"Content-Type":i.file.type}).then(l=>{l.code===200?i.onSuccess(l.data):(this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+l.message),i.onError())}).catch(l=>{i.onError(l)})},successFile(i,t,s){this.uidUploading=this.uidUploading.filter(r=>r!==t.uid),this.record.uidUploading=this.uidUploading;const a=this.model[this.prop],n=(a?a.split(","):[]).concat([i.id]);this.model[this.prop]=n.join(",");let o=[];s.forEach(r=>{r.response&&r.response.id?o.push({ouid:r.uid,uid:r.response.id,name:r.response.fileoriginname,fileoriginname:r.response.fileoriginname,id:r.response.id,fileId:r.response.id,url:r.response.url}):o.push({uid:r.id?r.id:r.fileId,name:r.name?r.name:r.fileoriginname,fileoriginname:r.name?r.name:r.fileoriginname,id:r.fileId?r.fileId:r.id,fileId:r.fileId?r.fileId:r.id,url:r.url?r.url:r.filepath,ouid:r.ouid?r.ouid:r.uid})}),this.leg=n.length,this.record.sourceData=JSON.stringify(o),this.fileUploadList.push(t),this.handleChange()},handleChange(){this.$emit("change",this.record)}},mounted(){this.develop!==1&&this.$nextTick(()=>{setTimeout(()=>{this.record.setData===void 0&&(this.record.setData=this.setDataMore),this.record.clearFiles===void 0&&(this.record.clearFiles=this.clearFiles)},20)})}};var _sfc_render$4f=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-upload-file"},[t.isDrag?s("el-upload",{ref:"uploadFile",attrs:{action:"","on-preview":t.previewFile,"on-remove":t.removeFile,multiple:"",limit:t.limit,"http-request":t.uploadFile,"file-list":t.fileListFile,"on-success":t.successFile,disabled:t.disabled,"before-upload":t.beforeUpload,"on-exceed":t.onExceed,drag:t.isDrag}},[s("div",{staticClass:"drag-kuang"},[s("i",{staticClass:"el-icon-upload",staticStyle:{margin:"0","font-size":"50px"}}),s("el-button",{staticClass:"btn-drag",attrs:{type:"text",disabled:t.disableds}},[s("span",{class:t.disableds?"":"active-color"},[t._v(t._s(t.$i18nt("gd.btn.uploadDrag","\u62D6\u62FD\u6587\u4EF6\u6216\u70B9\u51FB\u4E0A\u4F20")))])])],1)]):s("el-upload",{ref:"uploadFile",attrs:{action:"","on-preview":t.previewFile,"on-remove":t.removeFile,multiple:"",limit:t.limit,"http-request":t.uploadFile,"file-list":t.fileListFile,"on-success":t.successFile,accept:t.fileAccept,disabled:t.disabled,"before-upload":t.beforeUpload,"on-exceed":t.onExceed}},[t.isDrag?t._e():s("div",{staticClass:"upload-file-click"},[s("el-button",{attrs:{size:"mini",type:t.disableds?"info":"primary",disabled:t.disableds}},[s("i",{staticClass:"gd-icons gd-icon-shangchuan"}),t._v(" "+t._s(t.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:t.imgList.length>0,imgList:t.imgList,currentImg:t.currentImg,download:t.download,fileName:t.fileName}}),s("gd-file-preview",{ref:"filePreview",attrs:{options:t.options}})],1)},_sfc_staticRenderFns$4f=[],__component__$4f=chartbi.normalizeComponent(_sfc_main$4f,_sfc_render$4f,_sfc_staticRenderFns$4f,!1,null,"a10263b1",null,null);const uploadFile=__component__$4f.exports;uploadFile.install=function(i){i.component(uploadFile.name,uploadFile)};const main_vue_vue_type_style_index_0_scoped_574c38e7_lang="",_sfc_main$4e={name:"GdUploadImg",props:{record:{type:Object,default:()=>({})},model:{type:Object,required:!0},limit:{type:Number,default:1},disabled:{type:Boolean,default:!1},prop:{type:String,default:""},develop:{type:[Number,String],default:1},accept:{type:String,default:""},size:{type:Number,default:100}},data(){return{fileList:[],imgList:[],currentImg:"",uidUploading:[]}},computed:{clearFiles(){this.$refs.uploadFile&&this.$refs.uploadFile.clearFiles()},fileAccept(){return this.accept?this.accept:chartbi.getFileAccept("image")},fileSize(){return this.size?this.size:chartbi.getFileSize("image")}},methods:{setDataMore({val:i,data:t,items:s,fkData:a}){this.setData(i)},setData(i){const t=i?i.split(","):[];if(t.length===0){this.clearFiles();return}let s=[];t.forEach(a=>{let l=this.getFileBlob(a).then(n=>n);s.push(l)}),Promise.all(s).then(a=>{let l=[];a.forEach(n=>{const o=this.fileList.filter(r=>r.fileId===n.fileId)[0];l.push({uid:o?o.uid:n.uuid,url:n.url,filePath:n.url,fileId:n.fileId})}),this.fileList=[...l]})},getFileBlob(i){return i.includes("http")?new Promise(s=>{s({url:i,fileId:"",uuid:chartbi.uuid(8)})}):messages.sysFileInfoPreview({id:i}).then(s=>({url:window.URL.createObjectURL(new Blob([s])),fileId:i,uuid:i}))},successImg(i,t,s){this.uidUploading=this.uidUploading.filter(l=>l!==t.uid),this.record.uidUploading=this.uidUploading;let a=[];s.forEach(l=>{l.response&&l.response.id?a.push({uid:l.response.id,name:l.response.fileoriginname,fileoriginname:l.response.fileoriginname,id:l.response.id,fileId:l.response.id,url:l.response.url}):a.push({uid:l.id?l.id:l.fileId,name:l.name?l.name:l.fileoriginname,fileoriginname:l.name?l.name:l.fileoriginname,id:l.fileId?l.fileId:l.id,fileId:l.fileId?l.fileId:l.id,url:l.url?l.url:l.filepath})}),this.fileList=[...s],this.handleChange()},uploadImgs(i){if(!this.fileAccept.split(",").includes(i.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),i.onError();return}if(!(i.file.size/1024/1024<this.fileSize)){this.$message.error(this.$i18nt("gd.view.fileSizeTip","\u4E0A\u4F20\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7")+this.fileSize+"(MB)"),i.onError();return}const a=new FormData;a.append("file",i.file),this.uidUploading.push(i.file.uid),this.record.uidUploading=this.uidUploading,messages.sysFileInfoUploadShop(a).then(l=>{if(l.code===200){const n=l.data.id,r=(this.model[this.prop]?this.model[this.prop].split(","):[]).concat([n]);this.model[this.prop]=r.join(","),i.onSuccess(l.data)}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+l.message),i.onError()}).catch(l=>{i.onError(l)})},previewImg(i){this.imgList=[];let t=[];this.fileList.forEach(s=>{t.push(s.url)}),this.imgList=t,this.currentImg=i.url,this.$refs.imgPreview.open()},removeImg(i,t){let s=[],a=[];t.forEach(l=>{l.response&&l.response.id?(s.push(l.response.id),a.push({uid:l.response.id,name:l.response.fileoriginname,fileoriginname:l.response.fileoriginname,id:l.response.id,fileId:l.response.id,url:l.response.url})):(s.push(l.fileId?l.fileId:l.id),a.push({uid:l.id?l.id:l.fileId,name:l.name?l.name:l.fileoriginname,fileoriginname:l.name?l.name:l.fileoriginname,id:l.fileId?l.fileId:l.id,fileId:l.fileId?l.fileId:l.id,url:l.url?l.url:l.filepath}))}),this.uidUploading=this.uidUploading.filter(l=>l!==i.uid),this.record.uidUploading=this.uidUploading,this.fileList=[...t],this.model[this.prop]=s.join(","),this.handleChange()},handleChange(){this.$emit("change",this.record)}},mounted(){this.develop!==1&&this.$nextTick(()=>{setTimeout(()=>{this.record.setData===void 0&&(this.record.setData=this.setDataMore),this.record.clearFiles===void 0&&(this.record.clearFiles=this.clearFiles)},20)})}};var _sfc_render$4e=function(){var t=this,s=t._self._c;return s("div",[s("el-upload",{staticClass:"upload-demo",class:t.fileList.length>=t.limit?"hide-demo":"",attrs:{action:"","list-type":"picture-card","on-preview":t.previewImg,"on-remove":t.removeImg,limit:t.limit,"http-request":t.uploadImgs,"on-success":t.successImg,"file-list":t.fileList,disabled:t.disabled,accept:t.fileAccept}},[s("i",{staticClass:"el-icon-plus"})]),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:t.imgList.length>0,imgList:t.imgList,currentImg:t.currentImg}})],1)},_sfc_staticRenderFns$4e=[],__component__$4e=chartbi.normalizeComponent(_sfc_main$4e,_sfc_render$4e,_sfc_staticRenderFns$4e,!1,null,"574c38e7",null,null);const uploadImg=__component__$4e.exports;uploadImg.install=function(i){i.component(uploadImg.name,uploadImg)};var calendar$1={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,92821,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,37600,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["\u7532","\u4E59","\u4E19","\u4E01","\u620A","\u5DF1","\u5E9A","\u8F9B","\u58EC","\u7678"],Zhi:["\u5B50","\u4E11","\u5BC5","\u536F","\u8FB0","\u5DF3","\u5348","\u672A","\u7533","\u9149","\u620C","\u4EA5"],Animals:["\u9F20","\u725B","\u864E","\u5154","\u9F99","\u86C7","\u9A6C","\u7F8A","\u7334","\u9E21","\u72D7","\u732A"],festival:{"1-1":{title:"\u5143\u65E6"},"2-14":{title:"\u60C5\u4EBA\u8282"},"3-8":{title:"\u5987\u5973\u8282"},"3-12":{title:"\u690D\u6811\u8282"},"4-1":{title:"\u611A\u4EBA\u8282"},"4-5":{title:"\u6E05\u660E\u8282"},"5-1":{title:"\u52B3\u52A8\u8282"},"5-4":{title:"\u9752\u5E74\u8282"},"5-12":{title:"\u62A4\u58EB\u8282"},"6-1":{title:"\u513F\u7AE5\u8282"},"7-1":{title:"\u5EFA\u515A\u8282"},"8-1":{title:"\u5EFA\u519B\u8282"},"9-10":{title:"\u6559\u5E08\u8282"},"10-1":{title:"\u56FD\u5E86\u8282"},"12-24":{title:"\u5E73\u5B89\u591C"},"12-25":{title:"\u5723\u8BDE\u8282"}},lfestival:{"12-30":{title:"\u9664\u5915"},"1-1":{title:"\u6625\u8282"},"1-15":{title:"\u5143\u5BB5\u8282"},"2-2":{title:"\u9F99\u62AC\u5934"},"5-5":{title:"\u7AEF\u5348\u8282"},"7-7":{title:"\u4E03\u5915\u8282"},"7-15":{title:"\u4E2D\u5143\u8282"},"8-15":{title:"\u4E2D\u79CB\u8282"},"9-9":{title:"\u91CD\u9633\u8282"},"10-1":{title:"\u5BD2\u8863\u8282"},"10-15":{title:"\u4E0B\u5143\u8282"},"12-8":{title:"\u814A\u516B\u8282"},"12-23":{title:"\u5317\u65B9\u5C0F\u5E74"},"12-24":{title:"\u5357\u65B9\u5C0F\u5E74"}},getFestival(){return this.festival},getLunarFestival(){return this.lfestival},setFestival(i={}){this.festival=i},setLunarFestival(i={}){this.lfestival=i},solarTerm:["\u5C0F\u5BD2","\u5927\u5BD2","\u7ACB\u6625","\u96E8\u6C34","\u60CA\u86F0","\u6625\u5206","\u6E05\u660E","\u8C37\u96E8","\u7ACB\u590F","\u5C0F\u6EE1","\u8292\u79CD","\u590F\u81F3","\u5C0F\u6691","\u5927\u6691","\u7ACB\u79CB","\u5904\u6691","\u767D\u9732","\u79CB\u5206","\u5BD2\u9732","\u971C\u964D","\u7ACB\u51AC","\u5C0F\u96EA","\u5927\u96EA","\u51AC\u81F3"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"],nStr2:["\u521D","\u5341","\u5EFF","\u5345"],nStr3:["\u6B63","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u51AC","\u814A"],lYearDays:function(i){var t,s=348;for(t=32768;t>8;t>>=1)s+=this.lunarInfo[i-1900]&t?1:0;return s+this.leapDays(i)},leapMonth:function(i){return this.lunarInfo[i-1900]&15},leapDays:function(i){return this.leapMonth(i)?this.lunarInfo[i-1900]&65536?30:29:0},monthDays:function(i,t){return t>12||t<1?-1:this.lunarInfo[i-1900]&65536>>t?30:29},solarDays:function(i,t){if(t>12||t<1)return-1;var s=t-1;return s==1?i%4==0&&i%100!=0||i%400==0?29:28:this.solarMonth[s]},toGanZhiYear:function(i){var t=(i-3)%10,s=(i-3)%12;return t==0&&(t=10),s==0&&(s=12),this.Gan[t-1]+this.Zhi[s-1]},toAstro:function(i,t){var s="\u9B54\u7FAF\u6C34\u74F6\u53CC\u9C7C\u767D\u7F8A\u91D1\u725B\u53CC\u5B50\u5DE8\u87F9\u72EE\u5B50\u5904\u5973\u5929\u79E4\u5929\u874E\u5C04\u624B\u9B54\u7FAF",a=[20,19,21,21,21,22,23,23,23,23,22,22];return s.substr(i*2-(t<a[i-1]?2:0),2)+"\u5EA7"},toGanZhi:function(i){return this.Gan[i%10]+this.Zhi[i%12]},getTerm:function(i,t){if(i<1900||i>2100||t<1||t>24)return-1;var s=this.sTermInfo[i-1900],a=[parseInt("0x"+s.substr(0,5)).toString(),parseInt("0x"+s.substr(5,5)).toString(),parseInt("0x"+s.substr(10,5)).toString(),parseInt("0x"+s.substr(15,5)).toString(),parseInt("0x"+s.substr(20,5)).toString(),parseInt("0x"+s.substr(25,5)).toString()],l=[a[0].substr(0,1),a[0].substr(1,2),a[0].substr(3,1),a[0].substr(4,2),a[1].substr(0,1),a[1].substr(1,2),a[1].substr(3,1),a[1].substr(4,2),a[2].substr(0,1),a[2].substr(1,2),a[2].substr(3,1),a[2].substr(4,2),a[3].substr(0,1),a[3].substr(1,2),a[3].substr(3,1),a[3].substr(4,2),a[4].substr(0,1),a[4].substr(1,2),a[4].substr(3,1),a[4].substr(4,2),a[5].substr(0,1),a[5].substr(1,2),a[5].substr(3,1),a[5].substr(4,2)];return parseInt(l[t-1])},toChinaMonth:function(i){if(i>12||i<1)return-1;var t=this.nStr3[i-1];return t+="\u6708",t},toChinaDay:function(i){var t;switch(i){case 10:t="\u521D\u5341";break;case 20:t="\u4E8C\u5341";break;case 30:t="\u4E09\u5341";break;default:t=this.nStr2[Math.floor(i/10)],t+=this.nStr1[i%10]}return t},getAnimal:function(i){return this.Animals[(i-4)%12]},solar2lunar:function(o,r,d){if(o=parseInt(o),r=parseInt(r),d=parseInt(d),o<1900||o>2100||o==1900&&r==1&&d<31)return-1;if(o)var a=new Date(o,parseInt(r)-1,d);else var a=new Date;var l,m=0,n=0,o=a.getFullYear(),r=a.getMonth()+1,d=a.getDate(),u=(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())-Date.UTC(1900,0,31))/864e5;for(l=1900;l<2101&&u>0;l++)n=this.lYearDays(l),u-=n;u<0&&(u+=n,l--);var p=new Date;p.getFullYear()==o&&p.getMonth()+1==r&&p.getDate()==d;var h=a.getDay();this.nStr1[h],h==0&&(h=7);var f=l,m=this.leapMonth(l),y=!1;for(l=1;l<13&&u>0;l++)m>0&&l==m+1&&y==!1?(--l,y=!0,n=this.leapDays(f)):n=this.monthDays(f,l),y==!0&&l==m+1&&(y=!1),u-=n;u==0&&m>0&&l==m+1&&(y?y=!1:(y=!0,--l)),u<0&&(u+=n,--l);var g=l,_=u+1,v=r-1,C=this.toGanZhiYear(f),$=this.getTerm(o,r*2-1),k=this.getTerm(o,r*2),T=this.toGanZhi((o-1900)*12+r+11);d>=$&&(T=this.toGanZhi((o-1900)*12+r+12));var N=null;$==d&&(N=this.solarTerm[r*2-2]),k==d&&(N=this.solarTerm[r*2-1]);var A=Date.UTC(o,v,1,0,0,0,0)/864e5+25567+10,O=this.toGanZhi(A+d-1),I=this.toAstro(r,d),P=this.festival,U=this.lfestival,L=r+"-"+d,R=g+"-"+_;return{festival:P[L]?P[L].title:null,lunarFestival:U[R]?U[R].title:null,lYear:f,lMonth:g,lDay:_,Animal:this.getAnimal(f),IMonthCn:(y?"\u95F0":"")+this.toChinaMonth(g),IDayCn:this.toChinaDay(_),gzYear:C,gzMonth:T,gzDay:O,Term:N,astro:I}},lunar2solar:function(i,t,s,l){i=parseInt(i),t=parseInt(t),s=parseInt(s);var l=!!l,n=this.leapMonth(i);if(this.leapDays(i),l&&n!=t||i==2100&&t==12&&s>1||i==1900&&t==1&&s<31)return-1;var o=this.monthDays(i,t),r=o;if(l&&(r=this.leapDays(i,t)),i<1900||i>2100||s>r)return-1;for(var d=0,u=1900;u<i;u++)d+=this.lYearDays(u);for(var p=0,h=!1,u=1;u<t;u++)p=this.leapMonth(i),h||p<=u&&p>0&&(d+=this.leapDays(i),h=!0),d+=this.monthDays(i,u);l&&(d+=o);var f=Date.UTC(1900,1,30,0,0,0),m=new Date((d+s-31)*864e5+f),y=m.getUTCFullYear(),g=m.getUTCMonth()+1,_=m.getUTCDate();return this.solar2lunar(y,g,_)}};const main_vue_vue_type_style_index_0_lang$1="",_sfc_main$4d={name:"GdLuncCalendar",props:{showLunar:{type:Boolean,default:!1},showMonthBg:{type:Boolean,default:!0},showChangeBtn:{type:Boolean,default:!0},firstDayOfWeek:{type:String,default:"sunday"},weekType:{type:String,default:""},weekend:{type:Boolean,default:!0},showShrink:{type:Boolean,default:!1},shrinkState:{type:String,default:"month"},signList:{type:Array,default(){return[]}},checkedDate:{type:Object,default(){return{}}},height:{type:String,default:"100"},develop:{type:[Number,String],default:1}},data(){return{weekArr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],today:{},selDate:{},allMonthList:[],tranIndex:1,allWeekList:[],tranCurrent:1,tranDuration:300,signArr:this.signList,showToday:!1,shrinkType:!1,deterChange:!0,prevMonthList:[],nextMonthList:[],num:1}},computed:{getAllData(){return this.shrinkType?this.allWeekList:this.allMonthList},getMontBg(){let i=this.selDate.month;return this.shrinkType?"":i<10?"0"+i:i},getIsSelDay(){return i=>{let{year:t,month:s,day:a}=this.checkedDate;return t==i.year&&s==i.month&&a==i.day}},getIsToday(){return i=>{let{year:t,month:s,day:a}=this.today;return t==i.year&&s==i.month&&a==i.day}}},created(){},methods:{initDate(i){this.today=i||this.today,this.selDate=JSON.parse(JSON.stringify(this.today));let t=this.getMonthData(this.selDate),s=this.getMonthData(this.getMonthDate(this.selDate,-1)),a=this.getMonthData(this.getMonthDate(this.selDate));this.allMonthList=[s,t,a],this.tranIndex=1,this.shrinkState=="week"&&this.shrinkType&&this.changeShrink()},getMonthData(i){const{year:t,month:s,day:a}=i;let l=new Date(t,s,0).getDate(),n=new Date(t+"/"+s+"/1").getDay();this.firstDayOfWeek=="monday"&&(n=n-1<0?6:n-1);let o=[];for(var r=0;r<42;r++){let d={};if(r<n){let{year:u,month:p}=this.getMonthDate(i,-1),f=new Date(u,p,0).getDate()-n+r+1;d=this.getDayInfo({year:u,month:p,day:f},"prev")}else if(r>l+n-1){let{year:u,month:p}=this.getMonthDate(i),h=r-l-n+1;d=this.getDayInfo({year:u,month:p,day:h},"next")}else{let u=r-n+1;d=this.getDayInfo({year:t,month:s,day:u},"normal")}r%7==0&&o.push(new Array),o[o.length-1].push(d)}return o},getDayInfo(i,t){const{year:s,month:a,day:l}=i;let n=!1;s==this.today.year&&a==this.today.month&&l==this.today.day&&(n=!0);let o=new Date(s+"/"+a+"/"+l).getDay(),r=calendar$1.solar2lunar(s,a,l),d=r.IDayCn=="\u521D\u4E00"?r.IMonthCn+r.IDayCn:r.IDayCn;r.festival?d=r.festival:r.lunarFestival?d=r.lunarFestival:r.Term&&(d=r.Term);let u=["\u5143\u65E6","\u6625\u8282","\u6E05\u660E\u8282","\u52B3\u52A8\u8282","\u7AEF\u5348\u8282","\u4E2D\u79CB\u8282","\u56FD\u5E86\u8282"],p=!1;u.indexOf(d)!=-1&&(p=!0);let h={date:s+"-"+a+"-"+l,year:s,month:a,day:l,week:o,lunar:r,dayLunar:d,isToday:n,isHoliday:p,dayType:t,sign:this.getSignByDate(i)},f=this.getDayClass(h);return h.dayClass=f,h},getDayClass(i){let t="";return i.isToday&&(t+=" is-today"),i.isHoliday&&(t+=" is-holiday"),this.weekend&&(i.week==0||i.week==6)&&(t+=" week-end"),t},getSignByDate(i){const{year:t,month:s,day:a}=i;let l=new Date(t+"/"+s+"/"+a+" 00:00:00").getTime(),n=new Date(t+"/"+s+"/"+a+" 23:59:59").getTime(),o=[];return this.signArr.map(r=>{r.date.replace(/-/g,"/");let d=new Date(r.date).getTime();d>=l&&d<=n&&o.push(r)}),o},getOtherData(i){let t=this.getMonthDate(this.selDate,i=="prev"?-1:1);this.selDate=t;let s=this.getMonthData(this.getMonthDate(t,i=="prev"?-1:1)),a=this.getTranIndex().prevNum;i=="next"&&(a=this.getTranIndex().nextNum),this.allMonthList.splice(a,1,s),this.judgeShowToday(),this.returnMonthChange(i)},getOtherWeekData(i){let t=this.selDate,s=this.getDateByDateAndDay(t,i=="prev"?-7:7);if(t.month!=s.month){let a=this.getTranIndex("month").prevNum;i=="next"&&(a=this.getTranIndex("month").nextNum),this.tranIndex=a,this.getOtherData(i)}this.selDate=s,this.getWeekData(i),this.judgeShowToday()},getWeekData(i){const{prevNum:t,nowNum:s,nextNum:a}=this.getTranIndex("month"),{prevNum:l,nowNum:n,nextNum:o}=this.getTranIndex("week"),{year:r,month:d,day:u}=this.selDate;let p=r+"-"+d+"-"+u,h=this.allMonthList[t],f=this.allMonthList[s],m=this.allMonthList[a];for(let y=0;y<f.length;y++)for(let g=0;g<f[y].length;g++)if(p==f[y][g].date){if(i=="next")this.allWeekList.splice(o,1,[f[y+1]]),y==5&&this.allWeekList.splice(o,1,[m[1]]);else if(this.allWeekList.splice(l,1,[f[y-1]]),y==0){for(let _=h.length-1;_>=0;_--)if(h[_][6].dayType=="normal"){this.allWeekList.splice(l,1,[h[_]]);break}}break}},getAllWeekData(){const{prevNum:i,nowNum:t,nextNum:s}=this.getTranIndex("month"),{year:a,month:l,day:n}=this.selDate;let o=a+"-"+l+"-"+n,r=[[],[],[]],d=this.allMonthList[i],u=this.allMonthList[t],p=this.allMonthList[s];for(let h=0;h<u.length;h++)for(let f=0;f<u[h].length;f++)if(o==u[h][f].date){if(r[0][0]=u[h-1],r[1][0]=u[h],r[2][0]=u[h+1],h==5)r[2][0]=p[1];else if(h==0){for(let m=d.length-1;m>=0;m--)if(d[m][6].dayType=="normal"){r[0][0]=d[m];break}}break}this.allWeekList=r},swiperEndChange(){this.tranDuration=300},swiperChange(i){let t=i.detail.current,s=this.shrinkType?this.tranCurrent:this.tranIndex,a=s-t==-1||s-t==2?"next":"prev";this.shrinkType?(this.tranCurrent=t,t!=s&&this.getOtherWeekData(a)):(this.tranIndex=t,t!=s&&this.getOtherData(a))},changeMonthOrWeek(i){if(this.develop==1||!this.deterChange)return;this.deterChange=!1,setTimeout(a=>{this.deterChange=!0},400),this.tranDuration=300;let t=this.shrinkType?"week":"month",s=this.getTranIndex(t).prevNum;i=="next"&&(s=this.getTranIndex(t).nextNum),this.num=s,t=="week"?(this.tranCurrent=s,this.getOtherWeekData(i)):(this.tranIndex=s,this.getOtherData(i))},changeShrink(i){this.develop!=1&&(i!=null&&(this.shrinkType=!this.shrinkType),this.tranDuration!=0&&(this.tranDuration=0),this.shrinkType&&(this.tranCurrent=1,this.getAllWeekData()),this.returnShrinkChange(),this.judgeShowToday())},goToday(){this.tranDuration!=0&&(this.tranDuration=0);let i=JSON.parse(JSON.stringify(this.checkedDate));if(this.initDate(),this.shrinkType){this.tranCurrent=1,this.getAllWeekData();let t=this.today;i.year!=t.year||i.month!=t.month?this.returnMonthChange("today"):this.returnDayChange(this.today)}else this.returnMonthChange("today"),this.returnDayChange(this.today);this.judgeShowToday()},clickDay(i){this.selDate;let t=JSON.parse(JSON.stringify(this.selDate));if(this.selDate.day=i.day,t.month!=i.month){if(this.shrinkType){this.selDate.year=i.year,this.selDate.month=i.month;let s=this.getTranIndex("month").prevNum;i.dayType=="next"&&(s=this.getTranIndex("month").nextNum),this.tranIndex=s;let a=this.getMonthData(this.getMonthDate(this.selDate,i.dayType=="prev"?-1:1)),l=this.getTranIndex("month").prevNum;i.dayType=="next"&&(l=this.getTranIndex("month").nextNum),this.allMonthList.splice(l,1,a)}else{this.changeMonthOrWeek(i.dayType);return}this.returnMonthChange(i.dayType)}else this.returnDayChange(i)},judgeShowToday(){const{year:i,month:t,day:s}=this.today,{year:a,month:l,day:n}=this.selDate;if(this.shrinkType){let o=new Date(a,l-1,n).getTime(),r=new Date(i,t-1,s).getDay(),d=this.getDateByDateAndDay(this.today,-r+(this.firstDayOfWeek=="monday"?1:0)),u=this.getDateByDateAndDay(this.today,6-r+(this.firstDayOfWeek=="monday"?1:0)),p=new Date(d.year,d.month-1,d.day).getTime(),h=new Date(u.year,u.month-1,u.day).getTime();o>h||o<p?this.showToday=!0:this.showToday=!1}else i!=a||t!=l?this.showToday=!0:this.showToday=!1},setSignList(){this.allMonthList.map(i=>{i.map(t=>{t.map(s=>{s.sign=this.getSignByDate({year:s.year,month:s.month,day:s.day})})})})},addSignList(i){let t=[...i];this.signArr=t,this.setSignList()},deleteSignList(i){let t=this.signArr;t=t.filter(s=>!i.find(a=>a.date==s.date&&a.title==s.title)),this.signArr=t,this.setSignList()},returnDayChange(i){let{year:t,month:s,day:a}=i,n={date:t+"-"+(s<10?"0"+s:s)+"-"+(a<10?"0"+a:a),year:t,month:s,day:a,week:i.week,daySign:i.sign};this.showLunar&&(n.lunar=i.lunar),this.$emit("dayChange",n)},returnMonthChange(i){let t=this.selDate.year+"-"+this.selDate.month+"-"+this.selDate.day,a=this.allMonthList.flat().flat().find(l=>l.date==t);this.$emit("monthChange",{year:a.year,month:a.month,type:i})},returnShrinkChange(){let i=this.shrinkType?"week":"month";this.$emit("shrinkClick",i)},getTranIndex(i="month"){let t=this.tranIndex;i=="week"&&(t=this.tranCurrent);let s=t-1<0?2:t-1,a=t,l=t+1>2?0:t+1;return{prevNum:s,nowNum:a,nextNum:l}},getDateByDateAndDay(i,t){let s=new Date(i.year+"/"+i.month+"/"+i.day).getTime()+t*24*60*60*1e3,a=new Date(s);return{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()}},getMonthDate(i,t=1){let s=i.month+t,a=parseInt(Math.abs(s)/12),l=i.year,n=s;s>12?(l=i.year+a,n=s%12):s<1&&(l=i.year-(a+1),n=s+12*(a+1));let o=new Date(l,n,0).getDate(),r=i.day>o?o:i.day;return{year:l,month:n,day:r}}}};var _sfc_render$4d=function(){var t=this,s=t._self._c;return s("div",{staticClass:"lunc-calendar"},[s("div",{staticClass:"header"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.showChangeBtn,expression:"showChangeBtn"}],staticClass:"head-cao head-left"},[s("div",{staticClass:"gd-icons gd-icon-shangyiyeqianyiye active-color",on:{click:function(a){return t.changeMonthOrWeek("prev")}}})]),t.selDate.year?s("div",{staticClass:"head-month"},[t._v(" "+t._s(t.selDate.year+"\u5E74"+(t.selDate.month<10?"0"+t.selDate.month:t.selDate.month)+"\u6708")+" ")]):s("div",{staticClass:"head-month"},[t._v("--\u5E74--\u6708")]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showChangeBtn,expression:"showChangeBtn"}],staticClass:"head-cao head-caos"},[s("div",{staticClass:"gd-icons gd-icon-xiayiyehouyiye active-color",on:{click:function(a){return t.changeMonthOrWeek("next")}}})]),s("div",{staticClass:"head-setting"},[t._t("icon")],2),s("div",{staticClass:"head-cao head-day"},[s("div",{staticClass:"gd-icon",class:t.shrinkType?"active-color":"",on:{click:function(a){return t.changeShrink(!0)}}},[t._v(" "+t._s(t.$i18nt("gd.page.week","\u5468"))+" ")])]),s("div",{staticClass:"head-cao head-day"},[s("div",{staticClass:"gd-icon",class:t.shrinkType?"":"active-color",on:{click:function(a){return t.changeShrink(!1)}}},[t._v(" "+t._s(t.$i18nt("gd.page.month","\u6708"))+" ")])]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showToday,expression:"showToday"}],staticClass:"head-cao head-day"},[s("div",{staticClass:"gd-icons m-jintian active-color",on:{click:t.goToday}})])]),s("div",{staticClass:"week-area"},t._l(t.weekArr,function(a,l){return s("div",{key:l,staticClass:"week-font"},[t._v(t._s(t.weekType+""+a))])}),0),s("div",{staticClass:"calendar-data",style:{height:t.shrinkType?"56px":"266px"}},t._l(t.getAllData,function(a,l){return s("div",{directives:[{name:"show",rawName:"v-show",value:l==t.num,expression:"i == num"}],key:l,staticClass:"swiper-item swiper-prev-item"},[t.showMonthBg?s("div",{staticClass:"month-bg"},[t._v(t._s(t.getMontBg))]):t._e(),s("div",{staticClass:"month-days",class:t.shrinkType?"item-week":""},t._l(a,function(n,o){return s("div",{key:o,staticClass:"week-days"},t._l(n,function(r,d){return s("div",{key:d,staticClass:"day",on:{click:function(u){return t.clickDay(r)}}},[s("div",{staticClass:"day-info",class:[r.dayClass,t.getIsSelDay(r)?"is-sel":"",r.dayType!="normal"?"un-month":""]},[s("span",{staticClass:"day-solar",class:[t.getIsSelDay(r)?"active-color":"",t.getIsToday(r)?"is-todays active-color":""]},[t._v(t._s(r.day))]),t.showLunar||r.sign&&r.sign.length>0?[r.sign&&r.sign.length>0?s("span",{staticClass:"day-tag"}):t._e(),r.sign&&r.sign.length>0?s("span",{staticClass:"day-sign"},[t._v(" "+t._s(r.sign[0].title)+" ")]):s("span",{staticClass:"day-lunar"},[t._v(t._s(r.dayLunar))])]:t._e()],2)])}),0)}),0)])}),0)])},_sfc_staticRenderFns$4d=[],__component__$4d=chartbi.normalizeComponent(_sfc_main$4d,_sfc_render$4d,_sfc_staticRenderFns$4d,!1,null,null,null,null);const GDpackage$e=__component__$4d.exports;GDpackage$e.install=function(i){i.component(GDpackage$e.name,GDpackage$e)};const main_vue_vue_type_style_index_0_scoped_4e2021c1_lang="",_sfc_main$4c={name:"GdWatermark",props:{text:{type:String,required:!0}},data(){return{}},computed:{getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},...chartbi.mapGetters([])},mounted(){this.addWatermark(this.text)},methods:{addWatermark(i){const t=this.$refs.watermark,s=document.createElement("canvas");s.width=200,s.height=150;const a=window.innerWidth,l=window.innerHeight,n=a/6,o=l/4,r=s.getContext("2d");i.split(`
27
+ ({d}%)`},itemStyle:{borderRadius:2}}]};return this.showTitle?Object.assign(a,{title:s}):a}}};var _sfc_render$4l=function(){var t=this,s=t._self._c;return s("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},_sfc_staticRenderFns$4l=[],__component__$4l=chartbi.normalizeComponent(_sfc_main$4l,_sfc_render$4l,_sfc_staticRenderFns$4l,!1,null,"16dc885e",null,null);const PieChart=__component__$4l.exports,amplify_vue_vue_type_style_index_0_scoped_bb8cc0bf_lang="",_sfc_main$4k={props:{loadData:{type:Array,default:()=>[]},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:"center"}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(i){this.visible=!0,this.record={...i},this.$nextTick(()=>{setTimeout(()=>{this.$refs.VEcharts.open(i)},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.VEcharts.open(this.record)},0)})},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()},closed(){this.fullscreen=!1,this.visible=!1}}};var _sfc_render$4k=function(){var t=this,s=t._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:t.fullscreen,buttons:[],confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[s("gd-echarts",{ref:"VEcharts",attrs:{loadData:t.loadData,color:t.color,left:t.left}})],1)],1)},_sfc_staticRenderFns$4k=[],__component__$4k=chartbi.normalizeComponent(_sfc_main$4k,_sfc_render$4k,_sfc_staticRenderFns$4k,!1,null,"bb8cc0bf",null,null);const AmplifyEchart=__component__$4k.exports,main_vue_vue_type_style_index_0_scoped_11a80d1f_lang="",_sfc_main$4j={name:"GdEcharts",props:{loadData:{type:Array,default:()=>[]},develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10}},components:{ColumnarChart,FunnelChart,LineChart,PieChart,AmplifyEchart},data(){return{type:"0",detail:{},dataSource:[],spinning:!1}},computed:{getColor(){let i=[];return(this.color.length===0?this.echartsColor:this.color).forEach(s=>{i.push(s==="0"?this.primaryColor:s)}),i},...chartbi.mapGetters(["echartsColor","primaryColor"])},methods:{amplify(){this.$refs.amplifyEchart.open(this.detail)},change(i){this.$emit("change",i)},setType(){this.type="0"},open(i){this.spinning=!0,this.detail={...i},this.type=i.type,this.dataSource=[...i.data],this.assembly()},init(i){this.spinning=!0,this.detail={...i},this.type=i.type,messages.basePage({pageNo:1,pageSize:100,tableId:i.tableId,viewId:i.viewId}).then(t=>{t.success?(this.dataSource=t.data.rows.filter(s=>s.id!==null),this.assembly()):this.spinning=!1})},assembly(){let i={};this.detail.mode==1?i=this.getTotals():this.detail.mode==2?i=this.getGentles():this.detail.mode==3?i=this.getAverage():this.detail.mode==4?i=this.getMaximum():this.detail.mode==5&&(i=this.getMinimum());let t={name:this.$i18nt(`Dynamics.${this.detail.transKey}`,this.detail.name),count:this.dataSource.length,columns:i.columns,data:i.data},s="columnarChart";this.detail.type==2?s="pieChart":this.detail.type==3?s="funnelChart":this.detail.type==4&&(s="lineChart"),this.$nextTick(()=>{setTimeout(()=>{this.$refs[s].init(t),this.spinning=!1},0)})},getTotals(){let i=[],t=[],s=[];(this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser()).forEach(n=>{let o=0;this.dataSource.forEach(r=>{r[this.detail.list[0].dataIndex]==n.code&&(o+=1)}),i.push({value:o,name:this.$i18nt(`Dynamics.${n.transkey}`,n.name)}),t.push(this.$i18nt(`Dynamics.${n.transkey}`,n.name)),s.push(String(n.code))});let l=this.dataSource.filter(n=>!s.includes(String(n[this.detail.list[0].dataIndex])));if(l.length>0){let n=0;l.forEach(o=>{n+=1}),i=[{value:n,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(i),t=[`${this.$i18nt("gd.echarts.none"),"\u7A7A\u767D"}`].concat(t)}return{data:i,columns:t}},getGentles(){let i=[],t=[],s=2;if(this.detail.columnName&&this.detail.list.length===1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),l=[],n=this.loadData.filter(r=>r.columnname==this.detail.columnName)[0];s=n===void 0?s:n.filedsize!==null?n.filedsize:s,a.forEach(r=>{let d=0;this.dataSource.forEach(u=>{if(u[this.detail.list[0].dataIndex]==r.code){let p=u[this.detail.columnName]!==null?u[this.detail.columnName]:0;d+=n.dicttypecode?this.getDictionaryData(n.dicttypecode,u[this.detail.columnName]):p}}),i.push({value:d.toString().length>s?Number(d.toFixed(s)):d,name:this.$i18nt(`Dynamics.${r.transkey}`,r.name)}),t.push(this.$i18nt(`Dynamics.${r.transkey}`,r.name)),l.push(String(r.code))});let o=this.dataSource.filter(r=>!l.includes(String(r[this.detail.list[0].dataIndex])));if(o.length>0){let r=0;o.forEach(d=>{let u=d[this.detail.columnName]!==null?d[this.detail.columnName]:0;r+=n.dicttypecode?this.getDictionaryData(n.dicttypecode,d[this.detail.columnName]):u}),i=[{value:r,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(i),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let l=0,n=this.loadData.filter(o=>o.columnname==a.dataIndex)[0];s=n===void 0?s:n.filedsize!==null?n.filedsize:s,this.dataSource.forEach(o=>{l+=o[a.dataIndex]!==null&&o[a.dataIndex]!==void 0?o[a.dataIndex]:0}),i.push({value:l.toString().length>s?Number(l.toFixed(s)):l,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment)}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:i,columns:t}},getAverage(){let i=[],t=[],s=2;if(this.detail.columnName&&this.detail.list.length==1){let a=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),l=[],n=this.loadData.filter(r=>r.columnname==this.detail.columnName)[0];a.forEach(r=>{let d=0,u=0,p=this.loadData.filter(h=>h.columnname==this.detail.columnName)[0];s=p==null?s:p.filedsize!==null?p.filedsize:s,this.dataSource.forEach(h=>{if(h[this.detail.list[0].dataIndex]==r.code){let f=h[this.detail.columnName]!==null&&h[this.detail.columnName]!==void 0?h[this.detail.columnName]:0;d+=p.dicttypecode?this.getDictionaryData(p.dicttypecode,h[this.detail.columnName]):f,u+=1}}),i.push({value:d.toString().length>s?Number(d.toFixed(s)):d,name:this.$i18nt(`Dynamics.${r.transKey}`,r.name),leg:u}),t.push(this.$i18nt(`Dynamics.${r.transKey}`,r.name)),l.push(String(r.code))});let o=this.dataSource.filter(r=>!l.includes(String(r[this.detail.list[0].dataIndex])));if(o.length>0){let r=0;o.forEach(d=>{let u=d[this.detail.columnName]!==null&&d[this.detail.columnName]!==void 0?d[this.detail.columnName]:0;r+=n.dicttypecode?this.getDictionaryData(n.dicttypecode,d[this.detail.columnName]):u}),i=[{value:r,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,leg:o.length}].concat(i),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(a=>{let l=0,n=0,o=this.loadData.filter(r=>r.columnname==a.dataIndex)[0];s=o==null?s:o.filedsize!==null?o.filedsize:s,this.dataSource.forEach(r=>{l+=r[a.dataIndex]!==null&&r[a.dataIndex]!==void 0?r[a.dataIndex]:0,n+=1}),i.push({value:l.toString().length>s?Number(l.toFixed(s)):l,name:this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment),leg:n}),t.push(this.$i18nt(`Dynamics.${a.transKey}`,a.columnComment))});return{data:i,columns:t}},getMaximum(){let i=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let s=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),a=[],l=this.loadData.filter(o=>o.columnname==this.detail.columnName)[0];s.forEach(o=>{let r=0;this.dataSource.forEach(d=>{if(d[this.detail.list[0].dataIndex]==o.code){let u=d[this.detail.columnName]!==null&&d[this.detail.columnName]!==void 0?d[this.detail.columnName]:0;u=l.dicttypecode?this.getDictionaryData(l.dicttypecode,d[this.detail.columnName]):u,r=u>r?u:r}}),i.push({value:r,name:this.$i18nt(`Dynamics.${o.transkey}`,o.name)}),t.push(this.$i18nt(`Dynamics.${o.transkey}`,o.name)),a.push(String(o.code))});let n=this.dataSource.filter(o=>!a.includes(String(o[this.detail.list[0].dataIndex])));if(n.length>0){let o=0;n.forEach(r=>{let d=r[this.detail.columnName]!==null?r[this.detail.columnName]:0;o=l.dicttypecode?this.getDictionaryData(l.dicttypecode,r[this.detail.columnName]):d,o=d>o?d:o}),i=[{value:o,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(i),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(s=>{let a=0;this.dataSource.forEach(l=>{let n=l[s.dataIndex]!=null?l[s.dataIndex]:0;a=n>a?n:a}),i.push({value:a,name:this.$i18nt(`Dynamics.${s.transKey}`,s.columnComment)}),t.push(this.$i18nt(`Dynamics.${s.transKey}`,s.columnComment))});return{data:i,columns:t}},getMinimum(){let i=[],t=[];if(this.detail.columnName&&this.detail.list.length==1){let s=this.detail.list[0].dictTypeCode?this.getDictionary(this.detail.list[0].dictTypeCode):this.getUser(),a=[],l=this.loadData.filter(o=>o.columnname==this.detail.columnName)[0];s.forEach(o=>{let r=null;this.dataSource.forEach((d,u)=>{if(d[this.detail.list[0].dataIndex]==o.code){let p=d[this.detail.columnName]!==null?d[this.detail.columnName]:0;p=l.dicttypecode?this.getDictionaryData(l.dicttypecode,d[this.detail.columnName]):p,r=r===null||p<r?p:r}}),i.push({value:r,name:this.$i18nt(`Dynamics.${o.transkey}`,o.name)}),t.push(this.$i18nt(`Dynamics.${o.transkey}`,o.name)),a.push(String(o.code))});let n=this.dataSource.filter(o=>!a.includes(String(o[this.detail.list[0].dataIndex])));if(n.length>0){let o=null;n.forEach((r,d)=>{let u=r[this.detail.columnName]!==null&&r[this.detail.columnName]!==void 0?r[this.detail.columnName]:0;o=l.dicttypecode?this.getDictionaryData(l.dicttypecode,r[this.detail.columnName]):u,o=o===null||u<o?u:o}),i=[{value:o,name:`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`}].concat(i),t=[`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`].concat(t)}}else this.detail.list.forEach(s=>{let a=null;this.dataSource.forEach((l,n)=>{let o=l[s.dataIndex]!==null&&l[s.dataIndex]!==void 0?l[s.dataIndex]:0;a=a===null||o<a?o:a}),i.push({value:a,name:this.$i18nt(`Dynamics.${s.transKey}`,s.columnComment)}),t.push(this.$i18nt(`Dynamics.${s.transKey}`,s.columnComment))});return{data:i,columns:t}},getUser(){let i=this.duplicate(this.dataSource,this.detail.list[0].dataIndex),t=[];return i.forEach(s=>{let a=s[this.detail.list[0].dataIndex];t.push({name:a||`${this.$i18nt("gd.echarts.none","\u7A7A\u767D")}`,code:s[this.detail.list[0].dataIndex]})}),t},duplicate(i,t){if(i.length==0)return i;if(t){var s={},a=i.reduce((l,n)=>(s[n[t]]||(s[n[t]]=l.push(n)),l),[]);return a}else return Array.from(new Set(i))},getDictionary(i){return this.$options.filters.dictData(i)},getDictionaryData(i,t){let s=this.getDictionary(i).filter(a=>a.code==t)[0];return s===void 0?0:Number(s.name)}}};var _sfc_render$4j=function(){var t=this,s=t._self._c;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"gd-echart"},[t.type==="0"?s("div",{staticClass:"empty"},[s("i",{staticClass:"el-icon-receiving"}),s("div",{staticClass:"empty-err"},[t._v(t._s(t.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):t._e(),t.type==1?s("ColumnarChart",{ref:"columnarChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==2?s("PieChart",{ref:"pieChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==3?s("FunnelChart",{ref:"funnelChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),t.type==4?s("LineChart",{ref:"lineChart",attrs:{develop:t.develop,color:t.getColor,showTitle:t.showTitle,left:t.left},on:{change:t.change}}):t._e(),s("AmplifyEchart",{ref:"amplifyEchart",attrs:{loadData:t.loadData,color:t.getColor}})],1)},_sfc_staticRenderFns$4j=[],__component__$4j=chartbi.normalizeComponent(_sfc_main$4j,_sfc_render$4j,_sfc_staticRenderFns$4j,!1,null,"11a80d1f",null,null);const GDpackage$h=__component__$4j.exports;GDpackage$h.install=function(i){i.component(GDpackage$h.name,GDpackage$h)};const skeleton_vue_vue_type_style_index_0_scoped_17808e78_lang="",_sfc_main$4i={props:{spinning:{type:Boolean,default:!1},wid:{type:[Number,String],default:100},hig:{type:Number,default:32}},data(){return{}},computed:{style(){let i=typeof this.wid,t="";return i==="string"?t=`width:${this.wid}%;height:${this.hig}px`:t=`width:${this.wid}px;height:${this.hig}px`,t}}};var _sfc_render$4i=function(){var t=this,s=t._self._c;return s("div",{staticClass:"skeleton animations",style:t.style},[t._t("default")],2)},_sfc_staticRenderFns$4i=[],__component__$4i=chartbi.normalizeComponent(_sfc_main$4i,_sfc_render$4i,_sfc_staticRenderFns$4i,!1,null,"17808e78",null,null);const Skeleton=__component__$4i.exports,main_vue_vue_type_style_index_0_scoped_a7a85ae8_lang="",_sfc_main$4h={name:"GdViewLoading",props:{spinning:{type:Boolean,default:!0},openMode:{type:[String,Number],default:1},height:{type:Number,default:100}},computed:{style(){return`height:${this.height}px`}},components:{Skeleton},data(){return{}}};var _sfc_render$4h=function(){var t=this,s=t._self._c;return s("div",{staticClass:"spinningl",style:t.style},[t.openMode!==3&&t.spinning?s("div",[s("div",{staticClass:"btn"},[s("Skeleton",{attrs:{wid:170}}),s("Skeleton",{attrs:{wid:400}})],1),s("Skeleton",{attrs:{wid:"100",hig:24}}),t._l(22,function(a){return[s("div",{staticClass:"listt"},t._l(5,function(l){return s("Skeleton",{key:l,attrs:{wid:"18",hig:24}})}),1),s("Skeleton",{attrs:{wid:a%2==1?"66":"100",hig:24}})]})],2):t._e(),t.openMode===3&&t.spinning?s("div",[s("div",{staticClass:"btnr"},[s("Skeleton",{attrs:{wid:246,hig:22}})],1),s("div",{staticClass:"listt listts"},t._l(6,function(a){return s("Skeleton",{key:a,attrs:{wid:"15",hig:20}})}),1),t._l(4,function(a){return s("Skeleton",{key:a,attrs:{wid:a%2==1?"66":"100",hig:20}})})],2):t._e()])},_sfc_staticRenderFns$4h=[],__component__$4h=chartbi.normalizeComponent(_sfc_main$4h,_sfc_render$4h,_sfc_staticRenderFns$4h,!1,null,"a7a85ae8",null,null);const GDpackage$g=__component__$4h.exports;GDpackage$g.install=function(i){i.component(GDpackage$g.name,GDpackage$g)};const types={403:{img:"data:image/png;base64,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",title:"403",desc:"\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762",transKey:"gd.exception.err403"},404:{img:"data:image/png;base64,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",title:"404",desc:"\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728\u6216\u4ECD\u5728\u5F00\u53D1\u4E2D",transKey:"gd.exception.err404"},500:{img:"data:image/png;base64,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",title:"500",desc:"\u62B1\u6B49\uFF0C\u670D\u52A1\u5668\u51FA\u9519\u4E86",transKey:"gd.exception.err500"}},main_vue_vue_type_style_index_0_lang$2="",_sfc_main$4g={name:"GdExceptionPage",props:{type:{type:String,default:"404"}},data(){return{config:types}},computed:{},methods:{handleToHome(){this.$router.push({name:"Console"})}}};var _sfc_render$4g=function(){var t=this,s=t._self._c;return s("div",{staticClass:"exception"},[s("div",{staticClass:"img-block"},[s("div",{staticClass:"img-ele",style:{backgroundImage:`url(${t.config[t.type].img})`}})]),s("div",{staticClass:"content"},[s("h1",[t._v(t._s(t.config[t.type].title))]),s("div",{staticClass:"desc"},[t._v(" "+t._s(t.$i18nt(`${t.config[t.type].transKey}`,t.config[t.type].desc))+" ")]),s("div",{staticClass:"actions"},[s("el-button",{attrs:{type:"primary"},on:{click:t.handleToHome}},[t._v(t._s(t.$i18nt("gd.exception.homepage","\u8FD4\u56DE\u9996\u9875")))])],1)])])},_sfc_staticRenderFns$4g=[],__component__$4g=chartbi.normalizeComponent(_sfc_main$4g,_sfc_render$4g,_sfc_staticRenderFns$4g,!1,null,null,null,null);const GDpackage$f=__component__$4g.exports;GDpackage$f.install=function(i){i.component(GDpackage$f.name,GDpackage$f)};const main_vue_vue_type_style_index_0_scoped_47466ffb_lang="",_sfc_main$4f={name:"GdUploadFile",props:{record:{type:Object,required:!0},model:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},limit:{type:Number,default:1},prop:{type:String,default:""},develop:{type:[Number,String],default:1},accept:{type:String,default:""},size:{type:Number,default:100}},data(){return{fileUploadList:[],fileListFile:[],uid:"",imgList:[],currentImg:"",leg:0,fileName:"",uidUploading:[]}},computed:{isDrag(){return this.options.drag!==void 0?this.options.drag:!1},download(){return this.options.download!==void 0?this.options.download:!1},disableds(){return this.limit<=this.leg?!0:this.disabled},fileAccept(){return this.accept?this.accept:chartbi.getFileAccept("file")},fileSize(){return this.size?this.size:chartbi.getFileSize("file")},options(){return this.record.options}},methods:{clearFiles(){this.fileListFile=[],this.uidUploading=[],this.record.uidUploading=[],this.leg=0,this.record.sourceData=JSON.stringify([]),this.model[this.prop]="",this.$refs.uploadFile&&this.$refs.uploadFile.clearFiles(),this.handleChange()},onExceed(){this.$message.error(this.$i18nt("gd.view.fileLimitTip","\u5DF2\u8D85\u8FC7\u6700\u5927\u4E0A\u4F20\u6570\u91CF"))},beforeUpload(i){return!(this.limit<=this.leg)},setDataMore({val:i,data:t,items:s,fkData:a}){this.setData(i)},isJSON(i){try{JSON.parse(i)}catch{return!1}return!0},setData(i){if(i===""||i===null){this.clearFiles();return}const t=this.isJSON(i)?JSON.parse(i):[];let s=[],a=[];t.forEach(l=>{const n=l.id?l.id:l.fileId;s.push({uid:n,name:l.name?l.name:l.fileoriginname,fileoriginname:l.name?l.name:l.fileoriginname,id:n,fileId:n,url:l.url?l.url:l.filepath}),n&&a.push(n)}),this.fileListFile=[...s],this.fileListFile.length===0&&this.clearFiles(),this.leg=s.length,this.record.sourceData=JSON.stringify(s),this.model[this.prop]=a.join(",")},previewFile(i){this.fileName=i.fileoriginname||i.name;let t="",s="";i.response&&i.response.fileoriginname?(t=i.response.fileoriginname,s=i.response.id):(t=i.name,s=i.fileId);const a=t.substr(t.lastIndexOf(".")+1).toLowerCase();["gif","jpeg","png","jpg","gif","bmp","JPG","PNG"].includes(a)?this.imgPreview(s):["mp4","webm","mp3","wav","docx","excel","pdf","xlsx","pptx","doc","dot","txt"].includes(a)&&this.$refs.filePreview.open(Object.assign(i,{fileId:i.response&&i.response.fileoriginname?i.response.id:i.fileId}))},imgPreview(i){messages.sysFileInfoPreview({id:i}).then(t=>{const s=window.URL.createObjectURL(new Blob([t]));this.imgList=[s],this.currentImg=s,this.$refs.imgPreview.open()})},removeFileManual(i){const t=this.fileUploadList.filter(s=>(s.response?s.response.id:s.id)===i)[0];t&&this.$refs.uploadFile.handleRemove&&this.$refs.uploadFile.handleRemove(t)},removeFile(i,t){let s=[],a=[];t.forEach(l=>{l.response&&l.response.id?(s.push(l.response.id),a.push({uid:l.response.id,name:l.response.fileoriginname,fileoriginname:l.response.fileoriginname,id:l.response.id,fileId:l.response.id,url:l.response.url})):(s.push(l.fileId),a.push({uid:l.id?l.id:l.fileId,name:l.name?l.name:l.fileoriginname,fileoriginname:l.name?l.name:l.fileoriginname,id:l.fileId?l.fileId:l.id,fileId:l.fileId?l.fileId:l.id,url:l.url?l.url:l.filepath}))}),this.uidUploading=this.uidUploading.filter(l=>l!==i.uid),this.record.uidUploading=this.uidUploading,this.record.sourceData=JSON.stringify(a),this.model[this.prop]=s.join(","),this.leg=s.length,this.handleChange()},uploadFile(i){if(!this.fileAccept.includes(i.file.type)||i.file.type===""){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),i.onError();return}if(!(i.file.size/1024/1024<this.fileSize)){this.$message.error(this.$i18nt("gd.view.fileSizeTip","\u4E0A\u4F20\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7")+this.fileSize+"(MB)"),i.onError();return}this.$emit("uploadFile",i);const a=new FormData;a.append(this.options.fileName,i.file),this.uidUploading.push(i.file.uid),this.record.uidUploading=this.uidUploading,messages.sysFileInfoUploadShop(a,{"Content-Type":i.file.type}).then(l=>{l.code===200?i.onSuccess(l.data):(this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+l.message),i.onError())}).catch(l=>{i.onError(l)})},successFile(i,t,s){this.uidUploading=this.uidUploading.filter(r=>r!==t.uid),this.record.uidUploading=this.uidUploading;const a=this.model[this.prop],n=(a?a.split(","):[]).concat([i.id]);this.model[this.prop]=n.join(",");let o=[];s.forEach(r=>{r.response&&r.response.id?o.push({ouid:r.uid,uid:r.response.id,name:r.response.fileoriginname,fileoriginname:r.response.fileoriginname,id:r.response.id,fileId:r.response.id,url:r.response.url}):o.push({uid:r.id?r.id:r.fileId,name:r.name?r.name:r.fileoriginname,fileoriginname:r.name?r.name:r.fileoriginname,id:r.fileId?r.fileId:r.id,fileId:r.fileId?r.fileId:r.id,url:r.url?r.url:r.filepath,ouid:r.ouid?r.ouid:r.uid})}),this.leg=n.length,this.record.sourceData=JSON.stringify(o),this.fileUploadList.push(t),this.handleChange()},handleChange(){this.$emit("change",this.record)}},mounted(){this.develop!==1&&this.$nextTick(()=>{setTimeout(()=>{this.record.setData===void 0&&(this.record.setData=this.setDataMore),this.record.clearFiles===void 0&&(this.record.clearFiles=this.clearFiles)},20)})}};var _sfc_render$4f=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-upload-file"},[t.isDrag?s("el-upload",{ref:"uploadFile",attrs:{action:"","on-preview":t.previewFile,"on-remove":t.removeFile,multiple:"",limit:t.limit,"http-request":t.uploadFile,"file-list":t.fileListFile,"on-success":t.successFile,disabled:t.disabled,"before-upload":t.beforeUpload,"on-exceed":t.onExceed,drag:t.isDrag}},[s("div",{staticClass:"drag-kuang"},[s("i",{staticClass:"el-icon-upload",staticStyle:{margin:"0","font-size":"50px"}}),s("el-button",{staticClass:"btn-drag",attrs:{type:"text",disabled:t.disableds}},[s("span",{class:t.disableds?"":"active-color"},[t._v(t._s(t.$i18nt("gd.btn.uploadDrag","\u62D6\u62FD\u6587\u4EF6\u6216\u70B9\u51FB\u4E0A\u4F20")))])])],1)]):s("el-upload",{ref:"uploadFile",attrs:{action:"","on-preview":t.previewFile,"on-remove":t.removeFile,multiple:"",limit:t.limit,"http-request":t.uploadFile,"file-list":t.fileListFile,"on-success":t.successFile,accept:t.fileAccept,disabled:t.disabled,"before-upload":t.beforeUpload,"on-exceed":t.onExceed}},[t.isDrag?t._e():s("div",{staticClass:"upload-file-click"},[s("el-button",{attrs:{size:"mini",type:t.disableds?"info":"primary",disabled:t.disableds}},[s("i",{staticClass:"gd-icons gd-icon-shangchuan"}),t._v(" "+t._s(t.$i18nt("gd.btn.upload","\u4E0A\u4F20"))+" ")])],1)]),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:t.imgList.length>0,imgList:t.imgList,currentImg:t.currentImg,download:t.download,fileName:t.fileName}}),s("gd-file-preview",{ref:"filePreview",attrs:{options:t.options}})],1)},_sfc_staticRenderFns$4f=[],__component__$4f=chartbi.normalizeComponent(_sfc_main$4f,_sfc_render$4f,_sfc_staticRenderFns$4f,!1,null,"47466ffb",null,null);const uploadFile=__component__$4f.exports;uploadFile.install=function(i){i.component(uploadFile.name,uploadFile)};const main_vue_vue_type_style_index_0_scoped_e6b57c8a_lang="",_sfc_main$4e={name:"GdUploadImg",props:{record:{type:Object,default:()=>({})},model:{type:Object,required:!0},limit:{type:Number,default:1},disabled:{type:Boolean,default:!1},prop:{type:String,default:""},develop:{type:[Number,String],default:1},accept:{type:String,default:""},size:{type:Number,default:100}},data(){return{fileList:[],imgList:[],currentImg:"",uidUploading:[]}},computed:{fileAccept(){return this.accept?this.accept:chartbi.getFileAccept("image")},fileSize(){return this.size?this.size:chartbi.getFileSize("image")}},methods:{clearFiles(){this.fileListFile=[],this.uidUploading=[],this.record.uidUploading=[],this.model[this.prop]="",this.$refs.uploadFile&&this.$refs.uploadFile.clearFiles(),this.handleChange()},setDataMore({val:i,data:t,items:s,fkData:a}){this.setData(i)},setData(i){const t=i?i.split(","):[];if(t.length===0){this.clearFiles();return}let s=[];t.forEach(a=>{let l=this.getFileBlob(a).then(n=>n);s.push(l)}),Promise.all(s).then(a=>{let l=[];a.forEach(n=>{const o=this.fileList.filter(r=>r.fileId===n.fileId)[0];l.push({uid:o?o.uid:n.uuid,url:n.url,filePath:n.url,fileId:n.fileId})}),this.fileList=[...l]})},getFileBlob(i){return i.includes("http")?new Promise(s=>{s({url:i,fileId:"",uuid:chartbi.uuid(8)})}):messages.sysFileInfoPreview({id:i}).then(s=>({url:window.URL.createObjectURL(new Blob([s])),fileId:i,uuid:i}))},successImg(i,t,s){this.uidUploading=this.uidUploading.filter(l=>l!==t.uid),this.record.uidUploading=this.uidUploading;let a=[];s.forEach(l=>{l.response&&l.response.id?a.push({uid:l.response.id,name:l.response.fileoriginname,fileoriginname:l.response.fileoriginname,id:l.response.id,fileId:l.response.id,url:l.response.url}):a.push({uid:l.id?l.id:l.fileId,name:l.name?l.name:l.fileoriginname,fileoriginname:l.name?l.name:l.fileoriginname,id:l.fileId?l.fileId:l.id,fileId:l.fileId?l.fileId:l.id,url:l.url?l.url:l.filepath})}),this.fileList=[...s],this.handleChange()},uploadImgs(i){if(!this.fileAccept.split(",").includes(i.file.type)){this.$message.error(this.$i18nt("gd.view.fileAcceptTip","\u6587\u4EF6\u7C7B\u578B\u4E0D\u652F\u6301\uFF01")),i.onError();return}if(!(i.file.size/1024/1024<this.fileSize)){this.$message.error(this.$i18nt("gd.view.fileSizeTip","\u4E0A\u4F20\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7")+this.fileSize+"(MB)"),i.onError();return}const a=new FormData;a.append("file",i.file),this.uidUploading.push(i.file.uid),this.record.uidUploading=this.uidUploading,messages.sysFileInfoUploadShop(a).then(l=>{if(l.code===200){const n=l.data.id,r=(this.model[this.prop]?this.model[this.prop].split(","):[]).concat([n]);this.model[this.prop]=r.join(","),i.onSuccess(l.data)}else this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25:")+l.message),i.onError()}).catch(l=>{i.onError(l)})},previewImg(i){this.imgList=[];let t=[];this.fileList.forEach(s=>{t.push(s.url)}),this.imgList=t,this.currentImg=i.url,this.$refs.imgPreview.open()},removeImg(i,t){let s=[],a=[];t.forEach(l=>{l.response&&l.response.id?(s.push(l.response.id),a.push({uid:l.response.id,name:l.response.fileoriginname,fileoriginname:l.response.fileoriginname,id:l.response.id,fileId:l.response.id,url:l.response.url})):(s.push(l.fileId?l.fileId:l.id),a.push({uid:l.id?l.id:l.fileId,name:l.name?l.name:l.fileoriginname,fileoriginname:l.name?l.name:l.fileoriginname,id:l.fileId?l.fileId:l.id,fileId:l.fileId?l.fileId:l.id,url:l.url?l.url:l.filepath}))}),this.uidUploading=this.uidUploading.filter(l=>l!==i.uid),this.record.uidUploading=this.uidUploading,this.fileList=[...t],this.model[this.prop]=s.join(","),this.handleChange()},handleChange(){this.$emit("change",this.record)}},mounted(){this.develop!==1&&this.$nextTick(()=>{setTimeout(()=>{this.record.setData===void 0&&(this.record.setData=this.setDataMore),this.record.clearFiles===void 0&&(this.record.clearFiles=this.clearFiles)},20)})}};var _sfc_render$4e=function(){var t=this,s=t._self._c;return s("div",[s("el-upload",{staticClass:"upload-demo",class:t.fileList.length>=t.limit?"hide-demo":"",attrs:{action:"","list-type":"picture-card","on-preview":t.previewImg,"on-remove":t.removeImg,limit:t.limit,"http-request":t.uploadImgs,"on-success":t.successImg,"file-list":t.fileList,disabled:t.disabled,accept:t.fileAccept}},[s("i",{staticClass:"el-icon-plus"})]),s("gd-img-preview",{ref:"imgPreview",attrs:{filePreviewShow:t.imgList.length>0,imgList:t.imgList,currentImg:t.currentImg}})],1)},_sfc_staticRenderFns$4e=[],__component__$4e=chartbi.normalizeComponent(_sfc_main$4e,_sfc_render$4e,_sfc_staticRenderFns$4e,!1,null,"e6b57c8a",null,null);const uploadImg=__component__$4e.exports;uploadImg.install=function(i){i.component(uploadImg.name,uploadImg)};var calendar$1={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,92821,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,37600,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["\u7532","\u4E59","\u4E19","\u4E01","\u620A","\u5DF1","\u5E9A","\u8F9B","\u58EC","\u7678"],Zhi:["\u5B50","\u4E11","\u5BC5","\u536F","\u8FB0","\u5DF3","\u5348","\u672A","\u7533","\u9149","\u620C","\u4EA5"],Animals:["\u9F20","\u725B","\u864E","\u5154","\u9F99","\u86C7","\u9A6C","\u7F8A","\u7334","\u9E21","\u72D7","\u732A"],festival:{"1-1":{title:"\u5143\u65E6"},"2-14":{title:"\u60C5\u4EBA\u8282"},"3-8":{title:"\u5987\u5973\u8282"},"3-12":{title:"\u690D\u6811\u8282"},"4-1":{title:"\u611A\u4EBA\u8282"},"4-5":{title:"\u6E05\u660E\u8282"},"5-1":{title:"\u52B3\u52A8\u8282"},"5-4":{title:"\u9752\u5E74\u8282"},"5-12":{title:"\u62A4\u58EB\u8282"},"6-1":{title:"\u513F\u7AE5\u8282"},"7-1":{title:"\u5EFA\u515A\u8282"},"8-1":{title:"\u5EFA\u519B\u8282"},"9-10":{title:"\u6559\u5E08\u8282"},"10-1":{title:"\u56FD\u5E86\u8282"},"12-24":{title:"\u5E73\u5B89\u591C"},"12-25":{title:"\u5723\u8BDE\u8282"}},lfestival:{"12-30":{title:"\u9664\u5915"},"1-1":{title:"\u6625\u8282"},"1-15":{title:"\u5143\u5BB5\u8282"},"2-2":{title:"\u9F99\u62AC\u5934"},"5-5":{title:"\u7AEF\u5348\u8282"},"7-7":{title:"\u4E03\u5915\u8282"},"7-15":{title:"\u4E2D\u5143\u8282"},"8-15":{title:"\u4E2D\u79CB\u8282"},"9-9":{title:"\u91CD\u9633\u8282"},"10-1":{title:"\u5BD2\u8863\u8282"},"10-15":{title:"\u4E0B\u5143\u8282"},"12-8":{title:"\u814A\u516B\u8282"},"12-23":{title:"\u5317\u65B9\u5C0F\u5E74"},"12-24":{title:"\u5357\u65B9\u5C0F\u5E74"}},getFestival(){return this.festival},getLunarFestival(){return this.lfestival},setFestival(i={}){this.festival=i},setLunarFestival(i={}){this.lfestival=i},solarTerm:["\u5C0F\u5BD2","\u5927\u5BD2","\u7ACB\u6625","\u96E8\u6C34","\u60CA\u86F0","\u6625\u5206","\u6E05\u660E","\u8C37\u96E8","\u7ACB\u590F","\u5C0F\u6EE1","\u8292\u79CD","\u590F\u81F3","\u5C0F\u6691","\u5927\u6691","\u7ACB\u79CB","\u5904\u6691","\u767D\u9732","\u79CB\u5206","\u5BD2\u9732","\u971C\u964D","\u7ACB\u51AC","\u5C0F\u96EA","\u5927\u96EA","\u51AC\u81F3"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"],nStr2:["\u521D","\u5341","\u5EFF","\u5345"],nStr3:["\u6B63","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u51AC","\u814A"],lYearDays:function(i){var t,s=348;for(t=32768;t>8;t>>=1)s+=this.lunarInfo[i-1900]&t?1:0;return s+this.leapDays(i)},leapMonth:function(i){return this.lunarInfo[i-1900]&15},leapDays:function(i){return this.leapMonth(i)?this.lunarInfo[i-1900]&65536?30:29:0},monthDays:function(i,t){return t>12||t<1?-1:this.lunarInfo[i-1900]&65536>>t?30:29},solarDays:function(i,t){if(t>12||t<1)return-1;var s=t-1;return s==1?i%4==0&&i%100!=0||i%400==0?29:28:this.solarMonth[s]},toGanZhiYear:function(i){var t=(i-3)%10,s=(i-3)%12;return t==0&&(t=10),s==0&&(s=12),this.Gan[t-1]+this.Zhi[s-1]},toAstro:function(i,t){var s="\u9B54\u7FAF\u6C34\u74F6\u53CC\u9C7C\u767D\u7F8A\u91D1\u725B\u53CC\u5B50\u5DE8\u87F9\u72EE\u5B50\u5904\u5973\u5929\u79E4\u5929\u874E\u5C04\u624B\u9B54\u7FAF",a=[20,19,21,21,21,22,23,23,23,23,22,22];return s.substr(i*2-(t<a[i-1]?2:0),2)+"\u5EA7"},toGanZhi:function(i){return this.Gan[i%10]+this.Zhi[i%12]},getTerm:function(i,t){if(i<1900||i>2100||t<1||t>24)return-1;var s=this.sTermInfo[i-1900],a=[parseInt("0x"+s.substr(0,5)).toString(),parseInt("0x"+s.substr(5,5)).toString(),parseInt("0x"+s.substr(10,5)).toString(),parseInt("0x"+s.substr(15,5)).toString(),parseInt("0x"+s.substr(20,5)).toString(),parseInt("0x"+s.substr(25,5)).toString()],l=[a[0].substr(0,1),a[0].substr(1,2),a[0].substr(3,1),a[0].substr(4,2),a[1].substr(0,1),a[1].substr(1,2),a[1].substr(3,1),a[1].substr(4,2),a[2].substr(0,1),a[2].substr(1,2),a[2].substr(3,1),a[2].substr(4,2),a[3].substr(0,1),a[3].substr(1,2),a[3].substr(3,1),a[3].substr(4,2),a[4].substr(0,1),a[4].substr(1,2),a[4].substr(3,1),a[4].substr(4,2),a[5].substr(0,1),a[5].substr(1,2),a[5].substr(3,1),a[5].substr(4,2)];return parseInt(l[t-1])},toChinaMonth:function(i){if(i>12||i<1)return-1;var t=this.nStr3[i-1];return t+="\u6708",t},toChinaDay:function(i){var t;switch(i){case 10:t="\u521D\u5341";break;case 20:t="\u4E8C\u5341";break;case 30:t="\u4E09\u5341";break;default:t=this.nStr2[Math.floor(i/10)],t+=this.nStr1[i%10]}return t},getAnimal:function(i){return this.Animals[(i-4)%12]},solar2lunar:function(o,r,d){if(o=parseInt(o),r=parseInt(r),d=parseInt(d),o<1900||o>2100||o==1900&&r==1&&d<31)return-1;if(o)var a=new Date(o,parseInt(r)-1,d);else var a=new Date;var l,m=0,n=0,o=a.getFullYear(),r=a.getMonth()+1,d=a.getDate(),u=(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())-Date.UTC(1900,0,31))/864e5;for(l=1900;l<2101&&u>0;l++)n=this.lYearDays(l),u-=n;u<0&&(u+=n,l--);var p=new Date;p.getFullYear()==o&&p.getMonth()+1==r&&p.getDate()==d;var h=a.getDay();this.nStr1[h],h==0&&(h=7);var f=l,m=this.leapMonth(l),y=!1;for(l=1;l<13&&u>0;l++)m>0&&l==m+1&&y==!1?(--l,y=!0,n=this.leapDays(f)):n=this.monthDays(f,l),y==!0&&l==m+1&&(y=!1),u-=n;u==0&&m>0&&l==m+1&&(y?y=!1:(y=!0,--l)),u<0&&(u+=n,--l);var g=l,_=u+1,v=r-1,C=this.toGanZhiYear(f),$=this.getTerm(o,r*2-1),k=this.getTerm(o,r*2),T=this.toGanZhi((o-1900)*12+r+11);d>=$&&(T=this.toGanZhi((o-1900)*12+r+12));var N=null;$==d&&(N=this.solarTerm[r*2-2]),k==d&&(N=this.solarTerm[r*2-1]);var A=Date.UTC(o,v,1,0,0,0,0)/864e5+25567+10,O=this.toGanZhi(A+d-1),I=this.toAstro(r,d),P=this.festival,U=this.lfestival,L=r+"-"+d,R=g+"-"+_;return{festival:P[L]?P[L].title:null,lunarFestival:U[R]?U[R].title:null,lYear:f,lMonth:g,lDay:_,Animal:this.getAnimal(f),IMonthCn:(y?"\u95F0":"")+this.toChinaMonth(g),IDayCn:this.toChinaDay(_),gzYear:C,gzMonth:T,gzDay:O,Term:N,astro:I}},lunar2solar:function(i,t,s,l){i=parseInt(i),t=parseInt(t),s=parseInt(s);var l=!!l,n=this.leapMonth(i);if(this.leapDays(i),l&&n!=t||i==2100&&t==12&&s>1||i==1900&&t==1&&s<31)return-1;var o=this.monthDays(i,t),r=o;if(l&&(r=this.leapDays(i,t)),i<1900||i>2100||s>r)return-1;for(var d=0,u=1900;u<i;u++)d+=this.lYearDays(u);for(var p=0,h=!1,u=1;u<t;u++)p=this.leapMonth(i),h||p<=u&&p>0&&(d+=this.leapDays(i),h=!0),d+=this.monthDays(i,u);l&&(d+=o);var f=Date.UTC(1900,1,30,0,0,0),m=new Date((d+s-31)*864e5+f),y=m.getUTCFullYear(),g=m.getUTCMonth()+1,_=m.getUTCDate();return this.solar2lunar(y,g,_)}};const main_vue_vue_type_style_index_0_lang$1="",_sfc_main$4d={name:"GdLuncCalendar",props:{showLunar:{type:Boolean,default:!1},showMonthBg:{type:Boolean,default:!0},showChangeBtn:{type:Boolean,default:!0},firstDayOfWeek:{type:String,default:"sunday"},weekType:{type:String,default:""},weekend:{type:Boolean,default:!0},showShrink:{type:Boolean,default:!1},shrinkState:{type:String,default:"month"},signList:{type:Array,default(){return[]}},checkedDate:{type:Object,default(){return{}}},height:{type:String,default:"100"},develop:{type:[Number,String],default:1}},data(){return{weekArr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],today:{},selDate:{},allMonthList:[],tranIndex:1,allWeekList:[],tranCurrent:1,tranDuration:300,signArr:this.signList,showToday:!1,shrinkType:!1,deterChange:!0,prevMonthList:[],nextMonthList:[],num:1}},computed:{getAllData(){return this.shrinkType?this.allWeekList:this.allMonthList},getMontBg(){let i=this.selDate.month;return this.shrinkType?"":i<10?"0"+i:i},getIsSelDay(){return i=>{let{year:t,month:s,day:a}=this.checkedDate;return t==i.year&&s==i.month&&a==i.day}},getIsToday(){return i=>{let{year:t,month:s,day:a}=this.today;return t==i.year&&s==i.month&&a==i.day}}},created(){},methods:{initDate(i){this.today=i||this.today,this.selDate=JSON.parse(JSON.stringify(this.today));let t=this.getMonthData(this.selDate),s=this.getMonthData(this.getMonthDate(this.selDate,-1)),a=this.getMonthData(this.getMonthDate(this.selDate));this.allMonthList=[s,t,a],this.tranIndex=1,this.shrinkState=="week"&&this.shrinkType&&this.changeShrink()},getMonthData(i){const{year:t,month:s,day:a}=i;let l=new Date(t,s,0).getDate(),n=new Date(t+"/"+s+"/1").getDay();this.firstDayOfWeek=="monday"&&(n=n-1<0?6:n-1);let o=[];for(var r=0;r<42;r++){let d={};if(r<n){let{year:u,month:p}=this.getMonthDate(i,-1),f=new Date(u,p,0).getDate()-n+r+1;d=this.getDayInfo({year:u,month:p,day:f},"prev")}else if(r>l+n-1){let{year:u,month:p}=this.getMonthDate(i),h=r-l-n+1;d=this.getDayInfo({year:u,month:p,day:h},"next")}else{let u=r-n+1;d=this.getDayInfo({year:t,month:s,day:u},"normal")}r%7==0&&o.push(new Array),o[o.length-1].push(d)}return o},getDayInfo(i,t){const{year:s,month:a,day:l}=i;let n=!1;s==this.today.year&&a==this.today.month&&l==this.today.day&&(n=!0);let o=new Date(s+"/"+a+"/"+l).getDay(),r=calendar$1.solar2lunar(s,a,l),d=r.IDayCn=="\u521D\u4E00"?r.IMonthCn+r.IDayCn:r.IDayCn;r.festival?d=r.festival:r.lunarFestival?d=r.lunarFestival:r.Term&&(d=r.Term);let u=["\u5143\u65E6","\u6625\u8282","\u6E05\u660E\u8282","\u52B3\u52A8\u8282","\u7AEF\u5348\u8282","\u4E2D\u79CB\u8282","\u56FD\u5E86\u8282"],p=!1;u.indexOf(d)!=-1&&(p=!0);let h={date:s+"-"+a+"-"+l,year:s,month:a,day:l,week:o,lunar:r,dayLunar:d,isToday:n,isHoliday:p,dayType:t,sign:this.getSignByDate(i)},f=this.getDayClass(h);return h.dayClass=f,h},getDayClass(i){let t="";return i.isToday&&(t+=" is-today"),i.isHoliday&&(t+=" is-holiday"),this.weekend&&(i.week==0||i.week==6)&&(t+=" week-end"),t},getSignByDate(i){const{year:t,month:s,day:a}=i;let l=new Date(t+"/"+s+"/"+a+" 00:00:00").getTime(),n=new Date(t+"/"+s+"/"+a+" 23:59:59").getTime(),o=[];return this.signArr.map(r=>{r.date.replace(/-/g,"/");let d=new Date(r.date).getTime();d>=l&&d<=n&&o.push(r)}),o},getOtherData(i){let t=this.getMonthDate(this.selDate,i=="prev"?-1:1);this.selDate=t;let s=this.getMonthData(this.getMonthDate(t,i=="prev"?-1:1)),a=this.getTranIndex().prevNum;i=="next"&&(a=this.getTranIndex().nextNum),this.allMonthList.splice(a,1,s),this.judgeShowToday(),this.returnMonthChange(i)},getOtherWeekData(i){let t=this.selDate,s=this.getDateByDateAndDay(t,i=="prev"?-7:7);if(t.month!=s.month){let a=this.getTranIndex("month").prevNum;i=="next"&&(a=this.getTranIndex("month").nextNum),this.tranIndex=a,this.getOtherData(i)}this.selDate=s,this.getWeekData(i),this.judgeShowToday()},getWeekData(i){const{prevNum:t,nowNum:s,nextNum:a}=this.getTranIndex("month"),{prevNum:l,nowNum:n,nextNum:o}=this.getTranIndex("week"),{year:r,month:d,day:u}=this.selDate;let p=r+"-"+d+"-"+u,h=this.allMonthList[t],f=this.allMonthList[s],m=this.allMonthList[a];for(let y=0;y<f.length;y++)for(let g=0;g<f[y].length;g++)if(p==f[y][g].date){if(i=="next")this.allWeekList.splice(o,1,[f[y+1]]),y==5&&this.allWeekList.splice(o,1,[m[1]]);else if(this.allWeekList.splice(l,1,[f[y-1]]),y==0){for(let _=h.length-1;_>=0;_--)if(h[_][6].dayType=="normal"){this.allWeekList.splice(l,1,[h[_]]);break}}break}},getAllWeekData(){const{prevNum:i,nowNum:t,nextNum:s}=this.getTranIndex("month"),{year:a,month:l,day:n}=this.selDate;let o=a+"-"+l+"-"+n,r=[[],[],[]],d=this.allMonthList[i],u=this.allMonthList[t],p=this.allMonthList[s];for(let h=0;h<u.length;h++)for(let f=0;f<u[h].length;f++)if(o==u[h][f].date){if(r[0][0]=u[h-1],r[1][0]=u[h],r[2][0]=u[h+1],h==5)r[2][0]=p[1];else if(h==0){for(let m=d.length-1;m>=0;m--)if(d[m][6].dayType=="normal"){r[0][0]=d[m];break}}break}this.allWeekList=r},swiperEndChange(){this.tranDuration=300},swiperChange(i){let t=i.detail.current,s=this.shrinkType?this.tranCurrent:this.tranIndex,a=s-t==-1||s-t==2?"next":"prev";this.shrinkType?(this.tranCurrent=t,t!=s&&this.getOtherWeekData(a)):(this.tranIndex=t,t!=s&&this.getOtherData(a))},changeMonthOrWeek(i){if(this.develop==1||!this.deterChange)return;this.deterChange=!1,setTimeout(a=>{this.deterChange=!0},400),this.tranDuration=300;let t=this.shrinkType?"week":"month",s=this.getTranIndex(t).prevNum;i=="next"&&(s=this.getTranIndex(t).nextNum),this.num=s,t=="week"?(this.tranCurrent=s,this.getOtherWeekData(i)):(this.tranIndex=s,this.getOtherData(i))},changeShrink(i){this.develop!=1&&(i!=null&&(this.shrinkType=!this.shrinkType),this.tranDuration!=0&&(this.tranDuration=0),this.shrinkType&&(this.tranCurrent=1,this.getAllWeekData()),this.returnShrinkChange(),this.judgeShowToday())},goToday(){this.tranDuration!=0&&(this.tranDuration=0);let i=JSON.parse(JSON.stringify(this.checkedDate));if(this.initDate(),this.shrinkType){this.tranCurrent=1,this.getAllWeekData();let t=this.today;i.year!=t.year||i.month!=t.month?this.returnMonthChange("today"):this.returnDayChange(this.today)}else this.returnMonthChange("today"),this.returnDayChange(this.today);this.judgeShowToday()},clickDay(i){this.selDate;let t=JSON.parse(JSON.stringify(this.selDate));if(this.selDate.day=i.day,t.month!=i.month){if(this.shrinkType){this.selDate.year=i.year,this.selDate.month=i.month;let s=this.getTranIndex("month").prevNum;i.dayType=="next"&&(s=this.getTranIndex("month").nextNum),this.tranIndex=s;let a=this.getMonthData(this.getMonthDate(this.selDate,i.dayType=="prev"?-1:1)),l=this.getTranIndex("month").prevNum;i.dayType=="next"&&(l=this.getTranIndex("month").nextNum),this.allMonthList.splice(l,1,a)}else{this.changeMonthOrWeek(i.dayType);return}this.returnMonthChange(i.dayType)}else this.returnDayChange(i)},judgeShowToday(){const{year:i,month:t,day:s}=this.today,{year:a,month:l,day:n}=this.selDate;if(this.shrinkType){let o=new Date(a,l-1,n).getTime(),r=new Date(i,t-1,s).getDay(),d=this.getDateByDateAndDay(this.today,-r+(this.firstDayOfWeek=="monday"?1:0)),u=this.getDateByDateAndDay(this.today,6-r+(this.firstDayOfWeek=="monday"?1:0)),p=new Date(d.year,d.month-1,d.day).getTime(),h=new Date(u.year,u.month-1,u.day).getTime();o>h||o<p?this.showToday=!0:this.showToday=!1}else i!=a||t!=l?this.showToday=!0:this.showToday=!1},setSignList(){this.allMonthList.map(i=>{i.map(t=>{t.map(s=>{s.sign=this.getSignByDate({year:s.year,month:s.month,day:s.day})})})})},addSignList(i){let t=[...i];this.signArr=t,this.setSignList()},deleteSignList(i){let t=this.signArr;t=t.filter(s=>!i.find(a=>a.date==s.date&&a.title==s.title)),this.signArr=t,this.setSignList()},returnDayChange(i){let{year:t,month:s,day:a}=i,n={date:t+"-"+(s<10?"0"+s:s)+"-"+(a<10?"0"+a:a),year:t,month:s,day:a,week:i.week,daySign:i.sign};this.showLunar&&(n.lunar=i.lunar),this.$emit("dayChange",n)},returnMonthChange(i){let t=this.selDate.year+"-"+this.selDate.month+"-"+this.selDate.day,a=this.allMonthList.flat().flat().find(l=>l.date==t);this.$emit("monthChange",{year:a.year,month:a.month,type:i})},returnShrinkChange(){let i=this.shrinkType?"week":"month";this.$emit("shrinkClick",i)},getTranIndex(i="month"){let t=this.tranIndex;i=="week"&&(t=this.tranCurrent);let s=t-1<0?2:t-1,a=t,l=t+1>2?0:t+1;return{prevNum:s,nowNum:a,nextNum:l}},getDateByDateAndDay(i,t){let s=new Date(i.year+"/"+i.month+"/"+i.day).getTime()+t*24*60*60*1e3,a=new Date(s);return{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()}},getMonthDate(i,t=1){let s=i.month+t,a=parseInt(Math.abs(s)/12),l=i.year,n=s;s>12?(l=i.year+a,n=s%12):s<1&&(l=i.year-(a+1),n=s+12*(a+1));let o=new Date(l,n,0).getDate(),r=i.day>o?o:i.day;return{year:l,month:n,day:r}}}};var _sfc_render$4d=function(){var t=this,s=t._self._c;return s("div",{staticClass:"lunc-calendar"},[s("div",{staticClass:"header"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.showChangeBtn,expression:"showChangeBtn"}],staticClass:"head-cao head-left"},[s("div",{staticClass:"gd-icons gd-icon-shangyiyeqianyiye active-color",on:{click:function(a){return t.changeMonthOrWeek("prev")}}})]),t.selDate.year?s("div",{staticClass:"head-month"},[t._v(" "+t._s(t.selDate.year+"\u5E74"+(t.selDate.month<10?"0"+t.selDate.month:t.selDate.month)+"\u6708")+" ")]):s("div",{staticClass:"head-month"},[t._v("--\u5E74--\u6708")]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showChangeBtn,expression:"showChangeBtn"}],staticClass:"head-cao head-caos"},[s("div",{staticClass:"gd-icons gd-icon-xiayiyehouyiye active-color",on:{click:function(a){return t.changeMonthOrWeek("next")}}})]),s("div",{staticClass:"head-setting"},[t._t("icon")],2),s("div",{staticClass:"head-cao head-day"},[s("div",{staticClass:"gd-icon",class:t.shrinkType?"active-color":"",on:{click:function(a){return t.changeShrink(!0)}}},[t._v(" "+t._s(t.$i18nt("gd.page.week","\u5468"))+" ")])]),s("div",{staticClass:"head-cao head-day"},[s("div",{staticClass:"gd-icon",class:t.shrinkType?"":"active-color",on:{click:function(a){return t.changeShrink(!1)}}},[t._v(" "+t._s(t.$i18nt("gd.page.month","\u6708"))+" ")])]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showToday,expression:"showToday"}],staticClass:"head-cao head-day"},[s("div",{staticClass:"gd-icons m-jintian active-color",on:{click:t.goToday}})])]),s("div",{staticClass:"week-area"},t._l(t.weekArr,function(a,l){return s("div",{key:l,staticClass:"week-font"},[t._v(t._s(t.weekType+""+a))])}),0),s("div",{staticClass:"calendar-data",style:{height:t.shrinkType?"56px":"266px"}},t._l(t.getAllData,function(a,l){return s("div",{directives:[{name:"show",rawName:"v-show",value:l==t.num,expression:"i == num"}],key:l,staticClass:"swiper-item swiper-prev-item"},[t.showMonthBg?s("div",{staticClass:"month-bg"},[t._v(t._s(t.getMontBg))]):t._e(),s("div",{staticClass:"month-days",class:t.shrinkType?"item-week":""},t._l(a,function(n,o){return s("div",{key:o,staticClass:"week-days"},t._l(n,function(r,d){return s("div",{key:d,staticClass:"day",on:{click:function(u){return t.clickDay(r)}}},[s("div",{staticClass:"day-info",class:[r.dayClass,t.getIsSelDay(r)?"is-sel":"",r.dayType!="normal"?"un-month":""]},[s("span",{staticClass:"day-solar",class:[t.getIsSelDay(r)?"active-color":"",t.getIsToday(r)?"is-todays active-color":""]},[t._v(t._s(r.day))]),t.showLunar||r.sign&&r.sign.length>0?[r.sign&&r.sign.length>0?s("span",{staticClass:"day-tag"}):t._e(),r.sign&&r.sign.length>0?s("span",{staticClass:"day-sign"},[t._v(" "+t._s(r.sign[0].title)+" ")]):s("span",{staticClass:"day-lunar"},[t._v(t._s(r.dayLunar))])]:t._e()],2)])}),0)}),0)])}),0)])},_sfc_staticRenderFns$4d=[],__component__$4d=chartbi.normalizeComponent(_sfc_main$4d,_sfc_render$4d,_sfc_staticRenderFns$4d,!1,null,null,null,null);const GDpackage$e=__component__$4d.exports;GDpackage$e.install=function(i){i.component(GDpackage$e.name,GDpackage$e)};const main_vue_vue_type_style_index_0_scoped_4e2021c1_lang="",_sfc_main$4c={name:"GdWatermark",props:{text:{type:String,required:!0}},data(){return{}},computed:{getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},...chartbi.mapGetters([])},mounted(){this.addWatermark(this.text)},methods:{addWatermark(i){const t=this.$refs.watermark,s=document.createElement("canvas");s.width=200,s.height=150;const a=window.innerWidth,l=window.innerHeight,n=a/6,o=l/4,r=s.getContext("2d");i.split(`
28
28
  `),s.width/2,s.height/2,r.rotate(-20*Math.PI/180),r.font="14px Arial",r.fillStyle="rgba(200,200,200, .2)",r.textAlign="center",r.textBaseline="middle",r.fillText(i,s.width/2,s.height/2),t.style.backgroundImage=`url(${s.toDataURL("image/png")})`,t.style.pointerEvents="none",t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="100%",t.style.height="100%",t.style.zIndex=99999,t.style.backgroundSize=`${n}px ${o}px`}}};var _sfc_render$4c=function(){var t=this,s=t._self._c;return s("div",{ref:"watermark",staticClass:"watermark",staticStyle:{"background-repeat":"repeat"}})},_sfc_staticRenderFns$4c=[],__component__$4c=chartbi.normalizeComponent(_sfc_main$4c,_sfc_render$4c,_sfc_staticRenderFns$4c,!1,null,"4e2021c1",null,null);const GDpackage$d=__component__$4c.exports;GDpackage$d.install=function(i){i.component(GDpackage$d.name,GDpackage$d)};const view_vue_vue_type_style_index_0_scoped_5b928d29_lang="",_sfc_main$4b={props:{height:{type:Number,default:600},query:{type:Object,default:()=>{}}},data(){return{record:{},openMode:1,viewId:"",tableId:"",formId:"",show:!1,confirmLoading:!1}},computed:{table(){const i=this.tableLists.filter(t=>t.id===this.tableId)[0];return i||{}},getHeight(){return this.height-24},componentItem(){const i=this.$importViewFiles();let t=`../views/main/${this.table.tablename}/index.vue`,s=i[t];return s?s.default:ViewTable$1},...chartbi.mapGetters(["tableLists"])},methods:{init(){this.viewId=this.query.view_id?Number(this.query.view_id):"",this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.tableId!==""&&this.getAllTable().then(i=>{this.record={options:{table:this.table,form:{id:this.formId},view:{id:this.viewId},viewWeights:"1"}},this.$nextTick(()=>{setTimeout(()=>{this.show=!0},0)})})},getAllTable(){return this.tableLists.length>0?new Promise(i=>{i()}):messages.codeGenerateInformationList({busName:""}).then(i=>(i.success&&this.TableLists(i.data),i.data))}}};var _sfc_render$4b=function(){var t=this,s=t._self._c;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px"}},[t.show?s(t.componentItem,{ref:"lookuptable",tag:"component",attrs:{record:t.record,height:t.getHeight,develop:2,openMode:t.openMode}}):t._e()],1)},_sfc_staticRenderFns$4b=[],__component__$4b=chartbi.normalizeComponent(_sfc_main$4b,_sfc_render$4b,_sfc_staticRenderFns$4b,!1,null,"5b928d29",null,null);const ViewItem=__component__$4b.exports,form_vue_vue_type_style_index_0_scoped_b8e777c7_lang="",_sfc_main$4a={props:{query:{type:Object,default:()=>{}},modeType:{type:String,default:"component"}},data(){return{record:{},openMode:1,tableId:"",formId:"",show:!1,formData:{},fieldData:{},sysViewButtons:[],confirmLoading:!1}},computed:{table(){const i=this.tableLists.filter(t=>t.id===this.tableId)[0];return i||{}},getHeight(){return this.height-24},componentItem(){const i=this.$importViewFiles();let t=`../views/main/${this.table.tablename}/editForm.vue`,s=i[t];return s?s.default:GDpackage$k},...chartbi.mapGetters(["tableLists"])},methods:{beaseLoadComplete(i){console.log(this.query),this.$emit("beaseLoadComplete");const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const s=decodeURIComponent(t),a=s.indexOf("?")===-1?s:s.slice(0,s.indexOf("?")),l=chartbi.getParamsQuery(s);messages.post(a,l)},onChangeBtn(i){this.sysViewButtons=i,this.$emit("onChangeBtn",i)},init(){this.confirmLoading=!0,this.tableId=this.query.table_id?Number(this.query.table_id):"",this.formId=this.query.form_id?Number(this.query.form_id):"",this.id=this.query.id?Number(this.query.id):"",this.tableId!==""&&Promise.all([this.sysFormDetails(),this.getLoadData(),this.getAllTable()]).then(i=>{this.record={options:{table:this.table,form:{id:this.formId}}},this.show=!0,this.confirmLoading=!1,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.setFormRecord(this.formData).then(()=>{this.$refs.editForm.open({id:this.id,title:""})})},0)})})},getLoadData(){return messages.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(i=>(this.fieldData=i.data,i.data))},sysFormDetails(){return messages.baseTableData({tableId:this.tableId}).then(i=>{if(i.code===200){const t=i.data.formlist.filter(s=>s.id===this.formId)[0];console.log(t),this.formData=t}return i.data})},getAllTable(){return this.tableLists.length>0?new Promise(i=>{i()}):messages.codeGenerateInformationList({busName:""}).then(i=>(i.success&&this.TableLists(i.data),i.data))},doEvent(i){this.$refs.editForm&&this.$refs.editForm.doEvent(i)},closed(){console.log("\u5173\u95ED"),this.$emit("closed")},...chartbi.mapActions(["TableLists"])}};var _sfc_render$4a=function(){var t=this,s=t._self._c;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"300px",height:"100%"}},[t.show?s(t.componentItem,{ref:"editForm",tag:"component",attrs:{recordRelation:t.record,openMode:t.openMode,tableData:t.table,fieldData:t.fieldData,modeType:t.modeType},on:{onChangeBtn:t.onChangeBtn,closed:t.closed,ok:function(a){return t.$emit("ok")},onLoadCompleted:t.beaseLoadComplete}}):t._e()],1)},_sfc_staticRenderFns$4a=[],__component__$4a=chartbi.normalizeComponent(_sfc_main$4a,_sfc_render$4a,_sfc_staticRenderFns$4a,!1,null,"b8e777c7",null,null);const FormItem=__component__$4a.exports,details_vue_vue_type_style_index_0_scoped_2e905682_lang="",_sfc_main$49={props:{query:{type:Object,default:()=>{}}},data(){return{dictCode:"messagetype",messageType:"",componentItem:""}},computed:{componentForm(){return this.componentItem==="GdNoticeDetails"?system_notice.detailForm:""}},methods:{onLoadCompleted(){const i=this.query.complete_request?this.query.complete_request:"";if(i==="")return;const t=decodeURIComponent(i),s=t.indexOf("?")===-1?t:t.slice(0,t.indexOf("?")),a=chartbi.getParamsQuery(t);messages.post(s,a)},init(){if(this.messageType=this.query.message_type?this.query.message_type:"",this.messageType==="")return;const t=this.getDictionary(this.dictCode).filter(a=>a.code===this.messageType)[0];if(!t)return;const s=this.query.id?this.query.id:"";this.componentItem=t.remark,this.$nextTick(()=>{setTimeout(()=>{this.$refs.editForm&&this.$refs.editForm.open({id:s})},0)})},getDictionary(i){return this.$options.filters.dictData(i)}}};var _sfc_render$49=function(){var t=this,s=t._self._c;return t.componentForm?s(t.componentForm,{ref:"editForm",tag:"component",attrs:{modeType:"component"},on:{onLoadCompleted:t.onLoadCompleted}}):t._e()},_sfc_staticRenderFns$49=[],__component__$49=chartbi.normalizeComponent(_sfc_main$49,_sfc_render$49,_sfc_staticRenderFns$49,!1,null,"2e905682",null,null);const DetailsItem=__component__$49.exports,popupDetails_vue_vue_type_style_index_0_scoped_c9c69f5c_lang="",_sfc_main$48={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{modeType:"",popupMode:"drawer",fullscreen:!1,confirmLoading:!1,visible:!1,width:"80%",iframeUri:"",sysViewButtons:[]}},components:{ViewItem,FormItem,DetailsItem},computed:{urls(){return this.iframeUri.indexOf("?")===-1?this.iframeUri:this.iframeUri.slice(0,this.iframeUri.indexOf("?"))},title(){return""},hig(){return`${this.height-24}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},height(){return this.popupMode==="drawer"?this.screenHeight-48:this.fullscreen?this.screenHeight-72:this.screenHeight-230},...chartbi.mapGetters(["formMode","screenHeight"])},methods:{onChangeBtn(i){this.sysViewButtons=i},init(){const i=this.query.popup_wid?this.query.popup_wid:"80%",t=this.query.popup_fullscreen?this.query.popup_fullscreen:"";this.width=isNaN(Number(i))?i:Number(i)+"px",this.fullscreen=t==="true";let s=this.query.popup_type?this.query.popup_type:"drawer";s==="followSystem"&&(s=this.formMode),this.popupMode=s,this.modeType=this.query.mode_type?this.query.mode_type:"form";let a=this.query.redirect_uri?decodeURIComponent(this.query.redirect_uri):"";this.iframeUri=a,console.log(this.iframeUri),this.visible=!0,this.query.open_type&&this.query.open_type!=="popup"&&(this.modeType=this.query.open_type),this.modeType==="iframe"&&window.addEventListener("message",this.monitorIframe),this.$nextTick(()=>{const l=`${this.modeType}Item`;this.$refs[l]&&this.$refs[l].init()})},toggleFullscreen(){this.fullscreen=!this.fullscreen},closed(){this.modeType="",this.fullscreen=!1,this.visible=!1,this.$emit("closed")},doEvent(i){if(this.modeType==="iframe"){document.getElementById("gd-view-iframe").contentWindow.postMessage({data:JSON.stringify(i),eventType:"btn-click"},this.urls);return}const t=`${this.modeType}Item`;this.$refs[t]&&this.$refs[t].doEvent(i)},monitorIframe(i){if(i.data.eventType==="form-btn"){this.onChangeBtn(JSON.parse(i.data.data));return}if(i.data.eventType==="load-complete"){this.onChangeBtn(JSON.parse(i.data.data));return}i.data.eventType==="close-drawer"&&this.closed()},beaseLoadComplete(i){console.log(this.query);const t=this.query.complete_request?this.query.complete_request:"";if(t==="")return;const s=decodeURIComponent(t),a=s.indexOf("?")===-1?s:s.slice(0,s.indexOf("?")),l=getParamsQuery(s);messages.post(a,l)}},beforeDestory(){window.removeEventListener("message",this.monitorIframe)}};var _sfc_render$48=function(){var t=this,s=t._self._c;return s("div",[t.popupMode==="dialog"?s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":t.appendToBody,"modal-append-to-body":t.modalAppendToBody,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:t.title,fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen,close:t.closed},slot:"title"}),t.visible?s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticStyle:{"min-height":"30vh"}},[t.modeType==="view"?s("ViewItem",{ref:"viewItem",attrs:{query:t.query,height:t.height}}):t.modeType==="form"?s("FormItem",{ref:"formItem",attrs:{query:t.query,height:t.height},on:{onChangeBtn:t.onChangeBtn,closed:t.closed,ok:function(a){return t.$emit("ok")},beaseLoadComplete:function(a){return t.$emit("beaseLoadComplete")}}}):t.modeType==="details"?s("DetailsItem",{ref:"detailsItem",attrs:{query:t.query,height:t.height}}):t.modeType==="iframe"?s("iframe",{style:t.istyle,attrs:{id:"gd-view-iframe",height:t.hig,src:t.iframeUri,frameBorder:"0"}}):t._e()],1):t._e()],1):s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":t.appendToBody,"modal-append-to-body":t.modalAppendToBody,size:t.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(a){t.visible=a}}},[s("gd-modal-title",{attrs:{slot:"title",title:t.title,fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,emitFun:!0,showFullscreen:!1,showClose:!0},on:{changeEvent:t.doEvent,close:t.closed},slot:"title"}),t.visible?s("div",{staticStyle:{height:"100%"}},[t.modeType==="view"?s("ViewItem",{ref:"viewItem",attrs:{query:t.query,height:t.height}}):t.modeType==="form"?s("FormItem",{ref:"formItem",attrs:{query:t.query,height:t.height},on:{onChangeBtn:t.onChangeBtn,closed:t.closed,ok:function(a){return t.$emit("ok")},beaseLoadComplete:function(a){return t.$emit("beaseLoadComplete")}}}):t.modeType==="details"?s("DetailsItem",{ref:"detailsItem",attrs:{query:t.query,height:t.height}}):t.modeType==="iframe"?s("iframe",{style:t.istyle,attrs:{id:"gd-view-iframe",height:t.hig,src:t.iframeUri,frameBorder:"0"}}):t._e()],1):t._e()],1)],1)},_sfc_staticRenderFns$48=[],__component__$48=chartbi.normalizeComponent(_sfc_main$48,_sfc_render$48,_sfc_staticRenderFns$48,!1,null,"c9c69f5c",null,null);const PopupDetails=__component__$48.exports,viewDetails_vue_vue_type_style_index_0_scoped_06ab9537_lang="",_sfc_main$47={props:{record:{type:String,default:""},query:{type:Object,default:()=>{}}},data(){return{modeType:""}},components:{ViewItem,FormItem,DetailsItem},computed:{height(){return this.screenHeight-72},...chartbi.mapGetters(["screenHeight"])},methods:{init(){this.modeType=this.query.mode_type?this.query.mode_type:"form",this.visible=!0,this.$nextTick(()=>{const i=`${this.modeType}Item`;this.$refs[i]&&this.$refs[i].init()})},doEvent(i){const t=`${this.modeType}Item`;this.$refs[t]&&this.$refs[t].doEvent&&this.$refs[t].doEvent(i)}}};var _sfc_render$47=function(){var t=this,s=t._self._c;return s("div",[t.modeType==="view"?s("ViewItem",{ref:"viewItem",attrs:{query:t.query,height:t.height}}):t.modeType==="form"?s("FormItem",{ref:"formItem",attrs:{query:t.query,height:t.height,modeType:"component"},on:{ok:function(a){return t.$emit("ok")},onChangeBtn:a=>t.$emit("onChangeBtn",a),closed:function(a){return t.$emit("closed")},beaseLoadComplete:function(a){return t.$emit("beaseLoadComplete")}}}):t.modeType==="details"?s("DetailsItem",{ref:"detailsItem",attrs:{query:t.query,height:t.height}}):t._e()],1)},_sfc_staticRenderFns$47=[],__component__$47=chartbi.normalizeComponent(_sfc_main$47,_sfc_render$47,_sfc_staticRenderFns$47,!1,null,"06ab9537",null,null);const ViewDetails=__component__$47.exports,main_vue_vue_type_style_index_0_scoped_e14810d7_lang="",_sfc_main$46={name:"GdViewFormDetails",props:{modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},data(){return{record:"",query:{},openType:"",modeType:"",popupType:"dialog",iframeUri:"",showPopup:!1,statu:!1}},computed:{hig(){return`${this.screenHeight}px`},istyle(){return`width:100%;overflow:hidden;height:${this.hig};`},...chartbi.mapGetters(["primaryColor","screenHeight"])},components:{PopupDetails,ViewDetails},methods:{open(i,t=!1){console.log(i),this.record=i;const s=chartbi.getParamsQuery(i);this.query=s,this.modeType=t?this.modeType:s.mode_type?s.mode_type:"",this.openType=t?this.openType:s.open_type?s.open_type:"popup";const a=this.query.redirect_uri?this.query.redirect_uri:"";if(this.modeType==="request"){this.getRequestDetail();return}if(["authorize_view","authorize_form","authorize_details"].includes(this.modeType)){this.getAuthorizeCode();return}if(this.openType==="iframe"){this.getIframeUri(a);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(a);return}this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const l=`${this.openType}Details`;this.$refs[l]&&this.$refs[l].init()},0)})},getRequestDetail(){if(this.statu)return;const i=this.query.request_url?this.query.request_url:"";if(i==="")return;const t=decodeURIComponent(i),s=t.indexOf("?")===-1?t:t.slice(0,t.indexOf("?")),a=chartbi.getParamsQuery(t);this.statu=!0,messages.post(s,a).then(l=>{if(this.statu=!1,l.code!==200){this.$message.error(l.message);return}if(["redirect_self","redirect_blank"].includes(this.openType)){this.goRedirectUri(l.data),this.beaseLoadComplete();return}if(["iframe"].includes(this.openType)){this.getIframeUri(l.data),this.beaseLoadComplete();return}this.open(l.data,!0)})},getAuthorizeCode(){const i=this.query.code?this.query.code:"";if(i){this.Logout().then(t=>{this.getCode(i)});return}this.oauthAuthorize()},oauthAuthorize(){const i=this.query.client_id?this.query.client_id:"";this.query.response_type&&this.query.response_type,system_account.oauthAuthorize({client_id:i,response_type:"code"}).then(t=>{if(t.code!==200){this.$message.error(t.message);return}const s=this.query.redirect_uri?this.query.redirect_uri:"";if(s==="")return;const a=decodeURIComponent(s);a.indexOf("?")===-1||a.slice(0,a.indexOf("?"));const l=a.indexOf("?")===-1?[]:a.slice(a.indexOf("?")+1).split("&").map(p=>p.split("=")).map(([p,h])=>({key:p,value:h})).concat([{key:"code",value:t.data.code}]);if(["redirect_self","redirect_blank"].includes(this.openType)){this.oauthAuthorizeRedirect(l);return}const n=this.modeType.replace("authorize_","");let o=`?authorize_type=${this.modeType}&mode_type=${n}`,r=`?authorize_type=${this.modeType}&mode_type=${n}&open_type=view`;for(let p=0;p<l.length;p++)o+=`&${l[p].key}=${l[p].value}`,l[p].key!=="open_type"&&(r+=`&${l[p].key}=${l[p].value}`);const d=encodeURIComponent(a.slice(0,a.indexOf("?"))+r);o+=o===""?`?redirect_uri=${d}`:`&redirect_uri=${d}`,this.query.complete_request&&(o+=`&complete_request=${this.query.complete_request}`);const u=chartbi.getParamsQuery(o);this.query=u,this.showPopup=!0,this.$nextTick(()=>{setTimeout(()=>{const p=`${this.openType}Details`;this.$refs[p]&&this.$refs[p].init()},0)})})},oauthAuthorizeRedirect(i){let t="";for(let a=0;a<i.length;a++)t+=`${a===0?"?":"&"}${i[a].key}=${i[a].value}`;const s=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"_self";window.open(`${url}${t}`,s)},getCode(i){system_account.oauthCodeLogin({code:i}).then(t=>{if(t.code!==200){this.$message.error(t.message);return}this.loginSuccess(t.data),this.loginOther()})},goRedirectUri(i){if(i==="")return;const t=decodeURIComponent(i),s=this.openType==="redirect_self"?"_self":this.openType==="redirect_blank"?"_blank":"";window.open(t,s)},getIframeUri(i){i!==""&&(this.iframeUri=decodeURIComponent(i))},beaseLoadComplete(){const i=this.query.complete_request?this.query.complete_request:"";if(i==="")return;const t=decodeURIComponent(i),s=t.indexOf("?")===-1?t:t.slice(0,t.indexOf("?")),a=chartbi.getParamsQuery(t);messages.post(s,a)},loginSuccess(i){Vue.ls.set("ACCESS_TOKEN",i.accesstoken),this.$store.commit("SET_TOKEN",i.accesstoken);let t="";for(let s in this.query)["authorize_view","authorize_form","authorize_details"].includes(s)?t+=`${t===""?"?":"&"}${s}=${this.query[s].replace("authorize_","")}`:t+=`${t===""?"?":"&"}${s}=${this.query[s]}`;this.open(t,!0)},loginOther(){this.dictTypeData().then(t=>{});const i=new BroadcastChannel("gd-channel-msg");i.postMessage({type:"login",data:{gdTagName:window.gdTagName}}),i.close()},close(){this.modeType="",this.openType="",this.$nextTick(()=>{setTimeout(()=>{this.$emit("close")},300)})},doEvent(i){const t=`${this.openType}Details`;this.$refs[t]&&this.$refs[t].doEvent&&this.$refs[t].doEvent(i)},...chartbi.mapActions(["Logout","dictTypeData"])}};var _sfc_render$46=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-vf-details"},[t.showPopup&&t.openType==="popup"?s("PopupDetails",{ref:"popupDetails",attrs:{record:t.record,query:t.query,modalAppendToBody:t.modalAppendToBody,appendToBody:t.appendToBody},on:{ok:function(a){return t.$emit("ok")},beaseLoadComplete:function(a){return t.$emit("beaseLoadComplete")},closed:t.close}}):t.openType==="view"?s("ViewDetails",{ref:"viewDetails",attrs:{record:t.record,query:t.query},on:{ok:function(a){return t.$emit("ok")},closed:t.close,onChangeBtn:a=>t.$emit("changeBtn",a),beaseLoadComplete:function(a){return t.$emit("beaseLoadComplete")}}}):t.openType==="iframe"?s("iframe",{style:t.istyle,attrs:{id:"iframe",height:t.hig,src:t.iframeUri,frameBorder:"0"}}):t._e()],1)},_sfc_staticRenderFns$46=[],__component__$46=chartbi.normalizeComponent(_sfc_main$46,_sfc_render$46,_sfc_staticRenderFns$46,!1,null,"e14810d7",null,null);const GDpackage$c=__component__$46.exports;GDpackage$c.install=function(i){i.component(GDpackage$c.name,GDpackage$c)};function sysSolutionAdd(i){return window.axios({url:"/sysSolution/add",method:"post",data:i})}function sysSolutionEdit(i){return window.axios({url:"/sysSolution/edit",method:"post",data:i})}function sysSolutionDelete(i){return window.axios({url:"/sysSolution/delete",method:"post",data:i})}function sysSolutionPage(i){return window.axios({url:"/sysSolution/page",method:"post",data:i})}function sysSolutionDetails(i){return window.axios({url:"/sysSolution/details",method:"get",params:i})}function sysSolutionExport(i){return window.axios({url:"/sysSolution/export",method:"post",data:i,responseType:"blob"})}function sysSolutionDeploy(i){return window.axios({url:"/develop/DevelopmentDeploySolution",method:"get",params:i})}function sysSolutionImport(i){return window.axios({url:"/import",method:"post",data:i})}function sysSolutionComponentBatchadd(i){return window.axios({url:"/sysSolutionComponent/batchAdd",method:"post",data:i})}function sysSolutionComponentRemove(i){return window.axios({url:"/sysSolutionComponent/remove",method:"post",data:i})}function sysSolutionComponentPage(i){return window.axios({url:"/sysSolutionComponent/page",method:"post",data:i})}const mixins$O={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.solution.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",type:"slot",width:"220",slotType:"name",align:"left"},{transKey:"gd.solution.name",prop:"logicalname",label:"\u540D\u79F0",width:"220",align:"left"},{transKey:"gd.solution.version",prop:"sysversion",label:"\u7248\u672C",width:"120",align:"left"},{transKey:"gd.solution.publisher",prop:"author",label:"\u53D1\u5E03\u8005",width:"160",align:"left"},{transKey:"gd.solution.description",prop:"description",label:"\u8BF4\u660E",width:"260",type:"slot",slotType:"description",align:"left"}],tableQueries:[{transKey:"gd.solution.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",effectType:"input",rules:[]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysSolution:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"},{displayName:"\u5BFC\u5165",functionName:"import",show:!0,transKey:"gd.btn.import",icon:"el-icon-upload2",name:"sysSolution:import"},{displayName:"\u5BFC\u51FA",functionName:"export",show:!0,transKey:"gd.btn.export",icon:"el-icon-download",name:"sysSolution:export"},{displayName:"\u53D1\u5E03",functionName:"release",show:!0,transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",name:"sysSolution:release"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],formColumns:[{transKey:"gd.solution.displayName",effectType:"input",prop:"name",label:"\u663E\u793A\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.solution.name",effectType:"input",prop:"logicalname",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{pattern:/^[a-zA-Z]([a-zA-Z0-9]+)?$/,message:"\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD\uFF01",transKey:"gd.view.viewNameTip"}]},{transKey:"gd.solution.publisher",effectType:"input",prop:"author",label:"\u53D1\u5E03\u8005",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.solution.version",effectType:"input",prop:"sysversion",label:"\u7248\u672C",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.solution.description",effectType:"textarea",prop:"description",label:"\u8BF4\u660E",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[]}]}}},main_vue_vue_type_style_index_0_scoped_46469584_lang="",_sfc_main$45={data(){return{fullscreen:!1,confirmLoading:!1,width:"40%",visible:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],fileList:[]}},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(){this.visible=!0,this.fullscreen=!1},handleChange(i,t){t.length>1&&t.splice(0,1),i.raw.type=="application/x-zip-compressed"?this.fileList=[i.raw]:(this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.fileList=[])},handleRemove(i){const t=this.fileList.indexOf(i),s=this.fileList.slice();s.splice(t,1),this.fileList=s},handleSubmit(){this.confirmLoading=!0;let i=new FormData;i.append("solutionFile",this.fileList[0]),sysSolutionImport(i).then(t=>{this.confirmLoading=!1,t.code==200?(this.closed(),this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok")):this.$message.error(t.message)}).catch(t=>{this.$message.error("\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u91CD\u8BD5"),this.confirmLoading=!1})},closed(){this.visible=!1,this.fileList=[]},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$45=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.solution.import","\u5BFC\u5165\u89E3\u51B3\u65B9\u6848"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("el-alert",{staticStyle:{"margin-bottom":"10px"},attrs:{title:t.$i18nt("gd.solution.importTip","\u9009\u62E9\u5305\u542B\u8981\u5BFC\u5165\u7684\u89E3\u51B3\u65B9\u6848\u7684\u538B\u7F29(.zip)\u6587\u4EF6"),type:"info","show-icon":"",closable:!1}}),s("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".zip","file-list":t.fileList,"on-change":t.handleChange,action:"","show-file-list":!0,"on-remove":t.handleRemove,"auto-upload":!1}},[s("el-button",[s("i",{staticClass:"el-icon-upload2"}),t._v(" "+t._s(t.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1)],2)],1)},_sfc_staticRenderFns$45=[],__component__$45=chartbi.normalizeComponent(_sfc_main$45,_sfc_render$45,_sfc_staticRenderFns$45,!1,null,"46469584",null,null);const importList=__component__$45.exports,mixins$N={data(){return{tableColumns:[{transKey:"gd.solution.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.solution.type",prop:"componenttype",label:"\u7C7B\u578B",type:"slot",slotType:"componenttype",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}]}}},main_vue_vue_type_style_index_0_scoped_b864b99a_lang="",_sfc_main$44={mixins:[mixins$N],data(){return{fullscreen:!1,confirmLoading:!1,visible:!1,width:"70%",buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),solutionId:"",detail:{}}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.solutionId})},getHeight(){return this.screenHeight-(this.fullscreen?160:320)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){this.solutionId=i.id,this.visible=!0,this.fullscreen=!1,this.detail=i},handleSubmit(){this.confirmLoading=!0;const i=this.$message({message:this.$i18nt("gd.login.exporting","\u6B63\u5728\u5BFC\u51FA\u4E2D..."),duration:0,iconClass:"el-icon-loading"});let t={solutionId:this.solutionId};sysSolutionExport(t).then(s=>{this.exportWay(s,i),this.closed()}).catch(s=>{i.close(),this.$message.error("\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u91CD\u8BD5"),this.confirmLoading=!1})},exportWay(i,t){if(i){const s=new Blob([i.data],{type:"application/zip"}),a=URL.createObjectURL(s),l=document.createElement("a");l.style.display="none",l.href=a,l.download=this.detail.name,l.click(),URL.revokeObjectURL(l.href),setTimeout(()=>{t.close()},1e3)}else t.close(),this.$message.error(i.message)},closed(){this.visible=!1},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$44=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.solution.export","\u5BFC\u51FA\u89E3\u51B3\u65B9\u6848"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!1,height:t.getHeight},scopedSlots:t._u([{key:"name",fn:function({row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a}})]}},{key:"componenttype",fn:function({row:a}){return[s("span",[t._v(" "+t._s(t._f("dictType")("table_solution_type",a.componenttype))+" ")])]}}],null,!1,1138589434)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$44=[],__component__$44=chartbi.normalizeComponent(_sfc_main$44,_sfc_render$44,_sfc_staticRenderFns$44,!1,null,"b864b99a",null,null);const exportList=__component__$44.exports,solutionDescriptions_vue_vue_type_style_index_0_scoped_ae6fa16d_lang="",_sfc_main$43={props:{tableButtons:{type:Array,default:()=>{}},record:{type:Object,default:()=>({})},height:{type:Number,default:0}},data(){return{}},computed:{style(){return`max-height: calc(${this.height}px - 60px);`},...chartbi.mapGetters(["tableSize"])},mounted(){},methods:{doEvent(i){this.$emit("functionName",i)}}};var _sfc_render$43=function(){var t=this,s=t._self._c;return s("div",{staticClass:"page-descriptions-item"},[s("div",{staticClass:"descriptionst"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1),s("div",{staticClass:"descriptionsb",style:t.style},[s("el-descriptions",{attrs:{column:1,size:t.tableSize,border:"",direction:"vertical"}},[s("el-descriptions-item",[s("template",{slot:"label"},[t._v(" "+t._s(t.$i18nt("gd.solution.displayName","\u663E\u793A\u540D\u79F0"))+" ")]),t._v(" "+t._s(t.record.name)+" ")],2),s("el-descriptions-item",[s("template",{slot:"label"},[t._v(" "+t._s(t.$i18nt("gd.solution.name","\u540D\u79F0"))+" ")]),t._v(" "+t._s(t.record.logicalname)+" ")],2),s("el-descriptions-item",[s("template",{slot:"label"},[t._v(" "+t._s(t.$i18nt("gd.solution.version","\u7248\u672C"))+" ")]),t._v(" "+t._s(t.record.sysversion)+" ")],2),s("el-descriptions-item",[s("template",{slot:"label"},[t._v(" "+t._s(t.$i18nt("gd.author.name","\u53D1\u5E03\u8005"))+" ")]),t._v(" "+t._s(t.record.author)+" ")],2),s("el-descriptions-item",[s("template",{slot:"label"},[t._v(" "+t._s(t.$i18nt("gd.solution.description","\u8BF4\u660E"))+" ")]),t._v(" "+t._s(t.record.description?t.record.description:"--")+" ")],2)],1)],1)])},_sfc_staticRenderFns$43=[],__component__$43=chartbi.normalizeComponent(_sfc_main$43,_sfc_render$43,_sfc_staticRenderFns$43,!1,null,"ae6fa16d",null,null);const solutionDescriptions=__component__$43.exports,mixins$M={data(){return{tableColumns:[{transKey:"gd.field.field",prop:"columnname",label:"\u5B57\u6BB5",type:"slot",slotType:"columnname",align:"left"},{transKey:"gd.field.describe",prop:"columncomment",label:"\u63CF\u8FF0",type:"slot",slotType:"columncomment",align:"left"},{transKey:"gd.field.effectType",prop:"effecttype",label:"\u4F5C\u7528\u7C7B\u578B",type:"slot",slotType:"effecttype",align:"left"},{transKey:"gd.field.dictionaries",prop:"dicttypecode",label:"\u5B57\u5178",type:"slot",slotType:"dicttypecode",align:"left"},{transKey:"gd.field.date",prop:"fieldformat",label:"\u65E5\u671F",type:"slot",slotType:"fieldformat",align:"left"},{transKey:"gd.field.about",prop:"fkentityname",label:"\u5916\u952E/\u5173\u4E8E",type:"slot",slotType:"fkentityname",align:"left"},{transKey:"gd.field.precision",prop:"filedsize",label:"\u5B57\u7B26\u957F\u5EA6/\u7CBE\u5EA6",align:"left"}]}}},main_vue_vue_type_style_index_0_scoped_9d422174_lang="",_sfc_main$42={mixins:[mixins$M],props:{codeGenId:{type:[String,Number],default:""},checked:{type:Boolean,default:!0},record:{type:Object,required:!0},fullscreen:{type:Boolean,default:!1},allList:{type:Array,default:()=>[]},operation:{type:String,default:"add"}},data(){return{tableLoading:!1,loadData:i=>(this.tableLoading=!0,messages.onlineFormGetCodeGenerateList({codeGenId:this.codeGenId,type:0}).then(t=>(this.tableLoading=!1,this.record.fkConfig.data=t.data,this.operation=="add"&&this.getRow(t.data),{pageNo:1,pageSize:40,totalRows:0,rows:this.operation==="add"?t.data:t.data.filter(a=>this.allList.includes(a.id))}))),selectedRowKeys:[],selectedRows:[],disabledRowId:[],showNewColumn:!0}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:350)},getTableColumns(){const i=[{type:"selection",width:"60",fixed:!0}];return this.checked?this.tableColumns:i.concat(this.tableColumns)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.filter(s=>this.allList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.record.fkConfig.list=i,this.selectedRowKeys=i,this.selectedRows=t},dictName(i){let s=this.$options.filters.dictDataAll().filter(a=>a.code==i.dicttypecode)[0];return s==null?i.dicttypecode:this.getBootTrans&&s.transkey?this.$i18nt(`Dynamics.${s.transkey}`,s.name):s.name},refresh(){this.$refs.table.refresh()}}};var _sfc_render$42=function(){var t=this,s=t._self._c;return s("div",[s("gd-tables",{key:JSON.stringify(t.getTableColumns),ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!1,disabledColumnSettings:!1,disabledRefresh:!0,showPagination:!1,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"columnname",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"columnname",row:l,highlight:""}})]}},{key:"columncomment",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"columncomment",row:l}})]}},{key:"effecttype",fn:function(a){return[s("span",[t._v(t._s(t._f("dictType")("code_gen_effect_type",a.row.effecttype)))])]}},{key:"dicttypecode",fn:function(a){return[s("span",[t._v(t._s(t.dictName(a.row)))])]}},{key:"fieldformat",fn:function(a){return[a.row.effecttype=="datepicker"?s("div",[s("span",{staticClass:"line1"},[t._v(t._s(t._f("dictType")("time_longshort",a.row.fieldformat)))])]):s("span")]}},{key:"fkentityname",fn:function(a){return[s("span",{staticClass:"line1"},[t._v(t._s(a.row.fkentityname))])]}}])})],1)},_sfc_staticRenderFns$42=[],__component__$42=chartbi.normalizeComponent(_sfc_main$42,_sfc_render$42,_sfc_staticRenderFns$42,!1,null,"9d422174",null,null);const fkConfig$1=__component__$42.exports,mixins$L={data(){return{tableColumns:[{transKey:"gd.form.displayName",prop:"displayname",label:"\u663E\u793A\u540D\u79F0",width:"260",type:"slot",slotType:"displayname",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.form.formName",prop:"name",width:"260",label:"\u8868\u5355\u540D\u79F0",align:"left",showOverflowTooltip:!0},{transKey:"gd.form.type",prop:"type",width:"200",type:"slot",slotType:"type",label:"\u8868\u5355\u7C7B\u578B",align:"left"},{transKey:"gd.form.explain",prop:"explain",minWidth:"200",label:"\u8BF4\u660E",align:"left"}]}}},main_vue_vue_type_style_index_0_scoped_b71ff3f8_lang="",_sfc_main$41={mixins:[mixins$L],props:{codeGenId:{type:[String,Number],default:""},checked:{type:Boolean,default:!0},record:{type:Object,required:!0},fullscreen:{type:Boolean,default:!1},allList:{type:Array,default:()=>[]},operation:{type:String,default:"add"}},data(){return{tableLoading:!1,loadData:i=>(this.tableLoading=!0,system_fieldsecurity.sysFormList({SysCodeGenId:this.codeGenId}).then(t=>(this.tableLoading=!1,this.record.formConfig.data=t.data,this.operation=="add"&&this.getRow(t.data),{pageNo:1,pageSize:40,totalRows:0,rows:this.operation==="add"?t.data:t.data.filter(a=>this.allList.includes(a.id))}))),selectedRowKeys:[],selectedRows:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:350)},getTableColumns(){const i=[{type:"selection",width:"60",fixed:!0}];return this.checked?this.tableColumns:i.concat(this.tableColumns)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.filter(s=>this.allList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.record.formConfig.list=i,this.selectedRowKeys=i,this.selectedRows=t},refresh(){this.$refs.table.refresh()}}};var _sfc_render$41=function(){var t=this,s=t._self._c;return s("div",[s("gd-tables",{key:JSON.stringify(t.getTableColumns),ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!1,disabledColumnSettings:!1,disabledRefresh:!0,showPagination:!1,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"displayname",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"displayname",row:l,highlight:"",transKey:`Dynamics.${l.transkey}`}})]}},{key:"type",fn:function(a){return[s("span",{staticClass:"line1"},[t._v(t._s(t._f("dictType")("table_form_type",a.row.type)))])]}}])})],1)},_sfc_staticRenderFns$41=[],__component__$41=chartbi.normalizeComponent(_sfc_main$41,_sfc_render$41,_sfc_staticRenderFns$41,!1,null,"b71ff3f8",null,null);const formConfig$1=__component__$41.exports,mixins$K={data(){return{tableColumns:[{transKey:"gd.view.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.view.viewName",prop:"viewname",label:"\u89C6\u56FE\u540D\u79F0",align:"left",showOverflowTooltip:!0},{transKey:"gd.view.type",prop:"type",type:"slot",slotType:"type",label:"\u7C7B\u578B",align:"left"},{transKey:"gd.view.sort",prop:"order",label:"\u5E8F\u53F7",align:"left"},{transKey:"gd.view.default",prop:"isDefault",type:"slot",slotType:"isDefault",label:"\u9ED8\u8BA4",align:"center"},{transKey:"gd.view.explain",prop:"explain",label:"\u8BF4\u660E",align:"left"}]}}},main_vue_vue_type_style_index_0_scoped_b4047a5a_lang="",_sfc_main$40={mixins:[mixins$K],props:{codeGenId:{type:[String,Number],default:""},checked:{type:Boolean,default:!0},record:{type:Object,required:!0},fullscreen:{type:Boolean,default:!1},allList:{type:Array,default:()=>[]},operation:{type:String,default:"add"}},data(){return{tableLoading:!1,loadData:i=>(this.tableLoading=!0,system_fieldsecurity.sysViewList({SysCodeGenId:this.codeGenId}).then(t=>(this.tableLoading=!1,this.record.viewConfig.data=t.data,this.operation=="add"&&this.getRow(t.data),{pageNo:1,pageSize:40,totalRows:0,rows:this.operation==="add"?t.data:t.data.filter(a=>this.allList.includes(a.id))}))),selectedRowKeys:[],selectedRows:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:350)},getTableColumns(){const i=[{type:"selection",width:"60",fixed:!0}];return this.checked?this.tableColumns:i.concat(this.tableColumns)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.filter(s=>this.allList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.record.viewConfig.list=i,this.selectedRowKeys=i,this.selectedRows=t},refresh(){this.$refs.table.refresh()}}};var _sfc_render$40=function(){var t=this,s=t._self._c;return s("div",[s("gd-tables",{key:JSON.stringify(t.getTableColumns),ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!1,disabledColumnSettings:!1,disabledRefresh:!0,showPagination:!1,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"explain",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"explain",row:l}})]}},{key:"isDefault",fn:function(a){return[a.row.isDefault==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})]}},{key:"type",fn:function(a){return[s("span",{staticClass:"line1"},[t._v(t._s(t._f("dictType")("view_type",a.row.type)))])]}}])})],1)},_sfc_staticRenderFns$40=[],__component__$40=chartbi.normalizeComponent(_sfc_main$40,_sfc_render$40,_sfc_staticRenderFns$40,!1,null,"b4047a5a",null,null);const viewConfig$1=__component__$40.exports,mixins$J={data(){return{tableColumns:[{transKey:"gd.btnConfig.displayName",prop:"displayname",label:"\u663E\u793A\u540D\u79F0",type:"slot",slotType:"displayname",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.btnConfig.sort",prop:"sn",label:"\u5E8F\u53F7",align:"left",showOverflowTooltip:!0},{transKey:"gd.btnConfig.type",prop:"type",label:"\u7C7B\u578B",type:"slot",slotType:"type",align:"left",showOverflowTooltip:!0},{transKey:"gd.btnConfig.adaptTo",prop:"displaypos",label:"\u9002\u5E94\u4E8E",type:"slot",slotType:"displaypos",align:"left",showOverflowTooltip:!0},{transKey:"gd.btnConfig.displayPosition",prop:"displayposition",label:"\u663E\u793A\u4F4D\u7F6E",align:"left",showOverflowTooltip:!0},{transKey:"gd.btnConfig.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"left",showOverflowTooltip:!0},{transKey:"gd.btnConfig.explain",prop:"description",label:"\u8BF4\u660E",align:"left",showOverflowTooltip:!0}]}}},main_vue_vue_type_style_index_0_scoped_cbe154cb_lang="",_sfc_main$3$={mixins:[mixins$J],props:{codeGenId:{type:[String,Number],default:""},checked:{type:Boolean,default:!0},record:{type:Object,required:!0},fullscreen:{type:Boolean,default:!1},allList:{type:Array,default:()=>[]},operation:{type:String,default:"add"}},data(){return{tableLoading:!1,loadData:i=>(this.tableLoading=!0,system_fieldsecurity.sysButtonList({SysCodeGenId:this.codeGenId}).then(t=>(this.tableLoading=!1,this.record.btConfig.data=t.data,this.operation=="add"&&this.getRow(t.data),{pageNo:1,pageSize:40,totalRows:0,rows:this.operation==="add"?t.data:t.data.filter(a=>this.allList.includes(a.id))}))),selectedRowKeys:[],selectedRows:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:350)},getTableColumns(){const i=[{type:"selection",width:"60",fixed:!0}];return this.checked?this.tableColumns:i.concat(this.tableColumns)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.filter(s=>this.allList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.record.btConfig.list=i,this.selectedRowKeys=i,this.selectedRows=t},refresh(){this.$refs.table.refresh()}}};var _sfc_render$3$=function(){var t=this,s=t._self._c;return s("div",[s("gd-tables",{key:JSON.stringify(t.getTableColumns),ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!1,disabledColumnSettings:!1,disabledRefresh:!0,showPagination:!1,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"displayname",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"displayname",row:l,highlight:"",transKey:`Dynamics.${l.transkey}`}})]}},{key:"type",fn:function(a){return[t._v(" "+t._s(t._f("dictType")("table_btn_type",a.row.type))+" ")]}},{key:"displaypos",fn:function(a){return[t._v(" "+t._s(t._f("dictType")("table_btn_apply",a.row.displaypos))+" ")]}}])})],1)},_sfc_staticRenderFns$3$=[],__component__$3$=chartbi.normalizeComponent(_sfc_main$3$,_sfc_render$3$,_sfc_staticRenderFns$3$,!1,null,"cbe154cb",null,null);const btConfig=__component__$3$.exports,mixins$I={data(){return{tableColumns:[{transKey:"gd.relation.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.relation.mainTable",prop:"referencedtablename",type:"slot",slotType:"referencedtablename",label:"\u4E3B\u8868",align:"left",showOverflowTooltip:!0},{transKey:"gd.relation.relatedTables",prop:"referencingtablename",type:"slot",slotType:"referencingtablename",label:"\u76F8\u5173\u8868",align:"left",showOverflowTooltip:!0},{transKey:"gd.relation.field",prop:"referencingfieldname",label:"\u5B57\u6BB5",align:"left"},{transKey:"gd.relation.behaviorType",prop:"behaviortype",type:"slot",slotType:"behaviortype",label:"\u884C\u4E3A\u7C7B\u578B",align:"left",showOverflowTooltip:!0},{transKey:"gd.relation.delete",prop:"cascadedelete",type:"slot",slotType:"cascadedelete",label:"\u5220\u9664",align:"left",showOverflowTooltip:!0},{transKey:"gd.relation.assignment",prop:"cascadeassign",type:"slot",slotType:"cascadeassign",label:"\u5206\u6D3E",align:"left",showOverflowTooltip:!0},{transKey:"gd.table.mslaveSubmit",prop:"generaterelationcode",type:"slot",slotType:"generaterelationcode",label:"\u4E3B\u4ECE\u63D0\u4EA4",align:"center",showOverflowTooltip:!0}]}}},main_vue_vue_type_style_index_0_scoped_a4a3da66_lang="",_sfc_main$3_={mixins:[mixins$I],props:{codeGenId:{type:[String,Number],default:""},tableName:{type:[String,Number],default:""},checked:{type:Boolean,default:!0},record:{type:Object,required:!0},fullscreen:{type:Boolean,default:!1},allList:{type:Array,default:()=>[]},operation:{type:String,default:"add"}},data(){return{tableLoading:!1,loadData:i=>(this.tableLoading=!0,system_fieldsecurity.sysRelationshipList2({tableName:this.tableName}).then(t=>(this.tableLoading=!1,this.record.relConfig1n.data=t.data,this.operation=="add"&&this.getRow(t.data),{pageNo:1,pageSize:40,totalRows:0,rows:this.operation==="add"?t.data:t.data.filter(a=>this.allList.includes(a.id))}))),selectedRowKeys:[],selectedRows:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:350)},getTableColumns(){const i=[{type:"selection",width:"60",fixed:!0}];return this.checked?this.tableColumns:i.concat(this.tableColumns)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.filter(s=>this.allList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.record.relConfig1n.list=i,this.selectedRowKeys=i,this.selectedRows=t},refresh(){this.$refs.table.refresh()}}};var _sfc_render$3_=function(){var t=this,s=t._self._c;return s("div",[s("gd-tables",{key:JSON.stringify(t.getTableColumns),ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!1,disabledColumnSettings:!1,disabledRefresh:!0,showPagination:!1,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"referencedtablename",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"referencedtablename",row:l}})]}},{key:"referencingtablename",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"referencingtablename",row:l}})]}},{key:"behaviortype",fn:function(a){return[s("el-tag",{style:t._f("dictColor")("Behavior_Type",a.row.behaviortype),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("Behavior_Type",a.row.behaviortype))+" ")])]}},{key:"cascadedelete",fn:function(a){return[s("el-tag",{style:t._f("dictColor")("Cascade_Type",a.row.cascadedelete),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("Cascade_Type",a.row.cascadedelete))+" ")])]}},{key:"cascadeassign",fn:function(a){return[s("el-tag",{style:t._f("dictColor")("Cascade_Type",a.row.cascadeassign),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("Cascade_Type",a.row.cascadeassign))+" ")])]}},{key:"generaterelationcode",fn:function(a){return[a.row.generaterelationcode==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})]}}])})],1)},_sfc_staticRenderFns$3_=[],__component__$3_=chartbi.normalizeComponent(_sfc_main$3_,_sfc_render$3_,_sfc_staticRenderFns$3_,!1,null,"a4a3da66",null,null);const relConfig1n$1=__component__$3_.exports,mixins$H={data(){return{tableColumns:[{transKey:"gd.relation.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.relation.mainTable",prop:"referencedtablename",type:"slot",slotType:"referencedtablename",label:"\u4E3B\u8868",align:"left",showOverflowTooltip:!0},{transKey:"gd.relation.relatedTables",prop:"referencingtablename",type:"slot",slotType:"referencingtablename",label:"\u76F8\u5173\u8868",align:"left",showOverflowTooltip:!0},{transKey:"gd.relation.field",prop:"referencingfieldname",label:"\u5B57\u6BB5",align:"left"},{transKey:"gd.relation.behaviorType",prop:"behaviortype",type:"slot",slotType:"behaviortype",label:"\u884C\u4E3A\u7C7B\u578B",align:"left",showOverflowTooltip:!0},{transKey:"gd.relation.delete",prop:"cascadedelete",type:"slot",slotType:"cascadedelete",label:"\u5220\u9664",align:"left",showOverflowTooltip:!0},{transKey:"gd.relation.assignment",prop:"cascadeassign",type:"slot",slotType:"cascadeassign",label:"\u5206\u6D3E",align:"left",showOverflowTooltip:!0},{transKey:"gd.table.mslaveSubmit",prop:"generaterelationcode",type:"slot",slotType:"generaterelationcode",label:"\u4E3B\u4ECE\u63D0\u4EA4",align:"center",showOverflowTooltip:!0}]}}},main_vue_vue_type_style_index_0_scoped_66540354_lang="",_sfc_main$3Z={mixins:[mixins$H],props:{codeGenId:{type:[String,Number],default:""},tableName:{type:[String,Number],default:""},checked:{type:Boolean,default:!0},record:{type:Object,required:!0},fullscreen:{type:Boolean,default:!1},allList:{type:Array,default:()=>[]},operation:{type:String,default:"add"}},data(){return{tableLoading:!1,loadData:i=>(this.tableLoading=!0,system_fieldsecurity.sysRelationshipList({tableName:this.tableName}).then(t=>(this.tableLoading=!1,this.record.relConfign1.data=t.data,this.operation=="add"&&this.getRow(t.data),{pageNo:1,pageSize:40,totalRows:0,rows:this.operation==="add"?t.data:t.data.filter(a=>this.allList.includes(a.id))}))),selectedRowKeys:[],selectedRows:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:350)},getTableColumns(){const i=[{type:"selection",width:"60",fixed:!0}];return this.checked?this.tableColumns:i.concat(this.tableColumns)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.filter(s=>this.allList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.record.relConfign1.list=i,this.selectedRowKeys=i,this.selectedRows=t},refresh(){this.$refs.table.refresh()}}};var _sfc_render$3Z=function(){var t=this,s=t._self._c;return s("div",[s("gd-tables",{key:JSON.stringify(t.getTableColumns),ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!1,disabledColumnSettings:!1,disabledRefresh:!0,showPagination:!1,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"referencedtablename",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"referencedtablename",row:l}})]}},{key:"referencingtablename",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"referencingtablename",row:l}})]}},{key:"behaviortype",fn:function(a){return[s("el-tag",{style:t._f("dictColor")("Behavior_Type",a.row.behaviortype),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("Behavior_Type",a.row.behaviortype))+" ")])]}},{key:"cascadedelete",fn:function(a){return[s("el-tag",{style:t._f("dictColor")("Cascade_Type",a.row.cascadedelete),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("Cascade_Type",a.row.cascadedelete))+" ")])]}},{key:"cascadeassign",fn:function(a){return[s("el-tag",{style:t._f("dictColor")("Cascade_Type",a.row.cascadeassign),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("Cascade_Type",a.row.cascadeassign))+" ")])]}},{key:"generaterelationcode",fn:function(a){return[a.row.generaterelationcode==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})]}}])})],1)},_sfc_staticRenderFns$3Z=[],__component__$3Z=chartbi.normalizeComponent(_sfc_main$3Z,_sfc_render$3Z,_sfc_staticRenderFns$3Z,!1,null,"66540354",null,null);const relConfign1$1=__component__$3Z.exports,mixins$G={data(){return{tableColumns:[{transKey:"gd.form.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.echarts.type",prop:"echartstype",label:"\u56FE\u8868\u7C7B\u578B",type:"slot",slotType:"echartstype",align:"left",showOverflowTooltip:!0},{transKey:"gd.echarts.mode",prop:"collectway",label:"\u6C47\u603B\u65B9\u5F0F",type:"slot",slotType:"collectway",align:"left",showOverflowTooltip:!0},{transKey:"gd.settings.echartsColor",prop:"colour",label:"\u989C\u8272",type:"slot",slotType:"colour",align:"left",showOverflowTooltip:!0}]}}},main_vue_vue_type_style_index_0_scoped_c4f8a9eb_lang="",_sfc_main$3Y={mixins:[mixins$G],props:{codeGenId:{type:[String,Number],default:""},checked:{type:Boolean,default:!0},record:{type:Object,required:!0},fullscreen:{type:Boolean,default:!1},allList:{type:Array,default:()=>[]},operation:{type:String,default:"add"}},data(){return{tableLoading:!1,loadData:i=>(this.tableLoading=!0,system_fieldsecurity.sysEchartsPage({sysCodeGenId:this.codeGenId}).then(t=>(this.tableLoading=!1,this.record.echartsConfig.data=t.data,this.operation=="add"&&this.getRow(t.data),{pageNo:1,pageSize:40,totalRows:0,rows:this.operation==="add"?t.data:t.data.filter(a=>this.allList.includes(a.id))}))),selectedRowKeys:[],selectedRows:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:350)},getTableColumns(){const i=[{type:"selection",width:"60",fixed:!0}];return this.checked?this.tableColumns:i.concat(this.tableColumns)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.filter(s=>this.allList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.record.echartsConfig.list=i,this.selectedRowKeys=i,this.selectedRows=t},refresh(){this.$refs.table.refresh()}}};var _sfc_render$3Y=function(){var t=this,s=t._self._c;return s("div",[s("gd-tables",{key:JSON.stringify(t.getTableColumns),ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!1,disabledColumnSettings:!1,disabledRefresh:!0,showPagination:!1,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:"",transKey:`Dynamics.${l.transKey}`}})]}},{key:"echartstype",fn:function({column:a,row:l}){return[l.echartstype==1?s("i",{staticClass:"active-color gd-icons gd-icon-zhuzhuangtu"}):l.echartstype==2?s("i",{staticClass:"active-color gd-icons gd-icon-bingtu"}):l.echartstype==3?s("i",{staticClass:"active-color gd-icons gd-icon-loudoutu"}):l.echartstype==4?s("i",{staticClass:"active-color gd-icons gd-icon-zhexiantu"}):t._e(),t._v(" "+t._s(t._f("dictType")("table_echarts_type",l.echartstype))+" ")]}},{key:"collectway",fn:function(a){return[t._v(" "+t._s(t._f("dictType")("table_echarts_mode",a.row.collectway))+" ")]}},{key:"colour",fn:function({column:a,row:l}){return[s("div",{staticClass:"follow-theme"},[t._l(t.getColor(l),function(n,o){return[s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:n==="0"?t.$i18nt("gd.settings.followTheme","\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272"):n,placement:"top","open-delay":50}},[n==="0"?s("div",{style:`background:${t.primaryColor};width: 15px;height: 15px;margin-right: 4px;`}):s("div",{style:`background:${n};width: 15px;height: 15px;margin-right: 4px;`})])]})],2)]}}])})],1)},_sfc_staticRenderFns$3Y=[],__component__$3Y=chartbi.normalizeComponent(_sfc_main$3Y,_sfc_render$3Y,_sfc_staticRenderFns$3Y,!1,null,"c4f8a9eb",null,null);const echartsConfig$1=__component__$3Y.exports,main_vue_vue_type_style_index_0_scoped_57c90913_lang="",_sfc_main$3X={props:{tableData:{type:Array,default:()=>[]},record:{type:Object,required:!0},index:{type:Number,default:0},checked:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},operation:{type:String,default:"add"}},data(){return{activeName:"field"}},components:{fkConfig:fkConfig$1,viewConfig:viewConfig$1,formConfig:formConfig$1,btConfig,relConfig1n:relConfig1n$1,relConfign1:relConfign1$1,echartsConfig:echartsConfig$1},methods:{init(){},tabChange(i){this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName+"Config"].refresh()},0)})}}};var _sfc_render$3X=function(){var t=this,s=t._self._c;return s("div",[s("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.tabChange},model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:t.$i18nt("gd.table.field","\u5B57\u6BB5"),name:"field",lazy:!1}},[s("fkConfig",{ref:"fieldConfig",attrs:{codeGenId:t.record.table.id,checked:t.checked,record:t.record,fullscreen:t.fullscreen,allList:t.record.fkConfig.allList,operation:t.operation}})],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.table.view","\u89C6\u56FE"),name:"view",lazy:!1}},[s("viewConfig",{ref:"viewConfig",attrs:{codeGenId:t.record.table.id,checked:t.checked,record:t.record,fullscreen:t.fullscreen,allList:t.record.viewConfig.allList,operation:t.operation}})],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.table.form","\u8868\u5355"),name:"form",lazy:!1}},[s("formConfig",{ref:"formConfig",attrs:{codeGenId:t.record.table.id,checked:t.checked,record:t.record,fullscreen:t.fullscreen,allList:t.record.formConfig.allList,operation:t.operation}})],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.table.echarts","\u56FE\u8868"),name:"echarts",lazy:!1}},[s("echartsConfig",{ref:"echartsConfig",attrs:{codeGenId:t.record.table.id,checked:t.checked,record:t.record,fullscreen:t.fullscreen,allList:t.record.echartsConfig.allList,operation:t.operation}})],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.table.button","\u6309\u94AE"),name:"btn",lazy:!1}},[s("btConfig",{ref:"btnConfig",attrs:{codeGenId:t.record.table.id,checked:t.checked,record:t.record,fullscreen:t.fullscreen,allList:t.record.btConfig.allList,operation:t.operation}})],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.table.relationship1n","1:N\u5173\u7CFB"),name:"relation1n",lazy:!1}},[s("relConfig1n",{ref:"relation1nConfig",attrs:{codeGenId:t.record.table.id,tableName:t.record.table.tablename,checked:t.checked,record:t.record,fullscreen:t.fullscreen,allList:t.record.relConfig1n.allList,operation:t.operation}})],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.table.relationshipn1","N:1\u5173\u7CFB"),name:"relationn1",lazy:!1}},[s("relConfign1",{ref:"relationn1Config",attrs:{codeGenId:t.record.table.id,tableName:t.record.table.tablename,checked:t.checked,record:t.record,fullscreen:t.fullscreen,allList:t.record.relConfign1.allList,operation:t.operation}})],1)],1)],1)},_sfc_staticRenderFns$3X=[],__component__$3X=chartbi.normalizeComponent(_sfc_main$3X,_sfc_render$3X,_sfc_staticRenderFns$3X,!1,null,"57c90913",null,null);const moduleItem=__component__$3X.exports,main_vue_vue_type_style_index_0_scoped_402e60ef_lang="",_sfc_main$3W={props:{detail:{type:Object,default:()=>{}},allList:{type:Array,default:()=>[]},detailAll:{type:Object,default:()=>{}},modeType:{type:String,default:"table"}},components:{moduleItem},data(){return{visible:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],confirmLoading:!1,type:1,detailList:{},allTableData:[],fullscreen:!1,width:"70%"}},computed:{title(){return this.modeType==="table"?this.$i18nt("gd.solution.delAssembly"):this.$i18nt("gd.solution.containAssembly")},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},...chartbi.mapGetters(["tableLists"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},openSolution(i){let t=this.allTableData.filter(a=>a.id==i)[0];if(t===void 0){this.$message.error(this.$i18nt("gd.solution.dataErrorTip","\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664!"));return}this.detailList={table:t,checked:!1,fkConfig:{data:[],list:[],allList:this.allList},btConfig:{data:[],list:[],allList:this.allList},echartsConfig:{data:[],list:[],allList:this.allList},formConfig:{data:[],list:[],allList:this.allList},relConfig1n:{data:[],list:[],allList:this.allList},relConfign1:{data:[],list:[],allList:this.allList},viewConfig:{data:[],list:[],allList:this.allList}};let s=[...this.buttons];s.map(a=>a.show=!1),this.buttons=[...s],setTimeout(()=>{this.fullscreen=!1,this.visible=!0},100)},open(i){let t=this.allTableData.filter(s=>s.id==i.objectid)[0];if(t===void 0){this.$message.error(this.$i18nt("gd.solution.dataErrorTip","\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664!"));return}this.detailList={table:t,checked:!1,fkConfig:{data:[],list:[],allList:this.allList},btConfig:{data:[],list:[],allList:this.allList},echartsConfig:{data:[],list:[],allList:this.allList},formConfig:{data:[],list:[],allList:this.allList},relConfig1n:{data:[],list:[],allList:this.allList},relConfign1:{data:[],list:[],allList:this.allList},viewConfig:{data:[],list:[],allList:this.allList}},setTimeout(()=>{let s=[...this.buttons];s.map(a=>a.show=this.modeType==="table"),this.buttons=[...s],this.fullscreen=!1,this.visible=!0},100)},getAllTableData(){if(this.tableLists.length>0){this.allTableData=[...this.tableLists];return}messages.codeGenerateInformationList({busName:""}).then(i=>{i.success&&(this.allTableData=[...i.data])})},handleSubmit(){let i=this,t=[this.detailList],s=[];if(t.forEach(a=>{a.fkConfig&&a.fkConfig.list.length>0&&(s=s.concat(a.fkConfig.list)),a.viewConfig&&a.viewConfig.list.length>0&&(s=s.concat(a.viewConfig.list)),a.formConfig&&a.formConfig.list.length>0&&(s=s.concat(a.formConfig.list)),a.echartsConfig&&a.echartsConfig.list.length>0&&(s=s.concat(a.echartsConfig.list)),a.btConfig&&a.btConfig.list.length>0&&(s=s.concat(a.btConfig.list)),a.relConfig1n&&a.relConfig1n.list.length>0&&(s=s.concat(a.relConfig1n.list)),a.relConfign1&&a.relConfign1.list.length>0&&(s=s.concat(a.relConfign1.list))}),s.length===0){i.$message.warning(i.$i18nt("gd.https.delTip"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,l,n)=>{this.delHand(a,l,n,s)}})},delHand(i,t,s,a){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1;let l=[],n=[0,1,2,3,6,8,21],o=this.detailAll.syssolutioncomponents.filter(r=>a.includes(r.objectid));n.forEach(r=>{let d=o.filter(p=>p.componenttype==r),u=[];if(d.forEach(p=>{u.push(p.id)}),u.length>0){let p={solutionId:this.detail.id,ids:u,type:r},h=sysSolutionComponentRemove(p).then(f=>f);l.push(h)}}),Promise.all(l).then(r=>{s(),this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("ok",a),this.closed(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0})},sysSolutionComponentRemove(i){return sysSolutionComponentRemove(i).then(t=>t)},closed(){this.selectedRowKeys=[],this.visible=!1},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}},created(){this.getAllTableData()}};var _sfc_render$3W=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.title,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),t.visible?s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("moduleItem",{attrs:{record:t.detailList,tableData:t.allTableData,fullscreen:t.fullscreen,checked:!1,operation:"del"}})],1):t._e()],2)],1)},_sfc_staticRenderFns$3W=[],__component__$3W=chartbi.normalizeComponent(_sfc_main$3W,_sfc_render$3W,_sfc_staticRenderFns$3W,!1,null,"402e60ef",null,null);const DelTabsConfig=__component__$3W.exports;function processData(i){let t=chartbi.uuid();switch(i){case"start":return{type:"start",data:{name:"",sysCodeGenId:void 0,describe:""}};case"step":return{type:"step",name:"\u65B0\u5EFA\u9636\u6BB5/\u6B65\u9AA4",list:[],err:!1,isDelete:!0,pid:0,id:t,sourceId:t};case"end":return{type:"end"}}}function workData(i){switch(i){case"start":return{type:"start",data:{name:"",sysCodeGenId:void 0,ranges:void 0,isBackgroud:[],firing:[]}};case"end":return{type:"end"}}}const settings_vue_vue_type_style_index_0_scoped_02197dc7_lang="",_sfc_main$3V={props:{status:{type:String,default:"process"},record:{type:Object,default:null},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{fetching:!1,show:!1,datail:null,ruleFormData:{name:"",sysCodeGenId:void 0,code:"",span:"",description:"",stateCodes:void 0,transKey:null,langs:"[]"},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],span:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},confirmLoading:!1}},computed:{getTableLists(){return this.tableLists.filter(i=>(i.isbusinessprocess===void 0?1:i.isbusinessprocess)===1)},disabled(){return this.permissionsBnt?this.status=="success"?this.datail?!!this.datail.code:!1:this.stateCodes==1:!0},disableds(){return this.permissionsBnt?this.stateCodes==1:!0},...chartbi.mapGetters(["screenHeight","labelPosition","formMode","tableLists"])},methods:{lookupSeled(i){let t=[];i.langs.forEach(s=>{t.push({name:s.languagename,val:s.description,code:s.languagecode})}),this.ruleFormData=Object.assign(this.ruleFormData,{name:i.defaulttext,langs:JSON.stringify(t)})},addSubmit(){this.$refs.ruleForm.validate(i=>{i&&this.$emit("next",Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)}))})},init(i){this.datail=i,this.show=!!(i&&i.stateCodes!==void 0);let t=i?i.langs:[];this.$nextTick(()=>{setTimeout(()=>{let s={span:i?i.span:"",name:i?i.name:"",sysCodeGenId:i?i.sysCodeGenId:"",description:i?i.description:"",code:i?i.code:chartbi.uuid(8),transKey:i?i.transKey:null,langs:JSON.stringify(t)};i&&i.stateCodes!==void 0&&(s=Object.assign(s,{stateCodes:i.stateCodes})),this.ruleFormData=s,this.$refs.ruleForm.resetFields(),this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},getDictionary(i){return this.$options.filters.dictData(i)}}};var _sfc_render$3V=function(){var t=this,s=t._self._c;return s("div",{staticClass:"setting"},[s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.transKey,callback:function(a){t.$set(t.ruleFormData,"transKey",a)},expression:"ruleFormData.transKey"}})],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.langs,callback:function(a){t.$set(t.ruleFormData,"langs",a)},expression:"ruleFormData.langs"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.name"),prop:"name"}},[s("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.datail||t.datail&&!t.datail.transKey,expression:"!datail || (datail && !datail.transKey)"}],staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}}),t.datail&&t.datail.transKey?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.datail,keyI18n:"transKey",type:2,operational:!t.disableds},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.table"),prop:"sysCodeGenId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),disabled:t.status=="success",clearable:"",filterable:"",remote:"","reserve-keyword":""},model:{value:t.ruleFormData.sysCodeGenId,callback:function(a){t.$set(t.ruleFormData,"sysCodeGenId",a)},expression:"ruleFormData.sysCodeGenId"}},t._l(t.getTableLists,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname)}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+t._s(a.tablename))])])}),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"code"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,placeholder:t.$i18nt("gd.placeholder.input")},model:{value:t.ruleFormData.code,callback:function(a){t.$set(t.ruleFormData,"code",a)},expression:"ruleFormData.code"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.display","\u663E\u793A"),prop:"span"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.span,callback:function(a){t.$set(t.ruleFormData,"span",a)},expression:"ruleFormData.span"}},[s("el-option",{attrs:{value:"24",label:t.$i18nt("gd.flow.process.oneColumn","\u4E00\u884C\u4E00\u5217")}}),s("el-option",{attrs:{value:"12",label:t.$i18nt("gd.flow.process.twoColumn","\u4E00\u884C\u4E24\u5217")}}),s("el-option",{attrs:{value:"8",label:t.$i18nt("gd.flow.process.threeColumn","\u4E00\u884C\u4E09\u5217")}}),s("el-option",{attrs:{value:"6",label:t.$i18nt("gd.flow.process.fourColumn","\u4E00\u884C\u56DB\u5217")}})],1)],1)],1),t.show?s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state"),prop:"stateCodes"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(a){t.$set(t.ruleFormData,"stateCodes",a)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1):t._e(),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.describe","\u63CF\u8FF0"),prop:"description"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:4,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.description,callback:function(a){t.$set(t.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1)],1)},_sfc_staticRenderFns$3V=[],__component__$3V=chartbi.normalizeComponent(_sfc_main$3V,_sfc_render$3V,_sfc_staticRenderFns$3V,!1,null,"02197dc7",null,null);const Settings$2=__component__$3V.exports,sort_vue_vue_type_style_index_0_scoped_c693adb5_lang="",_sfc_main$3U={props:{record:{type:Object,default:()=>({})}},data(){return{selectedRowKeys:[],fullscreen:!1,confirmLoading:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",name:"sysMsgSendPlan:edit"}],visible:!1,width:"600px",title:"",columns:[{label:"\u64CD\u4F5C",width:"100",prop:"handle",type:"slot",slotType:"handle",align:"left",transKey:"gd.flow.handle"},{label:"\u6D41\u7A0B\u540D\u79F0",prop:"name",type:"slot",align:"left",slotType:"name",transKey:"gd.flow.processName"},{title:"\u72B6\u6001",prop:"stateCodes",type:"slot",slotType:"stateCodes",align:"left",transKey:"gd.flow.state"}],loadData:[]}},components:{draggable},computed:{...chartbi.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(i){this.visible=!0,this.fullscreen=!1,this.confirmLoading=!0,this.$nextTick(()=>{setTimeout(()=>{this.refresh()},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen},refresh(){messages.onlineBizProcessList({tableId:this.record.syscodegenid}).then(i=>{i.success&&(this.loadData=i.data,this.confirmLoading=!1)})},handleSubmit(){this.$confirm(this.$i18nt("gd.https.saveContent","\u662F\u5426\u786E\u8BA4\u4FDD\u5B58?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.saveOk","\u786E\u8BA4\u4FDD\u5B58"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.sava(i,t,s)}})},sava(i,t,s){if(i!=="confirm"){s();return}let a=[];this.loadData.forEach((o,r)=>{let d={id:o.id,seqencing:r+1,name:o.name};a.push(d)});let l=[],n=messages.onlineBizProcesscConfigOrder(a).then(o=>o);l.push(n),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(l).then(o=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,s();const r=o.filter(d=>!d.success);r.length===0?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+r[0].message)})},closed(){this.visible=!1,this.loadData=[]},doEvent(i){let t=i.item.functionName;this[t]()},dictSwitch(i,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==i)[0];return s!=null&&s.colour?s.colour:null}}};var _sfc_render$3U=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.btn.sort"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],class:t.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticClass:"title_body"},[s("div",{staticClass:"title_head"},[s("el-row",[s("el-col",{attrs:{span:6}},[s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.handle")))])]),s("el-col",{attrs:{span:9}},[s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.processName")))])]),s("el-col",{attrs:{span:9}},[s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.state")))])])],1)],1),s("draggable",t._b({model:{value:t.loadData,callback:function(a){t.loadData=a},expression:"loadData"}},"draggable",{animation:300,handle:".drag-move"},!1),[t._l(t.loadData,function(a){return[s("el-row",[s("el-col",{attrs:{span:6}},[s("div",[s("a",{staticClass:"drag-move"},[s("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"20px",cursor:"pointer"}})])])]),s("el-col",{attrs:{span:9}},[s("div",{staticClass:"title"},[t._v(t._s(a.name))])]),s("el-col",{attrs:{span:9}},[s("div",{staticClass:"title"},[t.dictSwitch(a.statecodes,"state_code")?s("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(a.statecodes,"state_code")}},[t._v(" "+t._s(t._f("dictType")("state_code",a.statecodes))+" ")]):t._e()],1)])],1)]})],2)],1)])],1)],1)},_sfc_staticRenderFns$3U=[],__component__$3U=chartbi.normalizeComponent(_sfc_main$3U,_sfc_render$3U,_sfc_staticRenderFns$3U,!1,null,"c693adb5",null,null);const FlowsSort=__component__$3U.exports,flowDesign_vue_vue_type_style_index_0_scoped_b787d38f_lang="",_sfc_main$3T={props:{modeType:{type:String,default:"process"}},data(){return{scaleVal:100,permissionsBnt:!0,record:null,title:"\u4E1A\u52A1\u6D41\u7A0B",visible:!1,confirmLoading:!1,list:[],sysViewButtons:[{displayName:"\u6392\u5E8F",functionName:"flowsSort",show:!1,transKey:"gd.btn.sort",icon:"el-icon-rank"},{displayName:"\u4E0A\u4E00\u6B65",functionName:"previous",show:!1,transKey:"gd.btn.prev",icon:"el-icon-d-arrow-left"},{displayName:"\u4E0B\u4E00\u6B65",functionName:"next",show:!0,transKey:"gd.btn.next",icon:"el-icon-d-arrow-right"},{displayName:"\u4FDD\u5B58",functionName:"handleSubmit",show:!1,transKey:"gd.btn.save",icon:"el-icon-document-checked"}],current:0,status:"success",detail:null,initialData:[],fullscreen:!1,width:"90%",stateCodes:0}},components:{Settings:Settings$2,FlowsSort},computed:{bodyStyle(){return{background:this.current==0?"#f5f6f6":"#fff",borderRadius:"10px"}}},methods:{changeCurrent(i){this.current!==i&&this.onChange(i)},plusAdd(i){let t=i=="-"?this.scaleVal-5:this.scaleVal+5;this.scaleVal=t<=50?50:t>=150?150:t},toggleFullscreen(){this.fullscreen=!this.fullscreen},flowsSort(){this.$refs.flowsSort.open()},onChange(i){if(i==1){this.next();return}this.previous()},open(i){this.fullscreen=!1,this.initialData=[],this.record=i;let t=i?"sysFlowProcess:edit":"sysFlowProcess:add";if(this.permissionsBnt=this.$hasPerm(t),this.sysViewButtons=this.sysViewButtons.map(s=>(s.displayName==="\u4FDD\u5B58"&&(s.name=t),s)),this.visible=!0,this.scaleVal=100,i){this.current=1,this.getDetail();return}this.stateCodes=0,this.current=0,this.status="process",this.init()},init(){let i=[],t=processData("start"),s=processData("step"),a=processData("end");i.push(t),i.push(s),i.push(a),this.list=i,this.$nextTick(()=>{setTimeout(()=>{this.$refs.settings.init(null)},0)})},getDetail(i){this.confirmLoading=!0,messages.onlineBizProcessDetails({id:this.record}).then(t=>{if(t.success){let s=[],a=processData("start"),l={name:t.data.name,sysCodeGenId:t.data.syscodegenid,description:t.data.description,stateCodes:String(t.data.statecodes),span:t.data.span,code:t.data.code?t.data.code:"",langs:[],transKey:t.data.transkey?t.data.transkey:null},n=processData("end");s.push(a);let o=t.data.configdata?JSON.parse(t.data.configdata):null;o&&(s=s.concat(o)),s.push(n),this.list=s,this.detail=t.data,this.stateCodes=this.modeType==="process"?t.data.statecodes:1,this.sbumitNext(l),this.getHasItem(t)}this.confirmLoading=!1})},sbumitNext(i){this.current=1,this.list[0].data=i;let t=["\u4E0B\u4E00\u6B65"];this.detail||t.push("\u6392\u5E8F"),this.stateCodes==1&&t.push("\u4FDD\u5B58"),this.modeType!=="process"&&t.push("\u6392\u5E8F"),this.sysViewButtons=this.sysViewButtons.filter((s,a)=>(s.show=!t.includes(s.displayName),!0)),this.status="success",this.$nextTick(()=>{setTimeout(()=>{this.$refs.flowsDesigner.init(this.list),this.$refs.settings.init(this.list[0].data)},0)})},handleSubmit(){let i=this.$refs.flowsDesigner.list,t=i.length-1,s=i.filter((n,o)=>!(o==0||o==t));if(s.length==0){this.$message.error(this.$i18nt("gd.flow.perfectTip","\u8BF7\u5B8C\u5584\u4FE1\u606F"));return}let a=[];const l=n=>(n=n.filter((o,r)=>(o.type=="condition"&&o.list.forEach(d=>{d.type!="else"&&(d.err=d.rule.length==0,d.err&&a.push(d)),d.list=l(d.list)}),o.type=="step"&&(o.err=o.list.length==0,o.err&&a.push(o),o.langs=[],o.list.forEach(d=>{d.langs=[]})),!0)),n);if(l(s),a.length>0){this.$message.error(this.$i18nt("gd.flow.nodeTip","\u8BF7\u6839\u636E\u63D0\u793A\u5B8C\u6210\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E"));return}this.record?this.edit(s,i[0].data):this.add(s,i[0].data)},add(i,t){this.confirmLoading=!0;let s={statecodes:0,name:t.name,syscodegenid:t.sysCodeGenId,description:t.description,span:t.span,code:t.code,configdata:JSON.stringify(i)};messages.onlineBizProcessAdd(s).then(a=>{if(a.success){this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok");let l=this.$refs.flowsDesigner.delTransKeyList;this.deltransKey(l),this.handleCancel(1)}else this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+a.message);this.confirmLoading=!1})},edit(i,t){this.confirmLoading=!0;let s={statecodes:t.stateCodes,name:t.name,span:t.span,syscodegenid:t.sysCodeGenId,description:t.description,configdata:JSON.stringify(i),code:t.code};messages.onlineBizProcessEdit(Object.assign(this.detail,s)).then(a=>{if(a.success){this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok");let l=this.$refs.flowsDesigner.delTransKeyList;this.deltransKey(l),this.handleCancel(2)}else this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+a.message);this.confirmLoading=!1})},deltransKey(i){i.length!=0&&system_promptmanagement.sysTranslationDelName({name:i.join(",")})},previous(){let i=["\u4E0A\u4E00\u6B65","\u4FDD\u5B58"];this.detail||i.push("\u6392\u5E8F"),this.stateCodes==1&&i.push("\u4FDD\u5B58"),this.modeType!=="process"&&i.push("\u6392\u5E8F"),this.sysViewButtons=this.sysViewButtons.filter((t,s)=>(t.show=!i.includes(t.displayName),!0)),this.current=0,this.list=this.$refs.flowsDesigner.list,this.$nextTick(()=>{setTimeout(()=>{this.$refs.settings.init(this.list[0].data)},0)})},next(){this.$refs.settings.addSubmit()},async handleCancel(i){if(this.$refs.flowsDesigner.list,i!==2&&i!==1){let t=this.$refs.flowsDesigner.addTransKeyList;this.deltransKey(t)}this.visible=!1,this.confirmLoading=!1,this.detail=null,await this.init(),setTimeout(()=>{this.$refs.flowsDesigner.init(this.list),this.previous()},200)},getHasItem(i){this.initialData=this.hasItem(JSON.parse(i.data.configdata))},hasItem(i){let t=[];const s=a=>(a=a.filter((l,n)=>(l.type=="condition"&&l.list.forEach(o=>{o.list=s(o.list)}),l.type=="step"&&(t=t.concat([l]),l.list.length>0&&(t=t.concat(l.list))),!0)),a);return s(i),t},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$3T=function(){var t=this,s=t._self._c;return s("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","body-style":t.bodyStyle,"show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.flow.process.title","\u4E1A\u52A1\u6D41\u7A0B"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,showClose:!0,closed:"handleCancel"},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen},slot:"title"}),s("div",{staticClass:"dsteps",staticStyle:{position:"absolute",left:"50%",top:"0px",transform:"translateX(-50%)",display:"flex","justify-content":"center","z-index":"12",width:"50%",height:"54px","align-items":"center"}},[s("el-steps",{attrs:{active:t.current,simple:""},on:{change:t.onChange}},[s("el-step",{staticStyle:{cursor:"pointer"},attrs:{title:t.$i18nt("gd.flow.basicSettings","\u57FA\u7840\u8BBE\u7F6E"),status:t.status},nativeOn:{click:function(a){return t.changeCurrent(0)}}}),s("el-step",{staticStyle:{cursor:"pointer"},attrs:{title:t.$i18nt("gd.flow.processDesign","\u6D41\u7A0B\u8BBE\u8BA1")},nativeOn:{click:function(a){return t.changeCurrent(1)}}})],1)],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],class:t.fullscreen?"modal-bodyq":"modal-body",staticStyle:{"overflow-x":"auto"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current==1,expression:"current == 1"}],staticClass:"suo"},[s("i",{staticClass:"el-icon-remove-outline",staticStyle:{"font-size":"22px",cursor:"pointer"},on:{click:function(a){return t.plusAdd("-")}}}),s("div",{staticClass:"bi"},[s("a",[t._v(t._s(t.scaleVal)+"%")])]),s("i",{staticClass:"el-icon-circle-plus-outline",staticStyle:{"font-size":"22px",cursor:"pointer"},on:{click:function(a){return t.plusAdd("+")}}})]),s("Settings",{directives:[{name:"show",rawName:"v-show",value:t.current==0,expression:"current == 0"}],ref:"settings",attrs:{status:t.status,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{next:t.sbumitNext}}),s("gd-process-flow",{directives:[{name:"show",rawName:"v-show",value:t.current==1,expression:"current == 1"}],ref:"flowsDesigner",attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,scaleVal:t.scaleVal}})],1),s("FlowsSort",{ref:"flowsSort",attrs:{record:t.detail}})],1)},_sfc_staticRenderFns$3T=[],__component__$3T=chartbi.normalizeComponent(_sfc_main$3T,_sfc_render$3T,_sfc_staticRenderFns$3T,!1,null,"b787d38f",null,null);const flowDesign$2=__component__$3T.exports,mixins$F={data(){return{tableColumns:[{transKey:"gd.dict.dictValue",prop:"value",label:"\u5B57\u5178\u503C",type:"slot",slotType:"values",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.dict.sort",prop:"sort",width:"120",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.dict.colour",prop:"sort",label:"\u989C\u8272",align:"left",type:"slot",slotType:"colour"},{transKey:"gd.dict.state",prop:"statecodes",label:"\u72B6\u6001",align:"center",type:"slot",slotType:"statecodes"},{transKey:"gd.dict.remark",prop:"remark",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.dict.dictValue",prop:"value",label:"\u5B57\u5178\u503C",effectType:"input",rules:[]},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"inputnumber",rules:[]}]}}},main_vue_vue_type_style_index_0_scoped_0ed659c1_lang="",_sfc_main$3S={mixins:[mixins$F],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{confirmLoading:!1,fullscreen:!1,visible:!1,width:"70%",typeId:"",queryParam:{},loadData:i=>(this.queryParam.typeId=this.typeId,system_dict.sysDictDataPage(Object.assign(i,this.queryParam,{})).then(t=>t.data))}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},...chartbi.mapGetters(["tablePageSize","tableSize","screenHeight"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){this.visible=!0,this.fullscreen=!1,this.typeId=i.objectid,this.queryParam.typeId=i.id},saveQueries(i){this.queryParam={...i},this.refresh()},refresh(){this.$refs.tableManage.refresh()},closed(){this.visible=!1},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3S=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"tableManage",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,height:t.getHeight,filtering:!0},scopedSlots:t._u([{key:"values",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"value",row:l,transKey:`Dynamics.${l.transKey}`,highlight:""}})]}},{key:"statecodes",fn:function(a){return[s("div",[a.row.statecodes?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"colour",fn:function(a){return[a.row.colour?s("el-tag",{style:`background-color:${a.row.colour};border-color:${a.row.colour}`,attrs:{effect:"dark"}},[t._v(" "+t._s(a.row.colour)+" ")]):t._e()]}},{key:"remark",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:l}})]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}],null,!1,455425881)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3S=[],__component__$3S=chartbi.normalizeComponent(_sfc_main$3S,_sfc_render$3S,_sfc_staticRenderFns$3S,!1,null,"0ed659c1",null,null);const Dictdetail=__component__$3S.exports,index_vue_vue_type_style_index_0_scoped_2830d181_lang="",columns$1=[{type:"selection",width:"60",fixed:!0},{transKey:"gd.field.describe",prop:"columnComment",label:"\u63CF\u8FF0",width:"200",type:"slot",slotType:"columnComment",align:"left"},{transKey:"gd.field.field",prop:"columnname",label:"\u5B57\u6BB5",width:"120",align:"left",title:"\u5B57\u6BB5"},{transKey:"gd.field.effectType",prop:"effectType",label:"\u4F5C\u7528\u7C7B\u578B",width:"100",type:"slot",slotType:"effectType",align:"left"}],_sfc_main$3R={props:{codeGenId:{type:[String,Number],default:""}},data(){return{columns:columns$1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleOk",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,spinning:!1,loadDataList:i=>new Promise((t,s)=>{t({pageNo:1,pageSize:100,totalRows:0,rows:this.loadData})}),loadData:i=>this.getField(i),selectedRowKeys:[],selectedRows:[],fullscreen:!1,width:"800px",confirmLoading:!1}},computed:{y(){let i=this.screenHeight-272;return this.fullscreen?i+150:i},...chartbi.mapGetters(["tableSize","screenHeight","tablePageSize"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(i){this.fullscreen=!1,this.visible=!0,this.selectedRowKeys=i},handleOk(){this.$emit("ok",this.selectedRowKeys),this.handleCancel()},handleCancel(){this.visible=!1},getField(){return this.confirmLoading=!0,messages.onlineFormGetCodeGenerateList({codeGenId:this.codeGenId}).then(i=>{if(i.code===200)return this.confirmLoading=!1,{pageNo:1,pageSize:40,totalRows:0,rows:i.data.filter(s=>(s.children=null,s.effecttype=="about"&&s.columnname==(s.relations+"_AboutTable").toLowerCase()?!1:!(s.effecttype=="currency"&&s.columnname==(s.relations+"_Currency_Base").toLowerCase())))}})},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){this.handleOk()}}};var _sfc_render$3R=function(){var t=this,s=t._self._c;return s("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.flow.process.title","\u4E1A\u52A1\u6D41\u7A0B"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.togglefullscreen,close:t.handleCancel},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],class:t.fullscreen?"modal-bodyq":"modal-body"},[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.columns,selectedRowKeys:t.selectedRowKeys,filtering:!1,showPagination:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"columnComment",fn:function({column:a,row:l}){return[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" ")]}},{key:"effectType",fn:function({column:a,row:l}){return[t._v(" "+t._s(t._f("dictType")("code_gen_effect_type",l.effecttype))+" ")]}}])})],1)],1)},_sfc_staticRenderFns$3R=[],__component__$3R=chartbi.normalizeComponent(_sfc_main$3R,_sfc_render$3R,_sfc_staticRenderFns$3R,!1,null,"2830d181",null,null);const FlowsDesignerGenName=__component__$3R.exports,settings_vue_vue_type_style_index_0_scoped_b38a28a9_lang="",_sfc_main$3Q={props:{status:{type:String,default:"process"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{tableNameData:[],fetching:!1,codeGenId:"",disabled:!0,fieldList:[],userList:[],show:!1,datail:null,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],ranges:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],firing:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],isBackgroud:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{name:"",transKey:null,langs:"[]",isBackgroud:[],firing:[]},confirmLoading:!1}},computed:{disableds(){return this.permissionsBnt?this.stateCodes==1:!0},disabledd(){return this.permissionsBnt?this.status=="success"?this.datail?!!this.datail.code:!1:this.stateCodes==1:!0},...chartbi.mapGetters(["screenHeight","labelPosition","formMode"])},components:{FlowsDesignerGenName},methods:{lookupSeled(i){let t=[];i.langs.forEach(s=>{t.push({name:s.languageName,val:s.description,code:s.languageCode})}),this.ruleFormData={name:i.defaultText,langs:JSON.stringify(t)}},selGenName(){this.$refs.codeGenName.open(this.fieldList)},sbumitGenName(i){this.fieldList=i},addSubmit(){this.$refs.ruleForm.validate(i=>{i&&this.$emit("next",Object.assign({...this.ruleFormData},{updateFields:this.fieldList,langs:JSON.parse(this.ruleFormData.langs)}))})},init(i){this.datail=i,this.fieldList=[],this.show=!!(i&&i.stateCodes!==void 0);let t=i?i.langs:[];this.$nextTick(()=>{setTimeout(()=>{this.fieldList=i?i.updateFields:[];let s={name:i?i.name:"",sysCodeGenId:i?i.sysCodeGenId:"",ranges:i?i.ranges:"",isBackgroud:i?i.isBackgroud:[],firing:i?i.firing:[],code:i?i.code:chartbi.uuid(8),transKey:i?i.transKey:null,langs:JSON.stringify(t)};i&&i.stateCodes!==void 0&&(s=Object.assign(s,{stateCodes:i.stateCodes}),this.calculation(s),this.codeGenId=i.sysCodeGenId),this.ruleFormData=s,this.$refs.ruleForm.resetFields(),this.$refs.gdTranslation},0)})},searchTable(i){this.fetching=!0,this.tableNameData=[],messages.codeGenerateInformationList({busName:i}).then(t=>{this.tableNameData=[...t.data],this.fetching=!1})},firingChange(i){let t=this.ruleFormData;t.firing=i,this.calculation(t)},selTable(i){let t=this.ruleFormData;t.sysCodeGenId=i.id,this.codeGenId=i.id,this.calculation(t)},calculation(i){let t=i.firing!==void 0?i.firing:[],s=i.sysCodeGenId!==void 0&&i.sysCodeGenId!="";this.disabled=!(s&&t.includes("2"))},getDictionary(i){return this.$options.filters.dictData(i)}},created(){this.searchTable("");let i=this.$options.filters.dictData("data_scope_type");this.userList=i.filter(t=>t.code!=5)}};var _sfc_render$3Q=function(){var t=this,s=t._self._c;return s("div",{staticClass:"setting"},[s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.transKey,callback:function(a){t.$set(t.ruleFormData,"transKey",a)},expression:"ruleFormData.transKey"}})],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.langs,callback:function(a){t.$set(t.ruleFormData,"langs",a)},expression:"ruleFormData.langs"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.datail||t.datail&&!t.datail.transKey,expression:"!datail || (datail && !datail.transKey)"}],attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.table","\u8868"),prop:"sysCodeGenId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),disabled:t.status=="success",filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchTable,loading:t.fetching},model:{value:t.ruleFormData.sysCodeGenId,callback:function(a){t.$set(t.ruleFormData,"sysCodeGenId",a)},expression:"ruleFormData.sysCodeGenId"}},t._l(t.tableNameData,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname)},nativeOn:{click:function(n){return t.selTable(a)}}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+t._s(a.tablename))])])}),1)],1)],1)],1),s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.range"),prop:"ranges"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",disabled:t.disableds},model:{value:t.ruleFormData.ranges,callback:function(a){t.$set(t.ruleFormData,"ranges",a)},expression:"ruleFormData.ranges"}},t._l(t.userList,function(a,l){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name)))])])}),1)],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.run","\u8FD0\u884C"),prop:"isBackgroud"}},[s("el-checkbox-group",{attrs:{disabled:t.disableds},model:{value:t.ruleFormData.isBackgroud,callback:function(a){t.$set(t.ruleFormData,"isBackgroud",a)},expression:"ruleFormData.isBackgroud"}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-checkbox",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.backgrounder","\u5728\u540E\u53F0\u8FD0\u884C\u6B64\u5DE5\u4F5C\u6D41"))+" ")])],1)],1)],1)],1)],1)],1),s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"code"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disabledd,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.code,callback:function(a){t.$set(t.ruleFormData,"code",a)},expression:"ruleFormData.code"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.startTime","\u542F\u52A8\u65F6\u95F4"),prop:"firing"}},[s("el-checkbox-group",{attrs:{disabled:t.disableds},on:{change:t.firingChange},model:{value:t.ruleFormData.firing,callback:function(a){t.$set(t.ruleFormData,"firing",a)},expression:"ruleFormData.firing"}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-checkbox",{attrs:{label:"1"}},[t._v(t._s(t.$i18nt("gd.flow.work.afterCreation","\u521B\u5EFA\u8BB0\u5F55\u540E")))])],1),s("el-col",{attrs:{span:24}},[s("el-checkbox",{attrs:{label:"2",disabled:t.disableds}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.afterChange","\u8BB0\u5F55\u5B57\u6BB5\u66F4\u6539\u540E"))+" "),s("el-button",{staticClass:"sel",attrs:{type:t.disableds||t.disabled?"info":"primary",size:"mini",disabled:t.disableds?!0:t.disabled},on:{click:t.selGenName}},[t._v(" "+t._s(t.$i18nt("gd.btn.choice","\u9009\u62E9"))+" ")])],1)],1),s("el-col",{attrs:{span:24}},[s("el-checkbox",{attrs:{label:"3",disabled:t.disableds}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.afterDeletion","\u5220\u9664\u8BB0\u5F55\u540E"))+" ")])],1)],1)],1)],1)],1),t.show?s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state","\u72B6\u6001"),prop:"stateCodes"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(a){t.$set(t.ruleFormData,"stateCodes",a)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(a,l){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1):t._e()],1)],1),s("FlowsDesignerGenName",{ref:"codeGenName",attrs:{codeGenId:t.codeGenId},on:{ok:t.sbumitGenName}})],1)},_sfc_staticRenderFns$3Q=[],__component__$3Q=chartbi.normalizeComponent(_sfc_main$3Q,_sfc_render$3Q,_sfc_staticRenderFns$3Q,!1,null,"b38a28a9",null,null);const Settings$1=__component__$3Q.exports,flowDesign_vue_vue_type_style_index_0_scoped_695cbf40_lang="",_sfc_main$3P={props:{modeType:{type:String,default:"work"}},data(){return{scaleVal:100,permissionsBnt:!0,record:null,title:"\u5DE5\u4F5C\u6D41",visible:!1,confirmLoading:!1,list:[],sysViewButtons:[{displayName:"\u4E0A\u4E00\u6B65",functionName:"previous",show:!1,transKey:"gd.btn.prev",icon:"el-icon-d-arrow-left"},{displayName:"\u4E0B\u4E00\u6B65",functionName:"next",show:!0,transKey:"gd.btn.next",icon:"el-icon-d-arrow-right"},{displayName:"\u4FDD\u5B58",functionName:"handleSubmit",show:!1,transKey:"gd.btn.save",icon:"el-icon-document-checked"}],current:-1,status:"success",detail:null,fullscreen:!1,width:"90%",stateCodes:0}},components:{Settings:Settings$1},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"40px"}}},bodyStyle(){return{background:this.current==0?"#f5f6f6":"#fff",borderRadius:"10px"}}},methods:{changeCurrent(i){this.current!==i&&this.onChange(i)},plusAdd(i){let t=i=="-"?this.scaleVal-5:this.scaleVal+5;this.scaleVal=t<=50?50:t>=150?150:t},toggleFullscreen(){this.fullscreen=!this.fullscreen},onChange(i){if(i==1){this.next();return}this.previous()},open(i){this.fullscreen=!1,this.record=i,this.visible=!0;let t=i?"sysFlowWork:edit":"sysFlowWork:add";if(this.permissionsBnt=this.$hasPerm(t),this.sysViewButtons=this.sysViewButtons.map(s=>(s.displayName==="\u4FDD\u5B58"&&(s.name=t),s)),i){this.current=1,this.getDetail();return}this.stateCodes=0,this.current=0,this.status="process",this.init()},init(){let i=[],t=workData("start"),s=workData("end");i.push(t),i.push(s),this.list=i,this.$nextTick(()=>{setTimeout(()=>{this.$refs.settings.init(null)},0)})},getDetail(i){this.confirmLoading=!0,messages.onlineWorkflowDetails({id:this.record}).then(t=>{if(t.success){let s=[],a=workData("start"),l=t.data.data.updatefields!=""?t.data.data.updatefields.split(","):[];l=l.map(r=>Number(r));let n={name:t.data.data.name,sysCodeGenId:t.data.data.syscodegenid,ranges:t.data.data.ranges?String(t.data.data.ranges):"",stateCodes:String(t.data.data.statecodes),isBackgroud:t.data.data.isbackgroud?String(t.data.data.isbackgroud).split(","):[],firing:t.data.data.firing?String(t.data.data.firing).split(","):[],updateFields:l,code:t.data.data.code?t.data.data.code:"",langs:[],transKey:t.data.data.transkey?t.data.data.transkey:null},o=workData("end");s.push(a),s=s.concat(t.data.list),s.push(o),this.list=s,this.detail=t.data,this.stateCodes=this.modeType==="work"?t.data.data.statecodes:1,this.sbumitNext(n)}this.confirmLoading=!1})},sbumitNext(i){this.current=1,this.list[0].data=i,this.sysViewButtons=this.sysViewButtons.filter((t,s)=>(t.show=s!=1,this.stateCodes==1&&s===2&&(t.show=!1),!0)),this.status="success",this.$nextTick(()=>{setTimeout(()=>{this.$refs.flowsDesigner.init(this.list),this.$refs.settings.init(this.list[0].data)},0)})},handleSubmit(){let i=this.$refs.flowsDesigner.list,t=i.length-1,s=i.filter((r,d)=>!(d==0||d==t));if(s.length==0){this.$message.error(this.$i18nt("gd.flow.perfectTip"));return}if(!this.isChecked(s[0].list)){this.$message.error(this.$i18nt("gd.flow.perfectTip"));return}let a=[];const l=r=>(r=r.filter((d,u)=>(d.list!==void 0&&d.list&&d.list.length>0&&(d.list=l(d.list)),d.type=="condition"&&d.list.forEach(p=>{p.type!="else"&&(p.err=p.fieldwheres.length==0,p.err&&a.push(p)),p.list=l(p.list)}),d.type=="step"&&(d.err=d.list.length==0,d.err&&a.push(d)),!0)),r);l(s[0].list);let n=i[0].data;typeof n.isBackgroud!="string"&&(n.isBackgroud=n.isBackgroud.join(","),n.firing=n.firing.join(","),n.updateFields=n.updateFields.join(","));let o=new Map;for(let r in n)o.set(r.toLowerCase(),n[r]);if(Object.fromEntries(o),s[0],a.length>0){this.$message.error(this.$i18nt("gd.flow.nodeTip"));return}this.record?this.edit(Object.fromEntries(o),s[0]):this.add(Object.fromEntries(o),s[0])},add(i,t){this.confirmLoading=!0,i.stateCodes=0,messages.onlineWorkflowAdd({data:i,list:t}).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail")+s.message),this.confirmLoading=!1})},edit(i,t){this.confirmLoading=!0,messages.onlineWorkflowEdit({data:Object.assign(this.detail.data,i),list:t}).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.editSucc")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail")+s.message),this.confirmLoading=!1})},isChecked(i){return i.every((t,s,a)=>t.list.length>0)},previous(){this.sysViewButtons=this.sysViewButtons.filter((i,t)=>(i.show=t==1,this.stateCodes==1&&t===2&&(i.show=!1),!0)),this.current=0,this.list=this.$refs.flowsDesigner.list,this.$nextTick(()=>{setTimeout(()=>{this.$refs.settings.init(this.list[0].data)},0)})},next(){this.$refs.settings.addSubmit()},async handleCancel(){this.visible=!1,this.detail=null,await this.init(),setTimeout(()=>{this.$refs.flowsDesigner.init(this.list),this.previous()},200)},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$3P=function(){var t=this,s=t._self._c;return s("el-dialog",{class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.modalStyle.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","body-style":t.bodyStyle,"show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.flow.work.title","\u5DE5\u4F5C\u6D41"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen},slot:"title"}),s("div",{staticClass:"dsteps",staticStyle:{position:"absolute",left:"50%",top:"0px",transform:"translateX(-50%)",display:"flex","justify-content":"center","z-index":"12",width:"50%",height:"54px","align-items":"center"}},[s("el-steps",{attrs:{active:t.current,simple:""},on:{change:t.onChange}},[s("el-step",{staticStyle:{cursor:"pointer"},attrs:{title:t.$i18nt("gd.flow.basicSettings","\u57FA\u7840\u8BBE\u7F6E"),status:t.status},nativeOn:{click:function(a){return t.changeCurrent(0)}}}),s("el-step",{staticStyle:{cursor:"pointer"},attrs:{title:t.$i18nt("gd.flow.processDesign","\u6D41\u7A0B\u8BBE\u8BA1")},nativeOn:{click:function(a){return t.changeCurrent(1)}}})],1)],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],class:t.fullscreen?"modal-bodyq":"modal-body",staticStyle:{"overflow-x":"auto"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current==1,expression:"current == 1"}],staticClass:"suo"},[s("i",{staticClass:"el-icon-remove-outline",staticStyle:{"font-size":"22px",cursor:"pointer"},on:{click:function(a){return t.plusAdd("-")}}}),s("div",{staticClass:"bi"},[s("a",[t._v(t._s(t.scaleVal)+"%")])]),s("i",{staticClass:"el-icon-circle-plus-outline",staticStyle:{"font-size":"22px",cursor:"pointer"},on:{click:function(a){return t.plusAdd("+")}}})]),s("Settings",{directives:[{name:"show",rawName:"v-show",value:t.current==0,expression:"current == 0"}],ref:"settings",attrs:{status:t.status,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{next:t.sbumitNext}}),s("gd-work-flow",{directives:[{name:"show",rawName:"v-show",value:t.current==1,expression:"current == 1"}],ref:"flowsDesigner",attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,scaleVal:t.scaleVal}})],1)],1)},_sfc_staticRenderFns$3P=[],__component__$3P=chartbi.normalizeComponent(_sfc_main$3P,_sfc_render$3P,_sfc_staticRenderFns$3P,!1,null,"695cbf40",null,null);const flowDesign$1=__component__$3P.exports,settings_vue_vue_type_style_index_0_scoped_74f2e413_lang="",_sfc_main$3O={props:{status:{type:String,default:"process"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},startCategory:{type:String,default:""}},data(){return{state:!1,tableNameData:[],fetching:!1,show:!1,msgList:[],msgListCC:[],msgListPress:[],msgListBack:[],msgListRject:[],msgListEnd:[],msgListTrans:[],msgListReturn:[],msgListApproval:[],msgListAutomatic:[],fkEntityName:"Msg_MessagetemPlate",type:1,datail:null,showHistory:!1,textReturn:!1,textSgin:!1,isReturnMsg:!1,isRejectMsg:!1,ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],tableId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],category:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],autoApprovalType:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],enCode:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},templateList:null,msgType:null,list:[{type:"",tempid:"",msgList:[]}],msgcclist:[{type:"",tempid:"",msgList:[]}],msguplist:[{type:"",tempid:"",msgList:[]}],msgrvlist:[{type:"",tempid:"",msgList:[]}],msgrjlist:[{type:"",tempid:"",msgList:[]}],msgtrlist:[{type:"",tempid:"",msgList:[]}],msgaslist:[{type:"",tempid:"",msgList:[]}],msgrtlist:[{type:"",tempid:"",msgList:[]}],msgrtalist:[{type:"",tempid:"",msgList:[]}],msgaalist:[{type:"",tempid:"",msgList:[]}]}},computed:{categoryDisableds(){let i=this.getDictionary("table_flows_type").filter(t=>t.code==this.startCategory)[0];return i===void 0||i.statecodes==1?"":i.code},dictList(){return this.getDictionary("table_flows_type").filter(t=>t.statecodes==1||t.code==this.categoryDisableds)},disableds(){return this.permissionsBnt?this.stateCodes==1:!0},getSendType(){let i=[],t=[];return this.getDictionary("SendType").map(a=>(a.disabled=a.statecodes!=1,a.disabled?t.push(a):i.push(a),a)),i.concat(t)},...chartbi.mapGetters(["screenHeight","labelPosition","formMode"])},methods:{onChange(i){this.isReturnMsg=i.target.checked},onChange1(i){this.isRejectMsg=i.target.checked},lookupSeled(i){this.type==1?this.msgList=i.fkData:this.type==2?this.msgListCC=i.fkData:this.type==3?this.msgListPress=i.fkData:this.type==4?this.msgListBack=i.fkData:this.type==5?this.msgListRject=i.fkData:this.type==6?this.msgListTrans=i.fkData:this.type==7?this.msgListEnd=i.fkData:this.type==8?this.msgListReturn=i.fkData:this.type==9?this.msgListApproval=i.fkData:this.type==10&&(this.msgListAutomatic=i.fkData)},async lookup(i,t){this.type=i;let s=t,a={fkEntityName:this.fkEntityName,effectType:"fk",options:{},val:s};this.$refs.engineSearch.open(a)},addSubmit(){this.$refs.ruleForm.validate(i=>{if(i){const t=this.list.map(h=>{const{msgList:f,...m}=h;return m}),s=this.msgcclist.map(h=>{const{msgList:f,...m}=h;return m}),a=this.msguplist.map(h=>{const{msgList:f,...m}=h;return m}),l=this.msgrvlist.map(h=>{const{msgList:f,...m}=h;return m}),n=this.msgrjlist.map(h=>{const{msgList:f,...m}=h;return m}),o=this.msgtrlist.map(h=>{const{msgList:f,...m}=h;return m}),r=this.msgaslist.map(h=>{const{msgList:f,...m}=h;return m}),d=this.msgrtlist.map(h=>{const{msgList:f,...m}=h;return m}),u=this.msgrtalist.map(h=>{const{msgList:f,...m}=h;return m}),p=this.msgaalist.map(h=>{const{msgList:f,...m}=h;return m});this.$emit("next",Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)},{isRejectMsg:this.isRejectMsg==!0?1:0},{isReturnMsg:this.isReturnMsg==!0?1:0},{msg_MessagetemPlateId:JSON.stringify(t)},{msg_MessagetemPlateId_CC:JSON.stringify(s)},{msg_MessagetemPlateId_UP:JSON.stringify(a)},{msg_MessagetemPlateId_RV:JSON.stringify(l)},{msg_MessagetemPlateId_RJ:JSON.stringify(n)},{msg_MessagetemPlateId_TR:JSON.stringify(o)},{msg_MessagetemPlateId_AS:JSON.stringify(r)},{msg_MessagetemPlateId_RT:JSON.stringify(d)},{msg_MessagetemPlateId_RTA:JSON.stringify(u)},{msg_MessagetemPlateId_AA:JSON.stringify(p)}))}})},init(i){if(this.state)return;this.state=!0,this.datail=i,this.show=!!(i&&i.stateCodes!=null);let t=i?i.langs:[];this.$nextTick(()=>{setTimeout(()=>{let s={name:i?i.name:"",isresubmit:i?i.isresubmit:"0",tableId:i?i.tableId:void 0,category:i?i.category:void 0,description:i?i.description:"",enCode:i?i.enCode:chartbi.uuid(8),autoApprovalType:i?String(i.autoApprovalType):"0",transKey:i?i.transKey:null,langs:JSON.stringify(t)};this.isReturnMsg=!!(i&&i.isReturnMsg==1),this.isRejectMsg=!!(i&&i.isRejectMsg==1),i&&i.stateCodes!=null&&(s=Object.assign(s,{stateCodes:i.stateCodes}));let a=[];[].forEach((n,o)=>{let r=this.searchMsgDataId(n.d,n.t,16*o);a.push(r)}),Promise.all(a).then(()=>{this.state=!1}),i&&i.msg_MessagetemPlateId&&typeof i.msg_MessagetemPlateId=="string"&&JSON.parse(i.msg_MessagetemPlateId).length>0?(this.list=i&&i.msg_MessagetemPlateId?JSON.parse(i.msg_MessagetemPlateId).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.list.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.list=[{type:"",tempid:"",msgList:[]}],i&&i.msg_MessagetemPlateId_CC&&typeof i.msg_MessagetemPlateId_CC=="string"&&JSON.parse(i.msg_MessagetemPlateId_CC).length>0?(this.msgcclist=i&&i.msg_MessagetemPlateId_CC?JSON.parse(i.msg_MessagetemPlateId_CC).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgcclist.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.msgcclist=[{type:"",tempid:"",msgList:[]}],i&&i.msg_MessagetemPlateId_UP&&typeof i.msg_MessagetemPlateId_UP=="string"&&JSON.parse(i.msg_MessagetemPlateId_UP).length>0?(this.msguplist=i&&i.msg_MessagetemPlateId_UP?JSON.parse(i.msg_MessagetemPlateId_UP).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msguplist.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.msguplist=[{type:"",tempid:"",msgList:[]}],i&&i.msg_MessagetemPlateId_RV&&typeof i.msg_MessagetemPlateId_RV=="string"&&JSON.parse(i.msg_MessagetemPlateId_RV).length>0?(this.msgrvlist=i&&i.msg_MessagetemPlateId_RV?JSON.parse(i.msg_MessagetemPlateId_RV).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgrvlist.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.msgrvlist=[{type:"",tempid:"",msgList:[]}],i&&i.msg_MessagetemPlateId_RJ&&typeof i.msg_MessagetemPlateId_RJ=="string"&&JSON.parse(i.msg_MessagetemPlateId_RJ).length>0?(this.msgrjlist=i&&i.msg_MessagetemPlateId_RJ?JSON.parse(i.msg_MessagetemPlateId_RJ).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgrjlist.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.msgrjlist=[{type:"",tempid:"",msgList:[]}],i&&i.msg_MessagetemPlateId_TR&&typeof i.msg_MessagetemPlateId_TR=="string"&&JSON.parse(i.msg_MessagetemPlateId_TR).length>0?(this.msgtrlist=i&&i.msg_MessagetemPlateId_TR?JSON.parse(i.msg_MessagetemPlateId_TR).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgtrlist.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.msgtrlist=[{type:"",tempid:"",msgList:[]}],i&&i.msg_MessagetemPlateId_AS&&typeof i.msg_MessagetemPlateId_AS=="string"&&JSON.parse(i.msg_MessagetemPlateId_AS).length>0?(this.msgaslist=i&&i.msg_MessagetemPlateId_AS?JSON.parse(i.msg_MessagetemPlateId_AS).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgaslist.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.msgaslist=[{type:"",tempid:"",msgList:[]}],i&&i.msg_MessagetemPlateId_RT&&typeof i.msg_MessagetemPlateId_RT=="string"&&JSON.parse(i.msg_MessagetemPlateId_RT).length>0?(this.msgrtlist=i&&i.msg_MessagetemPlateId_RT?JSON.parse(i.msg_MessagetemPlateId_RT).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgrtlist.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.msgrtlist=[{type:"",tempid:"",msgList:[]}],i&&i.msg_MessagetemPlateId_RTA&&typeof i.msg_MessagetemPlateId_RTA=="string"&&JSON.parse(i.msg_MessagetemPlateId_RTA).length>0?(this.msgrtalist=i&&i.msg_MessagetemPlateId_RTA?JSON.parse(i.msg_MessagetemPlateId_RTA).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgrtalist.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.msgrtalist=[{type:"",tempid:"",msgList:[]}],i&&i.msg_MessagetemPlateId_AA&&typeof i.msg_MessagetemPlateId_AA=="string"&&JSON.parse(i.msg_MessagetemPlateId_AA).length>0?(this.msgaalist=i&&i.msg_MessagetemPlateId_AA?JSON.parse(i.msg_MessagetemPlateId_AA).map(n=>({...n,type:String(n.type),msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgaalist.forEach(n=>{n.tempid!=""&&this.selTemplateType(n)})):this.msgaalist=[{type:"",tempid:"",msgList:[]}],this.ruleFormData=s,this.$refs.ruleForm.resetFields(),this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},searchTable(i){this.fetching=!0,this.tableNameData=[],messages.codeGenerateApprovalList({busName:i}).then(t=>{this.tableNameData=[...t.data],this.fetching=!1})},changeMsg(i){this.msgType=i,this.searchMsgData("")},searchMsgData(i){let t={fkEntityName:this.fkEntityName,name:i};this.fetching=!0,this.msgList=this.msgType==1?[]:this.msgList,this.msgListCC=this.msgType==2?[]:this.msgListCC,this.msgListPress=this.msgType==3?[]:this.msgListPress,this.msgListBack=this.msgType==4?[]:this.msgListBack,this.msgListRject=this.msgType==5?[]:this.msgListRject,this.msgListTrans=this.msgType==6?[]:this.msgListTrans,this.msgListEnd=this.msgType==7?[]:this.msgListEnd,this.msgListReturn=this.msgType==8?[]:this.msgListReturn,this.msgListApproval=this.msgType==9?[]:this.msgListApproval,this.msgListAutomatic=this.msgType==10?[]:this.msgListAutomatic,messages.baseFkList(t).then(s=>{this.fetching=!1,s.success&&(this.msgList=this.msgType==1?[...s.data]:this.msgList,this.msgListCC=this.msgType==2?[...s.data]:this.msgListCC,this.msgListPress=this.msgType==3?[...s.data]:this.msgListPress,this.msgListBack=this.msgType==4?[...s.data]:this.msgListBack,this.msgListRject=this.msgType==5?[...s.data]:this.msgListRject,this.msgListTrans=this.msgType==6?[...s.data]:this.msgListTrans,this.msgListEnd=this.msgType==7?[...s.data]:this.msgListEnd,this.msgListReturn=this.msgType==8?[...s.data]:this.msgListReturn,this.msgListApproval=this.msgType==9?[...s.data]:this.msgListApproval,this.msgListAutomatic=this.msgType==10?[...s.data]:this.msgListAutomatic)})},searchMsgDataId(i,t,s=0){let a={fkEntityName:this.fkEntityName,id:i};this.fetching=!0,this.msgList=t==1?[]:this.msgList,this.msgListCC=t==2?[]:this.msgListCC,this.msgListPress=t==3?[]:this.msgListPress,this.msgListBack=t==4?[]:this.msgListBack,this.msgListRject=t==5?[]:this.msgListRject,this.msgListTrans=t==6?[]:this.msgListTrans,this.msgListEnd=t==7?[]:this.msgListEnd,this.msgListReturn=t==8?[]:this.msgListReturn,this.msgListApproval=t==9?[]:this.msgListApproval,this.msgListAutomatic=t==10?[]:this.msgListAutomatic,setTimeout(()=>{messages.baseFkList(a).then(l=>{l.success&&(this.msgList=t==1?[...l.data]:this.msgList,this.msgListCC=t==2?[...l.data]:this.msgListCC,this.msgListPress=t==3?[...l.data]:this.msgListPress,this.msgListBack=t==4?[...l.data]:this.msgListBack,this.msgListRject=t==5?[...l.data]:this.msgListRject,this.msgListTrans=t==6?[...l.data]:this.msgListTrans,this.msgListEnd=t==7?[...l.data]:this.msgListEnd,this.msgListReturn=t==8?[...l.data]:this.msgListReturn,this.msgListApproval=t==9?[...l.data]:this.msgListApproval,this.msgListAutomatic=t==10?[...l.data]:this.msgListAutomatic),this.fetching=!1})},s)},getDictionary(i){return this.$options.filters.dictData(i)},toggleHistory(){this.showHistory=!this.showHistory},addList(i){let t={id:chartbi.uuid(),type:"",msgList:""};i=="1"?this.list=this.list.concat(t):i=="2"?this.msgcclist=this.msgcclist.concat(t):i=="3"?this.msguplist=this.msguplist.concat(t):i=="4"?this.msgrvlist=this.msgrvlist.concat(t):i=="5"?this.msgrjlist=this.msgrjlist.concat(t):i=="6"?this.msgtrlist=this.msgtrlist.concat(t):i=="7"?this.msgaslist=this.msgaslist.concat(t):i=="8"?this.msgrtlist=this.msgrtlist.concat(t):i=="9"?this.msgrtalist=this.msgrtalist.concat(t):i=="10"&&(this.msgaalist=this.msgaalist.concat(t))},delList(i,t){t=="1"?this.list=this.list.filter((s,a)=>a!=i):t=="2"?this.msgcclist=this.msgcclist.filter((s,a)=>a!=i):t=="3"?this.msguplist=this.msguplist.filter((s,a)=>a!=i):t=="4"?this.msgrvlist=this.msgrvlist.filter((s,a)=>a!=i):t=="5"?this.msgrjlist=this.msgrjlist.filter((s,a)=>a!=i):t=="6"?this.msgtrlist=this.msgtrlist.filter((s,a)=>a!=i):t=="7"?this.msgaslist=this.msgaslist.filter((s,a)=>a!=i):t=="8"?this.msgrtlist=this.msgrtlist.filter((s,a)=>a!=i):t=="9"?this.msgrtalist=this.msgrtalist.filter((s,a)=>a!=i):t=="10"&&(this.msgaalist=this.msgaalist.filter((s,a)=>a!=i))},selTemplateType(i){messages.getTemplatesByType({templateType:i.type}).then(t=>{i.msgList=t.data})}},created(){this.searchTable("")}};var _sfc_render$3O=function(){var t=this,s=t._self._c;return s("div",{staticClass:"setting"},[s("el-form",{ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[s("el-form-item",{attrs:{label:"transKey"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.transKey,callback:function(a){t.$set(t.ruleFormData,"transKey",a)},expression:"ruleFormData.transKey"}})],1),s("el-form-item",{attrs:{label:"langs"}},[s("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165",placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.langs,callback:function(a){t.$set(t.ruleFormData,"langs",a)},expression:"ruleFormData.langs"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.datail||t.datail&&!t.datail.transKey,expression:"!datail || (datail && !datail.transKey)"}],staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.table","\u5173\u8054\u8868"),prop:"tableId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds?!0:t.status=="success",clearable:"",remote:"","reserve-keyword":"","remote-method":t.searchTable,loading:t.fetching},model:{value:t.ruleFormData.tableId,callback:function(a){t.$set(t.ruleFormData,"tableId",a)},expression:"ruleFormData.tableId"}},t._l(t.tableNameData,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname)}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname)))]),s("span",[t._v(t._s(a.tablename))])])}),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.classify","\u5206\u7C7B"),prop:"category"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.category,callback:function(a){t.$set(t.ruleFormData,"category",a)},expression:"ruleFormData.category"}},t._l(t.dictList,function(a,l){return s("el-option",{key:l,class:a.code===t.categoryDisableds?"category-dels":"",attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transKey}`,a.name)}})}),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.autoApproval","\u81EA\u52A8\u5BA1\u6279")}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.autoApprovalType,callback:function(a){t.$set(t.ruleFormData,"autoApprovalType",a)},expression:"ruleFormData.autoApprovalType"}},t._l(t.getDictionary("table_flows_autoApproval"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transKey}`,a.name)}})}),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.isResubmitnext","\u91CD\u590D\u7533\u8BF7"),prop:"isresubmit"}},[s("el-select",{staticStyle:{width:"100%"},model:{value:t.ruleFormData.isresubmit,callback:function(a){t.$set(t.ruleFormData,"isresubmit",a)},expression:"ruleFormData.isresubmit"}},[s("el-option",{attrs:{label:t.$i18nt("gd.placeholder.yes","\u662F"),value:1}}),s("el-option",{attrs:{label:t.$i18nt("gd.placeholder.no","\u5426"),value:0}})],1)],1)],1),s("el-col",{attrs:{span:24}},[s("div",{staticStyle:{"margin-bottom":"10px",float:"right"}},[s("span",[t._v(" "+t._s(t.$i18nt("gd.flow.approval.configTemplate","\u6A21\u7248\u914D\u7F6E"))+" "),t.showHistory==!1?s("a",{on:{click:t.toggleHistory}},[t._v(" "+t._s(t.$i18nt("gd.btn.down","\u5C55\u5F00"))+" "),s("i",{staticClass:"el-icon-arrow-down"})]):s("a",{on:{click:t.toggleHistory}},[t._v(" "+t._s(t.$i18nt("gd.btn.up","\u6536\u8D77"))+" "),s("i",{staticClass:"el-icon-arrow-up"})])])])]),s("el-col",{staticStyle:{position:"relative"},attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("1")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.megTemplate","\u5BA1\u6279\u6D88\u606F\u6A21\u677F"),prop:"msg_MessagetemPlateId"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.list.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.list,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(1)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"1")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("2")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.megTemplatecc","\u6284\u9001\u6D88\u606F\u6A21\u677F"),prop:"msg_MessagetemPlateId_CC"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgcclist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgcclist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(2)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"2")}}})])],1)}),1)],1)])],1),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showHistory,expression:"showHistory"}]},[s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("3")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.megTemplatePress","\u50AC\u529E\u6A21\u677F"),prop:"msg_MessagetemPlateId_UP"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msguplist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msguplist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(3)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"3")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("4")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.megTemplateRecall","\u64A4\u56DE\u6A21\u7248"),prop:"msg_MessagetemPlateId_RV"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgrvlist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgrvlist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(4)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"4")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("5")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurn"),prop:"msg_MessagetemPlateId_RJ"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgrjlist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgrjlist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(5)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"5")}}})])],1)}),1)],1),s("el-checkbox",{attrs:{disabled:t.disableds},on:{click:t.onChange1},model:{value:t.isRejectMsg,callback:function(a){t.isRejectMsg=a},expression:"isRejectMsg"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.textReturn","\u662F\u5426\u5F00\u542F\u9A73\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5"))+" ")])],1)],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("6")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurret","\u8F6C\u5BA1\u6A21\u677F"),prop:"msg_MessagetemPlateId_TR"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgtrlist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgtrlist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(6)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"6")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("7")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.megTemplateEnd","\u52A0\u7B7E\u6A21\u677F"),prop:"msg_MessagetemPlateId_AS"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgaslist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgaslist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(7)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"7")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("8")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.megTemplateSign","\u9000\u56DE\u6A21\u677F"),prop:"msg_MessagetemPlateId_RT"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgrtlist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgrtlist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(8)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"8")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"",prop:"isReturnMsg"}},[s("el-checkbox",{attrs:{disabled:t.disableds},on:{click:t.onChange},model:{value:t.isReturnMsg,callback:function(a){t.isReturnMsg=a},expression:"isReturnMsg"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.textSgin","\u662F\u5426\u5F00\u542F\u9000\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5"))+" ")])],1)],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("9")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.returnApproval","\u9000\u56DE\u5BA1\u6279\u6A21\u677F"),prop:"msg_MessagetemPlateId_RTA"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgrtalist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgrtalist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(9)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"9")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("10")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.automatic","\u81EA\u52A8\u5BA1\u6279\u6A21\u677F"),prop:"msg_MessagetemPlateId_AA"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgaalist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgaalist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(10)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"10")}}})])],1)}),1)],1)])],1)],1),t.show?s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.state","\u72B6\u6001"),prop:"stateCodes"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(a){t.$set(t.ruleFormData,"stateCodes",a)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1):t._e(),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"enCode"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.enCode,callback:function(a){t.$set(t.ruleFormData,"enCode",a)},expression:"ruleFormData.enCode"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.explain","\u63CF\u8FF0"),prop:"description"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:4,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.description,callback:function(a){t.$set(t.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$3O=[],__component__$3O=chartbi.normalizeComponent(_sfc_main$3O,_sfc_render$3O,_sfc_staticRenderFns$3O,!1,null,"74f2e413",null,null);const Settings=__component__$3O.exports,flowDesign_vue_vue_type_style_index_0_scoped_a5db5d81_lang="",_sfc_main$3N={props:{modeType:{type:String,default:"approval"}},data(){return{scaleVal:100,permissionsBnt:!0,record:null,title:"\u5BA1\u6279\u6D41\u7A0B",visible:!1,confirmLoading:!1,list:[],sysViewButtons:[{displayName:"\u4E0A\u4E00\u6B65",functionName:"previous",show:!1,transKey:"gd.btn.prev",icon:"el-icon-d-arrow-left"},{displayName:"\u4E0B\u4E00\u6B65",functionName:"next",show:!0,transKey:"gd.btn.next",icon:"el-icon-d-arrow-right"},{displayName:"\u4FDD\u5B58",functionName:"handleSubmit",show:!1,transKey:"gd.btn.save",icon:"el-icon-document-checked"}],current:-1,status:"success",detail:null,menberList:[],fullscreen:!1,width:"90%",stateCodes:0,startCategory:""}},components:{Settings},computed:{bodyStyle(){return{background:this.current==0?"#f5f6f6":"#fff",borderRadius:"10px"}}},methods:{changeCurrent(i){this.current!==i&&this.onChange(i)},plusAdd(i){let t=i=="-"?this.scaleVal-5:this.scaleVal+5;this.scaleVal=t<=50?50:t>=150?150:t},toggleFullscreen(){this.fullscreen=!this.fullscreen},onChange(i){if(i==1){this.next();return}this.previous()},open(i){this.startCategory="",this.fullscreen=!1,this.record=i;let t=i?"sysFlowWork:edit":"sysFlowWork:add";if(this.permissionsBnt=this.$hasPerm(t),this.sysViewButtons=this.sysViewButtons.map(s=>(s.displayName==="\u4FDD\u5B58"&&(s.name=t),s)),this.visible=!0,this.getMenber(),i){this.current=1,this.getDetail();return}this.current=0,this.stateCodes=0,this.status="process",this.init()},init(){let i=[],t=workData("start"),s=workData("end");i.push(t),i.push(s),this.list=i,this.$nextTick(()=>{setTimeout(()=>{this.$refs.settings.init(null)},0)})},getMenber(){messages.getBUEmployeeTree().then(i=>{if(i.code==200){const t=s=>(s=s.filter((a,l)=>(a.children&&a.children.length>0&&(a.children=t(a.children)),a.key=a.id,a.title=a.name,!0)),s);t(i.data),this.menberList=i.data}})},getDetail(i){this.confirmLoading=!0,messages.approvalProcessDetail(this.record).then(t=>{if(t.success){let s=[],a=workData("start"),l=t.data,n={name:l.name,enCode:l.encode,category:l.category,stateCodes:l.statecodes==1?"1":"0",description:l.description,tableId:l.tableid,msg_MessagetemPlateId:l.msg_messagetemplateid,msg_MessagetemPlateId_CC:l.msg_messagetemplateid_cc,msg_MessagetemPlateId_UP:l.msg_messagetemplateid_up,msg_MessagetemPlateId_RV:l.msg_messagetemplateid_rv,msg_MessagetemPlateId_RJ:l.msg_messagetemplateid_rj,msg_MessagetemPlateId_TR:l.msg_messagetemplateid_tr,msg_MessagetemPlateId_AS:l.msg_messagetemplateid_as,msg_MessagetemPlateId_RT:l.msg_messagetemplateid_rt,msg_MessagetemPlateId_RTA:l.msg_messagetemplateid_rta,msg_MessagetemPlateId_AA:l.msg_messagetemplateid_aa,isReturnMsg:l.isreturnmsg,isRejectMsg:l.isrejectmsg,autoApprovalType:l.autoapprovaltype,isresubmit:l.isresubmit,langs:[],transKey:t.data.transkey?t.data.transkey:null};this.startCategory=l.category;let o=workData("end");s.push(a);let r=JSON.parse(l.flowtemplatejson);r=r.filter(d=>d.type!="start"),s=s.concat(r),s.push(o),this.list=s,this.detail=l,this.stateCodes=this.modeType==="approval"?t.data.statecodes:1,this.sbumitNext(n)}this.confirmLoading=!1})},sbumitNext(i){this.current=1,this.list[0].data=i,this.sysViewButtons=this.sysViewButtons.filter((t,s)=>(t.show=s!=1,this.stateCodes==1&&s===2&&(t.show=!1),!0)),this.status="success",this.$nextTick(()=>{setTimeout(()=>{this.$refs.flowsDesigner.init(this.list),this.$refs.settings.init(i)},0)})},handleSubmit(){let i=this.$refs.flowsDesigner.list,t=i.length-1,s=i.filter((d,u)=>!(u==0||u==t));if(s.length==0){this.$message.error(this.$i18nt("gd.flow.perfectTip","\u8BF7\u5B8C\u5584\u4FE1\u606F!"));return}let a=[],l=i[0].data,n=[];const o=d=>(d=d.filter((u,p)=>(u.list&&u.list.length>0&&(u.list=o(u.list)),u.type=="condition"&&u.list.forEach(h=>{if(h.type!="else"){const f=h.properties.conditions.list.length>0?h.properties.conditions.list[0].columnname:h.properties.conditions.columnname;h.err=f==="",h.err&&a.push(h)}h.list=o(h.list)}),u.type=="parallel"&&u.list.forEach(h=>{const f=h.properties.conditions.list.length>0?h.properties.conditions.list[0].columnname:h.properties.conditions.columnname;h.err=f==="",h.err&&a.push(h),h.list=o(h.list)}),u.type=="circulate"&&u.properties.assigneeType===""&&(u.err=!0,a.push(u)),u.type==="approver"&&n.push(u),u.type=="approver"&&u.properties.assigneeType===""&&(u.err=!0,a.push(u)),u.type=="approver"&&u.properties.assigneeType&&this.isAutoApproval(l,u)&&(u.err=!0,a.push(u)),!0)),d);if(o(s),l=Object.assign({...l},{flowtemplatejson:JSON.stringify(s),enabled:l.enabled==1}),a.length>0){this.$message.error(this.$i18nt("gd.flow.nodeTip","\u8BF7\u6839\u636E\u63D0\u793A\u5B8C\u6210\u6D41\u7A0B\u8282\u70B9\u8BBE\u7F6E!"));return}if(n.length==0){this.$message.error(this.$i18nt("gd.flow.approval.nodeApproval","\u8BF7\u6DFB\u52A0\u5BA1\u6838\u4EBA\u6D41\u7A0B\u914D\u7F6E"));return}let r=new Map;for(let d in l)r.set(d.toLowerCase(),l[d]);this.record?this.edit(Object.fromEntries(r)):this.add(Object.fromEntries(r))},add(i){this.confirmLoading=!0,messages.approvalProcessAdd(i).then(t=>{if(t.success){this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok");let s=this.$refs.flowsDesigner.delTransKeyList;this.deltransKey(s),this.handleCancel(1)}else this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+t.message);this.confirmLoading=!1})},edit(i){this.confirmLoading=!0,messages.approvalProcessEdit(Object.assign({...this.detail},{...i})).then(t=>{if(t.success){this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok");let s=this.$refs.flowsDesigner.delTransKeyList;this.deltransKey(s),this.handleCancel(2)}else this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+t.message);this.confirmLoading=!1})},isAutoApproval(i,t){if(t.properties.assigneeType!="3"&&t.properties.assigneeType!="4")return!1;let a=this.getDictionary("table_flows_autoApproval").filter(o=>o.code==String(i.autoApprovalType))[0];if(a===void 0)return!0;let l=a.remark?a.remark.split("#"):[];return!(l.length>0?l[l.length-1].split(","):[]).includes(t.properties.autoApprvalType)},previous(){this.sysViewButtons=this.sysViewButtons.filter((i,t)=>(i.show=t==1,this.stateCodes==1&&t===2&&(i.show=!1),!0)),this.list=this.$refs.flowsDesigner.list,this.current=0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.settings.init(this.list[0].data)},0)})},next(){this.$refs.settings.addSubmit()},async handleCancel(i){if(i!==2&&i!==1){let t=this.$refs.flowsDesigner.addTransKeyList;this.deltransKey(t)}this.visible=!1,this.detail=null,await this.init(),setTimeout(()=>{this.$refs.flowsDesigner.init(this.list),this.previous()},200)},deltransKey(i){i.length!==0&&system_promptmanagement.sysTranslationDelName({name:i.join(",")})},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()},getDictionary(i){return this.$options.filters.dictData(i)}}};var _sfc_render$3N=function(){var t=this,s=t._self._c;return s("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.flow.approval.title","\u5BA1\u6279\u6D41\u7A0B"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,closed:"handleCancel",showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen},slot:"title"}),s("div",{staticClass:"dsteps",staticStyle:{position:"absolute",left:"50%",top:"0px",transform:"translateX(-50%)",display:"flex","justify-content":"center","z-index":"12",width:"50%",height:"54px","align-items":"center"}},[s("el-steps",{attrs:{active:t.current,simple:""},on:{change:t.onChange}},[s("el-step",{staticStyle:{cursor:"pointer"},attrs:{title:t.$i18nt("gd.flow.basicSettings","\u57FA\u7840\u8BBE\u7F6E"),status:t.status},nativeOn:{click:function(a){return t.changeCurrent(0)}}}),s("el-step",{staticStyle:{cursor:"pointer"},attrs:{title:t.$i18nt("gd.flow.processDesign","\u6D41\u7A0B\u8BBE\u8BA1")},nativeOn:{click:function(a){return t.changeCurrent(1)}}})],1)],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],class:t.fullscreen?"modal-bodyq":"modal-body",staticStyle:{"overflow-x":"auto"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current==1,expression:"current == 1"}],staticClass:"suo"},[s("i",{staticClass:"el-icon-remove-outline",staticStyle:{"font-size":"22px",cursor:"pointer"},on:{click:function(a){return t.plusAdd("-")}}}),s("div",{staticClass:"bi"},[s("a",[t._v(t._s(t.scaleVal)+"%")])]),s("i",{staticClass:"el-icon-circle-plus-outline",staticStyle:{"font-size":"22px",cursor:"pointer"},on:{click:function(a){return t.plusAdd("+")}}})]),s("Settings",{directives:[{name:"show",rawName:"v-show",value:t.current==0,expression:"current == 0"}],ref:"settings",attrs:{status:t.status,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,startCategory:t.startCategory},on:{next:t.sbumitNext}}),s("gd-approval-flow",{directives:[{name:"show",rawName:"v-show",value:t.current==1,expression:"current == 1"}],ref:"flowsDesigner",attrs:{menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,scaleVal:t.scaleVal,startCategory:t.startCategory}})],1)],1)},_sfc_staticRenderFns$3N=[],__component__$3N=chartbi.normalizeComponent(_sfc_main$3N,_sfc_render$3N,_sfc_staticRenderFns$3N,!1,null,"a5db5d81",null,null);const flowDesign=__component__$3N.exports,mixins$E={data(){return{tableColumns:[{transKey:"gd.solution.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.solution.component",prop:"rootcomponenttable",label:"\u6240\u5C5E\u7EC4\u4EF6(\u8868)",type:"slot",slotType:"rootcomponenttable",align:"left"},{transKey:"gd.solution.type",prop:"componenttype",label:"\u7C7B\u578B",type:"slot",slotType:"componenttype",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}]}}},main_vue_vue_type_style_index_0_scoped_4c82af6a_lang="",_sfc_main$3M={mixins:[mixins$E],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},detailAll:{type:Object,default:()=>({})},selList:{type:Array,default:()=>[]}},data(){return{solutionId:"",queryParam:{},loadData:i=>this.record.id===void 0?new Promise((t,s)=>{t({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>(t.success&&t.data.rows.map(s=>{if(s.rootcomponenttable=null,s.rootcomponentid){let a=this.tableDataAll.filter(l=>l.id==s.rootcomponentid)[0];return s.rootcomponenttable=a===void 0?null:a,s}}),t.data))}},components:{dictData:Dictdetail,tableData:DelTabsConfig,processData:flowDesign$2,worksData:flowDesign$1,approvalData:flowDesign},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id})},getHeight(){return this.height},styled(){return`color:${this.primaryColor};cursor: pointer;`},...chartbi.mapGetters(["tablePageSize","tableSize","primaryColor"])},methods:{seeTable(i){this.$refs.tableData.openSolution(i)},see(i){i.componenttype==0?this.seeTable(i.objectid):i.componenttype==11?this.$refs.dictData.open(i):i.componenttype==13?this.$refs.worksData.open(i.objectid):i.componenttype==14?this.$refs.processData.open(i.objectid):i.componenttype==16&&this.$refs.approvalData.open(i.objectid)},refresh(){this.$refs.table.refresh()},getDictionary(i){return this.$options.filters.dictData(i)}}};var _sfc_render$3M=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!1,height:t.getHeight},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[l.componenttype==0||l.componenttype==11||l.componenttype==13||l.componenttype==14||l.componenttype==16?s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:function(n){return t.see(l)}}}):s("gd-tooltip",{attrs:{rowKey:"name",row:l}})]}},{key:"rootcomponenttable",fn:function({column:a,row:l}){return[l.rootcomponenttable?s("span",{style:t.styled,on:{click:function(n){return t.seeTable(l.rootcomponentid)}}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.rootcomponenttable.transkey}`,l.rootcomponenttable.busname))+" ")]):t._e()]}},{key:"componenttype",fn:function(a){return[s("el-tag",{style:t._f("dictColor")("table_solution_type",a.row.componenttype),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("table_solution_type",a.row.componenttype))+" ")])]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.solution.type","\u7C7B\u578B"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.refresh.apply(null,arguments)}},model:{value:t.queryParam.type,callback:function(a){t.$set(t.queryParam,"type",a)},expression:"queryParam.type"}},t._l(t.getDictionary("table_solution_type"),function(a,l){return s("el-option",{key:l,attrs:{label:t.$i18nt(`Dynamics.${a.transKey}`,a.name),value:a.code}})}),1),s("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}])})],1),s("dictData",{ref:"dictData",attrs:{modeType:"solution"}}),s("tableData",{ref:"tableData",attrs:{detailAll:t.detailAll,allList:t.selList,modeType:"contain"}}),s("processData",{ref:"processData",attrs:{modeType:"solution",appendToBody:!0}}),s("worksData",{ref:"worksData",attrs:{modeType:"solution",appendToBody:!0}}),s("approvalData",{ref:"approvalData",attrs:{modeType:"solution",appendToBody:!0}})],1)},_sfc_staticRenderFns$3M=[],__component__$3M=chartbi.normalizeComponent(_sfc_main$3M,_sfc_render$3M,_sfc_staticRenderFns$3M,!1,null,"4c82af6a",null,null);const Assembly=__component__$3M.exports,mixins$D={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.table.businessName",prop:"name",label:"\u4E1A\u52A1\u540D",type:"slot",slotType:"name",align:"left"},{transKey:"gd.table.tableName",prop:"tablename",label:"\u8868\u540D\u79F0",type:"slot",slotType:"tablename",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger"},{displayName:"\u6DFB\u52A0\u5B50\u7EC4\u4EF6",functionName:"edit",show:!0,transKey:"gd.solution.addAssembly",icon:"el-icon-plus"},{displayName:"\u5220\u9664\u5B50\u7EC4\u4EF6",functionName:"delItem",show:!0,transKey:"gd.solution.delAssembly",icon:"el-icon-delete",btnType:"danger"}]}}},listTable_vue_vue_type_style_index_0_scoped_78dfc6f0_lang="",tableColumns=[{type:"selection",width:"60",fixed:!0},{label:"\u4E1A\u52A1\u540D",prop:"busname",type:"slot",align:"left",slotType:"busname",transKey:"gd.table.businessName"},{label:"\u8868\u540D\u79F0",prop:"tablename",type:"slot",align:"left",slotType:"tablename",transKey:"gd.table.tableName"},{label:"\u662F\u5426\u9501\u5B9A",prop:"islocked",type:"slot",slotType:"islocked",width:200,transKey:"gd.table.isLocked"},{label:"\u5B57\u6BB5\u65B0\u589E",prop:"allownewfield",align:"left",type:"slot",slotType:"allownewfield",width:200,transKey:"gd.table.allowNewField"},{label:"\u4F5C\u8005\u59D3\u540D",prop:"authorname",align:"left",width:300,transKey:"gd.table.authorName"}],tableQueries=[{transKey:"gd.table.businessName",prop:"busname",label:"\u4E1A\u52A1\u540D",effectType:"input",rules:[]},{transKey:"gd.table.tableName",prop:"tablename",label:"\u8868\u540D\u79F0",effectType:"input",rules:[]}],_sfc_main$3L={props:{fullscreen:{type:Boolean,default:!1},allList:{type:Array,default:()=>[]}},data(){return{visible:!1,queryParam:{},loadData:i=>messages.codeGeneratePage(Object.assign(i,this.queryParam)).then(t=>(this.getRow(t.data),t.data)),tableColumns,tableQueries,selectedRowKeys:[],selectedRows:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.rows.filter(s=>this.allList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},open(){this.visible=!0},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},saveQueries(i){this.queryParam={...i},this.refresh()},refresh(){this.$refs.table.refresh()}}};var _sfc_render$3L=function(){var t=this,s=t._self._c;return s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!0,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"busname",fn:function({row:a}){return[s("gd-tooltip",{attrs:{rowKey:"busname",row:a,highlight:""}})]}},{key:"tablename",fn:function({row:a}){return[s("gd-tooltip",{attrs:{rowKey:"tablename",row:a}})]}},{key:"islocked",fn:function({column:a,row:l}){return[l.islocked==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})]}},{key:"allownewfield",fn:function({column:a,row:l}){return[l.allownewfield==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"18px",color:"#999"}})]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}])})],1)},_sfc_staticRenderFns$3L=[],__component__$3L=chartbi.normalizeComponent(_sfc_main$3L,_sfc_render$3L,_sfc_staticRenderFns$3L,!1,null,"78dfc6f0",null,null);const tableList=__component__$3L.exports,tabsConfig_vue_vue_type_style_index_0_scoped_e863fef0_lang="",_sfc_main$3K={props:{tableData:{type:Array,default:()=>[]},fullscreen:{type:Boolean,default:!1}},data(){return{type:"1",i:0,list:[],checked:!0}},components:{moduleItem},computed:{getItem(){let i=this.list[this.i];return i==null?{}:i.table},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans}},methods:{pre(){this.i-=1,this.$emit("nextBack",{i:this.i,n:this.list.length})},next(){this.i+=1,this.$emit("nextBack",{i:this.i,n:this.list.length})},init(i){let t=this.tableData.filter(a=>i.includes(a.id));if(t===void 0){this.$message.error(this.$i18nt("gd.solution.dataErrorTip","\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664!"));return}let s=[];t.forEach(a=>{s.push({table:a,checked:!0,fkConfig:{data:[],list:[],allList:[]},btConfig:{data:[],list:[],allList:[]},echartsConfig:{data:[],list:[],allList:[]},formConfig:{data:[],list:[],allList:[]},relConfig1n:{data:[],list:[],allList:[]},relConfign1:{data:[],list:[],allList:[]},viewConfig:{data:[],list:[],allList:[]}})}),this.i=0,this.list=[...s]},onChange(i){let t=[...this.list];t[this.i].checked=i,this.list=[...t]}}};var _sfc_render$3K=function(){var t=this,s=t._self._c;return s("div",[s("div",{staticClass:"dev-t"},[s("h2",{staticStyle:{"font-size":"20px"}},[t._v(" "+t._s(t.getBootTrans&&t.getItem.transkey?t.$i18nt(`Dynamics.${t.getItem.transkey}`,t.getItem.busname):t.getItem.busname)+" ("+t._s(t.getItem.tablename)+") ")]),t.list.length>0?s("el-checkbox",{attrs:{checked:t.list[t.i].checked},on:{change:t.onChange}},[t._v(" "+t._s(t.$i18nt("gd.solution.selectAll"))+" ")]):t._e()],1),t._l(t.list,function(a,l){return[s("moduleItem",{directives:[{name:"show",rawName:"v-show",value:l==t.i,expression:"index == i"}],attrs:{record:a,index:l,tableData:t.tableData,checked:a.checked,fullscreen:t.fullscreen}})]})],2)},_sfc_staticRenderFns$3K=[],__component__$3K=chartbi.normalizeComponent(_sfc_main$3K,_sfc_render$3K,_sfc_staticRenderFns$3K,!1,null,"e863fef0",null,null);const tabsConfig=__component__$3K.exports,main_vue_vue_type_style_index_0_scoped_9a545580_lang="",_sfc_main$3J={props:{detail:{type:Object,default:()=>{}},allList:{type:Array,default:()=>[]}},data(){return{sysViewButtons:[{displayName:"\u4E0A\u4E00\u9875",functionName:"prePage",show:!1,transKey:"gd.btn.previousPage",icon:"double-left"},{displayName:"\u4E0B\u4E00\u9875",functionName:"nextPage",show:!1,transKey:"gd.btn.nextPage",icon:"double-right"},{displayName:"\u4E0B\u4E00\u6B65",functionName:"next",show:!0,transKey:"gd.btn.next",icon:"double-right"},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!1,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],confirmLoading:!1,visible:!1,width:"70%",fullscreen:!1,type:1,showType:1,allTableData:[]}},components:{tableList,tabsConfig},computed:{title(){return this.type==1?this.$i18nt("gd.https.edit"):this.$i18nt("gd.https.add")},...chartbi.mapGetters(["tableLists"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},btnShow(){let i=["\u4E0B\u4E00\u6B65"];this.type==1?i=["\u4E0B\u4E00\u9875","\u4E0A\u4E00\u9875","\u786E\u5B9A"]:i=["\u4E0B\u4E00\u6B65","\u4E0A\u4E00\u9875","\u786E\u5B9A"],this.sysViewButtons=this.sysViewButtons.filter((t,s)=>(t.show=!i.includes(t.displayName),!0))},nextBack(i){let t=["\u4E0B\u4E00\u6B65"];i.i==0?t=["\u4E0B\u4E00\u6B65","\u4E0A\u4E00\u9875","\u786E\u5B9A"]:i.i==i.n-1?t=["\u4E0B\u4E00\u6B65","\u4E0B\u4E00\u9875"]:t=["\u4E0B\u4E00\u6B65","\u786E\u5B9A"],this.sysViewButtons=this.sysViewButtons.filter((s,a)=>(s.show=!t.includes(s.displayName),!0))},prePage(){this.$refs.tabsConfig.pre()},nextPage(){this.$refs.tabsConfig.next()},open(i){this.fullscreen=!1,this.visible=!0,this.type=i?2:1,this.showType=i?2:1,this.btnShow()},next(){let i=this.$refs.tableList.selectedRowKeys;if(console.log(i),i.length==0){this.$message.error("\u8BF7\u9009\u62E9\u6570\u636E!");return}this.selTableList=[...i];let t=["\u4E0B\u4E00\u6B65","\u786E\u5B9A","\u4E0A\u4E00\u9875"];i.length==1&&(t=["\u4E0B\u4E00\u6B65","\u4E0B\u4E00\u9875","\u4E0A\u4E00\u9875"]),this.sysViewButtons=this.sysViewButtons.filter((s,a)=>(s.show=!t.includes(s.displayName),!0)),this.showType=2,this.confirmLoading=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.tabsConfig.init(i)},10),setTimeout(()=>{this.confirmLoading=!1},1200)})},getAllTableData(){if(this.tableLists.length>0){this.allTableData=[...this.tableLists];return}messages.codeGenerateInformationList({busName:""}).then(i=>{i.success&&(this.allTableData=[...i.data])})},handleSubmit(){if(this.confirmLoading)return;let i=this.$refs.tabsConfig.list,t=[],s=[];i.forEach(l=>{l.table&&(t.push({componenttype:0,objectid:l.table.id,name:this.getTransKeyName(l.table.transkey,l.table.busname)}),s.push(l.table.id)),l.fkConfig&&this.getObjectId(l.fkConfig,l.checked).forEach(o=>{let r=l.fkConfig.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:1,objectid:o,name:r?this.getTransKeyName(r.transkey,r.columncomment):""}),s.push(o)}),l.viewConfig&&this.getObjectId(l.viewConfig,l.checked).forEach(o=>{let r=l.viewConfig.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:3,objectid:o,name:r?this.getTransKeyName(r.transkey,r.name):""}),s.push(o)}),l.formConfig&&this.getObjectId(l.formConfig,l.checked).forEach(o=>{let r=l.formConfig.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:2,objectid:o,name:r?this.getTransKeyName(r.transkey,r.displayname):""}),s.push(o)}),l.echartsConfig&&this.getObjectId(l.echartsConfig,l.checked).forEach(o=>{let r=l.echartsConfig.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:8,objectid:o,name:r?this.getTransKeyName(r.transkey,r.name):""}),s.push(o)}),l.btConfig&&this.getObjectId(l.btConfig,l.checked).forEach(o=>{let r=l.btConfig.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:6,objectid:o,name:r?this.getTransKeyName(r.transkey,r.displayname?r.displayname:r.name):""}),s.push(o)}),l.relConfig1n&&this.getObjectId(l.relConfig1n,l.checked).forEach(o=>{let r=l.relConfig1n.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:21,objectid:o,name:r?this.getTransKeyName(r.transkey,r.name):""}),s.push(o)}),l.relConfign1&&this.getObjectId(l.relConfign1,l.checked).forEach(o=>{let r=l.relConfign1.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:21,objectid:o,name:r?this.getTransKeyName(r.transkey,r.name):""}),s.push(o)})});let a={solutionId:this.detail.id,data:t};this.confirmLoading=!0,sysSolutionComponentBatchadd(a).then(l=>{l.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",s),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+l.message),this.confirmLoading=!1})},getObjectId(i,t,s="id"){let a=[];if(t)i.data.forEach(l=>{a.push(l[s])});else return i.list;return a},closed(){this.visible=!1},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}},created(){this.getAllTableData()}};var _sfc_render$3J=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),t.visible?s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.showType==1?s("tableList",{ref:"tableList",attrs:{fullscreen:t.fullscreen,allList:t.allList}}):t._e(),t.showType==2?s("tabsConfig",{ref:"tabsConfig",attrs:{tableData:t.allTableData,fullscreen:t.fullscreen},on:{nextBack:t.nextBack}}):t._e()],1):t._e()],2)],1)},_sfc_staticRenderFns$3J=[],__component__$3J=chartbi.normalizeComponent(_sfc_main$3J,_sfc_render$3J,_sfc_staticRenderFns$3J,!1,null,"9a545580",null,null);const addTables=__component__$3J.exports,main_vue_vue_type_style_index_0_scoped_3e67f0e6_lang="",_sfc_main$3I={props:{detail:{type:Object,default:()=>{}},allList:{type:Array,default:()=>[]}},components:{moduleItem},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],fullscreen:!1,visible:!1,width:"70%",confirmLoading:!1}},computed:{getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},...chartbi.mapGetters(["tableLists"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){let t=this.allTableData.filter(s=>s.id==i.objectid)[0];if(t===void 0){this.$message.error(this.$i18nt("gd.solution.dataErrorTip","\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664!"));return}this.detailList={table:t,checked:!1,fkConfig:{data:[],list:[],allList:this.allList},btConfig:{data:[],list:[],allList:this.allList},echartsConfig:{data:[],list:[],allList:this.allList},formConfig:{data:[],list:[],allList:this.allList},relConfig1n:{data:[],list:[],allList:this.allList},relConfign1:{data:[],list:[],allList:this.allList},viewConfig:{data:[],list:[],allList:this.allList}},setTimeout(()=>{this.fullScreen=!1,this.visible=!0},100)},getAllTableData(){if(this.tableLists.length>0){this.allTableData=[...this.tableLists];return}messages.codeGenerateInformationList({busName:""}).then(i=>{i.success&&(this.allTableData=[...i.data])})},handleSubmit(){let i=[this.detailList],t=[],s=[];i.forEach(l=>{l.fkConfig&&this.getObjectId(l.fkConfig,l.checked).forEach(o=>{let r=l.fkConfig.data.filter(d=>d.id==o)[0];console.log(r),t.push({rootcomponentid:l.table.id,componenttype:1,objectid:o,name:r?this.getTransKeyName(r.transkey,r.columncomment):""}),s.push(o)}),l.viewConfig&&this.getObjectId(l.viewConfig,l.checked).forEach(o=>{let r=l.viewConfig.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:3,objectid:o,name:r?this.getTransKeyName(r.transkey,r.name):""}),s.push(o)}),l.formConfig&&this.getObjectId(l.formConfig,l.checked).forEach(o=>{let r=l.formConfig.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:2,objectid:o,name:r?this.getTransKeyName(r.transkey,r.displayname):""}),s.push(o)}),l.echartsConfig&&this.getObjectId(l.echartsConfig,l.checked).forEach(o=>{let r=l.echartsConfig.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:8,objectid:o,name:r?this.getTransKeyName(r.transkey,r.name):""}),s.push(o)}),l.btConfig&&this.getObjectId(l.btConfig,l.checked).forEach(o=>{let r=l.btConfig.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:6,objectid:o,name:r?this.getTransKeyName(r.transkey,r.displayname?r.displayname:r.name):""}),s.push(o)}),l.relConfig1n&&this.getObjectId(l.relConfig1n,l.checked).forEach(o=>{let r=l.relConfig1n.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:21,objectid:o,name:r?this.getTransKeyName(r.transkey,r.name):""}),s.push(o)}),l.relConfign1&&this.getObjectId(l.relConfign1,l.checked).forEach(o=>{let r=l.relConfign1.data.filter(d=>d.id==o)[0];t.push({rootcomponentid:l.table.id,componenttype:21,objectid:o,name:r?this.getTransKeyName(r.transkey,r.name):""}),s.push(o)})});let a={solutionid:this.detail.id,data:t};this.confirmLoading=!0,sysSolutionComponentBatchadd(a).then(l=>{l.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok",s),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u64CD\u4F5C\u5931\u8D25")+l.message),this.confirmLoading=!1})},getObjectId(i,t,s="id"){return i.list},closed(){this.visible=!1},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}},created(){this.getAllTableData()}};var _sfc_render$3I=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.solution.addAssembly","\u6DFB\u52A0\u5B50\u7EC4\u4EF6"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),t.visible?s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("moduleItem",{attrs:{record:t.detailList,tableData:t.allTableData,fullscreen:t.fullscreen,checked:!1}})],1):t._e()],2)],1)},_sfc_staticRenderFns$3I=[],__component__$3I=chartbi.normalizeComponent(_sfc_main$3I,_sfc_render$3I,_sfc_staticRenderFns$3I,!1,null,"3e67f0e6",null,null);const editTabsConfig=__component__$3I.exports,main_vue_vue_type_style_index_0_scoped_0787f1ed_lang="",_sfc_main$3H={mixins:[mixins$D],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},detailAll:{type:Object,default:()=>({})},selList:{type:Array,default:()=>[]}},data(){return{selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:i=>this.record.id===void 0?new Promise((t,s)=>{t({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>{if(t.code===200){let s=t.data.rows?t.data.rows:[];s.forEach((a,l)=>{let n=this.tableDataAll.filter(o=>o.id==a.objectid)[0];s[l]=Object.assign({...n===void 0?{}:n},{...a})}),t.data=Object.assign(t.data,{rows:s})}return t.data}),typeTabs:"contain",type:1}},components:{DelTabsConfig,addTables,editTabsConfig},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:0})},...chartbi.mapGetters(["tableSize","tablePageSize","screenHeight","tableLists"])},methods:{seeList(i){this.typeTabs="contain",this.$refs.delTabsConfig.open(i)},add(){this.type=1,this.$refs.addTables.open()},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.editTabsConfig.open(this.selectedRows[0])},okSbumit(i){this.refresh(),this.$emit("ok",i)},delOk(i){this.refresh(),this.$emit("delOk",i)},delItem(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.typeTabs="table",this.$refs.delTabsConfig.open(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1;let a=[0,1,2,3,6,8,21],l=[];this.selectedRowKeys.forEach(o=>{let r=this.detailAll.syssolutioncomponents.filter(d=>d.id==o)[0];this.detailAll.syssolutioncomponents.forEach(d=>{r.objectid==d.objectid&&l.push(d),r.objectid==d.rootcomponentid&&l.push(d)})});let n=[];a.forEach(o=>{let r=l.filter(u=>u.componenttype==o),d=[];if(r.forEach(u=>{d.push(u.id)}),d.length>0){let u={solutionId:this.record.id,ids:d,type:o},p=this.sysSolutionComponentRemove(u).then(h=>h);n.push(p)}}),Promise.all(n).then(o=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,s(),this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",l),this.refresh()})},sysSolutionComponentRemove(i){return sysSolutionComponentRemove(i).then(t=>t)},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},refresh(){this.$refs.table.refresh(),this.$emit("refresh")},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3H=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0},{key:"name",fn:function({row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""},on:{click:function(l){return t.seeList(a)}}})]}},{key:"tablename",fn:function({row:a}){return[s("span",[t._v(" "+t._s(a.tablename)+" ")])]}}])}),s("DelTabsConfig",{ref:"delTabsConfig",attrs:{allList:t.selList,detail:t.record,detailAll:t.detailAll,modeType:t.typeTabs},on:{ok:t.delOk}}),s("addTables",{ref:"addTables",attrs:{detail:t.record,allList:t.selList},on:{ok:t.okSbumit}}),s("editTabsConfig",{ref:"editTabsConfig",attrs:{allList:t.selList,detail:t.record},on:{ok:t.okSbumit}})],1)])},_sfc_staticRenderFns$3H=[],__component__$3H=chartbi.normalizeComponent(_sfc_main$3H,_sfc_render$3H,_sfc_staticRenderFns$3H,!1,null,"0787f1ed",null,null);const Table=__component__$3H.exports,mixins$C={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$B={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.table.tableName",prop:"syscodegenid",label:"\u8868\u540D\u79F0",type:"slot",slotType:"syscodegenid",align:"left"},{transKey:"gd.flow.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{title:"\u8BF4\u660E",prop:"description",align:"left",transKey:"gd.flow.explain"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}],buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}},main_vue_vue_type_style_index_0_scoped_b48f79ac_lang="",_sfc_main$3G={mixins:[mixins$B],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{width:"70%",confirmLoading:!1,fullscreen:!1,visible:!1,queryParam:{},loadData:i=>([...this.selectedRowKeys],messages.onlineBizProcessPage(Object.assign(i,this.queryParam)).then(t=>(this.getRow(t.data),t.data))),selectedRowKeys:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.rows.filter(s=>this.selList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){this.fullScreen=!1,this.type=i?2:1,this.visible=!0},saveQueries(i){console.log(i),this.queryParam={...i},this.refresh()},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componenttype:14,objectid:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail")+s.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.visible=!1},dictSwitch(i,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==i)[0];return s!=null&&s.colour?s.colour:null},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}}};var _sfc_render$3G=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!0,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""}})]}},{key:"syscodegenid",fn:function({row:a}){return[a.syscodegen?s("span",{style:t.styled},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.syscodegen.transkey}`,a.syscodegen.busname))+" ")]):t._e()]}},{key:"statecodes",fn:function(a){return[s("div",{staticStyle:{cursor:"pointer"}},[a.row.statecodes?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}],null,!1,3412208156)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3G=[],__component__$3G=chartbi.normalizeComponent(_sfc_main$3G,_sfc_render$3G,_sfc_staticRenderFns$3G,!1,null,"b48f79ac",null,null);const ProcessAdd=__component__$3G.exports,main_vue_vue_type_style_index_0_scoped_1e476b53_lang="",_sfc_main$3F={mixins:[mixins$C],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{ProcessAdd,flowDesign:flowDesign$2},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:14}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},methods:{see(i){this.$refs.flowDesign.open(i.objectid)},add(){this.$refs.processAdd.open(null)},okSbumit(i){this.refresh(),this.$emit("ok",i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3F=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:function(n){return t.see(l)}}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("ProcessAdd",{ref:"processAdd",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}}),s("flowDesign",{ref:"flowDesign",attrs:{modeType:"solution"}})],1)},_sfc_staticRenderFns$3F=[],__component__$3F=chartbi.normalizeComponent(_sfc_main$3F,_sfc_render$3F,_sfc_staticRenderFns$3F,!1,null,"1e476b53",null,null);const Process=__component__$3F.exports,mixins$A={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$z={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.table.tableName",prop:"syscodegenid",label:"\u8868\u540D\u79F0",type:"slot",slotType:"syscodegenid",align:"left"},{transKey:"gd.flow.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{title:"\u8BF4\u660E",prop:"description",align:"left",transKey:"gd.flow.explain"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}],buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}},main_vue_vue_type_style_index_0_scoped_c4859ce3_lang="",_sfc_main$3E={mixins:[mixins$z],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{width:"70%",confirmLoading:!1,fullscreen:!1,visible:!1,queryParam:{},loadData:i=>([...this.selectedRowKeys],messages.onlineWorkflowPage(Object.assign(i,this.queryParam)).then(t=>(this.getRow(t.data),t.data))),selectedRowKeys:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.rows.filter(s=>this.selList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){this.fullScreen=!1,this.type=i?2:1,this.visible=!0},saveQueries(i){this.queryParam={...i},this.refresh()},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componenttype:13,objectid:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail")+s.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.visible=!1},dictSwitch(i,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==i)[0];return s!=null&&s.colour?s.colour:null},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}}};var _sfc_render$3E=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!0,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""}})]}},{key:"syscodegenid",fn:function({row:a}){return[a.syscodegen?s("span",{style:t.styled},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.syscodegen.transkey}`,a.syscodegen.busname))+" ")]):t._e()]}},{key:"statecodes",fn:function(a){return[s("div",{staticStyle:{cursor:"pointer"}},[a.row.statecodes?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}],null,!1,3412208156)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3E=[],__component__$3E=chartbi.normalizeComponent(_sfc_main$3E,_sfc_render$3E,_sfc_staticRenderFns$3E,!1,null,"c4859ce3",null,null);const WorkFlowAdd=__component__$3E.exports,main_vue_vue_type_style_index_0_scoped_669dddce_lang="",_sfc_main$3D={mixins:[mixins$A],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{WorkFlowAdd,flowDesign:flowDesign$1},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:13}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},watch:{language(i,t){}},methods:{see(i){this.$refs.flowDesign.open(i.objectid)},add(){this.$refs.workFlowAdd.open(null)},okSbumit(i){this.refresh(),this.$emit("ok",i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3D=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:function(n){return t.see(l)}}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("WorkFlowAdd",{ref:"workFlowAdd",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}}),s("flowDesign",{ref:"flowDesign",attrs:{modeType:"solution"}})],1)},_sfc_staticRenderFns$3D=[],__component__$3D=chartbi.normalizeComponent(_sfc_main$3D,_sfc_render$3D,_sfc_staticRenderFns$3D,!1,null,"669dddce",null,null);const Work=__component__$3D.exports,mixins$y={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$x={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.flow.approval.name",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.approval.table",prop:"tableid",label:"\u5173\u8054\u8868",type:"slot",slotType:"tableid",align:"left"},{label:"\u5206\u7C7B",prop:"category",type:"slot",slotType:"category",align:"left",transKey:"gd.flow.approval.classify"},{label:"\u7F16\u7801",prop:"encode",align:"left",transKey:"gd.flow.approval.code"},{transKey:"gd.flow.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{title:"\u8BF4\u660E",prop:"description",align:"left",transKey:"gd.flow.explain"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}],buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],tableQueries:[{transKey:"gd.flow.approval.name",prop:"keyword",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}},main_vue_vue_type_style_index_0_scoped_99ae9512_lang="",_sfc_main$3C={mixins:[mixins$x],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{width:"70%",confirmLoading:!1,fullscreen:!1,visible:!1,queryParam:{},loadData:i=>messages.approvalProcess(Object.assign(i,this.queryParam)).then(t=>{if(t.code===200){const s=t.data.rows.map(a=>{const l=this.tableLists.filter(n=>n.id===a.tableid)[0];return Object.assign(a,l?{tabledata:l}:{})});Object.assign(t.data,{rows:s})}return this.getRow(t.data),t.data}),selectedRowKeys:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor","tableLists"])},methods:{getRow(i){let t=[];i.rows.filter(s=>this.selList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){this.fullScreen=!1,this.type=i?2:1,this.visible=!0},saveQueries(i){console.log(i),this.queryParam={...i},this.refresh()},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componentType:16,objectId:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail")+s.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.visible=!1},dictSwitch(i,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==i)[0];return s!=null&&s.colour?s.colour:null},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}}};var _sfc_render$3C=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!0,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({row:a}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:a,highlight:""}})]}},{key:"tableid",fn:function({column:a,row:l}){return[l.tabledata?s("span",[t._v(t._s(t.$i18nt(`Dynamics.${l.tabledata.transkey}`,l.tabledata.busname)))]):t._e()]}},{key:"statecodes",fn:function(a){return[s("div",{staticStyle:{cursor:"pointer"}},[a.row.statecodes?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"category",fn:function(a){return[s("span",[t._v(t._s(t._f("dictType")("table_flows_type",a.row.category)))])]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}],null,!1,3789119863)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3C=[],__component__$3C=chartbi.normalizeComponent(_sfc_main$3C,_sfc_render$3C,_sfc_staticRenderFns$3C,!1,null,"99ae9512",null,null);const ApprovalFlowAdd=__component__$3C.exports,main_vue_vue_type_style_index_0_scoped_39860834_lang="",_sfc_main$3B={mixins:[mixins$y],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{ApprovalFlowAdd,flowDesign},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:16}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},methods:{see(i){this.$refs.flowDesign.open(i.objectid)},add(){this.$refs.approvalFlowAdd.open(null)},okSbumit(i){this.refresh(),this.$emit("ok",i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3B=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:function(n){return t.see(l)}}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("ApprovalFlowAdd",{ref:"approvalFlowAdd",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}}),s("flowDesign",{ref:"flowDesign",attrs:{modeType:"solution"}})],1)},_sfc_staticRenderFns$3B=[],__component__$3B=chartbi.normalizeComponent(_sfc_main$3B,_sfc_render$3B,_sfc_staticRenderFns$3B,!1,null,"39860834",null,null);const ApprovalFlow=__component__$3B.exports,mixins$w={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.dict.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$v={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.dict.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.dict.sort",prop:"sort",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.dict.type",prop:"dict_type",label:"\u6240\u5C5E\u7C7B\u578B",type:"slot",slotType:"dict_type",align:"left"},{transKey:"gd.dict.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"center"},{transKey:"gd.org.remark",prop:"remark",type:"slot",slotType:"remark",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.dict.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"input",rules:[]}],buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}]}}},main_vue_vue_type_style_index_0_scoped_7b17e961_lang="",_sfc_main$3A={mixins:[mixins$v],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{fullscreen:!1,confirmLoading:!1,visible:!1,width:"70%",queryParam:{},loadData:i=>system_dict.sysDictTypePage(Object.assign(i,this.queryParam)).then(t=>(this.getRow(t.data),t.data)),selectedRowKeys:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor","tableLists"])},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},getRow(i){let t=[];i.rows.filter(s=>this.selList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},saveQueries(i){this.queryParam={...i},this.refresh()},open(){console.log(222),this.fullscreen=!1,this.visible=!0},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componenttype:11,objectid:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+s.message),this.confirmLoading=!1})},closed(){this.selectedRowKeys=[],this.visible=!1},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},dictSwitch(i,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==i)[0];return s!=null&&s.colour?s.colour:null},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}}};var _sfc_render$3A=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!0,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,transKey:`Dynamics.${l.transKey}`,highlight:""}})]}},{key:"dict_type",fn:function(a){return[a.row.dict_type===1?s("el-tag",{staticStyle:{"background-color":"red","border-color":"red"},attrs:{effect:"dark"}},[t._v(" "+t._s(t.$i18nt("gd.dict.systemType","\u7CFB\u7EDF\u7C7B\u578B"))+" ")]):s("el-tag",{staticStyle:{"background-color":"#52c41a","border-color":"#52c41a"},attrs:{effect:"dark"}},[t._v(" "+t._s(t.$i18nt("gd.dict.businessType","\u4E1A\u52A1\u7C7B\u578B"))+" ")])]}},{key:"statecodes",fn:function(a){return[s("div",[a.row.statecodes?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"remark",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"remark",row:l,prevent:!1}})]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}],null,!1,1502529334)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3A=[],__component__$3A=chartbi.normalizeComponent(_sfc_main$3A,_sfc_render$3A,_sfc_staticRenderFns$3A,!1,null,"7b17e961",null,null);const DictAdd=__component__$3A.exports,main_vue_vue_type_style_index_0_scoped_3de7a896_lang="",_sfc_main$3z={mixins:[mixins$w],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:11}},components:{DictAdd,Dictdetail},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},methods:{see(i){this.$refs.dictdetail.open(i)},okSbumit(i){this.refresh(),this.$emit("ok",i)},add(){this.$refs.dictAdd.open(null)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3z=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:function(n){return t.see(l)}}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("DictAdd",{ref:"dictAdd",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}}),s("Dictdetail",{ref:"dictdetail",attrs:{detail:t.record,selList:t.selList}})],1)},_sfc_staticRenderFns$3z=[],__component__$3z=chartbi.normalizeComponent(_sfc_main$3z,_sfc_render$3z,_sfc_staticRenderFns$3z,!1,null,"3de7a896",null,null);const Dict=__component__$3z.exports,mixins$u={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$t={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",align:"left",type:"slot",slotType:"name",fixed:!0,howOverflowTooltip:!0},{transKey:"gd.web.displayName",prop:"displayname",label:"\u663E\u793A\u540D\u79F0",minWidth:"180",align:"left",showOverflowTooltip:!0},{transKey:"gd.web.type",prop:"type",width:"120",label:"\u8D44\u6E90\u7C7B\u578B",type:"slot",slotType:"type",align:"left",showOverflowTooltip:!0},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createdtime",align:"center",transKey:"gd.web.creationTime",showOverflowTooltip:!0},{label:"\u4FEE\u6539\u65F6\u95F4",prop:"updatedtime",align:"center",showOverflowTooltip:!0,transKey:"gd.web.updatedTime"},{label:"\u5907\u6CE8",prop:"description",align:"left",showOverflowTooltip:!0,transKey:"gd.web.remarks"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.web.name",prop:"name",label:"\u540D\u79F0",effectType:"input",rules:[]}]}}},main_vue_vue_type_style_index_0_scoped_051ef4c2_lang="",_sfc_main$3y={mixins:[mixins$t],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{fullscreen:!1,confirmLoading:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:i=>system_webresource.sysWebDataPage(Object.assign(i,this.queryParam)).then(t=>(this.getRow(t.data),t.data)),disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.rows.filter(s=>this.selList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},toggleFullscreen(){this.fullscreen=!this.fullscreen},saveQueries(i){this.queryParam={...i},this.refresh()},open(i){this.fullScreen=!1,this.type=i?2:1,this.visible=!0},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componenttype:18,objectid:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+s.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.visible=!1},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}}};var _sfc_render$3y=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.formButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!0,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"type",fn:function(a){return[s("el-tag",{style:t._f("dictColor")("web_type",a.row.type),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("web_type",a.row.type))+" ")])]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}],null,!1,2033377063)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3y=[],__component__$3y=chartbi.normalizeComponent(_sfc_main$3y,_sfc_render$3y,_sfc_staticRenderFns$3y,!1,null,"051ef4c2",null,null);const WebResourcesAdd=__component__$3y.exports,main_vue_vue_type_style_index_0_scoped_d766f53e_lang="",_sfc_main$3x={mixins:[mixins$u],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{WebResourcesAdd},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:18}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.$refs.webResourcesAdd.open(null)},okSbumit(i){this.refresh(),this.$emit("ok",i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3x=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("WebResourcesAdd",{ref:"webResourcesAdd",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}})],1)},_sfc_staticRenderFns$3x=[],__component__$3x=chartbi.normalizeComponent(_sfc_main$3x,_sfc_render$3x,_sfc_staticRenderFns$3x,!1,null,"d766f53e",null,null);const WebResources=__component__$3x.exports,mixins$s={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.plugin.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$r={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.plugin.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.plugin.status",prop:"status",label:"\u72B6\u6001",type:"slot",slotType:"status",align:"left",showOverflowTooltip:!0},{transKey:"gd.plugin.remarks",prop:"description",label:"\u5907\u6CE8",align:"left"}],tableQueries:[{transKey:"gd.plugin.name",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}]}}},main_vue_vue_type_style_index_0_scoped_575544d8_lang="",_sfc_main$3w={mixins:[mixins$r],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{fullscreen:!1,confirmLoading:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:i=>system_plugin.sysPluginDataPage(Object.assign(i,this.queryParam)).then(t=>(this.getRow(t.data),t.data)),disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.rows.filter(s=>this.selList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},toggleFullscreen(){this.fullscreen=!this.fullscreen},saveQueries(i){this.queryParam={...i},this.refresh()},open(i){this.fullScreen=!1,this.type=i?2:1,this.visible=!0},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componenttype:19,objectid:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+s.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.visible=!1},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}}};var _sfc_render$3w=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.formButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!0,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"status",fn:function(a){return[s("div",[a.row.status?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}],null,!1,444474338)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3w=[],__component__$3w=chartbi.normalizeComponent(_sfc_main$3w,_sfc_render$3w,_sfc_staticRenderFns$3w,!1,null,"575544d8",null,null);const PlugInAdd=__component__$3w.exports,main_vue_vue_type_style_index_0_scoped_acc3955b_lang="",_sfc_main$3v={mixins:[mixins$s],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},selList:{type:Array,default:()=>[]}},components:{PlugInAdd},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:19}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.$refs.plugInAdd.open(null)},okSbumit(i){this.refresh(),this.$emit("ok",i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3v=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("PlugInAdd",{ref:"plugInAdd",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}})],1)},_sfc_staticRenderFns$3v=[],__component__$3v=chartbi.normalizeComponent(_sfc_main$3v,_sfc_render$3v,_sfc_staticRenderFns$3v,!1,null,"acc3955b",null,null);const PlugIn=__component__$3v.exports,mixins$q={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left"},{transKey:"gd.org.sort",prop:"sort",label:"\u6392\u5E8F",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$p={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left",showOverflowTooltip:!0},{transKey:"gd.org.sort",prop:"sort",width:"200",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.org.remark",prop:"remark",label:"\u5907\u6CE8",align:"left",showOverflowTooltip:!0}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.user.roleName",prop:"name",label:"\u89D2\u8272\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.org.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",effectType:"input",rules:[]}]}}},main_vue_vue_type_style_index_0_scoped_32df8fcd_lang="",_sfc_main$3u={mixins:[mixins$p],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{fullscreen:!1,confirmLoading:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{sysAppsId:""},loadData:i=>system_fieldsecurity.getRolePage(Object.assign(i,this.queryParam)).then(t=>(this.getRow(t.data),t.data)),disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.rows.filter(s=>this.selList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},toggleFullscreen(){this.fullscreen=!this.fullscreen},saveQueries(i){this.queryParam={...i},this.refresh()},open(i){this.fullScreen=!1,this.type=i?2:1,this.visible=!0},getSysAppsPage(){system_notice.sysAppsPage().then(i=>{i.success&&(this.appList=i.data.rows,this.queryParam.sysAppsId=this.appList[0].id)})},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componentType:22,objectId:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+s.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.visible=!1},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}},created(){this.getSysAppsPage()}};var _sfc_render$3u=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.formButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!0,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.btnConfig.name","\u540D\u79F0"),clearable:""},model:{value:t.queryParam.sysAppsId,callback:function(a){t.$set(t.queryParam,"sysAppsId",a)},expression:"queryParam.sysAppsId"}},t._l(t.appList,function(a,l){return s("el-option",{key:l,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.name),value:a.id}})}),1),s("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}],null,!1,1456713596)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3u=[],__component__$3u=chartbi.normalizeComponent(_sfc_main$3u,_sfc_render$3u,_sfc_staticRenderFns$3u,!1,null,"32df8fcd",null,null);const RoleAdd=__component__$3u.exports,main_vue_vue_type_style_index_0_scoped_e81d41bc_lang="",_sfc_main$3t={mixins:[mixins$q],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{RoleAdd},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:22}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.$refs.roleAdd.open(null)},okSbumit(i){this.refresh(),this.$emit("ok",i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3t=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("RoleAdd",{ref:"roleAdd",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}})],1)},_sfc_staticRenderFns$3t=[],__component__$3t=chartbi.normalizeComponent(_sfc_main$3t,_sfc_render$3t,_sfc_staticRenderFns$3t,!1,null,"e81d41bc",null,null);const Role=__component__$3t.exports,mixins$o={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.plugin.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$n={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.plugin.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.application.code",prop:"code",width:"200",label:"\u552F\u4E00\u7F16\u7801",align:"left"},{transKey:"gd.application.version",prop:"version",width:"200",label:"\u7248\u672C",align:"left"},{transKey:"gd.application.introduction",prop:"introduction",label:"\u4ECB\u7ECD",align:"left",showOverflowTooltip:!0}],tableQueries:[{transKey:"gd.plugin.name",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}]}}},main_vue_vue_type_style_index_0_scoped_8366f8a9_lang="",_sfc_main$3s={mixins:[mixins$n],props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},data(){return{fullscreen:!1,confirmLoading:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:i=>system_notice.sysAppsPage(Object.assign(i,this.queryParam)).then(t=>(this.getRow(t.data),t.data)),disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},styled(){return`color:${this.primaryColor};cursor: pointer;`},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.rows.filter(s=>this.selList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},toggleFullscreen(){this.fullscreen=!this.fullscreen},saveQueries(i){this.queryParam={...i},this.refresh()},open(i){this.fullScreen=!1,this.type=i?2:1,this.visible=!0},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componenttype:23,objectid:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+s.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.visible=!1},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}}};var _sfc_render$3s=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.formButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!0,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"status",fn:function(a){return[s("div",[a.row.status?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})])]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}],null,!1,444474338)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3s=[],__component__$3s=chartbi.normalizeComponent(_sfc_main$3s,_sfc_render$3s,_sfc_staticRenderFns$3s,!1,null,"8366f8a9",null,null);const applicationEdit=__component__$3s.exports,main_vue_vue_type_style_index_0_scoped_d75cc054_lang="",_sfc_main$3r={mixins:[mixins$o],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},selList:{type:Array,default:()=>[]}},components:{applicationEdit},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:23}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.$refs.applicationEdit.open(null)},okSbumit(i){this.refresh(),this.$emit("ok",i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3r=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("applicationEdit",{ref:"applicationEdit",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}})],1)},_sfc_staticRenderFns$3r=[],__component__$3r=chartbi.normalizeComponent(_sfc_main$3r,_sfc_render$3r,_sfc_staticRenderFns$3r,!1,null,"d75cc054",null,null);const Application=__component__$3r.exports,mixins$m={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.btnConfig.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$l={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.btnConfig.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.dict.code",prop:"code",label:"\u552F\u4E00\u7F16\u7801",align:"left"},{transKey:"gd.menu.sort",prop:"sort",label:"\u6392\u5E8F",align:"left"},{transKey:"gd.dict.state",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"}],tableButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}]}}},main_vue_vue_type_style_index_0_scoped_643fb209_lang="",_sfc_main$3q={props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},mixins:[mixins$l],data(){return{confirmLoading:!1,fullscreen:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{appsId:""},loadData:i=>system_account.getAppListByAppsId(Object.assign(i,this.queryParam)).then(t=>(this.getRow(t.data),{pageNo:1,pageSize:i.pageSize,rows:t.data,totalRows:t.data.length})),appList:[],disabledRowId:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){let t=[];i.filter(s=>this.selList.includes(s.id)).forEach(s=>{t.push(s.id)}),this.disabledRowId=t},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){this.fullScreen=!1,this.type=i?2:1,this.visible=!0},getSysAppsPage(){system_notice.sysAppsPage().then(i=>{i.success&&(this.appList=i.data.rows,this.queryParam.appsId=this.appList[0].id)})},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.closed();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componenttype:7,objectid:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25")+s.message),this.confirmLoading=!1})},closed(){this.selectedRowKeys=[],this.visible=!1},refresh(){this.$refs.table.refresh()},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}},created(){this.getSysAppsPage()}};var _sfc_render$3q=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.tableButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!1,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"statecodes",fn:function({column:a,row:l}){return[s("span",[t._v(t._s(t._f("dictType")("state_code",l.statecodes)))])]}},{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.btnConfig.name","\u540D\u79F0"),clearable:""},model:{value:t.queryParam.appsId,callback:function(a){t.$set(t.queryParam,"appsId",a)},expression:"queryParam.appsId"}},t._l(t.appList,function(a,l){return s("el-option",{key:l,attrs:{label:t.$i18nt(`Dynamics.${a.transKey}`,a.name),value:a.id}})}),1),s("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}],null,!1,984274528)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3q=[],__component__$3q=chartbi.normalizeComponent(_sfc_main$3q,_sfc_render$3q,_sfc_staticRenderFns$3q,!1,null,"643fb209",null,null);const applicationAdd=__component__$3q.exports,main_vue_vue_type_style_index_0_scoped_2670b4a7_lang="",_sfc_main$3p={mixins:[mixins$m],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{applicationAdd},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:7}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.$refs.applicationAdd.open(null)},okSbumit(i){this.refresh(),this.$emit("ok",i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3p=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("applicationAdd",{ref:"applicationAdd",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}})],1)},_sfc_staticRenderFns$3p=[],__component__$3p=chartbi.normalizeComponent(_sfc_main$3p,_sfc_render$3p,_sfc_staticRenderFns$3p,!1,null,"2670b4a7",null,null);const ApplicationMenu=__component__$3p.exports,mixins$k={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.btnConfig.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysSolution:add"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysSolution:del"}]}}},mixins$j={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.btnConfig.name",prop:"name",label:"\u540D\u79F0",align:"left"},{transKey:"gd.menu.icon",prop:"icon",label:"\u56FE\u6807",type:"slot",slotType:"icon",align:"left"},{transKey:"gd.menu.sort",prop:"sort",label:"\u6392\u5E8F",align:"left"}],tableButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}]}}},main_vue_vue_type_style_index_0_scoped_76abff53_lang="",_sfc_main$3o={props:{detail:{type:Object,default:()=>{}},selList:{type:Array,default:()=>[]}},mixins:[mixins$j],data(){return{confirmLoading:!1,fullscreen:!1,visible:!1,width:"70%",selectedRowKeys:[],selectedRows:[],queryParam:{AppsId:""},appLists:[],menuList:[],loadData:i=>this.getListAll(),disabledRowId:[],appList:[],arr:[],childArr:[]}},computed:{getHeight(){return this.screenHeight-(this.fullscreen?160:320)},...chartbi.mapGetters(["tablePageSize","screenHeight","tableSize","primaryColor"])},methods:{getRow(i){i.forEach(a=>{this.arr.push(a),a.children&&a.children.length&&a.children.forEach(l=>{this.childArr.push(l)})});let t=this.arr.concat(this.childArr),s=[];t.filter(a=>this.selList.includes(a.id)).forEach(a=>{s.push(a.id)}),this.disabledRowId=s},collectIds(i){i.forEach(t=>{this.childArr.push(t.id)})},getAppList(){return system_account.getAppListByAppsId({appsId:this.queryParam.AppsId}).then(i=>(i.code===200&&(this.appLists=i.data),i))},getMenuList(){return system_account.sysMenuListByAppsId({AppsId:this.queryParam.AppsId}).then(i=>(i.code===200&&(this.menuList=i.data.map(t=>(t.opid=t.pid,t.children&&t.children.map(s=>(s.opid=s.pid,s)),t))),i))},getListAll(){return new Promise(i=>{Promise.all([this.getAppList(),this.getMenuList()]).then(t=>{let s=[...this.appLists];s.forEach((a,l)=>{s[l].pid=0,s[l].modeType="application";let n=this.menuList.filter(o=>o.application===a.code?(o.pid=a.id,!0):!1);n&&(s[l].children=n)}),this.getRow(s),i({pageNo:1,pageSize:50,totalRows:s.length,rows:s})})})},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){this.fullScreen=!1,this.type=i?2:1,this.visible=!0},getSysAppsPage(){system_notice.sysAppsPage().then(i=>{i.success&&(this.appList=i.data.rows,this.queryParam.AppsId=this.appList[0].id)})},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},handleSubmit(){if(this.confirmLoading)return;if(this.selectedRowKeys.length==0){this.handleCancel();return}this.confirmLoading=!0;let i=[];this.selectedRows.forEach(s=>{i.push({componenttype:5,objectid:s.id,name:this.getTransKeyName(s.transkey,s.name)})});let t={solutionId:this.detail.id,data:i};sysSolutionComponentBatchadd(t).then(s=>{s.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.$emit("ok",this.selectedRowKeys),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail")+s.message),this.confirmLoading=!1})},refresh(){this.$refs.table.refresh()},closed(){this.selectedRowKeys=[],this.visible=!1},doEvent(i){let t=i.item.functionName;this[t]()},getTransKeyName(i,t){return this.getBootTrans&&i?this.$i18nt(`Dynamics.${i}`,t):t}},created(){this.getSysAppsPage()}};var _sfc_render$3o=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.https.add","\u65B0\u589E"),fullscreen:t.fullscreen,buttons:t.tableButtons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[t.visible?s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,filtering:!1,height:t.getHeight,selectedRowKeys:t.selectedRowKeys,disabledRowId:t.disabledRowId},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"type",fn:function({column:a,row:l}){return[s("span",[t._v(t._s(t._f("dictType")("menu_type",l.type)))])]}},{key:"icon",fn:function({column:a,row:l}){return[l.icon?s("i",{staticClass:"gd-icons",class:l.icon}):t._e()]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.btnConfig.name","\u540D\u79F0"),clearable:""},model:{value:t.queryParam.AppsId,callback:function(a){t.$set(t.queryParam,"AppsId",a)},expression:"queryParam.AppsId"}},t._l(t.appList,function(a,l){return s("el-option",{key:l,attrs:{label:t.$i18nt(`Dynamics.${a.transKey}`,a.name),value:a.id}})}),1),s("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1)])]},proxy:!0}],null,!1,2718196542)}):t._e()],1)],2)],1)},_sfc_staticRenderFns$3o=[],__component__$3o=chartbi.normalizeComponent(_sfc_main$3o,_sfc_render$3o,_sfc_staticRenderFns$3o,!1,null,"76abff53",null,null);const menuPage=__component__$3o.exports,main_vue_vue_type_style_index_0_scoped_c5a3e237_lang="",_sfc_main$3n={mixins:[mixins$k],props:{height:{type:Number,default:0},record:{type:Object,default:()=>({})},tableDataAll:{type:Array,default:()=>[]},selList:{type:Array,default:()=>[]}},components:{menuPage},data(){return{queryParam:{},loadData:i=>sysSolutionComponentPage(Object.assign(i,this.getQueryParam)).then(t=>t.data),selectedRowKeys:[],selectedRows:[],type:5}},computed:{getQueryParam(){return Object.assign(this.queryParam,{solutionId:this.record.id,type:this.type})},...chartbi.mapGetters(["tablePageSize","tableSize"])},methods:{add(){this.$refs.menuPage.open(null)},okSbumit(i){this.refresh(),this.$emit("ok",i)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}[...this.selectedRows],this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionComponentRemove({solutionId:this.record.id,ids:this.selectedRowKeys,type:this.type}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$emit("del",this.selectedRows)):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.refresh()})},refresh(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3n=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.height,filtering:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)]},proxy:!0}])})],1),s("menuPage",{ref:"menuPage",attrs:{detail:t.record,selList:t.selList},on:{ok:t.okSbumit}})],1)},_sfc_staticRenderFns$3n=[],__component__$3n=chartbi.normalizeComponent(_sfc_main$3n,_sfc_render$3n,_sfc_staticRenderFns$3n,!1,null,"c5a3e237",null,null);const Menu=__component__$3n.exports,main_vue_vue_type_style_index_0_scoped_4a27f602_lang="",_sfc_main$3m={props:{height:{type:Number,default:0}},data(){return{isShow:!0,activeName:"table",record:{},loading:!1,formLoading:!1,tableButtons:[{displayName:"\u8FD4\u56DE",functionName:"back",show:!0,transKey:"gd.btn.back",icon:"el-icon-arrow-left"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysSolution:edit"},{displayName:"\u5BFC\u51FA",functionName:"export",show:!0,transKey:"gd.btn.export",icon:"el-icon-download",name:"sysSolution:export"}],tableDataAll:[],detailAll:null,selList:[]}},components:{solutionDescriptions,Assembly,Table,Process,Work,ApprovalFlow,Dict,WebResources,PlugIn,Role,Application,ApplicationMenu,Menu},computed:{stylep(){return""},getHeight(){return this.height},...chartbi.mapGetters(["tableLists"])},methods:{getAllTableData(){if(this.tableLists.length>0){this.tableDataAll=[...this.tableLists];return}messages.codeGenerateInformationList({busName:""}).then(i=>{i.success&&(this.tableDataAll=[...i.data])})},init(i){this.record=i,this.activeName="table",this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName].refresh()},0)}),this.getAllTableData(),this.getDetail()},refresh(){this.getDetail()},getDetail(){this.formLoading=!0,sysSolutionDetails({id:this.record.id}).then(i=>{if(i.code==200){let t=[];i.data.syssolutioncomponents.forEach(s=>{t.push(s.objectid)}),this.detailAll=i.data,this.selList=t}this.formLoading=!1})},delOk(i){let t=[];i.forEach(a=>{t.push(a.objectid)});let s=this.selList.filter(a=>!t.includes(a));this.selList=[...s]},addOk(i){let t=this.selList.filter(s=>!i.includes(s)).concat(i);this.selList=[...t]},tabChange(i){this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.activeName].refresh()},0)})},functionName(i){i.item.functionName==="back"&&(this.activeName=""),this.$emit("functionName",i)}}};var _sfc_render$3m=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-page-view",staticStyle:{position:"absolute",top:"0","z-index":"8",left:"0",right:"0",bottom:"0",background:"#fff"},style:t.stylep},[s("div",{staticStyle:{display:"flex",background:"#f5f5f5"}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"page-view-descriptions",attrs:{"element-loading-spinner":"el-icon-loading active-color"}},[s("solutionDescriptions",{attrs:{record:t.record,tableButtons:t.tableButtons,height:t.height},on:{functionName:t.functionName}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.formLoading,expression:"formLoading"}],staticClass:"page-view-list",attrs:{"element-loading-spinner":"el-icon-loading"}},[s("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.tabChange},model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:t.$i18nt("gd.solution.assembly","\u5168\u90E8\u7EC4\u4EF6"),name:"assembly",lazy:!0}},[t.activeName=="assembly"?s("Assembly",{ref:"assembly",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.solution.table","\u8868"),name:"table",lazy:!0}},[t.activeName=="table"?s("Table",{ref:"table",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk,refresh:t.refresh}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.flow.process.title","\u4E1A\u52A1\u6D41\u7A0B"),name:"process",lazy:!0}},[t.activeName=="process"?s("Process",{ref:"process",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.flow.work.title","\u5DE5\u4F5C\u6D41\u7A0B"),name:"work",lazy:!0}},[t.activeName=="work"?s("Work",{ref:"work",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.flow.approval.title","\u5BA1\u6279\u6D41\u7A0B"),name:"approval",lazy:!0}},[t.activeName=="approval"?s("approvalFlow",{ref:"approval",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.solution.dict","\u5B57\u5178"),name:"dict",lazy:!0}},[t.activeName=="dict"?s("Dict",{ref:"dict",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.solution.webResources","web\u8D44\u6E90"),name:"webResources",lazy:!0}},[t.activeName=="webResources"?s("WebResources",{ref:"webResources",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.solution.plugIn","\u63D2\u4EF6"),name:"plugIn",lazy:!0}},[t.activeName=="plugIn"?s("PlugIn",{ref:"plugIn",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.solution.role","\u89D2\u8272"),name:"role",lazy:!0}},[t.activeName=="role"?s("Role",{ref:"role",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.solution.application","\u5E94\u7528"),name:"application",lazy:!0}},[t.activeName=="application"?s("Application",{ref:"application",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.solution.application","\u5E94\u7528\u83DC\u5355")+t.$i18nt("gd.solution.menu","\u83DC\u5355"),name:"applicationMenu",lazy:!0}},[t.activeName=="applicationMenu"?s("ApplicationMenu",{ref:"applicationMenu",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1),s("el-tab-pane",{attrs:{label:t.$i18nt("gd.solution.page","\u9875\u9762"),name:"menu",lazy:!0}},[t.activeName=="menu"?s("Menu",{ref:"menu",attrs:{record:t.record,height:t.getHeight,tableDataAll:t.tableDataAll,detailAll:t.detailAll,selList:t.selList},on:{ok:t.addOk,del:t.delOk}}):t._e()],1)],1)],1)])])},_sfc_staticRenderFns$3m=[],__component__$3m=chartbi.normalizeComponent(_sfc_main$3m,_sfc_render$3m,_sfc_staticRenderFns$3m,!1,null,"4a27f602",null,null);const ListSolution=__component__$3m.exports,main_vue_vue_type_style_index_0_scoped_8a02f2a5_lang="",_sfc_main$3l={name:"GdSolution",props:{height:{type:Number,default:0}},mixins:[mixins$O],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},loadData:i=>sysSolutionPage(Object.assign(i,this.queryParam)).then(t=>t.data),openManage:!1,selectItem:{}}},components:{importList,exportList,ListSolution},computed:{getHeight(){return this.height},getFormColumns(){return this.formColumns.filter(t=>(t.disabled=!1,this.selectItem.id!==void 0&&(t.disabled=t.prop==="logicalname"),!0))},styled(){return this.openManage?"z-index:7;padding: 0px 0px 0px 0px;":"padding: 0px 0px 0px 0px;"},...chartbi.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{add(){this.selectItem={},this.transKey="gd.btn.add",this.$refs.editForm.open(null)},edit(i){if(i){this.selectItem=i,this.transKey="gd.btn.edit",this.$refs.editForm.open(i);return}if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.selectItem=this.selectedRows[0],this.transKey="gd.btn.edit",this.$refs.editForm.open(this.selectedRows[0])},editForm(i){this.selectItem=i,this.openManage=!0,this.$hasPerm("sysSolution:edit")&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.listSolution.init(i)},0)})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionDelete({id:this.selectedRowKeys.join(",")}).then(a=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a.success?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message),this.handleOk()})},sbumit({data:i,record:t,btn:s},a,l){this.formLoading=!0,(t?sysSolutionEdit:sysSolutionAdd)(i).then(o=>{o.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),l(),Object.assign(this.selectItem,i),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.formLoading=!1})},saveQueries(i){this.queryParam={...i},this.handleOk()},import(){this.$refs.importList.open()},export(i){let t=i?[i]:this.selectedRows;if(t.length===0){this.$message.error(this.$i18nt("gd.xlsxExport.leastTip","\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u9879"));return}if(t.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91"));return}this.$refs.exportList.open(t[0])},release(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$confirm(this.$i18nt("gd.https.releaseContent","\u786E\u8BA4\u53D1\u5E03?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.releaseOk","\u7ACB\u5373\u53D1\u5E03"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysSolutionDeploy({solutionId:this.selectedRowKeys[0]}).then(a=>{s(),a.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+a.message),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0})}})},handleOk(){this.$refs.table.refresh()},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},back(){this.openManage=!1},functionNameClick(i){let t=i.item.functionName;this[t]&&this[t](this.selectItem)},doEvent(i){let t=i.item.functionName;this[t]()}}};var _sfc_render$3l=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",style:t.styled},[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:t.editForm}})]}},{key:"description",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"description",row:l}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.solution.displayName","\u663E\u793A\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.handleOk.apply(null,arguments)}},model:{value:t.queryParam.name,callback:function(a){t.$set(t.queryParam,"name",a)},expression:"queryParam.name"}}),s("div",{staticClass:"table-operator-search",on:{click:t.handleOk}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}])})],1),s("ListSolution",{ref:"listSolution",attrs:{height:t.height},on:{functionName:t.functionNameClick}}),s("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:t.formLoading,transKey:t.transKey,buttons:t.formButtons,columns:t.getFormColumns,labelPosition:t.labelPosition,formMode:t.formMode,inline:!1,width:"700px"},on:{sbumit:t.sbumit}}),s("exportList",{ref:"exportList"}),s("importList",{ref:"importList",on:{ok:t.handleOk}})],1)},_sfc_staticRenderFns$3l=[],__component__$3l=chartbi.normalizeComponent(_sfc_main$3l,_sfc_render$3l,_sfc_staticRenderFns$3l,!1,null,"8a02f2a5",null,null);const GDpackage$b=__component__$3l.exports;GDpackage$b.install=function(i){i.component(GDpackage$b.name,GDpackage$b)};const mixins$i={data(){return{tableColumns:[{type:"selection",width:"60"},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.process.tableSort",prop:"sysCodeGenId",label:"\u8868\u540D\u79F0(\u70B9\u51FB\u53EF\u6392\u5E8F)",width:"260",type:"slot",slotType:"sysCodeGenId",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.state",prop:"stateCodes",width:"160",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.flow.explain",prop:"description",width:"260",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysFlowProcess:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysFlowProcess:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFlowProcess:delete"},{displayName:"\u6392\u5E8F",functionName:"sortSel",show:!0,transKey:"gd.btn.sort",icon:"el-icon-rank",name:"sysFlowProcess:sort"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}},processFlow_vue_vue_type_style_index_0_scoped_fc2db8b4_lang="",_sfc_main$3k={props:{height:{type:Number,default:0}},mixins:[messages.tablesFilter,mixins$i],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:i=>messages.onlineBizProcessPage(Object.assign(i,this.queryParam)).then(t=>(this.upStatuList=null,t.data)),detail:{}}},computed:{getHeight(){return this.height-55},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...chartbi.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{flowDesign:flowDesign$2,FlowsSort},methods:{add(){this.transKey="gd.btn.add",this.visible=!0,this.$refs.flowDesign.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}let a=[],l=messages.onlineBizProcessDel({ids:this.selectedRowKeys.join(",")}).then(n=>n);a.push(l),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(a).then(n=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0;const o=n.filter(r=>!r.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.refresh()})},enabling(i){let t=Object.assign({...i},{statecodes:i.statecodes==1?0:1}),s=i.statecodes==1?"\u662F\u5426\u7981\u7528?":"\u662F\u5426\u542F\u7528?";this.$confirm(s,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:i.statecodes==1?this.$i18nt("gd.state.disable"):this.$i18nt("gd.state.enable"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,l,n)=>{this.enabHand(a,l,n,t)}})},enabHand(i,t,s,a){if(i!=="confirm"){s();return}let l=[],n=messages.onlineBizProcessEdit(a).then(o=>o);l.push(n),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(l).then(o=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,s();const r=o.filter(d=>!d.success);r.length===0?this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+r[0].message),this.refresh()})},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},saveQueries(i){this.queryParam={...i},this.refresh()},editForm(i){this.$refs.flowDesign.open(i.id)},sortList(i){!this.$hasPerm("sysFlowProcess:sort")||(this.detail=i,this.$nextTick(()=>{setTimeout(()=>{this.$refs.flowsSort.open()},0)}))},sortSel(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.detail=this.selectedRows[0],this.$nextTick(()=>{setTimeout(()=>{this.$refs.flowsSort.open()},0)})},refresh(){this.$refs.table.refresh()},dictSwitch(i,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==i)[0];return s!=null&&s.colour?s.colour:null},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$3k=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!0,initialLoading:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.table.tableNameTip","\u8BF7\u8F93\u5165\u8868\u540D\u79F0"),"reserve-keyword":"",clearable:"","collapse-tags":!0},model:{value:t.queryParam.tableId,callback:function(a){t.$set(t.queryParam,"tableId",a)},expression:"queryParam.tableId"}},t._l(t.tableLists,function(a){return s("el-option",{key:a.id,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname),value:a.id}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+t._s(a.tablename)+" ")])}),1),s("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:a,row:l}){return[s("div",{staticClass:"active-color line1",staticStyle:{cursor:"pointer"},on:{click:function(n){return t.editForm(l)}}},[t._v(t._s(l.name))])]}},{key:"sysCodeGenId",fn:function({column:a,row:l}){return[l.syscodegen?s("span",{style:t.styled,on:{click:function(n){return t.sortList(l)}}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.syscodegen.transkey}`,l.syscodegen.busname))+" ")]):t._e()]}},{key:"stateCodes",fn:function(a){return[t.dictSwitch(a.row.statecodes,"state_code")?s("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(a.row.statecodes,"state_code")},on:{click:function(l){return t.enabling(a.row)}}},[t._v(" "+t._s(t._f("dictType")("state_code",a.row.statecodes))+" ")]):s("span",{on:{click:function(l){return t.enabling(a.row)}}},[t._v(t._s(t._f("dictType")("state_code",a.row.statecodes)))])]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}])})],1),s("flowDesign",{ref:"flowDesign",on:{ok:t.refresh}}),s("FlowsSort",{ref:"flowsSort",attrs:{record:t.detail},on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$3k=[],__component__$3k=chartbi.normalizeComponent(_sfc_main$3k,_sfc_render$3k,_sfc_staticRenderFns$3k,!1,null,"fc2db8b4",null,null);const processFlow=__component__$3k.exports,mixins$h={data(){return{tableColumns:[{type:"selection",width:"60"},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.process.tableSort",prop:"sysCodeGenId",label:"\u8868\u540D\u79F0",width:"260",type:"slot",slotType:"sysCodeGenId",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.state",prop:"stateCodes",width:"160",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysFlowWork:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysFlowWork:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFlowWork:delete"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}},workFlow_vue_vue_type_style_index_0_scoped_74b50ecf_lang="",_sfc_main$3j={props:{height:{type:Number,default:0}},mixins:[messages.tablesFilter,mixins$h],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:i=>messages.onlineWorkflowPage(Object.assign(i,this.queryParam)).then(t=>(this.upStatuList=null,t.data)),confirmLoading:!1,upStatuList:null}},computed:{getHeight(){return this.height-55},...chartbi.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{flowDesign:flowDesign$1},methods:{add(){this.transKey="gd.btn.add",this.visible=!0,this.$refs.flowDesign.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}let a=[],l=messages.onlineWorkflowDel({ids:this.selectedRowKeys.join(",")}).then(n=>n);a.push(l),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(a).then(n=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,s();const o=n.filter(r=>!r.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.refresh(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0})},getDetail(i){this.confirmLoading=!0,messages.onlineWorkflowDetails({id:i}).then(t=>{t.success&&(this.upStatuList=t.data)})},enabling(i){if(!this.$hasPerm("sysFlowWork:edit"))return;this.getDetail(i.id);let t=i.statecodes==1?"\u662F\u5426\u7981\u7528?":"\u662F\u5426\u542F\u7528?";this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:i.statecodes==1?this.$i18nt("gd.state.disable","\u7981\u7528"):this.$i18nt("gd.state.enable","\u542F\u7528"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,a,l)=>{this.upStatuList.data.statecodes=i.statecodes==1?0:1,this.enabHand(s,a,l,this.upStatuList)}})},enabHand(i,t,s,a){if(i!=="confirm"){s();return}let l=[],n=messages.onlineWorkflowEdit(a).then(o=>o);l.push(n),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(l).then(o=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,s();const r=o.filter(d=>!d.success);r.length===0?this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+r[0].message),this.refresh()})},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},saveQueries(i){this.queryParam={...i},this.refresh()},editForm(i){this.$refs.flowDesign.open(i.id)},refresh(){this.upStatuList=null,this.$refs.table.refresh()},dictSwitch(i,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==i)[0];return s!=null&&s.colour?s.colour:null},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$3j=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,initialLoading:!1,filtering:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.table.tableNameTip","\u8BF7\u8F93\u5165\u8868\u540D\u79F0"),"reserve-keyword":"",clearable:"","collapse-tags":!0},model:{value:t.queryParam.tableId,callback:function(a){t.$set(t.queryParam,"tableId",a)},expression:"queryParam.tableId"}},t._l(t.tableLists,function(a){return s("el-option",{key:a.id,attrs:{label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname),value:a.id}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+t._s(a.tablename)+" ")])}),1),s("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:t.editForm}})]}},{key:"sysCodeGenId",fn:function({column:a,row:l}){return[l.syscodegen?s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.syscodegen.transkey}`,l.syscodegen.busname))+" ")]):t._e()]}},{key:"stateCodes",fn:function(a){return[t.dictSwitch(a.row.statecodes,"state_code")?s("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(a.row.statecodes,"state_code")},on:{click:function(l){return t.enabling(a.row)}}},[t._v(" "+t._s(t._f("dictType")("state_code",a.row.statecodes))+" ")]):s("span",{on:{click:function(l){return t.enabling(a.row)}}},[t._v(t._s(t._f("dictType")("state_code",a.row.statecodes)))])]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}])})],1),s("flowDesign",{ref:"flowDesign",on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$3j=[],__component__$3j=chartbi.normalizeComponent(_sfc_main$3j,_sfc_render$3j,_sfc_staticRenderFns$3j,!1,null,"74b50ecf",null,null);const workFlow=__component__$3j.exports,mixins$g={data(){return{tableColumns:[{type:"selection",width:"60"},{transKey:"gd.flow.approval.name",prop:"name",label:"\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.approval.table",prop:"tableId",label:"\u5173\u8054\u8868",width:"260",type:"slot",slotType:"tableId",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.approval.classify",prop:"category",width:"160",label:"\u5206\u7C7B",type:"slot",slotType:"category",align:"left"},{transKey:"gd.flow.approval.code",prop:"encode",width:"160",label:"\u7F16\u7801",align:"left"},{transKey:"gd.flow.state",prop:"stateCodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",width:"180",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.flow.explain",prop:"description",width:"260",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysFlowApproval:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysFlowApproval:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFlowApproval:delete"}],tableQueries:[{transKey:"gd.flow.approval.name",prop:"keyword",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]},{transKey:"gd.flow.state",prop:"category",label:"\u5206\u7C7B",effectType:"select",dictTypeCode:"table_flows_type",rules:[]}]}}},approvalFlow_vue_vue_type_style_index_0_scoped_f0f853e0_lang="",_sfc_main$3i={props:{height:{type:Number,default:0}},mixins:[messages.tablesFilter,mixins$g],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:i=>{let t={...this.queryParam};return t.stateCodes!=null&&(t=Object.assign({...t},{stateCodes:t.stateCodes})),messages.approvalProcess(Object.assign(i,t)).then(s=>{if(s.code===200){const a=s.data.rows.map(l=>{const n=this.tableLists.filter(o=>o.id===l.tableid)[0];return Object.assign(l,n?{tableData:n}:{})});Object.assign(s.data,{rows:a})}return s.data})}}},computed:{getHeight(){return this.height-55},...chartbi.mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{flowDesign},methods:{add(){this.transKey="gd.btn.add",this.visible=!0,this.$refs.flowDesign.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}let a=[],l=messages.approvalProcessDel({ids:this.selectedRowKeys.join(",")}).then(n=>n);a.push(l),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(a).then(n=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,s();const o=n.filter(r=>!r.success);o.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+o[0].message),this.refresh()})},enabling(i){let t=Object.assign({...i},{statecodes:i.statecodes==1?0:1}),s=i.statecodes==1?"\u662F\u5426\u7981\u7528?":"\u662F\u5426\u542F\u7528?";this.$confirm(s,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:i.statecodes==1?this.$i18nt("gd.state.disable"):this.$i18nt("gd.state.enable"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,l,n)=>{this.enabHand(a,l,n,t)}})},enabHand(i,t,s,a){if(i!=="confirm"){s();return}let l=[],n=messages.approvalProcessEdit(a).then(o=>o);l.push(n),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(l).then(o=>{s(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0;const r=o.filter(d=>!d.success);r.length===0?this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+r[0].message),this.refresh()})},onSelectChange(i,t){this.selectedRowKeys=i,this.selectedRows=t},saveQueries(i){this.queryParam={...i},this.refresh()},editForm(i){this.$refs.flowDesign.open(i.id)},refresh(){this.$refs.table.refresh()},dictSwitch(i,t){let s=this.$options.filters.dictData(t).filter(a=>a.code==i)[0];return s&&s.colour?s.colour:null},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$3i=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-page-view"},[s("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,initialLoading:!1,filtering:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorl"},[s("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.flow.approval.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.refresh.apply(null,arguments)}},model:{value:t.queryParam.keyword,callback:function(a){t.$set(t.queryParam,"keyword",a)},expression:"queryParam.keyword"}}),s("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[s("i",{staticClass:"el-input__icon el-icon-search"})])],1),s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:""},on:{click:t.editForm}})]}},{key:"tableId",fn:function({column:a,row:l}){return[l.tableData?s("span",[t._v(t._s(t.$i18nt(`Dynamics.${l.tableData.transkey}`,l.tableData.busname)))]):t._e()]}},{key:"stateCodes",fn:function(a){return[t.dictSwitch(a.row.statecodes,"state_code")?s("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(a.row.statecodes,"state_code")},on:{click:function(l){return t.enabling(a.row)}}},[t._v(" "+t._s(t._f("dictType")("state_code",a.row.statecodes))+" ")]):s("span",{on:{click:function(l){return t.enabling(a.row)}}},[t._v(t._s(t._f("dictType")("state_code",a.row.statecodes)))])]}},{key:"category",fn:function(a){return[s("span",[t._v(t._s(t._f("dictType")("table_flows_type",a.row.category)))])]}},{key:"filtering",fn:function({colse:a,visible:l}){return[s("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:a,visible:l},on:{save:t.saveQueries}})]}}])})],1),s("flowDesign",{ref:"flowDesign",on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$3i=[],__component__$3i=chartbi.normalizeComponent(_sfc_main$3i,_sfc_render$3i,_sfc_staticRenderFns$3i,!1,null,"f0f853e0",null,null);const approvalFlow=__component__$3i.exports,main_vue_vue_type_style_index_0_scoped_0119a45c_lang="",_sfc_main$3h={props:{height:{type:Number,default:0}},name:"GdFlowList",data(){return{type:"process"}},computed:{getHeight(){return this.height}},components:{processFlow,workFlow,approvalFlow},mounted(){this.$hasPerm("sysFlowProcess:page")?this.type="process":this.$hasPerm("sysFlowWork:page")?this.type="work":this.$hasPerm("sysFlowApproval:page")&&(this.type="approval")},methods:{tabChange(i){this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.type+"Flow"].refresh()},0)})}}};var _sfc_render$3h=function(){var t=this,s=t._self._c;return s("div",[s("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.tabChange},model:{value:t.type,callback:function(a){t.type=a},expression:"type"}},[t.$hasPerm("sysFlowProcess:page")?s("el-tab-pane",{attrs:{name:"process",label:t.$i18nt("gd.flow.process.title","\u4E1A\u52A1\u6D41\u7A0B")}},[t.type=="process"?s("processFlow",{ref:"processFlow",attrs:{height:t.getHeight}}):t._e()],1):t._e(),t.$hasPerm("sysFlowWork:page")?s("el-tab-pane",{attrs:{name:"work",label:t.$i18nt("gd.flow.work.title","\u5DE5\u4F5C\u6D41\u7A0B")}},[t.type=="work"?s("workFlow",{ref:"workFlow",attrs:{height:t.getHeight}}):t._e()],1):t._e(),t.$hasPerm("sysFlowApproval:page")?s("el-tab-pane",{attrs:{name:"approval",label:t.$i18nt("gd.flow.approval.title","\u5BA1\u6279\u6D41\u7A0B")}},[t.type=="approval"?s("approvalFlow",{ref:"approvalFlow",attrs:{height:t.getHeight}}):t._e()],1):t._e()],1)],1)},_sfc_staticRenderFns$3h=[],__component__$3h=chartbi.normalizeComponent(_sfc_main$3h,_sfc_render$3h,_sfc_staticRenderFns$3h,!1,null,"0119a45c",null,null);const GDpackage$a=__component__$3h.exports;GDpackage$a.install=function(i){i.component(GDpackage$a.name,GDpackage$a)};const index_vue_vue_type_style_index_0_scoped_34d30c27_lang="",_sfc_main$3g={props:{placement:{type:String,default:"top"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0}},methods:{selType(i){this.visible=!1,!this.disabled&&this.$emit("selType",i)}}};var _sfc_render$3g=function(){var t=this,s=t._self._c;return s("div",{staticClass:"lian"},[s("div",{ref:"lianBtn",staticClass:"lian-btn"},[s("el-popover",{attrs:{placement:t.placement},model:{value:t.visible,callback:function(a){t.visible=a},expression:"visible"}},[s("div",{staticClass:"overlayd"},[t._v(t._s(t.$i18nt("gd.flow.addNode","\u6DFB\u52A0\u6D41\u7A0B\u8282\u70B9")))]),s("div",{staticClass:"connect-solid"},[s("el-divider")],1),s("div",{staticClass:"contents"},[s("div",{staticClass:"item term",on:{click:function(a){return t.selType("condition")}}},[s("i",{staticClass:"gd-icons gd-icon-liucheng anticon"}),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.condition","\u6761\u4EF6")))])]),s("div",{staticClass:"item move",on:{click:function(a){return t.selType("step")}}},[s("i",{staticClass:"gd-icons gd-icon-Interaction anticon"}),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.stageOrStep","\u9636\u6BB5/\u6B65\u9AA4")))])])]),s("el-button",{attrs:{slot:"reference",type:t.disabled?"info":"primary",icon:"el-icon-plus",size:"mini",circle:"",disabled:t.disabled},slot:"reference"})],1)],1)])},_sfc_staticRenderFns$3g=[],__component__$3g=chartbi.normalizeComponent(_sfc_main$3g,_sfc_render$3g,_sfc_staticRenderFns$3g,!1,null,"34d30c27",null,null);const ConnectDesigner$2=__component__$3g.exports,index_vue_vue_type_style_index_0_scoped_acfc0efd_lang="",_sfc_main$3f={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,fetching:!1,show:!1,ruleFormData:{name:"",sysCodeGenId:"",code:"",span:"",description:"",stateCodes:"",transKey:null,langs:"[]"},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],span:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},confirmLoading:!1}},components:{ConnectDesigner:ConnectDesigner$2},computed:{getTableLists(){return this.tableLists.filter(i=>(i.isbusinessprocess===void 0?1:i.isbusinessprocess)===1)},getName(){let i=this.record.data.name;if(this.record.data.langs&&this.record.data.langs.length>0){let t=this.record.data.langs.filter(s=>s.code==this.language)[0];i=t==null?i:t.val}else this.record.data.transKey&&(i=this.$i18nt(`Dynamics.${this.record.data.transKey}`,i));return i},disabled(){return!this.permissionsBnt||this.stateCodes==1?!0:this.record.data.code!==""},disableds(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...chartbi.mapGetters(["language","primaryColor","tableLists"])},methods:{lookupSeled(i){let t=[];i.langs.forEach(s=>{t.push({name:s.languagename,val:s.description,code:s.languagecode})}),this.ruleFormData=Object.assign(this.ruleFormData,{name:i.defaulttext,langs:JSON.stringify(t)}),this.record.data.langs=t,this.record.data.name=i.defaulttext},sbumit(){this.$refs.ruleForm.validate(i=>{i&&(this.record.data=Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)}),this.onClose(1))})},see(){this.show=this.record.data.stateCodes!==void 0,this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let i={span:this.record.data.span,name:this.record.data.name,sysCodeGenId:Number(this.record.data.sysCodeGenId),description:this.record.data.description,code:this.record.data.code,transKey:this.record.data.transKey,langs:JSON.stringify(this.record.data.langs)};this.record.data.stateCodes!==void 0&&(i=Object.assign(i,{stateCodes:this.record.data.stateCodes})),console.log(this.record.data.stateCodes,"str"),this.ruleFormData=Object.assign({...i}),this.$refs.gdTranslation},0)})},afterVisibleChange(){if(this.visible)return;let i=this.form.getFieldsValue();this.record.data=i},handleChange(i){this.record.data.title=i},onClose(i){if(i!=null&&i==1){this.visible=!1;return}if(this.record.data.transKey){let t=this.ruleFormData,s=JSON.parse(t.langs);this.record.data=Object.assign({...this.record.data},{langs:s,name:t.name})}this.visible=!1},selType(i){this.$emit("addType",i,this.index)},getDictionary(i){return this.$options.filters.dictData(i)}}};var _sfc_render$3f=function(){var t=this,s=t._self._c;return s("div",{staticClass:"start"},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[s("div",{staticClass:"starts",attrs:{slot:"reference"},on:{click:t.see},slot:"reference"},[s("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.processStart","\u6D41\u7A0B\u5F00\u59CB")))]),s("div",{staticClass:"start-b"},[s("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),s("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})])])]),s("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(a){t.visible=a}}},[s("template",{slot:"title"},[s("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[s("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.ProcessInformation","\u6D41\u7A0B\u4FE1\u606F")))])])]),s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[s("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.transKey,callback:function(a){t.$set(t.ruleFormData,"transKey",a)},expression:"ruleFormData.transKey"}})],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[s("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.langs,callback:function(a){t.$set(t.ruleFormData,"langs",a)},expression:"ruleFormData.langs"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.name"),prop:"name"}},[s("el-input",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!t.record.data.transKey,expression:"visible && !record.data.transKey"}],staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}}),t.visible&&t.record.data.transKey?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.record.data,keyI18n:"transKey",type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.table"),prop:"sysCodeGenId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),disabled:!0,filterable:"",remote:"","reserve-keyword":"",loading:t.fetching},model:{value:t.ruleFormData.sysCodeGenId,callback:function(a){t.$set(t.ruleFormData,"sysCodeGenId",a)},expression:"ruleFormData.sysCodeGenId"}},t._l(t.getTableLists,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname)}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname)))]),s("span",[t._v(t._s(a.tablename))])])}),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"code"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,placeholder:t.$i18nt("gd.placeholder.input")},model:{value:t.ruleFormData.code,callback:function(a){t.$set(t.ruleFormData,"code",a)},expression:"ruleFormData.code"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.display","\u663E\u793A"),prop:"span"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.span,callback:function(a){t.$set(t.ruleFormData,"span",a)},expression:"ruleFormData.span"}},[s("el-option",{attrs:{value:"24",label:t.$i18nt("gd.flow.process.oneColumn","\u4E00\u884C\u4E00\u5217")}}),s("el-option",{attrs:{value:"12",label:t.$i18nt("gd.flow.process.twoColumn","\u4E00\u884C\u4E24\u5217")}}),s("el-option",{attrs:{value:"8",label:t.$i18nt("gd.flow.process.threeColumn","\u4E00\u884C\u4E09\u5217")}}),s("el-option",{attrs:{value:"6",label:t.$i18nt("gd.flow.process.fourColumn","\u4E00\u884C\u56DB\u5217")}})],1)],1)],1),t.show?s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state"),prop:"stateCodes"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(a){t.$set(t.ruleFormData,"stateCodes",a)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1):t._e(),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.describe","\u63CF\u8FF0"),prop:"description"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:4,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.description,callback:function(a){t.$set(t.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply"))+" ")])],1)],2)],1)},_sfc_staticRenderFns$3f=[],__component__$3f=chartbi.normalizeComponent(_sfc_main$3f,_sfc_render$3f,_sfc_staticRenderFns$3f,!1,null,"acfc0efd",null,null);const StartDesigner$2=__component__$3f.exports,index_vue_vue_type_style_index_0_scoped_cd15df38_lang="",_sfc_main$3e={data(){return{}}};var _sfc_render$3e=function(){var t=this,s=t._self._c;return s("div",{staticClass:"end"},[s("div",{staticClass:"ends"},[t._v(t._s(t.$i18nt("gd.flow.processEnd","\u6D41\u7A0B\u7ED3\u675F")))])])},_sfc_staticRenderFns$3e=[],__component__$3e=chartbi.normalizeComponent(_sfc_main$3e,_sfc_render$3e,_sfc_staticRenderFns$3e,!1,null,"cd15df38",null,null);const EndDesigner$2=__component__$3e.exports,index_vue_vue_type_style_index_0_scoped_f95902fa_lang="",_sfc_main$3d={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:""},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,list:[],fieldsList:[],ruleForm:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},components:{ConnectDesigner:ConnectDesigner$2,draggable},computed:{dictList(){return this.loadData.filter(i=>i.dicttypecode)},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getName(){let i=this.record.name;if(this.record.langs&&this.record.langs.length>0){let t=this.record.langs.filter(s=>s.code==this.language)[0];i=t===void 0?i:t.val}else this.record.transKey&&(i=this.$i18nt(`Dynamics.${this.record.transKey}`,i));return i},languageMessages(){return this.$i18n.messages},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},stylede(){return`padding-left:4px;color:${this.primaryColor};`},...chartbi.mapGetters(["language","tableLists","primaryColor"])},methods:{delFieldsList(i){this.fieldsList=this.fieldsList.filter((t,s)=>s!==i)},seleFields(i,t){const s=this.dictList.filter(a=>a.columnname===i)[0];this.fieldsList[t].dictTypeCode=s.dicttypecode},addFieldsList(){let i=[...this.fieldsList];i.push({columnName:"",val:"",dictTypeCode:""}),this.fieldsList=[...i]},getDictList(i){let t=[];return this.fieldsList.forEach(a=>{a.columnName&&a.columnName!==i.columnName&&t.push(a.columnName)}),this.dictList.filter(a=>!t.includes(a.columnname))},getTransKey(i,t){let s=this.tableLists.filter(o=>o.id==this.codeGenId)[0],a=s===void 0?"":`_${s.tablename}`,l=`SFO_N${a}_${chartbi.uuid(8)}`;t==1&&(l=`SFO_N${a}_field_${chartbi.uuid(8)}`);let n=[];for(let o in this.languageMessages)n.push({name:chartbi.transKeyCodeName(o),val:i.name,code:o});return JSON.stringify({name:l,langs:n})},lookupSeled(i){this.record.transKey||this.$emit("addTransKey",i.name);let t=[];i.langs.forEach(s=>{t.push({name:s.languagename,val:s.description,code:s.languagecode})}),this.ruleForm=Object.assign({...this.ruleForm},{name:i.defaulttext,langsd:JSON.stringify(t),langs:t,transKey:i.name}),this.record.transKey=i.name,this.record.langs=t},lookupSeleds(i,t){let s=[...this.list];s[t].transKey||this.$emit("addTransKey",i.name);let a=[];i.langs.forEach(l=>{a.push({name:l.languagename,val:l.description,code:l.languagecode})}),s[t].name=i.defaulttext,s[t].transKey=i.name,s[t].langs=i.langs,this.list=[...s]},sbumit(){this.$refs.ruleForm.validate(i=>{if(i){if(this.list.length==0){this.$message.error(this.$i18nt("gd.flow.process.stepNameTip","\u8BF7\u6DFB\u52A0\u6570\u636E\u6B65\u9AA4\uFF01"));return}if(!this.isChecked()){this.$message.error(this.$i18nt("gd.flow.process.addStepTip","\u8BF7\u8865\u5145\u6570\u636E\u6B65\u9AA4\u4FE1\u606F\uFF01"));return}if(this.ruleForm.updateOpen&&this.fieldsList.length===0){this.$message.error(this.$i18nt("gd.flow.process.addFieldsTip","\u8BF7\u8865\u5145\u66F4\u65B0\u5B57\u6BB5\u4FE1\u606F\uFF01"));return}if(this.ruleForm.updateOpen&&!this.isCheckedFields()){this.$message.error(this.$i18nt("gd.flow.process.addFieldsTip","\u8BF7\u8865\u5145\u66F4\u65B0\u5B57\u6BB5\u4FE1\u606F\uFF01"));return}this.record.err=!1,this.record.name=this.ruleForm.name,this.record.transKey=this.ruleForm.transKey,this.record.langs=this.ruleForm.transKey?[]:this.ruleForm.langs,this.record.list=[...this.list],this.record.updateOpen=this.ruleForm.updateOpen,this.record.fieldsList=[...this.fieldsList],this.onClose(1)}})},isChecked(i){return this.list.every((t,s,a)=>t.columnName!=null&&t.columnName!=""&&t.name!="")},isCheckedFields(){return this.fieldsList.every((i,t,s)=>i.columnName!=""&&i.val!="")},selColumn(i,t){const s=this.loadData.filter(a=>a.columnname===i)[0];this.list[t].columnId=s?s.id:"",this.list[t].name=this.list[t].name==""?s?s.columncomment:this.list[t].name:this.list[t].name,this.list[t].fieldTransKey=s?s.transkey:this.list[t].fieldTransKey},addList(){let i={id:chartbi.uuid(),name:"",columnName:"",columnId:"",disabled:!1,rules:[{required:!1,message:"\u5FC5\u586B\u9879"}],fieldTransKey:null,transKey:null};this.list=this.list.concat(i)},delList(i){let t=this.list[i];this.list=this.list.filter((s,a)=>a!=i),t.transKey&&this.$emit("deltransKey",t.transKey)},see(){this.visible=!0;let i=this.record.langs?this.record.langs:[];this.list=[...this.record.list],this.fieldsList=this.record.fieldsList!==void 0?this.record.fieldsList:[],this.record.langs=[],this.$nextTick(()=>{setTimeout(()=>{this.ruleForm=Object.assign({name:this.record.name,transKey:this.record.transKey?this.record.transKey:null,langsd:JSON.stringify(i),langs:this.record.transKey?[]:i,updateOpen:this.record.updateOpen!==void 0?this.record.updateOpen:!1}),this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},selType(i){this.$emit("addType",i,this.index)},del(){this.$emit("delItem",this.index)},onClose(i){if(i!==void 0&&i==1){this.visible=!1;return}this.record.transKey&&(this.record.name=this.ruleForm.name,this.record.langs=this.ruleForm.langs),this.visible=!1},getDictionary(i){return this.$options.filters.dictData(i)}}};var _sfc_render$3d=function(){var t=this,s=t._self._c;return s("div",{staticClass:"steps"},[s("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[s("div",{attrs:{slot:"reference"},slot:"reference"},[s("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.stageOrStep","\u9636\u6BB5/\u6B65\u9AA4")))]),s("div",{staticClass:"start-b"},[s("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),s("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})]),t.record.isDelete?s("i",{staticClass:"el-icon-close",attrs:{id:"close"},on:{click:function(a){return a.stopPropagation(),t.del.apply(null,arguments)}}}):t._e()])]),t.record.err?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.stageTip","\u8BF7\u8865\u5145\u6570\u636E\u6B65\u9AA4\u4FE1\u606F")))])]),s("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),s("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer"},on:{close:t.onClose,"update:visible":function(a){t.visible=a}}},[s("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[s("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleForm.transKey,callback:function(a){t.$set(t.ruleForm,"transKey",a)},expression:"ruleForm.transKey"}})],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langsd"}},[s("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleForm.langsd,callback:function(a){t.$set(t.ruleForm,"langsd",a)},expression:"ruleForm.langsd"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[s("el-input",{staticStyle:{display:"none"},attrs:{disabled:t.disabled},model:{value:t.ruleForm.name,callback:function(a){t.$set(t.ruleForm,"name",a)},expression:"ruleForm.name"}}),t.visible&&!t.ruleForm.transKey?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleForm,transKey:t.getTransKey(t.ruleForm,1),type:3,keyI18n:"transKey"},on:{lookupSeled:t.lookupSeled}}):t.visible&&t.record.transKey?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleForm,transKey:t.getTransKey(t.ruleForm,1),type:2,keyI18n:"transKey"},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1)],1),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.process.dataSteps","\u6570\u636E\u6B65\u9AA4")))]),s("div",[t.list.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.process.stepName","\u6B65\u9AA4\u540D\u79F0")))]),s("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5")))]),s("el-col",{attrs:{span:2}},[t._v(t._s(t.$i18nt("gd.flow.process.required","\u5FC5\u586B")))]),s("el-col",{attrs:{span:2}},[t._v(t._s(t.$i18nt("gd.flow.process.disable","\u7981\u7528")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e()],1),s("div",[s("draggable",t._b({model:{value:t.list,callback:function(a){t.list=a},expression:"list"}},"draggable",{animation:300,handle:"#drag-btn"},!1),t._l(t.list,function(a,l){return s("el-row",{key:a.id,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:8}},[t.visible&&!a.transKey?s("gd-translation",{ref:"gdTranslationd",refInFor:!0,attrs:{recordData:a,transKey:t.getTransKey(a,2),type:3,keyI18n:"transKey"},on:{lookupSeled:n=>t.lookupSeleds(n,l)}}):t._e(),t.visible&&a.transKey?s("gd-translation",{ref:"gdTranslationd",refInFor:!0,attrs:{recordData:a,transKey:t.getTransKey(a,2),type:2,keyI18n:"transKey"},on:{lookupSeled:n=>t.lookupSeleds(n,l)}}):t._e()],1),s("el-col",{attrs:{span:8}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5"),filterable:"",clearable:"",disabled:t.disabled},on:{change:function(n){return t.selColumn(n,l)}},model:{value:a.columnName,callback:function(n){t.$set(a,"columnName",n)},expression:"item.columnName"}},t._l(t.loadData,function(n,o){return s("el-option",{key:n.columnname,attrs:{label:t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment),value:n.columnname}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment))+" "+t._s(n.columnname))])])}),1)],1),s("el-col",{attrs:{span:2}},[s("el-checkbox",{staticStyle:{"margin-top":"6px"},attrs:{disabled:t.disabled},model:{value:a.rules[0].required,callback:function(n){t.$set(a.rules[0],"required",n)},expression:"item.rules[0].required"}})],1),s("el-col",{attrs:{span:2}},[s("el-checkbox",{staticStyle:{"margin-top":"6px"},attrs:{disabled:t.disabled},model:{value:a.disabled,callback:function(n){t.$set(a,"disabled",n)},expression:"item.disabled"}})],1),s("el-col",{attrs:{span:4}},[t.disabled?t._e():s("i",{staticClass:"el-icon-rank",attrs:{id:"drag-btn"}}),t.disabled?t._e():s("i",{staticClass:"el-icon-close",attrs:{id:"del-btn"},on:{click:function(n){return t.delList(l)}}})])],1)}),1)],1),t.disabled?t._e():s("div",{staticClass:"add"},[s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.addStep","\u6DFB\u52A0\u6570\u636E\u6B65\u9AA4"))+" ")])]),s("div",{staticClass:"title"},[t._v(" "+t._s(t.$i18nt("gd.flow.process.mapping","\u6620\u5C04"))+" "),s("el-switch",{staticStyle:{float:"right"},attrs:{"active-color":t.primaryColor,disabled:t.disabled},model:{value:t.ruleForm.updateOpen,callback:function(a){t.$set(t.ruleForm,"updateOpen",a)},expression:"ruleForm.updateOpen"}})],1),s("div",[t.fieldsList.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.flow.process.mapFields","\u6620\u5C04\u5B57\u6BB5")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.flow.process.mapValue","\u6620\u5C04\u503C")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e()],1),s("div",t._l(t.fieldsList,function(a,l){return s("el-row",{key:a.columnName,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5"),filterable:"",clearable:"",disabled:t.disabled},on:{change:function(n){return t.seleFields(n,l)}},model:{value:a.columnName,callback:function(n){t.$set(a,"columnName",n)},expression:"item.columnName"}},[t._l(t.getDictList(a),function(n,o){return[s("el-option",{attrs:{label:t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment),value:n.columnname}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment))+" "+t._s(n.columnname))])])]})],2)],1),s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5"),filterable:"",clearable:"",disabled:t.disabled},model:{value:a.val,callback:function(n){t.$set(a,"val",n)},expression:"item.val"}},t._l(t.getDictionary(a.dictTypeCode),function(n,o){return s("el-option",{key:n.code,attrs:{label:t.$i18nt(`Dynamics.${n.transkey}`,n.name),value:n.code}})}),1)],1),s("el-col",{attrs:{span:4}},[t.disabled?t._e():s("i",{staticClass:"el-icon-close",attrs:{id:"del-btn"},on:{click:function(n){return t.delFieldsList(l)}}})])],1)}),1),!t.disabled&&t.ruleForm.updateOpen?s("div",{staticClass:"add"},[s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addFieldsList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addField","\u6DFB\u52A0\u5B57\u6BB5"))+" ")])]):t._e()],1),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1)],1)},_sfc_staticRenderFns$3d=[],__component__$3d=chartbi.normalizeComponent(_sfc_main$3d,_sfc_render$3d,_sfc_staticRenderFns$3d,!1,null,"f95902fa",null,null);const StepsDesigner$2=__component__$3d.exports;function nodeData$2(i){switch(i){case"step":return{type:"step",name:"\u65B0\u5EFA\u9636\u6BB5/\u6B65\u9AA4",list:[],err:!1,isDelete:!0,transKey:null,langs:[],updateOpen:!1,fieldsList:[]};case"condition":return{type:"condition",list:[{type:"if",name:"\u65B0\u5EFA\u6761\u4EF6",rule:[],list:[],err:!1,transKey:null,langs:[]},{type:"else",name:"ELSE",rule:[],list:[],err:!1}],isDelete:!0}}}const index_vue_vue_type_style_index_0_scoped_c70806a7_lang="",_sfc_main$3c={name:"ConditionDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:""},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{detail:{},visible:!1,list:[],rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,confirmLoading:!1,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],span:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}}},components:{ConnectDesigner:ConnectDesigner$2,StepsDesigner:StepsDesigner$2,EffectTypeIcon:messages.EffectTypeIcon},methods:{addTransKey(i){this.$emit("addTransKey",i)},sbumit(){this.$refs.ruleForm.validate(i=>{if(i){if(this.list.length==0){this.$message.error("\u8BF7\u6DFB\u52A0\u89C4\u5219\uFF01");return}if(!this.isChecked()){this.$message.error("\u8BF7\u8865\u5145\u89C4\u5219\u4FE1\u606F\uFF01");return}this.record.list[this.seeIndex].name=this.ruleFormData.name,this.list.map(t=>(t.type=this.ruleFormData.type,t)),this.record.list[this.seeIndex].rule=[...this.list],this.record.list[this.seeIndex].err=!1,this.onClose()}})},isChecked(i){return this.list.every((t,s,a)=>{let l=t.rules!=5&&t.rules!=6?t.val:t.columnName;return t.columnName!=null&&t.columnName!=""&&l!=""})},addList(){let i={type:1,id:chartbi.uuid(),columnName:"",columnId:"",rules:"1",val:"",rulesList:[...this.rulesList],effectType:"input",fieldFormat:null,fkData:[]};this.list=this.list.concat(i)},delList(i){this.list=this.list.filter((t,s)=>s!=i)},see(i){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[i];this.detail=t,this.seeIndex=i,this.list=[...t.rule],this.ruleFormData={name:t.name,type:t.rule.length>0?t.rule[0].type:"1"}},0)})},addCondition(){let i=this.record.list.length,t={type:"elsif",name:"\u65B0\u5EFA\u6761\u4EF6",rule:[],list:[],err:!1,id:chartbi.uuid(),sourceId:this.record.sourceId,pid:this.record.id};this.record.list.splice(i-1,0,t)},selTyped(i,t){let s=nodeData$2(i);s=Object.assign(s,{pid:this.record.list[t].id,id:chartbi.uuid(),sourceId:this.record.sourceId}),s.type=="condition"&&s.list.map(a=>(a=Object.assign(a,{pid:s.id,id:chartbi.uuid(),sourceId:this.record.sourceId}),a)),this.record.list[t].list.splice(0,0,s)},deltransKey(i){this.$emit("deltransKey",i)},async del(i){if(this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list[i],s=this.record.list.filter((n,o)=>o!=i);s[0].type="if",this.record.list=[...s];let a=await this.hasItem([t]).filter(n=>n.transKey),l=[];a.forEach(n=>{l.push(n.transKey)}),l.length!=0&&this.$emit("deltransKey",l)},hasItem(i){let t=[];const s=a=>(a=a.filter((l,n)=>(l.type=="if"&&(l.list=s(l.list)),l.type=="condition"&&l.list.forEach(o=>{o.list=s(o.list)}),l.type=="step"&&(t=t.concat([l]),l.list.length>0&&(t=t.concat(l.list))),!0)),a);return s(i),t},addType(i,t,s){let a=nodeData$2(i);a=Object.assign(a,{pid:this.record.list[t].id,id:chartbi.uuid(),sourceId:this.record.sourceId}),a.type=="condition"&&a.list.map(l=>(l=Object.assign(l,{pid:a.id,id:chartbi.uuid(),sourceId:this.record.sourceId}),l)),this.record.list[t].list.splice(s+1,0,a)},async delChildItem(i,t,s){let a=this.record.list[t].list[i],l=this.record.list[t].list.filter((r,d)=>d!=i);this.record.list[t].list=[...l];let n=await this.hasItem([a]).filter(r=>r.transKey),o=[];n.forEach(r=>{o.push(r.transKey)}),o.length!=0&&this.$emit("deltransKey",o)},selType(i){this.$emit("addType",i,this.index)},onClose(){this.visible=!1},lookup(i,t){this.lookIndex=i;let s=this.loadData.filter(a=>a.id==this.list[i].columnId)[0];this.$refs.viewSearch.open(Object.assign({...s},{val:t}))},lookupSeled(i){this.handleLookupCancel(),["fk","about","user"].includes(this.list[this.lookIndex].effectType)&&(this.list[this.lookIndex].fkData=i.fkData,this.list[this.lookIndex].val=i.data[0])},handleLookupCancel(){this.lookupShow=!1},selColumn(i,t){console.log(i,t),this.$nextTick(()=>{setTimeout(()=>{let s=this.loadData.filter(l=>l.id==i.id)[0],a=this.rulesList.filter(l=>l.remark.split(",").includes(i.effecttype));s.fieldformat&&(this.list[t].fieldFormat=this.fieldFormat.filter(l=>l.code==s.fieldformat)[0].name),this.list[t].columnId=i.id,this.list[t].effectType=s.effecttype,this.list[t].val="",this.list[t].rulesList=[...a],this.list[t].rules=a.length>0?a[0].code:"",s.effecttype=="fk"&&this.searchData("",t)},0)})},searchData(i,t){let s=this.loadData.filter(a=>a.id==this.list[t].columnId)[0];this.fetching=!0,this.list[t].fkData=[],messages.baseFkList({name:i,fkEntityName:s.fkentityname}).then(a=>{this.list[t].fkData=a.success?[...a.data]:[],this.fetching=!1})},getDictionary(i){let t=this.loadData.filter(s=>s.id==i.columnId)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(i){return i.fieldFormat.length>10}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$3c=function(){var t=this,s=t._self._c;return s("div",{staticClass:"condition"},[s("div",{staticClass:"condition-t"},[s("div",{staticClass:"condition-add"},[s("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])],1),t._l(t.record.list,function(a,l){return s("div",{key:l,staticClass:"condition-item"},[l==0?s("div",{staticClass:"condition-bot-left"}):t._e(),l==0?s("div",{staticClass:"condition-top-left"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-bot-right"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-top-right"}):t._e(),s("div",{staticClass:"condition-node"},[a.type=="else"?s("div",{staticClass:"condition-body"},[s("div",{staticClass:"condition-bodyt err-bg"},[t._v("ELSE")]),s("div",{staticClass:"condition-bodyb"},[s("div",{staticClass:"title err-color"},[t._v(t._s(t.$i18nt("gd.flow.work.discontentExecute","\u4E0D\u6EE1\u8DB3\u65F6\u6267\u884C")))])])]):s("div",{staticClass:"condition-body",class:a.err?"condition-err":"",on:{click:function(n){return t.see(l)}}},[s("div",{staticClass:"condition-bodyt line1"},[t._v(t._s(a.name))]),s("div",{staticClass:"condition-bodyb"},[s("div",{staticClass:"title line1"},[t._v(" "+t._s(t.$i18nt("gd.flow.process.set","\u5DF2\u8BBE\u7F6E"))+" "+t._s(a.rule.length)+" "+t._s(t.$i18nt("gd.flow.process.rules","\u6761\u89C4\u5219"))+" ")]),s("i",{staticClass:"el-icon-arrow-right",staticStyle:{flex:"0 0 20px","text-align":"right"}})]),s("i",{staticClass:"el-icon-close",attrs:{id:"close"},on:{click:function(n){return n.stopPropagation(),t.del(l)}}}),a.err?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.process.supplementRules","\u8BF7\u8865\u5145\u89C4\u5219\u4FE1\u606F")))])]),s("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),s("ConnectDesigner",{attrs:{stateCodes:t.stateCodes},on:{selType:n=>t.selTyped(n,l)}})],1),t._l(a.list,function(n,o){return s("div",{staticStyle:{position:"relative","z-index":"1"}},[n.type=="step"?s("StepsDesigner",{attrs:{loadData:t.loadData,codeGenId:t.codeGenId,record:n,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,index:o},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),addTransKey:t.addTransKey}}):t._e(),n.type=="condition"?s("ConditionDesigner",{attrs:{record:n,codeGenId:t.codeGenId,loadData:t.loadData,index:o,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e()],1)})],2)})],2),s("div",{staticClass:"condition-b"},[s("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}})],1),s("el-drawer",{attrs:{visible:t.visible,"append-to-body":!0,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(a){t.visible=a}}},[s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName"),prop:"name"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),s("el-col",{directives:[{name:"show",rawName:"v-show",value:t.list.length>1,expression:"list.length > 1"}],attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"12px","margin-top":"-12px"},attrs:{label:t.$i18nt("gd.flow.process.ruleLogic","\u89C4\u5219\u903B\u8F91")}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},model:{value:t.ruleFormData.type,callback:function(a){t.$set(t.ruleFormData,"type",a)},expression:"ruleFormData.type"}},[s("el-option",{attrs:{value:"1",label:t.$i18nt("gd.develop.filter.and","\u548C")}}),s("el-option",{attrs:{value:"2",label:t.$i18nt("gd.develop.filter.or","\u6216")}})],1)],1)],1)],1),s("el-divider"),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.rule","\u89C4\u5219"))+":")]),s("div",[s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:7}},[t._v(t._s(t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5")))]),s("el-col",{attrs:{span:6}},[t._v(t._s(t.$i18nt("gd.flow.process.operator","\u64CD\u4F5C\u7B26")))]),s("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.process.value","\u503C")))]),s("el-col",{attrs:{span:3}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1),t._l(t.list,function(a,l){return s("el-row",{key:a.id,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:7}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),filterable:"",clearable:"",disabled:t.disabled},model:{value:a.columnName,callback:function(n){t.$set(a,"columnName",n)},expression:"item.columnName"}},t._l(t.loadData,function(n,o){return s("el-option",{key:n.id,attrs:{value:n.id,label:t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment)},nativeOn:{click:function(r){return t.selColumn(n,l)}}},[s("EffectTypeIcon",{attrs:{effectType:n.effecttype}}),s("span",{staticStyle:{"padding-left":"2px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment))+" ("+t._s(n.columnname)+") ")])],1)}),1)],1),s("el-col",{attrs:{span:6}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:a.rules,callback:function(n){t.$set(a,"rules",n)},expression:"item.rules"}},t._l(a.rulesList,function(n){return s("el-option",{key:n.code,attrs:{value:n.code,label:n.name}})}),1)],1),s("el-col",{attrs:{span:8}},[a.rules!=5&&a.rules!=6?s("div",{staticStyle:{width:"100%"}},[a.effectType=="select"||a.effectType=="radio"||a.effectType=="checkbox"||a.effectType=="switch"?s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},model:{value:a.val,callback:function(n){t.$set(a,"val",n)},expression:"item.val"}},t._l(t.getDictionary(a),function(n){return s("el-option",{key:n.code,attrs:{value:n.code,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1):a.effectType=="inputnumber"?s("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),step:1,disabled:t.disabled},model:{value:t.ite.val,callback:function(n){t.$set(t.ite,"val",n)},expression:"ite.val"}}):a.effectType=="datepicker"?s("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"show-time":t.showTime(a),valueFormat:a.fieldformat,disabled:t.disabled},model:{value:a.val,callback:function(n){t.$set(a,"val",n)},expression:"item.val"}}):a.effectType=="fk"||a.effectType=="about"?s("div",{staticClass:"cao_about"},[s("el-select",{staticClass:"cao_input",staticStyle:{flex:"1",overflow:"hidden"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select"),clearable:"",disabled:t.disabled?!0:a.effectType=="about"},on:{change:function(n){return t.searchData(n,l)}},model:{value:a.val,callback:function(n){t.$set(a,"val",n)},expression:"item.val"}},[t.fetching?s("el-spin",{attrs:{slot:"notFoundContent",size:"small"},slot:"notFoundContent"}):t._e(),t._l(a.fkData,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}})})],2),s("div",{staticClass:"cao_setting"},[t.disabled?t._e():s("i",{staticClass:"el-input__icon el-icon-search",attrs:{id:"cao_setting"},on:{click:function(n){return t.lookup(l,a.val)}}})])],1):s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:a.val,callback:function(n){t.$set(a,"val",n)},expression:"item.val"}})],1):t._e()]),s("el-col",{attrs:{span:3}},[t.disabled?t._e():s("i",{staticClass:"el-icon-close",attrs:{id:"del-btn"},on:{click:function(n){return t.delList(l)}}})])],1)})],2),t.disabled?t._e():s("div",{staticClass:"add"},[s("a",{on:{click:t.addList}},[t._v(t._s(t.$i18nt("gd.flow.addRule","\u6DFB\u52A0\u89C4\u5219")))])])],1),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),s("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$3c=[],__component__$3c=chartbi.normalizeComponent(_sfc_main$3c,_sfc_render$3c,_sfc_staticRenderFns$3c,!1,null,"c70806a7",null,null);const ConditionDesigner$2=__component__$3c.exports,main_vue_vue_type_style_index_0_scoped_c7bf0923_lang="",_sfc_main$3b={name:"GdProcessFlow",props:{value:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},scaleVal:{type:Number,default:100}},data(){return{visible:!1,list:[],loadData:[],codeGenId:"",delTransKeyList:[],addTransKeyList:[]}},computed:{style(){let i=this.scaleVal/100;return`transform-origin: top;transform:scale(${i},${i});`}},components:{StartDesigner:StartDesigner$2,ConnectDesigner:ConnectDesigner$2,EndDesigner:EndDesigner$2,StepsDesigner:StepsDesigner$2,ConditionDesigner:ConditionDesigner$2},methods:{addTransKey(i){this.addTransKeyList=this.addTransKeyList.concat([i])},init(i){this.delTransKeyList=[],this.addTransKeyList=[],this.codeGenId=i[0].data.sysCodeGenId,this.list=[...i],this.getLoadData()},addType(i,t){let s=nodeData$2(i),a=chartbi.uuid();s=Object.assign(s,{pid:0,id:a,sourceId:a}),s.type=="condition"&&s.list.map(l=>(l=Object.assign(l,{pid:s.id,id:chartbi.uuid(),sourceId:s.id}),l)),this.list.splice(t+1,0,s)},deltransKey(i){this.delTransKeyList=this.delTransKeyList.concat(i)},async delItem(i){let t=this.list[i],s=this.list.filter((n,o)=>o!=i);this.list=[...s];let a=await this.hasItem([t]).filter(n=>n.transKey),l=[];a.forEach(n=>{l.push(n.transKey)}),l.length!=0&&(this.delTransKeyList=this.delTransKeyList.concat(l))},hasItem(i){let t=[];const s=a=>(a=a.filter((l,n)=>(l.type=="condition"&&l.list.forEach(o=>{o.list=s(o.list)}),l.type=="step"&&(t=t.concat([l]),l.list.length>0&&(t=t.concat(l.list))),!0)),a);return s(i),t},getLoadData(){messages.onlineFormGetCodeGenerateList({codeGenId:this.codeGenId}).then(i=>{i.data&&(this.loadData=i.data.filter(t=>t.effecttype=="about"&&t.columnname==(t.relations+"_AboutTable").toLowerCase()?!1:!(t.effecttype=="currency"&&t.columnname==(t.relations+"_Currency_Base").toLowerCase())))})}}};var _sfc_render$3b=function(){var t=this,s=t._self._c;return s("div",{staticClass:"flowsdesigner",style:t.style},[s("div",{staticClass:"flowsdesigners"},[s("div",{staticClass:"flowdesign"},[t._l(t.list,function(a,l){return[a.type=="start"?s("StartDesigner",{attrs:{record:a,loadData:t.loadData,index:l,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType}}):t._e(),a.type=="step"?s("StepsDesigner",{attrs:{record:a,loadData:t.loadData,index:l,codeGenId:t.codeGenId,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),a.type=="condition"?s("ConditionDesigner",{attrs:{loadData:t.loadData,record:a,index:l,codeGenId:t.codeGenId,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),a.type=="end"?s("EndDesigner"):t._e()]})],2)])])},_sfc_staticRenderFns$3b=[],__component__$3b=chartbi.normalizeComponent(_sfc_main$3b,_sfc_render$3b,_sfc_staticRenderFns$3b,!1,null,"c7bf0923",null,null);const GDpackage$9=__component__$3b.exports;GDpackage$9.install=function(i){i.component(GDpackage$9.name,GDpackage$9)};const index_vue_vue_type_style_index_0_scoped_a0c497a1_lang="",_sfc_main$3a={props:{placement:{type:String,default:"top"},type:{type:String,default:"other"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0}},methods:{selType(i){this.visible=!1,!this.disabled&&this.$emit("selType",i)}}};var _sfc_render$3a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"lian"},[s("div",{ref:"lianBtn",staticClass:"lian-btn"},[s("el-popover",{attrs:{placement:t.placement},model:{value:t.visible,callback:function(a){t.visible=a},expression:"visible"}},[s("div",{staticClass:"overlayd"},[t._v(t._s(t.$i18nt("gd.flow.addNode","\u6DFB\u52A0\u6D41\u7A0B\u8282\u70B9")))]),s("div",{staticClass:"connect-solid"},[s("el-divider")],1),t.type=="start"?s("div",[s("div",{staticClass:"contents"},[s("div",{staticClass:"item stage",on:{click:function(a){return t.selType("stage")}}},[s("i",{staticClass:"el-icon-document-copy anticon",staticStyle:{height:"40px",padding:"9px"}}),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.stage","\u9636\u6BB5")))])])])]):s("div",[s("div",{staticClass:"contents"},[t.type!="condition"?s("div",{staticClass:"item term",on:{click:function(a){return t.selType("condition")}}},[s("i",{staticClass:"gd-icons gd-icon-liucheng anticon"}),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.condition","\u6761\u4EF6")))])]):t._e(),s("div",{staticClass:"item move",on:{click:function(a){return t.selType("step")}}},[s("i",{staticClass:"gd-icons gd-icon-Interaction anticon"}),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.step","\u6B65\u9AA4")))])])])]),s("el-button",{attrs:{slot:"reference",type:t.disabled?"info":"primary",icon:"el-icon-plus",size:"mini",circle:"",disabled:t.disabled},slot:"reference"})],1)],1)])},_sfc_staticRenderFns$3a=[],__component__$3a=chartbi.normalizeComponent(_sfc_main$3a,_sfc_render$3a,_sfc_staticRenderFns$3a,!1,null,"a0c497a1",null,null);const ConnectDesigner$1=__component__$3a.exports,index_vue_vue_type_style_index_0_scoped_aa399035_lang="",_sfc_main$39={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,tableNameData:[],fetching:!1,disabled:!1,fieldList:[],codeGenId:"",userList:[],show:!1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],ranges:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],firing:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],isBackgroud:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{name:"",transKey:null,langs:"[]",isBackgroud:[],firing:[]},confirmLoading:!1}},components:{ConnectDesigner:ConnectDesigner$1,FlowsDesignerGenName},computed:{getName(){let i=this.record.data.name;if(this.getBootTrans&&this.record.data.langs&&this.record.data.langs.length>0){let t=this.record.data.langs.filter(s=>s.code==this.language)[0];i=t==null?i:t.val}else this.getBootTrans&&this.record.data.transKey&&(i=this.$i18nt(`Dynamics.${this.record.data.transKey}`,0,i));return i},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},disableds(){return this.permissionsBnt?this.stateCodes==1:!0},disabledd(){return!this.permissionsBnt||this.stateCodes==1?!0:this.record.data.code!==""},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...chartbi.mapGetters(["language","labelPosition"])},methods:{lookupSeled(i){let t=[];i.langs.forEach(s=>{t.push({name:s.languageName,val:s.description,code:s.languageCode})}),this.ruleFormData={name:i.defaultText,langs:JSON.stringify(t)},this.record.data.langs=t},selGenName(){this.fieldList=this.record.data.updateFields,this.$refs.codeGenName.open(this.fieldList)},sbumitGenName(i){this.fieldList=i,this.record.data.updateFields=i},sbumit(){this.$refs.ruleForm.validate(i=>{i&&(this.record.data=Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)}),this.onClose(1))})},searchTable(i){this.fetching=!0,this.tableNameData=[],messages.codeGenerateInformationList({busName:i}).then(t=>{this.tableNameData=[...t.data],this.fetching=!1})},see(){this.show=this.record.data.stateCodes!=null,this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{this.codeGenId=this.record.data.sysCodeGenId;let i={name:this.record.data.name,sysCodeGenId:this.record.data.sysCodeGenId,ranges:this.record.data.ranges,isBackgroud:this.record.data.isBackgroud,firing:this.record.data.firing,code:this.record.data.code,transKey:this.record.data.transKey,langs:JSON.stringify(this.record.data.langs)};this.record.data.stateCodes!=null&&(i=Object.assign(i,{stateCodes:this.record.data.stateCodes}),this.calculation(i),this.codeGenId=this.record.data.sysCodeGenId),this.ruleFormData=i,this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},onClose(i){if(i!=null&&i==1){this.visible=!1;return}if(this.getBootTrans&&this.record.data.transKey){let t=this.form.getFieldsValue(),s=JSON.parse(t.langs);this.record.data=Object.assign({...this.record.data},{langs:s,name:t.name})}this.visible=!1},selType(i){this.$emit("addType",i,this.index)},firingChange(i){let t=this.ruleFormData;t.firing=i,this.calculation(t)},selTable(i){let t=this.ruleFormData;t.sysCodeGenId=i.id,this.codeGenId=i.id,this.calculation(t)},calculation(i){let t=i.firing!=null?i.firing:[],s=i.sysCodeGenId!=null&&i.sysCodeGenId!="";this.disabled=!(s&&t.includes("2"))},getDictionary(i){return this.$options.filters.dictData(i)}},mounted(){this.searchTable("");let i=this.$options.filters.dictData("data_scope_type");this.userList=i.filter(t=>t.code!=5)}};var _sfc_render$39=function(){var t=this,s=t._self._c;return s("div",{staticClass:"start"},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[s("div",{staticClass:"starts",attrs:{slot:"reference"},on:{click:t.see},slot:"reference"},[s("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.processStart","\u6D41\u7A0B\u5F00\u59CB")))]),s("div",{staticClass:"start-b"},[s("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),s("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})])])]),s("ConnectDesigner",{attrs:{type:"start",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(a){t.visible=a}}},[s("template",{slot:"title"},[s("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[s("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.ProcessInformation","\u6D41\u7A0B\u4FE1\u606F")))])])]),s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[s("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.transKey,callback:function(a){t.$set(t.ruleFormData,"transKey",a)},expression:"ruleFormData.transKey"}})],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[s("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.langs,callback:function(a){t.$set(t.ruleFormData,"langs",a)},expression:"ruleFormData.langs"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{directives:[{name:"show",rawName:"v-show",value:t.record.data&&!t.record.data.transKey,expression:"record.data && !record.data.transKey"}],attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.table","\u8868"),prop:"sysCodeGenId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0,filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchTable,loading:t.fetching},model:{value:t.ruleFormData.sysCodeGenId,callback:function(a){t.$set(t.ruleFormData,"sysCodeGenId",a)},expression:"ruleFormData.sysCodeGenId"}},t._l(t.tableNameData,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:a.busName},nativeOn:{click:function(n){return t.selTable(a)}}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.busName))+" "+t._s(a.tableName))])])}),1)],1)],1)],1),s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.range","\u8303\u56F4"),prop:"ranges"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",disabled:t.disableds},model:{value:t.ruleFormData.ranges,callback:function(a){t.$set(t.ruleFormData,"ranges",a)},expression:"ruleFormData.ranges"}},t._l(t.userList,function(a,l){return s("el-option",{key:a.code,attrs:{value:a.code,label:a.name}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.name)))])])}),1)],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.run","\u8FD0\u884C"),prop:"isBackgroud"}},[s("el-checkbox-group",{attrs:{disabled:t.disableds},model:{value:t.ruleFormData.isBackgroud,callback:function(a){t.$set(t.ruleFormData,"isBackgroud",a)},expression:"ruleFormData.isBackgroud"}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-checkbox",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.backgrounder","\u5728\u540E\u53F0\u8FD0\u884C\u6B64\u5DE5\u4F5C\u6D41"))+" ")])],1)],1)],1)],1)],1)],1),s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"code"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disabledd,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.code,callback:function(a){t.$set(t.ruleFormData,"code",a)},expression:"ruleFormData.code"}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.startTime","\u542F\u52A8\u65F6\u95F4"),prop:"firing"}},[s("el-checkbox-group",{attrs:{disabled:t.disableds},on:{change:t.firingChange},model:{value:t.ruleFormData.firing,callback:function(a){t.$set(t.ruleFormData,"firing",a)},expression:"ruleFormData.firing"}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-checkbox",{attrs:{label:"1"}},[t._v(t._s(t.$i18nt("gd.flow.work.afterCreation","\u521B\u5EFA\u8BB0\u5F55\u540E")))])],1),s("el-col",{attrs:{span:24}},[s("el-checkbox",{attrs:{label:"2",disabled:t.disableds}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.afterChange","\u8BB0\u5F55\u5B57\u6BB5\u66F4\u6539\u540E"))+" "),s("el-button",{staticClass:"sel",attrs:{type:t.disableds||t.disabled?"info":"primary",size:"mini",disabled:t.disableds?!0:t.disabled},on:{click:t.selGenName}},[t._v(" "+t._s(t.$i18nt("gd.btn.choice","\u9009\u62E9"))+" ")])],1)],1),s("el-col",{attrs:{span:24}},[s("el-checkbox",{attrs:{label:"3",disabled:t.disableds}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.afterDeletion","\u5220\u9664\u8BB0\u5F55\u540E"))+" ")])],1)],1)],1)],1)],1),t.show?s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state","\u72B6\u6001"),prop:"stateCodes"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(a){t.$set(t.ruleFormData,"stateCodes",a)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(a,l){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,0,a.name)}})}),1)],1)],1):t._e()],1)],1),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),s("FlowsDesignerGenName",{ref:"codeGenName",attrs:{codeGenId:t.codeGenId},on:{ok:t.sbumitGenName}})],1)},_sfc_staticRenderFns$39=[],__component__$39=chartbi.normalizeComponent(_sfc_main$39,_sfc_render$39,_sfc_staticRenderFns$39,!1,null,"aa399035",null,null);const StartDesigner$1=__component__$39.exports,index_vue_vue_type_style_index_0_scoped_3037d68c_lang="",_sfc_main$38={data(){return{}}};var _sfc_render$38=function(){var t=this,s=t._self._c;return s("div",{staticClass:"end"},[s("div",{staticClass:"ends"},[t._v(t._s(t.$i18nt("gd.flow.processEnd","\u6D41\u7A0B\u7ED3\u675F")))])])},_sfc_staticRenderFns$38=[],__component__$38=chartbi.normalizeComponent(_sfc_main$38,_sfc_render$38,_sfc_staticRenderFns$38,!1,null,"3037d68c",null,null);const EndDesigner$1=__component__$38.exports,moreOptions_vue_vue_type_style_index_0_scoped_a764aa4c_lang="",_sfc_main$37={props:{codeList:{type:Array,default:()=>[]},record:{type:Object,default:()=>({})},codeGenId:{type:[Number,String],default:0},tableNameData:{type:Array,default:()=>[]}},computed:{style(){return{"--background-color-hover":this.primaryColor}},styles(){return`color:${this.primaryColor}`},...chartbi.mapGetters(["primaryColor"])},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:18}},spinning:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,showField:!1,selItem:{},tableList:[],fieldContent:{},tableFieldData:[],fetching:!1,fkfileId:"",fkfileId2:"",splitList:[],selIndex:0,oldselItem:{},fullscreen:!1,width:"600px"}},components:{EffectTypeIcon:messages.EffectTypeIcon},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},delItem(i){let t=this.splitList.filter((d,u)=>u!=i),s=0,a=[],l={title:"",fieldvalue:"",tabletitle:"",tablevalue:"",tablevalue2:"",varnumber:0,type:1,wid:"4px",selindex:0},n=1,o="",r=!1;t.forEach((d,u)=>{d.type==1&&(r=!1,o+=d.fieldvalue),d.type==2&&(a.push(Object.assign({...l},{fieldvalue:o,wid:this.styled(o),selindex:s})),a.push(Object.assign({...d},{varnumber:n})),r=!0,o="",n+=1,s+=1)}),this.selItem.effecttype=="input"||this.selItem.effecttype=="textarea"||this.selItem.effecttype=="double"||this.selItem.effecttype=="currency"||this.selItem.effecttype=="image"||this.selItem.effecttype=="editor"?a=r?a:a.concat([Object.assign({...l},{fieldvalue:o,wid:this.styled(o),selindex:s})]):a=r?a:[],this.splitList=[...a],this.selItem.fieldinfos=a.filter(d=>!(d.type==1&&d.fieldvalue=="")),this.selIndex=s},selData(i){this.selIndex=i.selindex},changeInput(i,t,s){this.selItem.fieldinfos.map(a=>(a.type==1&&a.selindex==s.selindex&&(a.fieldvalue=i),a)),s.wid=this.styled(i)},styled(i){return`${String(i).length*11+4}px`},seeDetail(i){this.splitList.filter(s=>s.type==2).length!=0&&(this.showField=!0)},open(i){this.fullscreen=!1,this.splitList=[],this.oldselItem={...i},this.selItem={...i},this.analysis(i),this.confirmLoading=!0,this.visible=!0,this.onlineFormGetFieldList().then(t=>{if(t.success){let s=t.data.filter(a=>(a.children=null,a.effecttype=="about"&&a.columnName===(a.relations+"_AboutTable").toLowerCase()?!1:!(a.effecttype=="currency"&&a.columnName===(a.relations+"_Currency_Base").toLowerCase())));this.tableList=s}this.confirmLoading=!1})},analysis(i){console.log(i);let t={title:"",fieldvalue:"",tabletitle:"",tablevalue:"",tablevalue2:"",varnumber:0,type:1,wid:"4px",selindex:0,transkey:null,transkey2:null,transkeytable:null},s=[],a=0;if(i.effecttype=="input"||i.effecttype=="textarea"||i.effecttype=="double"||i.effecttype=="currency"||i.effecttype=="image"||i.effecttype=="editor"){let l=1,n="",o=!1;i.fieldinfos.length==0&&(n=i.value),i.fieldinfos.forEach((r,d)=>{r.type==1&&(o=!1,n=r.fieldvalue),r.type==2&&(s=o?s:s.concat([Object.assign({...t},{fieldvalue:n,wid:this.styled(n),selindex:a})]),s.push(Object.assign({...r},{varnumber:l})),o=!0,l+=1,a+=1)}),s=s.concat([Object.assign({...t},{fieldvalue:o?"":n,wid:o?"4px":this.styled(n),selindex:a})]),this.splitList=[...s],this.selIndex=a;return}i.fieldinfos.forEach((l,n)=>{s.push(Object.assign({...l},{varnumber:1}))}),this.splitList=[...s],this.selIndex=a},isChecked(i,t){return i?i.every((s,a,l)=>s!=`[${t}]`):!0},onlineFormGetFieldList(){let i={fieldId:this.selItem.fieldid,tableId:this.codeGenId};return this.fkfileId!==void 0&&this.fkfileId!==""&&(i=Object.assign(i,{fkfileId:this.fkfileId})),messages.onlineFormGetFieldList(i).then(t=>t)},addField(){if(this.fkfileId===""){this.$message.warning(this.$i18nt("gd.flow.work.tableFieldsTip"));return}if(this.tableFieldData.length>0&&this.fkfileId2===""){this.$message.warning(this.$i18nt("gd.flow.work.tableFieldsTwoTip"));return}let i=this.tableList.filter(l=>l.id==this.fkfileId)[0],t=this.tableNameData.filter(l=>l.id==this.codeGenId)[0];this.selItem.fieldinfos.length;let s={title:i.columncomment,fieldvalue:i.columnname,tabletitle:t.tablename,tablevalue:t.busname,tablevalue2:i.fkentityname,varnumber:1,type:2,transkey:i.transkey?i.transkey:null,transkey2:null,transkeytable:t.transkey?t.transkey:null},a={title:"",fieldvalue:"",tabletitle:"",tablevalue:"",tablevalue2:"",varnumber:0,type:1,transkey:null,transkey2:null,transkeytable:null};if(this.fkfileId2!==""){let l=this.tableFieldData.filter(n=>n.id==this.fkfileId2)[0];s=Object.assign(s,{title:l.columncomment,fieldvalue2:l.columnname,transkey2:l.transkey?l.transkey:null})}if(this.selItem.effecttype=="input"||this.selItem.effecttype=="textarea"||this.selItem.effecttype=="double"||this.selItem.effecttype=="currency"||this.selItem.effecttype=="image"||this.selItem.effecttype=="editor"){let l=this.splitList.filter(p=>p.selindex==this.selIndex)[0].fieldvalue,n=document.querySelectorAll(".splicing-l>.el-input>.el-input__inner")[this.selIndex].selectionStart,o=l.slice(0,n),r=l.slice(n),d=[],u=1;this.splitList.forEach((p,h)=>{p.selindex==this.selIndex&&p.type==1?(d.push(Object.assign({...a},{fieldvalue:o})),d.push(Object.assign({...s},{varnumber:u})),d.push(Object.assign({...a},{fieldvalue:r})),u+=1):p.type==2?(d.push(Object.assign({...p},{varnumber:u})),u+=1):d.push(p)}),this.selItem.fieldinfos=[...d]}else this.selItem.fieldinfos=[s];this.fkfileId="",this.fkfileId2="",this.tableFieldData=[],this.analysis(this.selItem)},changeField(i){let t=this.tableList.filter(s=>s.id==this.fkfileId)[0];if(t.effecttype!=="fk"&&t.effecttype!=="about"&&t.effecttype!=="user"){this.tableFieldData=[],this.fkfileId2="";return}this.onlineFormGetFieldList().then(s=>{if(s.success){let a=s.data.filter(l=>(l.children=null,l.effecttype=="about"&&l.columnname===(l.relations+"_AboutTable").toLowerCase()?!1:!(l.effecttype=="currency"&&l.columnname===(l.relations+"_Currency_Base").toLowerCase())));this.tableFieldData=a}})},handleSubmit(){let i={...this.selItem};i.fieldinfos=[...this.splitList],this.$emit("ok",{...i}),this.cancel()},cancel(){this.visible=!1,this.selItem={},this.selIndex=0,this.tableFieldData=[],this.fkfileId="",this.fkfileId2=""},getDictionary(i){let t=this.codeList.filter(s=>s.id==i.fieldid)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(i){return i.fieldFormat.length>10},doEvent(i){this.handleSubmit()}}};var _sfc_render$37=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.cancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.flow.work.fieldConfiguration","\u5B57\u6BB5\u914D\u7F6E"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.togglefullscreen,close:t.cancel},slot:"title"}),s("div",{class:t.fullscreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",staticStyle:{"min-height":"600px"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{md:24,sm:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:t.$i18nt("gd.flow.work.selectedFields","\u5DF2\u9009\u5B57\u6BB5")}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:t.$i18nt("gd.flow.work.tableFieldsTip","\u8BF7\u9009\u62E9\u8868\u5B57\u6BB5")},model:{value:t.selItem.fieldid,callback:function(a){t.$set(t.selItem,"fieldid",a)},expression:"selItem.fieldid"}},t._l(t.codeList,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}},[t._v(" "+t._s(a.columnName)+" "),s("span",{style:t.styles},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" ")]),t._v(" "+t._s(a.effectType)+" ")])}),1)],1)],1)],1),s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{md:24,sm:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:t.$i18nt("gd.flow.work.tableFields","\u8868\u5B57\u6BB5")}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.work.tableFieldsTip","\u8BF7\u9009\u62E9\u8868\u5B57\u6BB5"),filterable:""},on:{change:t.changeField},model:{value:t.fkfileId,callback:function(a){t.fkfileId=a},expression:"fkfileId"}},t._l(t.tableList,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}},[s("EffectTypeIcon",{attrs:{effectType:a.effecttype}}),s("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" ("+t._s(a.columnname)+") ")])],1)}),1)],1)],1)],1),s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{md:24,sm:24}},[s("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.tableFieldData.length>0,expression:"tableFieldData.length > 0"}],staticStyle:{"margin-bottom":"12px"},attrs:{label:t.$i18nt("gd.flow.work.tableFieldsTwo","\u8868\u5B57\u6BB52"),disabled:!(t.tableFieldData.length>0)}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.work.tableFieldsTip","\u8BF7\u9009\u62E9\u5173\u4E8E\u7684\u8868\u548C\u5B57\u6BB5"),filterable:"",clearable:""},model:{value:t.fkfileId2,callback:function(a){t.fkfileId2=a},expression:"fkfileId2"}},t._l(t.tableFieldData,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}},[s("EffectTypeIcon",{attrs:{effectType:a.effecttype}}),s("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" ("+t._s(a.columnname)+") ")])],1)}),1)],1)],1)],1),s("div",{staticClass:"splicing pa",style:t.style},[t._l(t.splitList,function(a,l){return[a.type==1?s("div",{staticClass:"splicing-l pa",on:{click:function(n){return t.selData(a)}}},[s("div",{staticClass:"splicing-zhan line1"},[t._v(t._s(a.fieldvalue))]),s("el-input",{on:{change:function(n){return t.changeInput(n,l,a)}},model:{value:a.fieldvalue,callback:function(n){t.$set(a,"fieldvalue",n)},expression:"item.fieldvalue"}})],1):t._e(),a.type==2?[s("div",{staticClass:"splicing-l pa"},[s("div",{staticClass:"splicing-d"},[s("span",{staticClass:"splicing-tilte"},[t._v(" ["+t._s(a.varnumber)+"-"+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.title))+"] ")]),s("i",{staticClass:"el-icon-close close",on:{click:function(n){return t.delItem(l)}}})])])]:t._e()]})],2),s("div",{staticClass:"inputbox"},[s("div",{staticClass:"flex-between"},[s("div",{staticClass:"left-btn"}),s("div",{staticClass:"right-btn"},[s("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:t.addField}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addField","\u6DFB\u52A0\u5B57\u6BB5"))+" ")])],1)])]),s("div",{staticClass:"line3",staticStyle:{cursor:"pointer","padding-top":"10px"},on:{click:t.seeDetail}},[t._l(t.splitList,function(a){return[a.type==1?s("span",[t._v(t._s(a.fieldvalue))]):s("a",[t._v("["+t._s(a.varnumber)+"-"+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.title))+"]")])]})],2)],1)],1)],1),s("el-drawer",{attrs:{title:t.$i18nt("gd.btn.view"),size:500,visible:t.showField,"append-to-body":!0,"custom-class":"gd-drawer-form"},on:{close:function(a){t.showField=!1}}},[s("el-collapse",{attrs:{accordion:""}},t._l(t.splitList,function(a,l){return a.type==2?s("el-collapse-item",{key:l,staticClass:"showdoc",attrs:{title:`${a.varnumber}-${t.$i18nt(`Dynamics.${a.transkey}`,a.title)}`}},[s("p",[t._v(" "+t._s(t.$i18nt("gd.flow.work.entityTable","\u5B9E\u4F53\u8868"))+"\uFF1A"+t._s(a.tablevalue)+" "+t._s(t.$i18nt(`Dynamics.${a.transkeytable}`,a.tabletitle))+" ")]),s("p",[t._v(" "+t._s(t.$i18nt("gd.flow.work.tableFields","\u8868\u5B57\u6BB5"))+"\uFF1A"+t._s(a.fieldvalue)+" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.title))+" ")]),s("p",{directives:[{name:"show",rawName:"v-show",value:a.fieldvalue2,expression:"item.fieldvalue2"}]},[t._v(" "+t._s(t.$i18nt("gd.flow.work.tableFieldsTwo","\u8868\u5B57\u6BB52"))+"\uFF1A"+t._s(a.fieldvalue2)+" "+t._s(t.$i18nt(`Dynamics.${a.transkey2}`,a.title))+" ")]),s("div",{staticClass:"flex-between"})]):t._e()}),1)],1)],1)},_sfc_staticRenderFns$37=[],__component__$37=chartbi.normalizeComponent(_sfc_main$37,_sfc_render$37,_sfc_staticRenderFns$37,!1,null,"a764aa4c",null,null);const moreOptions=__component__$37.exports,index_vue_vue_type_style_index_0_scoped_7bc1aa59_lang="",_sfc_main$36={props:{tableNameData:{type:Array,default:()=>[]},relevantData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleOk",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,spinning:!1,record:{},fieldList:[],codeList:[],fetching:!1,fieldFormat:[],lookIndex:0,tableId:"",title:"",fullscreen:!1,width:"900px",searList:{}}},computed:{style(){return`color:${this.primaryColor}`},lineHeight(){return this.tableSize=="small"?"line-height: 32px":this.tableSize=="medium"?"line-height: 36px":"line-height: 26px"},...chartbi.mapGetters(["primaryColor","tableSize"])},components:{moreOptions,EffectTypeIcon:messages.EffectTypeIcon},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},moreSbumit(i){let t=[...this.fieldList],s={...i},a="",l=s.fieldinfos.filter(o=>!(o.type==1&&o.fieldvalue==""));l.forEach(o=>{o.type==1?a+=o.fieldvalue:a+=`[${o.varnumber}-${o.title}]`});let n=l.filter(o=>o.type==2);s.fieldinfos=n.length>0?l:[],s.value=l.length>0?a:s.value,t[this.lookIndex]={...s},this.fieldList=[...t]},more(i){this.lookIndex=i,this.$refs.moreOptions.open(this.fieldList[i])},searchData(i){let s=this.codeList.filter(a=>a.id==this.searList.fieldid)[0].fkentityname.split(",")[0];this.fetching=!0,this.searList.fkdata=[],messages.baseFkList({name:i,fkEntityName:s}).then(a=>{a.success&&(this.searList.fkdata=[...a.data]),this.fetching=!1})},selectData(i){let t=this.fieldList.filter(s=>s.value===i);console.log(i,this.fieldList,t)},lookupSeled(i){["fk","about","user"].includes(this.fieldList[this.lookIndex].effecttype)?(this.fieldList[this.lookIndex].value=i.data[0],this.fieldList[this.lookIndex].fkdata=i.fkdata):(this.fieldList[this.lookIndex].value=i.data,this.fieldList[this.lookIndex].fkdata=i.fkdata)},lookup(i,t){let s=this.codeList.filter(a=>a.id==this.fieldList[i].fieldid)[0];this.lookIndex=i,this.$refs.engineSearch.open(Object.assign({...s},{val:t}))},addList(){if(this.fieldList.length<this.codeList.length){let i=[...this.fieldList],t=this.filteredOptions({fieldid:""}),s={fieldid:"",fieldname:"",codelist:this.codeList.filter(a=>!t.includes(a.id)),value:"",fkdata:[],effecttype:"input",fieldformat:null,fieldinfos:[],html:"",disabled:!0};i.push(s),this.fieldList=[...i],console.log(this.fieldList)}},delList(i){let t=[...this.fieldList];t.splice(i,1),this.fieldList=[...t],this.$nextTick(()=>{setTimeout(()=>{t.forEach((s,a)=>{let l=this.filteredOptions(s),n=this.codeList.filter(o=>!l.includes(o.id));t[a].codelist=n}),this.fieldList=[...t]},0)})},changeCode(i,t){this.$nextTick(()=>{setTimeout(()=>{let s=[...this.fieldList];s.forEach((l,n)=>{let o=this.filteredOptions(l),r=this.codeList.filter(d=>!o.includes(d.id));s[n].codelist=r}),this.fieldList=[...s];let a=this.codeList.filter(l=>l.id==i)[0];a.fieldformat&&(this.fieldList[t].fieldFormat=this.fieldFormat.filter(l=>l.code==a.fieldformat)[0].name),this.fieldList[t].effecttype=a.effecttype,this.fieldList[t].value="",this.fieldList[t].fieldinfos=[],this.fieldList[t].fkdata=[],["fk","about","user","participants"].includes(a.effecttype)&&(this.searList=this.fieldList[t],this.searchData(""))},0)})},changeFieldId(i,t){this.changeCode(i,t),this.$nextTick(()=>{setTimeout(()=>{this.fieldList[t].disabled=i==null},0)})},open(i){console.log(i),this.fullscreen=!1,this.fieldList=[];let t=String(i.tableid).split(",")[0];this.tableId=t,this.fieldFormat=this.$options.filters.dictData("time_longshort");let s=i.tableNameData.filter(l=>l.id==t)[0],a=this.$i18nt(`Dynamics.${s.transkey}`,s.busname);this.title=`${i.operationtype==1?this.$i18nt("gd.flow.work.create"):this.$i18nt("gd.flow.work.update")} ${a}`,this.list=i.fieldrelations,this.record=i,this.visible=!0,this.spinning=!0,Promise.all([this.onlineGenerateList()]).then(l=>{let n=i.fieldrelations;n.forEach((o,r)=>{let d=this.filteredOptions(o),u=this.codeList.filter(p=>!d.includes(p.id));n[r].codelist=u,n[r].fieldid=Number(o.fieldid),n[r].fkdata=typeof o.fkdata=="string"?JSON.parse(o.fkdata):o.fkdata,n[r].value=(o.effecttype=="fk"||o.effecttype=="about"||o.effecttype=="user"||o.effecttype=="participants")&&o.fieldinfos.length==0?Number(o.value):o.value}),this.fieldList=n,this.spinning=!1})},onlineGenerateList(){return messages.onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(i=>{if(i.success){let t=i.data.filter(s=>(s.children=null,s.effecttype=="about"&&s.columnname===(s.relations+"_AboutTable").toLowerCase()?!1:!(s.effecttype=="currency"&&s.columnname===(s.relations+"_Currency_Base").toLowerCase())));this.codeList=t}return i})},filteredOptions(i){let t=[];if(this.fieldList.forEach((s,a)=>{s.fieldid!==void 0&&t.push(s.fieldid)}),t.includes(i.fieldid)){let s=t.indexOf(i.fieldid);t.splice(s,1)}return t},getDictionary(i){let t=this.codeList.filter(s=>s.id==i.fieldid)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(i){return i.fieldFormat.length>10},doEvent(i){this.handleOk()},handleOk(){if(this.fieldList.forEach((i,t)=>{}),this.fieldList.map(i=>{if(i.effecttype=="fk"||i.effecttype=="about"){let t=i.fkdata.filter(s=>s.id==i.value);i.fkdata=t}return i.fkdata=JSON.stringify(i.fkdata),i.fieldname=i.codelist.filter(t=>t.id==i.fieldid)[0].columnname,i}),!this.isChecked()){this.$message.error(this.$i18nt("gd.flow.approval.replenishData"));return}this.$emit("ok",this.fieldList),this.handleCancel()},handleCancel(){this.visible=!1},isChecked(){return this.fieldList.every((i,t,s)=>i.value!==""&&i.value!==""&&i.fieldid!=="")}}};var _sfc_render$36=function(){var t=this,s=t._self._c;return s("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.title,fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.togglefullscreen,close:t.handleCancel},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],class:t.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticStyle:{"min-height":"600px"}},[t.fieldList.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("span",{staticStyle:{"font-weight":"600","font-size":"14px",color:"rgb(96, 98, 102)"}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.selField","\u5B57\u6BB5"))+" ")])]),s("el-col",{attrs:{span:8}},[s("span",{staticStyle:{"font-weight":"600","font-size":"14px",color:"rgb(96, 98, 102)"}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.value","\u503C"))+" ")])]),s("el-col",{attrs:{span:2}})],1):t._e(),t._l(t.fieldList,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",filterable:""},on:{change:function(n){return t.changeFieldId(n,l)}},model:{value:a.fieldid,callback:function(n){t.$set(a,"fieldid",n)},expression:"item.fieldid"}},t._l(a.codelist,function(n,o){return s("el-option",{key:n.id,attrs:{value:n.id,label:t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment)}},[s("EffectTypeIcon",{attrs:{effectType:n.effecttype}}),s("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment))+" ("+t._s(n.columnname)+") ")])],1)}),1)],1),a.fieldinfos.length==0?s("el-col",{attrs:{span:8}},[a.effecttype=="select"||a.effecttype=="radio"||a.effecttype=="checkbox"||a.effecttype=="switch"?s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:a.value,callback:function(n){t.$set(a,"value",n)},expression:"item.value"}},t._l(t.getDictionary(a),function(n){return s("el-option",{key:n.code,attrs:{value:n.code,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}})}),1):a.effecttype=="inputnumber"?s("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),step:1},model:{value:a.value,callback:function(n){t.$set(a,"value",n)},expression:"item.value"}}):a.effecttype=="datepicker"?s("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"show-time":t.showTime(a),type:t.showTime?"datetime":"date","value-format":a.fieldformat,format:a.fieldformat},model:{value:a.value,callback:function(n){t.$set(a,"value",n)},expression:"item.value"}}):a.effecttype=="fk"||a.effecttype=="about"||a.effecttype=="user"?s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{filterable:"",size:t.tableSize,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.fetching,clearable:"",remote:"","reserve-keyword":"","remote-method":t.searchData},model:{value:a.value,callback:function(n){t.$set(a,"value",n)},expression:"item.value"}},t._l(a.fkdata,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}},[s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])])}),1),s("i",{staticClass:"el-icon-search cao_setting",style:t.lineHeight,on:{click:function(n){return t.lookup(l,a.value)}}})],1):a.effecttype=="participants"?s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{size:t.tableSize,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"remote-method":t.searchData,loading:t.fetching,clearable:"",filterable:"",remote:"","collapse-tags":"","reserve-keyword":""},model:{value:a.value,callback:function(n){t.$set(a,"value",n)},expression:"item.value"}},[t._l(a.fkdata,function(n,o){return[s("el-option",{key:n.id,attrs:{value:n.id,label:n.name}})]})],2),s("i",{staticClass:"el-icon-search cao_setting",style:t.lineHeight,on:{click:function(n){return t.lookup(l,a.value)}}})],1):s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:a.value,callback:function(n){t.$set(a,"value",n)},expression:"item.value"}})],1):s("el-col",{attrs:{span:8}},[s("el-tooltip",{staticStyle:{width:"100%"},attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(a.value))])]),s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"\u8BF7\u8F93\u5165",disabled:!0},model:{value:a.value,callback:function(n){t.$set(a,"value",n)},expression:"item.value"}})],1)],1),s("el-col",{attrs:{span:2}},[s("el-button",{attrs:{type:"primary",disabled:a.disabled},on:{click:function(n){return t.more(l)}}},[t._v(" "+t._s(t.$i18nt("gd.btn.more"))+" ")]),s("i",{staticClass:"el-icon-delete del-btn",on:{click:function(n){return t.delList(l)}}})],1)],1)}),s("div",{staticClass:"add"},[s("a",{on:{click:t.addList}},[t._v(t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0")))])])],2)]),s("moreOptions",{ref:"moreOptions",attrs:{codeList:t.codeList,record:t.record,tableNameData:t.tableNameData,codeGenId:t.codeGenId},on:{ok:t.moreSbumit}}),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$36=[],__component__$36=chartbi.normalizeComponent(_sfc_main$36,_sfc_render$36,_sfc_staticRenderFns$36,!1,null,"7bc1aa59",null,null);const AttributesDesigner=__component__$36.exports,index_vue_vue_type_style_index_0_scoped_64c466ab_lang="",_sfc_main$35={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},tableDetails:{type:Object,default:()=>({})},codeGenId:{type:[Number,String],default:0},type:{type:String,default:"step"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,list:[],tableNameData:[],relevantData:[],fetching:!1,subIndex:0,confirmLoading:!1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{},tableData:{tablename:""}}},components:{ConnectDesigner:ConnectDesigner$1,AttributesDesigner,draggable},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}}},methods:{okAttributes(i){this.list[this.subIndex].fieldrelations=i},setAttributes(i,t){this.subIndex=i,t.operationtype!="3"?this.$refs.attributes.open(this.list[i]):(console.log(this.list[i]),this.tableData.tablename=this.list[i].tablename,this.$refs.teamSharing.open(this.list[i]))},refresh(i){this.list[this.subIndex].fieldrelations=JSON.stringify(i.list),this.list[this.subIndex].extensionobj=JSON.stringify(i.list)},selectType(i,t){t.tableid="",t.fieldrelations=[],t.tableNameData=i==1||i==3?this.tableNameData:this.relevantData,i==3&&(t.tablename=this.tableDetails.connectiontable,t.tableNameData.forEach(s=>{s.tablename==this.tableDetails.connectiontable&&(t.tableid=s.id)})),this.selectTable(t.tableid,t)},selectTable(i,t){t.disabled=!(t.operationtype!=""&&t.tableid!=""),t.fieldrelations=[]},async init(){this.confirmLoading=!0;let i=await this.codeGenerateList(""),t=await this.onlineFkTableList();this.tableNameData=[...i.data];const s=t.data.filter(a=>a.updatafiled).map(a=>(a.busid=a.id+","+a.updatafiled.columnname,a));this.relevantData=[...s],this.confirmLoading=!1},async searchTable(i,t){this.fetching=!0,t.tableNameData=[];let s=await this.codeGenerateList(i);t.tableNameData=[...s.data],this.fetching=!1},codeGenerateList(i){return messages.codeGenerateInformationList({busName:i}).then(t=>t)},onlineFkTableList(){return messages.onlineFormGetFkTableList({tableId:this.codeGenId}).then(i=>i)},sbumit(){this.$refs.ruleForm.validate(i=>{if(i){if(this.list.length==0){this.$message.error("\u8BF7\u6DFB\u52A0\u6B65\u9AA4\u64CD\u4F5C\uFF01");return}if(!this.isChecked()){this.$message.error("\u8BF7\u8865\u5145\u6B65\u9AA4\u64CD\u4F5C\u6570\u636E\uFF01");return}this.list.map(t=>{let s={};t.operationtype==1||t.operationtype==3?s=t.tableNameData.filter(l=>l.id==t.tableid)[0]:s=t.tableNameData.filter(l=>l.busid==t.tableid)[0],s.tablename&&(t.tablename=s.tablename);let a=String(t.tableid).split(",");return t.tableid=a[0],t.updatafiled=t.operationtype==2?a[1]:null,t}),this.record.err=!1,this.record.name=this.ruleFormData.name,this.record.list=[...this.list],this.onClose()}})},isChecked(i){return this.list.every((t,s,a)=>t.operationtype!="3"&&t.tableid!=""&&t.fieldrelations.length>0?!0:t.operationtype=="3"&&t.tableid!=""&&t.extensionobj.length>0)},selColumn(i,t){this.list[t].columnid=i.id,this.list[t].name=this.list[t].name==""?i.columncomment:this.list[t].name},addList(){let i={id:chartbi.uuid(),operationtype:"",tableid:"",tablename:"",tableNameData:[],fieldrelations:[],disabled:!0,updatafiled:null};this.list=this.list.concat(i)},delList(i){this.list=this.list.filter((t,s)=>s!=i)},see(){if(this.visible=!0,this.confirmLoading){setTimeout(()=>{this.see()},200);return}this.$nextTick(()=>{setTimeout(()=>{let i=[];this.record.list.forEach(t=>{let s=t.operationtype==1||t.operationtype==3?this.tableNameData:this.relevantData,a=t.operationtype==1||t.operationtype==3?Number(t.tableid):String(t.tableid).split(",")[0]+","+t.updatafiled;t.tableNameData===void 0&&(t.tableNameData=s),t.tableNameData!==void 0&&t.tableNameData.length==0&&(t.tableNameData=s),i.push(Object.assign({...t},{tableid:a,operationtype:String(t.operationtype)}))}),this.list=[...i],this.ruleFormData={name:this.record.name}},0)})},selType(i){this.$emit("addType",i,this.index)},del(){this.$emit("delItem",this.index)},onClose(){this.visible=!1}},created(){this.init()}};var _sfc_render$35=function(){var t=this,s=t._self._c;return s("div",{staticClass:"steps"},[s("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.record.name}},[s("div",{attrs:{slot:"reference"},slot:"reference"},[s("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.stageOrStep","\u9636\u6BB5/\u6B65\u9AA4")))]),s("div",{staticClass:"start-b"},[s("div",{staticClass:"title line1"},[t._v(t._s(t.record.name))]),s("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})]),s("i",{staticClass:"el-icon-close close",on:{click:function(a){return a.stopPropagation(),t.del.apply(null,arguments)}}})])]),t.record.err?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.stageTip","\u8BF7\u8865\u5145\u6570\u636E\u6B65\u9AA4\u4FE1\u606F")))])]),s("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),s("ConnectDesigner",{attrs:{type:t.type,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer"},on:{close:t.onClose,"update:visible":function(a){t.visible=a}}},[s("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.stepName","\u6B65\u9AA4\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{disabled:t.disabled,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1)],1),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.work.stepOperation","\u6B65\u9AA4\u64CD\u4F5C")))]),s("div",[t.list.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.work.type","\u64CD\u4F5C\u7C7B\u578B")))]),s("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.work.table","\u9009\u62E9\u8868")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.work.attribute","\u8BBE\u7F6E\u5C5E\u6027")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",[s("draggable",t._b({model:{value:t.list,callback:function(a){t.list=a},expression:"list"}},"draggable",{animation:300,handle:".drag-btn"},!1),t._l(t.list,function(a,l){return s("el-row",{key:a.id,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:8}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},on:{change:function(n){return t.selectType(n,a)}},model:{value:a.operationtype,callback:function(n){t.$set(a,"operationtype",n)},expression:"item.operationtype"}},[s("el-option",{attrs:{value:"1",label:t.$i18nt("gd.flow.work.createRecords","\u521B\u5EFA\u8BB0\u5F55")}}),s("el-option",{attrs:{value:"2",label:t.$i18nt("gd.flow.work.updateRecords","\u66F4\u65B0\u8BB0\u5F55")}}),s("el-option",{attrs:{disabled:t.tableDetails.isteam!==1,value:"3",label:t.$i18nt("gd.flow.work.shareRecords","\u5171\u4EAB\u8BB0\u5F55")}})],1)],1),s("el-col",{attrs:{span:8}},[a.operationtype==1?s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:t.$i18nt("gd.flow.work.table"),disabled:t.disabled},on:{change:function(n){return t.selectTable(n,a)}},model:{value:a.tableid,callback:function(n){t.$set(a,"tableid",n)},expression:"item.tableid"}},t._l(a.tableNameData,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:t.$i18nt(`Dynamics.${n.transkey}`,n.busname)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.busname))+" "+t._s(n.tablename)+" ")])}),1):a.operationtype==2?s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:t.$i18nt("gd.flow.work.table"),disabled:t.disabled},on:{change:function(n){return t.selectTable(n,a)}},model:{value:a.tableid,callback:function(n){t.$set(a,"tableid",n)},expression:"item.tableid"}},t._l(a.tableNameData,function(n,o){return s("el-option",{key:o,attrs:{value:n.busid,label:t.$i18nt(`Dynamics.${n.transkey}`,n.busname)}},[s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.busname))+" "+t._s(n.tablename)+" "+t._s(n.updatafiled.columncomment)+" ")])])}),1):t._e(),a.operationtype==3?s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:t.$i18nt("gd.flow.work.table"),disabled:t.disabled},on:{change:function(n){return t.selectTable(n,a)}},model:{value:a.tableid,callback:function(n){t.$set(a,"tableid",n)},expression:"item.tableid"}},t._l(a.tableNameData,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:t.$i18nt(`Dynamics.${n.transkey}`,n.busname)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.busname))+" "+t._s(n.tablename)+" ")])}),1):t._e()],1),s("el-col",{attrs:{span:4}},[s("el-button",{attrs:{type:a.fieldrelations&&a.fieldrelations.length==0?"danger":"primary",disabled:t.disabled?!0:a.disabled},on:{click:function(n){return t.setAttributes(l,a)}}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.attribute","\u8BBE\u7F6E\u5C5E\u6027"))+" ")])],1),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[t.disabled?t._e():s("i",{staticClass:"el-icon-rank drag-btn"}),t.disabled?t._e():s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l)}}})])],1)}),1)],1)],1),t.disabled?t._e():s("div",{staticClass:"add"},[s("a",{on:{click:t.addList}},[t._v(t._s(t.$i18nt("gd.flow.addStep","\u6DFB\u52A0\u6570\u636E\u6B65\u9AA4")))])])],1),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd-.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd-.btn.apply","\u5E94\u7528"))+" ")])],1)],1),s("AttributesDesigner",{ref:"attributes",attrs:{tableNameData:t.tableNameData,codeGenId:t.codeGenId,relevantData:t.relevantData},on:{ok:t.okAttributes}}),s("gd-team-sharing",{ref:"teamSharing",attrs:{modalAppendToBody:!1,appendToBody:!0,isInterface:!1,tableData:t.tableData},on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$35=[],__component__$35=chartbi.normalizeComponent(_sfc_main$35,_sfc_render$35,_sfc_staticRenderFns$35,!1,null,"64c466ab",null,null);const StepsDesigner$1=__component__$35.exports;function nodeData$1(i){switch(i){case"step":return{type:"step",name:"\u65B0\u5EFA\u6B65\u9AA4",list:[],err:!1,isDelete:!0};case"stage":return{type:"stage",name:"\u65B0\u5EFA\u9636\u6BB5",list:[],err:!1,isDelete:!0};case"condition":return{type:"condition",list:[{type:"if",name:"\u65B0\u5EFA\u6761\u4EF6",fieldwheres:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},list:[],err:!1},{type:"else",name:"ELSE",fieldwheres:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},list:[],err:!1}],isDelete:!0}}}const index_vue_vue_type_style_index_0_scoped_1d51fad4_lang="",plugFilters$3={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$34={name:"ConditionDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},table:{type:Object,default:()=>({})},tableDetails:{type:Object,default:()=>({})}},data(){return{detail:{},visible:!1,list:{},rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{listError(){return(this.list.list||[]).length===0},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},styleMode(){return`transform-origin: top left;transform:scale(${.72},${.8});`}},components:{ConnectDesigner:ConnectDesigner$1,StepsDesigner:StepsDesigner$1,FlowsFilter:system_duplicatechecking.FlowsFilter},methods:{sbumit(){this.$refs.ruleForm.validate(i=>{if(i){let t=this.list.list[0],s=t&&this.list.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.list;this.record.list[this.seeIndex].name=this.ruleFormData.name,this.record.list[this.seeIndex].fieldwheres={...s},this.record.list[this.seeIndex].err=!1,this.onClose()}})},addList(){this.$refs.findFilters.init(this.list)},okFilter(i){this.list={...i}},see(i){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[i];this.detail=t,this.seeIndex=i;let s=t.fieldwheres,a=Array.isArray(s)?Object.assign({...plugFilters$3},{list:s}):{...s},l=a.pid===null?a.list:[a],n=a.pid===null?a:plugFilters$3;this.list=Object.assign({...n},{list:l}),this.ruleFormData={name:t.name},this.disabled&&this.flowsFilterInit()},0)})},flowsFilterInit(){this.$nextTick(()=>{this.$refs.showMode.initComponents(this.list)})},addCondition(){let i=this.record.list.length,t={type:"elsif",name:"\u65B0\u5EFA\u6761\u4EF6",fieldwheres:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},list:[],err:!1,id:chartbi.uuid(),pid:this.record.id};this.record.list.splice(i-1,0,t)},selTyped(i,t){let s=nodeData$1(i);s=Object.assign(s,{pid:this.record.list[t].id,id:chartbi.uuid()}),s.type=="condition"&&s.list.map(a=>(a.id=chartbi.uuid(),a.pid=s.id,a)),this.record.list[t].list.splice(0,0,s)},del(i){if(this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list.filter((s,a)=>a!=i);t[0].type="if",this.record.list=[...t]},addType(i,t,s){let a=nodeData$1(i);a=Object.assign(a,{pid:this.record.list[t].id,id:chartbi.uuid()}),a.type=="condition"&&a.list.map(l=>(l.id=chartbi.uuid(),l.pid=a.id,l)),this.record.list[t].list.splice(s+1,0,a)},delChildItem(i,t,s){let a=this.record.list[t].list.filter((l,n)=>n!=i);this.record.list[t].list=[...a]},selType(i){this.$emit("addType",i,this.index)},onClose(){this.visible=!1},searchData(i,t){let s=this.loadData.filter(a=>a.id==this.list[t].columnid)[0];this.fetching=!0,this.list[t].fkData=[],messages.baseFkList({name:i,fkEntityName:s.fkentityname}).then(a=>{this.list[t].fkdata=a.success?[...a.data]:[],this.fetching=!1})},getDictionary(i){let t=this.loadData.filter(s=>s.id==i.columnid)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$34=function(){var t=this,s=t._self._c;return s("div",{staticClass:"condition"},[s("div",{staticClass:"condition-t"},[s("div",{staticClass:"condition-add"},[s("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])],1),t._l(t.record.list,function(a,l){return s("div",{key:l,staticClass:"condition-item"},[l==0?s("div",{staticClass:"condition-bot-left"}):t._e(),l==0?s("div",{staticClass:"condition-top-left"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-bot-right"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-top-right"}):t._e(),s("div",{staticClass:"condition-node"},[a.type=="else"?s("div",{staticClass:"condition-body"},[s("div",{staticClass:"condition-bodyt err-bg"},[t._v("ELSE")]),s("div",{staticClass:"condition-bodyb"},[s("div",{staticClass:"title err-color"},[t._v(t._s(t.$i18nt("gd.flow.work.discontentExecute","\u4E0D\u6EE1\u8DB3\u65F6\u6267\u884C")))])])]):s("div",{staticClass:"condition-body",class:a.err?"condition-err":"",on:{click:function(n){return t.see(l)}}},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:a.name}},[s("div",{attrs:{slot:"reference"},slot:"reference"},[s("div",{staticClass:"condition-bodyt line1"},[t._v(" "+t._s(t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219"))+" ")]),s("div",{staticClass:"condition-bodyb"},[s("div",{staticClass:"title line1"},[t._v(t._s(a.name))]),s("i",{staticClass:"el-icon-arrow-right icon"})]),s("i",{staticClass:"el-icon-close close",on:{click:function(n){return n.stopPropagation(),t.del.apply(null,arguments)}}})])]),a.err?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.work.supplementConditionsRules","\u8BF7\u8865\u5145\u6761\u4EF6/\u89C4\u5219\uFF01")))])]),s("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),s("ConnectDesigner",{attrs:{type:"condition",stateCodes:t.stateCodes},on:{selType:n=>t.selTyped(n,l)}})],1),t._l(a.list,function(n,o){return s("div",{key:o,staticStyle:{position:"relative","z-index":"10"}},[n.type=="step"?s("StepsDesigner",{attrs:{loadData:t.loadData,record:n,codeGenId:t.codeGenId,index:o,type:"condition",stateCodes:t.stateCodes,tableDetails:t.tableDetails,permissionsBnt:t.permissionsBnt},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o)}}):t._e(),n.type=="condition"?s("ConditionDesigner",{attrs:{record:n,loadData:t.loadData,index:o,codeGenId:t.codeGenId,table:t.table,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,tableDetails:t.tableDetails},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o)}}):t._e()],1)})],2)})],2),s("div",{staticClass:"condition-b"},[s("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}})],1),s("el-drawer",{attrs:{placement:"right",visible:t.visible,size:600,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,"custom-class":"gd-drawer-form"},on:{close:t.onClose}},[s("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219")}},[s("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addConditionsRules","\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219"))+" ")]),s("div",{staticClass:"tips"},[t.listError?s("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.conditionsRulesTip","\u8BF7\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"error","show-icon":"",closable:!1}}):s("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.addedConditionsRules","\u5DF2\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"success","show-icon":"",closable:!1}})],1)],1)],1)],1)],1),t.visible?s("div",{style:t.styleMode},[s("FlowsFilter",{ref:"showMode",attrs:{table:t.table,type:1,mode:"div",choiceDisabled:!0}})],1):t._e(),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),s("FlowsFilter",{ref:"findFilters",attrs:{table:t.table,type:1,mode:"dialog"},on:{ok:t.okFilter}})],1)},_sfc_staticRenderFns$34=[],__component__$34=chartbi.normalizeComponent(_sfc_main$34,_sfc_render$34,_sfc_staticRenderFns$34,!1,null,"1d51fad4",null,null);const ConditionDesigner$1=__component__$34.exports,index_vue_vue_type_style_index_0_scoped_8e0822fc_lang="",_sfc_main$33={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},tableDetails:{type:Object,default:()=>({})},codeGenId:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{detail:{},visible:!1,list:[],rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,ruleForm:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{disableds(){return this.permissionsBnt?this.stateCodes==1:!0},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},table(){return this.tableLists.filter(i=>i.id===this.codeGenId)[0]},...chartbi.mapGetters(["screenHeight","tableLists"])},components:{ConnectDesigner:ConnectDesigner$1,StepsDesigner:StepsDesigner$1,ConditionDesigner:ConditionDesigner$1},methods:{sbumit(){this.$refs.ruleForm.validate(i=>{i&&(this.record.list[this.seeIndex].name=this.ruleForm.name,this.onClose())})},addList(){let i={type:1,id:chartbi.uuid(),columnname:"",columnid:"",rules:"1",val:"",ruleslist:[...this.rulesList],effecttype:"input",fieldformat:null,fkdata:[]};this.list=this.list.concat(i)},delList(i){this.list=this.list.filter((t,s)=>s!=i)},see(i){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[i];this.detail=t,this.seeIndex=i,this.ruleForm={name:t.name}},0)})},selTyped(i,t){let s=nodeData$1(i);s=Object.assign(s,{pid:this.record.list[t].id,id:chartbi.uuid()}),s.type=="condition"&&s.list.map(a=>(a.id=chartbi.uuid(),a.pid=s.id,a)),this.record.list[t].list.splice(0,0,s)},del(i){if(this.record.list.length==1){this.$emit("delItem",this.index);return}let t=this.record.list.filter((s,a)=>a!=i);this.record.list=[...t]},addType(i,t,s){let a=nodeData$1(i);a=Object.assign(a,{pid:this.record.list[t].id,id:chartbi.uuid()}),this.record.list[t].list.splice(s+1,0,a)},delChildItem(i,t,s){let a=this.record.list[t].list.filter((l,n)=>n!=i);this.record.list[t].list=[...a]},selType(i){this.$emit("addType",i,this.index)},onClose(){this.visible=!1},lookup(i){this.lookIndex=i;let t=this.loadData.filter(s=>s.id==this.list[i].columnid)[0];this.$refs.engineSearch.open(t)},lookupSeled(i){this.handleLookupCancel(),this.list[this.lookIndex].effecttype=="fk"&&(this.list[this.lookIndex].fkdata=[i],this.list[this.lookIndex].val=i.id),this.list[this.lookIndex].effecttype=="about"&&(this.list[this.lookIndex].fkdata=[i.data],this.list[this.lookIndex].val=i.data.id)},handleLookupCancel(){this.lookupShow=!1},selColumn(i,t){this.$nextTick(()=>{setTimeout(()=>{let s=this.loadData.filter(l=>l.id==i.id)[0],a=this.rulesList.filter(l=>l.remark.split(",").includes(i.effecttype));s&&s.fieldformat&&(this.list[t].fieldformat=this.fieldFormat.filter(l=>l.code==s.fieldformat)[0].name),this.list[t].columnid=i.id,this.list[t].effecttype=s.effecttype,this.list[t].val="",this.list[t].ruleslist=[...a],this.list[t].rules=a.length>0?a[0].code:"",s.effecttype=="fk"&&this.searchData("",t)},0)})},searchData(i,t){let s=this.loadData.filter(a=>a.id==this.list[t].columnid)[0];this.fetching=!0,this.list[t].fkdata=[],messages.baseFkList({name:i,fkEntityName:s.fkentityname}).then(a=>{this.list[t].fkdata=a.success?[...a.data]:[],this.fetching=!1})},getDictionary(i){let t=this.loadData.filter(s=>s.id==i.columnid)[0];return t==null?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(i){return i.fieldformat.length>10}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$33=function(){var t=this,s=t._self._c;return s("div",{staticClass:"condition"},[s("div",{staticClass:"condition-t"},t._l(t.record.list,function(a,l){return s("div",{key:l,staticClass:"condition-item"},[l==0?s("div",{staticClass:"condition-bot-left"}):t._e(),l==0?s("div",{staticClass:"condition-top-left"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-bot-right"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-top-right"}):t._e(),s("div",{staticClass:"condition-node"},[s("div",{staticClass:"condition-body",class:a.err?"condition-err":"",on:{click:function(n){return t.see(l)}}},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:a.name}},[s("div",{attrs:{slot:"reference"},slot:"reference"},[s("div",{staticClass:"condition-bodyt"},[t._v(t._s(t.$i18nt("gd.flow.stage")))]),s("div",{staticClass:"condition-bodyb"},[s("div",{staticClass:"title line1"},[t._v(t._s(a.name))]),s("i",{staticClass:"el-icon-arrow-right icon"})]),s("i",{staticClass:"el-icon-close close",on:{click:function(n){return n.stopPropagation(),t.del(l)}}})])]),a.err?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.stageTip")))])]),s("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),s("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:n=>t.selTyped(n,l)}})],1),t._l(a.list,function(n,o){return s("div",{staticStyle:{position:"relative","z-index":"10"}},[n.type=="step"?s("StepsDesigner",{attrs:{loadData:t.loadData,tableDetails:t.tableDetails,record:n,codeGenId:t.codeGenId,index:o,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o)}}):t._e(),n.type=="condition"?s("ConditionDesigner",{attrs:{record:n,loadData:t.loadData,codeGenId:t.codeGenId,table:t.table,index:o,stateCodes:t.stateCodes,tableDetails:t.tableDetails,permissionsBnt:t.permissionsBnt},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o)}}):t._e()],1)})],2)}),0),s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer"},on:{close:t.onClose,"update:visible":function(a){t.visible=a}}},[s("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.stageName"),prop:"name"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleForm.name,callback:function(a){t.$set(t.ruleForm,"name",a)},expression:"ruleForm.name"}})],1)],1)],1)],1),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply"))+" ")])],1)],1)],1)},_sfc_staticRenderFns$33=[],__component__$33=chartbi.normalizeComponent(_sfc_main$33,_sfc_render$33,_sfc_staticRenderFns$33,!1,null,"8e0822fc",null,null);const StageDesigner$1=__component__$33.exports,main_vue_vue_type_style_index_0_scoped_788a5670_lang="",_sfc_main$32={name:"GdWorkFlow",props:{value:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},scaleVal:{type:Number,default:100}},data(){return{visible:!1,list:[],loadData:[],codeGenId:"",tableDetails:{}}},computed:{style(){let i=this.scaleVal/100;return`transform-origin: top;transform:scale(${i},${i});`}},components:{StartDesigner:StartDesigner$1,ConnectDesigner:ConnectDesigner$1,EndDesigner:EndDesigner$1,StepsDesigner:StepsDesigner$1,ConditionDesigner:ConditionDesigner$1,StageDesigner:StageDesigner$1},methods:{init(i){this.codeGenId=i[0].data.sysCodeGenId,this.list=[...i],this.getLoadData(),this.getTableData()},addType(i,t){let s=nodeData$1(i);if(s=Object.assign(s,{pid:0,id:chartbi.uuid()}),this.list.length==2){let a={list:[],name:"\u9876\u70B9",type:"stage",id:0};a.list.push(s),this.list.splice(t+1,0,a)}else{let a=this.list[t+1];a.list.push(s),this.list[t+1]=a}},delItem(i){let t=this.list.filter((s,a)=>a!=i);this.list=[...t]},getTableData(){messages.codeGenerateGetDetail({id:this.codeGenId}).then(i=>{i.code===200&&(this.tableDetails=i.data)})},getLoadData(){messages.onlineFormGetCodeGenerateList({codeGenId:this.codeGenId}).then(i=>{if(i.data){let t=i.data.filter(s=>s.effecttype=="about"&&s.columnname==(s.relations+"_AboutTable").toLowerCase()?!1:!(s.effecttype=="currency"&&s.columnname==(s.relations+"_Currency_Base").toLowerCase()));this.loadData=t}})}}};var _sfc_render$32=function(){var t=this,s=t._self._c;return s("div",[s("div",{staticClass:"flowsdesigner",style:t.style},[s("div",{staticClass:"flowsdesigners"},[s("div",{staticClass:"flowdesign"},[t._l(t.list,function(a,l){return[a.type=="start"?s("StartDesigner",{attrs:{record:a,index:l,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType}}):t._e(),a.type=="stage"?s("StageDesigner",{attrs:{record:a,tableDetails:t.tableDetails,loadData:t.loadData,index:l,codeGenId:t.codeGenId,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType,delItem:t.delItem}}):t._e(),a.type=="end"?s("EndDesigner"):t._e()]})],2)])])])},_sfc_staticRenderFns$32=[],__component__$32=chartbi.normalizeComponent(_sfc_main$32,_sfc_render$32,_sfc_staticRenderFns$32,!1,null,"788a5670",null,null);const GDpackage$8=__component__$32.exports;GDpackage$8.install=function(i){i.component(GDpackage$8.name,GDpackage$8)};const index_vue_vue_type_style_index_0_scoped_7fd7745c_lang="",_sfc_main$31={props:{placement:{type:String,default:"top"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0}},methods:{selType(i){this.visible=!1,!this.disabled&&this.$emit("selType",i)}}};var _sfc_render$31=function(){var t=this,s=t._self._c;return s("div",{staticClass:"lian"},[s("div",{ref:"lianBtn",staticClass:"lian-btn"},[s("el-popover",{attrs:{placement:t.placement},model:{value:t.visible,callback:function(a){t.visible=a},expression:"visible"}},[s("div",{staticClass:"overlayd"},[t._v(t._s(t.$i18nt("gd.flow.addNode","\u6DFB\u52A0\u6D41\u7A0B\u8282\u70B9")))]),s("div",{staticClass:"connect-solid"},[s("el-divider")],1),s("div",{staticClass:"contents"},[s("div",{staticClass:"item auto",on:{click:function(a){return t.selType("approver")}}},[s("i",{staticClass:"gd-icons gd-icon-audit anticon"}),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.approval.reviewedBy","\u5BA1\u6838\u4EBA")))])]),s("div",{staticClass:"item stage",on:{click:function(a){return t.selType("circulate")}}},[s("i",{staticClass:"el-icon-s-promotion anticon",staticStyle:{height:"40px","font-size":"25px"}}),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.approval.CcBy","\u6284\u9001\u4EBA")))])]),s("div",{staticClass:"item term",on:{click:function(a){return t.selType("condition")}}},[s("i",{staticClass:"gd-icons gd-icon-liucheng anticon"}),s("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.condition","\u6761\u4EF6")))])])]),s("el-button",{attrs:{slot:"reference",type:t.disabled?"info":"primary",icon:"el-icon-plus",size:"mini",circle:"",disabled:t.disabled},slot:"reference"})],1)],1)])},_sfc_staticRenderFns$31=[],__component__$31=chartbi.normalizeComponent(_sfc_main$31,_sfc_render$31,_sfc_staticRenderFns$31,!1,null,"7fd7745c",null,null);const ConnectDesigner=__component__$31.exports,index_vue_vue_type_style_index_0_scoped_b3d9093f_lang="",_sfc_main$30={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},startCategory:{type:String,default:""}},data(){return{visible:!1,tableNameData:[],fetching:!1,show:!1,msgList:[],msgListCC:[],msgListPress:[],msgListBack:[],msgListRject:[],msgListEnd:[],msgListTrans:[],msgListReturn:[],msgListApproval:[],msgListAutomatic:[],fkEntityName:"Msg_MessagetemPlate",type:1,datail:null,showHistory:!1,textReturn:!1,textSgin:!1,isReturnMsg:!1,isRejectMsg:!1,ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],tableId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],category:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],autoApprovalType:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],enCode:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},msgType:null,list:[{type:"",tempid:"",msgList:[]}],msgcclist:[{type:"",tempid:"",msgList:[]}],msguplist:[{type:"",tempid:"",msgList:[]}],msgrvlist:[{type:"",tempid:"",msgList:[]}],msgrjlist:[{type:"",tempid:"",msgList:[]}],msgtrlist:[{type:"",tempid:"",msgList:[]}],msgaslist:[{type:"",tempid:"",msgList:[]}],msgrtlist:[{type:"",tempid:"",msgList:[]}],msgrtalist:[{type:"",tempid:"",msgList:[]}],msgaalist:[{type:"",tempid:"",msgList:[]}]}},components:{ConnectDesigner},computed:{categoryDisableds(){let i=this.getDictionary("table_flows_type").filter(t=>t.code==this.startCategory)[0];return i===void 0||i.statecodes==1?"":i.code},dictList(){return this.getDictionary("table_flows_type").filter(t=>t.statecodes==1||t.code==this.categoryDisableds)},disableds(){return this.stateCodes==1},getName(){let i=this.record.data.name;if(this.record.data.langs&&this.record.data.langs.length>0){let t=this.record.data.langs.filter(s=>s.code==this.language)[0];i=t===void 0?i:t.val}else this.record.data.transKey&&(i=this.$i18nt(`Dynamics.${this.record.data.transKey}`,0,i));return i},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},getSendType(){let i=[],t=[];return this.getDictionary("SendType").map(a=>(a.disabled=a.statecodes!=1,a.disabled?t.push(a):i.push(a),a)),i.concat(t)},...chartbi.mapGetters(["language"])},methods:{onChange(i){this.isReturnMsg=i.target.checked},onChange1(i){this.isRejectMsg=i.target.checked},lookupSeleds(i){let t=[];i.langs.forEach(s=>{t.push({name:s.languageName,val:s.description,code:s.languageCode})}),this.form.setFieldsValue({name:i.defaulttext,langs:JSON.stringify(t)}),this.record.data.langs=t},lookupSeled(i){this.type==1?this.msgList=i.fkData:this.type==2?this.msgListCC=i.fkData:this.type==3?this.msgListPress=i.fkData:this.type==4?this.msgListBack=i.fkData:this.type==5?this.msgListRject=i.fkData:this.type==6?this.msgListTrans=i.fkData:this.type==7?this.msgListEnd=i.fkData:this.type==8?this.msgListReturn=i.fkData:this.type==9?this.msgListApproval=i.fkData:this.type==10&&(this.msgListAutomatic=i.fkData)},async lookup(i,t){this.type=i;let s=t,a={fkEntityName:this.fkEntityName,effectType:"fk",options:{},val:s};this.$refs.engineSearch.open(a)},sbumit(){this.$refs.ruleForm.validate(i=>{if(i){const t=this.list.map(h=>{const{msgList:f,...m}=h;return m}),s=this.msgcclist.map(h=>{const{msgList:f,...m}=h;return m}),a=this.msguplist.map(h=>{const{msgList:f,...m}=h;return m}),l=this.msgrvlist.map(h=>{const{msgList:f,...m}=h;return m}),n=this.msgrjlist.map(h=>{const{msgList:f,...m}=h;return m}),o=this.msgtrlist.map(h=>{const{msgList:f,...m}=h;return m}),r=this.msgaslist.map(h=>{const{msgList:f,...m}=h;return m}),d=this.msgrtlist.map(h=>{const{msgList:f,...m}=h;return m}),u=this.msgrtalist.map(h=>{const{msgList:f,...m}=h;return m}),p=this.msgaalist.map(h=>{const{msgList:f,...m}=h;return m});this.record.data=Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)},{isReturnMsg:this.isReturnMsg==!0?1:0},{isRejectMsg:this.isRejectMsg==!0?1:0},{msg_MessagetemPlateId:JSON.stringify(t)},{msg_MessagetemPlateId_CC:JSON.stringify(s)},{msg_MessagetemPlateId_UP:JSON.stringify(a)},{msg_MessagetemPlateId_RV:JSON.stringify(l)},{msg_MessagetemPlateId_RJ:JSON.stringify(n)},{msg_MessagetemPlateId_TR:JSON.stringify(o)},{msg_MessagetemPlateId_AS:JSON.stringify(r)},{msg_MessagetemPlateId_RT:JSON.stringify(d)},{msg_MessagetemPlateId_RTA:JSON.stringify(u)},{msg_MessagetemPlateId_AA:JSON.stringify(p)}),this.onClose(1)}})},searchTable(i){this.fetching=!0,this.tableNameData=[],messages.codeGenerateApprovalList({busName:i}).then(t=>{this.tableNameData=[...t.data],this.fetching=!1})},changeMsg(i){this.msgType=i,this.searchMsgData("")},searchMsgData(i){let t={fkEntityName:this.fkEntityName,name:i};this.fetching=!0,this.msgList=this.msgType==1?[]:this.msgList,this.msgListCC=this.msgType==2?[]:this.msgListCC,this.msgListPress=this.msgType==3?[]:this.msgListPress,this.msgListBack=this.msgType==4?[]:this.msgListBack,this.msgListRject=this.msgType==5?[]:this.msgListRject,this.msgListTrans=this.msgType==6?[]:this.msgListTrans,this.msgListEnd=this.msgType==7?[]:this.msgListEnd,this.msgListReturn=this.msgType==8?[]:this.msgListReturn,this.msgListApproval=this.msgType==9?[]:this.msgListApproval,this.msgListAutomatic=this.msgType==10?[]:this.msgListAutomatic,messages.baseFkList(t).then(s=>{this.fetching=!1,s.success&&(this.msgList=this.msgType==1?[...s.data]:this.msgList,this.msgListCC=this.msgType==2?[...s.data]:this.msgListCC,this.msgListPress=this.msgType==3?[...s.data]:this.msgListPress,this.msgListBack=this.msgType==4?[...s.data]:this.msgListBack,this.msgListRject=this.msgType==5?[...s.data]:this.msgListRject,this.msgListTrans=this.msgType==6?[...s.data]:this.msgListTrans,this.msgListEnd=this.msgType==7?[...s.data]:this.msgListEnd,this.msgListReturn=this.msgType==8?[...s.data]:this.msgListReturn,this.msgListApproval=this.msgType==9?[...s.data]:this.msgListApproval,this.msgListAutomatic=this.msgType==10?[...s.data]:this.msgListAutomatic)})},searchMsgDataId(i,t){let s={fkEntityName:this.fkEntityName,id:i};this.fetching=!0,this.msgList=t==1?[]:this.msgList,this.msgListCC=t==2?[]:this.msgListCC,this.msgListPress=t==3?[]:this.msgListPress,this.msgListBack=t==4?[]:this.msgListBack,this.msgListRject=t==5?[]:this.msgListRject,this.msgListTrans=t==6?[]:this.msgListTrans,this.msgListEnd=t==7?[]:this.msgListEnd,this.msgListReturn=t==8?[]:this.msgListReturn,this.msgListApproval=t==9?[]:this.msgListApproval,this.msgListAutomatic=t==10?[]:this.msgListAutomatic,messages.baseFkList(s).then(a=>{a.code==200&&(this.msgList=t==1?[...a.data]:this.msgList,this.msgListCC=t==2?[...a.data]:this.msgListCC,this.msgListPress=t==3?[...a.data]:this.msgListPress,this.msgListBack=t==4?[...a.data]:this.msgListBack,this.msgListRject=t==5?[...a.data]:this.msgListRject,this.msgListTrans=t==6?[...a.data]:this.msgListTrans,this.msgListEnd=t==7?[...a.data]:this.msgListEnd,this.msgListReturn=t==8?[...a.data]:this.msgListReturn,this.msgListApproval=t==9?[...a.data]:this.msgListApproval,this.msgListAutomatic=t==10?[...a.data]:this.msgListAutomatic),this.fetching=!1})},see(){this.show=this.record.data.stateCodes!=null,this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let i={name:this.record.data.name,tableId:this.record.data.tableId,category:this.record.data.category,description:this.record.data.description,enCode:this.record.data.enCode,autoApprovalType:String(this.record.data.autoApprovalType),transKey:this.record.data.transKey,langs:JSON.stringify(this.record.data.langs)};this.isReturnMsg=this.record.data.isReturnMsg==1,this.isRejectMsg=this.record.data.isRejectMsg==1,this.record.data.stateCodes!=null&&(i=Object.assign(i,{stateCodes:this.record.data.stateCodes})),this.record.data&&this.record.data.msg_MessagetemPlateId&&JSON.parse(this.record.data.msg_MessagetemPlateId).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.list=this.record.data&&this.record.data.msg_MessagetemPlateId?JSON.parse(this.record.data.msg_MessagetemPlateId).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.list.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.list=[{type:"",tempid:"",msgList:[]}],this.record.data&&this.record.data.msg_MessagetemPlateId_CC&&JSON.parse(this.record.data.msg_MessagetemPlateId_CC).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.msgcclist=this.record.data&&this.record.data.msg_MessagetemPlateId_CC?JSON.parse(this.record.data.msg_MessagetemPlateId_CC).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgcclist.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.msgcclist=[{type:"",tempid:"",msgList:[]}],this.record.data&&this.record.data.msg_MessagetemPlateId_UP&&JSON.parse(this.record.data.msg_MessagetemPlateId_UP).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.msguplist=this.record.data&&this.record.data.msg_MessagetemPlateId_UP?JSON.parse(this.record.data.msg_MessagetemPlateId_UP).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msguplist.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.msguplist=[{type:"",tempid:"",msgList:[]}],this.record.data&&this.record.data.msg_MessagetemPlateId_RV&&JSON.parse(this.record.data.msg_MessagetemPlateId_RV).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.msgrvlist=this.record.data&&this.record.data.msg_MessagetemPlateId_RV?JSON.parse(this.record.data.msg_MessagetemPlateId_RV).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgrvlist.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.msgrvlist=[{type:"",tempid:"",msgList:[]}],this.record.data&&this.record.data.msg_MessagetemPlateId_RJ&&JSON.parse(this.record.data.msg_MessagetemPlateId_RJ).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.msgrjlist=this.record.data&&this.record.data.msg_MessagetemPlateId_RJ?JSON.parse(this.record.data.msg_MessagetemPlateId_RJ).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgrjlist.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.msgrjlist=[{type:"",tempid:"",msgList:[]}],this.record.data&&this.record.data.msg_MessagetemPlateId_TR&&JSON.parse(this.record.data.msg_MessagetemPlateId_TR).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.msgtrlist=this.record.data&&this.record.data.msg_MessagetemPlateId_TR?JSON.parse(this.record.data.msg_MessagetemPlateId_TR).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgtrlist.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.msgtrlist=[{type:"",tempid:"",msgList:[]}],this.record.data&&this.record.data.msg_MessagetemPlateId_AS&&JSON.parse(this.record.data.msg_MessagetemPlateId_AS).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.msgaslist=this.record.data&&this.record.data.msg_MessagetemPlateId_AS?JSON.parse(this.record.data.msg_MessagetemPlateId_AS).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgaslist.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.msgaslist=[{type:"",tempid:"",msgList:[]}],this.record.data&&this.record.data.msg_MessagetemPlateId_RT&&JSON.parse(this.record.data.msg_MessagetemPlateId_RT).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.msgrtlist=this.record.data&&this.record.data.msg_MessagetemPlateId_RT?JSON.parse(this.record.data.msg_MessagetemPlateId_RT).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgrtlist.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.msgrtlist=[{type:"",tempid:"",msgList:[]}],this.record.data&&this.record.data.msg_MessagetemPlateId_RTA&&JSON.parse(this.record.data.msg_MessagetemPlateId_RTA).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.msgrtalist=this.record.data&&this.record.data.msg_MessagetemPlateId_RTA?JSON.parse(this.record.data.msg_MessagetemPlateId_RTA).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgrtalist.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.msgrtalist=[{type:"",tempid:"",msgList:[]}],this.record.data&&this.record.data.msg_MessagetemPlateId_AA&&JSON.parse(this.record.data.msg_MessagetemPlateId_AA).length>0&&typeof this.record.data.msg_MessagetemPlateId=="string"?(this.msgaalist=this.record.data&&this.record.data.msg_MessagetemPlateId_AA?JSON.parse(this.record.data.msg_MessagetemPlateId_AA).map(t=>({...t,msgList:[]})):[{type:"",tempid:"",msgList:[]}],this.msgaalist.forEach(t=>{t.tempid!=""&&this.selTemplateType(t)})):this.msgaalist=[{type:"",tempid:"",msgList:[]}],this.ruleFormData=i,this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},handleChange(i){this.record.data.title=i},onClose(i){if(i!=null&&i==1){this.visible=!1;return}if(this.record.data.transKey){let t=this.form.getFieldsValue(),s=JSON.parse(t.langs);this.record.data=Object.assign({...this.record.data},{langs:s,name:t.name})}this.visible=!1},selType(i){this.$emit("addType",i,this.index)},getDictionary(i){return this.$options.filters.dictData(i)},toggleHistory(){this.showHistory=!this.showHistory},addList(i){let t={id:chartbi.uuid(),type:"",msgList:""};i=="1"?this.list=this.list.concat(t):i=="2"?this.msgcclist=this.msgcclist.concat(t):i=="3"?this.msguplist=this.msguplist.concat(t):i=="4"?this.msgrvlist=this.msgrvlist.concat(t):i=="5"?this.msgrjlist=this.msgrjlist.concat(t):i=="6"?this.msgtrlist=this.msgtrlist.concat(t):i=="7"?this.msgaslist=this.msgaslist.concat(t):i=="8"?this.msgrtlist=this.msgrtlist.concat(t):i=="9"?this.msgrtalist=this.msgrtalist.concat(t):i=="10"&&(this.msgaalist=this.msgaalist.concat(t))},delList(i,t){t=="1"?this.list=this.list.filter((s,a)=>a!=i):t=="2"?this.msgcclist=this.msgcclist.filter((s,a)=>a!=i):t=="3"?this.msguplist=this.msguplist.filter((s,a)=>a!=i):t=="4"?this.msgrvlist=this.msgrvlist.filter((s,a)=>a!=i):t=="5"?this.msgrjlist=this.msgrjlist.filter((s,a)=>a!=i):t=="6"?this.msgtrlist=this.msgtrlist.filter((s,a)=>a!=i):t=="7"?this.msgaslist=this.msgaslist.filter((s,a)=>a!=i):t=="8"?this.msgrtlist=this.msgrtlist.filter((s,a)=>a!=i):t=="9"?this.msgrtalist=this.msgrtalist.filter((s,a)=>a!=i):t=="10"&&(this.msgaalist=this.msgaalist.filter((s,a)=>a!=i))},selTemplateType(i){messages.getTemplatesByType({templateType:i.type}).then(t=>{i.msgList=t.data})}},mounted(){this.searchTable("")}};var _sfc_render$30=function(){var t=this,s=t._self._c;return s("div",{staticClass:"start"},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[s("div",{staticClass:"starts",attrs:{slot:"reference"},on:{click:t.see},slot:"reference"},[s("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.processStart","\u6D41\u7A0B\u5F00\u59CB")))]),s("div",{staticClass:"start-b"},[s("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),s("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})])])]),s("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(a){t.visible=a}}},[s("template",{slot:"title"},[s("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[s("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.ProcessInformation","\u6D41\u7A0B\u4FE1\u606F")))])])]),s("el-form",{ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[s("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.transKey,callback:function(a){t.$set(t.ruleFormData,"transKey",a)},expression:"ruleFormData.transKey"}})],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[s("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.langs,callback:function(a){t.$set(t.ruleFormData,"langs",a)},expression:"ruleFormData.langs"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.name","\u540D\u79F0"),prop:"name"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.table","\u5173\u8054\u8868"),prop:"tableId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0,clearable:"",remote:"","reserve-keyword":"","remote-method":t.searchTable,loading:t.fetching},model:{value:t.ruleFormData.tableId,callback:function(a){t.$set(t.ruleFormData,"tableId",a)},expression:"ruleFormData.tableId"}},t._l(t.tableNameData,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.busname)}},[s("span",[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.busname)))]),s("span",[t._v(t._s(a.tablename))])])}),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.classify"),prop:"category"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.category,callback:function(a){t.$set(t.ruleFormData,"category",a)},expression:"ruleFormData.category"}},t._l(t.dictList,function(a,l){return s("el-option",{key:l,class:a.code===t.categoryDisableds?"category-dels":"",attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.autoApproval")}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.autoApprovalType,callback:function(a){t.$set(t.ruleFormData,"autoApprovalType",a)},expression:"ruleFormData.autoApprovalType"}},t._l(t.getDictionary("table_flows_autoApproval"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),s("el-col",{attrs:{span:24}},[s("div",{staticStyle:{"margin-top":"10px"}},[s("span",[t._v(" "+t._s(t.$i18nt("gd.flow.approval.configTemplate","\u6A21\u7248\u914D\u7F6E"))+" "),t.showHistory==!1?s("a",{on:{click:t.toggleHistory}},[t._v(" "+t._s(t.$i18nt("gd.btn.down","\u5C55\u5F00"))+" "),s("i",{staticClass:"el-icon-arrow-down"})]):s("a",{on:{click:t.toggleHistory}},[t._v(" "+t._s(t.$i18nt("gd.btn.up","\u6536\u8D77"))+" "),s("i",{staticClass:"el-icon-arrow-up"})])])])]),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("1")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplate","\u5BA1\u6279\u6D88\u606F\u6A21\u677F"),prop:"msg_MessagetemPlateId"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.list.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.list,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(1)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"1")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("2")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplatecc","\u6284\u9001\u6D88\u606F\u6A21\u677F"),prop:"msg_MessagetemPlateId_CC"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgcclist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgcclist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(2)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"2")}}})])],1)}),1)],1)])],1),s("div",{directives:[{name:"show",rawName:"v-show",value:t.showHistory,expression:"showHistory"}]},[s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("3")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplatePress","\u50AC\u529E\u6A21\u677F"),prop:"msg_MessagetemPlateId_UP"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msguplist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msguplist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(3)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"3")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("4")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateRecall"),prop:"msg_MessagetemPlateId_RV"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgrvlist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgrvlist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(4)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"4")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("5")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurn"),prop:"msg_MessagetemPlateId_RJ"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgrjlist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgrjlist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(5)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"5")}}})])],1)}),1)],1),s("el-checkbox",{attrs:{disabled:t.disableds},on:{click:t.onChange1},model:{value:t.isRejectMsg,callback:function(a){t.isRejectMsg=a},expression:"isRejectMsg"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.textReturn","\u662F\u5426\u5F00\u542F\u9A73\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5"))+" ")])],1)],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("6")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurret","\u8F6C\u5BA1\u6A21\u677F"),prop:"msg_MessagetemPlateId_TR"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgtrlist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgtrlist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(6)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"6")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("7")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateEnd","\u52A0\u7B7E\u6A21\u677F"),prop:"msg_MessagetemPlateId_AS"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgaslist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgaslist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(7)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"7")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("8")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateSign","\u9000\u56DE\u6A21\u677F"),prop:"msg_MessagetemPlateId_RT"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgrtlist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgrtlist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(8)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"8")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"",prop:"isReturnMsg"}},[s("el-checkbox",{attrs:{disabled:t.disableds},on:{click:t.onChange},model:{value:t.isReturnMsg,callback:function(a){t.isReturnMsg=a},expression:"isReturnMsg"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.textSgin","\u662F\u5426\u5F00\u542F\u9000\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5"))+" ")])],1)],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("9")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.returnApproval","\u9000\u56DE\u5BA1\u6279\u6A21\u677F"),prop:"msg_MessagetemPlateId_RTA"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgrtalist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgrtalist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(9)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"9")}}})])],1)}),1)],1)])],1),s("el-col",{attrs:{span:24}},[s("div",{staticClass:"add"},[s("el-button",{attrs:{type:"text",icon:"el-icon-plus btn-add",size:"small"},on:{click:function(a){return t.addList("10")}}},[t._v(" "+t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0"))+" ")])],1),s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.automatic","\u81EA\u52A8\u5BA1\u6279\u6A21\u677F"),prop:"msg_MessagetemPlateId_AA"}},[s("div",{staticStyle:{padding:"0 6px"}},[t.msgaalist.length>0?s("el-row",{staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.templateLibrary.templateCategory","\u6A21\u677F\u7C7B\u522B")))]),s("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.msg.sendPlan.messagetemPlate","\u6D88\u606F\u6A21\u677F")))]),s("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),s("div",t._l(t.msgaalist,function(a,l){return s("el-row",{key:l,staticClass:"more",attrs:{gutter:24}},[s("el-col",{attrs:{span:10}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:function(n){return t.selTemplateType(a)}},model:{value:a.type,callback:function(n){t.$set(a,"type",n)},expression:"item.type"}},t._l(t.getSendType,function(n,o){return s("el-option",{key:o,attrs:{label:n.name,value:n.code,disabled:n.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])}),1)],1),s("el-col",{attrs:{span:10}},[s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),remote:"","reserve-keyword":"","remote-method":t.searchMsgData,clearable:"",disabled:t.disableds},on:{focus:function(n){return t.changeMsg(10)}},model:{value:a.tempid,callback:function(n){t.$set(a,"tempid",n)},expression:"item.tempid"}},t._l(a.msgList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1)],1)]),s("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[s("i",{staticClass:"el-icon-close del-btn",on:{click:function(n){return t.delList(l,"10")}}})])],1)}),1)],1)])],1)],1),t.show?s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state","\u72B6\u6001"),prop:"stateCodes"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(a){t.$set(t.ruleFormData,"stateCodes",a)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1):t._e(),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"enCode"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.enCode,callback:function(a){t.$set(t.ruleFormData,"enCode",a)},expression:"ruleFormData.enCode"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.explain","\u63CF\u8FF0"),prop:"description"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:4,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.description,callback:function(a){t.$set(t.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),s("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$30=[],__component__$30=chartbi.normalizeComponent(_sfc_main$30,_sfc_render$30,_sfc_staticRenderFns$30,!1,null,"b3d9093f",null,null);const StartDesigner=__component__$30.exports,index_vue_vue_type_style_index_0_scoped_ebda95e3_lang="",_sfc_main$2$={data(){return{}}};var _sfc_render$2$=function(){var t=this,s=t._self._c;return s("div",{staticClass:"end"},[s("div",{staticClass:"ends"},[t._v(t._s(t.$i18nt("gd.flow.processEnd","\u6D41\u7A0B\u7ED3\u675F")))])])},_sfc_staticRenderFns$2$=[],__component__$2$=chartbi.normalizeComponent(_sfc_main$2$,_sfc_render$2$,_sfc_staticRenderFns$2$,!1,null,"ebda95e3",null,null);const EndDesigner=__component__$2$.exports,index_vue_vue_type_style_index_0_scoped_8a1626d4_lang="",_sfc_main$2_={props:{menberList:{type:Array,default:()=>[]}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],qVisible:!1,qConfirmLoading:!1,qSpinning:!1,selData:[],list:[],checkedKeys:[],id:"",menberList1:[],fullscreen:!1,width:"80%",defaultExpandedKeys:[],defaultProps:{children:"children",label:"name",value:"id"},currentNodeKey:null,selectedKey:null}},components:{draggable},watch:{language(i,t){this.changeLanguage()}},computed:{style(){let i=this.screenHeight-272;return`height:${this.fullscreen?i+190:i}px;`},...chartbi.mapGetters(["language","tableSize","screenHeight"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},onCheck(i,t){this.getSelData(t.checkedKeys)},handleClickChange(i,t){if(!t){this.getSelData([]);return}this.$refs.tree.setCheckedNodes([i]),this.getSelData([i.id])},init(i,t){this.fullscreen=!1,this.id=t,console.log(i,this.id,"e....");let s=[],a=[];i.forEach(l=>{s.push(l.id?l.id:l)}),this.list=s,this.selData=[...i],this.qVisible=!0,t==5||t==6?(a=i.length==0?[]:[i[0].id],this.getMenber(a)):(this.checkedKeys=i.length>0?[...s]:[],this.checkedKeys.length==0&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.treeList.setCheckedNodes([])},0)}))},getSelData(i){let t=[],s=[];const a=l=>(l=l.filter((n,o)=>(n.children&&n.children.length>0&&(n.children=a(n.children)),n.type==2&&i.includes(n.id)&&t.push(n),n.type==1&&i.includes(n.id)&&s.push(n),!0)),l);this.id==5?(a(this.menberList1),this.selData=[...s]):(a(this.menberList),this.selData=[...t])},handleSubmit(){this.$emit("ok",this.selData,this.id),this.handleCancel()},handleCancel(){this.mockData=[],this.qVisible=!1},doEvent(i){let t=i.item.functionName;this[t]()},getMenber(i){if(this.type==3){let t=localStorage.getItem("transName");t=JSON.parse(t)}messages.getBUEmployeeTree().then(t=>{if(t.code==200){const s=a=>(a=a.filter((l,n)=>l.type!=2?(l.key=l.id,l.title=l.name,l.children&&l.children.length>0&&(l.children=s(l.children)),!0):!1),a);s(t.data),this.menberList1=t.data,this.defaultExpandedKeys=i,this.$nextTick(()=>{setTimeout(()=>{this.defaultExpandedKeys.length==0&&this.$refs.tree.setCheckedNodes([])},0)})}})}}};var _sfc_render$2_=function(){var t=this,s=t._self._c;return s("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.qVisible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(a){t.qVisible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.flow.approval.specifyMembers","\u6307\u5B9A\u6210\u5458"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.qSpinning,emitFun:!0,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.togglefullscreen,close:t.handleCancel},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.qSpinning,expression:"qSpinning"}],class:t.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticClass:"view_query"},[t.id==5?s("div",{staticClass:"l",style:t.style},[s("el-tree",{ref:"tree",staticClass:"treeRadio",attrs:{data:t.menberList1,props:t.defaultProps,"default-expand-all":"","default-checked-keys":t.defaultExpandedKeys,"show-checkbox":"","check-strictly":"","node-key":"id"},on:{"check-change":t.handleClickChange,check:t.onCheck}})],1):t.id==6?s("div",{staticClass:"l",style:t.style},[s("el-tree",{ref:"tree",staticClass:"treeRadio",attrs:{data:t.menberList,props:t.defaultProps,"default-expand-all":"","default-checked-keys":t.defaultExpandedKeys,"show-checkbox":"","check-strictly":"","node-key":"id"},on:{"check-change":t.handleClickChange,check:t.onCheck}})],1):s("div",{staticClass:"l",style:t.style},[t.menberList.length?s("el-tree",{ref:"treeList",attrs:{data:t.menberList,props:t.defaultProps,"node-key":"id","show-checkbox":"","default-expand-all":"","expand-on-click-node":!1,"default-checked-keys":t.checkedKeys},on:{check:t.onCheck}}):t._e()],1),s("div",{staticClass:"c"},[s("a",[s("i",{staticClass:"el-icon-d-arrow-right",staticStyle:{"font-size":"20px"}})])]),t.qVisible&&t.id==5?s("div",{staticClass:"l",style:t.style},[s("div",{staticClass:"specify_members"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.selDepartment"))+" ")]),t._l(t.selData,function(a,l){return s("div",{key:l,staticClass:"line1",staticStyle:{margin:"10px"}},[s("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"16px","padding-right":"8px",color:"#f00"}}),t._v(" "+t._s(a.name)+" ")])})],2):t._e(),t.qVisible&&t.id==6?s("div",{staticClass:"l",style:t.style},[s("div",{staticClass:"specify_members"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.selDepartment"))+" ")]),t._l(t.selData,function(a,l){return s("div",{key:l,staticClass:"line1",staticStyle:{margin:"10px"}},[s("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"16px","padding-right":"8px",color:"#f00"}}),t._v(" "+t._s(a.name)+" ")])})],2):t._e(),t.qVisible&&t.id!=5&&t.id!=6?s("div",{staticClass:"l",style:t.style},[s("div",{staticClass:"specify_members"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.selMembers","\u5DF2\u9009\u6210\u5458"))+" ")]),s("draggable",t._b({model:{value:t.selData,callback:function(a){t.selData=a},expression:"selData"}},"draggable",{animation:300,handle:".drag-move"},!1),t._l(t.selData,function(a,l){return s("div",{key:l,staticClass:"line1",staticStyle:{margin:"10px"}},[s("i",{staticClass:"el-icon-rank drag-move",staticStyle:{"font-size":"16px","padding-right":"8px",color:"#f00"}}),t._v(" "+t._s(a.name)+" ")])}),0)],1):t._e()])])],1)},_sfc_staticRenderFns$2_=[],__component__$2_=chartbi.normalizeComponent(_sfc_main$2_,_sfc_render$2_,_sfc_staticRenderFns$2_,!1,null,"8a1626d4",null,null);const Menbers=__component__$2_.exports,__$_require_e8adeb72__="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAQlBMVEUAAAD////////////////////////////////////////////////////////////////////g7P3////1+f/r9P7kNebLAAAAEnRSTlMA889POxugZK7jxb1vEFuFLuUrCRQXAAADa0lEQVRo3ryZ626DMAyFcYBw7yXHfv9XndjYLHUtinHg+w36emzHqURlZmm6e5zCQAQQDWGK965ZqnNp5n7AW4Z+bqpzaLuesMIsIukPEWHGCvVdW9q6dNPmTB/Y7FO3lKxwJAAq/SwHQLFUzesRas1yj3UJbVi1ycCqDl51E17CZscOnoK3UbV2dTw84jMBkg4iAM3H4o4AJwcMjAdC3zSuJ/TN6o0a1xc62socNK43dDCU+/EEUiGA5yN7ZxA4FYNBdaYX6i1jRpb5pt5y5psnrz+z31ve/CD1ljXT7my3g3pLm4e98xzUW94cdvdkOg0g7hykdCIfD1VLpv0sK7a9Te/bPIINHfuFxfDS+M47A4b/NYrh4AOzp9CMf4ij2H3uD4diDs3oX70NkHuze8xAc3B1AC6zvK6R2uE19ZlRvwSWg3OlGCJbAwv24AORR0NgZ7EFo32ksQ+bBzsaKu3uMusttRAMK8s92KBlE3e2s+Qfr24TT5ArxYJpux5M29Lf5AS0WunrxFrrHnKtWLY7Smf63B4roJ/twVeL+XuHzOXEki2etcUZcIkWa5MHw/M+sYKhqhbD885KK8Cis+WPnLJhNLo+cvAH1hVyt7wgrrOkCO5VVLHPnAwIol5NebDTqxdUQDLBDq+CoMfYU21ORvDUK8IRWpIVkIoNCB/WqhgqtrlZv0PZAb66N5fchmEYiDaG67hFsgiGvP9VC68EBPBLZIq1lLnAA2VDn+EQwGEx+HIO+HIe+HEO+PE1nQOecMtkk8vsqaFbt2UuleANqCeZeS14qToW3bQv87pj8SoLUBHOF4FZVkll+btXn7tUeyDFy5bucL0FbPRFoR+40AM2inatL58wpoPyl0+YmcA6Lud/i5+pisjwmYofWTE5fGK0Ikw5ZNMVzRdXWGC+gN2kuBzsprLWCWDbWWm0FF0NBJZiMVH/CWxawDZOBEszGOWNwAZGeWkNJFXM3ZBJngLmZkgpOR9cCi4lZ4Cx4PJj54OlGZqaeWDTCm3cBDD2zG9S9l4t3d5p1XtrrukXwgkZKgvdVxwjP4DSX+QmOWTUY6xqN0g2aIRt4/YbFsyJR/YdCG0fge0/9Ns05jxKsLtVlH2k8P5W9BoZV1i/xxvQiIykjDuEc2TsaPxBqyOjZR8wTNd4fPAPFfElFmMfdj8AAAAASUVORK5CYII=",index_vue_vue_type_style_index_0_scoped_8010a5d0_lang="",_sfc_main$2Z={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},type:{type:String,default:"step"},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{radioStyle:{display:"block",height:"30px",lineHeight:"30px"},visible:!1,list:[],confirmLoading:!1,assigneeType:"",seeList:[],rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{}}},components:{ConnectDesigner,Menbers},computed:{languageMessages(){return this.$i18n.messages},getTransKey(){let i=this.tableLists.filter(l=>l.id==this.codeGenId)[0],s=`SFOA_N${i===void 0?"":`_${i.tablename}`}_${chartbi.uuid(8)}`,a=[];for(let l in this.languageMessages)a.push({name:chartbi.transKeyCodeName(l),val:this.ruleFormData.name,code:l});return JSON.stringify({name:s,langs:a})},getName(){let i=this.record.name;if(this.record.properties.langs&&this.record.properties.langs.length>0){let t=this.record.properties.langs.filter(s=>s.code==this.language)[0];i=t===void 0?i:t.val}else this.record.properties.transkey&&(i=this.$i18nt(`Dynamics.${this.record.properties.transkey}`,i));return i},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getAuditorType(){let t=this.getDictionary("table_flows_ccmode").filter(a=>a.code==this.record.properties.assigneeType)[0];return t?this.$i18nt(t.transkey,t.name):this.$i18nt("gd.flow.approval.CcByTip","\u8BF7\u9009\u62E9\u6284\u9001\u4EBA")},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...chartbi.mapGetters(["language","tableLists"])},methods:{lookupSeled(i){this.record.properties.transkey||this.$emit("addTransKey",i.name);let t=[];i.langs.forEach(s=>{t.push({name:s.languagename,val:s.description,code:s.languagecode})}),this.ruleFormData=Object.assign({...this.ruleFormData},{name:i.defaulttext,langs:t,transkey:i.name}),this.record.properties.transkey=i.name,this.record.properties.langs=t},delMwnber(i){let t=this.seeList.filter(s=>s!=i);this.seeList=[...t]},selMenbers(i){this.seeList=[...i]},addMember(){this.$refs.menbers.init(this.seeList)},sbumit(){this.$refs.ruleForm.validate(i=>{if(i){if(this.assigneeType==""){this.$message.error("\u8BF7\u9009\u62E9\u6284\u9001\u65B9\u5F0F");return}if(this.assigneeType==1&&this.seeList.length==0){this.$message.error("\u8BF7\u6DFB\u52A0\u6210\u5458\uFF01");return}let t=[];this.seeList.forEach(a=>{t.push(a.id)});let s={assigneeType:this.assigneeType,approvers:this.assigneeType==1?[...t]:[],transkey:this.ruleFormData.transkey,langs:this.ruleFormData.langs};this.record.err=!1,this.record.name=this.ruleFormData.name,this.record.properties={...s},this.onClose()}})},see(){if(this.visible=!0,this.confirmLoading){setTimeout(()=>{this.see()},200);return}let i={...this.record.properties},t=[],s=[];const a=l=>(l=l.filter((n,o)=>(n.children&&n.children.length>0&&(n.children=a(n.children)),n.type==2&&i.approvers.includes(n.id)&&s.push(n),!0)),l);a(this.menberList),i.approvers.forEach(l=>{s.forEach(n=>{n.id==l&&t.push(n)})}),this.$nextTick(()=>{setTimeout(()=>{this.seeList=[...t],this.assigneeType=i.assigneeType;let l=i.langs?i.langs:[];this.ruleFormData={name:this.record.name,transkey:i.transkey?i.transkey:null,langs:i.transkey?[]:l}},0)})},selType(i){this.$emit("addType",i,this.index)},del(){this.$emit("delItem",this.index)},onClose(){this.visible=!1},getDictionary(i){return this.$options.filters.dictData(i)}},created(){}};var _sfc_render$2Z=function(){var t=this,s=t._self._c;return s("div",{staticClass:"steps"},[s("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getAuditorType}},[s("div",{attrs:{slot:"reference"},slot:"reference"},[s("div",{staticClass:"start-t line1"},[t._v(t._s(t.getName))]),s("div",{staticClass:"start-b"},[s("div",{staticClass:"title line1"},[t._v(t._s(t.getAuditorType))]),s("i",{staticClass:"el-icon-arrow-right icon"})]),s("i",{staticClass:"el-icon-close close",on:{click:function(a){return a.stopPropagation(),t.del.apply(null,arguments)}}})])]),t.record.err?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.approval.replenishData","\u8BF7\u8865\u5145\u6570\u636E")))])]),s("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),s("ConnectDesigner",{attrs:{type:t.type,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(a){t.visible=a}}},[s("template",{slot:"title"},[s("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[s("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.approval.ccInformation","\u6284\u9001\u4EBA\u4FE1\u606F")))])])]),s("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName"),prop:"name"}},[t.visible&&!t.ruleFormData.transkey?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:3},on:{lookupSeled:t.lookupSeled}}):t.visible&&t.ruleFormData.transkey?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1)],1),s("el-divider"),s("div",{staticStyle:{margin:"12px 0"}},[s("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.assigneeType,callback:function(a){t.assigneeType=a},expression:"assigneeType"}},t._l(t.getDictionary("table_flows_ccmode"),function(a,l){return s("el-radio",{key:a.code,style:t.radioStyle,attrs:{label:a.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])}),1)],1),s("el-divider"),t.assigneeType==1?s("div",{staticClass:"member"},[s("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.addMembers","\u6DFB\u52A0\u6210\u5458"))+" "),s("span",[t._v(t._s(t.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458")))])]),s("div",{staticClass:"b"},[t._l(t.seeList,function(a,l){return[a.type==2?s("div",{staticClass:"item fl"},[t.disabled?t._e():s("i",{staticClass:"el-icon-circle-close cuo",on:{click:function(n){return t.delMwnber(a)}}}),s("img",{staticClass:"imgs",attrs:{src:__$_require_e8adeb72__}}),s("div",{staticClass:"name line1"},[t._v(t._s(a.name))])]):t._e()]}),t.disabled?t._e():s("div",{staticClass:"item fl"},[s("div",{staticClass:"jia",on:{click:t.addMember}},[s("i",{staticClass:"el-icon-plus icon"})])])],2)]):t._e()],1),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),s("Menbers",{ref:"menbers",attrs:{menberList:t.menberList},on:{ok:t.selMenbers}})],1)},_sfc_staticRenderFns$2Z=[],__component__$2Z=chartbi.normalizeComponent(_sfc_main$2Z,_sfc_render$2Z,_sfc_staticRenderFns$2Z,!1,null,"8010a5d0",null,null);const StepsDesigner=__component__$2Z.exports,index_vue_vue_type_style_index_0_scoped_7ec15f15_lang="",_sfc_main$2Y={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},type:{type:String,default:"step"},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},settingsData:{type:Object,default:()=>{}}},data(){return{defaultValue:"1",radioStyle:{display:"block",height:"30px",lineHeight:"30px"},visible:!1,list:[],tableNameData:[],relevantData:[],fetching:!1,subIndex:0,confirmLoading:!1,fieldList:[],codeList:[],managerLevel:"1",counterSign:"1",tableName:"",seeList:[],seeList1:[],assigneeType:"",tableRelationData:[],autoApprvalType:"0",optionSign:"1",atureSign:"1",optionallowCC:"1",optionShow:!1,atureShow:!1,allowccShow:!1,checkedValues:[],options:[{label:"\u5141\u8BB8\u9000\u56DE",value:"1"},{label:"\u81EA\u52A8\u6284\u9001",value:"2"},{label:"\u8F6C\u5BA1\u8303\u56F4",value:"3"},{label:"\u52A0\u5BA1\u8303\u56F4",value:"4"}],allowAddSignature:!0,allowCC:!0,allowReturn:!0,allowTransfer:!0,sendModel:!0,showEditTrans:!1,showEdit:!1,showEditSign:!1,rejectModel:!0,maskList:[],turretList:[],endorseList:[],id:"1",rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{}}},components:{ConnectDesigner,AttributesDesigner,Menbers},computed:{languageMessages(){return this.$i18n.messages},getTransKey(){let i=this.tableLists.filter(l=>l.id==this.codeGenId)[0],s=`SFOA_N${i===void 0?"":`_${i.tablename}`}_${chartbi.uuid(8)}`,a=[];for(let l in this.languageMessages)a.push({name:chartbi.transKeyCodeName(l),val:this.ruleFormData.name,code:l});return JSON.stringify({name:s,langs:a})},getName(){let i=this.record.name;if(this.record.properties.langs&&this.record.properties.langs.length>0){let t=this.record.properties.langs.filter(s=>s.code==this.language)[0];i=t===void 0?i:t.val}else this.record.properties.transkey&&(i=this.$i18nt(`Dynamics.${this.record.properties.transkey}`,i));return i},apprvalTypeErr(){return this.tasksAutoApprovalList.filter(t=>t.disabled).filter(t=>t.code==this.autoApprvalType)[0]!==void 0},tasksAutoApprovalList(){let i=this.getDictionary("table_Tasks_autoApproval"),t=this.getDictionary("table_flows_autoApproval");if(!this.settingsData.data)return i;let s=this.settingsData.data.autoApprovalType,a=t.filter(o=>o.code==String(s))[0];if(a===void 0)return i;let l=a.remark?a.remark.split("#"):[],n=a.remark?l[l.length-1].split(","):[];return i.map(o=>(o.disabled=!n.includes(o.code),o))},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getAuditorType(){let t=this.getDictionary("table_flows_mode").filter(a=>a.code==this.record.properties.assigneeType)[0];return t?this.$i18nt(t.transkey,t.name):this.$i18nt("gd.flow.approval.approverInformationTip","\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA")},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...chartbi.mapGetters(["language","tableLists"])},methods:{lookupSeled(i){this.record.properties.transkey||this.$emit("addTransKey",i.name);let t=[];i.langs.forEach(s=>{t.push({name:s.languagename,val:s.description,code:s.languagecode})}),this.ruleFormData=Object.assign({...this.ruleFormData},{name:i.defaulttext,langs:t,transkey:i.name}),console.log(i),this.record.properties.transkey=i.name,this.record.properties.langs=t},returnClick(i){this.sendModel=i},rejectClick(i){this.rejectModel=i},onChange(i){i==!0?(this.allowccShow=!0,this.optionallowCC="1"):i==!1&&(this.allowccShow=!1,this.optionallowCC=""),this.maskList=[],this.showEdit=!1,this.allowCC=i},onChange1(i){i==!0?(this.atureShow=!0,this.atureSign="1"):(this.atureShow=!1,this.atureSign=""),this.turretList=[],this.showEditTrans=!1,this.allowTransfer=i},onChange2(i){i==!0?(this.optionShow=!0,this.optionSign="1"):(this.optionShow=!1,this.optionSign=""),this.endorseList=[],this.showEditSign=!1,this.allowAddSignature=i},edit(){this.id=2,this.$refs.menbers.init(this.maskList,this.id)},editSign(){this.id=3,this.$refs.menbers.init(this.turretList,this.id)},editCC(){this.id=4,this.$refs.menbers.init(this.endorseList,this.id)},radioCC(i){i==2?this.showEdit=!0:(this.showEdit=!1,this.maskList=[]),this.optionallowCC=i},radioTrans(i){i=="2"?this.showEditTrans=!0:(this.showEditTrans=!1,this.turretList=[]),this.atureSign=i},radioSign(i){i=="2"?this.showEditSign=!0:(this.showEditSign=!1,this.endorseList=[]),this.optionSign=i},delField(i){let t=[...this.fieldList];t.splice(i,1),this.fieldList=[...t],this.$nextTick(()=>{setTimeout(()=>{t.forEach((s,a)=>{let l=this.filteredOptions(s),n=this.codeList.filter(o=>!l.includes(o.columnname));t[a].codelist=n}),this.fieldList=[...t]},0)})},changeCode(i,t){this.$nextTick(()=>{setTimeout(()=>{let s=[...this.fieldList];s.forEach((a,l)=>{let n=this.filteredOptions(a),o=this.codeList.filter(r=>!n.includes(r.columnname));s[l].codelist=o}),this.fieldList=[...s]},0)})},addField(){if(this.fieldList.length<this.codeList.length){let i=[...this.fieldList],t=this.filteredOptions({columnname:""}),s={columnname:"",codeList:this.codeList.filter(a=>!t.includes(a.columnname))};i.push(s),this.fieldList=[...i]}},filteredOptions(i){let t=[];if(this.fieldList.forEach((s,a)=>{s.columnname!==""&&t.push(s.columnname)}),t.includes(i.columnname)){let s=t.indexOf(i.columnname);t.splice(s,1)}return t},delMwnber(i){let t=this.seeList.filter(s=>s!=i);this.seeList=[...t]},delMask(i,t){if(t==1){let s=this.maskList.filter(a=>a!=i);this.maskList=[...s]}else if(t==2){let s=this.turretList.filter(a=>a!=i);this.turretList=[...s]}else if(t==3){let s=this.endorseList.filter(a=>a!=i);this.endorseList=[...s]}},selMenbers(i,t){t==1?this.seeList=[...i]:t==2?this.maskList=[...i]:t==3?this.turretList=[...i]:t==4?this.endorseList=[...i]:t==5&&(this.seeList1=[...i])},addMember(){this.id=1,this.$refs.menbers.init(this.seeList,this.id)},delMwnber1(i){let t=this.seeList1.filter(s=>s!=i);this.seeList1=[...t]},addMember1(){this.id=5,this.$refs.menbers.init(this.seeList1,this.id)},changeMode(i){this.managerLevel="1",this.counterSign="1",this.tableName="",this.seeList=[],this.fieldList=[],this.maskList=[],this.endorseList=[],this.turretList=[],this.seeList1=[]},selectTable(i){this.codeList=[],this.fieldList=[],this.getFiledList(i)},async init(){this.confirmLoading=!0;let i=await this.codeGenerateList(""),t=await this.codeGeneratefkList();this.tableNameData=[...i.data],t.data.map(s=>{let a=i.data.filter(l=>l.tablename==s.fkentityname)[0];return s.busname=a===void 0?"--":a.busname,s.tablebame=s.fkentityname,s.transkeytable=a===void 0?null:a.transkey?a.transkey:null,s.currenttableId=a===void 0?"--":a.id,s}),this.tableRelationData=[...t.data],this.confirmLoading=!1},async searchTable(i){this.fetching=!0,this.tableNameData=[];let t=await this.codeGenerateList(i);this.tableNameData=[...t.data],this.fetching=!1},codeGeneratefkList(){return messages.codeGeneratefkList({tableId:this.codeGenId}).then(i=>i)},codeGenerateList(i){return messages.codeGenerateInformationList({busName:i}).then(t=>t)},onlineFkTableList(){return messages.onlineFormGetFkTableList({tableId:this.codeGenId}).then(i=>i)},getFiledList(i){let t=this.tableRelationData.filter(s=>s.id==i)[0].currentTableId;messages.onlineFormGetCodeGenerateList({codeGenId:t}).then(s=>{s.data.map(l=>(l.children=null,l));let a=s.data.filter(l=>!(l.effecttype=="about"&&l.columnname===(l.relations+"_AboutTable").toLowerCase()));this.codeList=[...a]})},getFiledFilter(){let i=this.tableNameData.filter(t=>t.tablename==this.record.properties.tableName)[0];i!=null&&(this.confirmLoading=!0,messages.onlineFormGetCodeGenerateList({codeGenId:i.id}).then(t=>{t.data.map(l=>(l.children=null,l));let s=t.data.filter(l=>!(l.effectType=="about"&&l.columnname===(l.relations+"_AboutTable").toLowerCase()));this.codeList=[...s];let a=[];this.record.properties.tableFields.forEach(l=>{let n=this.record.properties.tableFields.filter(d=>d!=l),o=s.filter(d=>!n.includes(l)),r={columnname:l,codelist:o};a.push(r)}),this.fieldList=[...a],this.confirmLoading=!1}))},sbumit(){this.$refs.ruleForm.validate(i=>{if(i){if(console.log(this.assigneeType),this.assigneeType==""){this.$message.error(this.$i18nt("gd.flow.approval.approvalMethodTip","\u8BF7\u9009\u62E9\u5BA1\u6279\u65B9\u5F0F"));return}if(this.assigneeType==1&&this.seeList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}if(this.assigneeType==6&&this.seeList1.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersHead","\u8BF7\u6DFB\u52A0\u90E8\u95E8"));return}if(this.assigneeType==5&&this.fieldList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addFieldTip","\u8BF7\u6DFB\u52A0\u8868\u5B57\u6BB5\u6570\u636E"));return}if(this.assigneeType==5&&!this.isChecked()){this.$message.error(this.$i18nt("gd.flow.approval.replenishData","\u8BF7\u8865\u5145\u6570\u636E"));return}if((this.assigneeType==3||this.assigneeType==4)&&this.apprvalTypeErr){this.$message.error(this.$i18nt("gd.flow.approval.autoApprvalErr","\u9009\u9879\u5DF2\u7981\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"));return}if(this.optionallowCC==2&&this.maskList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}if(this.atureSign==2&&this.turretList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}if(this.optionSign==2&&this.endorseList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}let t=[];this.fieldList.filter(p=>{t.push(p.columnName)});let s=[];this.seeList.forEach(p=>{s.push(p.id)});let a=[];this.maskList.forEach(p=>{a.push(p.id)});let l=[];this.turretList.forEach(p=>{l.push(p.id)});let n=[];this.endorseList.forEach(p=>{n.push(p.id)});let o=[];this.seeList1.forEach(p=>{o.push(p.id)}),this.record.err=!1;let r=this.tableRelationData.filter(p=>p.id==this.tableName)[0],d=this.tableNameData.filter(p=>p.id==this.codeGenId)[0],u={assigneeType:this.assigneeType,managerLevel:this.managerLevel,counterSign:this.counterSign,tableName:r===void 0?"":r.fkentityname,approvers:s,currentTableName:d.tablename,currentFieldName:r===void 0?"":r.columnname,tableFields:t,autoApprvalType:this.autoApprvalType,businessUnitId:o.join(),allowReturn:this.sendModel,allowTransfer:this.allowTransfer,allowAddSignature:this.allowAddSignature,allowCC:this.allowCC,showreject:this.rejectModel,allowccShow:this.allowccShow,optionallowCC:this.optionallowCC,CCApprovers:a,transferApprovers:l,atureShow:this.atureShow,atureSign:this.atureSign,addSignatureApprovers:n,optionShow:this.optionShow,optionSign:this.optionSign,transkey:this.ruleFormData.transkey,langs:this.ruleFormData.langs};this.record.name=this.ruleFormData.name,this.record.properties={...u},console.log(u,"properties"),this.onClose()}})},isChecked(i){return this.fieldList.every((t,s,a)=>!(t.columnname==null||t.columnname==""))},see(){if(this.visible=!0,this.confirmLoading){setTimeout(()=>{this.see()},200);return}let i={...this.record.properties};console.log(this.record,"this.record");let t=[],s=[],a=[],l=[],n=[],o=[],r=[],d=[],u=[];const p=h=>(h=h.filter((f,m)=>(f.children&&f.children.length>0&&(f.children=p(f.children)),f.type==2&&i.approvers.includes(f.id)&&s.push(f),i.CCApprovers!==void 0&&f.type==2&&i.CCApprovers.includes(f.id)&&a.push(f),i.transferApprovers!==void 0&&f.type==2&&i.transferApprovers.includes(f.id)&&n.push(f),i.addSignatureApprovers!==void 0&&f.type==2&&i.addSignatureApprovers.includes(f.id)&&r.push(f),i.businessUnitId!==void 0&&f.type==1&&i.businessUnitId==f.id&&u.push(f),!0)),h);p(this.menberList),i.approvers.forEach(h=>{s.forEach(f=>{f.id==h&&t.push(f)})}),i.CCApprovers&&i.CCApprovers.forEach(h=>{a.forEach(f=>{f.id==h&&l.push(f)})}),i.transferApprovers&&i.transferApprovers.forEach(h=>{n.forEach(f=>{f.id==h&&o.push(f)})}),i.addSignatureApprovers&&i.addSignatureApprovers.forEach(h=>{r.forEach(f=>{f.id==h&&d.push(f)})}),this.$nextTick(()=>{setTimeout(()=>{let h=i.autoApprvalType===void 0?"0":i.autoApprvalType;this.tasksAutoApprovalList.filter(g=>!g.disabled).filter(g=>g.code==h)[0];let m=this.tableRelationData.filter(g=>g.columnname==i.currentFieldName)[0];this.assigneeType=i.assigneeType,this.managerLevel=i.managerLevel,this.autoApprvalType=h,this.counterSign=i.counterSign,this.tableName=m==null?"":m.id,this.seeList=[...t],this.seeList1=[...u],this.sendModel=i.allowReturn,this.allowTransfer=i.allowTransfer,this.allowAddSignature=i.allowAddSignature,this.allowCC=i.allowCC,this.rejectModel=i.showreject,this.maskList=[...l],this.allowccShow=i.allowccShow,this.optionallowCC=i.optionallowCC,this.turretList=[...o],this.atureShow=i.atureShow,this.atureSign=i.atureSign,this.endorseList=[...d],this.optionShow=i.optionShow,this.optionSign=i.optionSign,this.atureSign=="2"?this.showEditTrans=!0:this.showEditTrans=!1,this.optionallowCC=="2"?this.showEdit=!0:this.showEdit=!1,this.optionSign=="2"?this.showEditSign=!0:this.showEditSign=!1;let y=i.langs?i.langs:[];this.ruleFormData={name:this.record.name,transkey:i.transkey?i.transkey:null,langs:i.transkey?[]:y},this.$refs.gdTranslation&&this.$refs.gdTranslation.init(),i.tableName&&this.codeList.length==0&&this.getFiledFilter()},0)})},selType(i){this.$emit("addType",i,this.index)},del(){this.$emit("delItem",this.index)},onClose(){this.visible=!1},getDictionary(i){return this.$options.filters.dictData(i)},doEvent(i){let t=i.item.functionName;this[t]()}},created(){this.init()}};var _sfc_render$2Y=function(){var t=this,s=t._self._c;return s("div",{staticClass:"steps"},[s("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getAuditorType}},[s("div",{attrs:{slot:"reference"},slot:"reference"},[s("div",{staticClass:"start-t line1"},[t._v(t._s(t.getName))]),s("div",{staticClass:"start-b"},[s("div",{staticClass:"title line1"},[t._v(t._s(t.getAuditorType))]),s("i",{staticClass:"el-icon-arrow-right icon"})]),s("i",{staticClass:"el-icon-close close",on:{click:function(a){return a.stopPropagation(),t.del.apply(null,arguments)}}})])]),t.record.err?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.approval.replenishData","\u8BF7\u8865\u5145\u6570\u636E")))])]),s("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),s("ConnectDesigner",{attrs:{type:t.type,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(a){t.visible=a}}},[s("template",{slot:"title"},[s("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[s("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.approval.approverInformation","\u5BA1\u6279\u4EBA\u4FE1\u606F")))])])]),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[s("el-form",{ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[t.visible&&!t.ruleFormData.transkey?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:3},on:{lookupSeled:t.lookupSeled}}):t.visible&&t.ruleFormData.transkey?s("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1)],1),s("div",{staticStyle:{"margin-bottom":"12px"}},[s("el-radio-group",{attrs:{disabled:t.disabled},on:{change:t.changeMode},model:{value:t.assigneeType,callback:function(a){t.assigneeType=a},expression:"assigneeType"}},t._l(t.getDictionary("table_flows_mode"),function(a,l){return s("el-radio",{key:a.code,style:t.radioStyle,attrs:{label:a.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])}),1)],1),s("el-divider"),t.assigneeType==1?s("div",{staticClass:"member"},[s("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.addMembers","\u6DFB\u52A0\u6210\u5458"))+" "),s("span",[t._v(t._s(t.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458")))])]),s("div",{staticClass:"b"},[t._l(t.seeList,function(a,l){return[a.type==2?s("div",{staticClass:"item fl"},[t.disabled?t._e():s("i",{staticClass:"el-icon-circle-close cuo",on:{click:function(n){return t.delMwnber(a)}}}),s("img",{staticClass:"imgs",attrs:{src:__$_require_e8adeb72__}}),s("div",{staticClass:"name line1"},[t._v(t._s(a.name))])]):t._e()]}),t.disabled?t._e():s("div",{staticClass:"item fl"},[s("div",{staticClass:"jia",on:{click:t.addMember}},[s("i",{staticClass:"el-icon-plus icon"})])])],2),t.seeList.length>1?s("div",[s("el-divider",{staticStyle:{margin:"12px 0"}}),s("div",{staticClass:"t"},[t._v(t._s(t.$i18nt("gd.flow.approval.personsApproval","\u591A\u4EBA\u5BA1\u6279\u65B9\u5F0F")))]),s("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.counterSign,callback:function(a){t.counterSign=a},expression:"counterSign"}},[s("el-radio",{style:t.radioStyle,attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.orSignature","\u6216\u7B7E\uFF08 \u4E00\u540D\u6210\u5458\u540C\u610F\u5373\u53EF \uFF09"))+" ")]),s("el-radio",{style:t.radioStyle,attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.jointlySign","\u4F1A\u7B7E\uFF08 \u987B\u6240\u6709\u6210\u5458\u540C\u610F \uFF09"))+" ")])],1)],1):t._e()]):t.assigneeType==2||t.assigneeType==3?[t.assigneeType==3?s("div",{staticClass:"member"},[s("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.autoApproval","\u81EA\u52A8\u5BA1\u6279"))+" "),t.apprvalTypeErr?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.approval.autoApprvalErr","\u9009\u9879\u5DF2\u7981\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")))])]),s("i",{staticClass:"el-icon-warning-outline",staticStyle:{color:"#f56c6c","font-size":"18px"}})]):t._e()],1),s("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.autoApprvalType,callback:function(a){t.autoApprvalType=a},expression:"autoApprvalType"}},t._l(t.tasksAutoApprovalList,function(a,l){return s("el-radio",{key:l,style:t.radioStyle,attrs:{label:a.code,disabled:a.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])}),1)],1):t._e(),s("div",{staticClass:"member"},[s("div",{staticClass:"t"},[t._v(" "+t._s(t.assigneeType==2?t.$i18nt("gd.flow.approval.designatedLevel","\u6307\u5B9A\u5C42\u7EA7"):t.$i18nt("gd.flow.approval.endPoint","\u6307\u5B9A\u7EC8\u70B9"))+" ")]),s("el-row",{staticStyle:{margin:"12px 0"},attrs:{gutter:24}},[s("el-col",{attrs:{span:8}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.defaultValue,callback:function(a){t.defaultValue=a},expression:"defaultValue"}},[s("el-option",{attrs:{value:"1",label:t.$i18nt("gd.flow.approval.bottomUp","\u4ECE\u4E0B\u81F3\u4E0A")}})],1)],1),s("el-col",{attrs:{span:12}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:t.managerLevel,callback:function(a){t.managerLevel=a},expression:"managerLevel"}},t._l(t.getDictionary("table_flows_pid"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),s("div",{staticClass:"tip"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.bottomUpTip","\u4ECE\u4E0B\u81F3\u4E0A\u6307\u4EE5\u7533\u8BF7\u4EBA\u7684\u76F4\u5C5E\u4E0A\u7EA7\u4E3A\u7B2C\u4E00\u7EA7\uFF0C\u5411\u66F4\u9AD8\u5C42\u7EA7\u9012\u589E"))+" ")])],1)]:t.assigneeType==4?[s("div",{staticClass:"member"},[s("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.autoApproval","\u81EA\u52A8\u5BA1\u6279"))+" "),t.apprvalTypeErr?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("template",{slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.approval.autoApprvalErr","\u9009\u9879\u5DF2\u7981\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")))])]),s("i",{staticClass:"el-icon-warning-outline",staticStyle:{color:"#f56c6c","font-size":"18px"}})],2):t._e()],1),s("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.autoApprvalType,callback:function(a){t.autoApprvalType=a},expression:"autoApprvalType"}},t._l(t.tasksAutoApprovalList,function(a,l){return s("el-radio",{key:l,style:t.radioStyle,attrs:{label:a.code,disabled:a.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])}),1)],1),s("div",{staticClass:"member"},[s("div",{staticClass:"t"},[t._v(t._s(t.$i18nt("gd.flow.approval.endPoint","\u6307\u5B9A\u7EC8\u70B9")))]),s("el-row",{staticStyle:{margin:"12px 0"},attrs:{gutter:24}},[s("el-col",{attrs:{span:8}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.defaultValue,callback:function(a){t.defaultValue=a},expression:"defaultValue"}},[s("el-option",{attrs:{value:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.bottomUp","\u4ECE\u4E0B\u81F3\u4E0A"))+" ")])],1)],1),s("el-col",{attrs:{span:12}},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:t.managerLevel,callback:function(a){t.managerLevel=a},expression:"managerLevel"}},t._l(t.getDictionary("table_flows_director"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1)]:t.assigneeType==5?s("div",{staticClass:"member"},[s("div",{staticClass:"t"},[t._v(t._s(t.$i18nt("gd.flow.approval.associatedMembers","\u5173\u8054\u6210\u5458\u63A7\u4EF6")))]),s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.businessTable","\u4E1A\u52A1\u5DE5\u5355\u5173\u8054\u8868"),required:!0}},[s("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",disabled:t.disabled},on:{change:t.selectTable},model:{value:t.tableName,callback:function(a){t.tableName=a},expression:"tableName"}},t._l(t.tableRelationData,function(a,l){return s("el-option",{key:l,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkeytable}`,a.busame)}},[s("span",[s("span",{staticClass:"active-color"},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkeytable}`,a.busname))+" ")]),t._v(" "+t._s(a.tablename)+" "),s("span",{staticClass:"active-color",staticStyle:{padding:"0 4px 0 4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" ")]),t._v(" "+t._s(a.columnName)+" ")])])}),1)],1)],1),t.fieldList.length>0?s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.develop.table.field","\u5B57\u6BB5"),required:!0}},t._l(t.fieldList,function(a,l){return s("el-row",{key:l,attrs:{gutter:24}},[s("el-col",{attrs:{span:20}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",filterable:"",disabled:t.disabled},on:{change:function(n){return t.changeCode(n,l)}},model:{value:a.columnname,callback:function(n){t.$set(a,"columnname",n)},expression:"item.columnname"}},t._l(a.codelist,function(n,o){return s("el-option",{key:o,attrs:{value:n.columnname,label:t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment)}},[s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.columncomment))+" "+t._s(n.columnName)+" ")])])}),1)],1),s("el-col",{attrs:{span:4}},[t.disabled?t._e():s("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"16px",color:"#ff4d4f",cursor:"pointer"},on:{click:function(n){return t.delField(l)}}})])],1)}),1)],1):t._e(),t.tableName!=null?s("el-col",{attrs:{span:24}},[t.disabled?t._e():s("div",{staticClass:"add"},[s("a",{on:{click:t.addField}},[t._v(t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0")))])])]):t._e()],1),s("el-divider",{staticStyle:{margin:"12px 0"}}),t.fieldList.length>1?s("div",[s("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.personsApproval","\u591A\u4EBA\u5BA1\u6279\u65B9\u5F0F"))+" "),s("span",[t._v(t._s(t.$i18nt("gd.flow.approval.associatedMembersTip","\u8BE5\u6210\u5458\u63A7\u4EF6\u4E3A\u591A\u9009")))])]),s("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.counterSign,callback:function(a){t.counterSign=a},expression:"counterSign"}},[s("el-radio",{style:t.radioStyle,attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.orSignature","\u6216\u7B7E\uFF08 \u4E00\u540D\u6210\u5458\u540C\u610F\u5373\u53EF \uFF09"))+" ")]),s("el-radio",{style:t.radioStyle,attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.jointlySign","\u4F1A\u7B7E\uFF08 \u987B\u6240\u6709\u6210\u5458\u540C\u610F \uFF09"))+" ")])],1)],1):t._e()],1):t.assigneeType==6?s("div",{staticClass:"member"},[s("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.departmentHead","\u6DFB\u52A0\u90E8\u95E8"))+" "),s("span",[t._v(t._s(t.$i18nt("gd.flow.approval.addMembersHead","\u8BF7\u6DFB\u52A0\u90E8\u95E8")))])]),s("div",{staticClass:"b"},[t._l(t.seeList1,function(a,l){return[a.type==1?s("div",{staticClass:"item fl"},[t.disabled?t._e():s("i",{staticClass:"el-icon-circle-close cuo",on:{click:function(n){return t.delMwnber1(a)}}}),s("img",{staticClass:"imgs",attrs:{src:__$_require_e8adeb72__}}),s("div",{staticClass:"name line1"},[t._v(t._s(a.name))])]):t._e()]}),t.disabled?t._e():s("div",{staticClass:"item fl"},[s("div",{staticClass:"jia",on:{click:t.addMember1}},[s("i",{staticClass:"el-icon-plus icon"})])])],2)]):t._e()],2),t.fieldList.length>1?s("el-divider"):t._e(),s("div",{staticStyle:{"line-height":"30px"}},[s("div",{staticClass:"div-checkboox"},[s("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(a){return t.returnClick(a)}},model:{value:t.sendModel,callback:function(a){t.sendModel=a},expression:"sendModel"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowReturn","\u9000\u56DE"))+" ")]),s("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentReturn","\u662F\u5426\u5141\u8BB8\u8282\u70B9\u5BA1\u6279\u4EBA\u5C06\u6D41\u7A0B\u9000\u56DE\u5230\u5386\u53F2\u8282\u70B9")}},[s("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})])],1),s("div",{staticClass:"div-checkboox"},[s("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(a){return t.rejectClick(a)}},model:{value:t.rejectModel,callback:function(a){t.rejectModel=a},expression:"rejectModel"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowRreject","\u9A73\u56DE"))+" ")]),s("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.showReject","\u662F\u5426\u5141\u8BB8\u8282\u70B9\u5BA1\u6279\u4EBA\u5C06\u6D41\u7A0B\u9A73\u56DE\u5230\u63D0\u4EA4\u4EBA(\u6D41\u7A0B\u4F5C\u5E9F)")}},[s("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})])],1),s("div",{staticClass:"div-checkboox"},[s("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(a){return t.onChange(a)}},model:{value:t.allowCC,callback:function(a){t.allowCC=a},expression:"allowCC"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowCC"))+" ")]),s("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentCC","\u662F\u5426\u5141\u8BB8\u5C06\u5F53\u524D\u5BA1\u6279\u7ED3\u679C\u53D1\u9001\u7ED9\u6307\u5B9A\u4EBA\u5458")}},[s("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})]),s("div",{staticClass:"rectangle"},[s("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:t.allowccShow,expression:"allowccShow"}],attrs:{name:"radioGroup",disabled:t.disabled},on:{change:t.radioCC},model:{value:t.optionallowCC,callback:function(a){t.optionallowCC=a},expression:"optionallowCC"}},[s("el-radio",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionalCC","\u4E0D\u9650\u8303\u56F4"))+" ")]),s("el-radio",{attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionaAssign","\u6307\u5B9A\u8303\u56F4"))+" ")])],1),s("a",{directives:[{name:"show",rawName:"v-show",value:t.showEdit,expression:"showEdit"}],staticClass:"question",on:{click:t.edit}},[t._v(t._s(t.$i18nt("gd.develop.teamSharing.edit","\u4FEE\u6539")))]),s("div",{staticClass:"b"},[t._l(t.maskList.slice(0,5),function(a,l){return[a.type==2?s("div",{staticClass:"item fl"},[s("div",{staticClass:"name line1"},[s("i",{staticClass:"iconfont icon-renwu-ren",attrs:{slot:"dot"},slot:"dot"}),s("span",[t._v(t._s(a.name))]),t.disabled?t._e():s("i",{staticClass:"el-icon-close cuo",on:{click:function(n){return t.delMask(a,1)}}})])]):t._e()]}),t.maskList.length>=3?s("div",{staticClass:"item fl"},[s("i",{staticClass:"el-icon-more shlh"})]):t._e()],2)],1)],1),s("div",{staticClass:"div-checkboox"},[s("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(a){return t.onChange1(a)}},model:{value:t.allowTransfer,callback:function(a){t.allowTransfer=a},expression:"allowTransfer"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowTransfer","\u8F6C\u5BA1"))+" ")]),s("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentTrans","\u662F\u5426\u5141\u8BB8\u5BA1\u6279\u4EBA\u5C06\u5BA1\u6279\u4EFB\u52A1\u8F6C\u7ED9\u6307\u5B9A\u4EBA\u5458")}},[s("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})]),s("div",{staticClass:"rectangle"},[s("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:t.atureShow,expression:"atureShow"}],attrs:{name:"radioGroup",disabled:t.disabled},on:{change:t.radioTrans},model:{value:t.atureSign,callback:function(a){t.atureSign=a},expression:"atureSign"}},[s("el-radio",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionalCC","\u4E0D\u9650\u8303\u56F4"))+" ")]),s("el-radio",{attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionaAssign","\u6307\u5B9A\u8303\u56F4"))+" ")])],1),s("a",{directives:[{name:"show",rawName:"v-show",value:t.showEditTrans,expression:"showEditTrans"}],staticClass:"question",on:{click:t.editSign}},[t._v(" "+t._s(t.$i18nt("gd.develop.teamSharing.edit","\u4FEE\u6539"))+" ")]),s("div",{staticClass:"b"},[t._l(t.turretList.slice(0,5),function(a,l){return[a.type==2?s("div",{staticClass:"item fl"},[s("div",{staticClass:"name line1"},[s("i",{staticClass:"iconfont icon-renwu-ren",attrs:{slot:"dot"},slot:"dot"}),s("span",[t._v(t._s(a.name))]),t.disabled?t._e():s("i",{staticClass:"el-icon-close cuo",on:{click:function(n){return t.delMask(a,2)}}})])]):t._e()]}),t.turretList.length>=3?s("div",{staticClass:"item fl"},[s("i",{staticClass:"el-icon-more shlh"})]):t._e()],2)],1)],1),s("div",{staticClass:"div-checkboox"},[s("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(a){return t.onChange2(a)}},model:{value:t.allowAddSignature,callback:function(a){t.allowAddSignature=a},expression:"allowAddSignature"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowAddSignature","\u52A0\u7B7E"))+" ")]),s("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentSign","\u662F\u5426\u5141\u8BB8\u5F53\u524D\u5BA1\u6279\u4EBA\u6DFB\u52A0\u6307\u5B9A\u4EBA\u5458\u8FDB\u884C\u5BA1\u6279")}},[s("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})]),s("div",{staticClass:"rectangle"},[s("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:t.optionShow,expression:"optionShow"}],attrs:{name:"radioGroup",disabled:t.disabled},on:{change:t.radioSign},model:{value:t.optionSign,callback:function(a){t.optionSign=a},expression:"optionSign"}},[s("el-radio",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionalCC","\u4E0D\u9650\u8303\u56F4"))+" ")]),s("el-radio",{attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionaAssign","\u6307\u5B9A\u8303\u56F4"))+" ")])],1),s("a",{directives:[{name:"show",rawName:"v-show",value:t.showEditSign,expression:"showEditSign"}],staticClass:"question",on:{click:t.editCC}},[t._v(" "+t._s(t.$i18nt("gd.develop.teamSharing.edit","\u4FEE\u6539"))+" ")]),s("div",{staticClass:"b"},[t._l(t.endorseList.slice(0,5),function(a,l){return[a.type==2?s("div",{staticClass:"item fl"},[s("div",{staticClass:"name line1"},[s("i",{staticClass:"iconfont icon-renwu-ren",attrs:{slot:"dot"},slot:"dot"}),s("span",[t._v(t._s(a.name))]),t.disabled?t._e():s("i",{staticClass:"el-icon-close cuo",on:{click:function(n){return t.delMask(a,3)}}})])]):t._e()]}),t.endorseList.length>=3?s("div",{staticClass:"item fl"},[s("i",{staticClass:"el-icon-more shlh"})]):t._e()],2)],1)],1)])],1),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),s("Menbers",{ref:"menbers",attrs:{menberList:t.menberList},on:{ok:t.selMenbers}})],1)},_sfc_staticRenderFns$2Y=[],__component__$2Y=chartbi.normalizeComponent(_sfc_main$2Y,_sfc_render$2Y,_sfc_staticRenderFns$2Y,!1,null,"7ec15f15",null,null);const StageDesigner=__component__$2Y.exports;function nodeData(i){switch(i){case"circulate":return{type:"circulate",name:"\u6284\u9001\u4EBA",list:[],err:!1,isDelete:!0,properties:{assigneeType:"",approvers:[],transkey:null}};case"approver":return{type:"approver",name:"\u5BA1\u6279\u4EBA",list:[],err:!1,isDelete:!0,properties:{assigneeType:"",approveType:"1",approvers:[],tableName:"",currentTableName:"",currentFieldName:"",tableFields:[],managerLevel:"1",counterSign:"1",allowAddSignature:!0,allowCC:!0,allowTransfer:!0,allowReturn:!0,optionShow:!0,atureShow:!0,allowccShow:!0,optionSign:"1",atureSign:"1",optionallowCC:"1",showreject:!0,transkey:null}};case"condition":return{type:"condition",list:[{type:"if",name:"\u65B0\u5EFA\u6761\u4EF6",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1},{type:"else",name:"ELSE",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1}],isDelete:!0};case"parallel":return{type:"parallel",name:"\u5E76\u884C",list:[{type:"parallelNode",name:"\u65B0\u5EFA\u5E76\u884C",list:[],properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},err:!1},{type:"parallelNode",name:"\u65B0\u5EFA\u5E76\u884C",list:[],properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},err:!1}],err:!1,isDelete:!0}}}const index_vue_vue_type_style_index_0_scoped_fab31d43_lang="",plugFilters$2={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$2X={name:"ParallelDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},settingsData:{type:Object,default:()=>{}},table:{type:Object,default:()=>({})}},data(){return{detail:{},visible:!1,list:{},seeIndex:0,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{listError(){return(this.list.list||[]).length===0},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},styleMode(){return`transform-origin: top left;transform:scale(${.72},${.8});`}},components:{ConnectDesigner,StepsDesigner,StageDesigner,FlowsFilter:system_duplicatechecking.FlowsFilter,ConditionDesigner:()=>Promise.resolve().then(()=>index)},methods:{addTransKey(i){this.$emit("addTransKey",i)},sbumit(){this.$refs.ruleForm.validate(i=>{if(i){let t=this.list.list[0],s=t&&this.list.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.list;this.record.list[this.seeIndex].name=this.ruleFormData.name,this.record.list[this.seeIndex].properties.conditions={...s},this.record.list[this.seeIndex].err=!1,this.onClose()}})},addList(){this.$refs.findFilters.init(this.list)},okFilter(i){this.list={...i}},see(i){console.log(i),this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[i];this.detail=t,this.seeIndex=i;let s=t.properties.conditions,a=Array.isArray(s)?Object.assign({...plugFilters$2},{list:s}):{...s},l=a.pid===null?a.list:[a],n=a.pid===null?a:plugFilters$2,o=Object.assign({...n},{list:l});this.list=o,this.ruleFormData={name:t.name},this.disabled&&this.flowsFilterInit()},0)})},flowsFilterInit(){this.$nextTick(()=>{this.$refs.showMode.initComponents(this.list)})},addCondition(){let i=this.record.list.length,t={type:"parallelNode",name:"\u65B0\u5EFA\u5E76\u884C",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1,transkey:null,id:chartbi.uuid(),pid:this.record.id};this.record.list.splice(i-1,0,t)},selTyped(i,t){let s=nodeData(i);s=Object.assign(s,{pid:this.record.list[t].id,id:chartbi.uuid()}),(s.type=="condition"||s.type=="parallel")&&s.list.map(a=>(a.id=chartbi.uuid(),a.pid=s.id,a)),this.record.list[t].list.splice(0,0,s)},deltransKey(i){this.$emit("deltransKey",i)},async del(i){if(this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list.filter((l,n)=>n!=i);this.record.list=[...t];let s=await this.hasItem([data]).filter(l=>l.transkey),a=[];s.forEach(l=>{a.push(l.transkey)}),a.length!=0&&this.$emit("deltransKey",a)},hasItem(i){let t=[];const s=a=>(a=a.filter((l,n)=>((l.type=="if"||l.type=="elseif"||l.type=="parallelNode")&&(l.list=s(l.list)),(l.type=="condition"||l.type=="parallel")&&l.list.forEach(o=>{o.list=s(o.list)}),(l.type=="circulate"||l.type=="approver")&&(t=t.concat([l]),l.list.length>0&&(t=t.concat(l.list))),!0)),a);return s(i),t},addType(i,t,s){let a=nodeData(i);a=Object.assign(a,{pid:this.record.list[t].id,id:chartbi.uuid()}),(a.type=="condition"||a.type=="parallel")&&a.list.map(l=>(l.id=chartbi.uuid(),l.pid=a.id,l)),this.record.list[t].list.splice(s+1,0,a)},async delChildItem(i,t,s){let a=this.record.list[t].list.filter((o,r)=>r!=i);this.record.list[t].list=[...a];let l=await this.hasItem([data]).filter(o=>o.transkey),n=[];l.forEach(o=>{n.push(o.transkey)}),n.length!=0&&this.$emit("deltransKey",n)},selType(i){this.$emit("addType",i,this.index)},onClose(){this.visible=!1}}};var _sfc_render$2X=function(){var t=this,s=t._self._c;return s("div",{staticClass:"condition"},[s("div",{staticClass:"condition-t"},[s("div",{staticClass:"condition-add"},[s("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addParallel","\u6DFB\u52A0\u5E76\u884C"))+" ")])],1),t._l(t.record.list,function(a,l){return s("div",{key:l,staticClass:"condition-item"},[l==0?s("div",{staticClass:"condition-bot-left"}):t._e(),l==0?s("div",{staticClass:"condition-top-left"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-bot-right"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-top-right"}):t._e(),s("div",{staticClass:"condition-node"},[s("div",{staticClass:"condition-body",class:a.err?"condition-err":"",on:{click:function(n){return t.see(l)}}},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:a.name}},[s("div",{attrs:{slot:"reference"},slot:"reference"},[s("div",{staticClass:"condition-bodyt line1"},[t._v(" "+t._s(t.$i18nt("gd.task.parallel","\u5E76\u884C"))+" ")]),s("div",{staticClass:"condition-bodyb"},[s("div",{staticClass:"title line1"},[t._v(t._s(a.name))]),s("i",{staticClass:"el-icon-arrow-right icon"})]),s("i",{staticClass:"el-icon-close close",on:{click:function(n){return n.stopPropagation(),t.del(l)}}})])]),a.err?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.work.supplementConditionsRules","\u8BF7\u8865\u5145\u6761\u4EF6/\u89C4\u5219\uFF01")))])]),s("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),s("ConnectDesigner",{attrs:{type:"condition",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:n=>t.selTyped(n,l)}})],1),t._l(a.list,function(n,o){return s("div",{staticStyle:{position:"relative","z-index":"10"}},[n.type=="approver"?s("StageDesigner",{attrs:{loadData:t.loadData,record:n,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:o,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),addTransKey:t.addTransKey}}):t._e(),n.type=="circulate"?s("StepsDesigner",{attrs:{loadData:t.loadData,record:n,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:o,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),addTransKey:t.addTransKey}}):t._e(),n.type=="condition"?s("ConditionDesigner",{attrs:{record:n,loadData:t.loadData,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),n.type=="parallel"?s("ParallelDesigner",{attrs:{record:n,loadData:t.loadData,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table,type:"condition"},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e()],1)})],2)})],2),s("div",{staticClass:"condition-b"},[s("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{selType:t.selType}})],1),s("el-drawer",{attrs:{placement:"right",visible:t.visible,size:"50%","close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,"custom-class":"gd-drawer-form"},on:{close:t.onClose}},[s("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219")}},[s("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addConditionsRules"))+" ")]),s("div",{staticClass:"tips"},[t.listError?s("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.conditionsRulesTip","\u8BF7\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"error","show-icon":"",closable:!1}}):s("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.addedConditionsRules","\u5DF2\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"success","show-icon":"",closable:!1}})],1)],1)],1)],1)],1),t.visible?s("div",{style:t.styleMode},[s("FlowsFilter",{ref:"showMode",attrs:{table:t.table,type:1,mode:"div",choiceDisabled:!0}})],1):t._e(),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),s("FlowsFilter",{ref:"findFilters",attrs:{table:t.table,type:1,mode:"dialog"},on:{ok:t.okFilter}})],1)},_sfc_staticRenderFns$2X=[],__component__$2X=chartbi.normalizeComponent(_sfc_main$2X,_sfc_render$2X,_sfc_staticRenderFns$2X,!1,null,"fab31d43",null,null);const ParallelDesigner=__component__$2X.exports,index_vue_vue_type_style_index_0_scoped_9cf8e70f_lang="",plugFilters$1={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$2W={name:"ConditionDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},settingsData:{type:Object,default:()=>{}},table:{type:Object,default:()=>({})}},data(){return{detail:{},visible:!1,list:{},rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{listError(){return(this.list.list||[]).length===0},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},styleMode(){return`transform-origin: top left;transform:scale(${.72},${.8});`}},components:{ConnectDesigner,StepsDesigner,StageDesigner,ParallelDesigner,FlowsFilter:system_duplicatechecking.FlowsFilter},methods:{addTransKey(i){this.$emit("addTransKey",i)},sbumit(){this.$refs.ruleForm.validate(i=>{if(i){let t=this.list.list[0],s=t&&this.list.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.list;this.record.list[this.seeIndex].name=this.ruleFormData.name,this.record.list[this.seeIndex].properties.conditions={...s},this.record.list[this.seeIndex].err=!1,this.onClose()}})},addList(){this.$refs.findFilters.init(this.list)},okFilter(i){this.list={...i}},see(i){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[i];this.detail=t,this.seeIndex=i;let s=t.properties.conditions,a=Array.isArray(s)?Object.assign({...plugFilters$1},{list:s}):{...s},l=a.pid===null?a.list:[a],n=a.pid===null?a:plugFilters$1,o=Object.assign({...n},{list:l});this.list=o,this.ruleFormData={name:t.name},this.disabled&&this.flowsFilterInit()},0)})},flowsFilterInit(){this.$nextTick(()=>{this.$refs.showMode.initComponents(this.list)})},addCondition(){let i=this.record.list.length,t={type:"elsif",name:"\u65B0\u5EFA\u6761\u4EF6",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1,transkey:null,id:chartbi.uuid(),pid:this.record.id};this.record.list.splice(i-1,0,t)},selTyped(i,t){let s=nodeData(i);s=Object.assign(s,{pid:this.record.list[t].id,id:chartbi.uuid()}),(s.type=="condition"||s.type=="parallel")&&s.list.map(a=>(a.id=chartbi.uuid(),a.pid=s.id,a)),this.record.list[t].list.splice(0,0,s)},deltransKey(i){this.$emit("deltransKey",i)},async del(i){if(console.log(i),this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list.filter((l,n)=>n!=i);t[0].type="if",this.record.list=[...t];let s=await this.hasItem([data]).filter(l=>l.transkey),a=[];s.forEach(l=>{a.push(l.transkey)}),a.length!=0&&this.$emit("deltransKey",a)},hasItem(i){let t=[];const s=a=>(a=a.filter((l,n)=>((l.type=="if"||l.type=="elseif"||l.type=="parallelNode")&&(l.list=s(l.list)),(l.type=="condition"||l.type=="parallel")&&l.list.forEach(o=>{o.list=s(o.list)}),(l.type=="circulate"||l.type=="approver")&&(t=t.concat([l]),l.list.length>0&&(t=t.concat(l.list))),!0)),a);return s(i),t},addType(i,t,s){let a=nodeData(i);a=Object.assign(a,{pid:this.record.list[t].id,id:chartbi.uuid()}),(a.type=="condition"||a.type=="parallel")&&a.list.map(l=>(l.id=chartbi.uuid(),l.pid=a.id,l)),this.record.list[t].list.splice(s+1,0,a)},async delChildItem(i,t,s){let a=this.record.list[t].list.filter((o,r)=>r!=i);this.record.list[t].list=[...a];let l=await this.hasItem([data]).filter(o=>o.transkey),n=[];l.forEach(o=>{n.push(o.transkey)}),n.length!=0&&this.$emit("deltransKey",n)},selType(i){this.$emit("addType",i,this.index)},onClose(){this.visible=!1},lookup(i){this.lookIndex=i,this.loadData.filter(t=>t.id==this.list[i].columnId)[0]},lookupSeled(i){this.handleLookupCancel(),this.list[this.lookIndex].effecttype=="fk"&&(this.list[this.lookIndex].fkData=[i],this.list[this.lookIndex].val=i.id),this.list[this.lookIndex].effecttype=="about"&&(this.list[this.lookIndex].fkData=[i.data],this.list[this.lookIndex].val=i.data.id)},handleLookupCancel(){this.lookupShow=!1},selColumn(i,t){this.$nextTick(()=>{setTimeout(()=>{let s=this.loadData.filter(l=>l.id==i.id)[0],a=this.rulesList.filter(l=>l.remark.split(",").includes(i.effecttype));s.fieldformat&&(this.list[t].fieldformat=this.fieldFormat.filter(l=>l.code==s.fieldformat)[0].name),this.list[t].columnid=i.id,this.list[t].effecttype=s.effecttype,this.list[t].val="",this.list[t].ruleslist=[...a],this.list[t].rules=a.length>0?a[0].code:"",s.effecttype=="fk"&&this.searchData("",t)},0)})},searchData(i,t){let s=this.loadData.filter(a=>a.id==this.list[t].columnid)[0];this.fetching=!0,this.list[t].fkdata=[],messages.baseFkList({name:i,fkEntityName:s.fkentityname}).then(a=>{this.list[t].fkdata=a.success?[...a.data]:[],this.fetching=!1})},getDictionary(i){let t=this.loadData.filter(s=>s.id==i.columnid)[0];return t==null?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$2W=function(){var t=this,s=t._self._c;return s("div",{staticClass:"condition"},[s("div",{staticClass:"condition-t"},[s("div",{staticClass:"condition-add"},[s("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])],1),t._l(t.record.list,function(a,l){return s("div",{key:l,staticClass:"condition-item"},[l==0?s("div",{staticClass:"condition-bot-left"}):t._e(),l==0?s("div",{staticClass:"condition-top-left"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-bot-right"}):t._e(),l==t.record.list.length-1?s("div",{staticClass:"condition-top-right"}):t._e(),s("div",{staticClass:"condition-node"},[a.type=="else"?s("div",{staticClass:"condition-body"},[s("div",{staticClass:"condition-bodyt err-bg"},[t._v("ELSE")]),s("div",{staticClass:"condition-bodyb"},[s("div",{staticClass:"title err-color"},[t._v(t._s(t.$i18nt("gd.flow.work.discontentExecute")))])])]):s("div",{staticClass:"condition-body",class:a.err?"condition-err":"",on:{click:function(n){return t.see(l)}}},[s("el-popover",{attrs:{placement:"top",trigger:"hover",content:a.name}},[s("div",{attrs:{slot:"reference"},slot:"reference"},[s("div",{staticClass:"condition-bodyt line1"},[t._v(" "+t._s(t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219"))+" ")]),s("div",{staticClass:"condition-bodyb"},[s("div",{staticClass:"title line1"},[t._v(t._s(a.name))]),s("i",{staticClass:"el-icon-arrow-right icon"})]),s("i",{staticClass:"el-icon-close close",on:{click:function(n){return n.stopPropagation(),t.del(l)}}})])]),a.err?s("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("span",[t._v(t._s(t.$i18nt("gd.flow.work.supplementConditionsRules","\u8BF7\u8865\u5145\u6761\u4EF6/\u89C4\u5219\uFF01")))])]),s("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),s("ConnectDesigner",{attrs:{type:"condition",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:n=>t.selTyped(n,l)}})],1),t._l(a.list,function(n,o){return s("div",{staticStyle:{position:"relative","z-index":"10"}},[n.type=="approver"?s("StageDesigner",{attrs:{loadData:t.loadData,record:n,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:o,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),addTransKey:t.addTransKey}}):t._e(),n.type=="circulate"?s("StepsDesigner",{attrs:{loadData:t.loadData,record:n,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:o,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),addTransKey:t.addTransKey}}):t._e(),n.type=="condition"?s("ConditionDesigner",{attrs:{record:n,loadData:t.loadData,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),n.type=="parallel"?s("ParallelDesigner",{attrs:{record:n,loadData:t.loadData,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table,type:"condition"},on:{addType:r=>t.addType(r,l,o),delItem:r=>t.delChildItem(r,l,o),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e()],1)})],2)})],2),s("div",{staticClass:"condition-b"},[s("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{selType:t.selType}})],1),s("el-drawer",{attrs:{placement:"right",visible:t.visible,size:"50%","close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,"custom-class":"gd-drawer-form"},on:{close:t.onClose}},[s("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219")}},[s("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addConditionsRules"))+" ")]),s("div",{staticClass:"tips"},[t.listError?s("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.conditionsRulesTip","\u8BF7\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"error","show-icon":"",closable:!1}}):s("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.addedConditionsRules","\u5DF2\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"success","show-icon":"",closable:!1}})],1)],1)],1)],1)],1),t.visible?s("div",{style:t.styleMode},[s("FlowsFilter",{ref:"showMode",attrs:{table:t.table,type:1,mode:"div",choiceDisabled:!0}})],1):t._e(),s("div",{style:t.styled},[s("el-button",{style:{marginRight:"0px",fontSize:"14px"},on:{click:t.onClose}},[s("i",{staticClass:"el-icon-close"}),t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),s("el-button",{style:{fontSize:"14px"},attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[s("i",{staticClass:"el-icon-document-checked"}),t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),s("FlowsFilter",{ref:"findFilters",attrs:{table:t.table,type:1,mode:"dialog"},on:{ok:t.okFilter}})],1)},_sfc_staticRenderFns$2W=[],__component__$2W=chartbi.normalizeComponent(_sfc_main$2W,_sfc_render$2W,_sfc_staticRenderFns$2W,!1,null,"9cf8e70f",null,null);const ConditionDesigner=__component__$2W.exports,index=Object.freeze(Object.defineProperty({__proto__:null,default:ConditionDesigner},Symbol.toStringTag,{value:"Module"})),main_vue_vue_type_style_index_0_scoped_15d6d4d3_lang="",_sfc_main$2V={name:"GdApprovalFlow",props:{value:{type:Array,default:()=>[]},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},scaleVal:{type:Number,default:100},startCategory:{type:String,default:""}},data(){return{visible:!1,list:[],loadData:[],codeGenId:"",delTransKeyList:[],addTransKeyList:[]}},computed:{settingsData(){return this.list[0]?this.list[0]:{}},style(){let i=this.scaleVal/100;return`transform-origin: top;transform:scale(${i},${i});`},table(){return this.tableLists.filter(i=>i.id===this.codeGenId)[0]},...chartbi.mapGetters(["screenHeight","tableLists"])},components:{StartDesigner,ConnectDesigner,EndDesigner,StepsDesigner,ConditionDesigner,StageDesigner,ParallelDesigner},methods:{init(i){this.delTransKeyList=[],this.addTransKeyList=[],this.codeGenId=i[0].data.tableId,this.list=[...i]},addType(i,t){let s=nodeData(i),a=chartbi.uuid();s=Object.assign(s,{pid:0,id:a}),(s.type=="condition"||s.type=="parallel")&&s.list.map(l=>(l=Object.assign(l,{pid:s.id,id:chartbi.uuid()}),l)),this.list.splice(t+1,0,s)},async delItem(i){let t=this.list[i],s=this.list.filter((n,o)=>o!=i);this.list=[...s];let a=await this.hasItem([t]).filter(n=>n.transkey),l=[];a.forEach(n=>{l.push(n.transkey)}),l.length!=0&&(this.delTransKeyList=this.delTransKeyList.concat(l))},hasItem(i){let t=[];const s=a=>(a=a.filter((l,n)=>((l.type=="condition"||l.type=="parallel")&&l.list.forEach(o=>{o.list=s(o.list)}),(l.type=="circulate"||l.type=="approver")&&(t=t.concat([l]),l.list.length>0&&(t=t.concat(l.list))),!0)),a);return s(i),t},deltransKey(i){this.delTransKeyList=this.delTransKeyList.concat(i)},addTransKey(i){this.addTransKeyList=this.addTransKeyList.concat([i])}}};var _sfc_render$2V=function(){var t=this,s=t._self._c;return s("div",[s("div",{staticClass:"flowsdesigner",style:t.style},[s("div",{staticClass:"flowsdesigners"},[s("div",{staticClass:"flowdesign"},[t._l(t.list,function(a,l){return[a.type=="start"?s("StartDesigner",{attrs:{record:a,index:l,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,startCategory:t.startCategory},on:{addType:t.addType}}):t._e(),a.type=="approver"?s("StageDesigner",{attrs:{record:a,loadData:t.loadData,index:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),a.type=="circulate"?s("StepsDesigner",{attrs:{record:a,loadData:t.loadData,index:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),a.type=="condition"?s("ConditionDesigner",{attrs:{loadData:t.loadData,record:a,index:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),a.type=="parallel"?s("ParallelDesigner",{attrs:{loadData:t.loadData,record:a,index:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),a.type=="end"?s("EndDesigner"):t._e()]})],2)])])])},_sfc_staticRenderFns$2V=[],__component__$2V=chartbi.normalizeComponent(_sfc_main$2V,_sfc_render$2V,_sfc_staticRenderFns$2V,!1,null,"15d6d4d3",null,null);const GDpackage$7=__component__$2V.exports;GDpackage$7.install=function(i){i.component(GDpackage$7.name,GDpackage$7)};system_duplicatechecking.FlowsFilter.install=function(i){i.component(system_duplicatechecking.FlowsFilter.name,system_duplicatechecking.FlowsFilter)};const mixins$f={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.table.businessName",prop:"busName",label:"\u4E1A\u52A1\u540D",width:"240",type:"slot",slotType:"busName",align:"left",fixed:!0,renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.table.tableName",prop:"tablename",label:"\u8868\u540D\u79F0",width:"240",align:"left",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.table.virtualTable",prop:"isvirtualtable",label:"\u865A\u62DF\u8868",width:"140",type:"slot",slotType:"isvirtualtable",align:"center",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"radio",dictTypeCode:"yes_or_no"})},{transKey:"gd.table.isLocked",prop:"isLocked",label:"\u662F\u5426\u9501\u5B9A",width:"140",type:"slot",slotType:"isLocked",align:"center",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u9501\u5B9A",code:1,transKey:"table.locked",prefix:"gd"},{name:"\u672A\u9501\u5B9A",code:0,transKey:"table.unlocked",prefix:"gd"}]})},{transKey:"gd.table.allowNewField",prop:"allowNewField",label:"\u5B57\u6BB5\u65B0\u589E",width:"140",type:"slot",slotType:"allowNewField",align:"center",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"radio",dictData:[{name:"\u53EF\u65B0\u589E",code:1,transKey:"table.addedNewField",prefix:"gd"},{name:"\u4E0D\u53EF\u65B0\u589E",code:0,transKey:"table.notAddedNewField",prefix:"gd"}]})},{transKey:"gd.table.audit",prop:"isAudit",label:"\u542F\u7528\u5BA1\u8BA1",width:"140",type:"slot",slotType:"isAudit",align:"center",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.plugIn",prop:"isPlugIn",label:"\u542F\u7528\u63D2\u4EF6",width:"140",type:"slot",slotType:"isPlugIn",align:"center",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.proxy",prop:"isAgent",label:"\u542F\u7528\u4EE3\u7406",width:"140",type:"slot",slotType:"isAgent",align:"center",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.share",prop:"isTeam",label:"\u542F\u7528\u5171\u4EAB",width:"140",type:"slot",slotType:"isTeam",align:"center",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.approval",prop:"isApproval",label:"\u542F\u7528\u5BA1\u6279",width:"140",type:"slot",slotType:"isApproval",align:"center",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.mslaveSubmit",prop:"isChildAgent",label:"\u4E3B\u4ECE\u63D0\u4EA4",width:"140",type:"slot",slotType:"isChildAgent",align:"center",renderHeader:(i,...t)=>this.renderHeader(i,...t,{effectType:"radio",dictData:[{name:"\u662F",code:1,transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:0,transKey:"placeholder.no",prefix:"gd"}]})},{transKey:"gd.org.authorName",prop:"authorname",width:"200",label:"\u4F5C\u8005\u59D3\u540D",align:"left"}],formColumns:[{transKey:"gd.table.tableName",effectType:"input",prop:"tablename",label:"\u8868\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{pattern:/^(?![0-9_])\w+$/,message:"\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934\u4E14\u5934\u5C3E\u6216\u4E2D\u95F4\u4E0D\u80FD\u6709\u7A7A\u683C\uFF01",transKey:"gd.table.tableNameRules"}]},{transKey:"gd.table.tableDescription",prop:"busname",effectType:"input",label:"\u8868\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,type:"slot",slotType:"busname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.table.virtualTable",prop:"isvirtualtable",effectType:"switch",label:"\u865A\u62DF\u8868",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"virtualTable"},{transKey:null,prop:null,effectType:"",label:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"none"},{transKey:null,prop:null,effectType:"",label:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"divider"},{transKey:"gd.table.plugIn",prop:"isplugin",effectType:"switch",label:"\u542F\u7528\u63D2\u4EF6",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.audit",prop:"isaudit",effectType:"switch",label:"\u542F\u7528\u5BA1\u6838",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.proxy",prop:"isagent",effectType:"switch",label:"\u542F\u7528\u4EE3\u7406",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.share",prop:"isteam",effectType:"switch",label:"\u542F\u7528\u5171\u4EAB",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.approval",prop:"isapproval",effectType:"switch",label:"\u542F\u7528\u5BA1\u6279",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.allowNewField",prop:"allownewfield",effectType:"switch",label:"\u5B57\u6BB5\u65B0\u589E",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.enableAdvancedLookup",prop:"isquery",effectType:"switch",label:"\u542F\u7528\u67E5\u627E",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.enableReview",prop:"ischeckduplicate",effectType:"switch",label:"\u542F\u7528\u67E5\u91CD",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.startBusinessProcess",prop:"isbusinessprocess",effectType:"switch",label:"\u5F00\u542F\u4E1A\u52A1\u6D41\u7A0B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.mslaveSubmit",prop:"ischildagent",effectType:"switch",label:"\u662F\u5426\u4E3B\u4ECE\u63D0\u4EA4",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.table.teamTemplates",prop:"sys_accessteamtemplateid",effectType:"input",label:"\u8BBF\u95EE\u56E2\u961F\u6A21\u677F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.table.connectionTable",prop:"connectiontable",effectType:"input",label:"\u8FDE\u63A5\u8868",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.table.dataSource",prop:"sysdatasource",effectType:"fk",label:"\u6570\u636E\u6E90",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],type:"slot",slotType:"datasource"},{transKey:"gd.table.virtualObjectType",prop:"virtualobjecttype",effectType:"select",label:"\u865A\u62DF\u5BF9\u8C61\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],dictTypeCode:"virtualobjecttype"},{transKey:"gd.table.virtualObject",effectType:"input",prop:"virtualobject",label:"\u865A\u62DF\u5BF9\u8C61",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:null,prop:null,effectType:"",label:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"divider"},{transKey:"gd.table.viewWeb",prop:"viewweb",effectType:"select",label:"\u89C6\u56FEweb\u8D44\u6E90",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"viewWeb"},{transKey:"gd.table.formWeb",prop:"formweb",effectType:"select",label:"\u8868\u5355web\u8D44\u6E90",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"formWeb"},{transKey:"gd.table.customPageInterface",prop:"custompageinterface",effectType:"input",label:"\u81EA\u5B9A\u4E49[Page]\u63A5\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.table.authorName",prop:"authorname",effectType:"input",label:"\u4F5C\u8005\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableDefinition:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableDefinition:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTableDefinition:delete"},{displayName:"\u53D1\u5E03",functionName:"createTable",show:!0,tip:"\u786E\u8BA4\u53D1\u5E03?",transKeyTip:"gd.https.releaseContent",transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",popconfirm:!0,name:"sysTableDefinition:develop"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.table.businessName",prop:"busName",label:"\u4E1A\u52A1\u540D",effectType:"input",rules:[]},{transKey:"gd.table.tableName",prop:"tableName",label:"\u8868\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.table.isLocked",prop:"isLocked",label:"\u662F\u5426\u9501\u5B9A",effectType:"radio",dictData:[{name:"\u5DF2\u9501\u5B9A",code:1,transKey:"table.locked",prefix:"gd"},{name:"\u672A\u9501\u5B9A",code:0,transKey:"table.unlocked",prefix:"gd"}],rules:[]},{transKey:"gd.table.allowNewField",prop:"allowNewField",label:"\u5B57\u6BB5\u65B0\u589E",effectType:"radio",dictData:[{name:"\u53EF\u65B0\u589E",code:1,transKey:"table.addedNewField",prefix:"gd"},{name:"\u4E0D\u53EF\u65B0\u589E",code:0,transKey:"table.notAddedNewField",prefix:"gd"}],rules:[]},{transKey:"gd.table.audit",prop:"isAudit",label:"\u542F\u7528\u5BA1\u8BA1",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.plugIn",prop:"isPlugIn",label:"\u542F\u7528\u63D2\u4EF6",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.proxy",prop:"isAgent",label:"\u542F\u7528\u4EE3\u7406",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.share",prop:"isTeam",label:"\u542F\u7528\u5171\u4EAB",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.approval",prop:"isApproval",label:"\u542F\u7528\u5BA1\u6279",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.mslaveSubmit",prop:"isChildAgent",label:"\u4E3B\u4ECE\u63D0\u4EA4",effectType:"radio",dictData:[{name:"\u662F",code:1,transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:0,transKey:"placeholder.no",prefix:"gd"}],rules:[]}]}}},mixins$e={data(){return{tableColumns:[{transKey:"gd.field.handle",prop:"handle",label:"\u64CD\u4F5C",width:"70",type:"slot",slotType:"handle",align:"center",fixed:"left"},{transKey:"gd.field.describe",prop:"columnComment",label:"\u63CF\u8FF0",width:"200",type:"slot",slotType:"columnComment",align:"left",fixed:"left",showTooltip:!1},{transKey:"gd.flow.process.mapFields",prop:"virtualcolumn",label:"\u6620\u5C04\u5B57\u6BB5",width:"200",type:"slot",slotType:"virtualcolumn",align:"left",showTooltip:!1},{transKey:"gd.field.field",prop:"columnName",label:"\u5B57\u6BB5",width:"200",type:"slot",slotType:"columnName",align:"left",showTooltip:!1},{transKey:"gd.field.effectType",prop:"effectType",label:"\u4F5C\u7528\u7C7B\u578B",width:"200",type:"slot",slotType:"effectType",align:"left",showTooltip:!1},{transKey:"gd.field.dictionaries",prop:"dictTypeCode",label:"\u5B57\u5178",width:"210",type:"slot",slotType:"dictTypeCode",align:"left",showTooltip:!1},{transKey:"gd.field.date",prop:"fieldFormat",label:"\u65E5\u671F",width:"210",type:"slot",slotType:"fieldFormat",align:"left",showTooltip:!1},{transKey:"gd.field.about",prop:"fkEntityName",label:"\u5916\u952E/\u5173\u4E8E",width:"260",type:"slot",slotType:"fkEntityName",align:"left",showTooltip:!1},{transKey:"gd.field.precision",prop:"filedSize",label:"\u5B57\u7B26\u957F\u5EA6/\u7CBE\u5EA6",width:"140",type:"slot",slotType:"filedSize",align:"left",showTooltip:!1},{transKey:"gd.field.defaultType",prop:"defaultType",label:"\u9ED8\u8BA4\u503C\u7C7B\u578B",width:"180",type:"slot",slotType:"defaultType",align:"left",showTooltip:!1},{transKey:"gd.field.numberingRules",prop:"sysNumberRulesId",label:"\u7F16\u53F7\u89C4\u5219",width:"180",type:"slot",slotType:"sysNumberRulesId",align:"left",showTooltip:!1},{transKey:"gd.field.audit",prop:"isAudit",label:"\u5BA1\u8BA1",width:"80",type:"slot",slotType:"isAudit",align:"center"},{transKey:"gd.field.safety",prop:"isSecurity",label:"\u5B89\u5168\u6027",width:"80",type:"slot",slotType:"isSecurity",align:"center",fixed:"right"},{transKey:"gd.field.primarykey",prop:"isprimarykey",label:"\u4E3B\u952E",width:"80",type:"slot",slotType:"isprimarykey",align:"center",fixed:"right"},{transKey:"gd.field.query",prop:"queryWhether",label:"\u67E5\u8BE2",width:"80",type:"slot",slotType:"queryWhether",align:"center",fixed:"right"}],tableButtons:[{displayName:"\u8FD4\u56DE",functionName:"back",show:!0,transKey:"gd.btn.back",icon:"el-icon-arrow-left"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableField:edit"},{displayName:"\u53D1\u5E03",functionName:"createTable",show:!0,tip:"\u786E\u8BA4\u53D1\u5E03?",transKeyTip:"gd.https.releaseContent",transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",popconfirm:!0,name:"sysTableField:develop"}],formButtons:[{displayName:"\u65B0\u589E",functionName:"handleAdd",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableField:add"},{displayName:"\u4FDD\u5B58",functionName:"handleSubmit",show:!0,tip:"\u662F\u5426\u786E\u8BA4\u4FDD\u5B58?",transKeyTip:"gd.https.saveContent",transKey:"gd.btn.save",icon:"el-icon-document-checked",popconfirm:!0,name:"sysTableField:edit"}]}}},mixins$d={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.view.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.view.viewName",prop:"viewname",width:"220",label:"\u89C6\u56FE\u540D\u79F0",align:"left",showOverflowTooltip:!0},{transKey:"gd.view.type",prop:"type",width:"160",type:"slot",slotType:"type",label:"\u7C7B\u578B",align:"left"},{transKey:"gd.view.sort",prop:"order",width:"120",label:"\u5E8F\u53F7",align:"left"},{transKey:"gd.view.default",prop:"isDefault",width:"120",type:"slot",slotType:"isDefault",label:"\u9ED8\u8BA4",align:"center"},{transKey:"gd.view.explain",prop:"explain",minWidth:"200",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableView:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableView:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTableView:delete"},{displayName:"\u590D\u5236",functionName:"copyed",show:!0,transKey:"gd.btn.copy",icon:"el-icon-document-copy",name:"sysTableView:add"},{displayName:"\u8BBE\u7F6E\u6309\u94AE",functionName:"relation",show:!0,transKey:"gd.btn.setButton",icon:"el-icon-setting",name:"sysTableBtn:set"}]}}},buttonRule_vue_vue_type_style_index_0_scoped_97440382_lang="",_sfc_main$2U={props:{table:{type:Object,default:()=>({})},loadData:{type:Array,default:()=>[]},type:{type:[String,Number],default:1},id:{type:[String,Number],default:""}},data(){return{width:"1100px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{name:"",using:!0,explain:"",id:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},list:[],btnData:[],tableFieldList:[],tableFieldAll:[],showAdd:!0}},components:{EffectTypeIcon:messages.EffectTypeIcon},watch:{list:{handler(i){this.isSatisfy()},deep:!0,immediate:!0}},computed:{height(){let i=this.fullscreen?190:340;return this.screenHeight-i},rulesList(){return this.getDictionary("table_form_rules").filter(i=>(i.sysDictType=[],!0))},...chartbi.mapGetters(["screenHeight","primaryColor"])},methods:{handleSubmit(){let i=[],t=[];if(this.list.forEach((s,a)=>{i=i.concat(s.condition.list),t=t.concat(s.operation.list)}),i.length==0)return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(!this.isCheckedAll(i,1))return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(t.length==0)return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;if(!this.isCheckedAll(t,2))return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;this.confirmLoading=!0,this.$refs.ruleForm.validate(s=>{s?(this.$emit("ok",Object.assign({...this.ruleFormData},{key:this.record?"2":"1",list:[...this.list]})),this.closed()):this.confirmLoading=!1})},remainingBtn(i,t){let s=[];return i.forEach((l,n)=>{n!==t&&(s=s.concat(l.columnComment))}),this.btnData.filter(l=>!s.includes(l.name))},conditionColumn(i,t,s){const a=this.tableFieldAll.filter(n=>n.value===i[i.length-1])[0],l=this.rulesList.filter(n=>n.remark.split(",").includes(a.effectType));Object.assign(t,{effectType:a.effectType,dictTypeCode:a.dictTypeCode,val:"",rulesList:l,rules:l.length>0?l[0].code:""})},addList(){let i=[...this.list];i.length>1&&(i[i.length-1].title="ELSE IF");let t={title:"Else",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]}};i.push(t),this.list=[...i]},del(i){let t=this;this.$confirm(this.$i18nt("gd.https.delExpression","\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,a,l)=>{if(l(),s!=="confirm")return;let n=[...t.list];n.splice(i,1),n.length>1&&(n[n.length-1].title="Else"),t.list=[...n]}})},delCondition(i,t){let s=[...this.list];s[i].condition.list.splice(t,1),s[i].condition.list.length>0&&(s[i].condition.list[0].type="0"),s[i].condition.list.length===0&&i!=s.length-1&&(s[i].operation.list=[]),this.list=[...s]},delOperation(i,t){let s=[...this.list];s[i].operation.list=[],this.list=[...s]},addCondition(i){let t=this.list[i].condition.list.length,a={type:t==0?"0":t>1?this.list[i].condition.list[t-1].type:"1",columnComment:"",rules:"1",val:"",rulesList:[...this.rulesList],effectType:"select",fieldFormat:null,dictTypeCode:null,fkData:[],id:chartbi.uuid(12)};this.list[i].condition.list.push(a),this.list[i].operation.list.length===0&&(this.addOperation(i,"1"),this.addOperation(i,"2"))},addOperation(i,t){let s={rules:"4",columnComment:[],val:t,type:1,effectType:"select",fkData:[],id:chartbi.uuid(),fieldFormat:null};this.list[i].operation.list.push(s)},addOperationMore(i){this.list[i].operation.list.length===0&&(this.addOperation(i,"1"),this.addOperation(i,"2"))},getBtnList(){this.confirmLoading=!0,system_fieldsecurity.sysButtonList({type:this.type,SysCodeGenId:this.table.id}).then(i=>{i.code===200&&(this.btnData=i.data.filter(t=>this.type===1&&t.sysviewid==this.id?!0:this.type===2&&t.sysformidbyset==this.id)),this.confirmLoading=!1})},init(i){const t=JSON.parse(JSON.stringify(i));this.record=t,this.visible=!0,this.getBtnList(),this.getTableField(),this.ruleFormData={name:i?i.name:"",using:i?i.using:!0,explain:i?i.explain:"",id:i?i.id:chartbi.uuid(12)},i?this.list=[...t.list]:this.list=[{title:"IF",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]},id:chartbi.uuid(12)}],this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})},openItem(i,t){if(i==1){this.list[t].open=!this.list[t].open;return}if(i==2){this.list[t].condition.open=!this.list[t].condition.open;return}if(i==3){this.list[t].operation.open=!this.list[t].operation.open;return}},getTableField(){let i=[],t=[];this.loadData.filter(a=>a.dicttypecode?!0:a.children&&a.children.length>0&&this.type==1?(a.children=a.children.filter(l=>l.dicttypecode),!0):!1).forEach(a=>{let l={value:a.columnname,label:this.$i18nt(`Dynamics.${a.transkey}`,a.columncomment),dictTypeCode:a.dicttypecode,transKey:a.transkey,id:a.id,fkEntityName:a.fkentityname,effectType:a.effecttype,fieldFormat:a.fieldformat,hasChildren:this.type==1,columnname:a.columnname};if(t.push(l),a.children&&a.children.length>0&&this.type==1){let n=[];a.children.forEach(o=>{const r={value:`${o.columnname}${a.fkentityname}${a.columnname}`,label:this.$i18nt(`Dynamics.${o.transkey}`,o.columncomment),columnname:a.columnname,dictTypeCode:o.dicttypecode,transKey:o.transkey,id:o.id,fkEntityName:o.fkentityname,effectType:o.effecttype,fieldFormat:a.fieldformat,hasChildren:!1};n.push(r),t.push(r)}),Object.assign(l,{children:n})}i.push(l)}),this.tableFieldList=i,this.tableFieldAll=t},isSatisfy(){if(this.list.length==0)return;let i=[...this.list],t=i[i.length-1];t.condition.list.length>0?this.showAdd=!this.isChecked(t.condition.list):this.showAdd=!1},isChecked(i){return i.every((t,s,a)=>{let l=t.rules==="5"||t.rules==="6"?t.columnComment:t.val;return!(t.columnComment!==void 0&&l)})},isCheckedAll(i,t){return i.every((s,a,l)=>{let n="";return t===1?n=s.rules==="5"||s.rules==="6"?s.columnComment:s.val:n=s.rules==="7"?s.columnComment:s.val,(t===1?s.columnComment!==void 0:!0)&&n!==""&&n!==void 0})},closed(){this.confirmLoading=!1,this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionaryd(i){let t=i.rules==="3"?"table_form_essential":i.rules==="4"?"table_form_so":"table_form_locking";return this.getDictionary(t)},getDictionary(i){return this.$options.filters.dictData(i)},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2U=function(){var t=this,s=t._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.$i18nt("gd.view.btnRules","\u6309\u94AE\u89C4\u5219"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[s("div",{staticClass:"view-config"},[s("div",{staticClass:"config-item"},[s("div",{staticClass:"rules"},[t._l(t.list,function(a,l){return s("div",{key:l,staticClass:"rules-if"},[s("div",{staticClass:"title"},[s("div",{staticClass:"l",on:{click:function(n){return t.openItem(1,l)}}},[s("i",{staticClass:"if-icon",class:a.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(a.title)+" ")]),l!=0?s("div",{staticClass:"r"},[s("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",cursor:"pointer",color:"#ff4d4f"},on:{click:function(n){return t.del(l)}}})]):t._e()]),a.open?s("div",{staticClass:"rules-ifs"},[s("div",{staticClass:"condition"},[s("div",{staticClass:"title",on:{click:function(n){return t.openItem(2,l)}}},[s("i",{staticClass:"if-icon",class:a.condition.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.if","\u5982\u679C"))+" ")]),a.condition&&a.condition.open?s("div",{staticClass:"detail"},[t._l(a.condition.list,function(n,o){return s("div",{staticClass:"lists"},[s("div",{staticClass:"rg"},[n.type==0?s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),value:t.$i18nt("gd.basics.if","\u5982\u679C"),disabled:""}}):s("el-select",{staticStyle:{width:"100%"},model:{value:n.type,callback:function(r){t.$set(n,"type",r)},expression:"ite.type"}},[s("el-option",{attrs:{value:"1",label:t.$i18nt("gd.filter.and","\u548C")}}),s("el-option",{attrs:{value:"2",label:t.$i18nt("gd.filter.or","\u6216")}})],1)],1),s("div",{staticClass:"zd"},[s("el-cascader",{staticStyle:{width:"100%"},attrs:{options:t.tableFieldList},on:{change:function(r){return t.conditionColumn(r,n)}},scopedSlots:t._u([{key:"default",fn:function({node:r,data:d}){return[s("EffectTypeIcon",{attrs:{effectType:d.effectType}}),s("span",{staticStyle:{"margin-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${d.transKey}`,d.label))+" "),d.hasChildren?t._e():s("span",[t._v("("+t._s(d.columnname)+")")])])]}}],null,!0),model:{value:n.columnComment,callback:function(r){t.$set(n,"columnComment",r)},expression:"ite.columnComment"}})],1),s("div",{staticClass:"tj"},[s("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!(n.columnComment!==""&&n.columnComment.length>0)},model:{value:n.rules,callback:function(r){t.$set(n,"rules",r)},expression:"ite.rules"}},[t._l(n.rulesList,function(r){return[s("el-option",{attrs:{value:r.code,label:t.$i18nt(`Dynamics.${r.transkey}`,r.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${r.transkey}`,r.name))+" ")])]})],2)],1),s("div",{staticClass:"jg"},[s("el-select",{staticStyle:{width:"100%"},model:{value:n.val,callback:function(r){t.$set(n,"val",r)},expression:"ite.val"}},[t._l(t.getDictionary(n.dictTypeCode),function(r){return[s("el-option",{attrs:{value:r.code,label:t.$i18nt(`Dynamics.${r.transkey}`,r.name)}})]})],2)],1),s("div",{staticClass:"sc"},[s("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(r){return t.delCondition(l,o)}}})])])}),s("div",{staticClass:"add"},[s("span",{staticClass:"active-color",on:{click:function(n){return t.addCondition(l)}}},[s("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])])],2):t._e()]),s("div",{staticClass:"operation"},[s("div",{staticClass:"title",on:{click:function(n){return t.openItem(3,l)}}},[s("i",{class:a.operation.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.handle"))+" "),l===t.list.length-1&&a.operation.list.length>0&&a.condition.list.length===0?s("div",{staticClass:"title-sc"},[s("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(n){return n.stopPropagation(),t.delOperation(l)}}})]):t._e()]),a.operation&&a.operation.open?s("div",{staticClass:"list"},[t._l(a.operation.list,function(n,o){return s("div",{staticClass:"lists"},[s("div",{staticClass:"tjs"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:""},model:{value:n.val,callback:function(r){t.$set(n,"val",r)},expression:"ite.val"}},[t._l(t.getDictionaryd(n),function(r,d){return[s("el-option",{attrs:{value:r.code,label:t.$i18nt(`Dynamics.${r.transkey}`,r.name)}})]})],2)],1),s("div",{staticClass:"jg"},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",multiple:""},model:{value:n.columnComment,callback:function(r){t.$set(n,"columnComment",r)},expression:"ite.columnComment"}},[t._l(t.remainingBtn(a.operation.list,o),function(r){return[s("el-option",{attrs:{label:t.$i18nt(`Dynamics.${r.transkey}`,r.displayname),value:r.name}})]})],2)],1),s("div",{staticClass:"sc"})])}),t.list.length>1&&l===t.list.length-1&&a.operation.list.length===0?s("div",{staticClass:"add active-color"},[s("span",{on:{click:function(n){return t.addOperationMore(l)}}},[s("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addHandle","\u6DFB\u52A0\u64CD\u4F5C"))+" ")])]):t._e()],2):t._e()])]):t._e()])}),t.showAdd?s("div",{staticClass:"rules-el"},[s("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[s("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addElse","\u6DFB\u52A0 ELSE"))+" ")])]):t._e()],2)]),s("div",{staticClass:"config-item config-items"},[s("div",{staticClass:"b"},[s("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:t.ruleFormData,size:"mini",rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.view.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.view.explain","\u8BF4\u660E"),prop:"explain"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",rows:4},model:{value:t.ruleFormData.explain,callback:function(a){t.$set(t.ruleFormData,"explain",a)},expression:"ruleFormData.explain"}})],1),s("div",{staticClass:"using-flex"},[s("div",{staticClass:"using-flex-title"},[t._v(" "+t._s(t.$i18nt("gd.msg.temPlate.isEnabled","\u662F\u5426\u542F\u7528"))+" ")]),s("el-switch",{attrs:{"active-color":t.primaryColor},model:{value:t.ruleFormData.using,callback:function(a){t.$set(t.ruleFormData,"using",a)},expression:"ruleFormData.using"}})],1)],1)],1)])])])],2)},_sfc_staticRenderFns$2U=[],__component__$2U=chartbi.normalizeComponent(_sfc_main$2U,_sfc_render$2U,_sfc_staticRenderFns$2U,!1,null,"97440382",null,null);const ButtonRule=__component__$2U.exports,viewTree_vue_vue_type_style_index_0_scoped_441b7062_lang="",disableList$2=[{code:1,name:"\u662F",transkey:"gd.state.yes"},{code:0,name:"\u5426",transkey:"gd.state.no"}],_sfc_main$2T={props:{table:{type:Object,default:()=>({})}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],labelTitle:"\u6761\u4EF6",confirmLoading:!1,visible:!1,width:"800px",fullscreen:!1,fetching:!1,spinning:!1,ruleFormData:{treeId:"",sysViewId:"",detailId:"",isDisable:0,ifSet:"",rulesValue:"1",operators:"1",conditional:"",parentId:"",parentPid:"",relevanceId:"",childrenId:""},rules:{treeId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],sysViewId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],detailId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],parentPid:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}],parentId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}],relevanceId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}],childrenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}]},loadData:[],viewList:[],detailList:[],disableList:disableList$2,ifSetList:[],rulesList:[],cascadeList:[],parentPidList:[],conditionList:[],parentList:[],relevanceList:[],childrenList:[],conditionalList:[],dictData:[],fildFk:null,selData:null}},computed:{styles(){return`color:${this.primaryColor}`},...chartbi.mapGetters(["labelPosition","formMode","tableLists","primaryColor"])},created(){this.dictData=this.$options.filters.dictData("table_lookup_rules"),this.conditionList=this.dictData.filter(i=>i.code==1),this.rulesList=this.dictData.filter(i=>i.code<3)},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){if(console.log(i),this.visible=!0,this.selData=i,this.getList(),Object.keys(i).length==0){this.ruleFormData={treeId:"",sysViewId:"",detailId:"",isDisable:0,ifSet:"",rulesValue:"1",operators:"1",conditional:"",parentId:"",parentPid:"",relevanceId:"",childrenId:""},this.$refs.ruleForm.resetFields();return}this.listData()},listData(i){this.ruleFormData.treeId=i?"":this.selData.treeId,this.loadData=i?"":this.selData.loadData,this.ruleFormData.sysViewId=i?"":this.selData.sysViewId,this.viewList=i?[]:this.selData.viewList,this.ruleFormData.detailId=i?"":this.selData.detailId,this.detailList=i?[]:this.selData.detailList,this.ruleFormData.parentId=i?"":this.selData.parentId,this.ruleFormData.parentPid=i?"":this.selData.parentPid,this.parentList=i?[]:this.selData.parentList,this.parentPidList=i?[]:this.selData.parentPidList,this.ruleFormData.relevanceId=i?"":this.selData.relevanceId,this.relevanceList=i?[]:this.selData.relevanceList,this.ruleFormData.childrenId=i?"":this.selData.childrenId,this.childrenList=i?[]:this.selData.childrenList,this.ruleFormData.isDisable=i?0:this.selData.isDisable,this.ruleFormData.ifSet=i?"":this.selData.ifSet,this.ifSetList=i?[]:this.selData.ifSetList,this.ruleFormData.conditional=i?"":this.selData.conditional,this.conditionalList=i?[]:this.selData.conditionalList,this.ruleFormData.rulesValue=i?"":this.selData.rulesValue,this.rulesList=i?[]:this.selData.rulesList,this.cascadeList=i?[]:this.selData.cascadeList,this.ruleFormData.treeId!=""&&(this.getTable(),this.getDetail(this.ruleFormData.sysViewId))},getList(){return this.spinning=!0,messages.baseReference({tableId:this.table.id}).then(i=>{if(i.success){let t=i.data.filter(s=>s.item7=="parental");this.loadData=[...t],this.spinning=!1}else this.$message.error(i.message)})},getView(i){let t=this.tableLists.filter(s=>s.tablename==i)[0];system_fieldsecurity.sysViewList({SysCodeGenId:t.id}).then(s=>{s.success?this.viewList=s.data:this.$message.error(s.message)})},getTable(){messages.onlineFormGetCodeGenerateList({codeGenId:this.table.id}).then(i=>{i.success?this.relevanceList=i.data:this.$message.error(i.message)})},getDetail(i){return system_fieldsecurity.sysViewDetails({id:i}).then(t=>{if(t.success){let s=[{fieldId:0,name:"id",joinFielName:"id",joinFieldId:"0"}],a=[],l=[],n=[],r=t.data.sysviewfields.filter(d=>d.field.columnname.toLowerCase()=="id")[0]==null?s.concat(t.data.sysviewfields):t.data.sysviewfields;this.parentList=r,this.parentPidList=r,this.childrenList=r,this.detailList=t.data.sysviewfields,t.data.sysviewfields.forEach(d=>{l.push({joinfieldid:d.joinfieldid}),a.push(d.field)}),n=a,n.map((d,u)=>{d.joinfieldid=l[u].joinfieldid}),this.ifSetList=n}else this.$message.error(t.message)})},conditionColumn(i){this.getView(i.item2),this.getTable(),this.ruleFormData.sysViewId="",this.ruleFormData.parentId="",this.ruleFormData.parentPid="",this.ruleFormData.childrenId="",this.ruleFormData.detailId="",this.ruleFormData.relevanceId="",this.ruleFormData.ifSet="",this.ruleFormData.rulesValue="",this.ruleFormData.conditional=""},viewClick(i){this.ruleFormData.sysViewId=i,this.ruleFormData.parentId="",this.ruleFormData.parentPid="",this.ruleFormData.childrenId="",this.ruleFormData.detailId="",this.ruleFormData.ifSet="",this.ruleFormData.rulesValue="",this.ruleFormData.conditional="",this.getDetail(i)},deatilClick(i){this.ruleFormData.detailId=i},ifClick(i){this.ruleFormData.conditional="",this.cascadeList=[i],this.rulesList=this.dictData.filter(t=>t.code<3),i.effecttype=="fk"||i.effecttype=="user"?(this.fildFk=i,this.searchData("")):this.conditionalList=[]},isSet(i){this.ruleFormData.rulesValue=i},showTime(i){return i.fieldFormat.length>10},inputRadio(i){this.rulesList=this.dictData.filter(t=>t.code<3)},searchData(i){this.fetching=!0,messages.baseFkList({name:i,fkEntityName:this.fildFk.fkEntityName}).then(t=>{this.conditionalList=t.success?[...t.data]:[],this.fetching=!1})},handleSubmit(){this.$refs.ruleForm.validate(i=>{if(i){let t=this.viewList.map(p=>({id:p.id,name:p.name})),s=this.detailList.map(p=>({fieldId:p.fieldid,joinFieldId:p.joinfieldid,name:p.name})),a=this.parentList.map(p=>({fieldId:p.fieldid,joinFieldId:p.joinfieldid,name:p.name})),l=this.parentPidList.map(p=>({fieldId:p.fieldid,joinFieldId:p.joinfieldid,name:p.name})),n=this.relevanceList.map(p=>({columnName:p.columnname,columnComment:p.columncomment})),o=this.childrenList.map(p=>({fieldId:p.fieldid,joinFieldId:p.joinfieldid,name:p.name})),r;this.ruleFormData.isDisable==1?r=this.ifSetList.map(p=>({id:p.id,joinFieldId:p.joinfieldid,name:p.name,columnName:p.columnname,columnComment:p.columncomment,effectType:p.effecttype,dictTypeCode:p.dicttypecode})):r=[];let d=this.ruleFormData.isDisable==1?this.conditionalList.map(p=>({id:p.id,name:p.name})):[],u={treeId:this.ruleFormData.treeId,loadData:this.loadData.filter(p=>p.item2+"&"+p.item4==this.ruleFormData.treeId),sysViewId:this.ruleFormData.sysViewId,viewList:t.filter(p=>p.id==this.ruleFormData.sysViewId),detailId:this.ruleFormData.detailId,detailList:s.filter(p=>p.fieldid+"&"+p.joinfieldid==this.ruleFormData.detailId),parentId:this.ruleFormData.parentId,parentPid:this.ruleFormData.parentPid,parentList:a.filter(p=>p.fieldid+"&"+p.joinfieldid==this.ruleFormData.parentId),parentPidList:l.filter(p=>p.fieldid+"&"+p.joinfieldid==this.ruleFormData.parentPid),relevanceId:this.ruleFormData.relevanceId,relevanceList:n.filter(p=>p.columnname==this.ruleFormData.relevanceId),childrenId:this.ruleFormData.childrenId,childrenList:o.filter(p=>p.fieldid+"&"+p.joinfieldid==this.ruleFormData.childrenId),isDisable:this.ruleFormData.isDisable,ifSet:this.ruleFormData.isDisable==1?this.ruleFormData.ifSet:"",ifSetList:this.ruleFormData.isDisable==1?r.filter(p=>p.id+"&"+p.joinfieldid==this.ruleFormData.ifSet):[],conditional:this.ruleFormData.isDisable==1?this.ruleFormData.conditional:"",conditionalList:this.ruleFormData.isDisable==1?d.filter(p=>p.id==this.ruleFormData.conditional):[],rulesValue:this.ruleFormData.rulesValue,rulesList:this.ruleFormData.isDisable==1?this.rulesList.filter(p=>p.code==this.ruleFormData.rulesValue):[],cascadeList:this.cascadeList};this.$emit("ok",u),this.closed()}})},closed(){this.$refs.ruleForm.resetFields(),this.visible=!1},getDictionary(i){return i.columncomment==null?[]:i.dicttypecode==null?[]:this.$options.filters.dictData(i.dicttypecode)},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2T=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.view.configurationSwitch","\u89C6\u56FE\u6811\u8BBE\u7F6E"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"config_viewtree"},[s("el-form",{ref:"ruleForm",attrs:{model:t.ruleFormData,"label-width":"100px","label-position":"top",rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.dataOrigin","\u89C6\u56FE\u6811\u672C\u8868\u6765\u6E90\u5B57\u6BB5"),prop:"treeId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.treeId,callback:function(a){t.$set(t.ruleFormData,"treeId",a)},expression:"ruleFormData.treeId"}},t._l(t.loadData,function(a){return s("el-option",{key:a.item2+"&"+a.item4,attrs:{value:a.item2+"&"+a.item4,label:t.$i18nt(`Dynamics.${a.transkey}`,a.item6)},nativeOn:{click:function(l){return t.conditionColumn(a)}}},[t._v(" "+t._s(a.item5)+" "),s("span",{style:t.styles},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.item6))+" ")]),t._v(" "+t._s(a.item2)+" ")])}),1)],1)],1),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.view","\u89C6\u56FE\u6811\u6765\u6E90\u89C6\u56FE"),prop:"sysViewId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.view")},on:{change:t.viewClick},model:{value:t.ruleFormData.sysViewId,callback:function(a){t.$set(t.ruleFormData,"sysViewId",a)},expression:"ruleFormData.sysViewId"}},t._l(t.viewList,function(a){return s("el-option",{key:a.id,attrs:{value:a.id,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1),s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.displayField","\u89C6\u56FE\u6811\u663E\u793A\u5B57\u6BB5"),prop:"detailId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field","\u5B57\u6BB5")},on:{change:t.deatilClick},model:{value:t.ruleFormData.detailId,callback:function(a){t.$set(t.ruleFormData,"detailId",a)},expression:"ruleFormData.detailId"}},t._l(t.detailList,function(a,l){return s("el-option",{key:a.fieldid+"&"+a.joinfieldid,attrs:{value:a.fieldid+"&"+a.joinfieldid,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}},[s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])])}),1)],1)],1),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.disableMode","\u5F00\u542F\u7981\u7528\u6A21\u5F0F"),prop:"isDisable"}},[s("el-radio-group",{on:{input:t.inputRadio},model:{value:t.ruleFormData.isDisable,callback:function(a){t.$set(t.ruleFormData,"isDisable",a)},expression:"ruleFormData.isDisable"}},t._l(t.disableList,function(a,l){return s("el-radio",{key:l,attrs:{label:a.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name))+" ")])}),1)],1)],1)],1),t.ruleFormData.isDisable==1?s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.ifSet","\u8BBE\u7F6E\u6761\u4EF6"),prop:"ifSet"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.ifSet,callback:function(a){t.$set(t.ruleFormData,"ifSet",a)},expression:"ruleFormData.ifSet"}},t._l(t.ifSetList,function(a){return s("el-option",{key:a.id+"&"+a.joinfieldid,attrs:{value:a.id+"&"+a.joinfieldid,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)},nativeOn:{click:function(l){return t.ifClick(a)}}})}),1)],1)],1),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.form.value1","\u6761\u4EF6"),prop:"rulesValue"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.isSet},model:{value:t.ruleFormData.rulesValue,callback:function(a){t.$set(t.ruleFormData,"rulesValue",a)},expression:"ruleFormData.rulesValue"}},t._l(t.rulesList,function(a){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),t._l(t.cascadeList,function(a,l){return t.ruleFormData.ifSet!=""&&t.ruleFormData.ifSet!=null?s("el-col",{key:l,attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.form.value","\u503C"),prop:"conditional"}},[a.effecttype=="input"||a.effecttype=="textarea"||a.effecttype=="double"||a.effecttype=="currency"?s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.conditional,callback:function(n){t.$set(t.ruleFormData,"conditional",n)},expression:"ruleFormData.conditional"}}):a.effecttype=="select"||a.effecttype=="radio"||a.effecttype=="checkbox"||a.effecttype=="switch"?s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.conditional,callback:function(n){t.$set(t.ruleFormData,"conditional",n)},expression:"ruleFormData.conditional"}},t._l(t.getDictionary(a),function(n){return s("el-option",{key:n.code,attrs:{value:n.code,label:t.$i18nt(`Dynamics.${n.transkey}`,n.name)}})}),1):a.effecttype=="datepicker"?s("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"show-time":t.showTime(a),type:t.showTime?"datetime":"date","value-format":a.fieldformat,format:a.fieldformat},model:{value:t.ruleFormData.conditional,callback:function(n){t.$set(t.ruleFormData,"conditional",n)},expression:"ruleFormData.conditional"}}):a.effecttype=="fk"||a.effecttype=="about"||a.effecttype=="user"?s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.fetching,clearable:"",remote:"","reserve-keyword":"",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD","remote-method":t.searchData},model:{value:t.ruleFormData.conditional,callback:function(n){t.$set(t.ruleFormData,"conditional",n)},expression:"ruleFormData.conditional"}},t._l(t.conditionalList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}},[s("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${n.transkey}`,n.name))+" ")])])}),1),s("i",{staticClass:"el-icon-search cao_setting",on:{click:function(n){return t.lookup(t.ind,a.value)}}})],1):a.effecttype=="participants"?s("div",{staticClass:"cao_about"},[s("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"remote-method":t.searchData,loading:t.fetching,clearable:"",filterable:"",remote:"","collapse-tags":"","reserve-keyword":""},model:{value:t.ruleFormData.conditional,callback:function(n){t.$set(t.ruleFormData,"conditional",n)},expression:"ruleFormData.conditional"}},t._l(t.conditionalList,function(n,o){return s("el-option",{key:o,attrs:{value:n.id,label:n.name}})}),1),s("i",{staticClass:"el-icon-search cao_setting",on:{click:function(n){return t.lookup(l,a.value)}}})],1):t._e()],1)],1):t._e()})],2):t._e(),s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.parentData","\u89C6\u56FE\u6811\u7236\u7EA7ID"),prop:"parentPid"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.parentPid,callback:function(a){t.$set(t.ruleFormData,"parentPid",a)},expression:"ruleFormData.parentPid"}},t._l(t.parentPidList,function(a){return s("el-option",{key:a.fieldid+"&"+a.joinfieldid,attrs:{value:a.fieldid+"&"+a.joinfieldid,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.labelTitle,prop:"operators"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:t.ruleFormData.operators,callback:function(a){t.$set(t.ruleFormData,"operators",a)},expression:"ruleFormData.operators"}},t._l(t.conditionList,function(a,l){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.childrenData","\u89C6\u56FE\u6811\u7236\u7EA7\u5173\u7CFB\u5B57\u6BB5"),prop:"parentId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.parentId,callback:function(a){t.$set(t.ruleFormData,"parentId",a)},expression:"ruleFormData.parentId"}},t._l(t.parentList,function(a,l){return s("el-option",{key:a.fieldid+"&"+a.joinfieldid,attrs:{value:a.fieldid+"&"+a.joinfieldid,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1),s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.association","\u89C6\u56FE\u6811\u5173\u7CFB\u672C\u8868\u5B57\u6BB5"),prop:"relevanceId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.relevanceId,callback:function(a){t.$set(t.ruleFormData,"relevanceId",a)},expression:"ruleFormData.relevanceId"}},t._l(t.relevanceList,function(a,l){return s("el-option",{key:a.columnname,attrs:{value:a.columnname,label:t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" "+t._s(a.effecttype)+" ")])}),1)],1)],1),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.labelTitle,prop:"operators"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:t.ruleFormData.operators,callback:function(a){t.$set(t.ruleFormData,"operators",a)},expression:"ruleFormData.operators"}},t._l(t.conditionList,function(a,l){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1),s("el-col",{attrs:{span:8}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.assChid","\u89C6\u56FE\u6811ID"),prop:"childrenId"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.childrenId,callback:function(a){t.$set(t.ruleFormData,"childrenId",a)},expression:"ruleFormData.childrenId"}},t._l(t.childrenList,function(a,l){return s("el-option",{key:a.fieldid+"&"+a.joinfieldid,attrs:{value:a.fieldid+"&"+a.joinfieldid,label:t.$i18nt(`Dynamics.${a.transkey}`,a.name)}})}),1)],1)],1)],1)],1)],1)],1)],1)},_sfc_staticRenderFns$2T=[],__component__$2T=chartbi.normalizeComponent(_sfc_main$2T,_sfc_render$2T,_sfc_staticRenderFns$2T,!1,null,"441b7062",null,null);const ViewTree=__component__$2T.exports,edit_vue_vue_type_style_index_0_scoped_226496ce_lang="",defaultList=[{code:1,name:"\u662F",transKey:"gd.state.yes"},{code:0,name:"\u5426",transKey:"gd.state.no"}],defaultSortList$1=[{code:"asc",name:"\u5347\u5E8F",transKey:"gd.view.asc"},{code:"desc",name:"\u964D\u5E8F",transKey:"gd.view.desc"}],_sfc_main$2S={props:{table:{type:Object,default:()=>({})}},data(){return{width:"1200px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{transKey:"",id:"",num:0,name:"",type:"1",explain:"",viewName:"",isDefault:0,isViewTree:0,order:100,sortOneField:"",sortOneOrder:"asc",sortTwoField:"",sortTwoOrder:"asc",isDoubleClick:0},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],viewName:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"},{pattern:/^[a-zA-Z]([a-zA-Z0-9]+)?$/,message:this.$i18nt("gd.view.viewNameTip","\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")}],type:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],isDefault:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],order:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},isViewType:null,viewTree:{},defaultList,defaultSortList:defaultSortList$1,list:[],tableFieldList:[],rulesList:[],queryList:[],filterList:{},buttonRule:[],lodaData:{}}},computed:{formatDict(){return this.$options.filters.dictData("time_longshort")},title(){return this.record?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E")},disabled(){return!!this.record},sortField(){return this.tableFieldList.filter(i=>i.effecttype=="about"&&i.columnname==(i.relations+"_abouttable").toLowerCase()?!1:!(i.effecttype=="user"||i.effecttype=="fk"||i.effecttype=="about"||i.effecttype=="participants"))},plugFilters(){return{referencefiled:"",referencetable:this.table.tablename,checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:this.table.tablename,type:"1",value:"",values:[],list:[]}},...chartbi.mapGetters(["primaryColor"])},components:{ViewList,ViewQuery,FlowsFilter:system_duplicatechecking.FlowsFilter,ButtonRule,ViewTree,EffectTypeIcon:messages.EffectTypeIcon},methods:{okFilter(i){this.filterList={...i}},init(){this.confirmLoading=!0,Promise.all([this.getTableList(),this.getDetail()]).then(i=>{let t=[],s=[];this.record&&this.tableFieldList.forEach(a=>{if(!this.isChecked(a.id,this.lodaData.sysviewfields)){let l=this.lodaData.sysviewfields.filter(n=>n.fieldid==a.id)[0];if(l&&l.type==1){let n=this.$i18nt(`Dynamics.${a.transkey}`,a.columncomment),o=this.$i18nt(`Dynamics.${l.transkey}`,l.name),r=l.align?l.align.split("&"):[];const d=Object.assign({...a},{order:l.order,num:l.width,aliastranskey:l.transkey?l.transkey:null,alias:n===o?"":o,orderconfig:l.orderconfig==1,gatherconfig:l.gatherconfig==1,columnname:l.field.columnname,codegenid:l.field.codegenid,maxtagcount:l.maxtagcount?l.maxtagcount:2,fkrelations:`${n} -- ${a.columnname}`,fkEffectType:a.effecttype,transkey:a.transkey,operate:"edit",aliasold:o,align:r[0]?r[0]:"left",visible:r[1]?r[1]==1:!0,displaymode:r[2]?r[2]:"none",displayprefix:r[3]?r[3]:"none",preview:r[4]?r[4]==="true":!0,download:r[5]?r[5]==="true":!0,format:r[6]?r[6]:String(a.fieldformat),hyperlink:r[7]?r[7]==="true":!1});t.push(d)}}if(a.children&&a.children.length>0&&a.children.forEach(l=>{if(!this.isChecked(l.id+"-"+a.id,this.lodaData.sysviewfields)){let n=this.lodaData.sysviewfields.filter(o=>(o.type==2?o.joinfieldid+"-"+o.fieldid:o.fieldid)==l.id+"-"+a.id)[0];if(n){let o=this.$i18nt(`Dynamics.${a.transkey}`,a.columncomment),r=this.$i18nt(`Dynamics.${l.transkey}`,l.columncomment),d=this.$i18nt(`Dynamics.${n.transkey}`,n.name),u=n.align?n.align.split("&"):[];const p=Object.assign({...l},{order:n.order,num:n.width,aliastranskey:n.transkey?n.transkey:null,alias:r===d?"":d,id:l.id+"-"+a.id,orderconfig:n.orderconfig==1,gatherconfig:n.gatherconfig==1,fkrelations:`${o} -- ${a.columnname}`,fkEffectType:a.effecttype,maxtagcount:n.maxtagcount?n.maxtagcount:2,transkey:l.transkey,operate:"edit",aliasold:d,align:u[0]?u[0]:"left",visible:u[1]?u[1]==1:!0,displaymode:u[2]?u[2]:"none",displayprefix:u[3]?u[3]:"none",preview:u[4]?u[4]==="true":!0,download:u[5]?u[5]==="true":!0,format:u[6]?u[6]:String(l.fieldformat),hyperlink:u[7]?u[7]==="true":!1});t.push(p)}}}),!this.isChecked(a.id,this.lodaData.sysviewqueries)){let l=this.lodaData.sysviewqueries.filter(o=>o.fieldid==a.id)[0];const n=Object.assign({...a},{order:l.order,displaystyle:l.displaystyle!==void 0?l.displaystyle:0,children:null,options:Object.assign({...l.options},{fieldFiltering:!0,columnName:a.columnname,effectType:a.effecttype,defaultValue:["inputnumber","double","currency"].includes(a.effecttype)&&l.options.defaultValue===""?void 0:l.options.defaultValue})});s.push(n)}}),t=chartbi.sort(t),s=chartbi.sort(s),this.list=[...t],this.queryList=[...s],this.$refs.viewList.init(this.list),this.$refs.viewQuery.init(this.queryList),this.confirmLoading=!1})},getDetail(){return this.record?system_fieldsecurity.sysViewDetails({id:this.record}).then(i=>{if(i.code===200){this.rulesList=i.data.ruleconfig?JSON.parse(i.data.ruleconfig):[];let t=i.data.sysviewqueries?i.data.sysviewqueries:[];t.forEach((a,l)=>{if(!a.options)t[l].options={effectType:"",fieldFormat:"",displayStyle:0,defaultValue:"",defaultValueList:[],filter:[],hidden:!1,required:!1,openWidth:80,widthUnit:"%",quick:!1,labelWidth:120,viewdeId:"",filterConfig:null,defaultInterval:[{type:"interval",value:""},{type:"equal",value:""}]};else{const n=typeof a.options=="string"?JSON.parse(a.options):a.options;t[l].options=Object.assign(n,{fieldFormat:n.fieldFormat!==void 0?n.fieldFormat:"2",openWidth:n.openWidth!==void 0?n.openWidth:80,widthUnit:n.widthUnit!==void 0?n.widthUnit:"%",labelWidth:n.labelWidth!==void 0?n.labelWidth:120,viewdeId:n.viewdeId!==void 0?n.viewdeId:"",filterConfig:null})}}),this.lodaData=Object.assign(i.data,{sysviewqueries:[...t]}),this.filterList=i.data.filterconfig?JSON.parse(i.data.filterconfig):JSON.parse(JSON.stringify(this.plugFilters));const s=i.data.defaultsort?JSON.parse(i.data.defaultsort):[];this.buttonRule=i.data.buttonrule?JSON.parse(i.data.buttonrule):[],this.viewTree=i.data.viewtree?JSON.parse(i.data.viewtree):{},this.isViewType=i.data.type,this.ruleFormData={num:i.data.frozencolumn,transKey:i.data.transkey,id:i.data.id,name:i.data.name,type:String(i.data.type),explain:i.data.explain,viewName:i.data.viewname,isDefault:i.data.isdefault?i.data.isdefault:0,isViewTree:i.data.isviewtree,order:i.data.order,isDoubleClick:i.data.isdoubleclick,sortOneField:s[0]?s[0].sortField:"",sortOneOrder:s[0]?s[0].sortOrder:"asc",sortTwoField:s[1]?s[1].sortField:"",sortTwoOrder:s[1]?s[1].sortOrder:"asc"}}return i}):new Promise(i=>{i()})},getTableList(){return messages.onlineFormGetCodeGenerateList({codeGenId:this.table.id}).then(i=>(i.code===200&&(this.tableFieldList=i.data),i))},selFilter(){this.$refs.flowsFilter.init(this.filterList)},okSelTable(i){this.list=[...i]},saveQuery(i){this.queryList=[...i]},saveQueryRules(i){this.rulesList=[...i]},selBtnRules(i){this.$refs.viewBtnRules.init(i)},delBtnRules(i){this.buttonRule=this.buttonRule.filter(t=>t.id!==i.id)},okBtnRules(i){let t=[...this.buttonRule];i.key==="1"?t=t.concat([Object.assign(i,{key:"2"})]):t.forEach((a,l)=>{a.id===i.id&&(t[l]=Object.assign(i,{key:"2"}))}),this.buttonRule=[...t]},changeType(i){this.isViewType=i==1?1:i==2?2:null},onChange(i){this.ruleFormData.isViewTree=i},configSidebar(){this.$refs.viewTrees.open(this.viewTree)},okTree(i){this.viewTree=i},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(i){this.record=i,this.list=[],this.lodaData={},this.queryList=[],this.buttonRule=[],this.visible=!0,this.viewTree={},this.ruleFormData={num:0,name:"",type:"1",explain:"",viewName:chartbi.uuid(8,!1),isDefault:0,isViewTree:0,order:100,sortOneField:"",sortOneOrder:"asc",sortTwoField:"",sortTwoOrder:"asc",transKey:"",id:"",isDoubleClick:1},this.isViewType=this.ruleFormData.type==1?1:this.ruleFormData.type==2?2:null,this.$nextTick(()=>{this.filterList=JSON.parse(JSON.stringify(this.plugFilters)),this.init()})},isChecked(i,t){return t.every((s,a,l)=>(s.type==2?s.joinfieldid+"-"+s.fieldid:s.fieldid)!=i)},isCheckedFilters(i,t){return t.every((s,a,l)=>s.id!=i)},isCheckedSysViewFilters(i,t){return t.every((s,a,l)=>s.columnid!=i)},closed(){this.fullscreen=!1,this.visible=!1},add(){let i=[],t=[],s=[];this.list.forEach((r,d)=>{let u=String(r.id).split("-"),p=`${r.align}&${r.visible?1:0}&${r.displaymode}&${r.displayprefix}&${r.preview}&${r.download}&${r.format}&${r.hyperlink}`,h={name:r.alias==""?r.columncomment:r.alias,width:r.num,order:d,type:u.length>1?2:1,fieldid:u.length>1?r.joinfieldid:u[0],jointableid:r.codegenid,joinfieldid:u[0],orderconfig:r.orderconfig?1:0,gatherconfig:r.gatherconfig?1:0,maxtagcount:r.maxtagcount,align:p};i.push(h)}),this.queryList.forEach((r,d)=>{let u={querytype:r.effecttype=="fk"?2:1,name:r.columncomment,fieldid:r.id,jointableid:r.codegenid,joinfieldid:r.id,order:d,displaystyle:r.displaystyle,options:JSON.stringify(r.options)};t.push(u)}),this.ruleFormData.sortOneField!==""&&s.push({sortField:this.ruleFormData.sortOneField,sortOrder:this.ruleFormData.sortOneOrder}),this.ruleFormData.sortTwoField!==""&&s.push({sortField:this.ruleFormData.sortTwoField,sortOrder:this.ruleFormData.sortTwoOrder});let a=this.filterList.list[0],l=0;this.filterList.list.forEach(r=>{l+=r.list.length});let n=a&&this.filterList.list.length===1&&a.referencefiled===""&&a.referencetable===""&&a.list.length>0?Object.assign(a,{columnid:0}):this.filterList,o={syscodegenid:this.table.id,name:this.ruleFormData.name,type:this.ruleFormData.type,explain:this.ruleFormData.explain,frozencolumn:this.ruleFormData.num,isdefault:this.ruleFormData.isDefault,viewname:this.ruleFormData.viewName,order:this.ruleFormData.order,sysviewfields:i,filterconfig:JSON.stringify(n),sysviewqueries:t,defaultsort:JSON.stringify(s),isdoubleclick:this.ruleFormData.isDoubleClick,viewtree:this.ruleFormData.isViewTree?JSON.stringify(this.viewTree):JSON.stringify({}),isviewtree:this.ruleFormData.isViewTree?1:0,ruleconfig:JSON.stringify(this.rulesList),buttonrule:JSON.stringify(this.buttonRule)};system_fieldsecurity.sysViewAdd(o).then(r=>{r.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25:")+r.message),this.confirmLoading=!1})},edit(i=1){let t=[],s=[],a=[];this.list.forEach((d,u)=>{let p=String(d.id).split("-"),h=`${d.align}&${d.visible?1:0}&${d.displaymode}&${d.displayprefix}&${d.preview}&${d.download}&${d.format}&${d.hyperlink}`;if(this.isChecked(d.id,this.lodaData.sysviewfields)){let f={id:0,name:d.alias==""?d.columncomment:d.alias,width:d.num,order:u,type:p.length>1?2:1,fieldid:p.length>1?d.joinfieldid:p[0],jointableid:d.codegenid,joinfieldid:p[0],orderconfig:d.orderconfig?1:0,gatherconfig:d.gatherconfig?1:0,maxtagcount:d.maxtagcount,align:h};t.push(f)}else{let f=this.lodaData.sysviewfields.filter(m=>d.id==(m.type==1?m.fieldid:m.joinfieldid+"-"+m.fieldid))[0];f.width=d.num,f.order=u,f.name=d.alias==""?d.columncomment:d.alias,f.orderconfig=d.orderconfig?1:0,f.gatherconfig=d.gatherconfig?1:0,f.maxtagcount=d.maxtagcount?d.maxtagcount:2,f.align=h,t.push(f)}}),this.lodaData.sysviewfields.forEach(d=>{let u=d.type==1?d.fieldid:d.joinfieldid+"-"+d.fieldid;this.isCheckedFilters(u,this.list)&&(d.statecodes=0,t.push(d))}),this.queryList.forEach((d,u)=>{if(this.isChecked(d.id,this.lodaData.sysviewqueries)){let p={id:0,querytype:d.effecttype=="fk"?2:1,name:d.columncomment,fieldid:d.id,jointableid:d.codegenid,joinfieldid:d.id,order:u,displaystyle:d.displaystyle,options:JSON.stringify(d.options)};s.push(p)}else{let p=this.lodaData.sysviewqueries.filter(h=>h.fieldid==d.id)[0];p.order=u,p.displaystyle=d.displaystyle,p.options=JSON.stringify(d.options),s.push(p)}}),this.lodaData.sysviewqueries.forEach(d=>{this.isCheckedFilters(d.fieldid,this.queryList)&&(d.statecodes=0,s.push(Object.assign({...d},{options:""})))}),this.ruleFormData.sortOneField!==""&&a.push({sortField:this.ruleFormData.sortOneField,sortOrder:this.ruleFormData.sortOneOrder}),this.ruleFormData.sortTwoField!==""&&a.push({sortField:this.ruleFormData.sortTwoField,sortOrder:this.ruleFormData.sortTwoOrder});let l=this.filterList.list[0],n=0;this.filterList.list.forEach(d=>{n+=d.list.length});let o=l&&this.filterList.list.length===1&&l.referencefiled===""&&l.referencetable===""&&l.list.length>0&&n===0?Object.assign(l,{columnid:0}):this.filterList;const r=Object.assign({...this.lodaData},{name:this.ruleFormData.name,type:this.ruleFormData.type,explain:this.ruleFormData.explain,frozencolumn:this.ruleFormData.num,isdefault:this.ruleFormData.isDefault,viewname:this.ruleFormData.viewName,order:this.ruleFormData.order,isdoubleclick:this.ruleFormData.isDoubleClick,sysviewfields:[...t],sysviewqueries:[...s],filterconfig:JSON.stringify(o),defaultsort:JSON.stringify(a),viewtree:this.ruleFormData.isViewTree?JSON.stringify(this.viewTree):JSON.stringify({}),isviewtree:this.ruleFormData.isViewTree?1:0,ruleconfig:JSON.stringify(this.rulesList),buttonrule:JSON.stringify(this.buttonRule)});system_fieldsecurity.sysViewEdit(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),i==1?this.closed():setTimeout(()=>{this.init()},50)):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25:")+d.message),this.confirmLoading=!1})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(i=>{if(i){if({...this.ruleFormData},this.list.length===0){this.$message.error(this.$i18nt("gd.view.addColumnTip","\u8BF7\u914D\u7F6E\u663E\u793A\u5217")),this.confirmLoading=!1;return}const t=this.table.isvirtualtable===1,s=this.tableFieldList.filter(n=>n.isprimarykey===1)[0];if(t&&!s){this.$message.error(this.$i18nt("gd.view.tablePrimaryKeyTip","\u8868\u672A\u8BBE\u7F6E\u4E3B\u952E\u5B57\u6BB5")),this.confirmLoading=!1;return}const a=this.list.filter(n=>{const o=s&&s.columnname?s.columnname:"";return n.columnname===o})[0];if(t&&!a){this.$message.error(this.$i18nt("gd.view.columnPrimaryKeyTip","\u663E\u793A\u5217\u672A\u914D\u7F6E\u4E3B\u952E\u5B57\u6BB5")),this.confirmLoading=!1;return}if(this.queryList.filter(n=>n.options&&!n.options.fieldFiltering).length>0){this.$message.error("\u8BF7\u8865\u5145\u67E5\u8BE2\u6761\u4EF6\u5B57\u6BB5\u6570\u636E\uFF01"),this.confirmLoading=!1;return}if(this.ruleFormData.isViewTree==!0&&Object.keys(this.viewTree).length==0){this.$message.error(this.$i18nt("gd.view.pleaseConfig","\u8BF7\u914D\u7F6E\u89C6\u56FE\u6811")),this.confirmLoading=!1;return}this.record?this.edit():this.add()}else this.confirmLoading=!1})},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()},getDictionary(i){return this.$options.filters.dictData(i)},getsortField(i){const t=this.ruleFormData[i];return this.sortField.filter(s=>s.columnName!==t)},lookupSeled(i){this.ruleFormData.name=i.defaulttext}}};var _sfc_render$2S=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!0,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.closed}},[s("template",{slot:"title"},[s("gd-modal-title",{attrs:{title:t.title,fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading,showClose:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.toggleFullscreen}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[t.visible?s("div",{staticClass:"view-config"},[s("ViewList",{ref:"viewList",attrs:{tableFieldList:t.tableFieldList,table:t.table,ruleFormData:t.ruleFormData,fullscreen:t.fullscreen,list:t.list},on:{ok:t.okSelTable}}),s("ViewQuery",{ref:"viewQuery",attrs:{tableFieldList:t.tableFieldList,table:t.table,ruleFormData:t.ruleFormData,fullscreen:t.fullscreen,rulesList:t.rulesList},on:{okRules:t.saveQueryRules,ok:t.saveQuery}}),s("div",{staticClass:"config-item config-items"},[s("div",{staticClass:"t"},[s("div",{staticClass:"tls"},[t._v(t._s(t.$i18nt("gd.view.basicInformation","\u57FA\u7840\u4FE1\u606F")))]),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.selFilter}},[t._v(" "+t._s(t.$i18nt("gd.view.filterConditions","\u8FC7\u6EE4\u6761\u4EF6"))+" ")])],1),s("div",{staticClass:"b"},[s("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"left",model:t.ruleFormData,size:"mini",rules:t.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-form-item",{attrs:{label:t.$i18nt("gd.view.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[s("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.record,expression:"!record"}],attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}}),t.record&&t.ruleFormData.transKey?s("gd-translation",{ref:"gdTranslation",attrs:{keyI18n:"transKey",recordData:t.ruleFormData,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.view.viewName","\u89C6\u56FE\u540D\u79F0"),prop:"viewName"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.viewName,callback:function(a){t.$set(t.ruleFormData,"viewName",a)},expression:"ruleFormData.viewName"}})],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.view.type","\u7C7B\u578B"),prop:"type"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.changeType},model:{value:t.ruleFormData.type,callback:function(a){t.$set(t.ruleFormData,"type",a)},expression:"ruleFormData.type"}},t._l(t.getDictionary("view_type"),function(a,l){return s("el-option",{key:a.code,attrs:{value:a.code,label:t.$i18nt(`Dynamics.${a.transKey}`,a.name)}})}),1)],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.view.default","\u662F\u5426\u9ED8\u8BA4"),prop:"isDefault"}},[s("el-radio-group",{model:{value:t.ruleFormData.isDefault,callback:function(a){t.$set(t.ruleFormData,"isDefault",a)},expression:"ruleFormData.isDefault"}},t._l(t.defaultList,function(a){return s("el-radio",{key:a.code,attrs:{label:a.code}},[t._v(" "+t._s(t.$i18nt(`${a.transKey}`,a.name))+" ")])}),1)],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.view.sort","\u6392\u5E8F"),prop:"order"}},[s("el-input-number",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"controls-position":"right",min:0,step:1},model:{value:t.ruleFormData.order,callback:function(a){t.$set(t.ruleFormData,"order",a)},expression:"ruleFormData.order"}})],1),s("el-form-item",{attrs:{label:t.$i18nt("gd.view.doubleClickEdit","\u53CC\u51FB\u7F16\u8F91"),prop:"isDoubleClick"}},[s("div",{staticClass:"tree_config"},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.primaryColor},model:{value:t.ruleFormData.isDoubleClick,callback:function(a){t.$set(t.ruleFormData,"isDoubleClick",a)},expression:"ruleFormData.isDoubleClick"}})],1)]),t.isViewType==1||t.isViewType==2?s("el-form-item",{attrs:{label:t.$i18nt("gd.view.switch","\u662F\u5426\u5F00\u542F\u89C6\u56FE\u6811"),prop:"isViewTree"}},[s("div",{staticClass:"tree_config"},[s("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.primaryColor},on:{change:t.onChange},model:{value:t.ruleFormData.isViewTree,callback:function(a){t.$set(t.ruleFormData,"isViewTree",a)},expression:"ruleFormData.isViewTree"}}),t.ruleFormData.isViewTree?s("a",{attrs:{href:"javascript:;"},on:{click:t.configSidebar}},[t._v(" "+t._s(t.$i18nt("gd.view.configuration","\u914D\u7F6E"))+" ")]):t._e()],1)]):t._e(),s("el-form-item",{attrs:{label:t.$i18nt("gd.view.explain","\u8BF4\u660E"),prop:"explain"}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",rows:2},model:{value:t.ruleFormData.explain,callback:function(a){t.$set(t.ruleFormData,"explain",a)},expression:"ruleFormData.explain"}})],1),s("el-divider"),s("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:t.$i18nt("gd.view.sortBy","\u6392\u5E8F\u4F9D\u636E")}},[s("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortOneField"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:""},model:{value:t.ruleFormData.sortOneField,callback:function(a){t.$set(t.ruleFormData,"sortOneField",a)},expression:"ruleFormData.sortOneField"}},t._l(t.getsortField("sortTwoField"),function(a,l){return s("el-option",{key:a.columnname,attrs:{value:a.columnname,label:t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}},[s("EffectTypeIcon",{attrs:{effectType:a.effecttype}}),s("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" "+t._s(a.columnname)+" ")])],1)}),1)],1),s("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortOneOrder"}},[s("el-radio-group",{model:{value:t.ruleFormData.sortOneOrder,callback:function(a){t.$set(t.ruleFormData,"sortOneOrder",a)},expression:"ruleFormData.sortOneOrder"}},t._l(t.defaultSortList,function(a){return s("el-radio",{key:a.code,attrs:{label:a.code}},[t._v(" "+t._s(t.$i18nt(`${a.transKey}`,a.name))+" ")])}),1)],1)],1),s("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:t.$i18nt("gd.view.secondBasis","\u7B2C\u4E8C\u4F9D\u636E")}},[s("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortTwoField"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:""},model:{value:t.ruleFormData.sortTwoField,callback:function(a){t.$set(t.ruleFormData,"sortTwoField",a)},expression:"ruleFormData.sortTwoField"}},t._l(t.getsortField("sortOneField"),function(a,l){return s("el-option",{key:a.columnname,attrs:{value:a.columnname,label:t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment)}},[s("EffectTypeIcon",{attrs:{effectType:a.effecttype}}),s("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.columncomment))+" ("+t._s(a.columnname)+") ")])],1)}),1)],1),s("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortTwoOrder"}},[s("el-radio-group",{model:{value:t.ruleFormData.sortTwoOrder,callback:function(a){t.$set(t.ruleFormData,"sortTwoOrder",a)},expression:"ruleFormData.sortTwoOrder"}},t._l(t.defaultSortList,function(a){return s("el-radio",{key:a.code,attrs:{label:a.code}},[t._v(" "+t._s(t.$i18nt(`${a.transKey}`,a.name))+" ")])}),1)],1)],1),s("el-divider"),s("el-form-item",{staticStyle:{"margin-bottom":"6px !important"},attrs:{label:t.$i18nt("gd.view.btnRules","\u6309\u94AE\u89C4\u5219")}},[s("div",{staticClass:"btn-config"},[s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.selBtnRules(null)}}},[t._v(" "+t._s(t.$i18nt("gd.form.addBtnRuleConfig","\u65B0\u589E\u6309\u94AE\u89C4\u5219"))+" ")])],1)]),t.buttonRule.length>0?s("div",{staticClass:"btn-config-list"},[t._l(t.buttonRule,function(a){return[s("div",{staticClass:"item flex"},[s("div",{staticClass:"sku"},[s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{"open-delay":150,effect:"dark",content:t.$i18nt(`Dynamics.${a.transKey}`,a.name),placement:"top"}},[s("div",{staticClass:"line1"},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.name))+" ")])])],1),s("i",{staticClass:"el-icon-edit active-color",on:{click:function(l){return t.selBtnRules(a)}}}),s("el-popconfirm",{staticStyle:{margin:"0 4px"},attrs:{"confirm-button-text":t.$i18nt("gd.btn.confirm","\u786E\u8BA4"),"cancel-button-text":t.$i18nt("gd.btn.cancel","\u53D6\u6D88"),icon:"el-icon-warning","icon-color":"#faad14",title:t.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?")},on:{confirm:function(l){return t.delBtnRules(a)}}},[s("i",{staticClass:"el-icon-delete rdelete",attrs:{slot:"reference"},slot:"reference"})])],1)]})],2):t._e()],1)],1)])],1):t._e()])],2),t.visible?s("FlowsFilter",{ref:"flowsFilter",attrs:{type:2,table:t.table},on:{ok:t.okFilter}}):t._e(),s("ButtonRule",{ref:"viewBtnRules",attrs:{table:t.table,loadData:t.tableFieldList,id:t.record?t.record:""},on:{ok:t.okBtnRules}}),s("ViewTree",{ref:"viewTrees",attrs:{table:t.table},on:{ok:t.okTree}})],1)},_sfc_staticRenderFns$2S=[],__component__$2S=chartbi.normalizeComponent(_sfc_main$2S,_sfc_render$2S,_sfc_staticRenderFns$2S,!1,null,"226496ce",null,null);const editViewConfig=__component__$2S.exports,copy_vue_vue_type_style_index_0_scoped_04d7bfab_lang="",_sfc_main$2R={props:{type:{type:[String,Number],default:1}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,spinning:!1,loadData:[],viewData:[],formData:[],detail:null,record:null,fullscreen:!1,width:"600px",arrTransKey:[],allTableData:[],langsAll:[],httpNumbe:0,ruleFormData:{},pattern:"/^[a-zA-Z]+$/"}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"80px"}}},...chartbi.mapGetters(["tableLists"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(i){this.httpNumbe=0,this.fullscreen=!1,this.record=i,this.visible=!0,this.spinning=!0,this.type==1?this.getViewDetail():this.getFormDetail()},getViewDetail(){return system_fieldsecurity.sysViewDetails({id:this.record}).then(i=>(i.success?(this.detail=Object.assign(i.data,{viewname:i.data.viewname+chartbi.uuid(2,!1,!1)}),this.spinning=!1,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData={name:this.detail.viewname,displayName:this.detail.name,type:String(this.detail.type),explain:this.detail.explain}},0)})):this.$message.error(i.message),i.data))},getFormDetail(){return system_fieldsecurity.sysFormDetails({id:this.record}).then(i=>(i.success?(this.detail=Object.assign(i.data,{name:i.data.name+chartbi.uuid(2,!1,!1)}),this.spinning=!1,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData={name:this.detail.name,displayName:this.detail.displayname,type:"4",explain:this.detail.explain}},0)})):this.$message.error(i.message),i.data))},handleSubmit(){this.$refs.ruleForm.validate(i=>{i&&(this.type==1?this.addView(this.ruleFormData):(this.spinning=!0,this.confirmLoading=!0,this.addForm(this.ruleFormData)))})},addView(i){let t=[],s=[];this.detail.sysviewfields.forEach((l,n)=>{let o={name:l.name,width:l.width,order:n,type:l.type,fieldId:l.fieldid,joinTableId:l.jointableid,joinFieldId:l.joinfieldid,orderConfig:l.orderconfig,gatherConfig:l.gatherconfig,maxTagCount:l.maxtagcount,align:l.align?l.align:"left&1&none&none"};t.push(o)}),this.detail.sysviewqueries.forEach((l,n)=>{if(l.field){let o={queryType:l.querytype,name:l.field.columncomment,fieldId:l.fieldid,joinTableId:l.jointableid,joinFieldId:l.joinfieldid,order:n,displayStyle:l.displaystyle,options:l.options};s.push(o)}});let a={syscodegenid:this.detail.syscodegenid,name:i.displayName,type:i.type,explain:i.explain,frozenColumn:this.detail.frozencolumn,isDefault:0,viewName:i.name,order:this.detail.order,sysViewFields:t,filterConfig:this.detail.filterconfig,sysViewQueries:s,defaultSort:this.detail.defaultsort,viewTree:this.detail.viewtree,isViewTree:this.detail.isviewtree,ruleConfig:this.detail.ruleconfig,buttonRule:this.detail.buttonrule};this.spinning=!0,this.confirmLoading=!0,system_fieldsecurity.sysViewAdd(a).then(l=>{l.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u64CD\u4F5C\u5931\u8D25")+l.message),this.spinning=!1,this.confirmLoading=!1})},async addForm(i){let t=JSON.parse(this.detail.formconfig);t.config=Object.assign({...t.config},{name:i.name,displayName:i.displayName,type:i.type,explain:i.explain,transKey:null});const s=l=>(l=l.filter((n,o)=>(n.langs!==void 0&&delete n.langs,n.options.columnName!==void 0&&n.options.transKey&&(n.options=Object.assign(n.options,{transKey:null})),["card","approval"].includes(n.type)&&n.options.transKey&&(n.options=Object.assign(n.options,{transKey:null})),["grid","tabs","collapse"].includes(n.type)&&n.columns.forEach(r=>{r.transKey=null,r.list=s(r.list)}),(n.type==="card"||n.type==="batch")&&(n.list=s(n.list)),n.type==="table"&&n.trs.forEach(r=>{r.tds.forEach(d=>{d.list=s(d.list)})}),!0)),l);t.list=await s(t.list);let a={name:i.name,displayName:i.displayName,type:i.type,explain:i.explain,sysCodeGenId:this.detail.syscodegenid,changeName:this.detail.changename,changeWeb:this.detail.changeweb,initName:this.detail.initname,initWeb:this.detail.initweb,width:this.detail.width,formConfig:JSON.stringify(Object.assign(t,{addTransKey:[],allTransKey:[]})),businessConfig:this.detail.businessconfig};this.spinning=!0,this.confirmLoading=!0,system_fieldsecurity.sysFormAdd(a).then(l=>{l.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u64CD\u4F5C\u5931\u8D25")+l.message),this.spinning=!1,this.confirmLoading=!1})},getAllTableData(){if(this.tableLists.length>0){this.allTableData=[...this.tableLists];return}messages.codeGenerateInformationList({busName:""}).then(i=>{i.success&&(this.allTableData=[...i.data])})},addTranslation(i){return sysTranslationAdd(i).then(t=>t)},handleCancel(){this.visible=!1,this.$refs.ruleForm.resetFields()},getDictionary(i){return this.$options.filters.dictData(i)},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}},created(){this.getAllTableData()}};var _sfc_render$2R=function(){var t=this,s=t._self._c;return s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.btn.copy"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,showClose:!0,emitFun:!0},on:{changeEvent:t.doEvent,toggleFullscreen:t.togglefullscreen,close:t.handleCancel},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}]},[s("div",{class:t.fullscreen?"modal-bodyq":"modal-body"},[s("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"left",model:t.ruleFormData},nativeOn:{submit:function(a){a.preventDefault()}}},[s("el-row",{attrs:{gutter:24}},[s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.view.displayName"),prop:"displayName",rules:[{required:!0,message:t.$i18nt("gd.placeholder.input")}]}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),clearable:""},model:{value:t.ruleFormData.displayName,callback:function(a){t.$set(t.ruleFormData,"displayName",a)},expression:"ruleFormData.displayName"}})],1)],1),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.type==1?t.$i18nt("gd.view.viewName"):t.$i18nt("gd.form.formName"),prop:"name",rules:[{required:!0,message:t.$i18nt("gd.placeholder.input")},{pattern:/^[a-zA-Z]+$/,message:t.$i18nt("gd.view.viewNameTip")}]}},[s("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),clearable:""},model:{value:t.ruleFormData.name,callback:function(a){t.$set(t.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1)],1),t.type==1?s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.view.type"),prop:"type",rules:[{required:!0,message:t.$i18nt("gd.placeholder.select")}]}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),clearable:""},model:{value:t.ruleFormData.type,callback:function(a){t.$set(t.ruleFormData,"type",a)},expression:"ruleFormData.type"}},t._l(t.getDictionary("view_type"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:a.name}})}),1)],1)],1):t._e(),t.type==2?s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.form.type"),prop:"type",rules:[{required:!0,message:t.$i18nt("gd.placeholder.select")}]}},[s("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),clearable:"",disabled:""},model:{value:t.ruleFormData.type,callback:function(a){t.$set(t.ruleFormData,"type",a)},expression:"ruleFormData.type"}},t._l(t.getDictionary("table_form_type"),function(a,l){return s("el-option",{key:l,attrs:{value:a.code,label:a.name}})}),1)],1)],1):t._e(),s("el-col",{attrs:{span:24}},[s("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.view.explain")}},[s("el-input",{attrs:{type:"textarea"},model:{value:t.ruleFormData.explain,callback:function(a){t.$set(t.ruleFormData,"explain",a)},expression:"ruleFormData.explain"}})],1)],1)],1)],1)],1)])],1)},_sfc_staticRenderFns$2R=[],__component__$2R=chartbi.normalizeComponent(_sfc_main$2R,_sfc_render$2R,_sfc_staticRenderFns$2R,!1,null,"04d7bfab",null,null);const copy=__component__$2R.exports,btnRelation_vue_vue_type_style_index_0_scoped_b7efa124_lang="",_sfc_main$2Q={props:{codeGenId:{type:[String,Number],default:""},type:{type:[String,Number],default:"1"}},data(){return{title:"\u89C6\u56FE\u6309\u94AE\u8BBE\u7F6E",fullscreen:!1,visible:!1,width:"900px",confirmLoading:!1,spinning:!1,closeList:[],loadData:[],allBtn:[],selectedKeys:[],btnList:[],checkAll:!1,indeterminate:!0,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],activeIndex:"0",selId:"0",changeChecked:!1}},computed:{isIndeterminate(){return this.closeList.length>0&&this.closeList.length<this.allBtn.length}},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(i){this.fullScreen=!1,this.loadData=[...i],this.title=this.type==1?this.$i18nt("gd.btnConfig.viewBtnSettings","\u89C6\u56FE\u6309\u94AE\u8BBE\u7F6E"):this.$i18nt("gd.btnConfig.formBtnSettings","\u8868\u5355\u6309\u94AE\u8BBE\u7F6E"),this.visible=!0,this.spinning=!0,Promise.all([this.getBtnList()]).then(t=>{this.loadData.forEach(s=>{let a=this.getCloseBtn(s);return s.close=[...a],s.initial=[...a],s}),this.closeList=this.loadData.length>0?[...this.loadData[0].close]:[],this.checkedOptions=[...this.closeList],this.spinning=!1})},belonging(i){let t="--",s=this.type==1?i.sysviewid:i.sysformidbyset,a=this.loadData.filter(l=>l.id==s);return a.length>0&&(t=a.length>0?this.type==1?a[0].name:a[0].displayname:""),t},getBtnList(){return system_fieldsecurity.sysButtonList({type:this.type,SysCodeGenId:this.codeGenId}).then(i=>{let t=[];return i.data.forEach((s,a)=>{i.data[a].belonging=this.belonging(s),t.push(s.id)}),this.btnList=i.data.filter(s=>s.parentid==null),this.allBtn=[...t],i.data})},select(i,t){this.selId!=i&&(this.selId=i,this.selectedKeys=t,this.closeList=this.loadData[parseInt(i)].close)},onCheckAllChange(i){let t=this.closeList.length===0?[...this.allBtn]:this.allBtn.length===this.closeList.length?[]:[...this.allBtn];this.closeList=[...t],this.loadData[parseInt(this.selId)].close=[...t]},handleCheckedCitiesChange(i){this.loadData[parseInt(this.selId)].close=[...i],this.closeList=[...i]},getCloseBtn(i){let t=[];return this.btnList.forEach(s=>{this.type==1&&s.sysviewid==i.id&&t.push(s.id),this.type==2&&s.sysformidbyset==i.id&&t.push(s.id)}),t},handleSubmit(){this.confirmLoading=!0,this.spinning=!0;let i=[];this.loadData.forEach(t=>{let s=this.btnFilter(t,1),a=this.btnFilter(t,0),l=s.concat(a);if(l.length>0){let n={type:this.type,componentId:t.id,btnS:l};i.push(n)}}),system_fieldsecurity.sysButtonSet(i).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+t.message),this.confirmLoading=!1,this.spinning=!1})},btnFilter(i,t){let s=[],a=[];return t==1?s=i.close.filter(l=>!i.initial.includes(l)):s=i.initial.filter(l=>!i.close.includes(l)),s.forEach(l=>{a.push({type:t,btnId:l})}),a},handleCancel(){this.visible=!1},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2Q=function(){var t=this,s=t._self._c;return s("div",[s("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){t.visible=a},closed:t.handleCancel}},[s("gd-modal-title",{attrs:{slot:"title",title:t.$i18nt("gd.btn.copy"),fullscreen:t.fullscreen,buttons:t.sysViewButtons,confirmLoading:t.confirmLoading,showClose:!0,closed:"handleCancel",toggleFullscreen:"togglefullscreen"},on:{changeEvent:t.doEvent},slot:"title"}),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}]},[s("div",{class:t.fullscreen?"modal-bodyq":"modal-body"},[s("div",{staticClass:"list"},[s("div",{staticClass:"l"},[s("div",{staticClass:"title"},[t._v(" "+t._s(t.type==1?t.$i18nt("gd.btnConfig.view"):t.$i18nt("gd.btnConfig.form"))+" ")]),s("div",{staticClass:"detail"},[s("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":t.activeIndex},on:{select:t.select}},[t._l(t.loadData,function(a,l){return[s("el-menu-item",{attrs:{index:String(l)}},[s("div",{staticClass:"line1"},[t._v(t._s(t.type==1?a.name:a.displayname))])])]})],2)],1)]),s("div",{staticClass:"r"},[s("div",{staticClass:"title more"},[s("div",{staticClass:"btn"},[s("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.onCheckAllChange},model:{value:t.changeChecked,callback:function(a){t.changeChecked=a},expression:"changeChecked"}},[t._v(" "+t._s(t.$i18nt("gd.btnConfig.btn"))+" ")])],1),s("div",{staticClass:"suo"},[t._v(" "+t._s(t.type==1?t.$i18nt("gd.btnConfig.belongingView"):t.$i18nt("gd.btnConfig.belongingForm"))+" ")]),s("div",{staticClass:"explain"},[t._v(t._s(t.$i18nt("gd.btnConfig.explain")))])]),s("div",{staticClass:"detail"},t._l(t.btnList,function(a,l){return s("div",{key:l,staticClass:"more"},[s("div",{staticClass:"btn"},[s("el-checkbox-group",{on:{change:t.handleCheckedCitiesChange},model:{value:t.closeList,callback:function(n){t.closeList=n},expression:"closeList"}},[s("el-checkbox",{attrs:{label:a.id}},[s("div",[t._v(t._s(a.displayname))])])],1)],1),s("div",{staticClass:"suo line1"},[t._v(t._s(a.belonging))]),s("div",{staticClass:"explain line1"},[t._v(t._s(a.description))])])}),0)])])])])],1)],1)},_sfc_staticRenderFns$2Q=[],__component__$2Q=chartbi.normalizeComponent(_sfc_main$2Q,_sfc_render$2Q,_sfc_staticRenderFns$2Q,!1,null,"b7efa124",null,null);const btnRelation=__component__$2Q.exports,main_vue_vue_type_style_index_0_scoped_2fd583bc_lang="",_sfc_main$2P={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[messages.tablesFilter,mixins$d],data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},data:[],disableBtn:[],loadData:i=>this.record.id===void 0?new Promise((t,s)=>{t({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):system_fieldsecurity.sysViewList({sysCodeGenId:this.record.id}).then(t=>(this.data=t.data,{pageNo:1,pageSize:40,totalRows:0,rows:t.data}))}},components:{editForm:editViewConfig,copy,btnRelation},computed:{getTableButtons(){return this.tableButtons.filter(i=>(i.show=!this.disableBtn.includes(i.displayName),!0))},...chartbi.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{relation(){this.$refs.btnRelation.open(this.data)},copyed(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.copy.open(this.selectedRowKeys[0])},add(){this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.editForm.open(this.selectedRowKeys[0])},refresh(){this.$refs.table.refresh()},editForm(i){this.$refs.editForm.open(i.id)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(i,t,s)=>{this.delHand(i,t,s)}})},delHand(i,t,s){if(i!=="confirm"){s();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,system_fieldsecurity.sysViewDelete({ids:this.selectedRowKeys.join(",")}).then(a=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,s(),a.success?(this.refresh(),this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+a.message)})},onSelectChange(i,t){if(this.selectedRowKeys=i,this.selectedRows=t,i.length===0){this.disableBtn=[];return}const s=t.filter(a=>a.viewname==="defView"||a.viewname==="queryView"||a.viewname==="relation")[0];this.disableBtn=s?["\u5220\u9664"]:[]},doEvent(i){let t=i.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2P=function(){var t=this,s=t._self._c;return s("div",[s("div",[s("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,"max-height":t.height,showPagination:!1,initialLoading:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:a,row:l}){return[s("gd-tooltip",{attrs:{rowKey:"name",row:l,highlight:"",transKey:`Dynamics.${l.transkey}`},on:{click:t.editForm}})]}},{key:"type",fn:function(a){return[s("el-tag",{style:t._f("dictColor")("view_type",a.row.type),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("view_type",a.row.type))+" ")])]}},{key:"isDefault",fn:function(a){return[a.row.isdefault==1?s("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):s("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})]}},{key:"operator",fn:function(){return[s("div",{staticClass:"gd-table-operator"},[s("div",{staticClass:"gd-table-operatorr"},[s("gd-btn-list",{attrs:{sysViewButtons:t.getTableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0}])})],1),s("editForm",{ref:"editForm",attrs:{table:t.record},on:{ok:t.refresh}}),s("btnRelation",{ref:"btnRelation",attrs:{codeGenId:this.record.id,type:1,loadData:t.data},on:{ok:t.refresh}}),s("copy",{ref:"copy",attrs:{type:1},on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$2P=[],__component__$2P=chartbi.normalizeComponent(_sfc_main$2P,_sfc_render$2P,_sfc_staticRenderFns$2P,!1,null,"2fd583bc",null,null);const viewConfig=__component__$2P.exports,mixins$c={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.displayName",prop:"displayName",label:"\u663E\u793A\u540D\u79F0",width:"260",type:"slot",slotType:"displayName",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.form.formName",prop:"name",width:"260",label:"\u8868\u5355\u540D\u79F0",align:"left",showOverflowTooltip:!0},{transKey:"gd.form.type",prop:"type",width:"200",type:"slot",slotType:"type",label:"\u8868\u5355\u7C7B\u578B",align:"left"},{transKey:"gd.form.explain",prop:"explain",minWidth:"200",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableForm:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableForm:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTableForm:delete"},{displayName:"\u590D\u5236",functionName:"copyed",show:!0,transKey:"gd.btn.copy",icon:"el-icon-document-copy",name:"sysTableForm:add"},{displayName:"\u8BBE\u7F6E\u6309\u94AE",functionName:"relation",show:!0,transKey:"gd.btn.setButton",icon:"el-icon-setting",name:"sysTableBtn:set"}]}}},main_vue_vue_type_style_index_0_scoped_318adace_lang="",_sfc_main$2O={props:{activeKey:{type:String,default:"page"},menus:{type:Array,default:()=>[]}},data(){return{}},methods:{selItem(i){i.key!==this.activeKey&&this.$emit("change",i.key)}}};var _sfc_render$2O=function(){var t=this,s=t._self._c;return s("div",{staticClass:"panel-menus"},[t._l(t.menus,function(a,l){return[s("div",{key:l,staticClass:"item",class:a.key===t.activeKey?"active-meuns":"",on:{click:function(n){return t.selItem(a)}}},[s("i",{staticClass:"gd-icons",class:[a.icon,a.key===t.activeKey?"active-color":""],on:{click:function(n){return t.selItem(a)}}}),s("div",{staticClass:"name",class:a.key===t.activeKey?"active-color":""},[t._v(t._s(t.$i18nt(`${a.transKey}`,a.name)))])])]})],2)},_sfc_staticRenderFns$2O=[],__component__$2O=chartbi.normalizeComponent(_sfc_main$2O,_sfc_render$2O,_sfc_staticRenderFns$2O,!1,null,"318adace",null,null);const operationMenus=__component__$2O.exports,abilityItems=[{type:"gridMenu",key:"",label:"\u5BAB\u683C\u83DC\u5355",icon:"el-icon-s-grid",transKey:"",options:{flexWidth:100,flexUnit:"%",spacing:0,columnsNumber:2,columnContextName:[],isShow:1,apiUrl:"",permission:"",blockHeight:void 0},css:{bjColor:"#fff",radius:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0],fontSize:16},menuList:[],fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"graphicMenu",key:"",label:"\u56FE\u6587\u83DC\u5355",icon:"gd-icon-liebiaoxingshi",transKey:"",options:{flexWidth:100,flexUnit:"%",spacing:0,columnContextName:[],isShow:1,apiUrl:"",permission:"",blockHeight:void 0},css:{color:"#333",bjColor:"#fff",radius:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0],fontSize:16},menuList:[],fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"btnGroup",key:"",label:"\u6309\u94AE",icon:"gd-icon-anniu",transKey:"gd.functionalcomponents.btnGroup",options:{limit:20,flexWidth:100,flexUnit:"%",btnType:"btn",delayDisabled:2e3},btnList:[],css:{bjColor:"#fff",padding:[9,15,9,15],margin:[0,0,0,0]},fieldContext:[],foreignContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"textSearch",key:"",label:"\u6587\u672C\u641C\u7D22",icon:"gd-icon-yulanmoban",transKey:"gd.functionalcomponents.textSearch",options:{placeholder:"\u8BF7\u8F93\u5165\u6587\u672C\u641C\u7D22",placeholderTransKey:null,searchBoundField:"",flexWidth:100,flexUnit:"%",heightMode:"fill",icon:"gd-icon-tubiaozhizuosvg-15"},css:{bjColor:"#fff",fontSize:16,color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],fontWeight:"normal",align:"left"},interac:{formMode:"componentMethod",componentKey:"",componentFunction:"",formModeDisable:!0,customApi:""},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"currentTime",key:"",label:"\u65E5\u671F\u65F6\u95F4",icon:"gd-icon-riqi",transKey:"gd.functionalcomponents.currentTime",options:{format:"2",flexWidth:100,flexUnit:"%",timer:!1,columnContextName:[]},css:{bjColor:"#fff",fontSize:12,color:"#333",align:"left",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],lineHeight:18,fontWeight:"normal"},fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"currentUser",key:"",label:"\u7528\u6237",icon:"gd-icon-user",transKey:"gd.functionalcomponents.currentUser",options:{flexWidth:100,flexUnit:"%",linkUrl:"",locationLayout:"level",nicknameShow:!0},css:{bjColor:"#fff",fontSize:12,color:"#333",radius:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0]},interac:{formMode:"componentMethod",componentKey:"",componentFunction:"",formModeDisable:!0,customApi:""},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"pagination",key:"",label:"\u5206\u9875\u5668",icon:"gd-icon-shuzi",transKey:"gd.functionalcomponents.pagination",options:{flexWidth:100,flexUnit:"%",small:1,pattern:"normal",align:"left",isbackground:!1},content:{hide:!1,total:0,pagesize:50,currentpage:1},interac:{formMode:"systemsMethod",sysFunctionName:"sysBaseAdd",componentKey:"",componentFunction:"",functionName:"",table:"",viewList:[],tableComponents:"",tableComponentsType:"view",fromList:[],callback:!1,callbackComponents:"",callbackFunction:"",customApi:""},css:{bjColor:"#fff",radius:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"calendar",key:"",label:"\u65E5\u5386",icon:"gd-icon-rili1",transKey:"gd.functionalcomponents.calendar",options:{flexWidth:100,flexUnit:"%",isbackground:!1,sysFunctionApi:"",widthEl:void 0,searchBoundField:""},interac:{formMode:"componentMethod",componentKey:"",componentFunction:"",formModeDisable:!0,functionName:""},css:{radius:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}}],basicsItems=[{type:"segment",key:"",label:"\u8F85\u52A9\u5206\u5272",icon:"gd-icon-fuzhufenge",transKey:"gd.basiccomponents.segment",options:{flexWidth:100,flexUnit:"%",fixedHeight:20},css:{bjColor:"#fff"},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"divider",key:"",label:"\u5206\u5272\u7EBF",icon:"gd-icon-fengexian",transKey:"gd.basiccomponents.divider",options:{flexWidth:100,flexUnit:"%",title:"",direction:"horizontal",position:"center",transKey:null},css:{fontSize:14,color:"#333",padding:[0,0,0,0],margin:[24,0,24,0],bjColor:"#fff"},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"textContent",key:"",label:"\u6587\u672C\u5185\u5BB9",icon:"gd-icon-wenbenneirong",transKey:"gd.basiccomponents.textContent",options:{title:"\u6587\u672C\u5185\u5BB9",transKey:null,flexWidth:100,flexUnit:"%",columnContextName:[],foreignContextName:""},css:{maxLineClamp:void 0,bjColor:"transparent",fontSize:12,color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],fontWeight:"normal",radius:[0,0,0,0],align:"left",lineHeight:18,letterSpacing:0,fontStyle:"normal",textDecoration:"none"},fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"title",key:"",label:"\u6807\u9898",icon:"gd-icon-ziti",transKey:"gd.basiccomponents.title",options:{flexWidth:100,flexUnit:"%",title:"\u6807\u9898",transKey:null,subtransKey:null,subtitle:"\u526F\u6807\u9898",subtitleShow:!0,locationLayout:"level",subFontSize:12,subColor:"#333",sublineHeight:18,rightIconShow:!1,columnContextName:[],subtransContextName:[],foreignContextName:""},css:{bjColor:"transparent",fontSize:16,color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],fontWeight:"normal",lineHeight:24},interac:{formMode:"componentMethod",componentKey:"",componentFunction:"",formModeDisable:!0,customApi:""},fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"fonticon",key:"",label:"\u5B57\u4F53\u56FE\u6807",icon:"gd-icon-zititubiao",transKey:"gd.basiccomponents.fonticon",options:{icon:"gd-icon-group-line",flexWidth:100,flexUnit:"%",columnContextName:[],foreignContextName:"",delayDisabled:2e3},css:{bjColor:"transparent",fontSize:16,color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],fontWeight:"normal",align:"center",lineHeight:24},fieldContext:[],foreignContext:[],interac:{formMode:"systemsMethod",sysFunctionName:"",sysFunctionApi:"",componentKey:"",componentFunction:"",functionName:"",table:"",viewList:[],tableComponents:"",tableComponentsType:"view",fromList:[],callback:!1,callbackTwo:!1,callbackComponents:"",callbackFunction:"",customApi:""},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"image",key:"",label:"\u56FE\u7247",icon:"gd-icon-tupian",transKey:"gd.basiccomponents.image",options:{flexWidth:100,flexUnit:"%",columnContextName:[],fileType:"upload",filePath:"",fileId:"",imgLinkUrl:"",widthEl:void 0,height:void 0,objectFit:"contain"},css:{bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},interac:{formMode:"componentMethod",componentKey:"",componentFunction:"",formModeDisable:!0,customApi:""},fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"tag",key:"",label:"\u6807\u7B7E",icon:"gd-icon-dagang_biaoqianzu",transKey:"gd.basiccomponents.tag",options:{title:"\u6807\u7B7E",transKey:null,color:"",size:"small",effect:"light",flexWidth:100,flexUnit:"%",columnContextName:[],dictTypeCode:""},css:{padding:[0,10,0,10],margin:[0,0,0,0],radius:[0,0,0,0],align:"left",fontSize:12},fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"link",key:"",label:"\u94FE\u63A5",icon:"gd-icon-lianjie",transKey:"gd.basiccomponents.link",options:{flexWidth:100,flexUnit:"%",title:"\u94FE\u63A5",transKey:null,linkUrl:"",columnContextName:[]},css:{padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],align:"left",fontSize:14,fontStyle:"normal",textDecoration:"none",bjColor:"transparent",color:"#1456f0",radius:[0,0,0,0]},interac:{formMode:"componentMethod",componentKey:"",componentFunction:"",formModeDisable:!0,customApi:""},fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"QRcode",key:"",label:"\u4E8C\u7EF4\u7801",icon:"gd-icon-erweima",transKey:"gd.basiccomponents.QRcode",options:{flexWidth:100,flexUnit:"%",urlQRcode:"",columnContextName:[],height:132,correctLevel:"M",marginSpacing:0,flexAlign:"center"},css:{bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},interac:{formMode:"componentMethod",componentKey:"",componentFunction:"",formModeDisable:!0,customApi:""},fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"banner",key:"",label:"\u8F6E\u64AD\u56FE",icon:"gd-icon-shouyelunbotu",transKey:"gd.basiccomponents.banner",options:{flexWidth:100,flexUnit:"%",height:300,autoplay:!0,interval:5e3,indicatorPosition:"inside",indicatorType:"block",arrow:"hover",bannerType:"none",direction:"horizontal",loop:!0,objectFit:"contain",indicatorColor:"#FFF",indicatorActiveColor:"#C0C4CC",previousMargin:0,nextMargin:0,columnContextName:[],columnUsageType:"display",columnUsageName:""},bannerList:[],css:{bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},interac:{formMode:"componentMethod",componentKey:"",componentFunction:"",formModeDisable:!0},fieldContext:[],customCss:"",customClass:"",argument:!0,defined:{pc:{},mobile:{}}}],datasheetItems=[{type:"table",key:"",label:"\u89C6\u56FE",icon:"gd-icon-biaodanzujian-biaoge",transKey:"gd.datadisplaycomponents.table",options:{flexWidth:100,flexUnit:"%",table:{},view:{},btn:[],heightMode:"fill",height:300,maxBtnLength:12,formKey:"",form:{id:""},formMode:"",viewWeights:"2",pagerFlex:"flex-end",layoutConfig:!1},layoutConfig:{viewsGroup:!0,butGroup:!0,filter:!0,chart:!0,rfresh:!0,tableSize:!0,tableColumn:!0,pager:!0},formList:[],interacList:[],css:{padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"dataList",key:"",label:"\u5217\u8868",icon:"gd-icon-mubanbianpai",transKey:"gd.datadisplaycomponents.list",options:{table:{},view:{},flexWidth:100,flexUnit:"%",pageSize:10,pageSizeMode:"customize",layoutType:"grid",layoutDirection:"column",columnsNumber:2,columnsWidth:100,spacing:0,foreignContextName:"",foreignBind:[],sysFunctionApi:"",queryDefaultKey:""},list:[],css:{heightL:100,heiType:"auto",bjColor:"transparent",color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},fieldContext:[],foreignContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"descriptions",key:"",label:"\u8BE6\u60C5",icon:"gd-icon-miaoshu",transKey:"gd.datadisplaycomponents.descriptions",options:{flexWidth:100,flexUnit:"%",table:{},view:{},field:[],column:3,directionList:"horizontal",colon:!0,border:1},css:{padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],bjColor:"transparent"},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"echarts",key:"",label:"\u56FE\u8868",icon:"gd-icon-zhuzhuangtu",transKey:"gd.datadisplaycomponents.echarts",options:{flexWidth:100,flexUnit:"%",echartsId:"",table:{},view:{},echarts:{},heightMode:"fixed",fixedHeight:300,relativeHeight:100},fkData:[],css:{padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],bjColor:"transparent"},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"chartBI",key:"",label:"BI\u56FE\u8868",icon:"gd-icon-zhuzhuangtu",transKey:"gd.datadisplaycomponents.chartBI",options:{flexWidth:100,flexUnit:"%",tableName:"",view:{},heightMode:"fixed",fixedHeight:300,relativeHeight:100,sequence:[{mode:"",type:"1",columnName:"",name:"",dictTypeCode:null,transKey:null,disableMode:[],disableType:[],ruleOpen:!1,ruleSequence:[],orderType:1,ruleFormatter:{min:void 0,max:void 0,formatter:"none",mode:"1",effectType:"input"}}],classLabel:[{columnName:"",name:"",dictTypeCode:null,transKey:null,effectType:"input",mode:"3"}],echartsId:"",colourList:"",transKey:null,name:"\u56FE\u8868",labelShow:!1,smooth:!1,showSymbol:!0,labelRotate:0,labelFontSize:12,overlayLineChart:!1,overlayStack:!1,areaStyleStack:!1,labelTextPosition:"top",queryDefaultKey:"",labelFontColor:"#333",textFontSize:14,textFontColor:"#333",legendShow:!0,legendPosition:["","","",""],legendOrient:"horizontal",legendTextColor:"#333",xAxisLabelColor:"#333",gridPosition:["60","4%","3%","3%"],labelLineColor:"#333",emphasisFocus:"series",lineStyleWidth:1,numericalPrecision:2,topCount:void 0},fkData:[],css:{padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],bjColor:"transparent"},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"statistic",key:"",label:"\u7EDF\u8BA1\u6570\u503C",icon:"gd-icon-baobiaotongji",transKey:"gd.datadisplaycomponents.statisticValue",options:{flexWidth:100,flexUnit:"%",statisticTitle:"\u7EDF\u8BA1",timeIndices:!1,statisticValue:0,transKey:null,sequence:[{effectType:"input",mode:"",type:"1",columnName:"",name:"",transKey:null,disableMode:[],ruleOpen:!1,ruleSequence:[]}],textFontSize:20,textFontColor:"#333",textFontWeight:"normal",titlePrefix:{name:"",transKey:null,type:"text",icon:"",open:!1,color:"#333",fontSize:"14",fontWeight:"normal"},titleSuffix:{name:"",transKey:null,type:"text",icon:"",open:!1,color:"#333",fontSize:"14",fontWeight:"normal"},align:"center",lineHeight:32,tableName:"",view:{},numericalPrecision:2,numericalFormat:"",viewDataDetails:!1,accessType:"sys",sysFunctionApi:"",customEffectType:"input",titlePosition:"top",openBackgroundImg:!1,queryDefaultKey:""},backgroundImage:{fileType:"upload",filePath:"",fileId:"",linkUrl:"",openWid:!1,openHeig:!1,width:void 0,height:void 0,position:[0,0,0,0],objectFit:"contain",customClass:""},css:{color:"#333",fontSize:"14",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],bjColor:"transparent",fontWeight:"normal",align:"center",lineHeight:24},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"dataFiltering",key:"",label:"\u7B5B\u9009",icon:"gd-icon-a-guangqi_guolv11x",transKey:"gd.basics.screen",options:{tableName:"",flexWidth:100,flexUnit:"%",layoutType:"grid",columnsWidth:360,spacing:0,columnsNumber:3,foldField:!1,foldFieldList:[],triggerMode:"change"},queryList:[],rulesList:[],interacList:[],css:{bjColor:"transparent",padding:[12,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"tableGrid",key:"",label:"\u8868\u683C",icon:"gd-icon-biaodanzujian-biaoge",transKey:"gd.datadisplaycomponents.tableGrid",options:{flexWidth:100,flexUnit:"%",table:{},view:{},heightMode:"fill",height:300,formKey:"",form:{id:""},formMode:"",viewWeights:"2"},queryList:[],operationuList:[],operationu:{hide:!1,align:"center",labelWidth:120},tableSetting:{isStripe:!1,isBorder:!1,stripeColor:"#FAFAFA",lineHeight:50},tableGridList:[],rulesList:[],formList:[],css:{padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}}],dialogItems=[{type:"dialog",key:"",label:"\u5F39\u7A97",icon:"gd-icon-ZeekrVisualDialog",transKey:"gd.elasticlayercomponents.dialog",options:{flexWidth:80,flexUnit:"%",visible:!0,fullscreen:!1,openTop:80,modal:!0,modalAppendToDody:!0,appendToBody:!1,closeClickModal:!0,closePressEscape:!0,showClose:!0,center:!1},columns:[{type:"dialog-head",list:[],key:"",code:"title",label:"\u9876\u90E8\u533A",icon:"gd-icon-ziyuansu",transKey:"gd.page.topArea",show:!0},{type:"dialog-content",list:[],key:"",code:"content",label:"\u5185\u5BB9\u533A",icon:"gd-icon-ziyuansu",transKey:"gd.page.contentArea",show:!0},{type:"dialog-footer",list:[],key:"",code:"footer",label:"\u5E95\u90E8\u533A",transKey:"gd.page.bottomArea",icon:"gd-icon-ziyuansu",show:!1}],interactive:[],css:{},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"drawer",key:"",label:"\u4FA7\u62C9",icon:"gd-icon-chouti",transKey:"gd.elasticlayercomponents.drawer",options:{flexWidth:80,flexUnit:"%",visible:!0,modal:!0,openDirection:"rtl",modalAppendToDody:!0,appendToBody:!1,closeClickModal:!0,closePressEscape:!0,showClose:!0},columns:[{type:"drawer-head",list:[],key:"",code:"title",label:"\u9876\u90E8\u533A",icon:"gd-icon-ziyuansu",transKey:"gd.page.topArea",show:!0},{type:"drawer-content",list:[],key:"",code:"content",label:"\u5185\u5BB9\u533A",icon:"gd-icon-ziyuansu",transKey:"gd.page.contentArea",show:!0},{type:"drawer-footer",list:[],key:"",code:"footer",label:"\u5E95\u90E8\u533A",transKey:"gd.page.bottomArea",icon:"gd-icon-ziyuansu",show:!0}],interactive:[],css:{},customCss:"",customClass:"",defined:{pc:{openDirection:"rtl"},mobile:{type:"right"}}}],formItems=[{type:"input",key:"",label:"\u5355\u884C\u6587\u672C",icon:"gd-icon-danhangshurukuang",options:{transKey:"gd.formcomponents.input",maxLength:void 0,value:"",columnName:"",table:{},effectType:"input",type:"text",width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,initialType:[],spaceTrim:"none"},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"textarea",key:"",label:"\u591A\u884C\u6587\u672C",icon:"gd-icon-duohangshuru",options:{transKey:"gd.formcomponents.textarea",value:"",maxLength:void 0,columnName:"",effectType:"textarea",minRows:4,maxRows:6,width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"editor",key:"",label:"\u5BCC\u6587\u672C",icon:"gd-icon-fuwenbenkuang",options:{transKey:"gd.formcomponents.editor",value:"",columnName:"",effectType:"editor",height:300,width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"inputNumber",key:"",label:"\u6570\u5B57\u8F93\u5165",icon:"gd-icon-shuzi",options:{transKey:"gd.formcomponents.inputNumber",value:void 0,columnName:"",effectType:"inputnumber",width:"100",widthUnit:"%",defaultValue:void 0,min:void 0,max:void 0,precision:0,step:1,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,displayMode:"none",initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,type:"number",message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{controlsPosition:"right",controls:!0},mobile:{}}},{type:"switch",key:"",label:"\u5F00\u5173",icon:"gd-icon-anniu_kaiqi",options:{transKey:"gd.formcomponents.switch",value:"0",columnName:"",effectType:"switch",defaultValue:"0",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"radio",key:"",label:"\u5355\u9009\u6846",icon:"gd-icon-danxuan_xuanzhong",options:{transKey:"gd.formcomponents.radio",value:void 0,columnName:"",effectType:"radio",defaultValue:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[],filter:[],disableDictCode:[],disableDictMode:1},fkData:[],filterList:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"checkbox",key:"",label:"\u591A\u9009\u6846",icon:"gd-icon-xuanzhong",options:{transKey:"gd.formcomponents.checkbox",value:[],columnName:"",effectType:"checkbox",defaultValue:[],placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[],filter:[],disableDictCode:[],disableDictMode:1},filterList:[],fkData:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"select",key:"",label:"\u4E0B\u62C9\u6846",icon:"gd-icon-xiala",options:{transKey:"gd.formcomponents.select",value:"",columnName:"",effectType:"select",width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,filter:[],filterConfig:null,multiple:!1,dictTypeCode:"state_code",fkEntityName:null,disabledColumnName:!1,initialType:[],relations:"",disableDictCode:[],disableDictMode:1},filterList:[],aboutEntityConfig:[],fkData:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"selectMultiple",key:"",label:"\u4E0B\u62C9\u6846\u591A\u9009",icon:"gd-icon-xiala",options:{transKey:"gd.formcomponents.selectMultiple",value:[],columnName:"",effectType:"checkbox",defaultValue:[],placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[],filter:[],disableDictCode:[],disableDictMode:1,collapseTags:!1},filterList:[],fkData:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"uploadImg",key:"",label:"\u56FE\u7247\u4E0A\u4F20",icon:"gd-icon-tupian",options:{transKey:"gd.formcomponents.uploadImg",value:"",columnName:"",effectType:"image",width:"100",widthUnit:"%",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,fileName:"file",limit:1,action:"",headers:{},data:"{}",disabledColumnName:!1,initialType:[],fileAccept:"image/jpg,image/png,image/jpeg,image/gif,image/bmp",fileSize:100},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"uploadFile",key:"",label:"\u6587\u4EF6\u4E0A\u4F20",icon:"gd-icon-mulu",options:{transKey:"gd.formcomponents.uploadFile",value:"",columnName:"",effectType:"file",width:"100",widthUnit:"%",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,download:!1,drag:!1,fileName:"file",limit:1,action:"",headers:{},data:"{}",disabledColumnName:!1,initialType:[],fileAccept:"image/jpg,image/png,image/jpeg,image/gif,image/bmp,.doc,.docx,.xlsx,xls,text/plain,application/pdf,application/msword,application/vnd.ms-excel,application/octet-stream,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document",fileSize:1024},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"datePicker",key:"",label:"\u65E5\u671F\u9009\u62E9",icon:"gd-icon-riqi",options:{transKey:"gd.formcomponents.datePicker",value:"",columnName:"",effectType:"datepicker",width:"100",widthUnit:"%",defaultValue:"",rangeDefaultValue:[],range:!1,showTime:!1,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,format:"1",disabledColumnName:!1,initialType:[],isCurrentTime:!1},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"timePicker",key:"",label:"\u65F6\u95F4\u9009\u62E9",icon:"gd-icon-riqi",options:{transKey:"gd.formcomponents.timePicker",value:"",columnName:"",effectType:"datepicker",width:"100",widthUnit:"%",defaultValue:"",rangeDefaultValue:[],range:!1,showTime:!1,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,format:"3",disabledColumnName:!1,initialType:[],isCurrentTime:!1},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}}],layoutItems=[{type:"containerPanel",key:"",label:"\u5BB9\u5668\u9762\u677F",icon:"gd-icon-rongqi",transKey:"gd.layoutContainer.containerPanel",options:{flexWidth:100,flexUnit:"%",columnContextName:[],foreignContextName:""},list:[],css:{heightL:100,heiType:"auto",bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},interac:{formMode:"systemsMethod",sysFunctionName:"sysBaseAdd",componentKey:"",componentFunction:"",functionName:"",table:"",viewList:[],tableComponents:"",tableComponentsType:"view",fromList:[],callback:!1,callbackComponents:"",callbackFunction:"",customApi:""},fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"grid",key:"",label:"\u6805\u683C\u5E03\u5C40",icon:"gd-icon-zhage",transKey:"gd.layoutContainer.gridLayout",options:{gutter:0,flexWidth:100,flexUnit:"%"},columns:[{type:"grid-item",span:12,list:[],key:"",label:"",icon:"gd-icon-ziyuansu"},{type:"grid-item",span:12,list:[],key:"",label:"",icon:"gd-icon-ziyuansu"}],css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"collapse",key:"",label:"\u6298\u53E0\u9762\u677F",icon:"gd-icon-zhediemianban",transKey:"gd.layoutContainer.collapse",options:{enableCompatibleCss:!0,flexWidth:100,flexUnit:"%",accordion:!1,activeKey:[]},columns:[{type:"collapse-item",list:[],key:"",label:"\u9762\u677F1",transKey:null,disabled:!1,icon:"gd-icon-ziyuansu",hidden:!1},{type:"collapse-item",list:[],key:"",label:"\u9762\u677F2",transKey:null,disabled:!1,icon:"gd-icon-ziyuansu",hidden:!1}],css:{bjColor:"#fff",padding:[1,1,1,1],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"card",key:"",label:"\u5361\u7247\u5E03\u5C40",icon:"gd-icon-qiapian",transKey:"gd.layoutContainer.card",options:{flexWidth:100,flexUnit:"%",header:"\u5361\u7247\u5E03\u5C40",shadow:"always",transKey:null},list:[],css:{fontSize:14,color:"#333",bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],fontWeight:"normal",lineHeight:21},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"tabs",key:"",label:"\u6807\u7B7E\u9875\u5E03\u5C40",icon:"gd-icon-tabs",transKey:"gd.layoutContainer.tabs",options:{flexWidth:100,flexUnit:"%",type:"none",tabPosition:"top",activeKey:""},columns:[{type:"tabs-item",list:[],key:"",label:"\u6807\u7B7E1",transKey:null,icon:"gd-icon-ziyuansu",hidden:!1,forceRender:!0,isLoad:!1},{type:"tabs-item",list:[],key:"",label:"\u6807\u7B7E2",transKey:null,icon:"gd-icon-ziyuansu",hidden:!1,forceRender:!0,isLoad:!1}],css:{bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"form",key:"",label:"\u8868\u5355\u5BB9\u5668",icon:"gd-icon-biaodanzujian-biaoge",transKey:"gd.layoutContainer.form",options:{flexWidth:100,flexUnit:"%",tableName:"",model:"ruleForm",inline:!1,labelPosition:"right",labelWidth:100,labelUnit:"px",formModes:"dialog",baseAddApi:"",baseEditApi:"",baseDetailsApi:""},ruleForm:{},ruleFormKey:[],field:[],list:[],css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{labelPosition:"right"},mobile:{labelPosition:"left",labelAlign:"left"}}},{type:"treePanel",key:"",label:"\u6811\u9009\u62E9\u5BB9\u5668",icon:"gd-icon-dagangshu",transKey:"gd.layoutContainer.treePanel",options:{flexWidth:100,flexUnit:"%",table:{},view:{},id:0,detailId:"",heightMode:"fill",height:300},interac:{formMode:"systemsMethod",sysFunctionName:"sysBaseAdd",componentKey:"",componentFunction:"",functionName:"",table:"",viewList:[],tableComponents:"",tableComponentsType:"view",fromList:[],callback:!1,callbackComponents:"",callbackFunction:""},css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"flexLayout",key:"",label:"\u533A\u5757\u5E03\u5C40",icon:"gd-icon-flex-wrap",transKey:"gd.layoutContainer.flexLayout",options:{flexWidth:100,flexUnit:"%",columnContextName:[],foreignContextName:""},list:[],css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],flexDirection:"row",justifyContent:"flex-start",alignItems:"flex-start",flexWrap:"nowrap",flexHeightShow:0,fixedHeight:100,spacing:0},interac:{formMode:"systemsMethod",sysFunctionName:"sysBaseAdd",componentKey:"",componentFunction:"",functionName:"",table:"",viewList:[],tableComponents:"",tableComponentsType:"view",fromList:[],callback:!1,callbackComponents:"",callbackFunction:"",customApi:""},fieldContext:[],customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"drawerContainer",key:"",label:"\u62BD\u5C49\u5BB9\u5668",icon:"gd-icon-chouti",transKey:"gd.layoutContainer.drawerContainer",options:{flexWidth:100,flexUnit:"%",openWidth:45,openUnit:"%",visible:!1,positionMode:"fixed",top:"0",right:"12",displayMode:"icon",openIcon:"gd-icon-zuojiantou_huaban",closeIcon:"gd-icon-youjiantou_huaban",connectKey:"",particle:"component",positioning:"absolute",hasModal:!1,showClose:!1,wrapperClosable:!0},list:[],css:{bjColor:"#fff",fontSize:16,color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],fontWeight:"normal",align:"center",lineHeight:24},customCss:"",customClass:"",defined:{pc:{},mobile:{}}}],pageItems=[{type:"GdTableDevelopment",key:"",label:"\u8868\u5B9A\u4E49",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.tableDefinition",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformDict",key:"",label:"\u5B57\u5178",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.dictionary",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D41\u7A0B\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.processManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u89E3\u51B3\u65B9\u6848",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.solution",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"web\u8D44\u6E90",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.webResources",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u63D2\u4EF6",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.plugin",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u7FFB\u8BD1",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.translation",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformOrg",key:"",label:"\u673A\u6784",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.institution",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformPos",key:"",label:"\u804C\u4F4D",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.position",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u65E5\u5FD7",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.log",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u670D\u52A1\u7CFB\u7EDF",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.serviceSystem",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdplatformConfig",key:"",label:"\u7CFB\u7EDF\u914D\u7F6E",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.systemConfiguration",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformUse",key:"",label:"\u7528\u6237\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.userManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u89D2\u8272\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.roleManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u5B89\u5168\u5B57\u6BB5\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.securityFieldManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u5728\u7EBF\u7528\u6237",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.onlineUser",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u4EFB\u52A1\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.taskManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u53D1\u9001\u90AE\u4EF6",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.sendEmail",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6A21\u7248\u5E93",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.templateLibrary",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D88\u606F\u6A21\u7248",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.messageTemplate",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D88\u606F\u63D0\u9192\u89C4\u5219",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.messageReminderRules",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D88\u606F\u53D1\u9001\u8BB0\u5F55",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.messageSendingRecord",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u5373\u65F6\u6D88\u606F",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.instantMessage",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u516C\u544A\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.announcementManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u7CFB\u7EDF\u6587\u4EF6",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.systemFile",options:{},css:{},defined:{pc:{},mobile:{}}}],seniorItems=[{type:"iframe",key:"",label:"Iframe",icon:"gd-icon-iframe",transKey:null,options:{linkUrl:"",heightMode:"fill",height:300},css:{},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"fileDocument",key:"",label:"\u6587\u6863",icon:"gd-icon-wendangguanli",transKey:"gd.datadisplaycomponents.fileDocument",options:{flexWidth:100,flexUnit:"%",heightMode:"fill",height:300,treeStationWid:256,listDemoMode:"grid",switchDemoMode:1,limit:12,multipleLimit:12,fileAccept:"image/jpg,image/png,image/jpeg,image/gif,image/bmp,doc,docx,xlsx,xls,application/pdf,application/msword,application/vnd.ms-excel,application/octet-stream,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document"},permissionList:[{name:"\u67E5\u770B",code:"readmetadata",transkey:"gd.btn.view",field:"readmetadata",icon:"gd-icon-xitongrizhi7",type:[],transtype:"customize"},{name:"\u91CD\u547D\u540D",code:"rename",transkey:"gd.btn.rename",field:"rename",icon:"gd-icon-bianjisekuai",type:[1,2],transtype:"customize"},{name:"\u5220\u9664",code:"delete",transkey:"gd.btn.del",field:"delete",icon:"gd-icon-shanchu3",type:[1,2],transtype:"customize"},{name:"\u79FB\u52A8",code:"move",transkey:"gd.btn.move",field:"move",icon:"el-icon-rank",type:[1,2],transtype:"customize"},{name:"\u4E0B\u8F7D",code:"download",transkey:"gd.btn.download",field:"download",icon:"gd-icon-icon-test14",type:[2],transtype:"customize"},{name:"\u521B\u5EFA\u6587\u4EF6",code:"createfile",transkey:"gd.btn.createfile",field:"createfile",icon:"el-icon-document",type:[1],transtype:"customize"},{name:"\u521B\u5EFA\u6587\u4EF6\u5939",code:"createsubfolder",transkey:"gd.btn.createSubfolders",field:"createsubfolder",icon:"el-icon-folder-add",type:[1],transtype:"customize"},{name:"\u7BA1\u7406\u6743\u9650",code:"manageprem",transkey:"gd.btn.administrativePermissions",field:"manageprem",icon:"gd-icon-12quanxianguanli",type:[1,2],transtype:"customize"}],css:{bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"customComponents",key:"",label:"\u81EA\u5B9A\u4E49\u7EC4\u4EF6",icon:"gd-icon-ai-code",transKey:"gd.advancedcomponents.customComponent",options:{webPath:""},props:"record (Object);itemData (Object);tableData (Object);parameterData (Object);height (Number)",css:{},customCss:"",customClass:"",webList:[],defined:{pc:{},mobile:{}}}],pluginItems=[{type:"customComponents",key:"",label:"\u81EA\u5B9A\u4E49\u7EC4\u4EF6",icon:"gd-icon-ai-code",transKey:"gd.advancedcomponents.customComponent",options:{webPath:""},props:"record (Object);tableData (Object);parameterData (Object)",css:{},customCss:"",customClass:"",webList:[],defined:{pc:{},mobile:{}}},{type:"approval",key:"",label:"\u5BA1\u6279",icon:"gd-icon-jurassic_audit-something",transKey:"gd.advancedcomponents.approval",options:{hidden:!1,labelHidden:!1,refresh:!0,transKey:null,flexWidth:100,flexUnit:"%"},operationAttribute:!0,css:{heightL:400,heiType:"auto"},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"approvalHistory",key:"",label:"\u5BA1\u6279\u5386\u53F2",icon:"gd-icons gd-icon-shizhong",transKey:"gd.advancedcomponents.approvalHistory",options:{hidden:!1,labelHidden:!1,transKey:null,flexWidth:100,flexUnit:"%"},operationAttribute:!0,css:{heightL:400,heiType:"auto"},customCss:"",customClass:"",defined:{pc:{},mobile:{}}},{type:"auditLog",key:"",label:"\u5BA1\u8BA1\u65E5\u5FD7",icon:"gd-icon-jurassic_audit-something",transKey:"gd.advancedcomponents.auditLog",options:{hidden:!1,labelHidden:!1,refresh:!0,transKey:null,flexWidth:100,flexUnit:"%"},operationAttribute:!0,css:{heightL:400,heiType:"auto"},customCss:"",customClass:"",defined:{pc:{},mobile:{}}}],getComponentsTree$1=abilityItems.concat(basicsItems).concat(datasheetItems).concat(dialogItems).concat(layoutItems).concat(formItems).concat(pageItems).concat(seniorItems).concat(pluginItems),getType=i=>{switch(i){case"participants":return"select";case"double":return"inputNumber";case"currency":return"inputNumber";case"datepicker":return"datePicker";case"fk":return"select";case"about":return"select";case"image":return"uploadImg";case"file":return"uploadFile";case"user":return"select";default:return i}},collapseItem_vue_vue_type_style_index_0_scoped_01080cb2_lang="",_sfc_main$2N={name:"collapseItem",props:{list:{type:Array,default:[]},type:{type:[Number,String],default:1},disabled:{type:Boolean,default:!1},table:{type:Object,default:()=>({})},component:{type:String,default:""}},data(){return{}},computed:{getList(){return JSON.parse(JSON.stringify(this.list))}},components:{draggable},methods:{dragstart(i,t){this.$emit("generateKey",i,t)},handleStart(i,t){this.$emit("start",t[i.oldIndex].type)},handleEnd(i,t){this.$emit("end",t[i.oldIndex])}}};var _sfc_render$2N=function(){var t=this,s=t._self._c;return s("draggable",t._b({staticClass:"designer-template-ul",attrs:{tag:"ul",value:t.getList,disabled:t.disabled},on:{start:function(a){return t.handleStart(a,t.list)},end:function(a){return t.handleEnd(a,t.list)}}},"draggable",{group:{name:"gd-draggable",pull:"clone",put:!1},sort:!1,animation:180,ghostClass:"moving"},!1),t._l(t.getList,function(a,l){return s("li",{key:l,staticClass:"designer-template-li line1",on:{dragstart:function(n){return t.dragstart(t.list,l)},click:function(n){return t.$emit("handleListPush",a)}}},[t.component===""?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt(`${a.transKey}`,a.label),placement:"top","open-delay":150}},[s("el-button",{staticClass:"line1 designer-btn",staticStyle:{width:"100%"},attrs:{size:"mini"}},[s("i",{staticClass:"gd-icons",class:a.icon}),t._v(" "+t._s(t.$i18nt(`${a.transKey}`,a.label))+" ")])],1):t.component==="form"?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt(a.options.transKey,a.label),placement:"top","open-delay":150}},[s("el-button",{staticClass:"line1 designer-btn",staticStyle:{width:"100%"},attrs:{size:"mini"}},[s("i",{staticClass:"gd-icons",class:a.icon}),t._v(" "+t._s(t.$i18nt(a.options.transKey,a.label))+" ")])],1):t.component==="field"?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt(`Dynamics.${a.transKey}`,a.label),placement:"top","open-delay":150}},[s("el-button",{staticClass:"line1 designer-btn",staticStyle:{width:"100%"},attrs:{size:"mini"}},[s("i",{staticClass:"gd-icons",class:a.icon}),t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.label))+" ")])],1):t._e()],1)}),0)},_sfc_staticRenderFns$2N=[],__component__$2N=chartbi.normalizeComponent(_sfc_main$2N,_sfc_render$2N,_sfc_staticRenderFns$2N,!1,null,"01080cb2",null,null);const collapseItem=__component__$2N.exports,main_vue_vue_type_style_index_0_scoped_617f1d30_lang="",_sfc_main$2M={props:{table:{type:Object,default:()=>({})},usedComponent:{type:Array,default:()=>[]},openItem:{type:Object,default:()=>{}}},data(){return{activeNames:["layout","basics","form","senior"],basicsItems,layoutItems,formItems,pluginItems,loadData:[]}},computed:{fieldList(){const i=this.loadData.filter(t=>!this.usedComponent.includes(t.columnname));return this.getSelectedField(i)},layoutItemsList(){const i=this.openItem.type?this.openItem.type:"";let t=["form","treePanel"];return i==="drawerContainer"&&t.push("drawerContainer"),this.layoutItems.filter(s=>!t.includes(s.type))}},components:{collapseItem},methods:{init(){Promise.all([this.getLoadData()]).then(i=>{this.$emit("loadData",this.loadData)})},getLoadData(){return messages.onlineFormGetCodeGenerateList({codeGenId:this.table.id}).then(i=>{let t=i.data.filter(s=>{const a=this.getType(s);return s.required=!1,s.title=s.columncomment,s.inputComponent=a.val,s.inputComponentList=a.data,s.effecttype=="about"&&s.columnname==(s.relations+"_AboutTable").toLowerCase()?!1:!(s.effecttype=="currency"&&s.columnname==(s.relations+"_Currency_Base").toLowerCase())});return this.loadData=t,i.data})},getSelectedField(i){let t=[];return i.forEach(s=>{const a=s.inputComponentList.filter(d=>d.type===s.inputComponent)[0],l=a.rules.filter((d,u)=>(u===0&&(d.required=s.required),!0)),n=a.type+"_"+chartbi.uuid(8);let o=[];s.inputComponentList.forEach(d=>{o.push(d.type)});let r={type:s.inputComponent,key:n,label:s.columncomment,transKey:s.transkey,options:Object.assign({...a.options},{columnName:s.columnname,effectType:s.effecttype,disabledColumnName:!0,initialType:o,transKey:null}),rules:[...l]};s.dicttypecode&&Object.assign(r,{options:Object.assign({...r.options},{dictTypeCode:s.dicttypecode})}),s.fkentityname&&Object.assign(r,{options:Object.assign({...r.options},{fkEntityName:s.fkentityname,dictTypeCode:""})}),s.fkentityname&&["fk","user"].includes(s.effecttype)&&Object.assign(r,{options:Object.assign({...r.options},{viewdeId:"",formdeId:"",fieldFiltering:!0,searchWid:"90",searchUnit:"%",hyperlink:!0})}),["about"].includes(s.effecttype)&&Object.assign(r,{options:Object.assign({...r.options},{relations:s.relations,searchWid:"90",searchUnit:"%",hyperlink:!0})}),["participants"].includes(s.effecttype)&&Object.assign(r,{options:Object.assign({...r.options},{multiple:!0,multipleLimit:0,searchWid:"90",searchUnit:"%",collapseTags:!0,hyperlink:!0})}),s.fieldformat&&Object.assign(r,{showTime:s.fieldformat!==2,options:Object.assign({...r.options},{format:String(s.fieldformat)})}),t.push(Object.assign({...a},r))}),t},getType(i){let t={val:"input",arr:["input","textarea"],data:[]};["input","textarea"].includes(i.effecttype)?Object.assign(t,{val:i.effecttype,arr:["input","textarea"]}):["radio"].includes(i.effecttype)?Object.assign(t,{val:i.effecttype,arr:["radio","select"]}):["switch"].includes(i.effecttype)?Object.assign(t,{val:i.effecttype,arr:["switch"]}):["inputnumber","currency","double"].includes(i.effecttype)?Object.assign(t,{val:"inputNumber",arr:["inputNumber"]}):["checkbox"].includes(i.effecttype)?Object.assign(t,{val:i.effecttype,arr:["checkbox","selectMultiple"]}):["select"].includes(i.effecttype)?Object.assign(t,{val:i.effecttype,arr:["radio","select"]}):["fk","user","participants","about"].includes(i.effecttype)?Object.assign(t,{val:"select",arr:["select"]}):["editor"].includes(i.effecttype)?Object.assign(t,{val:"editor",arr:["editor"]}):["file"].includes(i.effecttype)?Object.assign(t,{val:"uploadFile",arr:["uploadFile"]}):["image"].includes(i.effecttype)?Object.assign(t,{val:"uploadImg",arr:["uploadImg"]}):["datepicker"].includes(i.effecttype)&&Object.assign(t,{val:"datePicker",arr:["datePicker","timePicker"]});const s=formItems.filter(l=>t.arr.includes(l.type));let a=JSON.parse(JSON.stringify(s));return a.forEach((l,n)=>{let o=JSON.parse(JSON.stringify(l.options));["currency","double"].includes(i.effecttype)&&Object.assign(o,{precision:i.filedsize,currencyType:"symbol"}),i.effecttype==="currency"&&Object.assign(o,{currency:"0",convertField:"0",currencyType:"symbol"}),["input","textarea"].includes(i.effecttype)&&Object.assign(o,{maxLength:i.filedsize}),a[n].options={...o}}),Object.assign(t,{data:a})},handleEnd(i){this.$emit("end",i)},handleStart(i){this.$emit("start",i)},handleListPush(i){this.$emit("handleListPush",i)},generateKey(i,t){this.$emit("generateKey",i,t)}},created(){this.init()}};var _sfc_render$2M=function(){var t=this,s=t._self._c;return s("div",{staticClass:"designer-template"},[s("el-collapse",{model:{value:t.activeNames,callback:function(a){t.activeNames=a},expression:"activeNames"}},[s("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.layoutContainerAssembly","\u5E03\u5C40\u5BB9\u5668\u7EC4\u4EF6"),name:"layout"}},[s("collapseItem",{attrs:{list:t.layoutItemsList},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),s("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.baseComponent","\u57FA\u7840\u7EC4\u4EF6"),name:"basics"}},[s("collapseItem",{attrs:{list:t.basicsItems},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),s("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.fieldComponent","\u5B57\u6BB5\u7EC4\u4EF6"),name:"form"}},[s("collapseItem",{attrs:{list:t.fieldList,component:"field"},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),s("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.plugIn","\u63D2\u4EF6"),name:"senior"}},[s("collapseItem",{attrs:{list:t.pluginItems},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1)],1)],1)},_sfc_staticRenderFns$2M=[],__component__$2M=chartbi.normalizeComponent(_sfc_main$2M,_sfc_render$2M,_sfc_staticRenderFns$2M,!1,null,"617f1d30",null,null);const componentsTree$1=__component__$2M.exports,main_vue_vue_type_style_index_0_scoped_f6994c47_lang="",_sfc_main$2L={props:{table:{type:Object,default:()=>({})},usedComponent:{type:Array,default:()=>[]}},data(){return{activeNames:["view","form"],formData:[],viewData:[]}},components:{collapseItem},computed:{viewItemsList(){return this.viewData.filter(i=>!this.usedComponent.includes(i.componentItem))},formItemsList(){return this.formData.filter(i=>!this.usedComponent.includes(i.formId))},...chartbi.mapGetters(["tableLists"])},methods:{init(){Promise.all([this.getCodeGenerateForm(),this.getCodeGenerateView()]).then(i=>{this.$emit("init",{viewData:this.viewData,formData:this.formData})})},getCodeGenerateForm(){return system_fieldsecurity.codeGenerateForm({tableId:this.table.id}).then(i=>{if(i.code===200){let t=[];i.data.forEach(s=>{const a=this.tableLists.filter(o=>o.tablename===s.syscodegen.tablename)[0],l=this.$i18nt(`Dynamics.${s.transkey}`,s.displayname),n={type:"displayform",name:`${s.syscodegen.tablename}/${s.syscodegenconfig.columnname}/${l}`,label:`${s.syscodegen.tablename}/${s.syscodegenconfig.columnname}/${l}`,transKey:null,icon:"gd-icon-dingbudaohang",formId:s.syscodegenconfig.columnname+","+s.id,key:"",operationAttribute:!0,options:{hidden:!1,relevanceColumnName:s.syscodegenconfig.columnname,table:a},ntransKey:s.transkey?s.transkey:null,nlabel:l};t.push(n)}),this.formData=t}return i.data})},getCodeGenerateView(){return system_fieldsecurity.codeGenerateView({tableId:this.table.id}).then(i=>{if(i.code===200){let t=[];i.data.forEach(s=>{const a=this.$i18nt(`Dynamics.${s.transkey}`,s.sysview.name),l=this.tableLists.filter(o=>o.tablename===s.contacttable.tablename)[0],n={type:"viewtable",loadData:[],delData:[],sourceData:[],icon:"gd-icon-biaodanzujian-biaoge",key:"",label:`${s.contacttable.tablename}/${s.columnname}/${a}`,options:{hidden:!1,foreign:s.columnname,table:l,viewdeId:s.sysview.id,formdeId:"",saved:!0,refreshHost:!0,refreshMode:1,refreshFields:[]},operationAttribute:!0,componentItem:s.contacttable.tablename.replace("_","")+s.sysview.viewname,componentName:s.contacttable.tablename+s.columnname,fkEntityName:s.contacttable.tablename,sourceEntityName:s.fkentityname,ntransKey:s.sysview.transkey?s.sysview.transkey:null,transKey:null};t.push(n)}),this.viewData=t}return i.data})},handleEnd(i){this.$emit("end",i)},handleStart(i){this.$emit("start",i)},handleListPush(i){this.$emit("handleListPush",i)},generateKey(i,t){this.$emit("generateKey",i,t)}},created(){this.init()}};var _sfc_render$2L=function(){var t=this,s=t._self._c;return s("div",{staticClass:"designer-template"},[s("el-collapse",{model:{value:t.activeNames,callback:function(a){t.activeNames=a},expression:"activeNames"}},[s("el-collapse-item",{attrs:{title:t.$i18nt("gd.relevanceTree.associatedView","\u5173\u8054\u89C6\u56FE"),name:"view"}},[s("collapseItem",{attrs:{list:t.viewItemsList},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),s("el-collapse-item",{attrs:{title:t.$i18nt("gd.relevanceTree.associationForm","\u5173\u8054\u8868\u5355"),name:"form"}},[s("collapseItem",{attrs:{list:t.formItemsList},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1)],1)],1)},_sfc_staticRenderFns$2L=[],__component__$2L=chartbi.normalizeComponent(_sfc_main$2L,_sfc_render$2L,_sfc_staticRenderFns$2L,!1,null,"f6994c47",null,null);const relevanceTree=__component__$2L.exports,mixins$b={methods:{async traverse(i){let t=[];const s=(a,l)=>(a=a.filter((n,o)=>{let r=n.key===""?n.type+"_"+chartbi.uuid(8):n.key;t.push(Object.assign(n,{pid:l,key:r})),["grid","tabs","collapse","drawer","dialog"].includes(n.type)?n.columns.forEach((d,u)=>{t.push(Object.assign({...d},{pid:n.key}));let p=d.key;d.key===""&&(p=d.type+"_"+chartbi.uuid(8),n.columns[u].key=p),s(d.list,p)}):["card","batch","form","flexLayout","containerPanel","drawerContainer","dataList"].includes(n.type)&&s(n.list,r)}),a);return await s(i,0),t},generatorDynamicRouter(i){return new Promise((t,s)=>{const a=i,l=[];this.listToTree(a,l,0),t(l)}).catch(t=>Promise.reject(t))},listToTree(i,t,s){i&&i.forEach(a=>{if(a.pid==s){const l={...a,children:[]};this.listToTree(i,l.children,a.key),l.children.length<=0&&delete l.children,t.push(l)}})},findParent(i,t,s){for(let a of i)if(a.key===t.pid||a.children&&a.children.length>0&&this.findParent(a.children,t,s))return s.unshift(a),!0;return!1},async traverseKey(i,t){let s={};const a=(l,n)=>(l=l.filter((o,r)=>{o.key===t.key&&(s={...o}),o.children&&o.children.length>0&&a(o.children)}),l);return await a(i),s}}},main_vue_vue_type_style_index_0_scoped_79ea2f64_lang="";var timeOut$9=null;const _sfc_main$2K={props:{data:{type:Object,required:!0},selectItemKey:{type:String,default:""}},mixins:[mixins$b],data(){return{dialogTree:[],pageTree:[],componentsList:[],defaultProps:{children:"children",label:"key",value:"key"},defaultExpandedKeys:"",state:!1,allKey:""}},watch:{data:{handler(i){timeOut$9&&clearTimeout(timeOut$9),timeOut$9=setTimeout(()=>{this.state||this.init(i)},500)},deep:!0,immediate:!0}},computed:{dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.25)};position: absolute;top: 0;left: 0;right: 0;bottom: 0;`},...chartbi.mapGetters(["primaryColor"])},methods:{handleNodeClick(i,t){let s=[];this.findParent(this[t],i,s),this.$emit("handleSelectItem",i,s)},async init(i){const t=await this.getAllKey(i);if(t===this.allKey)return;this.allKey=t,this.state=!0,this.ruleFormFiter(i),i.list.filter(n=>["dialog","drawer"].includes(n.type)?!0:!!(["drawerContainer"].includes(n.type)&&n.options.particle==="popup")),i.list.filter(n=>["dialog","drawer"].includes(n.type)?!1:!(["drawerContainer"].includes(n.type)&&n.options.particle==="popup"));let s=[],a=[],l=[];this.componentsList=[],i.list.forEach(async n=>{let o=await this.traverse(JSON.parse(JSON.stringify([n])));this.componentsList=this.componentsList.concat(o);let r=this.generatorDynamicRouter(o).then(d=>(d.length>0&&["dialog","drawer"].includes(n.type)||d.length>0&&["drawerContainer"].includes(n.type)&&n.options.particle==="popup"?s.push(d[0]):(d.length>0&&["drawerContainer"].includes(n.type)&&n.options.particle!=="popup"||d.length>0&&!["dialog","drawer"].includes(n.type))&&a.push(d[0]),d));l.push(r)}),Promise.all(l).then(n=>{this.dialogTree=s,this.pageTree=a,this.$nextTick(()=>{setTimeout(()=>{this.$emit("outlineTree",{dialogTree:this.dialogTree,pageTree:this.pageTree,componentsList:this.componentsList})},10)})})},async ruleFormFiter(i){let t=[],s=!1,a=[],l=[];const n=(o,r)=>(o=o.filter((d,u)=>{["grid","tabs","collapse","drawer","dialog"].includes(d.type)?d.columns.forEach(p=>{n(p.list,r)}):["card","batch","form","flexLayout","containerPanel","dataList","drawerContainer"].includes(d.type)&&(d.type==="form"&&t.push(d),n(d.list,r)),d.type==="tabs"&&(l=d.columns.filter((p,h)=>p.key==d.options.activeKey),d.options.activeKey=l.length==0?d.columns[0].key:d.options.activeKey),s&&["input","textarea","editor","inputNumber","switch","radio","checkbox","select","uploadImg","uploadFile","datePicker","timePicker","selectMultiple"].includes(d.type)&&a[r].children.push({options:d.options,type:d.type,key:d.key})}),o);await n(i.list,0),s=!0,t.forEach((o,r)=>{a.push({item:o,children:[]}),n(o.list,r);let d=this.getRuleFormData(a[r]);const u=o.options.tableName;t[r].ruleForm=u===""?d.data:Object.assign({...d.data},{tableName:u}),t[r].ruleFormKey=u===""?[]:d.field}),this.$nextTick(()=>{setTimeout(()=>{this.state=!1},500)})},getRuleFormData(i){let t=new Map,s=[];return i.children.forEach(a=>{a.options.initialType&&a.options.initialType.length>0&&s.push({key:a.key,columnName:a.options.columnName}),["inputNumber","select"].includes(a.type)?t.set(a.options.columnName,a.options.defaultValue!==void 0?a.options.defaultValue:void 0):["switch"].includes(a.type)?t.set(a.options.columnName,a.options.defaultValue!==void 0?a.options.defaultValue:0):["checkbox","selectMultiple"].includes(a.type)?t.set(a.options.columnName,a.options.defaultValue!==void 0?a.options.defaultValue:[]):["select"].includes(a.type)?t.set(a.options.columnName,a.options.defaultValue!==void 0?a.options.defaultValue:a.options.multiple?[]:void 0):t.set(a.options.columnName,(a.options.defaultValue!==void 0,a.options.defaultValue))}),{data:Object.fromEntries(t),field:s}},fadeColor(i,t){let s=parseInt(i.substring(1,3),16),a=parseInt(i.substring(3,5),16),l=parseInt(i.substring(5,7),16);return`rgba(${s},${a},${l},${t})`},async getAllKey(i){let t=[];const s=a=>(a=a.filter(l=>{t.push(l.key),["grid","tabs","collapse","drawer","dialog"].includes(l.type)?l.columns.forEach(n=>{t.push(n.key),s(n.list)}):["card","batch","form","flexLayout","containerPanel","dataList","drawerContainer"].includes(l.type)&&s(l.list)}),a);return await s(i.list),t.join(",")}}};var _sfc_render$2K=function(){var t=this,s=t._self._c;return s("div",{staticClass:"outline-tree"},[t.dialogTree.length>0?s("div",{staticClass:"dialog-tree"},[s("div",{staticClass:"name"},[t._v(t._s(t.$i18nt("gd.outlineTree.modalBox","\u6A21\u6001\u6846")))]),s("div",{staticClass:"list"},[s("el-tree",{ref:"dialogTree",attrs:{data:t.dialogTree,props:t.defaultProps,"node-key":"key","current-node-key":t.defaultExpandedKeys,"default-expand-all":"","expand-on-click-node":!1},on:{"node-click":function(a){return t.handleNodeClick(a,"dialogTree")}},scopedSlots:t._u([{key:"default",fn:function({node:a,data:l}){return s("span",{staticClass:"custom-tree-node",attrs:{title:l.key}},[s("span",{staticClass:"gd-icons",class:l.icon}),s("span",{staticClass:"line1 titles"},[t._v(" "+t._s(l.key)+" ")]),t.selectItemKey===l.key?s("span",{style:t.dropdownActive}):t._e()])}}],null,!1,3386166293)})],1)]):t._e(),t.dialogTree.length>0?s("el-divider"):t._e(),s("div",{staticClass:"page-tree"},[s("div",{staticClass:"name"},[t._v(t._s(t.$i18nt("gd.outlineTree.mainView","\u4E3B\u89C6\u56FE")))]),s("div",{staticClass:"list"},[s("el-tree",{ref:"tree",attrs:{data:t.pageTree,props:t.defaultProps,"node-key":"key","current-node-key":t.defaultExpandedKeys,"default-expand-all":"","expand-on-click-node":!1},on:{"node-click":function(a){return t.handleNodeClick(a,"pageTree")}},scopedSlots:t._u([{key:"default",fn:function({node:a,data:l}){return s("span",{staticClass:"custom-tree-node",attrs:{title:l.key}},[s("span",{staticClass:"gd-icons",class:l.icon}),s("span",{staticClass:"line1 titles"},[t._v(" "+t._s(l.key)+" ")]),t.selectItemKey===l.key?s("span",{style:t.dropdownActive}):t._e()])}}])})],1)])],1)},_sfc_staticRenderFns$2K=[],__component__$2K=chartbi.normalizeComponent(_sfc_main$2K,_sfc_render$2K,_sfc_staticRenderFns$2K,!1,null,"79ea2f64",null,null);const outlineTree=__component__$2K.exports,main_vue_vue_type_style_index_0_scoped_2eb9995b_lang="",_sfc_main$2J={data(){return{}},methods:{}};var _sfc_render$2J=function(){var t=this,s=t._self._c;return s("div",{staticClass:"empty-control"},[s("i",{staticClass:"el-icon-receiving"}),s("div",{staticClass:"empty-title"},[t._v(t._s(t.$i18nt("gd.form.controlSelectedNo","\u672A\u9009\u62E9\u63A7\u4EF6")))])])},_sfc_staticRenderFns$2J=[],__component__$2J=chartbi.normalizeComponent(_sfc_main$2J,_sfc_render$2J,_sfc_staticRenderFns$2J,!1,null,"2eb9995b",null,null);const emptyControl=__component__$2J.exports,sideHeader_vue_vue_type_style_index_0_scoped_84b9b31d_lang="",_sfc_main$2I={props:{navParameters:{type:Object,default:()=>({})},collapsed:{type:Boolean,default:!0}},data(){return{photoUrl:""}},computed:{menus(){return this.navParameters.menus.filter(i=>i.key!=="logout")},getUserImg(){let i="/"+this.userInfo.filePath+"/"+this.userInfo.fileObjectName;return`${this.$getImageUrl(i)}`},...chartbi.mapGetters(["userInfo"])},methods:{}};var _sfc_render$2I=function(){var t=this,s=t._self._c;return s("div",{staticClass:"side-header"},[s("div",{staticClass:"triggers",on:{click:function(a){return t.$emit("toggle")}}},[s("i",{staticClass:"gd-icons",class:t.collapsed?"gd-icon-shousuo":"gd-icon-shousuo1"})]),s("div",{staticClass:"multi"}),s("div",{staticClass:"user-wrapper"},[t._l(t.menus,function(a){return[a.statu?[a.key==="user"?s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:t.userInfo.nickname,placement:"bottom","open-delay":150}},[s("span",{staticClass:"user-dropdown-menu user-dropdown-user"},[s("img",{staticClass:"user-img",attrs:{src:"data:image/png;base64,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"}})])]):s("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:a.name,placement:"bottom","open-delay":150}},[s("span",{staticClass:"user-dropdown-menu user-dropdown-user"},[a.key==="universalImport"?s("i",{staticClass:"gd-icons gd-icon-mulu"}):t._e(),a.key==="information"?s("i",{staticClass:"gd-icons gd-icon-a-huabanbeifen35"}):a.key==="advancedFind"?s("i",{staticClass:"gd-icons el-icon-search"}):a.key==="theme"?s("i",{staticClass:"gd-icons gd-icon-xitongshezhi"}):a.key==="fullScreen"?s("i",{staticClass:"gd-icons gd-icon-fangda"}):t._e()])])]:t._e()]})],2)])},_sfc_staticRenderFns$2I=[],__component__$2I=chartbi.normalizeComponent(_sfc_main$2I,_sfc_render$2I,_sfc_staticRenderFns$2I,!1,null,"84b9b31d",null,null);const sideHeader=__component__$2I.exports,sideMenus_vue_vue_type_style_index_0_scoped_c9dd9653_lang="",_sfc_main$2H={props:{navParameters:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:!0}},data(){return{}},computed:{options(){return this.navParameters.logo||{}},list(){return this.treeData[0]?this.treeData[0].children:[]},tstyle(){return`font-size:${this.options.titleFont}px`},ystyle(){return`font-size:${this.options.subtitleFont}px`}},methods:{}};var _sfc_render$2H=function(){var t=this,s=t._self._c;return s("div",{staticClass:"side-menus"},[t.navParameters.logoOpen?[s("div",{directives:[{name:"show",rawName:"v-show",value:t.options.mode==="imageWithText",expression:"options.mode === 'imageWithText'"}],staticClass:"logo"},[s("div",{staticClass:"picture"},[t.options.smallPicture?s("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.options.smallPicture,expression:"options.smallPicture"}],staticStyle:{width:"42px",height:"42px"},attrs:{"data-url":t.options.smallPicture}}):t._e()]),t.collapsed?s("div",{staticClass:"company"},[s("div",{staticClass:"title line1",style:t.tstyle},[t._v(t._s(t.options.title))]),s("div",{staticClass:"ytitle line1",style:t.ystyle},[t._v(t._s(t.options.subtitle))])]):t._e()]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.options.mode!=="imageWithText",expression:"options.mode !== 'imageWithText'"}],staticClass:"logo"},[s("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapsed,expression:"!collapsed"}],staticClass:"picture"},[t.options.smallPicture?s("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.options.smallPicture,expression:"options.smallPicture"}],staticStyle:{width:"42px",height:"42px"},attrs:{"data-url":t.options.smallPicture}}):t._e()]),s("div",{directives:[{name:"show",rawName:"v-show",value:t.collapsed,expression:"collapsed"}],staticClass:"bpicture"},[t.options.bigPicture?s("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.options.bigPicture,expression:"options.bigPicture"}],staticStyle:{width:"100%",height:"44px"},attrs:{"data-url":t.options.bigPicture}}):t._e()])])]:t._e(),s("div",{staticClass:"list"},t._l(t.list,function(a,l){return s("div",{key:l,staticClass:"item",class:t.collapsed?"":"item-open"},[s("i",{staticClass:"gd-icons",class:a.icon}),t.collapsed?s("div",{staticClass:"name line1"},[t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`,a.name)))]):t._e()])}),0)],2)},_sfc_staticRenderFns$2H=[],__component__$2H=chartbi.normalizeComponent(_sfc_main$2H,_sfc_render$2H,_sfc_staticRenderFns$2H,!1,null,"c9dd9653",null,null);const sideMenus=__component__$2H.exports,sideNav_vue_vue_type_style_index_0_scoped_86dcd97e_lang="",_sfc_main$2G={props:{navParameters:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]},positionCss:{type:String,default:""}},data(){return{collapsed:!0}},computed:{style(){return this.navParameters.isNavigation===0?"":this.collapsed?"padding-left: 172px;":"padding-left: 68px;"},stylew(){return this.collapsed?"width: 172px;":"width: 68px;"}},components:{sideHeader,sideMenus},methods:{toggle(){this.collapsed=!this.collapsed}}};var _sfc_render$2G=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-layout-nav",style:t.style},[t.navParameters.isNavigation===1?s("div",{staticClass:"nav-menu",style:t.stylew},[s("sideMenus",{attrs:{treeData:t.treeData,navParameters:t.navParameters,collapsed:t.collapsed}})],1):t._e(),s("div",{staticClass:"nav-main"},[t.navParameters.isNavigation===1?s("div",{staticClass:"nav-head"},[s("sideHeader",{attrs:{navParameters:t.navParameters,collapsed:t.collapsed},on:{toggle:t.toggle}})],1):t._e(),s("div",{staticClass:"nav-content",style:t.positionCss,attrs:{id:"conner-panel-id"}},[s("div",{staticClass:"nav-content-solt"},[t._t("default")],2)])])])},_sfc_staticRenderFns$2G=[],__component__$2G=chartbi.normalizeComponent(_sfc_main$2G,_sfc_render$2G,_sfc_staticRenderFns$2G,!1,null,"86dcd97e",null,null);const sideNav=__component__$2G.exports,topNav_vue_vue_type_style_index_0_scoped_fc28bdaf_lang="",_sfc_main$2F={data(){return{}},methods:{}};var _sfc_render$2F=function(){var t=this,s=t._self._c;return s("div")},_sfc_staticRenderFns$2F=[],__component__$2F=chartbi.normalizeComponent(_sfc_main$2F,_sfc_render$2F,_sfc_staticRenderFns$2F,!1,null,"fc28bdaf",null,null);const topNav=__component__$2F.exports,main_vue_vue_type_style_index_0_scoped_c4b63734_lang="",_sfc_main$2E={props:{navParameters:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]},positionCss:{type:String,default:""}},data(){return{}},computed:{componentmenu(){return{sidemenu:sideNav,topmenu:topNav}[this.navParameters.layout]}},methods:{}};var _sfc_render$2E=function(){var t=this,s=t._self._c;return s(t.componentmenu,{tag:"component",attrs:{navParameters:t.navParameters,treeData:t.treeData,positionCss:t.positionCss}},[t._t("default")],2)},_sfc_staticRenderFns$2E=[],__component__$2E=chartbi.normalizeComponent(_sfc_main$2E,_sfc_render$2E,_sfc_staticRenderFns$2E,!1,null,"c4b63734",null,null);const navBuild=__component__$2E.exports;function getCss(i,t=!1){let s="";for(let a in i)s+=getProperti(i,a,t);return s}function paddingData(i){let t=[];return(i.padding?i.padding:[]).forEach(a=>{t.push(a?`${a}px`:0)}),t.length===0?"":`padding:${t.join(" ")};`}function marginData(i){let t=[];return(i.margin?i.margin:[]).forEach(a=>{t.push(a?`${a}px`:0)}),t.length===0?"":`margin:${t.join(" ")};`}function backgroundData(i){const t=i.bjColor?i.bjColor:"";return t===""?"":`background-color:${t};`}function radiusData(i){let t=[];return(i.radius?i.radius:[]).forEach(a=>{t.push(a?`${a}px`:0)}),t.length===0?"":`border-radius:${t.join(" ")};`}function textAlign(i){const t=i.align?i.align:"";return t===""?"":`text-align:${t};`}function lineHeight(i){const t=i.lineHeight?i.lineHeight:"";return t===""?"":`line-height:${t}px;`}function letterSpacing(i){const t=i.letterSpacing?i.letterSpacing:"";return t===""?"":`letter-spacing:${t}px;`}function colorData(i){if(i.color==="0")return"color:var(--color);";const t=i.color?i.color:"";return t===""?"":`color:${t};`}function fontSize(i){const t=i.fontSize?i.fontSize:"";return t===""?"":`font-size:${t}px;`}function fontWeight(i){const t=i.fontWeight?i.fontWeight:"";return t===""?"":`font-weight:${t};`}function textDecoration(i){const t=i.textDecoration?i.textDecoration:"";return t===""?"":`text-decoration:${t};`}function fontStyle(i){const t=i.fontStyle?i.fontStyle:"";return t===""?"":`font-style:${t};`}function maxLineClamp(i){const t=i.maxLineClamp?i.maxLineClamp:"";return t===""?"":`overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: ${t};-webkit-box-orient: vertical;`}function widthData(i,t=!1){const s=i.flexWidth?i.flexWidth:"100",a=i.flexUnit?i.flexUnit:"%",l=a==="%"?s>100?100:s:a==="auto"?"":s;return t&&`${l}${a}`=="100%"?"flex:1;":`width:${l}${a};`}function flexDirection(i){const t=i.flexDirection?i.flexDirection:"";return t===""?"":`flex-direction:${t};`}function justifyContent(i){const t=i.justifyContent?i.justifyContent:"";return t===""?"":`justify-content:${t};`}function alignItems(i){const t=i.alignItems?i.alignItems:"";return t===""?"":`align-items:${t};`}function flexWrap(i){const t=i.flexWrap?i.flexWrap:"";return t===""?"":`flex-wrap:${t};`}function flexSpacing(i){const t=i.spacing?i.spacing:"";return t===""?"":`gap:${t}px;`}function getProperti(i,t,s){switch(t){case"padding":return paddingData(i);case"margin":return marginData(i);case"bjColor":return backgroundData(i);case"radius":return radiusData(i);case"align":return textAlign(i);case"lineHeight":return lineHeight(i);case"letterSpacing":return letterSpacing(i);case"color":return colorData(i);case"fontSize":return fontSize(i);case"fontWeight":return fontWeight(i);case"textDecoration":return textDecoration(i);case"fontStyle":return fontStyle(i);case"maxLineClamp":return maxLineClamp(i);case"flexWidth":return widthData(i,s);case"flexDirection":return flexDirection(i);case"justifyContent":return justifyContent(i);case"alignItems":return alignItems(i);case"flexWrap":return flexWrap(i);case"spacing":return flexSpacing(i);default:return""}}const tableView_vue_vue_type_style_index_0_scoped_234f7952_lang="",_sfc_main$2D={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},height:{type:Number,default:100},isFlexLayout:{type:Boolean,default:!1}},data(){return{}},components:{ViewTable:ViewTable$1},computed:{componentItemed(){const i=this.$importViewFiles();let s=`../views/main/${this.options.table.tableName||this.options.table.tablename}/index.vue`,a=i[s];return a?a.default:ViewTable$1},show(){const i=!!this.options.table.id,t=!!this.options.view.id;return!(i&&t)},options(){return this.record.options},gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""},wstyle(){const i=this.develop==1?"":`${getCss(this.options,this.isFlexLayout)}max-width:100%;`,t=this.record.customCss?this.record.customCss:"";return`${i}${getCss(this.record.css)}${t}`}},methods:{}};var _sfc_render$2D=function(){var t=this,s=t._self._c;return s("div",{staticClass:"view-table",class:t.gclass,style:t.wstyle},[t.show?s("div",{staticClass:"emport"},[t._v("~"+t._s(t.$i18nt("gd.module.pleaseClickOnViewGenerator","\u8BF7\u70B9\u51FB\u89C6\u56FE\u751F\u6210\u5668"))+"~")]):s(t.componentItemed,{tag:"component",attrs:{record:t.record,height:t.height,develop:t.develop},on:{changeData:a=>t.$emit("changeData",a),onSelectChange:(a,l)=>t.$emit("onSelectChange",a,l),fieldData:a=>t.$emit("fieldData",a)}})],1)},_sfc_staticRenderFns$2D=[],__component__$2D=chartbi.normalizeComponent(_sfc_main$2D,_sfc_render$2D,_sfc_staticRenderFns$2D,!1,null,"234f7952",null,null);const tableView=__component__$2D.exports;function getColumns(i,t,s){var h,f,m,y,g;if(!i.syscodegenconfig&&!i.syscodegenconfigfk)return console.log("\u5B57\u6BB5:"+i.name+"\u6570\u636E\u9519\u8BEF!"),null;const a=["fk","user"].includes(i.syscodegenconfig.effecttype)?(h=i.syscodegenconfigfk)==null?void 0:h.effecttype:i.syscodegenconfig.effecttype,l=i.syscodegenconfig.effecttype,n=getColumnName(i).toLowerCase(),o=i.align?i.align.split("&"):[],r=["fk","user"].includes(l)?(f=i.syscodegenconfigfk)==null?void 0:f.fieldformat:i.syscodegenconfig.fieldformat,d=o[7]?o[7]==="true":!1;let u={key:n,transKey:`Dynamics.${i.transkey}`,prop:n,label:i.name,width:String(i.width),owidth:String(i.width),columnName:i.syscodegenconfig.columnname,fkEntityName:i.syscodegenconfig.fkentityname,id:i.fieldid,fkId:["fk","about","user"].includes(l)?(m=i.syscodegenconfigfk)==null?void 0:m.id:null,align:o[0]?o[0]:"center",checked:o[1]?o[1]==1:!0,effectType:a,fieldType:l,gatherConfig:i.gatherconfig==1,fieldFormat:o[6]?o[6]:r,dictTypeCode:["fk","user"].includes(l)?(y=i.syscodegenconfigfk)==null?void 0:y.dicttypecode:i.syscodegenconfig.dicttypecode,dictTypeList:[],maxTagCount:i.maxtagcount?Number(i.maxtagcount):2,sourceFk:!!["fk","about","user"].includes(l),displayMode:o[2]?o[2]:"none",displayPrefix:o[3]?o[3]:"none",preview:o[4]?o[4]==="true":!0,download:o[5]?o[5]==="true":!0,filedsize:a==="inputnumber"?0:["fk","user"].includes(i.syscodegenconfig.effecttype)?(g=i.syscodegenconfigfk)==null?void 0:g.filedsize:i.syscodegenconfig.filedsize,hyperlink:t===0||["fk","user","about"].includes(l)?d:!1};const p=getScopedSlots(l,n,i,u.fieldFormat);return i.orderconfig===1&&Object.assign(u,{sortable:"custom"}),t<s&&Object.assign(u,{fixed:"left"}),["participants"].includes(l)&&Object.assign(u,{showTooltip:!1}),Object.assign(u,p)}function getColumnName(i){const t=i.syscodegenconfigfk?i.syscodegenconfigfk.columnname:"";switch(i.syscodegenconfig.effecttype){case"fk":return t+i.syscodegenconfig.fkentityname+i.syscodegenconfig.columnname;case"user":return t+i.syscodegenconfig.fkentityname+i.syscodegenconfig.columnname;case"about":return i.syscodegenconfig.relations.toLowerCase();default:return i.syscodegenconfig.columnname}}function getScopedSlots(i,t,s,a){return i=="input"?{}:["datepicker"].includes(i)&&a===1?{}:{type:"slot",slotType:t}}function getQueries(i,t,s){if(i.syscodegenconfig==null)return!1;let a=i.options?JSON.parse(i.options):{},l={required:a.required,message:s,trigger:"blur"};["inputnumber","double"," currency"].includes(i.syscodegenconfig.effecttype)&&Object.assign(l,{type:"number"});const n=a.fieldFormat===void 0?"1":a.fieldFormat,o=t.filter(d=>d.code==n)[0];return{id:i.syscodegenconfig.id,transKey:`Dynamics.${i.syscodegenconfig.transkey}`,prop:i.syscodegenconfig.columnname,label:i.syscodegenconfig.columncomment,effectType:getEffectType(i.syscodegenconfig.effecttype),dictTypeCode:i.syscodegenconfig.dicttypecode,fkEntityName:i.syscodegenconfig.fkentityname,disabled:i.disabled===void 0?!1:i.disabled,options:Object.assign(a,{fieldFormat:n}),min:a.min,max:a.max,fieldFormat:n,valueFormat:getFieldFormat(n,t),rules:[l],hasFiltered:!1,filterList:[],filterConfig:a.filterConfig!==void 0?a.filterConfig:null,viewId:a.viewdeId!==void 0?a.viewdeId:"",fkData:[],hasTimePicker:hasTimePicker(o),pickerType:pickerType(o),quick:a.quick===void 0?!1:a.quick,labelWidth:a.quick===void 0?"120px":a.labelWidth+"px"}}function getFilterQueries(i,t,s,a){if(t===void 0)return!1;let l={required:i.required,message:a,trigger:"blur"};["inputnumber","double"," currency"].includes(i.effectType)&&Object.assign(l,{type:"number"});const n=i.fieldFormat,o=s.filter(u=>u.code==n)[0],r=getEffectType(i.effectType);return{labelWidth:i.labelWidth?`${i.labelWidth}px`:"120px",transKey:`Dynamics.${t.transkey}`,prop:i.columnName,label:t.columncomment,effectType:r,dictTypeCode:i.dictTypeCode,fkEntityName:i.fkEntityName,disabled:i.disable,options:{effectType:i.effectType,fieldFormat:n,displayStyle:i.displayStyle,defaultValue:i.defaultValue,defaultValueList:i.defaultValueList,filterList:i.filterList,hidden:i.hidden,required:i.required,defaultInterval:i.defaultInterval,openWidth:i.openWidth?i.openWidth:80,widthUnit:i.widthUnit?i.widthUnit:"%"},min:i.min,max:i.max,fieldFormat:n,valueFormat:getFieldFormat(n,s),rules:[l],hasFiltered:!1,filterList:[],filterConfig:i.filterConfig!==void 0?i.filterConfig:null,viewId:i.viewdeId!==void 0?i.viewdeId:"",fkData:[],hasTimePicker:hasTimePicker(o),pickerType:pickerType(o),show:!0}}function hasTimePicker(i){const t=i?i.name:"yyyy-MM-dd";return["hh:mm:ss","hh:mm","mm:ss","HH:mm:ss","HH:mm"].includes(t)}function pickerType(i){const t=i?i.name:"yyyy-MM-dd";let s="date";return t==="yyyy-MM-dd hh:mm:ss"||t==="yyyy-MM-dd HH:mm:ss"?s="datetime":t==="yyyy-MM"?s="month":t==="yyyy"&&(s="year"),s}function getFieldFormat(i,t){if(i===null)return i;const s=t.filter(a=>String(a.code)===String(i))[0];return s?s.name.replace("DD","dd"):"yyyy-MM-dd HH:mm:ss"}function getEffectType(i){let t=i;return["image","file"].includes(i)?t="input":["select","radio","switch","checkbox"].includes(i)?t="selectMultiple":["fk","about","participants","user"].includes(i)&&(t="selectFkMultiple"),t}function switchingDate(i,t,s,a){let l=new Map;for(var n in i){let o=i[n]!=null&&i[n]!==void 0?i[n]:"",r=t?t.filter(u=>u.columnname===n)[0]:null;if((r?r.effecttype:"input")==="datepicker"){let u=dateProcessing(o,r,s,a);u&&(l.set(n+"Start",u[0]),l.set(n+"End",u[1]))}else Array.isArray(o)?o.length>0&&l.set(n,o.join(",")):typeof o=="number"?o!==void 0&&l.set(n,o):!o==""&&l.set(n,o)}return l.size==0?{}:Object.fromEntries(l)}function dateProcessing(i,t,s,a){if(i==="")return!1;const l=s.filter(o=>o.prop===t.columnname)[0];if(!l)return!1;const n=a.filter(o=>o.code==l.options.fieldFormat)[0];if(typeof i=="array"||typeof i=="object"){const o=i[1]?endDayTime(i[1]):"",r=n.name==="yyyy-MM"?"-01 00:00:00":" 00:00:00",d=n.name==="yyyy-MM"?`-${o} 23:59:59`:" 23:59:59";return i[1]?[i[0].split(" ")[0]+r,i[1].split(" ")[0]+d]:!1}if(n.name==="yyyy-MM-dd hh:mm:ss"||n.name==="yyyy-MM-dd HH:mm:ss")return[i,i];if(n.name==="yyyy-MM-dd")return[`${i} 00:00:00`,`${i} 23:59:59`];if(n.name==="yyyy-MM"){const o=endDayTime(i);return[`${i}-01 00:00:00`,`${i}-${o} 23:59:59`]}else{if(n.name==="yyyy")return[`${i}-01-01 00:00:00`,`${i}-12-31 23:59:59`];if(n.name==="MM-dd"){const o=new Date().getFullYear();return[`${o}${i} 00:00:00`,`${o}${i} 23:59:59`]}else return[i,i]}}function hasDefaultVal(i){let t=new Map,s=getDatepickerVal(i);return["switch","select","radio","checkbox","selectMultiple"].includes(i.effectType)&&i.options.defaultValueList.length>0?t.set(i.prop,i.options.defaultValueList):["datepicker"].includes(i.effectType)&&s?t.set(i.prop,s):(["input","textarea","editor"].includes(i.effectType)&&i.options.defaultValue!==""||["inputnumber","double"," currency"].includes(i.effectType)&&i.options.defaultValue!==""&&i.options.defaultValue!==void 0)&&t.set(i.prop,i.options.defaultValue),Object.fromEntries(t)}function getDatepickerVal(i){if(!["datepicker"].includes(i.effectType))return!1;let t=i.options.displayStyle,s=i.options.defaultInterval.filter(o=>o.type==="interval")[0],a=i.options.defaultInterval.filter(o=>o.type==="equal")[0],l=a.value===""?i.options.defaultValue:i.valueFormat==="yyyy-MM"?getTimeMonth(a,t):getTimeDatas(a,t,i),n=s.value===""?i.options.defaultValueList:i.valueFormat==="yyyy-MM"?getTimeMonth(s,t):getTimeDatas(s,t,i);return t==1?l===""?!1:l:n.length===0?!1:n}function getTimeDatas(i,t,s){let a=Number(i.value),l=new Date().getTime(),n=l-a*1e3*60*60*24,o=getFormatTime(l),r=getFormatTime(n),d=`${o.year}-${o.mon}-${o.day} ${o.hours}:${o.min}:${o.sec}`,u=`${r.year}-${r.mon}-${r.day} ${r.hours}:${r.min}:${r.sec}`;return t==1?s.valueFormat.replace("DD","dd")==="YYYY-MM-dd"?u.split(" ")[0]:u:[u,d]}function getTimeMonth(i,t,s){let a=Number(i.value),l=new Date().getTime(),n=getFormatTime(l),o=n.year,r=Number(n.mon);return t==0&&a===13?[`${o}-01`,`${o}-${formatNumber(r)}`]:(r-a<0?(r=r-a+12,o-=1):r-a===0?(r=t==1?12:1,o=t==1?o-1:o):r-=a,t==1?`${o}-${formatNumber(r)}`:[`${o}-${formatNumber(r)}`,`${n.year}-${n.mon}`])}function getFormatTime(i){let s=i.toString().length==10?parseInt(i)*1e3:parseInt(i);var a=new Date(s),l=a.getFullYear(),n=a.getMonth()+1,o=a.getDate(),r=a.getHours(),d=a.getMinutes(),u=a.getSeconds();return{year:l,mon:formatNumber(n),day:formatNumber(o),hours:formatNumber(r),min:formatNumber(d),sec:formatNumber(u)}}function formatNumber(i){return i=i.toString(),i[1]?i:"0"+i}function endDayTime(i){const t=i.split("-");return new Date(t[0],t[1],0).getDate()}const tableGridView_vue_vue_type_style_index_0_scoped_3e71f6e4_lang="",_sfc_main$2C={mixins:[viewMixins],methods:{executeEvent(i){if(this.istable){const t=i.functionName?i.functionName:"";t&&this[t]!==void 0?this[t](i):console.log("\u6267\u884C\u9519\u8BEF")}},refresh(){this.$refs.table.refresh()},tableGridadd(i){this.baseAdd()},tableGriddelete(i){this.$refs.table.tableGriddelete(i)},tableGridpage(i){i.type=="tree"?this.$refs.table.changeViewTree(i.e):this.$refs.table.tableGridpage(i)},gettableGrid(i){i&&i.id?this.record.tableGridList=i.data:this.$refs.table.gettableGrid()},tablehandle(i,t,s){if(i.formMode=="systemsMethod"){let a=i.sysFunctionName;this[a]&&this[a](e);return}this.recordoperations.doEvent&&this.recordoperations.doEvent({key:i.componentKey,functionName:i.componentFunction,data:t,id:t.id})},getStyle(i,t){return`font-size: ${i.fontSize}px;color:${i.color};`},getDefaultParam(i){const t=this.record.getComponentData?this.record.getComponentData(i):null;if(!t)return{};let s={};const a=this.getDictionary("time_longshort");let l=t.queryList?t.queryList:[],n=[],o=[];return l.forEach(d=>{const u={columncomment:d.columnComment,transkey:d.transKey,columnname:d.columnName,effecttype:d.effectType};n.push(u);const p=getFilterQueries(d,u,a,this.$i18nt("gd.placeholder.required","\u5FC5\u586B\u9879"));p&&!p.disabled&&!p.options.hidden&&Object.assign(s,hasDefaultVal(p)),p&&o.push(p)}),switchingDate(s,n,o,a)},initQueryParam(){const i=this.options.queryDefaultKey?this.options.queryDefaultKey:"";i!==""&&this.$nextTick(()=>{setTimeout(()=>{let t={data:this.getDefaultParam(i),fieldData:this.record.fieldsData};this.$refs.table.tableGridpage(t)},1e3)})}},mounted(){this.initQueryParam()}};var _sfc_render$2C=function(){var t=this,s=t._self._c;return s("div",[s("gd-view-build-designer",{ref:"table",attrs:{record:t.record,istable:t.istable,develop:t.develop,openMode:t.openMode,height:t.height,foreign:t.foreign,disabledRowId:t.disabledRowId,excludeButtons:t.excludeButtons,lineQuickView:t.lineQuickView},on:{baseOpen:t.open,changeBtn:t.onChangeBtn,changeView:t.onChangeView,changeData:t.onChangeData,changeSelect:t.onChangeSelect,doEvent:t.doEvent},scopedSlots:t._u([{key:"tableGridOperation",fn:function({column:a,row:l,item:n}){return t._l(n.operations,function(o,r){return s("el-button",{key:r,class:o.hide?"btnhidden":"",style:t.getStyle(o,n),attrs:{type:o.btnStyle,size:"small",disabled:o.disabled},on:{click:function(d){return t.tablehandle(o,l,n)}}},[s("i",{staticClass:"gd-icons",class:o.icon}),t._v(" "+t._s(t.$i18nt(o.transKey,o.displayName)))])})}}])})],1)},_sfc_staticRenderFns$2C=[],__component__$2C=chartbi.normalizeComponent(_sfc_main$2C,_sfc_render$2C,_sfc_staticRenderFns$2C,!1,null,"3e71f6e4",null,null);const ViewTable=__component__$2C.exports,tableGrid_vue_vue_type_style_index_0_scoped_8bf10bb8_lang="",_sfc_main$2B={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},height:{type:Number,default:100},isFlexLayout:{type:Boolean,default:!1}},data(){return{}},components:{ViewTable},computed:{componentItemed(){return ViewTable},show(){const i=!!this.options.table.id,t=!!this.options.view.id;return!(i&&t)},options(){return this.record.options},gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""},wstyle(){const i=this.develop==1?"":`${getCss(this.options,this.isFlexLayout)}max-width:100%;`,t=this.record.customCss?this.record.customCss:"";return`${i}${getCss(this.record.css)}${t}`}},methods:{executeEvent(i){this.$refs.ViewTable.executeEvent(i)}},mounted(){this.develop==2&&(this.record.executeEvent=this.executeEvent)}};var _sfc_render$2B=function(){var t=this,s=t._self._c;return s("div",{staticClass:"view-table",class:t.gclass,style:t.wstyle},[t.show?s("div",{staticClass:"emport"},[t._v("~"+t._s(t.$i18nt("gd.module.pleaseClickOnFormGenerator","\u8BF7\u70B9\u51FB\u8868\u683C\u751F\u6210\u5668"))+"~")]):s(t.componentItemed,{ref:"ViewTable",tag:"component",attrs:{record:t.record,recordoperations:t.record,istable:!0,height:t.height,develop:t.develop},on:{changeData:a=>t.$emit("changeData",a),onSelectChange:(a,l)=>t.$emit("onSelectChange",a,l),fieldData:a=>t.$emit("fieldData",a)}})],1)},_sfc_staticRenderFns$2B=[],__component__$2B=chartbi.normalizeComponent(_sfc_main$2B,_sfc_render$2B,_sfc_staticRenderFns$2B,!1,null,"8bf10bb8",null,null);const tableGrid$1=__component__$2B.exports,treePanel_vue_vue_type_style_index_0_scoped_5258100e_lang="",_sfc_main$2A={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},height:{type:Number,default:100},isFlexLayout:{type:Boolean,default:!1}},data(){return{queryParam:{}}},computed:{show(){return!!!this.options.table.id},gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""},wstyle(){const i=this.develop==1?"":`${getCss(this.options,this.isFlexLayout)}max-width:100%;`,t=this.record.customCss?this.record.customCss:"";return`${i}${getCss(this.record.css)}${t}`},interac(){return this.record.interac||{}},options(){return this.record.options||{}},viewRecord(){return{...this.record.options,viewtree:JSON.stringify(this.record.options.viewtree)}},hig(){const i=this.develop===1?102:78,t=this.develop===1?46+24+12:0,s=this.develop===1?this.screenHeight-46-i-t:this.height-i-t;return this.options.heightMode==="custom"?this.options.height:s}},methods:{changeViewTree(i){if(this.interac.formMode==="systemsMethod"){let t=this.interac.sysFunctionName;this[t]&&this[t](this.interac);return}this.record.doEvent&&this.record.doEvent({key:this.interac.componentKey,functionName:this.interac.componentFunction,e:i,type:"tree"})}}};var _sfc_render$2A=function(){var t=this,s=t._self._c;return s("div",{staticClass:"view-table",class:t.gclass,style:t.wstyle},[t.show?s("div",{staticClass:"emport"},[t._v("~"+t._s(t.$i18nt("gd.tree.pleaseClickOnFormGenerator","\u8BF7\u70B9\u51FB\u6811\u751F\u6210\u5668"))+"~")]):s("gd-view-tree-left",{ref:"viewTree",attrs:{queryParam:t.queryParam,viewRecord:t.viewRecord,openMode:1,height:t.hig,record:t.record},on:{change:t.changeViewTree}})],1)},_sfc_staticRenderFns$2A=[],__component__$2A=chartbi.normalizeComponent(_sfc_main$2A,_sfc_render$2A,_sfc_staticRenderFns$2A,!1,null,"5258100e",null,null);const treePanel=__component__$2A.exports,editor_vue_vue_type_style_index_0_scoped_93f8d146_lang="",_sfc_main$2z={props:{record:{type:Object,default:()=>({})},model:{type:Object,default:()=>({})}},components:{quillEditor:system_email.vueQuillEditor.exports.quillEditor},data(){return{}},computed:{options(){return this.record.options},editorOption(){return{placeholder:this.options.placeholder!==void 0?this.options.placeholder===""?this.options.placeholder:this.$i18nt(`Dynamics.${this.options.placeholderTransKey}`,this.options.placeholder):this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}},style(){return{height:`${this.options.height|300}px`,width:`${this.options.width}${this.options.widthUnit}`}},disabled(){return this.options.disabled===void 0?!1:this.options.disabled}},methods:{onEditorBlur(){},onEditorFocus(){},onEditorChange(i){this.$emit("change",i.html)}},mounted(){this.$refs.vueQuillEditor.quill.enable(!1),this.$nextTick(()=>{setTimeout(()=>{this.$refs.vueQuillEditor.quill.blur(),this.$refs.vueQuillEditor.quill.enable(!0)},1e3)})}};var _sfc_render$2z=function(){var t=this,s=t._self._c;return s("quillEditor",{ref:"vueQuillEditor",staticClass:"ql-editor-class",class:{chinesization:!0},style:t.style,attrs:{options:t.editorOption,disabled:t.disabled},on:{blur:function(a){return t.onEditorBlur(a)},focus:function(a){return t.onEditorFocus(a)},change:function(a){return t.onEditorChange(a)}},model:{value:t.model[t.options.columnName],callback:function(a){t.$set(t.model,t.options.columnName,a)},expression:"model[options.columnName]"}})},_sfc_staticRenderFns$2z=[],__component__$2z=chartbi.normalizeComponent(_sfc_main$2z,_sfc_render$2z,_sfc_staticRenderFns$2z,!1,null,"93f8d146",null,null);const editor=__component__$2z.exports,divider_vue_vue_type_style_index_0_scoped_f7955e4e_lang="",_sfc_main$2y={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},isFlexLayout:{type:Boolean,default:!1}},data(){return{}},computed:{options(){return this.record.options},istyle(){const i=this.record.css;let t=[];return(i.margin?i.margin:[]).forEach(a=>{t.push(a?`${a}px`:0)}),t.length===0?"":`--divider-margin:${t.join(" ")}`},style(){const i=this.record.css,t=this.develop==1?"":`${getCss(this.options,this.isFlexLayout)}max-width:100%;`,s=this.record.customCss?this.record.customCss:"",a=paddingData(i),l=backgroundData(i);return`overflow: hidden;${t}${a}${l}${s}${this.istyle}`},fstyle(){const i=this.record.css,t=fontSize(i),s=colorData(i);return`${t}${s}`},gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""}},methods:{}};var _sfc_render$2y=function(){var t=this,s=t._self._c;return s("div",{staticClass:"ge-divider",class:t.gclass,style:t.style},[s("el-divider",{attrs:{direction:t.options.direction,"content-position":t.options.position}},[t.options.transKey&&t.options.direction==="horizontal"?s("div",{style:t.fstyle},[t._v(" "+t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title))+" ")]):t._e()])],1)},_sfc_staticRenderFns$2y=[],__component__$2y=chartbi.normalizeComponent(_sfc_main$2y,_sfc_render$2y,_sfc_staticRenderFns$2y,!1,null,"f7955e4e",null,null);const divider=__component__$2y.exports,textContent_vue_vue_type_style_index_0_scoped_6ab694a4_lang="",_sfc_main$2x={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]},isFlexLayout:{type:Boolean,default:!1}},data(){return{}},watch:{fieldContext:{handler(i){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)},deep:!0,immediate:!0}},computed:{hsaDictTypeCode(){const t=(this.record.fieldContext?this.record.fieldContext:[]).filter(a=>a.value===this.columnName)[0];return t&&t.dictTypeCode?t.dictTypeCode:null},gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""},columnData(){const i=this.itemData[this.columnName];let t=[];i!==""&&i!==null&&i!==void 0&&(t=String(i).split(","));const s=this.getDictionary(this.hsaDictTypeCode);let a=[];return t.forEach(l=>{const n=s.filter(o=>o.code==l)[0];n?a.push({name:n.name,code:n.code,transKey:n.transkey,colour:n.colour?n.colour:null}):a.push({name:l,code:l,transKey:l,colour:null,style:""})}),a},columnName(){const i=this.options.columnContextName?this.options.columnContextName:[];return i[i.length-1]},options(){return this.record.options},style(){const i=this.record.customCss?this.record.customCss:"";return`${getCss(this.record.css)}${i}`},wstyle(){return`overflow: hidden;${this.develop==1?"":`${getCss(this.options,this.isFlexLayout)}max-width:100%;`}`}},methods:{mstyle(i){const t=this.record.css,s=t.align?t.align:"left",a=i.colour?`color:${i.colour};`:"";return s==="left"?`margin: 0 4px 0 0;${a}`:s==="right"?`margin: 0 0 0 4px;${a}`:`margin: 0 4px;${a}`},getDictionary(i){return this.$options.filters.dictData(i)}},mounted(){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)}};var _sfc_render$2x=function(){var t=this,s=t._self._c;return s("div",{class:t.gclass,style:t.wstyle},[t.develop==1?s("div",{style:t.style},[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))]):[t.columnName?[t.hsaDictTypeCode?s("div",{style:t.style},[t._l(t.columnData,function(a){return[s("span",{style:t.mstyle(a)},[t._v(t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.name)))])]})],2):s("div",{style:t.style},[t._v(" "+t._s(t.itemData[t.columnName])+" ")])]:s("div",{style:t.style},[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))])]],2)},_sfc_staticRenderFns$2x=[],__component__$2x=chartbi.normalizeComponent(_sfc_main$2x,_sfc_render$2x,_sfc_staticRenderFns$2x,!1,null,"6ab694a4",null,null);const textContent=__component__$2x.exports,title_vue_vue_type_style_index_0_scoped_5871f398_lang="",_sfc_main$2w={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]},isFlexLayout:{type:Boolean,default:!1}},data(){return{}},watch:{fieldContext:{handler(i){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)},deep:!0,immediate:!0}},computed:{gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""},options(){return this.record.options},sstyle(){const i={fontSize:this.options.subFontSize,color:this.options.subColor,lineHeight:this.options.sublineHeight},t=fontSize(i),s=colorData(i),a=lineHeight(i),l=this.options.locationLayout==="level"?"padding-left:6px":"";return`${t}${s}${a}${l}`},style(){const i=this.develop==1?"":`${getCss(this.options,this.isFlexLayout)}max-width:100%;`,t=this.record.customCss?this.record.customCss:"",s=this.record.css,a=this.options.locationLayout==="level"?"flex-direction:row;align-items: flex-end;":"flex-direction:column;align-items: center;";return`overflow: hidden;${i}${getCss(s)}${a}${t}`}},methods:{search(){const i=this.record.interac,t=this.options.columnContextName?this.options.columnContextName:[],s=t[t.length-1],a=i.componentFunction==="gd-win-open-api"?i.customApi:this.itemData[s];this.record.doEvent(Object.assign({key:i.componentKey,functionName:i.componentFunction,data:a,source:this.record,callback:!1,callbackComponents:"",callbackFunction:""}))}},mounted(){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)}};var _sfc_render$2w=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-title-sbu",class:t.gclass,style:t.style,on:{click:t.search}},[s("div",{staticClass:"title-heading"},[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))]),s("div",{staticClass:"title-subtitle",style:t.sstyle},[t._v(" "+t._s(t.$i18nt(`Dynamics.${t.options.subtransKey}`,t.options.subtitle))+" ")]),t.options.iconShow?s("div",{staticClass:"jiant"},[s("i",{staticClass:"el-icon-arrow-right"})]):t._e()])},_sfc_staticRenderFns$2w=[],__component__$2w=chartbi.normalizeComponent(_sfc_main$2w,_sfc_render$2w,_sfc_staticRenderFns$2w,!1,null,"5871f398",null,null);const titleVlaue=__component__$2w.exports,sysOverallFun=[{name:"\u6253\u5F00\u8868\u5355\u65B0\u589E\u6570\u636E",code:"sysBaseAdd",transKey:"gd.btnConfig.btnAdd",type:["form"],callback:!0},{name:"\u6253\u5F00\u8868\u5355\u7F16\u8F91\u6570\u636E",code:"sysBaseEdit",transKey:"gd.btnConfig.btnEdit",type:["form"],callback:!0},{name:"\u6253\u5F00\u7B5B\u9009\u9879",code:"sysBaseQuery",transKey:"gd.btnConfig.openFilterOptions",type:["view"],callback:!0},{name:"\u5220\u9664\u6570\u636E",code:"sysBaseDel",transKey:"gd.function.deleteIdData",type:["view"],callback:!0},{name:"\u81EA\u5B9A\u4E49",code:"sysBaseCustom",transKey:"gd.settings.custom",type:["view","form"]}],unifiedComponents_vue_vue_type_style_index_0_scoped_7512ded0_lang="",_sfc_main$2v={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]}},data(){return{btnItems:{},show:!1,statu:!1,fieldData:[],visible:!1}},computed:{ids(){const i=this.itemData.id?this.itemData.id:chartbi.uuid();let t="";for(let s in this.itemData)s!=="id"&&this.itemData[s]===i&&(t=s);return this.foreignContextName.length===0?t:t+"_"+i},getRecord(){const i=this.foreignContextName.length===0?{}:{foreign:{fkValue:this.itemData.id,fkName:this.foreignContextName[0]}},t=this.foreignContextName.length===0?{}:{foreign:this.foreignContextName[0],saved:!0};return Object.assign(this.record,i,{options:Object.assign(this.options,t)})},openMode(){return this.foreignContextName.length===0?1:3},foreignContextName(){return this.options.foreignContextName?this.options.foreignContextName.split(","):[]},getTitle(){return this.btnItems.transKey||this.btnItems.displayName?this.$i18nt(`Dynamics.${this.btnItems.transKey}`,this.btnItems.displayName):this.$i18nt("gd.basics.screen","\u7B5B\u9009")},componentForm(){const i=this.$importViewFiles();let s=`../views/main/${this.btnItems.table}/editForm.vue`;const a=i[s];return a?a.default:GdsDesignVue.GdFormBuildDesigner},tableData(){const i=this.tableLists.filter(t=>t.tablename===this.btnItems.table)[0];return i||{tablename:this.btnItems.table}},options(){return this.record.options},hig(){return this.screenHeight-68},...chartbi.mapGetters(["tableLists","screenHeight"])},methods:{doToggle(i=!1){this.$emit("doToggle",i)},sysBaseDel(i){const t=i.columnContextName?i.columnContextName:[],s=t[t.length-1],a=this.itemData[s];let l=this;if(!a){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(n,o,r)=>{if(n!=="confirm"){r();return}o.confirmButtonLoading=!0,o.cancelButtonLoading=!0,o.showCancelButton=!1,messages.baseDel({tableId:l.tableData.id,ids:a},i.sysFunctionApi?i.sysFunctionApi:"").then(d=>{o.confirmButtonLoading=!1,o.cancelButtonLoading=!1,o.showCancelButton=!0,d.success?(l.$message.success(l.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),l.refresh(),r()):l.$message.error(l.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+d.message)})}})},refresh(){this.btnItems.formMode==="systemsMethod"&&(this.btnItems.callbackComponents&&this.btnItems.callbackFunction&&this.record.doEvent&&this.record.doEvent({key:this.btnItems.callbackComponents,functionName:this.btnItems.callbackFunction,id:this.ids,source:this.record},"callback"),this.closed())},async openForm(i,t){this.show=!0,this.$nextTick(()=>{setTimeout(async()=>{const s=sysOverallFun.filter(n=>n.code===this.btnItems.sysFunctionName)[0],a=s?s.transKey:`Dynamics.${this.btnItems.transKey}`,l=s?s.name:this.btnItems.displayName;if(this.$refs.editForm){const n=this.btnItems.btnDataAll.formlist.filter(r=>r.id===this.btnItems.tableComponents)[0];await this.$refs.editForm.setFormRecord(n);let o=t?{title:this.$i18nt(a,l),id:t,sysFunctionApi:this.btnItems.sysFunctionApi,sysFunctionName:this.btnItems.sysFunctionName}:{title:this.$i18nt(a,l),sysFunctionApi:this.btnItems.sysFunctionApi,sysFunctionName:this.btnItems.sysFunctionName};this.$refs.editForm.open(o),this.statu=!1,i.close()}},0)})},queriesRefresh(i,t){Object.assign(this.btnItems,{queryParam:{...i}}),this.btnItems.formMode==="systemsMethod"&&this.btnItems.callbackComponents&&this.btnItems.callbackFunction&&this.record.doEvent&&this.record.doEvent({key:this.btnItems.callbackComponents,functionName:this.btnItems.callbackFunction,data:i,id:this.ids,tableQueries:t,sysFunctionApi:this.btnItems.sysFunctionApi,source:this.record},"callback")},openQuery(i){const t=this.btnItems.btnDataAll.viewlist.filter(n=>n.id===this.btnItems.tableComponents)[0];let s=[],a={};t.sysviewqueries.forEach(n=>{const o=getQueries(n,this.getDictionary("time_longshort"),this.$i18nt("gd.placeholder.required","\u5FC5\u586B\u9879")),r=this.fieldData.filter(u=>{let p=o?o.prop:"";return u.columnname===p})[0],d=r?r.isquery:!0;o&&d&&s.push(o)}),s.map(n=>(!n.disabled&&!n.options.hidden&&(a=Object.assign(a,hasDefaultVal(n))),n));let l=this.btnItems.queryParam===void 0?{}:this.btnItems.queryParam===void 0;this.btnItems.queryParam===void 0&&Object.assign(this.btnItems,{queryParam:Object.assign(l,a),tableQueries:s,viewRecord:t}),this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.queriesField&&this.$refs.queriesField.init().then(n=>{this.statu=!1,i.close()})},10)})},colseQuery(){this.visible=!1},sysBaseAdd(i){i.table!==""&&this.getTableForm(null)},sysBaseEdit(){const i=this.btnItems.columnContextName?this.btnItems.columnContextName:[],t=i[i.length-1],s=this.itemData[t];this.getTableForm(s||null)},getTableForm(i){this.statu=!0;const t=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});if(this.btnItems.btnDataAll!==void 0&&this.btnItems.fieldData!==void 0){this.fieldData=this.btnItems.fieldData,this.openForm(t,i);return}Promise.all([this.baseTableData(),this.baseGetLoadData()]).then(s=>{s[0].code===200?this.openForm(t,i):(this.$message.warning(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+s[0].message),this.statu=!1,t.close())})},sysBaseQuery(){this.statu=!0;const i=this.$message({message:this.$i18nt("gd.https.Loading","\u52A0\u8F7D\u4E2D..."),duration:0,iconClass:"el-icon-loading"});if(this.btnItems.viewRecord){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.queriesField&&this.$refs.queriesField.init().then(t=>{this.statu=!1,i.close()})},10)});return}Promise.all([this.baseTableData(),this.baseGetLoadData()]).then(t=>{t[0].code===200?this.openQuery(i):(this.$message.warning(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t[0].message),this.statu=!1,i.close())})},baseTableData(){return messages.baseTableData({tableId:this.tableData.id}).then(i=>(i.code===200&&Object.assign(this.btnItems,{btnDataAll:i.data}),i))},baseGetLoadData(){return messages.onlineFormGetCodeGenerateList({codeGenId:this.tableData.id}).then(i=>(i.code===200&&(Object.assign(this.btnItems,{fieldData:i.data}),this.fieldData=i.data),i))},changeTrigger(){},getDictionary(i){return this.$options.filters.dictData(i)},toggleFullscreen(i){Object.assign(this.btnItems,{displayName:i?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F",transKey:i?"gd.menu.outFullScreen":"gd.menu.fullScreen",icon:i?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",btnStyle:i?"danger":"primary"})},doEvent(i,t=null){if(!this.statu){if(this.btnItems=i,i.formMode==="systemsMethod"){let s=i.sysFunctionName;this[s]&&this[s](i);return}if(this.record.doEvent){const s=i.columnContextName?i.columnContextName:[],a=s[s.length-1],l=i.componentFunction==="gd-win-open-api"?i.customApi:this.itemData[a],n=i.btnMode==="scale"?{toggleFullscreen:this.toggleFullscreen}:{};this.record.doEvent(Object.assign({key:i.componentKey,functionName:i.componentFunction,data:l,dataKey:t,id:this.ids,source:this.record,callback:i.callbackTwo?i.callbackTwo:!1,callbackComponents:i.callbackTwo?i.callbackComponents:"",callbackFunction:i.callbackTwo?i.callbackFunction:""},n))}}},closed(){this.$nextTick(()=>{setTimeout(()=>{this.$emit("closed")},100)})}}};var _sfc_render$2v=function(){var t=this,s=t._self._c;return s("div",[t.show?s(t.componentForm,{ref:"editForm",tag:"component",attrs:{fieldData:t.fieldData,tableData:t.tableData,recordRelation:t.getRecord,openMode:t.openMode},on:{ok:t.refresh,closed:t.closed}}):t._e(),s("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"366px","custom-class":"gd-drawer-form",wrapperClosable:!1},on:{"update:visible":function(a){t.visible=a},close:t.closed}},[s("template",{slot:"title"},[s("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[s("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.getTitle))]),s("div",{staticClass:"dialog-head-btn"})])]),s("div",[s("gd-table-queries-field",{ref:"queriesField",attrs:{columns:t.btnItems.tableQueries,height:t.hig,queryParam:t.btnItems.queryParam,colse:t.colseQuery,visible:t.visible,openMode:1,recordRelation:t.record,viewRecord:t.btnItems.viewRecord,openRules:!0,changeTrigger:t.changeTrigger,queriesMode:"drawer"},on:{save:t.queriesRefresh}})],1)],2)],1)},_sfc_staticRenderFns$2v=[],__component__$2v=chartbi.normalizeComponent(_sfc_main$2v,_sfc_render$2v,_sfc_staticRenderFns$2v,!1,null,"7512ded0",null,null);const UnifiedComponents=__component__$2v.exports,fonticon_vue_vue_type_style_index_0_scoped_bb497120_lang="";var timeOut$8=null;const _sfc_main$2u={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]},foreignContext:{type:Array,default:()=>[]},isFlexLayout:{type:Boolean,default:!1}},data(){return{confirmLoading:!1,show:!1}},components:{UnifiedComponents},watch:{fieldContext:{handler(i){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)},deep:!0,immediate:!0},foreignContext:{handler(i){this.foreignContext.length>0&&(this.record.foreignContext=this.foreignContext)},deep:!0,immediate:!0}},computed:{delayDisabled(){return this.options.delayDisabled===void 0||this.options.delayDisabled===""?2e3:this.options.delayDisabled},gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""},options(){return this.record.options},style(){const i=this.record.customCss?this.record.customCss:"";return`${getCss(this.record.css)}cursor: pointer;${i}`},wstyle(){return`overflow: hidden;${this.develop==1?"":`${getCss(this.options,this.isFlexLayout)}max-width:100%;`}`}},methods:{closed(){this.show=!1},doToggle(i=!1){timeOut$8&&clearTimeout(timeOut$8),this.confirmLoading=i,i&&(timeOut$8=setTimeout(()=>{this.doToggle()},this.delayDisabled))},doEvent(i){this.develop!==1&&(this.confirmLoading||(this.doToggle(!0),this.show=!0,this.$nextTick(()=>{setTimeout(()=>{this.$refs.unifiedComponents.doEvent(Object.assign(this.record.interac,{columnContextName:this.options.columnContextName}))},0)}),timeOut$8=setTimeout(()=>{this.confirmLoading=!1},this.delayDisabled)))}},mounted(){this.foreignContext.length>0&&(this.record.foreignContext=this.foreignContext),this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext),this.develop==2&&(this.record.doToggle=this.doToggle)}};var _sfc_render$2u=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-font-icon",class:t.gclass,style:t.wstyle},[s("div",{staticClass:"gd-icons",class:t.options.icon,style:t.style,on:{click:t.doEvent}}),t.develop==2&&t.show?s("UnifiedComponents",{ref:"unifiedComponents",attrs:{record:t.record,itemData:t.itemData,fieldContext:t.fieldContext},on:{doToggle:t.doToggle,closed:t.closed}}):t._e(),t.confirmLoading?s("div",{staticClass:"gd-dialog-meng"}):t._e()],1)},_sfc_staticRenderFns$2u=[],__component__$2u=chartbi.normalizeComponent(_sfc_main$2u,_sfc_render$2u,_sfc_staticRenderFns$2u,!1,null,"bb497120",null,null);const fonticon=__component__$2u.exports,tag_vue_vue_type_style_index_0_scoped_ef2d6f81_lang="",_sfc_main$2t={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]},foreignContext:{type:Array,default:()=>[]},isFlexLayout:{type:Boolean,default:!1}},data(){return{}},watch:{fieldContext:{handler(i){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)},deep:!0,immediate:!0}},computed:{gclass(){return this.develop==1?"":this.record.customClass?`gd-tag ${this.record.customClass}`:"gd-tag"},columnData(){const i=this.itemData[this.columnName];let t=[];i&&(t=String(i).split(","));let s=[];return t.forEach(a=>{const l=this.getDict.filter(n=>n.code==a)[0];l?s.push({name:l.name,code:l.code,transKey:l.transkey,colour:l.colour?l.colour:null}):s.push({name:a,code:a,transKey:a,colour:null,style:""})}),s},getDict(){return this.getDictionary(this.options.dictTypeCode)},columnName(){const i=this.options.columnContextName?this.options.columnContextName:[];return i[i.length-1]},options(){return this.record.options},style(){const i=this.record.customCss?this.record.customCss:"";return`${getCss(this.options,this.isFlexLayout)}${getCss(this.record.css)}${i}`},stylec(){return`${this.options.effect==="dark"?"color: #fff;border-color: transparent;":this.options.effect==="light"?`color:${this.options.color?this.options.color:this.primaryColor};`:""}${this.mstyle}`},mstyle(){const i=this.record.css,t=i.align?i.align:"left";return t==="left"?"margin: 0 4px 0 0":t==="right"?"margin: 0 0 0 4px":"margin: 0 4px"},...chartbi.mapGetters(["primaryColor"])},methods:{getDictionary(i){return this.$options.filters.dictData(i)}},mounted(){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)}};var _sfc_render$2t=function(){var t=this,s=t._self._c;return s("div",{class:t.gclass,style:t.style},[t.develop==1?s("el-tag",{class:`gd-tag-${t.options.effect}`,style:t.stylec,attrs:{effect:t.options.effect,color:t.options.color,size:t.options.size}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title))+" ")]):[t.columnName?[t._l(t.columnData,function(a){return[a.colour?s("el-tag",{class:`gd-tag-${t.options.effect} gd-tag-${t.record.css.align}`,style:t.stylec,attrs:{effect:t.options.effect,color:t.options.effect=="dark"?a.colour:"",size:t.options.size}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.name))+" ")]):s("span",{style:t.mstyle},[t._v(t._s(t.$i18nt(`Dynamics.${a.transKey}`,a.name)))])]})]:s("el-tag",{class:`gd-tag-${t.options.effect}`,style:t.stylec,attrs:{effect:t.options.effect,color:t.options.color,size:t.options.size}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title))+" ")])]],2)},_sfc_staticRenderFns$2t=[],__component__$2t=chartbi.normalizeComponent(_sfc_main$2t,_sfc_render$2t,_sfc_staticRenderFns$2t,!1,null,"ef2d6f81",null,null);const tagValue=__component__$2t.exports,image_vue_vue_type_style_index_0_scoped_455425b3_lang="",_sfc_main$2s={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]},isFlexLayout:{type:Boolean,default:!1}},data(){return{}},watch:{fieldContext:{handler(i){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)},deep:!0,immediate:!0}},computed:{noImageUrl(){return this.columnName?!1:this.develop==1&&!this.imageUrl},columnName(){const i=this.options.columnContextName?this.options.columnContextName:[];return i[i.length-1]},gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""},id(){return`gd-image-${chartbi.uuid(8)}`},imageUrl(){return this.columnName?this.itemData[this.columnName]:this.options.fileType==="upload"?this.options.fileId:this.options.imgLinkUrl},options(){return this.record.options},istyle(){const i=this.options,t=i.widthEl!==void 0?`${i.widthEl}px`:"100%",s=i.height!==void 0?`${i.height}px`:"auto";return`cursor: pointer;object-fit: ${i.objectFit};width:${t};height:${s}`},style(){const i=this.record.css,t=this.develop==1?"":`${getCss(this.options,this.isFlexLayout)}max-width:100%;`,s=this.record.customCss?this.record.customCss:"";return`overflow: hidden;${t}${getCss(i)}${s}`}},methods:{seeImg(){if(this.options.fileType==="upload"){const i=document.getElementById(this.id).getAttribute("data-src");if(!i)return;this.url=i,this.imgList=[i]}else this.url=this.imageUrl,this.imgList=[this.imageUrl];this.search()},search(){const i=this.record.interac?this.record.interac:{};let t=this.imageUrl;i.componentKey==="GdFilePreview"?t=[{url:this.url,fileoriginname:`${this.url}.png`,id:this.imageUrl}]:i.componentFunction==="gd-win-open-api"&&(t=i.customApi),this.record.doEvent({key:i.componentKey,functionName:i.componentFunction,data:t,source:this.record,callback:!1,callbackComponents:"",callbackFunction:""})}},mounted(){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)}};var _sfc_render$2s=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-image",class:t.gclass,style:t.style},[t.noImageUrl?s("div",{staticClass:"nlogo"},[s("div",{staticClass:"nlogos"},[t._m(0),s("div",{staticClass:"tip"},[t._v("~"+t._s(t.$i18nt("gd.module.pleaseUploadPicturesOnTheRight","\u8BF7\u5728\u53F3\u8FB9\u4E0A\u4F20\u56FE\u7247"))+"~")])])]):t._e(),!t.noImageUrl&&!t.imageUrl&&t.develop===1?[s("img",{staticClass:"gd-image-img",style:t.istyle,attrs:{src:"data:image/png;base64,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"}})]:t._e(),t.imageUrl?[t.columnName||t.options.fileType==="upload"?s("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.imageUrl,expression:"imageUrl"}],staticClass:"gd-image-img",style:t.istyle,attrs:{"data-url":t.imageUrl,id:t.id,"data-load":"N"},on:{click:function(a){return a.stopPropagation(),t.seeImg.apply(null,arguments)}}}):s("img",{staticClass:"gd-image-img",style:t.istyle,attrs:{src:t.imageUrl},on:{click:function(a){return a.stopPropagation(),t.seeImg.apply(null,arguments)}}})]:t._e()],2)},_sfc_staticRenderFns$2s=[function(){var i=this,t=i._self._c;return t("div",{staticClass:"icons"},[t("div",{staticClass:"iconfont icon-image"})])}],__component__$2s=chartbi.normalizeComponent(_sfc_main$2s,_sfc_render$2s,_sfc_staticRenderFns$2s,!1,null,"455425b3",null,null);const imageFile=__component__$2s.exports,linkItem_vue_vue_type_style_index_0_scoped_2fa6e543_lang="",_sfc_main$2r={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]},isFlexLayout:{type:Boolean,default:!1}},data(){return{}},watch:{fieldContext:{handler(i){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)},deep:!0,immediate:!0}},computed:{columnName(){const i=this.options.columnContextName?this.options.columnContextName:[];return i[i.length-1]},title(){let i=this.options.title;return this.columnName?i=this.develop===1?this.options.title:this.options.transKey?this.$i18nt(`${this.options.transKey}`,this.options.title):this.itemData[this.columnName]:i=this.options.transKey?this.$i18nt(`${this.options.transKey}`,this.options.title):this.options.linkUrl,i},gclass(){return this.develop==1?"":this.record.customClass?`${this.record.customClass}`:""},options(){return this.record.options},style(){const i=this.develop==1?"":`${getCss(this.options,this.isFlexLayout)}max-width:100%;`,t=this.record.customCss?this.record.customCss:"",s=this.record.css;return`cursor: pointer;overflow: hidden;${i}${getCss(s)}${t}`}},methods:{dropDown(){const i=this.record.interac;let t=this.options.linkUrl;this.columnName?t=this.itemData[this.columnName]:i.componentFunction==="gd-win-open-api"&&(t=i.customApi),!(t===""||t===null||t===void 0)&&this.record.doEvent({key:i.componentKey,functionName:i.componentFunction,data:t,source:this.record,callback:!1,callbackComponents:"",callbackFunction:""})}},mounted(){this.fieldContext.length>0&&(this.record.fieldContext=this.fieldContext)}};var _sfc_render$2r=function(){var t=this,s=t._self._c;return s("div",{staticClass:"gd-link",class:t.gclass,style:t.style,on:{click:t.dropDown}},[t._v(" "+t._s(t.title)+" ")])},_sfc_staticRenderFns$2r=[],__component__$2r=chartbi.normalizeComponent(_sfc_main$2r,_sfc_render$2r,_sfc_staticRenderFns$2r,!1,null,"2fa6e543",null,null);const linkItem=__component__$2r.exports;var browser={},canPromise$1=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$1={};let toSJISFunction;const CODEWORDS_COUNT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];utils$1.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};utils$1.getSymbolTotalCodewords=function(t){return CODEWORDS_COUNT[t]};utils$1.getBCHDigit=function(i){let t=0;for(;i!==0;)t++,i>>>=1;return t};utils$1.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=t};utils$1.isKanjiModeEnabled=function(){return typeof toSJISFunction<"u"};utils$1.toSJIS=function(t){return toSJISFunction(t)};var errorCorrectionLevel={};(function(i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2};function t(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+s)}}i.isValid=function(a){return a&&typeof a.bit<"u"&&a.bit>=0&&a.bit<4},i.from=function(a,l){if(i.isValid(a))return a;try{return t(a)}catch{return l}}})(errorCorrectionLevel);function BitBuffer$1(){this.buffer=[],this.length=0}BitBuffer$1.prototype={get:function(i){const t=Math.floor(i/8);return(this.buffer[t]>>>7-i%8&1)===1},put:function(i,t){for(let s=0;s<t;s++)this.putBit((i>>>t-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(i){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),i&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(i){if(!i||i<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=i,this.data=new Uint8Array(i*i),this.reservedBit=new Uint8Array(i*i)}BitMatrix$1.prototype.set=function(i,t,s,a){const l=i*this.size+t;this.data[l]=s,a&&(this.reservedBit[l]=!0)};BitMatrix$1.prototype.get=function(i,t){return this.data[i*this.size+t]};BitMatrix$1.prototype.xor=function(i,t,s){this.data[i*this.size+t]^=s};BitMatrix$1.prototype.isReserved=function(i,t){return this.reservedBit[i*this.size+t]};var bitMatrix=BitMatrix$1,alignmentPattern={};(function(i){const t=utils$1.getSymbolSize;i.getRowColCoords=function(a){if(a===1)return[];const l=Math.floor(a/7)+2,n=t(a),o=n===145?26:Math.ceil((n-13)/(2*l-2))*2,r=[n-7];for(let d=1;d<l-1;d++)r[d]=r[d-1]-o;return r.push(6),r.reverse()},i.getPositions=function(a){const l=[],n=i.getRowColCoords(a),o=n.length;for(let r=0;r<o;r++)for(let d=0;d<o;d++)r===0&&d===0||r===0&&d===o-1||r===o-1&&d===0||l.push([n[r],n[d]]);return l}})(alignmentPattern);var finderPattern={};const getSymbolSize=utils$1.getSymbolSize,FINDER_PATTERN_SIZE=7;finderPattern.getPositions=function(t){const s=getSymbolSize(t);return[[0,0],[s-FINDER_PATTERN_SIZE,0],[0,s-FINDER_PATTERN_SIZE]]};var maskPattern={};(function(i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};i.isValid=function(l){return l!=null&&l!==""&&!isNaN(l)&&l>=0&&l<=7},i.from=function(l){return i.isValid(l)?parseInt(l,10):void 0},i.getPenaltyN1=function(l){const n=l.size;let o=0,r=0,d=0,u=null,p=null;for(let h=0;h<n;h++){r=d=0,u=p=null;for(let f=0;f<n;f++){let m=l.get(h,f);m===u?r++:(r>=5&&(o+=t.N1+(r-5)),u=m,r=1),m=l.get(f,h),m===p?d++:(d>=5&&(o+=t.N1+(d-5)),p=m,d=1)}r>=5&&(o+=t.N1+(r-5)),d>=5&&(o+=t.N1+(d-5))}return o},i.getPenaltyN2=function(l){const n=l.size;let o=0;for(let r=0;r<n-1;r++)for(let d=0;d<n-1;d++){const u=l.get(r,d)+l.get(r,d+1)+l.get(r+1,d)+l.get(r+1,d+1);(u===4||u===0)&&o++}return o*t.N2},i.getPenaltyN3=function(l){const n=l.size;let o=0,r=0,d=0;for(let u=0;u<n;u++){r=d=0;for(let p=0;p<n;p++)r=r<<1&2047|l.get(u,p),p>=10&&(r===1488||r===93)&&o++,d=d<<1&2047|l.get(p,u),p>=10&&(d===1488||d===93)&&o++}return o*t.N3},i.getPenaltyN4=function(l){let n=0;const o=l.data.length;for(let d=0;d<o;d++)n+=l.data[d];return Math.abs(Math.ceil(n*100/o/5)-10)*t.N4};function s(a,l,n){switch(a){case i.Patterns.PATTERN000:return(l+n)%2===0;case i.Patterns.PATTERN001:return l%2===0;case i.Patterns.PATTERN010:return n%3===0;case i.Patterns.PATTERN011:return(l+n)%3===0;case i.Patterns.PATTERN100:return(Math.floor(l/2)+Math.floor(n/3))%2===0;case i.Patterns.PATTERN101:return l*n%2+l*n%3===0;case i.Patterns.PATTERN110:return(l*n%2+l*n%3)%2===0;case i.Patterns.PATTERN111:return(l*n%3+(l+n)%2)%2===0;default:throw new Error("bad maskPattern:"+a)}}i.applyMask=function(l,n){const o=n.size;for(let r=0;r<o;r++)for(let d=0;d<o;d++)n.isReserved(d,r)||n.xor(d,r,s(l,d,r))},i.getBestMask=function(l,n){const o=Object.keys(i.Patterns).length;let r=0,d=1/0;for(let u=0;u<o;u++){n(u),i.applyMask(u,l);const p=i.getPenaltyN1(l)+i.getPenaltyN2(l)+i.getPenaltyN3(l)+i.getPenaltyN4(l);i.applyMask(u,l),p<d&&(d=p,r=u)}return r}})(maskPattern);var errorCorrectionCode={};const ECLevel$1=errorCorrectionLevel,EC_BLOCKS_TABLE=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],EC_CODEWORDS_TABLE=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];errorCorrectionCode.getBlocksCount=function(t,s){switch(s){case ECLevel$1.L:return EC_BLOCKS_TABLE[(t-1)*4+0];case ECLevel$1.M:return EC_BLOCKS_TABLE[(t-1)*4+1];case ECLevel$1.Q:return EC_BLOCKS_TABLE[(t-1)*4+2];case ECLevel$1.H:return EC_BLOCKS_TABLE[(t-1)*4+3];default:return}};errorCorrectionCode.getTotalCodewordsCount=function(t,s){switch(s){case ECLevel$1.L:return EC_CODEWORDS_TABLE[(t-1)*4+0];case ECLevel$1.M:return EC_CODEWORDS_TABLE[(t-1)*4+1];case ECLevel$1.Q:return EC_CODEWORDS_TABLE[(t-1)*4+2];case ECLevel$1.H:return EC_CODEWORDS_TABLE[(t-1)*4+3];default:return}};var polynomial={},galoisField={};const EXP_TABLE=new Uint8Array(512),LOG_TABLE=new Uint8Array(256);(function(){let t=1;for(let s=0;s<255;s++)EXP_TABLE[s]=t,LOG_TABLE[t]=s,t<<=1,t&256&&(t^=285);for(let s=255;s<512;s++)EXP_TABLE[s]=EXP_TABLE[s-255]})();galoisField.log=function(t){if(t<1)throw new Error("log("+t+")");return LOG_TABLE[t]};galoisField.exp=function(t){return EXP_TABLE[t]};galoisField.mul=function(t,s){return t===0||s===0?0:EXP_TABLE[LOG_TABLE[t]+LOG_TABLE[s]]};(function(i){const t=galoisField;i.mul=function(a,l){const n=new Uint8Array(a.length+l.length-1);for(let o=0;o<a.length;o++)for(let r=0;r<l.length;r++)n[o+r]^=t.mul(a[o],l[r]);return n},i.mod=function(a,l){let n=new Uint8Array(a);for(;n.length-l.length>=0;){const o=n[0];for(let d=0;d<l.length;d++)n[d]^=t.mul(l[d],o);let r=0;for(;r<n.length&&n[r]===0;)r++;n=n.slice(r)}return n},i.generateECPolynomial=function(a){let l=new Uint8Array([1]);for(let n=0;n<a;n++)l=i.mul(l,new Uint8Array([1,t.exp(n)]));return l}})(polynomial);const Polynomial=polynomial;function ReedSolomonEncoder$1(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}ReedSolomonEncoder$1.prototype.initialize=function(t){this.degree=t,this.genPoly=Polynomial.generateECPolynomial(this.degree)};ReedSolomonEncoder$1.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(t.length+this.degree);s.set(t);const a=Polynomial.mod(s,this.genPoly),l=this.degree-a.length;if(l>0){const n=new Uint8Array(this.degree);return n.set(a,l),n}return a};var reedSolomonEncoder=ReedSolomonEncoder$1,version={},mode={},versionCheck={};versionCheck.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var regex={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+`)(?:.|[\r
29
29
  ]))+`;regex.KANJI=new RegExp(kanji,"g");regex.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");regex.BYTE=new RegExp(byte,"g");regex.NUMERIC=new RegExp(numeric,"g");regex.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex.testKanji=function(t){return TEST_KANJI.test(t)};regex.testNumeric=function(t){return TEST_NUMERIC.test(t)};regex.testAlphanumeric=function(t){return TEST_ALPHANUMERIC.test(t)};(function(i){const t=versionCheck,s=regex;i.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(n,o){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?n.ccBits[0]:o<27?n.ccBits[1]:n.ccBits[2]},i.getBestModeForData=function(n){return s.testNumeric(n)?i.NUMERIC:s.testAlphanumeric(n)?i.ALPHANUMERIC:s.testKanji(n)?i.KANJI:i.BYTE},i.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},i.isValid=function(n){return n&&n.bit&&n.ccBits};function a(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+l)}}i.from=function(n,o){if(i.isValid(n))return n;try{return a(n)}catch{return o}}})(mode);(function(i){const t=utils$1,s=errorCorrectionCode,a=errorCorrectionLevel,l=mode,n=versionCheck,o=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,r=t.getBCHDigit(o);function d(f,m,y){for(let g=1;g<=40;g++)if(m<=i.getCapacity(g,y,f))return g}function u(f,m){return l.getCharCountIndicator(f,m)+4}function p(f,m){let y=0;return f.forEach(function(g){const _=u(g.mode,m);y+=_+g.getBitsLength()}),y}function h(f,m){for(let y=1;y<=40;y++)if(p(f,y)<=i.getCapacity(y,m,l.MIXED))return y}i.from=function(m,y){return n.isValid(m)?parseInt(m,10):y},i.getCapacity=function(m,y,g){if(!n.isValid(m))throw new Error("Invalid QR Code version");typeof g>"u"&&(g=l.BYTE);const _=t.getSymbolTotalCodewords(m),v=s.getTotalCodewordsCount(m,y),C=(_-v)*8;if(g===l.MIXED)return C;const $=C-u(g,m);switch(g){case l.NUMERIC:return Math.floor($/10*3);case l.ALPHANUMERIC:return Math.floor($/11*2);case l.KANJI:return Math.floor($/13);case l.BYTE:default:return Math.floor($/8)}},i.getBestVersionForData=function(m,y){let g;const _=a.from(y,a.M);if(Array.isArray(m)){if(m.length>1)return h(m,_);if(m.length===0)return 1;g=m[0]}else g=m;return d(g.mode,g.getLength(),_)},i.getEncodedBits=function(m){if(!n.isValid(m)||m<7)throw new Error("Invalid QR Code version");let y=m<<12;for(;t.getBCHDigit(y)-r>=0;)y^=o<<t.getBCHDigit(y)-r;return m<<12|y}})(version);var formatInfo={};const Utils$3=utils$1,G15=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G15_MASK=1<<14|1<<12|1<<10|1<<4|1<<1,G15_BCH=Utils$3.getBCHDigit(G15);formatInfo.getEncodedBits=function(t,s){const a=t.bit<<3|s;let l=a<<10;for(;Utils$3.getBCHDigit(l)-G15_BCH>=0;)l^=G15<<Utils$3.getBCHDigit(l)-G15_BCH;return(a<<10|l)^G15_MASK};var segments={};const Mode$4=mode;function NumericData(i){this.mode=Mode$4.NUMERIC,this.data=i.toString()}NumericData.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};NumericData.prototype.getLength=function(){return this.data.length};NumericData.prototype.getBitsLength=function(){return NumericData.getBitsLength(this.data.length)};NumericData.prototype.write=function(t){let s,a,l;for(s=0;s+3<=this.data.length;s+=3)a=this.data.substr(s,3),l=parseInt(a,10),t.put(l,10);const n=this.data.length-s;n>0&&(a=this.data.substr(s),l=parseInt(a,10),t.put(l,n*3+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function AlphanumericData(i){this.mode=Mode$3.ALPHANUMERIC,this.data=i}AlphanumericData.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};AlphanumericData.prototype.getLength=function(){return this.data.length};AlphanumericData.prototype.getBitsLength=function(){return AlphanumericData.getBitsLength(this.data.length)};AlphanumericData.prototype.write=function(t){let s;for(s=0;s+2<=this.data.length;s+=2){let a=ALPHA_NUM_CHARS.indexOf(this.data[s])*45;a+=ALPHA_NUM_CHARS.indexOf(this.data[s+1]),t.put(a,11)}this.data.length%2&&t.put(ALPHA_NUM_CHARS.indexOf(this.data[s]),6)};var alphanumericData=AlphanumericData;const Mode$2=mode;function ByteData(i){this.mode=Mode$2.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}ByteData.getBitsLength=function(t){return t*8};ByteData.prototype.getLength=function(){return this.data.length};ByteData.prototype.getBitsLength=function(){return ByteData.getBitsLength(this.data.length)};ByteData.prototype.write=function(i){for(let t=0,s=this.data.length;t<s;t++)i.put(this.data[t],8)};var byteData=ByteData;const Mode$1=mode,Utils$2=utils$1;function KanjiData(i){this.mode=Mode$1.KANJI,this.data=i}KanjiData.getBitsLength=function(t){return t*13};KanjiData.prototype.getLength=function(){return this.data.length};KanjiData.prototype.getBitsLength=function(){return KanjiData.getBitsLength(this.data.length)};KanjiData.prototype.write=function(i){let t;for(t=0;t<this.data.length;t++){let s=Utils$2.toSJIS(this.data[t]);if(s>=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
30
30
  Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),i.put(s,13)}};var kanjiData=KanjiData,dijkstra={exports:{}};(function(i){var t={single_source_shortest_paths:function(s,a,l){var n={},o={};o[a]=0;var r=t.PriorityQueue.make();r.push(a,0);for(var d,u,p,h,f,m,y,g,_;!r.empty();){d=r.pop(),u=d.value,h=d.cost,f=s[u]||{};for(p in f)f.hasOwnProperty(p)&&(m=f[p],y=h+m,g=o[p],_=typeof o[p]>"u",(_||g>y)&&(o[p]=y,r.push(p,y),n[p]=u))}if(typeof l<"u"&&typeof o[l]>"u"){var v=["Could not find a path from ",a," to ",l,"."].join("");throw new Error(v)}return n},extract_shortest_path_from_predecessor_list:function(s,a){for(var l=[],n=a;n;)l.push(n),s[n],n=s[n];return l.reverse(),l},find_path:function(s,a,l){var n=t.single_source_shortest_paths(s,a,l);return t.extract_shortest_path_from_predecessor_list(n,l)},PriorityQueue:{make:function(s){var a=t.PriorityQueue,l={},n;s=s||{};for(n in a)a.hasOwnProperty(n)&&(l[n]=a[n]);return l.queue=[],l.sorter=s.sorter||a.default_sorter,l},default_sorter:function(s,a){return s.cost-a.cost},push:function(s,a){var l={value:s,cost:a};this.queue.push(l),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};i.exports=t})(dijkstra);(function(i){const t=mode,s=numericData,a=alphanumericData,l=byteData,n=kanjiData,o=regex,r=utils$1,d=dijkstra.exports;function u(v){return unescape(encodeURIComponent(v)).length}function p(v,C,$){const k=[];let T;for(;(T=v.exec($))!==null;)k.push({data:T[0],index:T.index,mode:C,length:T[0].length});return k}function h(v){const C=p(o.NUMERIC,t.NUMERIC,v),$=p(o.ALPHANUMERIC,t.ALPHANUMERIC,v);let k,T;return r.isKanjiModeEnabled()?(k=p(o.BYTE,t.BYTE,v),T=p(o.KANJI,t.KANJI,v)):(k=p(o.BYTE_KANJI,t.BYTE,v),T=[]),C.concat($,k,T).sort(function(A,O){return A.index-O.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function f(v,C){switch(C){case t.NUMERIC:return s.getBitsLength(v);case t.ALPHANUMERIC:return a.getBitsLength(v);case t.KANJI:return n.getBitsLength(v);case t.BYTE:return l.getBitsLength(v)}}function m(v){return v.reduce(function(C,$){const k=C.length-1>=0?C[C.length-1]:null;return k&&k.mode===$.mode?(C[C.length-1].data+=$.data,C):(C.push($),C)},[])}function y(v){const C=[];for(let $=0;$<v.length;$++){const k=v[$];switch(k.mode){case t.NUMERIC:C.push([k,{data:k.data,mode:t.ALPHANUMERIC,length:k.length},{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.ALPHANUMERIC:C.push([k,{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.KANJI:C.push([k,{data:k.data,mode:t.BYTE,length:u(k.data)}]);break;case t.BYTE:C.push([{data:k.data,mode:t.BYTE,length:u(k.data)}])}}return C}function g(v,C){const $={},k={start:{}};let T=["start"];for(let N=0;N<v.length;N++){const A=v[N],O=[];for(let I=0;I<A.length;I++){const P=A[I],U=""+N+I;O.push(U),$[U]={node:P,lastCount:0},k[U]={};for(let L=0;L<T.length;L++){const R=T[L];$[R]&&$[R].node.mode===P.mode?(k[R][U]=f($[R].lastCount+P.length,P.mode)-f($[R].lastCount,P.mode),$[R].lastCount+=P.length):($[R]&&($[R].lastCount=P.length),k[R][U]=f(P.length,P.mode)+4+t.getCharCountIndicator(P.mode,C))}}T=O}for(let N=0;N<T.length;N++)k[T[N]].end=0;return{map:k,table:$}}function _(v,C){let $;const k=t.getBestModeForData(v);if($=t.from(C,k),$!==t.BYTE&&$.bit<k.bit)throw new Error('"'+v+'" cannot be encoded with mode '+t.toString($)+`.