From e61f032aeadea63ac39e8c46ff8fc339100d0bbc Mon Sep 17 00:00:00 2001 From: wangxuemei <283912718@qq.com> Date: Tue, 15 Oct 2024 13:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=88=E8=AF=BE=E8=AE=B0=E5=BD=95=E8=B0=83?= =?UTF-8?q?=E6=95=B41015?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lecturer/ExternalLecturer.vue | 18 +++-------- src/views/lecturer/ExternalTeaching.vue | 34 +++++++++++++-------- src/views/lecturer/InsideLecturer.vue | 29 +++++++++++++++--- src/views/lecturer/InsideTeaching.vue | 26 +++++++++++++--- src/views/lecturer/LookExternalLecturer.vue | 12 +++++--- src/views/lecturer/LookInsideLecturer.vue | 9 +++--- 6 files changed, 86 insertions(+), 42 deletions(-) diff --git a/src/views/lecturer/ExternalLecturer.vue b/src/views/lecturer/ExternalLecturer.vue index ddba1785..ae40b133 100644 --- a/src/views/lecturer/ExternalLecturer.vue +++ b/src/views/lecturer/ExternalLecturer.vue @@ -56,18 +56,10 @@
-
- +
+
@@ -535,7 +527,7 @@ export default { //调用接口 let ids = { id: state.editTeacherid, - newStatus: state.newStatus + status: state.newStatus } console.log(ids) updateTeacherState(ids).then((res) => { diff --git a/src/views/lecturer/ExternalTeaching.vue b/src/views/lecturer/ExternalTeaching.vue index cfe826b8..8525a81d 100644 --- a/src/views/lecturer/ExternalTeaching.vue +++ b/src/views/lecturer/ExternalTeaching.vue @@ -101,18 +101,10 @@
-
- +
+
@@ -1178,4 +1170,22 @@ const handleImport = () => { .ant-col-12{ height:80px; } +.tableBox { +padding-bottom: 20px; + margin: 20px 38px 30px; +::v-deep .ant-select-dropdown{ + display: inline-block; +} +::v-deep .ant-select-selection-item{ +margin-left: 3px; +} +::v-deep .ant-pagination-options-size-changer.ant-select{ +width: 84px; +} +.pa { +width: 100%; +display: flex; +justify-content: right; +} +} \ No newline at end of file diff --git a/src/views/lecturer/InsideLecturer.vue b/src/views/lecturer/InsideLecturer.vue index 5458e9cd..f589e6d0 100644 --- a/src/views/lecturer/InsideLecturer.vue +++ b/src/views/lecturer/InsideLecturer.vue @@ -105,8 +105,7 @@
-
- +
@@ -948,6 +947,8 @@ export default { state.deleteInTeacherdialog = false getTableDate(); } + }).catch((err)=>{ + state.deleteInTeacherdialog = false }) } //确认启用停用 @@ -955,13 +956,15 @@ export default { //调用接口 let ids = { id: state.editTeacherid, - newStatus: state.newStatus + status: state.newStatus } console.log(ids) updateTeacherState(ids).then((res) => { message.success("操作成功"); state.editTeacher = false getTableDate(); + }).catch((err)=>{ + state.editTeacher = false }) } //取消按钮 清空输入的数据 @@ -1491,4 +1494,22 @@ export default { ::v-deep .ant-modal-close { display: none; } - \ No newline at end of file +.tableBox { +padding-bottom: 20px; + margin: 20px 38px 30px; +::v-deep .ant-select-dropdown{ + display: inline-block; +} +::v-deep .ant-select-selection-item{ +margin-left: 3px; +} +::v-deep .ant-pagination-options-size-changer.ant-select{ +width: 84px; +} +.pa { +width: 100%; +display: flex; +justify-content: right; +} +} + \ No newline at end of file diff --git a/src/views/lecturer/InsideTeaching.vue b/src/views/lecturer/InsideTeaching.vue index 0f0f4b03..0971eb2f 100644 --- a/src/views/lecturer/InsideTeaching.vue +++ b/src/views/lecturer/InsideTeaching.vue @@ -124,10 +124,10 @@
-
- +
+
@@ -1593,4 +1593,22 @@ export default { ::v-deep .ant-select-multiple .ant-select-selection-item { height: 34px } +.tableBox { +padding-bottom: 20px; + margin: 20px 38px 30px; +::v-deep .ant-select-dropdown{ + display: inline-block; +} +::v-deep .ant-select-selection-item{ +margin-left: 3px; +} +::v-deep .ant-pagination-options-size-changer.ant-select{ +width: 84px; +} +.pa { +width: 100%; +display: flex; +justify-content: right; +} +} \ No newline at end of file diff --git a/src/views/lecturer/LookExternalLecturer.vue b/src/views/lecturer/LookExternalLecturer.vue index 59ec47f9..c874d173 100644 --- a/src/views/lecturer/LookExternalLecturer.vue +++ b/src/views/lecturer/LookExternalLecturer.vue @@ -84,7 +84,8 @@ ExternalLecturer