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

!204 fixed bug of the profiler page

Merge pull request !204 from WeiFeng/r0.3
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
"userDefinedLabel": "User Defined", "userDefinedLabel": "User Defined",
"hyperLabel": "Hyper", "hyperLabel": "Hyper",
"otherLabel": "其他", "otherLabel": "其他",
"remarkTips": "提示:终止服务后备注及tag信息将被清除" "remarkTips": "提示:终止服务后备注及tag将被清除"
}, },
"dataTraceback": { "dataTraceback": {
"details": "详情", "details": "详情",
......
...@@ -61,12 +61,10 @@ ...@@ -61,12 +61,10 @@
<div class="cl-search-box"> <div class="cl-search-box">
<el-input v-model="searchByTypeInput" <el-input v-model="searchByTypeInput"
v-if="statisticType === 0" v-if="statisticType === 0"
suffix-icon="el-icon-search"
:placeholder="$t('profiler.searchByType')" :placeholder="$t('profiler.searchByType')"
@keyup.enter.native="searchOpCoreList()"></el-input> @keyup.enter.native="searchOpCoreList()"></el-input>
<el-input v-model="searchByNameInput" <el-input v-model="searchByNameInput"
v-if="statisticType === 1" v-if="statisticType === 1"
suffix-icon="el-icon-search"
:placeholder="$t('profiler.searchByName')" :placeholder="$t('profiler.searchByName')"
@keyup.enter.native="searchOpCoreList()"></el-input> @keyup.enter.native="searchOpCoreList()"></el-input>
</div> </div>
...@@ -90,6 +88,8 @@ ...@@ -90,6 +88,8 @@
:property="ele" :property="ele"
:key="key" :key="key"
:sortable="ele === 'op_info' ? false : 'custom'" :sortable="ele === 'op_info' ? false : 'custom'"
:width="(ele==='execution_time'|| ele==='subgraph' ||
ele==='op_name'|| ele==='op_type')?'220':''"
show-overflow-tooltip show-overflow-tooltip
:label="ele"> :label="ele">
</el-table-column> </el-table-column>
...@@ -124,6 +124,8 @@ ...@@ -124,6 +124,8 @@
:key="$index" :key="$index"
:label="item" :label="item"
:sortable="item === 'op_info' ? false : 'custom'" :sortable="item === 'op_info' ? false : 'custom'"
:width="(item==='execution_time'|| item==='subgraph' ||
item==='op_name'|| item==='op_type')?'220':''"
show-overflow-tooltip> show-overflow-tooltip>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -168,7 +170,6 @@ ...@@ -168,7 +170,6 @@
</span> </span>
<div class="cl-search-box"> <div class="cl-search-box">
<el-input v-model="searchByCPUNameInput" <el-input v-model="searchByCPUNameInput"
suffix-icon="el-icon-search"
:placeholder="$t('profiler.searchByName')" :placeholder="$t('profiler.searchByName')"
@keyup.enter.native="searchOpCpuList()"></el-input> @keyup.enter.native="searchOpCpuList()"></el-input>
</div> </div>
...@@ -814,7 +815,8 @@ export default { ...@@ -814,7 +815,8 @@ export default {
option.xAxis = { option.xAxis = {
type: 'category', type: 'category',
axisLabel: { axisLabel: {
interval: 1, interval: 0,
rotate: -30,
}, },
data: [], data: [],
}; };
...@@ -822,7 +824,7 @@ export default { ...@@ -822,7 +824,7 @@ export default {
left: 50, left: 50,
top: 20, top: 20,
right: 0, right: 0,
bottom: 30, bottom: 50,
}; };
option.yAxis = { option.yAxis = {
type: 'value', type: 'value',
...@@ -925,7 +927,7 @@ export default { ...@@ -925,7 +927,7 @@ export default {
const item = {}; const item = {};
item.key = k; item.key = k;
item.value = dataObj[key][k]; item.value = dataObj[key][k];
item.id = (index + 1) * 10 + 1 + j; item.id = item.key + Math.random();
tempData.children.push(item); tempData.children.push(item);
}); });
} }
...@@ -955,20 +957,12 @@ export default { ...@@ -955,20 +957,12 @@ export default {
}, },
}, },
mounted() { mounted() {
if ( if (this.$route.query && this.$route.query.dir && this.$route.query.id) {
this.$route.query &&
this.$route.query.dir &&
this.$route.query.id
) {
this.profile_dir = this.$route.query.dir; this.profile_dir = this.$route.query.dir;
this.train_id = this.$route.query.id; this.train_id = this.$route.query.id;
document.title = document.title = `${ decodeURIComponent(this.train_id)}-${this.$t('profiler.titleText')}-MindInsight`;
decodeURIComponent(this.train_id) +
'-' +
this.$t('profiler.titleText') +
'-MindInsight';
} else { } else {
document.title = this.$t('profiler.titleText') + '-MindInsight'; document.title = `${this.$t('profiler.titleText')}-MindInsight`;
} }
this.init(); this.init();
window.addEventListener('resize', this.resizeCallback, false); window.addEventListener('resize', this.resizeCallback, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册