提交 cf2e811f 编写于 作者: F fengxuefeng

Modify the bug of operator full screen display

上级 008bdf56
......@@ -55,7 +55,7 @@ limitations under the License.
<img src="../../assets/images/full-screen.png"
:title="$t('graph.fullScreen')"
class="fullScreen"
@click="fullScreen=!fullScreen">
@click="fullScreenControl()">
<div>
<el-radio-group v-model="statisticType"
@change="coreTableChange"
......@@ -109,7 +109,7 @@ limitations under the License.
:width="(ele==='avg_execution_time'|| ele==='subgraph' ||
ele==='op_name'|| ele==='op_type')?'220':''"
show-overflow-tooltip
:label="ele==='avg_execution_time'?`${ele} (ms)`:ele">
:label="ele==='avg_execution_time'?`${ele} (${$t('profiling.unit')})`:ele">
</el-table-column>
</el-table>
<el-pagination :current-page="props.row.opDetailPage.offset + 1"
......@@ -355,6 +355,14 @@ export default {
}, 300);
}
},
fullScreenControl() {
this.fullScreen = !this.fullScreen;
if (this.coreCharts.chartDom && !this.fullScreen) {
this.$nextTick(() => {
this.coreCharts.chartDom.resize();
});
}
},
/**
* Current device change
*/
......@@ -1119,19 +1127,19 @@ export default {
.cl-profiler-top {
height: 45%;
}
.cl-profiler-top.fullScreen{
.cl-profiler-top.fullScreen {
display: none;
}
.cl-profiler-bottom {
height: 55%;
padding-top: 10px;
.fullScreen{
.fullScreen {
float: right;
margin-top: 5px;
cursor: pointer;
}
}
.cl-profiler-bottom.fullScreen{
.cl-profiler-bottom.fullScreen {
height: 100%;
}
.cpu-tab {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册