From 808881d80b2c47fb92a8cc44b72742630c4deff9 Mon Sep 17 00:00:00 2001 From: weicw <594098497@qq.com> Date: Tue, 27 Oct 2026 22:31:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(gxmu):=20=E5=90=8D=E5=86=8C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=A7=BB=E9=99=A4=E6=89=8B=E5=8A=A8=E8=AE=A4=E9=A2=86?= =?UTF-8?q?=E4=B8=8E=E8=A7=A3=E9=99=A4=E8=AE=A4=E9=A2=86=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/gxmu/studentRoster/index.vue | 59 +------------------------- 1 file changed, 1 insertion(+), 58 deletions(-) diff --git a/src/views/gxmu/studentRoster/index.vue b/src/views/gxmu/studentRoster/index.vue index c950496..a1a0d22 100644 --- a/src/views/gxmu/studentRoster/index.vue +++ b/src/views/gxmu/studentRoster/index.vue @@ -80,23 +80,6 @@ {{ record.userId ? '已认领' : '未认领' }} - @@ -116,12 +99,7 @@ import { hasPermission } from '@/utils/permission'; import { listOrganizations } from '@/api/system/organization'; import { listClassInfo } from '@/api/gxmu/class'; - import { - bindStudent, - exportStudentRoster, - pageStudentRoster, - unbindStudent - } from '@/api/gxmu/student'; + import { exportStudentRoster, pageStudentRoster } from '@/api/gxmu/student'; import type { StudentRoster, StudentRosterParam @@ -191,13 +169,6 @@ key: 'syncTime', width: 170, customRender: ({ text }) => (text ? toDateString(text) : '-') - }, - { - title: '操作', - key: 'action', - fixed: 'right', - align: 'center', - width: 150 } ]); @@ -268,34 +239,6 @@ reload(); }; - const doBind = (record: StudentRoster) => { - const hide = message.loading('请求中..', 0); - bindStudent(record.id) - .then((msg) => { - hide(); - message.success(msg); - reload(); - }) - .catch((e) => { - hide(); - message.error(e.message); - }); - }; - - const doUnbind = (record: StudentRoster) => { - const hide = message.loading('请求中..', 0); - unbindStudent(record.id) - .then((msg) => { - hide(); - message.success(msg); - reload(); - }) - .catch((e) => { - hide(); - message.error(e.message); - }); - }; - const doExport = () => { exporting.value = true; exportStudentRoster(currentParam())