Browse Source

!1062 UI profiling / search input placeholder add 'Not case sensitive'

From: @weiyanxi
Reviewed-by: @xia_yi_fan1,@wangyue01,@panhui3,@wenkai_dist
Signed-off-by: @wenkai_dist
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
a676400581
4 changed files with 28 additions and 12 deletions
  1. +2
    -1
      mindinsight/ui/src/locales/en-us.json
  2. +4
    -3
      mindinsight/ui/src/locales/zh-cn.json
  3. +11
    -4
      mindinsight/ui/src/views/profiling-gpu/operator.vue
  4. +11
    -4
      mindinsight/ui/src/views/profiling/operator.vue

+ 2
- 1
mindinsight/ui/src/locales/en-us.json View File

@@ -22,7 +22,8 @@
"selectAll": "All",
"deselectAll": "Clear",
"dataLoading": "Loading data...",
"notice": "Information"
"notice": "Information",
"caseMode": "Not case sensitive"
},
"symbols": {
"leftbracket": "(",


+ 4
- 3
mindinsight/ui/src/locales/zh-cn.json View File

@@ -22,11 +22,12 @@
"selectAll": "全选",
"deselectAll": "取消全选",
"dataLoading": "数据加载中",
"notice": "提示"
"notice": "提示",
"caseMode": "不区分大小写"
},
"symbols": {
"leftbracket": "(",
"rightbracket": ")",
"leftbracket": "",
"rightbracket": "",
"point": "·",
"slashes": "/",
"colon": ":",


+ 11
- 4
mindinsight/ui/src/views/profiling-gpu/operator.vue View File

@@ -67,13 +67,15 @@ limitations under the License.
<div class="cl-search-box">
<el-input v-model="searchByTypeInput"
v-if="!statisticType"
:placeholder="$t('operator.searchByType')"
:placeholder="$t('operator.searchByType') +
$t('symbols.leftbracket') + $t('public.caseMode') + $t('symbols.rightbracket')"
clearable
@clear="searchOperatorList()"
@keyup.enter.native="searchOperatorList()"></el-input>
<el-input v-model="searchByNameInput"
v-if="statisticType"
:placeholder="$t('operator.searchByName')"
:placeholder="$t('operator.searchByName') +
$t('symbols.leftbracket') + $t('public.caseMode') + $t('symbols.rightbracket')"
clearable
@clear="searchOperatorList()"
@keyup.enter.native="searchOperatorList()"></el-input>
@@ -204,8 +206,10 @@ limitations under the License.
<div>
<div class="cl-search-box">
<el-input v-model="searchByCoreInput"
:placeholder="coreSearchType ? $t('operator.searchByCoreFullName')
: $t('operator.searchByCoreName')"
:placeholder="(coreSearchType ?
$t('operator.searchByCoreFullName') :
$t('operator.searchByCoreName')) +
$t('symbols.leftbracket') + $t('public.caseMode') + $t('symbols.rightbracket')"
clearable
@clear="searchCoreList()"
@keyup.enter.native="searchCoreList()"></el-input>
@@ -1223,6 +1227,9 @@ export default {
float: right;
margin-bottom: 10px;
margin-right: 20px;
.el-input {
width: 300px;
}
}
.cl-profiler-top {
height: 47%;


+ 11
- 4
mindinsight/ui/src/views/profiling/operator.vue View File

@@ -67,13 +67,15 @@ limitations under the License.
<div class="cl-search-box">
<el-input v-model="searchByTypeInput"
v-if="!coreStatisticType"
:placeholder="$t('operator.searchByType')"
:placeholder="$t('operator.searchByType') +
$t('symbols.leftbracket') + $t('public.caseMode') + $t('symbols.rightbracket')"
clearable
@clear="searchOpCoreList()"
@keyup.enter.native="searchOpCoreList()"></el-input>
<el-input v-model="searchByNameInput"
v-if="coreStatisticType"
:placeholder="$t('operator.searchByName')"
:placeholder="$t('operator.searchByName') +
$t('symbols.leftbracket') + $t('public.caseMode') + $t('symbols.rightbracket')"
clearable
@clear="searchOpCoreList()"
@keyup.enter.native="searchOpCoreList()"></el-input>
@@ -228,13 +230,15 @@ limitations under the License.
<div class="cl-search-box">
<el-input v-model="searchByCpuTypeInput"
v-if="!cpuStatisticType"
:placeholder="$t('operator.searchByType')"
:placeholder="$t('operator.searchByType') +
$t('symbols.leftbracket') + $t('public.caseMode') + $t('symbols.rightbracket')"
clearable
@clear="searchOpCpuList()"
@keyup.enter.native="searchOpCpuList()"></el-input>
<el-input v-model="searchAllByCpuTypeInput"
v-if="cpuStatisticType"
:placeholder="$t('operator.searchByType')"
:placeholder="$t('operator.searchByType') +
$t('symbols.leftbracket') + $t('public.caseMode') + $t('symbols.rightbracket')"
clearable
@clear="searchOpCpuList()"
@keyup.enter.native="searchOpCpuList()"></el-input>
@@ -1547,6 +1551,9 @@ export default {
float: right;
margin-bottom: 10px;
margin-right: 20px;
.el-input {
width: 300px;
}
}
.cl-profiler-top {
height: 47%;


Loading…
Cancel
Save