mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
--fix bug
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {computed, defineEmits, ref, watch} from "vue";
|
||||
import {computed, defineEmits, nextTick, ref, watch} from "vue";
|
||||
import * as api from "@/api/index1";
|
||||
import BaseTable from "@/components/common/BaseTable";
|
||||
import {message} from "ant-design-vue";
|
||||
@@ -287,7 +287,8 @@ const columns = ref([
|
||||
]);
|
||||
const { data = [], loading, fetchData } = useRequest(COURSE_PLAN_LIST, planParams, false);
|
||||
|
||||
watch(() => data.value.length, () => {
|
||||
watch(() => data.value, () => {
|
||||
coursePlanIndex.value = 0
|
||||
params.value.pid = data.value[coursePlanIndex.value]?.id || 0;
|
||||
tableRef.value.fetch();
|
||||
});
|
||||
@@ -359,7 +360,7 @@ function exportTaskStu() {
|
||||
}
|
||||
|
||||
function afterVisibleChange(bool) {
|
||||
bool && fetchData();
|
||||
bool && fetchData()
|
||||
}
|
||||
|
||||
function resetStudentPage() {
|
||||
|
||||
Reference in New Issue
Block a user