...
|
...
|
@@ -15,7 +15,6 @@ const timeRange = () => { |
|
|
proxy.$http.post(`/api-web/manage/ddic/findSucDdics/time_scope`, {}, function (res) {
|
|
|
if (res && res.data) {
|
|
|
timeRangeArr.value = res.data;
|
|
|
|
|
|
if (callback) {
|
|
|
callback(res.data[0].ddicCode);
|
|
|
}
|
...
|
...
|
@@ -280,12 +279,20 @@ export default { |
|
|
loadTimeRange,
|
|
|
} = timeRange();
|
|
|
|
|
|
|
|
|
|
|
|
let timeRangeChange = (item) => {
|
|
|
setTimeout(function(){
|
|
|
let code = item.ddicCode;
|
|
|
loadFrequency(code);
|
|
|
},300);
|
|
|
|
|
|
|
|
|
// 加载echar
|
|
|
setTimeout(function(){
|
|
|
getChartData();
|
|
|
},600);
|
|
|
|
|
|
}
|
|
|
|
|
|
//根菜单选择事件
|
...
|
...
|
@@ -319,6 +326,7 @@ export default { |
|
|
|
|
|
let getChartData = () => {
|
|
|
|
|
|
console.log("======form.value.scene===00000000--------",form.value.scene);
|
|
|
let timeScope = '';
|
|
|
try {
|
|
|
timeScope = form.value.scene.timeScope.replaceAll("time_scope_", "")
|
...
|
...
|
@@ -572,15 +580,18 @@ export default { |
|
|
});
|
|
|
|
|
|
//LH
|
|
|
setTimeout(function(){
|
|
|
let arrs= timeRangeArr.value
|
|
|
timeRangeChange(arrs[0]);
|
|
|
},300)
|
|
|
|
|
|
}
|
|
|
//查询对比分析基础数据
|
|
|
let getBContrastInfoById=(id)=>{
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/getBContrastInfoById`,{id:id}, function (res) {
|
|
|
if (res.success) {
|
|
|
console.log("=============",res);
|
|
|
form.value.scene.name=res.object.configName;
|
|
|
form.value.scene.desc=res.object.configDepict;
|
|
|
// console.log("==================",res);
|
|
|
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -589,7 +600,7 @@ export default { |
|
|
// 挂载完
|
|
|
Vue.onMounted(() => {
|
|
|
|
|
|
init();
|
|
|
|
|
|
|
|
|
if(!id){
|
|
|
activeName.value = 'second';
|
...
|
...
|
@@ -611,6 +622,7 @@ export default { |
|
|
}
|
|
|
});
|
|
|
});
|
|
|
init();
|
|
|
console.log('onMounted');
|
|
|
})
|
|
|
|
...
|
...
|
|