...
|
...
|
@@ -159,7 +159,7 @@ export default { |
|
|
let countFirst = Vue.ref(0);
|
|
|
|
|
|
let form = Vue.ref({
|
|
|
addFirstPId: '',
|
|
|
addFirstPId: '100130900',
|
|
|
parentId: '',
|
|
|
parentName: '',
|
|
|
desc: '',
|
...
|
...
|
@@ -305,14 +305,15 @@ export default { |
|
|
|
|
|
//根菜单选择事件
|
|
|
let dataFilter = (val) => {
|
|
|
form.value.addFirstPId=val;
|
|
|
if (val) { //val存在
|
|
|
this.options = this.firstMenu.filter((item) => {
|
|
|
if (!!~item.label.indexOf(val) || !!~item.label.toUpperCase().indexOf(val.toUpperCase())) {
|
|
|
firstMenu.value.filter((item) => {
|
|
|
if (!!~item.id.indexOf(val) || !!~item.id.toUpperCase().indexOf(val.toUpperCase())) {
|
|
|
return true
|
|
|
}
|
|
|
})
|
|
|
} else { //val为空时,还原数组
|
|
|
this.options = this.firstMenu;
|
|
|
// this.options = firstMenu.value;
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -552,6 +553,7 @@ 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) {
|
...
|
...
|
@@ -586,7 +588,7 @@ export default { |
|
|
|
|
|
|
|
|
//LH 加载新增树菜单
|
|
|
proxy.$http.get(`/api-web/ContrastAnalysis/getRootMenu`, {menuName: ''}, function (res) {
|
|
|
/*proxy.$http.get(`/api-web/ContrastAnalysis/getRootMenu`, {menuName: ''}, function (res) {
|
|
|
if (res.length > 0) {
|
|
|
firstMenu.value = res;
|
|
|
firstMenu.value.forEach(function (item, index) {
|
...
|
...
|
@@ -596,8 +598,8 @@ export default { |
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
//LH
|
|
|
});*/
|
|
|
//LH
|
|
|
setTimeout(function () {
|
|
|
let arrs = timeRangeArr.value
|
|
|
timeRangeChange(arrs[0]);
|
...
|
...
|
@@ -693,7 +695,7 @@ export default { |
|
|
firstMenu,//菜单
|
|
|
getChartData,
|
|
|
count,
|
|
|
countFirst
|
|
|
countFirst,
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|