From 648f0d116f0896951ce267ace69e2e343ff1ad5f Mon Sep 17 00:00:00 2001
From: = <=>
Date: Sat, 8 Nov 2025 17:43:19 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E8=82=B2=E4=BC=91=E5=81=87=E6=89=8B?=
=?UTF-8?q?=E6=9C=BA=E7=AB=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../maternityLeave/apply/index.html | 22 +-
.../maternityLeave/apply/index.html | 264 +++++-------------
.../maternityLeave/common/info.js | 34 +--
.../familyPlanningOffice/index.html | 254 ++++++++++++++++-
.../maternityLeave/schoolAudit/index.html | 2 +-
.../maternityLeave/unionAudit/index.html | 2 +-
6 files changed, 362 insertions(+), 216 deletions(-)
diff --git a/src/main/resources/views/platform/zhgh/staffbenefit/maternityLeave/apply/index.html b/src/main/resources/views/platform/zhgh/staffbenefit/maternityLeave/apply/index.html
index 061c944..40e12ca 100644
--- a/src/main/resources/views/platform/zhgh/staffbenefit/maternityLeave/apply/index.html
+++ b/src/main/resources/views/platform/zhgh/staffbenefit/maternityLeave/apply/index.html
@@ -209,13 +209,33 @@ layout("/layouts/platform.html"){
}
},
computed: {
+ // 是否为男性
+ isMale() {
+ return this.formData.sex === '男性' || this.formData.sex === '男';
+ },
+ // 是否为女性
+ isFemale() {
+ return this.formData.sex === '女性' || this.formData.sex === '女';
+ },
},
watch: {
+ // 监听性别变化,设置默认值
+ isMale(newVal) {
+ if (newVal) {
+ // 男性默认设置
+ this.$set(this.formData, 'loverSex', '女');
+ }
+ },
+ isFemale(newVal) {
+ if (newVal) {
+ // 女性默认设置
+ this.$set(this.formData, 'loverSex', '男');
+ }
+ }
},
methods: {
-
// 保存
onSave() {
console.log(this.formData);
diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/maternityLeave/apply/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/maternityLeave/apply/index.html
index 0e65348..9d8fc06 100644
--- a/src/main/resources/views/platform/zhghh5/staffbenefit/maternityLeave/apply/index.html
+++ b/src/main/resources/views/platform/zhghh5/staffbenefit/maternityLeave/apply/index.html
@@ -17,7 +17,7 @@ layout("/layouts/platform_h5.html"){
readonly>
-
@@ -54,7 +54,7 @@ layout("/layouts/platform_h5.html"){
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+ 是
+ 否
+
+
+