|
@@ -15,7 +15,6 @@ const timeRange = () => { |
|
@@ -15,7 +15,6 @@ const timeRange = () => { |
15
|
proxy.$http.post(`/api-web/manage/ddic/findSucDdics/time_scope`, {}, function (res) {
|
15
|
proxy.$http.post(`/api-web/manage/ddic/findSucDdics/time_scope`, {}, function (res) {
|
16
|
if (res && res.data) {
|
16
|
if (res && res.data) {
|
17
|
timeRangeArr.value = res.data;
|
17
|
timeRangeArr.value = res.data;
|
18
|
-
|
|
|
19
|
if (callback) {
|
18
|
if (callback) {
|
20
|
callback(res.data[0].ddicCode);
|
19
|
callback(res.data[0].ddicCode);
|
21
|
}
|
20
|
}
|
|
@@ -280,12 +279,20 @@ export default { |
|
@@ -280,12 +279,20 @@ export default { |
280
|
loadTimeRange,
|
279
|
loadTimeRange,
|
281
|
} = timeRange();
|
280
|
} = timeRange();
|
282
|
|
281
|
|
|
|
282
|
+
|
|
|
283
|
+
|
283
|
let timeRangeChange = (item) => {
|
284
|
let timeRangeChange = (item) => {
|
284
|
- let code = item.ddicCode;
|
|
|
285
|
- loadFrequency(code);
|
285
|
+ setTimeout(function(){
|
|
|
286
|
+ let code = item.ddicCode;
|
|
|
287
|
+ loadFrequency(code);
|
|
|
288
|
+ },300);
|
|
|
289
|
+
|
286
|
|
290
|
|
287
|
// 加载echar
|
291
|
// 加载echar
|
288
|
- getChartData();
|
292
|
+ setTimeout(function(){
|
|
|
293
|
+ getChartData();
|
|
|
294
|
+ },600);
|
|
|
295
|
+
|
289
|
}
|
296
|
}
|
290
|
|
297
|
|
291
|
//根菜单选择事件
|
298
|
//根菜单选择事件
|
|
@@ -319,6 +326,7 @@ export default { |
|
@@ -319,6 +326,7 @@ export default { |
319
|
|
326
|
|
320
|
let getChartData = () => {
|
327
|
let getChartData = () => {
|
321
|
|
328
|
|
|
|
329
|
+ console.log("======form.value.scene===00000000--------",form.value.scene);
|
322
|
let timeScope = '';
|
330
|
let timeScope = '';
|
323
|
try {
|
331
|
try {
|
324
|
timeScope = form.value.scene.timeScope.replaceAll("time_scope_", "")
|
332
|
timeScope = form.value.scene.timeScope.replaceAll("time_scope_", "")
|
|
@@ -572,15 +580,18 @@ export default { |
|
@@ -572,15 +580,18 @@ export default { |
572
|
});
|
580
|
});
|
573
|
|
581
|
|
574
|
//LH
|
582
|
//LH
|
|
|
583
|
+ setTimeout(function(){
|
|
|
584
|
+ let arrs= timeRangeArr.value
|
|
|
585
|
+ timeRangeChange(arrs[0]);
|
|
|
586
|
+ },300)
|
|
|
587
|
+
|
575
|
}
|
588
|
}
|
576
|
//查询对比分析基础数据
|
589
|
//查询对比分析基础数据
|
577
|
let getBContrastInfoById=(id)=>{
|
590
|
let getBContrastInfoById=(id)=>{
|
578
|
proxy.$http.get(`/api-web/ContrastAnalysis/getBContrastInfoById`,{id:id}, function (res) {
|
591
|
proxy.$http.get(`/api-web/ContrastAnalysis/getBContrastInfoById`,{id:id}, function (res) {
|
579
|
if (res.success) {
|
592
|
if (res.success) {
|
580
|
- console.log("=============",res);
|
|
|
581
|
form.value.scene.name=res.object.configName;
|
593
|
form.value.scene.name=res.object.configName;
|
582
|
form.value.scene.desc=res.object.configDepict;
|
594
|
form.value.scene.desc=res.object.configDepict;
|
583
|
- // console.log("==================",res);
|
|
|
584
|
|
595
|
|
585
|
}
|
596
|
}
|
586
|
});
|
597
|
});
|
|
@@ -589,7 +600,7 @@ export default { |
|
@@ -589,7 +600,7 @@ export default { |
589
|
// 挂载完
|
600
|
// 挂载完
|
590
|
Vue.onMounted(() => {
|
601
|
Vue.onMounted(() => {
|
591
|
|
602
|
|
592
|
- init();
|
603
|
+
|
593
|
|
604
|
|
594
|
if(!id){
|
605
|
if(!id){
|
595
|
activeName.value = 'second';
|
606
|
activeName.value = 'second';
|
|
@@ -611,6 +622,7 @@ export default { |
|
@@ -611,6 +622,7 @@ export default { |
611
|
}
|
622
|
}
|
612
|
});
|
623
|
});
|
613
|
});
|
624
|
});
|
|
|
625
|
+ init();
|
614
|
console.log('onMounted');
|
626
|
console.log('onMounted');
|
615
|
})
|
627
|
})
|
616
|
|
628
|
|