|
@@ -14,7 +14,7 @@ import { useCatchStore } from '/src/store/modules/catchData';
|
|
|
export default defineComponent({
|
|
|
name: 'search-group',
|
|
|
emits: ['search', 'upload', 'edit', 'selectAll', 'delete', 'update'],
|
|
|
- setup(props, { emit }) {
|
|
|
+ setup(props, { emit, expose }) {
|
|
|
const resourceList = ref([] as any[]);
|
|
|
const catchStore = useCatchStore();
|
|
|
const forms = reactive({
|
|
@@ -48,6 +48,13 @@ export default defineComponent({
|
|
|
// 获取声部列表
|
|
|
await catchStore.getSubjects();
|
|
|
});
|
|
|
+
|
|
|
+ const resetStatus = () => {
|
|
|
+ state.isSelectAll = false;
|
|
|
+ };
|
|
|
+ expose({
|
|
|
+ resetStatus
|
|
|
+ });
|
|
|
return () => (
|
|
|
<div class={styles.searchGroup}>
|
|
|
<div class={styles.searchCatatory}>
|