From 6bee4e8e873cb81a1fc3b8712b96eae52aa7e17e Mon Sep 17 00:00:00 2001 From: huweihang <916879598@qq.com> Date: Wed, 17 Dec 2025 01:23:03 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E6=A1=86=E5=92=8C=E6=8C=89=E9=92=AE=E5=B0=BA=E5=AF=B8=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B7=A5=E5=85=B7=E6=8F=90=E7=A4=BA=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E4=BB=A5=E6=8F=90=E9=AB=98=E6=B8=85=E6=99=B0=E5=BA=A6?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E5=AF=B9=E6=95=99=E5=B8=88=E5=92=8C=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E8=80=85=E7=9A=84=E9=80=89=E6=8B=A9=E5=AE=9E=E6=96=BD?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=8F=AF=E8=A7=81=E6=80=A7=E5=A4=84=E7=90=86?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/index.scss | 8 ++-- src/views/course/ManageListRemote.vue | 67 +++++++++++++++++++++++++-- 2 files changed, 66 insertions(+), 9 deletions(-) diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index ecc17b2d..09ad72f9 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -394,7 +394,7 @@ li{ .custom-confirm-dialog { max-width: 692px; - min-width: 692px; + min-width: 600px; min-height: 222px !important; padding: 0px 0px 0px; border-radius: 10px; @@ -465,9 +465,9 @@ li{ padding-bottom: 20px; .el-button { - min-width: 120px; - height: 40px; - font-size: 16px; + width: 70px; + height: 32px; + font-size: 14px; border-radius: 6px; padding: 0 18px; } diff --git a/src/views/course/ManageListRemote.vue b/src/views/course/ManageListRemote.vue index fdc66fc1..e9a2cbcf 100644 --- a/src/views/course/ManageListRemote.vue +++ b/src/views/course/ManageListRemote.vue @@ -26,6 +26,7 @@ :remote-method="remoteSearchTeacher" :loading="teacherLoading" @input.native="limitTeacherInput" + @visible-change="handleTeacherVisibleChange" @change="handleTeacherChange" @clear="handleTeacherClear" > @@ -70,8 +71,8 @@ {{ showAdvancedFilter ? '收起' : '展开' }} - - + +
@@ -103,6 +104,7 @@ @change="handleResOwnerChange" @input.native="limitResOwnerInput" filterable + :filter-method="resOwnerFilterMethod" >
@@ -121,6 +123,7 @@ :remote-method="remoteSearchCreator" :loading="creatorLoading" @input.native="limitCreatorInput" + @visible-change="handleCreatorVisibleChange" @change="handleCreatorChange" @clear="handleCreatorClear" > @@ -143,8 +146,8 @@ {{ showAdvancedFilter ? '收起' : '展开' }} - - + +
@@ -741,6 +744,16 @@ export default { this.teacherOptions = []; this.params.teacherId = ''; }, + // 授课教师下拉展开时,如果当前没有关键字,则清空上一次的查询结果 + handleTeacherVisibleChange(visible) { + if (!visible) return; + // 打开时才处理 + const select = this.$refs.teacherSelect; + const query = (select && select.query) || ''; + if (!query) { + this.teacherOptions = []; + } + }, async remoteSearchCreator(keyword) { const limited = (keyword || '').slice(0, 50); if (this.$refs.creatorSelect && this.$refs.creatorSelect.query !== limited) { @@ -793,6 +806,15 @@ export default { this.creatorSelected = []; this.params.createUserId = ''; }, + // 创建人下拉展开时,如果当前没有关键字,则清空上一次的查询结果 + handleCreatorVisibleChange(visible) { + if (!visible) return; + const select = this.$refs.creatorSelect; + const query = (select && select.query) || ''; + if (!query) { + this.creatorOptions = []; + } + }, limitTeacherInput(event) { const limited = (event && event.target && event.target.value ? event.target.value : '').slice(0, 50); if (event && event.target && event.target.value !== limited) { @@ -820,6 +842,12 @@ export default { this.$refs.resOwnerCascader.inputValue = limited; } }, + resOwnerFilterMethod(node, keyword) { + if (!keyword) return true; + const text = (node.label || (node.data && node.data.name) || '').toString().toLowerCase(); + const kw = keyword.toString().toLowerCase(); + return text.includes(kw); + }, handleTopSort() { if (this.$refs.topSorter) { this.$refs.topSorter.open(); @@ -1078,7 +1106,7 @@ export default { const url = window.URL.createObjectURL(blob); const timestamp = new Date().toISOString().replace(/[-:T]/g, '').split('.')[0]; link.href = url; - link.download = `课程管理_${timestamp}.xlsx`; + link.download = `在线课列表.xlsx`; document.body.appendChild(link); link.click(); document.body.removeChild(link); @@ -2150,6 +2178,35 @@ export default { padding: 5px 0; } } +.qrcode-img { + width: 150px; + height: 150px; + display: block; + position: relative; + .downloadn-container { + position: absolute; + width: 40px; + height: 45px; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 99; + background: white; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + transition: all 0.3s ease; + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); + cursor: pointer; + span { + color: #409eff; + display: block; + font-size: 12px; + line-height: 12px; + } + } +}