分布式调度框架。
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
31 KiB

webpackJsonp([21],{1027:function(t,e,n){"use strict";e.__esModule=!0;var i=f(n(28)),a=n(123),r=f(n(1112)),s=n(125),o=f(n(646)),l=f(n(663)),u=n(225),c=f(n(654)),d=f(n(650));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:u.tasksType,tasksState:u.tasksState,treeData:{},isNodata:!1}},props:{},methods:Object.assign({},(0,a.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=i.default.cloneDeep(e);if(t.treeData=n,!t.treeData.children)return t.isLoading=!1,void(t.isNodata=!0);!function t(e){e.length&&i.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:i.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],i={};n!==t[0]&&(i={subProcessIds:e.join(",")}),this.$router.push({path:"/projects/definition/tree/"+n,query:i})},_subProcessHandle:function(t){var e=[],n=this.$route.query.subProcessIds;if(n){var i=n.split(",");i.push(this.$route.params.id),e=i}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:d.default,mNoData:l.default}}},1109:function(t,e,n){var i=n(1110);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(35)("2f000d8e",i,!0,{})},1110:function(t,e,n){var i=n(124);(t.exports=n(34)(!1)).push([t.i,".tree-view-index-model{background:url("+i(n(1111))+");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}",""])},1111:function(t,e,n){t.exports=n.p+"images/dag_bg.png?6a0c3839385c7d50f21acf06989addf4"},1112:function(t,e,n){"use strict";e.__esModule=!0;var i,a=n(71),r=(i=a)&&i.__esModule?i:{default:i},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(597)),o=n(1113),l=n(225);var u=void 0,c=function(){u=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,i=t.limit,a=t.selfTree;return new Promise(function(t,r){e.selfTree=a,e.config.taskNum=i,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","translat
//# sourceMappingURL=21.c62cd9a.js.map