|
@@ -364,7 +364,7 @@ import { getToken } from '@/utils/auth'
|
|
|
// import echarts from 'echarts'
|
|
|
import resize from './mixins/resize'
|
|
|
import moment from 'moment'
|
|
|
-// import elTableInfiniteScroll from 'el-table-infinite-scroll';
|
|
|
+import { getCurrentStarEndTime } from '@/utils/getCurrentTime'
|
|
|
export default {
|
|
|
name: 'ServiceMap',
|
|
|
mixins: [resize],
|
|
@@ -535,12 +535,15 @@ export default {
|
|
|
this.appsItem=storage.get('appsItem');
|
|
|
if(JSON.stringify(this.appsItem) !="{}"){
|
|
|
this.queryParams.app_id=this.appsItem.id;
|
|
|
- this.queryParams.start_time = this.appsItem.start_time;
|
|
|
- this.queryParams.end_time = this.appsItem.end_time;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ this.queryParams.start_time = getCurrentStarEndTime().start_time;
|
|
|
+ this.queryParams.end_time = getCurrentStarEndTime().end_time;
|
|
|
this.childQueryParams.app_id = this.appsItem.id;
|
|
|
this.serviceParams.app_id = this.appsItem.id;
|
|
|
- this.serviceParams.start_time = this.appsItem.start_time;
|
|
|
- this.serviceParams.end_time = this.appsItem.end_time;
|
|
|
+ this.serviceParams.start_time = getCurrentStarEndTime().start_time;
|
|
|
+ this.serviceParams.end_time = getCurrentStarEndTime().end_time;
|
|
|
// this.getList()
|
|
|
}
|
|
|
if(this.$route.query.service_name !=undefined && this.$route.query.url !=undefined){
|
|
@@ -683,13 +686,11 @@ export default {
|
|
|
this.myChartboxList=[];
|
|
|
this.myChartBox2List=[];
|
|
|
listUrlMapping(this.queryParams).then(res => {
|
|
|
- if(res.code == 200){
|
|
|
- this.loading = false;
|
|
|
- // this.serveceMapList= this.serveceMapList.concat(res.data.list);
|
|
|
- this.serveceMapList=res.data.list
|
|
|
- this.tableCount = res.data.count;
|
|
|
- // this.queryParams.pageIndex = res.data.pageIndex;
|
|
|
- }
|
|
|
+ if(res.code == 200){
|
|
|
+ this.loading = false;
|
|
|
+ this.serveceMapList=res.data.list
|
|
|
+ this.tableCount = res.data.count;
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
beforeUpload(file) {
|