From b07b32098d034e7e694fe4602b82ae5a7ea37f22 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Mon, 26 Dec 2022 14:58:45 +0800 Subject: [PATCH] =?UTF-8?q?--=20=E5=AD=A6=E5=91=98=E9=80=89=E6=8B=A9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request.js | 9 + src/components/student/CommonStudent.vue | 212 ++++++++++++++--------- 2 files changed, 136 insertions(+), 85 deletions(-) diff --git a/src/api/request.js b/src/api/request.js index 7743f04b..54b97d64 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -31,10 +31,19 @@ export function useBoeApiPage(_url, params = {}, config = { }) } + function reset(){ + state.data = [] + state.loading = false + state.page = 1 + state.totalPage = 0 + state.total = 0 + } + config.init && fetch() return { ...toRefs(state), fetch, + reset }; } diff --git a/src/components/student/CommonStudent.vue b/src/components/student/CommonStudent.vue index 4839bd3d..23373e14 100644 --- a/src/components/student/CommonStudent.vue +++ b/src/components/student/CommonStudent.vue @@ -3,20 +3,20 @@ @@ -712,10 +730,12 @@ watch(visiable, () => { .ant-btn-primary { background-color: #4ea6ff !important; } + .cus-select { height: 40px; border-radius: 8px; } + .tableBox .ant-table-row .ant-table-cell { height: 48px; font-size: 14px; @@ -724,18 +744,23 @@ watch(visiable, () => { line-height: 29px; padding: 0px; } + .tableBox .ant-table-thead tr th { font-size: 14px; } + .ant-tabs-tabpane { height: 100%; } + .ant-tabs { overflow: visible; } + .right1 { border-left: 1px solid #f2f6fe; margin-left: 20px; + .onerow { display: flex; justify-content: space-between; @@ -770,6 +795,7 @@ watch(visiable, () => { font-weight: 500; } } + .clbox { margin-right: 50px; display: flex; @@ -780,6 +806,7 @@ watch(visiable, () => { height: 32px; border-radius: 4px; background: #4ea6ff; + .colose { width: 16px; height: 16px; @@ -790,21 +817,25 @@ watch(visiable, () => { background-size: 100%; margin-right: 4px; } + .allclear { color: rgba(255, 255, 255, 1); font-size: 14px; } } } + .selecteds { display: flex; flex-wrap: wrap; margin-left: 32px; + .person { width: 100%; margin-top: 20px; border-top: 1px solid #f2f6fe; } + .chose { width: 64px; height: 24px; @@ -818,6 +849,7 @@ watch(visiable, () => { color: rgba(56, 139, 225, 1); font-size: 12px; position: relative; + .ch { position: absolute; width: 18px; @@ -827,12 +859,14 @@ watch(visiable, () => { top: -8px; } } + .ifsw { display: flex; align-items: end; justify-content: center; color: #4ea6ff; } + .sw { display: flex; align-items: center; @@ -842,11 +876,13 @@ watch(visiable, () => { margin-top: 23px; margin-left: 10px; } + .dept { width: 100%; margin-top: 30px; border-top: 1px solid #f2f6fe; } + .chose1 { //width: 90px; height: 24px; @@ -860,11 +896,13 @@ watch(visiable, () => { color: rgba(56, 139, 225, 1); font-size: 12px; position: relative; + .span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } + .ch1 { position: absolute; width: 18px; @@ -874,11 +912,13 @@ watch(visiable, () => { top: -8px; } } + .group { width: 100%; margin-top: 30px; border-top: 1px solid #f2f6fe; } + .chose2 { //width: 120px; height: 24px; @@ -892,11 +932,13 @@ watch(visiable, () => { color: rgba(56, 139, 225, 1); font-size: 12px; position: relative; + .span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } + .ch2 { position: absolute; width: 18px;