修改兄弟组件传值
This commit is contained in:
@@ -94,10 +94,6 @@
|
|||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
props: {
|
props: {
|
||||||
searchList: {
|
|
||||||
type: Array,
|
|
||||||
default: []
|
|
||||||
},
|
|
||||||
url: {
|
url: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: {}
|
default: {}
|
||||||
@@ -111,6 +107,7 @@
|
|||||||
return {
|
return {
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
toggleSearchStatus:false,
|
toggleSearchStatus:false,
|
||||||
|
searchList:[],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
@@ -111,9 +111,11 @@
|
|||||||
this.tableAll = event.target.checked
|
this.tableAll = event.target.checked
|
||||||
this.checkboxList = []
|
this.checkboxList = []
|
||||||
if (this.tableAll) {
|
if (this.tableAll) {
|
||||||
this.jsonBody.forEach(res => {
|
if (this.jsonBody.length > 0){
|
||||||
this.checkboxList.push(res.id)
|
this.jsonBody.forEach(res => {
|
||||||
})
|
this.checkboxList.push(res.id)
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getTableList(search) {
|
getTableList(search) {
|
||||||
@@ -122,7 +124,7 @@
|
|||||||
}
|
}
|
||||||
getAction(this.url.tableList, params).then((res) => {
|
getAction(this.url.tableList, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.jsonBody = res.result
|
this.jsonBody = res.result || []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user