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"){
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+ 是
+ 否
+
+
+