...
|
...
|
@@ -123,13 +123,13 @@ export default { |
|
|
]);
|
|
|
|
|
|
|
|
|
var id = proxy.$global.getQueryVariable('configId');
|
|
|
var id = proxy.$global.getQueryVariable('configId') ;
|
|
|
|
|
|
let resTypeArr = Vue.ref([]);
|
|
|
let kpiTypeArr = Vue.ref([]);
|
|
|
let busTypeArr = Vue.ref([]);
|
|
|
let keyWords = Vue.ref('');
|
|
|
let config = Vue.ref(id);
|
|
|
let config = Vue.ref(id == false ? null : id);
|
|
|
let lineChart = Vue.ref({
|
|
|
legend: {
|
|
|
data: []
|
...
|
...
|
@@ -190,20 +190,22 @@ export default { |
|
|
}
|
|
|
|
|
|
// 查询参数
|
|
|
let params = {
|
|
|
let getParams = () =>{
|
|
|
return {
|
|
|
keyWords: keyWords.value,
|
|
|
resType: resTypeArr.value.join(','),
|
|
|
kpiType: kpiTypeArr.value.join(','),
|
|
|
bizType: busTypeArr.value.join(','),
|
|
|
configId: config.value
|
|
|
}
|
|
|
}
|
|
|
|
|
|
let loadFirstList = (reload) => {
|
|
|
if (!reload && tabFirstList.value.length > 0) {
|
|
|
return false;
|
|
|
}
|
|
|
// if (!reload && tabFirstList.value.length > 0) {
|
|
|
// return false;
|
|
|
// }
|
|
|
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/added`, params, function (res) {
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/added`, getParams(), function (res) {
|
|
|
if (res && res.data) {
|
|
|
tabFirstList.value = res.data;
|
|
|
}
|
...
|
...
|
@@ -211,10 +213,10 @@ export default { |
|
|
}
|
|
|
|
|
|
let loadSecondList = (reload) => {
|
|
|
if (!reload && tabSecondList.value.length > 0) {
|
|
|
return false;
|
|
|
}
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, params, function (res) {
|
|
|
// if (!reload && tabSecondList.value.length > 0) {
|
|
|
// return false;
|
|
|
// }
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams(), function (res) {
|
|
|
if (res && res.data) {
|
|
|
tabSecondList.value = res.data;
|
|
|
}
|
...
|
...
|
@@ -252,6 +254,9 @@ export default { |
|
|
let timeRangeChange = (item) => {
|
|
|
let code = item.ddicCode;
|
|
|
loadFrequency(code);
|
|
|
|
|
|
// 加载echar
|
|
|
getChartData();
|
|
|
}
|
|
|
|
|
|
let addRes = (row, index) => {
|
...
|
...
|
@@ -467,9 +472,37 @@ export default { |
|
|
});
|
|
|
}
|
|
|
|
|
|
let resTypeList = Vue.ref([]);
|
|
|
let kpiList = Vue.ref([]);
|
|
|
let busTypeList = Vue.ref([]);
|
|
|
let init = () =>{
|
|
|
/*
|
|
|
proxy.$http.get("/api-web/home/resType/getTree?typeParentFlag=1", {}, function(res) {
|
|
|
if (res && res.data) {
|
|
|
resTypeList.value = res.data;
|
|
|
}
|
|
|
})
|
|
|
*/
|
|
|
|
|
|
proxy.$http.get("/api-web/manage/kpi/list", {}, function(res) {
|
|
|
if (res && res.data) {
|
|
|
kpiList.value = res.data;
|
|
|
}
|
|
|
})
|
|
|
|
|
|
proxy.$http.get("/api-web/home/business/findAllBusType", {}, function(res) {
|
|
|
if (res && res.data) {
|
|
|
busTypeList.value = res.data;
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
|
|
|
// 挂载完
|
|
|
Vue.onMounted(() => {
|
|
|
|
|
|
init();
|
|
|
|
|
|
if(!id){
|
|
|
activeName.value = 'second';
|
|
|
}
|
...
|
...
|
@@ -489,6 +522,10 @@ export default { |
|
|
|
|
|
|
|
|
return {
|
|
|
resTypeList,
|
|
|
kpiList,
|
|
|
busTypeList,
|
|
|
|
|
|
height,
|
|
|
lineChart,
|
|
|
form,
|
...
|
...
|
@@ -503,7 +540,11 @@ export default { |
|
|
getResType,
|
|
|
getKpiType,
|
|
|
getBizType,
|
|
|
|
|
|
keyWords,
|
|
|
resTypeArr,
|
|
|
kpiTypeArr,
|
|
|
busTypeArr,
|
|
|
|
|
|
loadFirstList,
|
|
|
loadSecondList,
|
...
|
...
|
@@ -522,7 +563,8 @@ export default { |
|
|
dialogFormVisible,
|
|
|
showDialogForm,
|
|
|
saveAnalysis,
|
|
|
parentList
|
|
|
parentList,
|
|
|
getChartData
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|