fix:修改checkBox搜索不生效的问题

This commit is contained in:
zhangyu
2021-04-21 12:55:09 +08:00
parent 3f32e87aee
commit bd5b629cbf
3 changed files with 10 additions and 5 deletions

View File

@@ -28,7 +28,8 @@ export default {
scrollbarWrap: null,
delFlag: false,
fromBottom: false,
operationWidth: '165' // 操作列宽
operationWidth: '165', // 操作列宽
searchCheckBox: {}
}
},
methods: {
@@ -66,7 +67,7 @@ export default {
this.$set(this.searchLabel, 'pageNo', this.pageObj.pageNo)
this.$set(this.searchLabel, 'pageSize', this.pageObj.pageSize)
this.tools.loading = true
this.$get(this.url, this.searchLabel).then(response => {
this.$get(this.url, { ...this.searchLabel, ...this.searchCheckBox }).then(response => {
this.tools.loading = false
if (response.code === 200) {
for (let i = 0; i < response.data.list.length; i++) {