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

!157 UI fix profiler and model trace issue

Merge pull request !157 from 潘慧/master_ph
...@@ -14,6 +14,29 @@ ...@@ -14,6 +14,29 @@
* limitations under the License. * limitations under the License.
*/ */
export default { export default {
pieColorArr: [
'#6C92FA',
'#6CBFFF',
'#4EDED2',
'#7ADFA0',
'#A6DD82',
'#F6DF66',
'#FDCA5A',
'#FA8E5A',
'#F45C5E',
'#F3689A',
'#A97AF8',
'#3D58A6',
'#3673A3',
'#2C9990',
'#469965',
'#68994D',
'#A89636',
'#A8812C',
'#A6542D',
'#A34142',
'#664EA3',
],
commonColorArr: [ commonColorArr: [
'#6C92FA', '#6C92FA',
'#FA8E5A', '#FA8E5A',
......
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
} }
}, },
mounted() { mounted() {
document.title = `${this.$t('summaryManage.comparePlate')} + -MindInsight`; document.title = `${this.$t('summaryManage.comparePlate')}-MindInsight`;
this.$nextTick(() => { this.$nextTick(() => {
// Adding a Listener // Adding a Listener
window.addEventListener('resize', this.resizeCallback, false); window.addEventListener('resize', this.resizeCallback, false);
......
...@@ -151,11 +151,10 @@ limitations under the License. ...@@ -151,11 +151,10 @@ limitations under the License.
</el-table-column> </el-table-column>
<!-- remark column --> <!-- remark column -->
<el-table-column fixed="right" <el-table-column fixed="right"
width="220"> width="310">
<template slot="header"> <template slot="header">
<div> <div>
<div class="label-text">{{$t('public.remark')}}</div> <div class="label-text">{{$t('public.remark')}}</div>
<br>
<div class="remark-tip">{{$t('modelTraceback.remarkTips')}}</div> <div class="remark-tip">{{$t('modelTraceback.remarkTips')}}</div>
</div> </div>
</template> </template>
...@@ -1879,7 +1878,7 @@ export default { ...@@ -1879,7 +1878,7 @@ export default {
.no-data-page { .no-data-page {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding-top: 254px; padding-top: 224px;
} }
.no-data-img { .no-data-img {
background: #fff; background: #fff;
...@@ -2001,7 +2000,7 @@ export default { ...@@ -2001,7 +2000,7 @@ export default {
.hide-count { .hide-count {
display: inline-block; display: inline-block;
position: absolute; position: absolute;
right: 400px; right: 450px;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
padding-top: 12px; padding-top: 12px;
......
...@@ -216,11 +216,10 @@ limitations under the License. ...@@ -216,11 +216,10 @@ limitations under the License.
</el-table-column> </el-table-column>
<!-- remark column --> <!-- remark column -->
<el-table-column fixed="right" <el-table-column fixed="right"
width="220"> width="310">
<template slot="header"> <template slot="header">
<div> <div>
<div class="label-text">{{$t('public.remark')}}</div> <div class="label-text">{{$t('public.remark')}}</div>
<br>
<div class="remark-tip">{{$t('modelTraceback.remarkTips')}}</div> <div class="remark-tip">{{$t('modelTraceback.remarkTips')}}</div>
</div> </div>
</template> </template>
...@@ -2063,7 +2062,7 @@ export default { ...@@ -2063,7 +2062,7 @@ export default {
.hide-count { .hide-count {
display: inline-block; display: inline-block;
position: absolute; position: absolute;
right: 400px; right: 450px;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
padding-top: 4px; padding-top: 4px;
......
...@@ -667,6 +667,7 @@ export default { ...@@ -667,6 +667,7 @@ export default {
row.opDetailCol = []; row.opDetailCol = [];
row.opDetailPage.offset = 0; row.opDetailPage.offset = 0;
row.pageTotal = 0; row.pageTotal = 0;
row.op_sort_condition = {name: 'execution_time', type: 'descending'};
this.getCoreDetailList(row); this.getCoreDetailList(row);
} }
}, },
...@@ -698,6 +699,10 @@ export default { ...@@ -698,6 +699,10 @@ export default {
*/ */
coreTableChange() { coreTableChange() {
if (this.statisticType === 1 && !this.opAllTypeList.opDetailCol.length) { if (this.statisticType === 1 && !this.opAllTypeList.opDetailCol.length) {
this.opAllTypeList.op_sort_condition = {
name: 'execution_time',
type: 'descending',
};
this.getCoreDetailList(this.opAllTypeList); this.getCoreDetailList(this.opAllTypeList);
} }
}, },
......
...@@ -457,7 +457,7 @@ export default { ...@@ -457,7 +457,7 @@ export default {
* updata smoothness * updata smoothness
*/ */
updataInputValue() { updataInputValue(val) {
this.smoothValueNumber = Number(val); this.smoothValueNumber = Number(val);
if (this.smoothSliderValueTimer) { if (this.smoothSliderValueTimer) {
clearTimeout(this.smoothSliderValueTimer); clearTimeout(this.smoothSliderValueTimer);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册