|
@@ -171,12 +171,21 @@ const rowSelection: any = ref({
|
|
|
|
|
|
|
|
hideSelectAll: true,
|
|
hideSelectAll: true,
|
|
|
onChange: (ids: string[]) => {
|
|
onChange: (ids: string[]) => {
|
|
|
- console.error(ids)
|
|
|
|
|
|
|
+ const key = typeFilterScenes.value[type.value].map((item: any) => item.num).join('')
|
|
|
ids = ids.filter(id => !selectIds.value.includes(id))
|
|
ids = ids.filter(id => !selectIds.value.includes(id))
|
|
|
- cache[type.value] = ids
|
|
|
|
|
|
|
+ if (!cache[type.value]) {
|
|
|
|
|
+ cache[type.value] = {}
|
|
|
|
|
+ }
|
|
|
|
|
+ cache[type.value][key] = ids
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
const curIds = [...selectIds.value]
|
|
const curIds = [...selectIds.value]
|
|
|
- for (const key in cache) {
|
|
|
|
|
- curIds.push(...cache[key])
|
|
|
|
|
|
|
+ for (const keyp in cache) {
|
|
|
|
|
+ for (const key in cache[keyp]) {
|
|
|
|
|
+ curIds.push(...cache[keyp][key])
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
selects.value = curIds
|
|
selects.value = curIds
|
|
|
},
|
|
},
|