对接后端个人信息部分接口

This commit is contained in:
龙运模
2024-07-03 20:05:29 +08:00
parent 43f9a8d49c
commit 0bb1d10f4b
26 changed files with 695 additions and 86 deletions
+6 -4
View File
@@ -114,8 +114,8 @@
},
computed: {
allCompsList(){
var allCompsList = []
for(var key in this.allComps){
const allCompsList = [];
for(let key in this.allComps){
allCompsList.push({
key: key,
title: allComps[key].title,
@@ -123,7 +123,9 @@
description: allComps[key].description
})
}
var myCopmsList = this.grid.copmsList.reduce(function(a, b){return a.concat(b)})
const myCopmsList = this.grid.copmsList.reduce(function (a, b) {
return a.concat(b)
});
for(let comp of allCompsList){
const _item = myCopmsList.find((item)=>{return item === comp.key})
if(_item){
@@ -133,7 +135,7 @@
return allCompsList
},
myCompsList(){
var myGrid = this.$TOOL.data.get("DASHBOARDGRID")
const myGrid = this.$TOOL.data.get("DASHBOARDGRID");
return this.allCompsList.filter(item => !item.disabled && myGrid.includes(item.key))
},
nowCompsList(){