|
@@ -158,6 +158,9 @@ export default {
|
|
|
]
|
|
|
};
|
|
|
}
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.filterHiddenPosition();
|
|
|
+ },200)
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
@@ -170,6 +173,15 @@ export default {
|
|
|
delEmit() {
|
|
|
this.$emit('del', this.index);
|
|
|
},
|
|
|
+ filterHiddenPosition(){
|
|
|
+ const pos = this.data.position;
|
|
|
+ const pArr = this.positions.map((it)=>{return it.key});
|
|
|
+ const pStr = pArr.join(",");
|
|
|
+ const arr=pos.filter((it)=>{
|
|
|
+ return pStr.indexOf(it)>-1;
|
|
|
+ });
|
|
|
+ this.data.position=arr;
|
|
|
+ },
|
|
|
// 渲染内容类型
|
|
|
renderPositions() {
|
|
|
//显示位置枚举列表
|