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

webpackJsonp([25],{1098:function(t,e,a){"use strict";e.__esModule=!0;var i=a(123),s=u(a(1202)),n=u(a(701)),o=u(a(696)),r=a(225),l=u(a(750)),d=u(a(742)),c=u(a(697));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"instance-gantt-index",data:function(){return{tasksState:r.tasksState,isLoading:!0,ganttData:{taskNames:[]},isNodata:!1}},props:{},methods:Object.assign({},(0,i.mapActions)("dag",["getViewGantt"]),{_getViewGantt:function(){var t=this;this.isLoading=!0,this.getViewGantt({processInstanceId:this.$route.params.id}).then(function(e){if(t.ganttData=e,!e.taskNames.length||!e)return t.isLoading=!1,void(t.isNodata=!0);s.default.init({el:".gantt",tasks:e.tasks}),setTimeout(function(){t.isLoading=!1},200)}).catch(function(e){t.isLoading=!1})}}),watch:{},created:function(){},mounted:function(){this._getViewGantt()},updated:function(){},beforeDestroy:function(){},destroyed:function(){},computed:{},components:{mConditions:l.default,mSecondaryMenu:d.default,mListConstruction:c.default,mSpin:n.default,mNoData:o.default}}},1199:function(t,e,a){var i=a(1200);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(35)("9c8564c8",i,!0,{})},1200:function(t,e,a){var i=a(125);(t.exports=a(34)(!1)).push([t.i,".d3-toottip{text-align:left}.d3-toottip ul li{overflow:hidden}.d3-toottip ul li span.sp1{width:70px;text-align:right;display:inline-block;padding-right:6px}.gantt-model{background:url("+i(a(1201))+");height:calc(100vh - 148px)}.gantt-model .gantt-state{background:#fff;height:48px;line-height:48px;padding-left:20px}.gantt-model .gantt{height:calc(100vh - 220px);overflow-y:scroll}.gantt-model rect{cursor:pointer}.gantt-model path.link{fill:none;stroke:#666;stroke-width:2px}.gantt-model g.tick line{shape-rendering:crispEdges}.gantt-model .axis line,.gantt-model .axis path{fill:none;stroke:#000;shape-rendering:crispEdges}.gantt-model .axis text{font:11px sans-serif}.gantt-model circle{stroke:#666;fill:#0097e0;stroke-width:1.5px}.gantt-model g.axis path{shape-rendering:crispEdges}",""])},1201:function(t,e,a){t.exports=a.p+"images/dag_bg.png?6a0c3839385c7d50f21acf06989addf4"},1202:function(t,e,a){"use strict";e.__esModule=!0;var i=l(a(30)),s=l(a(71)),n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}(a(605)),o=a(229),r=a(225);function l(t){return t&&t.__esModule?t:{default:t}}var d=function(){this.el="",this.tasks=[],this.width=null,this.height=null,this.tasksName=[],this.tickFormat="%H:%M:%S",this.margin={top:10,right:40,bottom:10,left:300},this.startTimeXAxis=n.time.day.offset(new Date,-3),this.endTimeXAxis=n.time.hour.offset(new Date,3)};d.prototype.init=function(t){var e=t.el,a=t.tasks;this.el=e,this.tasks=a,this.tasksName=i.default.map(i.default.cloneDeep(a),function(t){return t.taskName}),this.height=parseInt(30*this.tasksName.length),this.width=(0,s.default)(this.el).width()-this.margin.right-this.margin.left-5,this.x=n.time.scale().domain([this.startTimeXAxis,this.endTimeXAxis]).range([0,this.width]).clamp(!0),this.y=n.scale.ordinal().domain(this.tasksName).rangeRoundBands([0,this.height-this.margin.top-this.margin.bottom],.1),this.xAxis=n.svg.axis().scale(this.x).orient("bottom").tickFormat(n.time.format(this.tickFormat)).tickSubdivide(!0).tickSize(8).tickPadding(8),this.yAxis=n.svg.axis().scale(this.x).orient("left").tickSize(0),this.compXAxisTimes(),this.initializeXAxis(),this.drawChart()},d.prototype.compXAxisTimes=function(){if(void 0===this.tasks||this.tasks.length<1)return this.startTimeXAxis=n.time.day.offset(new Date,-3),void(this.endTimeXAxis=n.time.hour.offset(new Date,3));this.tasks.sort(function(t,e){return t.endDate-e.endDate}),this.endTimeXAxis=this.tasks[this.tasks.length-1].endDate,this.tasks.sort(function(t,e){return t.startDate-e.startDate}),this.startTimeXAxis=this.tasks[0].startDate},d.prototype.initializeXAxis=function(){this.x=n.time.scale().domain([this.startTimeXAxis,this.endTimeXAxis]).range([0,this.width]).clamp(!0),this.y=n.scale.ordinal().domain(this.tasksName).range
//# sourceMappingURL=25.079b6f7.js.map