From 39bd144188542db1e77cb56d9baf83e4cded7aee Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 21 五月 2026 14:36:00 +0800
Subject: [PATCH] 转正申请说明
---
src/pages/oa/ApproveManage/approve-list/apply.vue | 58 +++++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 41 insertions(+), 17 deletions(-)
diff --git a/src/pages/oa/ApproveManage/approve-list/apply.vue b/src/pages/oa/ApproveManage/approve-list/apply.vue
index 7d6e107..b529db3 100644
--- a/src/pages/oa/ApproveManage/approve-list/apply.vue
+++ b/src/pages/oa/ApproveManage/approve-list/apply.vue
@@ -17,7 +17,7 @@
</view>
<template v-else-if="detail">
<up-form :model="form"
- label-width="88"
+ label-width="100"
input-align="right">
<u-cell-group title="鍩烘湰淇℃伅"
class="form-section">
@@ -53,13 +53,14 @@
</view>
<up-form v-if="formConfigData.fields.length"
:model="formValues"
- label-width="88"
+ label-width="100"
input-align="right"
class="dynamic-form">
<up-form-item v-for="field in displayTemplateFields"
:key="field.key"
:label="field.label"
:required="!!field.required"
+ :label-position="formItemLabelPosition(field)"
:class="formItemClass(field)">
<up-textarea v-if="isTextareaField(field)"
v-model="formValues[field.key]"
@@ -125,7 +126,7 @@
<view v-if="isLeaveModule"
class="module-extra-block">
<up-form :model="extraForm"
- label-width="88"
+ label-width="100"
input-align="right"
class="dynamic-form">
<up-form-item label="鍋囨湡浣欓"
@@ -151,7 +152,7 @@
<!-- 鍔犵彮锛氭椂闀胯嚜鍔ㄨ绠� -->
<view v-if="isOvertimeModule"
class="module-extra-block">
- <up-form label-width="88"
+ <up-form label-width="100"
input-align="right"
class="dynamic-form">
<up-form-item label="鍔犵彮鏃堕暱"
@@ -169,7 +170,7 @@
<!-- 璋冨矖锛氬師宀椾綅鑷姩甯﹀嚭 -->
<view v-if="isTransferModule"
class="module-extra-block">
- <up-form label-width="88"
+ <up-form label-width="100"
input-align="right"
class="dynamic-form">
<up-form-item label="鍘熷矖浣�"
@@ -434,6 +435,12 @@
if (isDatetimerangeField(field)) return "form-item-daterange";
if (isSelectField(field) || isDateLikeField(field)) return "form-item-select";
return "form-item-inline";
+ };
+
+ /** 澶氳鏂囨湰銆佹棩鏈熻寖鍥达細鏍囩缃《锛岄伩鍏嶉暱鏂囨鍦ㄧ獎鍒楀唴鏂 */
+ const formItemLabelPosition = field => {
+ if (isTextareaField(field) || isDatetimerangeField(field)) return "top";
+ return "left";
};
const getRangePartDisplay = (field, part) => {
@@ -978,15 +985,42 @@
justify-content: flex-end !important;
}
- :deep(.form-item-textarea .u-form-item__body) {
+ :deep(.form-item-textarea .u-form-item__body),
+ :deep(.form-item-daterange .u-form-item__body) {
flex-direction: column !important;
align-items: stretch !important;
padding: 10px 0 12px !important;
}
- :deep(.form-item-textarea .u-form-item__content) {
+ :deep(.form-item-textarea .u-form-item__body__left),
+ :deep(.form-item-daterange .u-form-item__body__left) {
+ width: 100% !important;
+ max-width: 100% !important;
+ margin-bottom: 8px !important;
+ padding-right: 0 !important;
+ }
+
+ :deep(.form-item-textarea .u-form-item__body__left__content__label),
+ :deep(.form-item-daterange .u-form-item__body__left__content__label) {
+ white-space: normal !important;
+ line-height: 1.45 !important;
+ font-size: 14px !important;
+ }
+
+ :deep(.form-item-textarea .u-form-item__body__right),
+ :deep(.form-item-daterange .u-form-item__body__right) {
+ width: 100% !important;
+ flex: none !important;
+ }
+
+ :deep(.form-item-textarea .u-form-item__content),
+ :deep(.form-item-daterange .u-form-item__content) {
width: 100% !important;
justify-content: stretch !important;
+ }
+
+ :deep(.dynamic-form .u-form-item__body__left__content__label) {
+ white-space: nowrap;
}
.field-trigger {
@@ -1006,16 +1040,6 @@
:deep(.field-trigger .u-input__content__field-wrapper__field) {
text-align: right !important;
font-size: 15px !important;
- }
-
- :deep(.form-item-daterange .u-form-item__body) {
- flex-direction: column !important;
- align-items: stretch !important;
- }
-
- :deep(.form-item-daterange .u-form-item__content) {
- width: 100% !important;
- justify-content: stretch !important;
}
.daterange-fill {
--
Gitblit v1.9.3