对接后端个人信息部分接口
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user