zhouwx
2024-06-20 bc35d48bada733a0a4677cce54f3aa5ce3080be6
src/views/onlineEducation/systemManage/user/index.vue
@@ -41,7 +41,9 @@
import {ElMessage, ElMessageBox} from "element-plus";
import {delCompany, getCompany} from "@/api/onlineEducation/company";
import userDialog from './components/userDialog.vue'
import {getUser} from "@/api/onlineEducation/user";
import {delUser, getUser} from "@/api/onlineEducation/user";
import Cookies from "js-cookie";
const { proxy } = getCurrentInstance();
const loading = ref(false);
@@ -52,7 +54,8 @@
    pageSize: 10,
  },
  total: 0,
  dataList: []
  dataList: [],
});
const { queryParams, total, dataList } = toRefs(data);
@@ -100,7 +103,7 @@
        type: 'warning',
      })
      .then( async() => {
        const res = await delCompany(val.id)
        const res = await delUser(val.id)
        if(res.code == 200){
          ElMessage.success('数据删除成功')
          await getList()