mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
-- fix bug
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
class="cus-btn"
|
||||
style="background: #4ea6ff; color: #fff; width: 100px"
|
||||
@click="search"
|
||||
:loading="stuAsyncLoading"
|
||||
>
|
||||
<template #icon
|
||||
><img
|
||||
@@ -131,7 +132,6 @@
|
||||
<script setup>
|
||||
import {
|
||||
computed,
|
||||
// createVNode,
|
||||
defineProps,
|
||||
defineExpose,
|
||||
ref,
|
||||
@@ -140,8 +140,7 @@ import {
|
||||
import { usePage } from "@/api/request";
|
||||
import { STUDENT_LIST } from "@/api/apis";
|
||||
import { delStudentList } from "@/api/index1";
|
||||
// import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
||||
// import { Modal } from "ant-design-vue";
|
||||
import {useAsyncStu} from "@/utils/useCommon";
|
||||
|
||||
const props = defineProps({
|
||||
type: Number,
|
||||
@@ -231,6 +230,9 @@ const {
|
||||
loading,
|
||||
} = usePage(STUDENT_LIST, searchParams);
|
||||
|
||||
const { loading: stuAsyncLoading } = useAsyncStu(props.id, props.types.join(","), searchStu);
|
||||
|
||||
|
||||
const stuPagination = computed(() => ({
|
||||
total: total.value,
|
||||
showSizeChanger: false,
|
||||
@@ -250,6 +252,7 @@ const changePagination = (page) => {
|
||||
function search() {
|
||||
searchParams.value.studentName = searchName.value;
|
||||
searchParams.value.pageNo = 1;
|
||||
searchStu()
|
||||
}
|
||||
|
||||
const deleteModalVisible = ref(false);
|
||||
@@ -257,20 +260,6 @@ const deleteId = ref(null);
|
||||
function del(id) {
|
||||
deleteModalVisible.value = true;
|
||||
deleteId.value = id;
|
||||
// Modal.confirm({
|
||||
// title: () => "确定删除?",
|
||||
// icon: () => createVNode(ExclamationCircleOutlined),
|
||||
// content: () => "数据删除后不可恢复!",
|
||||
// okText: () => "确定",
|
||||
// okType: "danger",
|
||||
// cancelText: () => "取消",
|
||||
// onOk() {
|
||||
// if (id) {
|
||||
// loading.value = true;
|
||||
// delStudentList({ ids: [id] }).then(() => searchStu());
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
}
|
||||
|
||||
//确定删除
|
||||
@@ -294,6 +283,8 @@ const closeDrawer = () => {
|
||||
function reset() {
|
||||
searchParams.value = initParams;
|
||||
searchName.value = "";
|
||||
searchParams.value.pageNo = 1;
|
||||
searchStu()
|
||||
}
|
||||
|
||||
watch(visiable, () => {
|
||||
|
||||
Reference in New Issue
Block a user