...
|
...
|
@@ -532,8 +532,8 @@ export default { |
|
|
// 已选择列表
|
|
|
tabFirstList.value = [];
|
|
|
// 关闭谈画框
|
|
|
|
|
|
|
|
|
// lsq 刷新菜单 2022-08-29
|
|
|
window.top.location.reload();
|
|
|
// window.top.location.href = window.top.location.origin + "/#/analysis/view/id=105"
|
|
|
window.top.location.href = window.top.location.origin + '/#/' + res.str;
|
|
|
}
|
...
|
...
|
@@ -555,12 +555,23 @@ export default { |
|
|
proxy.$http.get("/api-web/manage/kpi/list", {}, function (res) {
|
|
|
if (res && res.data) {
|
|
|
kpiList.value = res.data;
|
|
|
//lsq 给默认数据,第一个数据
|
|
|
if(kpiList.value.length>0){
|
|
|
kpiTypeArr.value=[kpiList.value[0].kpiId];
|
|
|
getParams.value.kpiId=kpiList.value[0].kpiId;
|
|
|
}
|
|
|
loeadTable();
|
|
|
}
|
|
|
})
|
|
|
|
|
|
proxy.$http.get("/api-web/home/business/findAllBusType", {}, function (res) {
|
|
|
if (res && res.data) {
|
|
|
busTypeList.value = res.data;
|
|
|
//lsq 给一个默认数据,第一个数据 2022-08-29
|
|
|
if(busTypeList.value.length>0){
|
|
|
busTypeArr.value=[busTypeList.value[0].busId];
|
|
|
getParams.value.busId=busTypeList.value[0].busId;
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
|
...
|
...
|
@@ -577,7 +588,6 @@ export default { |
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//LH
|
|
|
setTimeout(function () {
|
|
|
let arrs = timeRangeArr.value
|
...
|
...
|
@@ -598,7 +608,7 @@ export default { |
|
|
|
|
|
// 挂载完
|
|
|
Vue.onMounted(() => {
|
|
|
|
|
|
init();
|
|
|
|
|
|
if (!id) {
|
|
|
activeName.value = 'second';
|
...
|
...
|
@@ -609,7 +619,6 @@ export default { |
|
|
//编辑追加场景分类数据加载
|
|
|
analysisChange(true);
|
|
|
}
|
|
|
loeadTable();
|
|
|
|
|
|
// 先加载时间范围,然后在加载
|
|
|
loadTimeRange(function (defCode) {
|
...
|
...
|
@@ -620,12 +629,12 @@ export default { |
|
|
}
|
|
|
});
|
|
|
});
|
|
|
init();
|
|
|
console.log('onMounted');
|
|
|
})
|
|
|
|
|
|
|
|
|
return {
|
|
|
getParams,
|
|
|
resTypeList,
|
|
|
kpiList,
|
|
|
busTypeList,
|
...
|
...
|
|