{
- return item.title.includes(this.searchIpt)
+ return this.countryList.filter(item => {
+ return item.areaName.includes(this.searchIpt)
})
}
},
diff --git a/src/views/Workbench/components/workbenchEdit.vue b/src/views/Workbench/components/workbenchEdit.vue
index 4fdbc78..18dac13 100644
--- a/src/views/Workbench/components/workbenchEdit.vue
+++ b/src/views/Workbench/components/workbenchEdit.vue
@@ -44,7 +44,7 @@
+
@@ -504,7 +504,9 @@ export default {
this.layout.forEach(item=>{
setTimeout(()=>{
let index2 = this.menuLayout.findIndex(v => v.componentName == item.componentName)
- this.menuLayout[index2].isPut = "1"
+ if(index2>-1){
+ this.menuLayout[index2].isPut = "1"
+ }
},500)
})
},
@@ -534,6 +536,9 @@ export default {
{x: 6,y: 2,w: 3,h: 4,i: 10,isAccord: '1*1',componentName: '',},
{x: 9,y: 2,w: 3,h: 4,i: 11,isAccord: '1*1',componentName: '',}
]
+ this.menuLayout.forEach(item=>{
+ item.isPut = "0"
+ })
this.$message({
type: 'success',
message: '清空完成!'