|
|
@@ -51,23 +51,118 @@ $hr-list-pages: (
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
|
|
|
- /* 去掉 gutter 左侧额外缩进,让搜索区和表格左侧对齐 */
|
|
|
- #{$root} .ele-form-search > .el-row {
|
|
|
+ /* 搜索区:与岗位管理一致,字段靠左、间距 5px、查询跟在后面,左边与表格外框对齐 */
|
|
|
+ #{$root} .ele-form-search {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ align-items: center;
|
|
|
+ gap: 5px;
|
|
|
+ padding: 0;
|
|
|
+ margin: 0 0 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-search .el-row {
|
|
|
+ display: contents !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-search .el-col {
|
|
|
+ float: none !important;
|
|
|
+ flex: 0 0 auto !important;
|
|
|
+ flex-shrink: 0 !important;
|
|
|
+ width: auto !important;
|
|
|
+ max-width: none !important;
|
|
|
+ padding: 0 !important;
|
|
|
+ margin: 0 !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-search .el-form-item {
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ flex-shrink: 0;
|
|
|
+ height: 32px;
|
|
|
+ margin: 0 !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-search .el-form-item__label {
|
|
|
+ float: none;
|
|
|
+ width: auto !important;
|
|
|
+ flex: 0 0 auto;
|
|
|
+ height: 32px;
|
|
|
+ line-height: 32px;
|
|
|
+ padding: 0 8px 0 0;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-search .el-form-item__label:not(:empty)::after {
|
|
|
+ content: ':';
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-search .el-form-item__content {
|
|
|
+ flex: 0 0 auto;
|
|
|
+ width: auto;
|
|
|
margin-left: 0 !important;
|
|
|
- margin-right: 0 !important;
|
|
|
+ height: 32px;
|
|
|
+ line-height: 32px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-search .el-form-item:not(.status-item):not(.name-item) .el-select,
|
|
|
+ #{$root} .ele-form-search .el-form-item:not(.status-item):not(.name-item) .el-cascader,
|
|
|
+ #{$root} .ele-form-search .el-form-item:not(.status-item):not(.name-item) .el-input:not(.el-range-editor) {
|
|
|
+ width: 220px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-search .el-date-editor--daterange,
|
|
|
+ #{$root} .ele-form-search .el-date-editor--datetimerange,
|
|
|
+ #{$root} .ele-form-search .el-range-editor {
|
|
|
+ width: 360px !important;
|
|
|
+ min-width: 360px;
|
|
|
+ flex-shrink: 0;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
- #{$root} .ele-form-search > .el-row > .el-col {
|
|
|
- padding-left: 0;
|
|
|
- padding-right: 15px;
|
|
|
+ #{$root} .ele-form-search .el-input__inner {
|
|
|
+ height: 32px;
|
|
|
+ line-height: 32px;
|
|
|
}
|
|
|
|
|
|
- #{$root} .ele-form-search > .el-row > .el-col:last-child {
|
|
|
- padding-right: 0;
|
|
|
+ #{$root} .ele-form-search .el-range-editor.el-input__inner {
|
|
|
+ height: 32px;
|
|
|
+ line-height: 30px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-actions {
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-start;
|
|
|
+ gap: 5px;
|
|
|
+ height: 32px;
|
|
|
+ margin: 0 !important;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .ele-form-actions .el-button + .el-button {
|
|
|
+ margin-left: 0;
|
|
|
}
|
|
|
|
|
|
#{$root} .ele-form-actions .el-button,
|
|
|
- #{$root} .filter-actions .el-button,
|
|
|
+ #{$root} .filter-actions .el-button {
|
|
|
+ height: 32px;
|
|
|
+ padding: 0 12px;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 1;
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin: 0;
|
|
|
+
|
|
|
+ > span,
|
|
|
+ > i,
|
|
|
+ [class*="el-icon-"] {
|
|
|
+ line-height: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
#{$root} .ele-table-tool .el-button,
|
|
|
#{$root} .table-toolbar-actions .el-button,
|
|
|
#{$root} .table-actions .el-button,
|
|
|
@@ -110,7 +205,49 @@ $hr-list-pages: (
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
- #{$root} .el-table .el-link + .el-link {
|
|
|
- margin-left: 12px;
|
|
|
+ #{$root} .el-table .el-link + .el-link,
|
|
|
+ #{$root} .el-table .el-link + .el-dropdown,
|
|
|
+ #{$root} .el-table .el-link + .ele-action,
|
|
|
+ #{$root} .el-table .el-dropdown + .el-link,
|
|
|
+ #{$root} .el-table .ele-action + .el-link {
|
|
|
+ margin-left: 0;
|
|
|
}
|
|
|
+
|
|
|
+ #{$root} .el-table td .el-link {
|
|
|
+ margin-right: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .el-table td .el-link:last-child {
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 操作列换行后与首行左对齐,避免相邻 margin-left 把第二行顶进去 */
|
|
|
+ #{$root} .table-row-actions,
|
|
|
+ #{$root} .el-table td .action-cell,
|
|
|
+ #{$root} .el-table td .row-actions,
|
|
|
+ #{$root} .el-table td .table-actions {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ align-items: center;
|
|
|
+ column-gap: 12px;
|
|
|
+ row-gap: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #{$root} .table-row-actions .el-link,
|
|
|
+ #{$root} .table-row-actions .ele-action,
|
|
|
+ #{$root} .table-row-actions .el-dropdown,
|
|
|
+ #{$root} .el-table td .action-cell .el-link,
|
|
|
+ #{$root} .el-table td .row-actions .el-link,
|
|
|
+ #{$root} .el-table td .table-actions .el-link {
|
|
|
+ margin-left: 0;
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.ele-body.regularization-page .ele-form-search .name-item.el-form-item .el-input:not(.el-range-editor) {
|
|
|
+ width: 172px !important;
|
|
|
+}
|
|
|
+
|
|
|
+.ele-body.regularization-page .ele-form-search .status-item.el-form-item .el-select {
|
|
|
+ width: 160px !important;
|
|
|
}
|