You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
26 KiB
2 lines
26 KiB
webpackJsonp([27],{1088:function(t,e,n){"use strict";e.__esModule=!0;var a=f(n(30)),i=n(123),r=f(n(1175)),s=n(126),o=f(n(701)),l=f(n(696)),d=n(225),c=f(n(742)),u=f(n(697));function f(t){return t&&t.__esModule?t:{default:t}}e.default={name:"tree-view-index-index",data:function(){return{limit:25,isLoading:!0,tasksType:d.tasksType,tasksState:d.tasksState,treeData:{},isNodata:!1}},props:{},methods:Object.assign({},(0,i.mapActions)("dag",["getViewTree"]),{_getViewTree:function(){var t=this;this.isLoading=!0,r.default.reset(),this.getViewTree({processId:this.$route.params.id,limit:this.limit}).then(function(e){var n=a.default.cloneDeep(e);if(t.treeData=n,!t.treeData.children)return t.isLoading=!1,void(t.isNodata=!0);!function t(e){e.length&&a.default.map(e,function(e){e.uuid=""+(0,s.uuid)("uuid_")+((0,s.uuid)()+(0,s.uuid)()),e.children.length&&t(e.children)})}(n.children),r.default.init({data:a.default.cloneDeep(n),limit:t.limit,selfTree:t}).then(function(){setTimeout(function(){},100)})}).catch(function(e){t.isLoading=!1,e.data||(t.isNodata=!0)})},_rtTasksDag:function(){var t=this.$route.query.subProcessIds.split(","),e=t.slice(0,t.length-1),n=t[t.length-1],a={};n!==t[0]&&(a={subProcessIds:e.join(",")}),this.$router.push({path:"/projects/definition/tree/"+n,query:a})},_subProcessHandle:function(t){var e=[],n=this.$route.query.subProcessIds;if(n){var a=n.split(",");a.push(this.$route.params.id),e=a}else e.push(this.$route.params.id);this.$router.push({path:"/projects/definition/tree/"+t,query:{subProcessIds:e.join(",")}})},_onChangeSelect:function(t){this.limit=t.value,this._getViewTree()}}),watch:{"$route.params.id":function(){this._getViewTree()}},created:function(){this._getViewTree()},mounted:function(){},components:{mSpin:o.default,mSecondaryMenu:c.default,mListConstruction:u.default,mNoData:l.default}}},1172:function(t,e,n){var a=n(1173);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(35)("486b5c35",a,!0,{})},1173:function(t,e,n){var a=n(125);(t.exports=n(34)(!1)).push([t.i,".tree-view-index-model{background:url("+a(n(1174))+");position:relative}.tree-view-index-model .tree-limit-select{position:absolute;right:20px;top:22px;z-index:1}.tree-view-index-model .tasks-color{min-height:76px;background:#fff;padding-left:20px;position:relative;padding-bottom:10px}.tree-view-index-model .tasks-color .toolbar-color-sp{padding:12px 0}.tree-view-index-model .tree-model{width:100%;height:calc(100vh - 224px);overflow-x:scroll}.tree-view-index-model .d3-tree{padding-left:30px}.tree-view-index-model .d3-tree .node text{font:11px sans-serif;pointer-events:none}.tree-view-index-model .d3-tree rect{cursor:pointer}.tree-view-index-model .d3-tree rect.state{stroke:#666;shape-rendering:crispEdges}.tree-view-index-model .d3-tree path.link{fill:none;stroke:#666;stroke-width:2px}.tree-view-index-model .d3-tree circle{stroke:#666;fill:#0097e0;stroke-width:1.5px;cursor:pointer}",""])},1174:function(t,e,n){t.exports=n.p+"images/dag_bg.png?6a0c3839385c7d50f21acf06989addf4"},1175:function(t,e,n){"use strict";e.__esModule=!0;var a,i=n(71),r=(a=i)&&a.__esModule?a:{default:a},s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(605)),o=n(1176),l=n(225);var d=void 0,c=function(){d=this,this.selfTree={},this.tree=function(){},this.config={barHeight:26,axisHeight:40,squareSize:10,squarePading:4,taskNum:25,nodesMax:0},this.config.margin={top:this.config.barHeight/2+this.config.axisHeight,right:0,bottom:0,left:this.config.barHeight/2},this.config.margin.width=960-this.config.margin.left-this.config.margin.right,this.config.barWidth=parseInt(.9*this.config.margin.width)};c.prototype.init=function(t){var e=this,n=t.data,a=t.limit,i=t.selfTree;return new Promise(function(t,r){e.selfTree=i,e.config.taskNum=a,e.duration=400,e.i=0,e.tree=s.layout.tree().nodeSize([0,46]);var l=e.tree.nodes(n);e.diagonal=s.svg.diagonal().projection(function(t){return[t.y,t.x]}),e.svg=s.select("svg").append("g").attr("class","level").attr("transform","translate("+e.config.margin.left+","+e.config.margin.top+")"),n.x0=0,n.y0=0,e.squareNum=l[1===l.length?0:1].instances.length,e.config.nodesMax=(0,o.rtCountMethod)(n.children),e.treeUpdate(e.root=n).then(function(){e.treeTooltip(),i.isLoading=!1,t()})})},c.prototype.nodesClass=function(t){var e="node";return void 0===t.children&&void 0===t._children?e+=" leaf":(e+=" parent",void 0===t.children?e+=" collapsed":e+=" expanded"),e},c.prototype.treeTooltip=function(){(0,r.default)("rect.state").tooltip({html:!0,container:"body"}),(0,r.default)("circle.task").tooltip({html:!0,container:"body"})},c.prototype.treeToggles=function(t){d.removeTooltip(),s.selectAll("[task_id='"+t.uuid+"']").each(function(e){t!==e&&e.children&&(e._children=e.children,e.children=null,d.treeUpdate(e))}),t._children?(t.children=t._children,t._children=null):(t._children=t.children,t.children=null),d.treeUpdate(t),d.treeTooltip()},c.prototype.treeUpdate=function(t){var e=this;return new Promise(function(n,a){var i=e.tree.nodes(e.root),r=Math.max(500,i.length*e.config.barHeight+e.config.margin.top+e.config.margin.bottom),d=70*e.config.nodesMax+e.squareNum*(e.config.squareSize+e.config.squarePading)+e.config.margin.left+e.config.margin.right+50;s.select("svg").transition().duration(e.duration).attr("height",r).attr("width",d),i.forEach(function(t,n){t.x=n*e.config.barHeight});var c=e.svg.selectAll("g.node").data(i,function(t){return t.id||(t.id=++e.i)}),u=c.enter().append("g").attr("class",e.nodesClass).attr("transform",function(){return"translate("+t.y0+","+t.x0+")"}).style("opacity",1e-6);u.append("circle").attr("r",e.config.barHeight/3).attr("class","task").attr("data-toggle","tooltip").attr("title",function(t){return t.type?t.type:""}).attr("height",e.config.barHeight).attr("width",function(t){return e.config.barWidth-t.y}).style("fill",function(t){return t.type?l.tasksType[t.type].color:"#fff"}).attr("task_id",function(t){return t.name}).on("click",e.treeToggles),u.append("text").attr("dy",3.5).attr("dx",e.config.barHeight/2).text(function(t){return t.name}),u.append("g").attr("class","stateboxes").attr("transform",function(t,n){return"translate("+(60*e.config.nodesMax-t.y)+",0)"}).selectAll("rect").data(function(t){return t.instances}).enter().append("rect").on("click",function(t){e.removeTooltip(),"SUB_PROCESS"===t.type&&e.selfTree._subProcessHandle(t.subflowId)}).attr("class","state").style("fill",function(t){return t.state&&l.tasksState[t.state].color||"#ffffff"}).attr("data-toggle","tooltip").attr("rx",function(t){return t.type?0:12}).attr("ry",function(t){return t.type?0:12}).style("shape-rendering",function(t){return t.type?"crispEdges":"auto"}).attr("title",function(t){return(0,o.rtInstancesTooltip)(t)}).attr("x",function(t,n){return n*(e.config.squareSize+e.config.squarePading)}).attr("y",-e.config.squareSize/2).attr("width",10).attr("height",10).on("mouseover",function(){s.select(e).transition()}).on("mouseout",function(){s.select(e).transition()}),u.transition().duration(e.duration).attr("transform",function(t){return"translate("+t.y+","+t.x+")"}).style("opacity",1),c.transition().duration(e.duration).attr("class",e.nodesClass).attr("transform",function(t){return"translate("+t.y+","+t.x+")"}).style("opacity",1),c.exit().transition().duration(e.duration).attr("transform",function(e){return"translate("+t.y+","+t.x+")"}).style("opacity",1e-6).remove();var f=e.svg.selectAll("path.link").data(e.tree.links(i),function(t){return t.target.id});f.enter().insert("path","g").attr("class","link").attr("d",function(n){var a={x:t.x0,y:t.y0};return e.diagonal({source:a,target:a})}).transition().duration(e.duration).attr("d",e.diagonal),f.transition().duration(e.duration).attr("d",e.diagonal),f.exit().transition().duration(e.duration).attr("d",function(n){var a={x:t.x,y:t.y};return e.diagonal({source:a,target:a})}).remove(),i.forEach(function(t){t.x0=t.x,t.y0=t.y}),n()})},c.prototype.reset=function(){(0,r.default)(".d3-tree .tree").html("")},c.prototype.removeTooltip=function(){(0,r.default)("body").find(".tooltip.fade.top.in").remove()},e.default=new c},1176:function(t,e,n){"use strict";e.__esModule=!0,e.rtCountMethod=e.rtInstancesTooltip=void 0;var a=n(229),i=n(225);e.rtInstancesTooltip=function(t){var e='<div style="text-align: left;">';return e+="id : "+t.id+"</br>",e+="host : "+t.host+"</br>",e+="name : "+t.name+"</br>",e+="state : "+(t.state?i.tasksState[t.state].desc:"-")+"("+t.state+")</br>",t.type&&(e+="type : "+t.type+"</br>"),e+="startTime : "+(t.startTime?(0,a.formatDate)(t.startTime):"null")+"</br>",e+="endTime : "+(t.endTime?(0,a.formatDate)(t.endTime):"null")+"</br>",e+="duration : "+t.duration+"</br>",e+="</div>"},e.rtCountMethod=function(t){var e=[];!function t(n,a){var i=!1;n.forEach(function(n){n.children&&n.children.length>0&&(i||(i=!0,a+="*",e.push(a)),t(n.children,a))})}(t,"*");var n=6;return e.forEach(function(t){t.length>n&&(n=t.length)}),n}},1177:function(t,e,n){"use strict";var a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("m-list-construction",{attrs:{title:t.$t("TreeView")}},[n("template",{slot:"conditions"}),t._v(" "),n("template",{slot:"content"},[n("div",{staticClass:"tree-view-index-model"},[n("div",{staticClass:"tree-limit-select"},[n("x-select",{staticStyle:{width:"70px"},on:{"on-change":t._onChangeSelect},model:{value:t.limit,callback:function(e){t.limit=e},expression:"limit"}},t._l([{value:25},{value:50},{value:75},{value:100}],function(t){return n("x-option",{key:t.value,attrs:{value:t.value,label:t.value}})}),1),t._v(" "),t.$route.query.subProcessIds?n("x-button",{attrs:{type:"primary",size:"default",icon:"fa fa-reply"},on:{click:t._rtTasksDag}},[t._v("\n "+t._s(t.$t("Return_1"))+"\n ")]):t._e()],1),t._v(" "),n("div",{staticClass:"tasks-color"},[n("div",{staticClass:"toolbar-color-sp"},[n("a",{attrs:{href:"javascript:"}},[n("span",[t._v("Node Type")])]),t._v(" "),t._l(t.tasksType,function(e,a){return n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa fa-circle",style:{color:e.color}}),t._v(" "),n("span",[t._v(t._s(a))])])})],2),t._v(" "),n("div",{staticClass:"state-tasks-color-sp"},[n("a",{attrs:{href:"javascript:"}},[n("span",[t._v(t._s(t.$t("Task Status")))])]),t._v(" "),t._l(t.tasksState,function(e){return n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa fa-square",style:{color:e.color}}),t._v(" "),n("span",[t._v(t._s(e.desc))])])})],2)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isNodata,expression:"!isNodata"}],staticClass:"tree-model"},[n("div",{staticClass:"d3-tree"},[n("svg",{staticClass:"tree",attrs:{width:"100%"}})])]),t._v(" "),t.isNodata?n("m-no-data"):t._e()],1),t._v(" "),n("m-spin",{attrs:{"is-spin":t.isLoading}})],1)],2)},staticRenderFns:[]};e.a=a},617:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(1088),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,function(){return a[t]})}(r);var s=n(1177);var o=function(t){n(1172)},l=n(29)(i.a,s.a,!1,o,null,null);e.default=l.exports},663:function(t,e,n){"use strict";e.__esModule=!0,e.default={name:"list-construction",data:function(){return{}},props:{title:String}}},664:function(t,e,n){"use strict";e.__esModule=!0,e.default={name:"spin",data:function(){return{}},props:{isSpin:{type:Boolean,default:!0},isLeft:{type:Boolean,default:!0}}}},665:function(t,e,n){"use strict";e.__esModule=!0,e.default={name:"no-data",props:{msg:String,height:Number}}},696:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(665),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,function(){return a[t]})}(r);var s=n(709);var o=function(t){n(707)},l=n(29)(i.a,s.a,!1,o,null,null);e.default=l.exports},697:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(663),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,function(){return a[t]})}(r);var s=n(700);var o=function(t){n(698)},l=n(29)(i.a,s.a,!1,o,null,null);e.default=l.exports},698:function(t,e,n){var a=n(699);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(35)("70439c42",a,!0,{})},699:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,"",""])},700:function(t,e,n){"use strict";var a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"home-main list-construction-model"},[e("div",{staticClass:"content-title"},[e("span",[this._v(this._s(this.title))])]),this._v(" "),e("div",{staticClass:"conditions-box"},[this._t("conditions")],2),this._v(" "),e("div",{staticClass:"list-box"},[this._t("content")],2)])},staticRenderFns:[]};e.a=a},701:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(664),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,function(){return a[t]})}(r);var s=n(704);var o=function(t){n(702)},l=n(29)(i.a,s.a,!1,o,null,null);e.default=l.exports},702:function(t,e,n){var a=n(703);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(35)("058996ed",a,!0,{})},703:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,"#spin-model{position:fixed;left:20px;top:80px;background:#fff;z-index:99;border-radius:3px}#spin-model .svg-box{width:100px;height:66px;position:absolute;left:50%;top:50%;margin-left:-50px;margin-top:-33px;text-align:center}#spin-model .svg-box .sp1{display:block;font-size:12px;color:#999;padding-top:4px}#spin-model.spin-sp1{width:calc(100% - 40px);height:calc(100% - 100px)}#spin-model.spin-sp2{width:calc(100% - 240px);height:calc(100% - 100px);left:220px}",""])},704:function(t,e,n){"use strict";var a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isSpin?n("div",{class:t.isLeft?"spin-sp2":"spin-sp1",attrs:{id:"spin-model"}},[n("div",{staticClass:"svg-box"},[n("svg",{staticClass:"lds-gears",staticStyle:{background:"none"},attrs:{width:"54px",height:"54px",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[n("g",{attrs:{transform:"translate(50 50)"}},[n("g",{attrs:{transform:"translate(-19 -19) scale(0.6)"}},[n("g",{attrs:{transform:"rotate(107.866)"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}}),n("path",{attrs:{d:"M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23",fill:"#0097e0"}})],1)]),t._v(" "),n("g",{attrs:{transform:"translate(19 19) scale(0.6)"}},[n("g",{attrs:{transform:"rotate(229.634)"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"360;0",keyTimes:"0;1",dur:"1s",begin:"-0.0625s",repeatCount:"indefinite"}}),n("path",{attrs:{d:"M37.3496987939662 -7 L47.3496987939662 -7 L47.3496987939662 7 L37.3496987939662 7 A38 38 0 0 1 31.359972760794346 21.46047782418268 L31.359972760794346 21.46047782418268 L38.431040572659825 28.531545636048154 L28.531545636048154 38.431040572659825 L21.46047782418268 31.359972760794346 A38 38 0 0 1 7.0000000000000036 37.3496987939662 L7.0000000000000036 37.3496987939662 L7.000000000000004 47.3496987939662 L-6.999999999999999 47.3496987939662 L-7 37.3496987939662 A38 38 0 0 1 -21.46047782418268 31.35997276079435 L-21.46047782418268 31.35997276079435 L-28.531545636048154 38.431040572659825 L-38.43104057265982 28.531545636048158 L-31.359972760794346 21.460477824182682 A38 38 0 0 1 -37.3496987939662 7.000000000000007 L-37.3496987939662 7.000000000000007 L-47.3496987939662 7.000000000000008 L-47.3496987939662 -6.9999999999999964 L-37.3496987939662 -6.999999999999997 A38 38 0 0 1 -31.35997276079435 -21.460477824182675 L-31.35997276079435 -21.460477824182675 L-38.431040572659825 -28.531545636048147 L-28.53154563604818 -38.4310405726598 L-21.4604778241827 -31.35997276079433 A38 38 0 0 1 -6.999999999999992 -37.3496987939662 L-6.999999999999992 -37.3496987939662 L-6.999999999999994 -47.3496987939662 L6.999999999999977 -47.3496987939662 L6.999999999999979 -37.3496987939662 A38 38 0 0 1 21.460477824182686 -31.359972760794342 L21.460477824182686 -31.359972760794342 L28.531545636048158 -38.43104057265982 L38.4310405726598 -28.53154563604818 L31.35997276079433 -21.4604778241827 A38 38 0 0 1 37.3496987939662 -6.999999999999995 M0 -23A23 23 0 1 0 0 23 A23 23 0 1 0 0 -23",fill:"#7f8b95"}})],1)])])]),t._v(" "),n("span",{staticClass:"sp1"},[t._v(t._s(t.$t("Loading...")))])])]):t._e()},staticRenderFns:[]};e.a=a},705:function(t,e,n){"use strict";e.__esModule=!0;var a,i=n(747),r=(a=i)&&a.__esModule?a:{default:a};e.default={name:"secondary-menu",data:function(){return{menuList:(0,r.default)(this.type),index:0,id:this.$route.params.id,isTogHide:!1}},props:{type:String,className:String},watch:{isTogHide:function(t){var e=$(".main-layout-box");t?e.addClass("toggle"):e.removeClass("toggle")}},methods:{_toggleSubMenu:function(t){t.isOpen=!t.isOpen},_toggleMenu:function(){this.isTogHide=!this.isTogHide}},mounted:function(){}}},707:function(t,e,n){var a=n(708);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(35)("5be25ccc",a,!0,{})},708:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".no-data-model{position:relative;width:100%;height:calc(100vh - 200px)}.no-data-model .no-data-box{width:210px;height:210px;position:absolute;left:50%;top:50%;margin-left:-105px;margin-top:-105px;text-align:center}.no-data-model .no-data-box .text{padding-top:10px;color:#666}",""])},709:function(t,e,n){"use strict";var a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"no-data-model",style:{height:this.height+"px"}},[e("div",{staticClass:"no-data-box"},[this._m(0),this._v(" "),e("div",{staticClass:"text"},[this._v(this._s(this.msg||this.$t("No data")))])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img"},[e("img",{attrs:{src:n(710),alt:""}})])}]};e.a=a},710:function(t,e,n){t.exports=n.p+"images/errorTip.png?a7b20f0ca8727f22f405c2a34d1363a0"},742:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(705),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,function(){return a[t]})}(r);var s=n(749);var o=function(t){n(743)},l=n(29)(i.a,s.a,!1,o,null,null);e.default=l.exports},743:function(t,e,n){var a=n(744);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n(35)("018f4828",a,!0,{})},744:function(t,e,n){var a=n(125);(t.exports=n(34)(!1)).push([t.i,".main-layout-box.toggle{padding-left:0}.main-layout-box.toggle>.secondary-menu-model{left:-200px}.secondary-menu-model{position:fixed;left:0;top:0;width:200px;background:#41444c;height:100%;padding-top:80px}.secondary-menu-model .toogle-box{position:absolute;right:-1px;top:calc(50% - 50px)}.secondary-menu-model .toogle-box .tog-close{width:12px;height:102px;background:url("+a(n(745))+") no-repeat;display:inline-block}.secondary-menu-model .toogle-box .tog-open{width:12px;height:102px;background:url("+a(n(746))+") no-repeat;display:inline-block;position:absolute;right:-12px;top:0}.secondary-menu-model .leven-1 .name a{height:40px;line-height:40px;display:block;position:relative;padding-left:10px}.secondary-menu-model .leven-1 .name a>.icon{vertical-align:middle;font-size:15px;width:20px;text-align:center;color:#fff}.secondary-menu-model .leven-1 .name a>span{vertical-align:middle;padding-left:2px;font-size:14px;color:#fff}.secondary-menu-model .leven-1 .name a>.angle{position:absolute;right:12px;top:14px}.secondary-menu-model .leven-1 ul li{height:36px;line-height:36px;cursor:pointer;padding-left:39px;color:#fff}.secondary-menu-model .leven-1 ul li a{font-size:14px}.secondary-menu-model .leven-1 ul li.active{border-right:2px solid #2d8cf0;background:#2c2f39}.secondary-menu-model .leven-1 ul li.active span{font-weight:700;color:#2d8cf0}.secondary-menu-model .leven-1 .router-link-active,.secondary-menu-model .leven-1>.router-link-exact-active{background:#f0f6fb}.secondary-menu-model .leven-1 .router-link-active .name,.secondary-menu-model .leven-1>.router-link-exact-active .name{border-right:2px solid #2d8cf0;background:#2b2e38}.secondary-menu-model .leven-1 .router-link-active .name a span,.secondary-menu-model .leven-1>.router-link-exact-active .name a span{color:#2d8cf0;font-weight:700}.secondary-menu-model .leven-1 .router-link-active .name a .fa,.secondary-menu-model .leven-1>.router-link-exact-active .name a .fa{color:#2d8cf0}",""])},745:function(t,e,n){t.exports=n.p+"images/close.png?02806e641df25c1b4dbff4cb0af3984d"},746:function(t,e,n){t.exports=n.p+"images/open.png?97ec0726c7acab8a2a48282d68cea631"},747:function(t,e,n){"use strict";e.__esModule=!0;var a=s(n(36)),i=s(n(748)),r=s(n(124));function s(t){return t&&t.__esModule?t:{default:t}}var o={projects:[{name:""+a.default.$t("Project Home"),id:0,path:"projects-index",isOpen:!0,disabled:!0,icon:"fa-home",children:[]},{name:""+a.default.$t("Process"),id:1,path:"",isOpen:!0,disabled:!0,icon:"fa-gear",children:[{name:""+a.default.$t("Process definition"),path:"definition",id:0,disabled:!0},{name:""+a.default.$t("Process Instance"),path:"instance",id:1,disabled:!0},{name:""+a.default.$t("Task Instance"),path:"task-instance",id:2,disabled:!0},{name:""+a.default.$t("Task record"),path:"task-record",id:3,disabled:i.default.recordSwitch},{name:""+a.default.$t("History task record"),path:"history-task-record",id:4,disabled:i.default.recordSwitch}]}],security:[{name:""+a.default.$t("Tenant Manage"),id:0,path:"tenement-manage",isOpen:!0,disabled:!0,icon:"fa-users",children:[]},{name:""+a.default.$t("User Manage"),id:1,path:"users-manage",isOpen:!0,disabled:!0,icon:"fa-user-circle",children:[]},{name:""+a.default.$t("Warning group manage"),id:2,path:"warning-groups-manage",isOpen:!0,disabled:!0,icon:"fa-warning",children:[]},{name:""+a.default.$t("Queue manage"),id:3,path:"queue-manage",isOpen:!0,disabled:!0,icon:"fa-recycle",children:[]},{name:""+a.default.$t("Worker group manage"),id:4,path:"worker-groups-manage",isOpen:!0,disabled:!0,icon:"fa-address-book",children:[]},{name:""+a.default.$t("Token manage"),id:2,path:"token-manage",isOpen:!0,icon:"fa-file-text",children:[],disabled:!0}],resource:[{name:""+a.default.$t("File Manage"),id:0,path:"file",isOpen:!0,icon:"fa-files-o",children:[],disabled:!0},{name:""+a.default.$t("UDF manage"),id:1,path:"",isOpen:!0,icon:"fa-file-text",disabled:!0,children:[{name:""+a.default.$t("Resource manage"),path:"resource-udf-resource",id:0,disabled:!0},{name:""+a.default.$t("Function manage"),path:"resource-udf-function",id:1,disabled:!0}]}],user:[{name:""+a.default.$t("User Information"),id:0,path:"account",isOpen:!0,icon:"fa-user",children:[],disabled:!0},{name:""+a.default.$t("Edit password"),id:1,path:"password",isOpen:!0,icon:"fa-key",children:[],disabled:!0},{name:""+a.default.$t("Token manage"),id:2,path:"token",isOpen:!0,icon:"fa-file-text",children:[],disabled:r.default.getAuth()}],monitor:[{name:""+a.default.$t("Servers manage"),id:0,path:"",isOpen:!0,disabled:!0,icon:"fa-server",children:[{name:"Master",path:"servers-master",id:0,disabled:!0},{name:"Worker",path:"servers-worker",id:1,disabled:!0},{name:"Zookeeper",path:"servers-zookeeper",id:4,disabled:!0},{name:"Mysql",path:"servers-mysql",id:6,disabled:!0}]}]};e.default=function(t){return o[t]}},748:function(t,e,n){"use strict";e.__esModule=!0,e.default={recordSwitch:!0}},749:function(t,e,n){"use strict";var a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"secondary-menu-model",class:t.className},[n("div",{staticClass:"toogle-box"},[t.isTogHide?t._e():n("a",{staticClass:"tog-close",attrs:{href:"javascript:"},on:{click:t._toggleMenu}}),t._v(" "),t.isTogHide?n("a",{staticClass:"tog-open",attrs:{href:"javascript:"},on:{click:t._toggleMenu}}):t._e()]),t._v(" "),t._l(t.menuList,function(e,a){return n("div",{staticClass:"leven-1"},[e.disabled?n("div",[e.path?[n("router-link",{attrs:{to:{name:e.path}}},[n("div",{staticClass:"name",on:{click:function(n){return t._toggleSubMenu(e)}}},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa icon",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))]),t._v(" "),e.children.length?n("i",{staticClass:"fa angle",class:e.isOpen?"fa-angle-down":"fa-angle-right"}):t._e()])])])]:t._e(),t._v(" "),e.path?t._e():[n("div",{staticClass:"name",on:{click:function(n){return t._toggleSubMenu(e)}}},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa icon",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))]),t._v(" "),e.children.length?n("i",{staticClass:"fa angle",class:e.isOpen?"fa-angle-down":"fa-angle-right"}):t._e()])])],t._v(" "),e.isOpen&&e.children.length?n("ul",[t._l(e.children,function(e,a){return[e.disabled?n("router-link",{attrs:{to:{name:e.path},tag:"li","active-class":"active"}},[n("span",[t._v(t._s(e.name))])]):t._e()]})],2):t._e()],2):t._e()])})],2)},staticRenderFns:[]};e.a=a}}); |
|
//# sourceMappingURL=27.77c2a5a.js.map
|