首页入库

This commit is contained in:
aixianling
2022-07-15 18:12:50 +08:00
parent 2d307db6ce
commit d388123410
2 changed files with 34 additions and 42 deletions

View File

@@ -117,10 +117,12 @@ export default {
}
this.$emit("change", selected)
this.$emit("update:choose", choose)
this.$emit("select", choose)
} else {
this.tableData.map(e => e.checked = e[nodeKey] == row.id && row.checked)
this.$emit("change", row.checked ? row[nodeKey] : '')
this.$emit("update:choose", row.checked ? row : null)
this.$emit("select", row.checked ? row : null)
}
},
handleCheckAll(v) {
@@ -131,6 +133,7 @@ export default {
}).filter(e => e.checked) || []
this.$emit("change", selected?.map(e => e[nodeKey]))
this.$emit("update:choose", selected)
this.$emit("select", selected)
}
},
created() {