跨域搜索
This commit is contained in:
parent
75292d3f81
commit
4653eb2c02
45
src/views/search/List.vue
Normal file
45
src/views/search/List.vue
Normal file
@ -0,0 +1,45 @@
|
||||
<template>
|
||||
<div>
|
||||
<abstract-group
|
||||
:checkAll="kg.checkAll"
|
||||
:abstractList="kg.list"
|
||||
:indeterminate="kg.indeterminate"
|
||||
:searchCheckList="kg.checkKg"
|
||||
@changeCheckAll = "changeCheckAllTrue"
|
||||
class="abstract-group-list"
|
||||
v-loading="loading"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import AbstractGroup from "@/views/search/abstract-group.vue";
|
||||
import {SearchVO} from "@/api/search/search";
|
||||
defineOptions({name:'List'})
|
||||
const props = defineProps<{
|
||||
list:Array<SearchVO>
|
||||
}>()
|
||||
const loading = ref(false)
|
||||
const kg = reactive({
|
||||
list: [] as any[],
|
||||
mode: 'table',
|
||||
checkAll: false,
|
||||
indeterminate: false,
|
||||
checkKg: [] as any[]
|
||||
})
|
||||
watch(
|
||||
() => props.list,
|
||||
(newList) => {
|
||||
kg.list = [newList];
|
||||
console.log('kg.list', kg);
|
||||
}, { immediate: true });
|
||||
const changeCheckAllTrue = (val,data) => {
|
||||
kg.indeterminate = true
|
||||
kg.checkAll = val
|
||||
kg.checkKg = data
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
10535
src/views/search/Search.vue
Normal file
10535
src/views/search/Search.vue
Normal file
File diff suppressed because it is too large
Load Diff
10539
src/views/search/index.vue
Normal file
10539
src/views/search/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user