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