Skip to content

Commit

Permalink
#532 关系图跳转问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
allen8203 committed Dec 4, 2018
1 parent 6e8efe3 commit e54aacf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions saturn-console-web/src/components/common/charts/relate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export default {
option: {
tooltip: {
show: true,
formatter: '点击跳转到作业 {b} 详情页面',
formatter(params) {
return params.dataType === 'node' ? `点击跳转到作业 ${params.name} 详情页面` : params.name;
},
},
animationDurationUpdate: 1500,
animationEasingUpdate: 'quinticInOut',
Expand Down Expand Up @@ -119,11 +121,12 @@ export default {
},
handleClick() {
this.myChart.on('click', (handler) => {
this.$emit('job-redirect', handler.data.name);
if (handler.dataType === 'node') {
this.$emit('job-redirect', handler.data.name);
}
});
},
drawLine() {
console.log(this.optionInfo);
if (this.optionInfo) {
this.option.series[0].data = this.optionInfo.data;
this.option.series[0].links = this.optionInfo.links;
Expand Down
2 changes: 1 addition & 1 deletion saturn-console-web/src/pages/job_list/job_overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<el-button @click="handleAdd()" v-if="$common.hasPerm('job:add', domainName)"><i class="fa fa-plus-circle text-btn"></i>添加</el-button>
<el-button @click="handleImport()" v-if="$common.hasPerm('job:import', domainName)"><i class="fa fa-arrow-circle-o-down text-btn"></i>导入</el-button>
<el-button @click="handleExport()"><i class="fa fa-arrow-circle-o-up text-btn"></i>导出</el-button>
<el-button @click="handleArrangeLayout()"><i class="fa fa-arrows text-btn"></i>作业依赖图</el-button>
<el-button @click="handleArrangeLayout()"><i class="fa fa-line-chart text-btn"></i>作业依赖图</el-button>
</div>
</div>
<el-table stripe border ref="multipleTable" @selection-change="handleSelectionChange" :data="jobList" @sort-change="scope.onSortChange" style="width: 100%">
Expand Down

0 comments on commit e54aacf

Please sign in to comment.