From c1823a7f91775fd157d4e4683b597d7e426cd2ed Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期三, 17 七月 2024 17:23:37 +0800 Subject: [PATCH] bug修改 --- src/views/onlineEducation/classHourBatch/components/handleStudent.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/views/onlineEducation/classHourBatch/components/handleStudent.vue b/src/views/onlineEducation/classHourBatch/components/handleStudent.vue index a937f6b..c9cd42e 100644 --- a/src/views/onlineEducation/classHourBatch/components/handleStudent.vue +++ b/src/views/onlineEducation/classHourBatch/components/handleStudent.vue @@ -1,12 +1,19 @@ <template> <div class="app-container"> <div style="margin-bottom: 10px;display: flex;align-items: center;justify-content: space-between"> - <el-button - type="primary" - plain - icon="Plus" - @click="openDialog()" - >选择学员</el-button> + <div> + <el-button + type="primary" + plain + icon="Plus" + @click="openDialog()" + >选择学员</el-button> + <el-button + type="primary" + plain + @click="back" + >返回</el-button> + </div> <el-button type="danger" plain @@ -49,7 +56,7 @@ import Cookies from "js-cookie"; import {delQuestionBank, getQuestionBank} from "@/api/onlineEducation/questionBank"; import {batchDelStudent, delBatchStu, getBatchStudent} from "@/api/onlineEducation/batch"; -import {useRoute} from 'vue-router' +import {useRoute, useRouter} from 'vue-router' const route = useRoute() @@ -57,6 +64,7 @@ const loading = ref(false); const dialogRef = ref(); const tableRef = ref(); +const router = useRouter(); const data = reactive({ queryParams: { pageId: null, @@ -164,5 +172,9 @@ } }) } +const back = () => { + router.push("/class"); +} + </script> -- Gitblit v1.9.2