|
@@ -102,13 +102,13 @@ class NodeDetails extends React.Component {
|
|
|
|
|
|
|
|
|
//上线时打开开始
|
|
|
- this.setQueryParams();//做为iframe嵌套时打开,上线时打开
|
|
|
- const traceURL = `http://${parent.location.hostname}`
|
|
|
- this.setState({
|
|
|
- traceUrl:traceURL
|
|
|
- },()=>{
|
|
|
- console.log(this.state.traceUrl,'traceUrl,用于traceid跳转')
|
|
|
- })
|
|
|
+ // this.setQueryParams();//做为iframe嵌套时打开,上线时打开
|
|
|
+ // const traceURL = `http://${parent.location.hostname}`
|
|
|
+ // this.setState({
|
|
|
+ // traceUrl:traceURL
|
|
|
+ // },()=>{
|
|
|
+ // console.log(this.state.traceUrl,'traceUrl,用于traceid跳转')
|
|
|
+ // })
|
|
|
//上线时打开结束
|
|
|
|
|
|
// this.getNodeBasic();
|
|
@@ -903,7 +903,8 @@ not found!
|
|
|
min_duration:minValue,
|
|
|
max_duration:maxValue,
|
|
|
failed:false,
|
|
|
- app_alias:this.state.queryParams.app_alias
|
|
|
+ app_alias:this.state.queryParams.app_alias,
|
|
|
+ service_name:this.props.id,
|
|
|
}
|
|
|
}else{
|
|
|
dataRange = {
|
|
@@ -912,7 +913,8 @@ not found!
|
|
|
min_duration:minValue,
|
|
|
max_duration:maxValue,
|
|
|
failed:true,
|
|
|
- app_alias:this.state.queryParams.app_alias
|
|
|
+ app_alias:this.state.queryParams.app_alias,
|
|
|
+ service_name:this.props.id,
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -928,7 +930,7 @@ not found!
|
|
|
// window.open(window.location.origin+"/"+href.href,"_blank")
|
|
|
|
|
|
|
|
|
- let href = `${this.state.traceUrl}/#/latency/index?start_time=${dataRange.start_time}&end_time=${dataRange.end_time}&min_duration=${dataRange.min_duration}&max_duration=${dataRange.max_duration}&failed=${dataRange.failed}&app_alias=${this.state.queryParams.app_alias}`
|
|
|
+ let href = `${this.state.traceUrl}/#/latency/index?start_time=${dataRange.start_time}&end_time=${dataRange.end_time}&min_duration=${dataRange.min_duration}&max_duration=${dataRange.max_duration}&failed=${dataRange.failed}&app_alias=${this.state.queryParams.app_alias}&service_name=${this.props.id}`
|
|
|
window.open(href,"_blank")
|
|
|
setTimeout(()=>{
|
|
|
chart.dispatchAction({
|