diff --git a/src/components/SearchForm/index.vue b/src/components/SearchForm/index.vue index 9663648..4eae91a 100644 --- a/src/components/SearchForm/index.vue +++ b/src/components/SearchForm/index.vue @@ -26,20 +26,12 @@ - -
- + +
+
- -
-
-
- -
- -
-
-
+
+
@@ -218,7 +210,6 @@ defineExpose({ :deep(.el-form-item__content) { margin-left: 0 !important; } - margin-right: 16px; margin-bottom: 18px; } @@ -280,40 +271,21 @@ defineExpose({ } :deep(.el-form-item:not(:has(.el-button))) { - margin-right: 16px; + margin-right: 15px; } - /* grid 0fr→1fr 高度过渡,ease-out 收尾不弹跳 */ - .collapse-grid { - display: grid; - grid-template-rows: 0fr; - transition: grid-template-rows 0.26s cubic-bezier(0.33, 1, 0.68, 1); - contain: layout; - &.is-expanded { - grid-template-rows: 1fr; - } - } - .collapse-grid-inner { - overflow: hidden; - min-height: 0; - backface-visibility: hidden; - } - .collapse-grid-cell { - overflow: hidden; - min-height: 0; - opacity: 0; - /* 收起时立即隐藏,不出现输入框慢慢消失 */ - transition: opacity 0s; - } - .collapse-grid.is-expanded .collapse-grid-cell { - opacity: 1; - /* 仅展开时淡入 */ - transition: opacity 0.12s ease-out; - } - .actions-outside, - .actions-inside { + /* 折叠区收起时隐藏,展开时 display:contents 不破坏表单行内流 */ + .collapse-visibility { display: contents; } + + /* 查询/重置按钮区:表单项 margin-right 为 0 */ + .search-form__actions { + display: contents; + :deep(.el-form-item) { + margin-right: 0 !important; + } + } } diff --git a/src/components/SearchForm/index2.vue b/src/components/SearchForm/index2.vue new file mode 100644 index 0000000..fb2f580 --- /dev/null +++ b/src/components/SearchForm/index2.vue @@ -0,0 +1,321 @@ + + + + + + diff --git a/src/views/professional/teacherbase/export-teacher-info.vue b/src/views/professional/teacherbase/export-teacher-info.vue index 43ba104..2a7d2c9 100644 --- a/src/views/professional/teacherbase/export-teacher-info.vue +++ b/src/views/professional/teacherbase/export-teacher-info.vue @@ -154,7 +154,7 @@ {label:'高校教师资格证',value:'highCer_高校教师资格证'}, {label:'中等教师资格证',value:'midCer_中等教师资格证'}, {label:'教师上岗证',value:'priCer_教师上岗证'}, - {label:'共同居住人',value:'livewith_共同居住人'}, + // {label:'共同居住人',value:'livewith_共同居住人'}, ] // 导出文件函数 @@ -169,7 +169,7 @@ 'Content-Type': 'application/json' } }) - const blob = new Blob([res.data]) + const blob = new Blob([res]) const fileName = fileNameStr const elink = document.createElement('a') elink.download = fileName @@ -239,7 +239,7 @@ "teacherBaseDTO": searchData } - await exportForModel(params, "教职工信息.xls", "/professional/teacherbase/exportTeacherInfoBySelf") + await exportForModel(params, "教职工信息.xls", "/professional/file/exportTeacherInfoBySelf") setTimeout(() => { exportLoading.value = false