提交 f674ae3e 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!439 modify operator full screen display problem

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