|
@@ -163,9 +163,7 @@ const headClass = (scope: { row: TableRow }) => {
|
|
|
const newSelectionList = ref<string[]>([]);
|
|
const newSelectionList = ref<string[]>([]);
|
|
|
const selectAllChange = (value: any[]) => {
|
|
const selectAllChange = (value: any[]) => {
|
|
|
if (value.length>0) {
|
|
if (value.length>0) {
|
|
|
- value.map(val => {
|
|
|
|
|
- newSelectionList.value.push(val.id)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ newSelectionList.value=value.map(val => val.id)
|
|
|
} else {
|
|
} else {
|
|
|
newSelectionList.value = [];
|
|
newSelectionList.value = [];
|
|
|
}
|
|
}
|
|
@@ -174,9 +172,7 @@ const selectAllChange = (value: any[]) => {
|
|
|
}
|
|
}
|
|
|
const selectChange = (value: any[]) => {
|
|
const selectChange = (value: any[]) => {
|
|
|
if (value.length>0) {
|
|
if (value.length>0) {
|
|
|
- value.map(val => {
|
|
|
|
|
- newSelectionList.value.push(val.id)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ newSelectionList.value=value.map(val => val.id)
|
|
|
} else {
|
|
} else {
|
|
|
newSelectionList.value = [];
|
|
newSelectionList.value = [];
|
|
|
}
|
|
}
|