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

!444 Table text is displayed in the center

Merge pull request !444 from 冯学峰/myMaster02
...@@ -49,6 +49,7 @@ limitations under the License. ...@@ -49,6 +49,7 @@ limitations under the License.
v-if="this.$route.path.indexOf('/scalar') > 0 v-if="this.$route.path.indexOf('/scalar') > 0
|| this.$route.path.indexOf('/image') > 0 || this.$route.path.indexOf('/image') > 0
|| this.$route.path.indexOf('/histogram') > 0 || this.$route.path.indexOf('/histogram') > 0
|| this.$route.path.indexOf('/tensor') > 0
|| this.$route.path.indexOf('/training-dashboard') > 0 || this.$route.path.indexOf('/training-dashboard') > 0
|| !this.$route.path.indexOf('/compare-plate')"> || !this.$route.path.indexOf('/compare-plate')">
<!-- automatic refresh switch --> <!-- automatic refresh switch -->
......
...@@ -29,9 +29,9 @@ limitations under the License. ...@@ -29,9 +29,9 @@ limitations under the License.
:data="chipTableData" :data="chipTableData"
width="100%" width="100%"
height="100%"> height="100%">
<el-table-column prop="chip_name" <el-table-column width="120">
width="120">
<template slot="header"> <template slot="header">
<span class="cl-text-center">
Name Name
<el-tooltip class="item" <el-tooltip class="item"
effect="light" effect="light"
...@@ -39,11 +39,15 @@ limitations under the License. ...@@ -39,11 +39,15 @@ limitations under the License.
placement="top-start"> placement="top-start">
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</el-tooltip> </el-tooltip>
</span>
</template>
<template slot-scope="scope">
<span class="cl-text-center">{{ scope.row.chip_name }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="device_id" <el-table-column width="80">
width="80">
<template slot="header"> <template slot="header">
<span class="cl-text-center">
NPU NPU
<el-tooltip class="item" <el-tooltip class="item"
effect="light" effect="light"
...@@ -51,11 +55,15 @@ limitations under the License. ...@@ -51,11 +55,15 @@ limitations under the License.
placement="top-start"> placement="top-start">
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</el-tooltip> </el-tooltip>
</span>
</template>
<template slot-scope="scope">
<span class="cl-text-center">{{ scope.row.device_id }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="available" <el-table-column width="110">
width="110">
<template slot="header"> <template slot="header">
<span class="cl-text-center">
Available Available
<el-tooltip class="item" <el-tooltip class="item"
effect="light" effect="light"
...@@ -63,17 +71,20 @@ limitations under the License. ...@@ -63,17 +71,20 @@ limitations under the License.
placement="top-start"> placement="top-start">
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</el-tooltip> </el-tooltip>
</span>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<span class="cl-text-center">
<i class="el-icon-success" <i class="el-icon-success"
v-if="scope.row.available"></i> v-if="scope.row.available"></i>
<i class="el-icon-question" <i class="el-icon-question"
v-else></i> v-else></i>
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="health" <el-table-column width="80">
width="80">
<template slot="header"> <template slot="header">
<span class="cl-text-center">
Health Health
<el-tooltip class="item" <el-tooltip class="item"
effect="light" effect="light"
...@@ -81,8 +92,10 @@ limitations under the License. ...@@ -81,8 +92,10 @@ limitations under the License.
placement="top-start"> placement="top-start">
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</el-tooltip> </el-tooltip>
</span>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<span class="cl-text-center">
<i class="el-icon-success" <i class="el-icon-success"
v-if="scope.row.health===0"></i> v-if="scope.row.health===0"></i>
<i class="el-icon-warning normal" <i class="el-icon-warning normal"
...@@ -93,11 +106,12 @@ limitations under the License. ...@@ -93,11 +106,12 @@ limitations under the License.
v-if="scope.row.health===3"></i> v-if="scope.row.health===3"></i>
<i class="el-icon-remove" <i class="el-icon-remove"
v-if="scope.row.health=== 0xffffffff"></i> v-if="scope.row.health=== 0xffffffff"></i>
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ip_address" <el-table-column width="130">
width="130">
<template slot="header"> <template slot="header">
<span class="cl-text-center">
IP Address IP Address
<el-tooltip class="item" <el-tooltip class="item"
effect="light" effect="light"
...@@ -105,6 +119,10 @@ limitations under the License. ...@@ -105,6 +119,10 @@ limitations under the License.
placement="top-start"> placement="top-start">
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</el-tooltip> </el-tooltip>
</span>
</template>
<template slot-scope="scope">
<span class="cl-text-center">{{ scope.row.ip_address }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="aicore"> <el-table-column prop="aicore">
...@@ -680,12 +698,10 @@ export default { ...@@ -680,12 +698,10 @@ export default {
padding-top: 16px; padding-top: 16px;
& > div { & > div {
width: 100%; width: 100%;
.el-table_1_column_1, .cl-text-center {
.el-table_1_column_2, display: inline-block;
.el-table_1_column_3,
.el-table_1_column_4,
.el-table_1_column_5 {
text-align: center; text-align: center;
width: 100%;
} }
.el-table::before { .el-table::before {
height: 0px; height: 0px;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册