fix: 修复自动测试不通过的内容
This commit is contained in:
@@ -202,7 +202,6 @@ export default {
|
|||||||
this.toggleLoading(true)
|
this.toggleLoading(true)
|
||||||
axios.get(url, { params: params }).then(response => {
|
axios.get(url, { params: params }).then(response => {
|
||||||
const res = response.data
|
const res = response.data
|
||||||
console.info(res)
|
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.chartDateObject = res.data.result
|
this.chartDateObject = res.data.result
|
||||||
this.isNoData = res.data.result.length === 0
|
this.isNoData = res.data.result.length === 0
|
||||||
@@ -425,11 +424,13 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const series = this.tabs.filter(tab => tab.show)
|
if (this.myChart) {
|
||||||
const yAxisStartValue = getYAxisBeginValue(series)
|
const series = this.tabs.filter(tab => tab.show)
|
||||||
const _option = this.myChart.getOption()
|
const yAxisStartValue = getYAxisBeginValue(series)
|
||||||
_option.yAxis[0].startValue = yAxisStartValue
|
const _option = this.myChart.getOption()
|
||||||
this.myChart.setOption(_option)
|
_option.yAxis[0].startValue = yAxisStartValue
|
||||||
|
this.myChart.setOption(_option)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (val === 'active') {
|
if (val === 'active') {
|
||||||
this.tabs.forEach(t => {
|
this.tabs.forEach(t => {
|
||||||
|
|||||||
@@ -186,7 +186,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
console.info(this.node)
|
|
||||||
this.handleDetailData(this.node)
|
this.handleDetailData(this.node)
|
||||||
},
|
},
|
||||||
setup (props) {
|
setup (props) {
|
||||||
|
|||||||
@@ -290,7 +290,6 @@ export default {
|
|||||||
},
|
},
|
||||||
initTagsData () {
|
initTagsData () {
|
||||||
let url = ''
|
let url = ''
|
||||||
console.info(this.entity)
|
|
||||||
switch (this.entity.entityType) {
|
switch (this.entity.entityType) {
|
||||||
case ('domain'): {
|
case ('domain'): {
|
||||||
url = api.entity.entityList.domainTags
|
url = api.entity.entityList.domainTags
|
||||||
|
|||||||
Reference in New Issue
Block a user