| @@ -191,16 +191,16 @@ export default { | |||||
| tableData: [], // table data | tableData: [], // table data | ||||
| initOver: false, // init over | initOver: false, // init over | ||||
| pageSizes: [10, 20, 50], | pageSizes: [10, 20, 50], | ||||
| group_condition: { | |||||
| group_condition: { // page setting | |||||
| offset: 0, | offset: 0, | ||||
| limit: 10, | limit: 10, | ||||
| }, | }, | ||||
| sort_condition: { | |||||
| sort_condition: { // sort setting | |||||
| name: 'iteration_interval', | name: 'iteration_interval', | ||||
| type: 'descending', | type: 'descending', | ||||
| }, | }, | ||||
| totalCount: 0, | totalCount: 0, | ||||
| step: { | |||||
| step: { // step info | |||||
| maxStep: '', | maxStep: '', | ||||
| filterStep: '', | filterStep: '', | ||||
| showStep: '', | showStep: '', | ||||
| @@ -322,16 +322,19 @@ export default { | |||||
| this.chartOption.dataset = { | this.chartOption.dataset = { | ||||
| dimensions: ['rankID'].concat(Object.values(this.stepInfoCol)), | dimensions: ['rankID'].concat(Object.values(this.stepInfoCol)), | ||||
| source: this.chartData, | source: this.chartData, | ||||
| }, | |||||
| this.chartOption.dataZoom = this.chartData.length > 25 // show bar numbers as default | |||||
| ? [ | |||||
| { | |||||
| show: true, | |||||
| startValue: 0, | |||||
| endValue: 25, | |||||
| }, | |||||
| ] | |||||
| : [], | |||||
| }; | |||||
| const endValue = this.chartData.length > 25 ? 25 : this.chartData.length; // show bar numbers as default | |||||
| this.chartOption.dataZoom = [ | |||||
| { | |||||
| startValue: 0, | |||||
| endValue: endValue, | |||||
| }, | |||||
| { | |||||
| startValue: 0, | |||||
| endValue: endValue, | |||||
| type: 'inside', | |||||
| }, | |||||
| ]; | |||||
| this.$nextTick(()=> { | this.$nextTick(()=> { | ||||
| if (!this.chartObj) { | if (!this.chartObj) { | ||||
| this.chartObj = echarts.init(this.$refs.clusterChart, null); | this.chartObj = echarts.init(this.$refs.clusterChart, null); | ||||
| @@ -402,7 +405,7 @@ export default { | |||||
| type: column.order, | type: column.order, | ||||
| }; | }; | ||||
| this.group_condition.offset = 0; | this.group_condition.offset = 0; | ||||
| this.queryStepTraceInfo(false, false); | |||||
| this.queryStepTraceInfo(true, false); | |||||
| }, | }, | ||||
| /** | /** | ||||
| * filter step to overview | * filter step to overview | ||||