mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
--fix bug 添加学员异步加载刷新
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
@finash="submitCall"
|
||||
:stage="stage"
|
||||
>
|
||||
<a-button class="cus-btn" style="background: #4ea6ff; color: #fff">
|
||||
<a-button class="cus-btn" style="background: #4ea6ff; color: #fff" :loading="stuAsyncLoading">
|
||||
<template #icon><img style="margin-right: 10px" src="../../assets/images/courseManage/add0.png"/>
|
||||
</template>
|
||||
添加学员
|
||||
@@ -120,7 +120,7 @@ import {checkPer} from "@/utils/utils";
|
||||
import dialog from "@/utils/dialog";
|
||||
import {ONLINE_COURSE_DEL} from "@/api/ThirdApi";
|
||||
import {useStore} from "vuex";
|
||||
import {useResetRef} from "@/utils/useCommon";
|
||||
import {useAsyncStu, useResetRef} from "@/utils/useCommon";
|
||||
|
||||
const props = defineProps({
|
||||
permissions: {
|
||||
@@ -268,6 +268,7 @@ const sysTypeOption2 = computed(() => sysTypeOption1.value?.children.find(({ cod
|
||||
const sysTypeOption3 = computed(() => sysTypeOption2.value?.children.find(({ code }) => code == formData.value.sysType2));
|
||||
|
||||
const { data: studentList, fetch: searchStu, total, loading } = usePage(STUDENT_LIST, searchParams, false);
|
||||
const { loading: stuAsyncLoading, start } = useAsyncStu(formData.value.id, props.type, searchStu);
|
||||
|
||||
const stuPagination = computed(() => ({
|
||||
total: total.value,
|
||||
@@ -302,6 +303,7 @@ function del(id) {
|
||||
}
|
||||
|
||||
function submitCall(flag) {
|
||||
flag && start({ id: formData.value.id });
|
||||
flag && searchStu();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user