diff --git a/mindinsight/ui/src/components/debugger-grid-table-simple.vue b/mindinsight/ui/src/components/debugger-grid-table-simple.vue index 07808d81..690bb5b6 100644 --- a/mindinsight/ui/src/components/debugger-grid-table-simple.vue +++ b/mindinsight/ui/src/components/debugger-grid-table-simple.vue @@ -39,7 +39,7 @@ limitations under the License. @keyup.enter="filterChange">
{{$t('components.dimsFilterInputTitle')}} + class="el-icon-info">
@@ -74,7 +74,7 @@ limitations under the License. {{$t('components.gridAccuracy')}} + class="el-icon-info"> diff --git a/mindinsight/ui/src/components/debugger-tensor.vue b/mindinsight/ui/src/components/debugger-tensor.vue index c80bcb7d..a8341134 100644 --- a/mindinsight/ui/src/components/debugger-tensor.vue +++ b/mindinsight/ui/src/components/debugger-tensor.vue @@ -183,7 +183,7 @@ limitations under the License. - +
{{$t('debugger.selectDetail')}}
diff --git a/mindinsight/ui/src/mixins/debugger-mixin.vue b/mindinsight/ui/src/mixins/debugger-mixin.vue index 9f6238a0..7c627526 100644 --- a/mindinsight/ui/src/mixins/debugger-mixin.vue +++ b/mindinsight/ui/src/mixins/debugger-mixin.vue @@ -524,31 +524,17 @@ export default { RequestService.control(params).then( (res) => { if (res.data && res.data.metadata) { - const h = this.$createElement; - - if (res.data.metadata.state === this.state.sending) { - setTimeout(() => { - if (this.metadata.state === this.state.sending) { - this.$message(this.$t('debugger.sendingTip')); - } else { - const msg = { - message: h('p', null, [ - h('span', null, this.$t('debugger.backstageStatus')), - h('i', {style: 'color: teal'}, this.metadata.state), - ]), - }; - this.$message(msg); - } - }, 500); - } else { - const msg = { - message: h('p', null, [ - h('span', null, this.$t('debugger.backstageStatus')), - h('i', {style: 'color: teal'}, res.data.metadata.state), - ]), - }; + setTimeout(() => { + let msg = ''; + if (this.metadata.state === this.state.sending) { + msg = this.$t('debugger.stateMsg.sending'); + } else if (this.metadata.state === this.state.running) { + msg = this.$t('debugger.stateMsg.running'); + } else { + msg = `${this.$t('debugger.backstageStatus')}${this.metadata.state}`; + } this.$message(msg); - } + }, 500); this.metadata.state = res.data.metadata.state; } diff --git a/mindinsight/ui/src/views/debugger/debugger.vue b/mindinsight/ui/src/views/debugger/debugger.vue index 7152b24f..a9683671 100644 --- a/mindinsight/ui/src/views/debugger/debugger.vue +++ b/mindinsight/ui/src/views/debugger/debugger.vue @@ -305,6 +305,20 @@ limitations under the License. {{ $t('debugger.stepTip')}} + + + + + +
@@ -364,7 +378,8 @@ limitations under the License. @click="rightCollapse()" alt="" /> - +
@@ -1445,7 +1460,10 @@ export default { } } } - this.setSelectedNodeData(node.data); + if (this.tabs.activeName === 'detail') { + this.setSelectedNodeData(node.data); + } + if (this.watchPointHits.length && this.radio1 === 'hit' && this.isHitIntoView) { this.focusWatchpointHit(); } @@ -1456,7 +1474,7 @@ export default { * @param {Object} selectedNode Node data */ setSelectedNodeData(selectedNode = {}) { - this.selectedNode.IOInfo = []; + const IOInfo = []; this.selectedNode.inputNum = 0; this.selectedNode.outputNum = 0; if (selectedNode.output) { @@ -1467,7 +1485,7 @@ export default { key = key.replace(`${graphName}/`, ''); } const obj = {name: key, IOType: 'output', graph_name: graphName}; - this.selectedNode.IOInfo.push(obj); + IOInfo.push(obj); this.selectedNode.outputNum++; }); } @@ -1479,10 +1497,11 @@ export default { key = key.replace(`${graphName}/`, ''); } const obj = {name: key, IOType: 'input', graph_name: graphName}; - this.selectedNode.IOInfo.push(obj); + IOInfo.push(obj); this.selectedNode.inputNum++; }); } + this.selectedNode.IOInfo = IOInfo; }, /** * The position is offset to the current node in the center of the screen. @@ -1649,6 +1668,12 @@ export default { } } }, + tabsChange() { + if (this.tabs.activeName === 'detail') { + const node = this.allGraphData[this.selectedNode.name]; + this.setSelectedNodeData(node); + } + }, /** * To summery list page */ @@ -1976,11 +2001,17 @@ export default { margin-left: 25px; } span.item { - margin-right: 15px; .content { color: #00a5a7; } } + .item + .item { + margin-left: 15px; + } + .tooltip { + margin-left: 5px; + cursor: pointer; + } } .svg-wrap { height: 50%;