Browse Source

imp ui dag button tooltip.

pull/3/MERGE
zhuangchong 4 years ago
parent
commit
e9c0107fae
  1. 55
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue

55
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue

@ -70,32 +70,38 @@
:id="item.code"
:key="$index"
@click="_ckOperation(item,$event)">
<el-button type="text" class="operBtn" data-container="body" :icon="item.icon" v-tooltip.light="item.desc"></el-button>
<el-tooltip :content="item.desc" placement="top" :enterable="false">
<span><el-button type="text" class="operBtn" data-container="body" :icon="item.icon"></el-button></span>
</el-tooltip>
</a>
</div>
<el-button
type="primary"
v-tooltip.light="$t('Format DAG')"
icon="el-icon-caret-right"
size="mini"
data-container="body"
v-if="(type === 'instance' || 'definition') && urlParam.id !=undefined"
style="vertical-align: middle;"
@click="dagAutomaticLayout">
</el-button>
<span>
<el-button
v-tooltip.light="$t('Refresh DAG status')"
data-container="body"
style="vertical-align: middle;"
icon="el-icon-refresh"
type="primary"
:loading="isRefresh"
v-if="type === 'instance'"
@click="!isRefresh && _refresh()"
size="mini" >
</el-button>
</span>
<el-tooltip :content="$t('Format DAG')" placement="top" :enterable="false">
<span>
<el-button
type="primary"
icon="el-icon-caret-right"
size="mini"
data-container="body"
v-if="(type === 'instance' || 'definition') && urlParam.id !=undefined"
style="vertical-align: middle;"
@click="dagAutomaticLayout">
</el-button>
</span>
</el-tooltip>
<el-tooltip :content="$t('Refresh DAG status')" placement="top" :enterable="false">
<span>
<el-button
data-container="body"
style="vertical-align: middle;"
icon="el-icon-refresh"
type="primary"
:loading="isRefresh"
v-if="type === 'instance'"
@click="!isRefresh && _refresh()"
size="mini" >
</el-button>
</span>
</el-tooltip>
<el-button
v-if="isRtTasks"
style="vertical-align: middle;"
@ -108,7 +114,6 @@
<span>
<el-button
type="primary"
v-tooltip.light="$t('Close')"
icon="el-icon-switch-button"
size="mini"
data-container="body"

Loading…
Cancel
Save