Files
fe-manage/src/components/student/OwnerTableModelStudent.vue
2023-01-31 11:47:26 +08:00

33 lines
883 B
Vue

<template>
<TableModelStudent :types="types" :id="id" ref="tableModelRef">
<template #extension="{ data: { record } }">
<CommonStudent v-if="record.type===type" :type="type" :id="id" @finash="submitCall" :clear="true" :select-stu="true" :select-one="true">
<a-button type="link">转移归属权</a-button>
</CommonStudent>
</template>
<slot></slot>
</TableModelStudent>
</template>
<script setup>
import {defineProps, ref} from "vue";
import TableModelStudent from "@/components/student/TableModelStudent";
import CommonStudent from "@/components/student/CommonStudent";
const props = defineProps({
id: String,
type: Number,
types: {
type: Array,
default: () => [],
},
});
const tableModelRef = ref()
function submitCall(flag) {
tableModelRef.value.loading = true
flag && tableModelRef.value.searchStu();
}
</script>