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

!544 Caching status replacement Icon

Merge pull request !544 from 王卫宁/wwn
...@@ -48,9 +48,11 @@ limitations under the License. ...@@ -48,9 +48,11 @@ limitations under the License.
popper-class="tooltip-show-content" popper-class="tooltip-show-content"
:content="item.label" :content="item.label"
placement="top"> placement="top">
<span class="select-disable"><i title="CACHING" <span class="select-disable">
v-if="item.loading" <i :title="$t('components.cache')"
class="el-icon-loading"></i>{{item.label}}</span> class="el-icon-time"
v-if="item.checked && (item.loading==='CACHING' || item.loading==='NOT_IN_CACHE')"></i>
{{item.label}}</span>
</el-tooltip> </el-tooltip>
</span> </span>
</div> </div>
...@@ -80,9 +82,11 @@ limitations under the License. ...@@ -80,9 +82,11 @@ limitations under the License.
popper-class="tooltip-show-content" popper-class="tooltip-show-content"
:content="item.label" :content="item.label"
placement="top"> placement="top">
<span class="select-disable"><i title="CACHING" <span class="select-disable">
v-if="item.loading" <i :title="$t('components.cache')"
class="el-icon-loading"></i>{{item.label}}</span> class="el-icon-time"
v-if="item.checked && (item.loading==='CACHING' || item.loading==='NOT_IN_CACHE')"></i>
{{item.label}}</span>
</el-tooltip> </el-tooltip>
</span> </span>
</div> </div>
......
...@@ -450,7 +450,8 @@ ...@@ -450,7 +450,8 @@
"gridIncorrectDataError": "A maximum of two-dimensionalarrays can be displayed.", "gridIncorrectDataError": "A maximum of two-dimensionalarrays can be displayed.",
"gridAccuracy": "Decimal places are reserved.", "gridAccuracy": "Decimal places are reserved.",
"inCorrectInput": "Invalid input.", "inCorrectInput": "Invalid input.",
"gridTableNoData": "No data in the table." "gridTableNoData": "No data in the table.",
"cache":"CACHING"
}, },
"error": { "error": {
"50540000": "System error.", "50540000": "System error.",
......
...@@ -449,7 +449,8 @@ ...@@ -449,7 +449,8 @@
"gridIncorrectDataError": "当前只支持最多二维数组的展示", "gridIncorrectDataError": "当前只支持最多二维数组的展示",
"gridAccuracy": "保留小数位", "gridAccuracy": "保留小数位",
"inCorrectInput": "无效输入", "inCorrectInput": "无效输入",
"gridTableNoData": "表格无数据" "gridTableNoData": "表格无数据",
"cache":"正在加载"
}, },
"error": { "error": {
"50540000": "系统错误", "50540000": "系统错误",
......
...@@ -174,7 +174,6 @@ export default { ...@@ -174,7 +174,6 @@ export default {
curBenchX: 'stepData', // Front axle reference curBenchX: 'stepData', // Front axle reference
curAxisName: this.$t('scalar.step'), // Current chart tip curAxisName: this.$t('scalar.step'), // Current chart tip
axisBenchChangeTimer: null, // Horizontal axis reference switching timing axisBenchChangeTimer: null, // Horizontal axis reference switching timing
cacheStatus: 'CACHING', // cache
}; };
}, },
computed: { computed: {
...@@ -321,13 +320,11 @@ export default { ...@@ -321,13 +320,11 @@ export default {
colorIndex: colorIndex, colorIndex: colorIndex,
}); });
if (summaryObj.cache_status === this.cacheStatus) { tempSummaryList.forEach((item) => {
tempSummaryList.forEach((item) => { if (item.label === summaryObj.train_id) {
if (item.label === summaryObj.train_id) { item.loading = summaryObj.cache_status;
item.loading = true; }
} });
});
}
summaryObj.plugins.scalar.forEach((tagObj) => { summaryObj.plugins.scalar.forEach((tagObj) => {
// tag with the same name exists // tag with the same name exists
...@@ -1336,19 +1333,11 @@ export default { ...@@ -1336,19 +1333,11 @@ export default {
summaryColor = this.summaryOperateList[sameSummaryIndex].color; summaryColor = this.summaryOperateList[sameSummaryIndex].color;
} }
if (summaryObj.cache_status === this.cacheStatus) { this.summaryOperateList.forEach((item) => {
this.summaryOperateList.forEach((item) => { if (item.label === summaryObj.train_id) {
if (item.label === summaryObj.train_id) { item.loading = summaryObj.cache_status;
item.loading = true; }
} });
});
} else {
this.summaryOperateList.forEach((item) => {
if (item.label === summaryObj.train_id) {
item.loading = false;
}
});
}
summaryObj.plugins.scalar.forEach((tagObj) => { summaryObj.plugins.scalar.forEach((tagObj) => {
let sameTagIndex = -1; let sameTagIndex = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册