From 9aa9c765801fcaa7281df2788400cc61592c005e Mon Sep 17 00:00:00 2001
From: yz3456 <2753272399@qq.com>
Date: 星期四, 25 四月 2024 17:42:30 +0800
Subject: [PATCH] 修改了会议申请内容

---
 ruoyi-ui/src/views/marry/index.vue |   33 ++++++++++++++++++++++++---------
 1 files changed, 24 insertions(+), 9 deletions(-)

diff --git a/ruoyi-ui/src/views/marry/index.vue b/ruoyi-ui/src/views/marry/index.vue
index 727b98b..a37d005 100644
--- a/ruoyi-ui/src/views/marry/index.vue
+++ b/ruoyi-ui/src/views/marry/index.vue
@@ -26,7 +26,7 @@
               </el-row>
               <el-row :span="16">
                 <el-form-item label="鍑虹敓鏃ユ湡" prop="birthday" label-width="75px">
-                
+
                   <el-date-picker v-model="marryList.birthday"
                                   type="date"
                                   placeholder="璇烽�夋嫨鏃ユ湡"
@@ -570,6 +570,7 @@
       limitCountImg:1,//涓婁紶鍥剧墖鐨勬渶澶ф暟閲�
       //涓汉淇℃伅鏁版嵁
       marryList:{
+        id:undefined,
         name:undefined,
         sex:undefined,
         birthday:undefined,
@@ -602,11 +603,14 @@
       activeNames:['1'],
       // 寮瑰嚭灞傛爣棰�
       title: "",
+      iddd:undefined,
       // 鏄惁鏄剧ず寮瑰嚭灞�
       open: false,
       // open:true,
       // 鏄惁鏄剧ず寮瑰嚭灞傦紙鏁版嵁鏉冮檺锛�
       bear:undefined,
+      handsj:undefined,
+      onebear:undefined,
       mrs:undefined,
       smrs:undefined,
       openDataScope: false,
@@ -670,13 +674,13 @@
       },
       // 琛ㄥ崟鏍¢獙
       rules: {
-        id: [{
-          required: true,
+        idNo: [{
+          // required: true,
           message: '璇疯緭鍏ヨ韩浠借瘉鍙风爜',
           trigger: 'blur'
         }],
         name: [{
-          required: true,
+          // required: true,
           message: '璇疯緭鍏ュ鍚�',
           trigger: 'blur'
         }],
@@ -686,7 +690,7 @@
           trigger: 'change'
         }],
         marryStatus: [{
-          required: true,
+          // required: true,
           message: '璇烽�夋嫨濠氬Щ鐘跺喌',
           trigger: 'change'
         }],
@@ -751,6 +755,7 @@
     cancelData() {
       this.open = false;
       this.reset();
+
     },
     //涓嬫媺
     handleChange(val) {
@@ -780,7 +785,10 @@
             this.oldSpouseList = this.marryList.oldSpouseList;
             console.log(111)
             console.log("淇℃伅")
-            console.log(this.marryList.marryStatus);
+            console.log(this.marryList,'1111111111111111111');
+            this.iddd = this.marryList.id
+            console.log(this.iddd,'2222222222222')
+			//alert(this.marryList.bearStatus)
             if(this.marryList.marryStatus===3){
               this.showOldSpouse = true;
             } else{
@@ -954,17 +962,22 @@
     //淇敼鍚庣殑淇濆瓨
 
     submitForm() {
-      if(parseInt(this.mrs))
+      if(this.mrs!=undefined)
         this.marryList.marryStatus = parseInt(this.mrs)
-      if(parseInt(this.smrs))
+      if(this.smrs!=undefined)
         this.marryList.spouseMarryStatus = parseInt(this.smrs)
-      if(parseInt(this.bear))
+
+      if(this.bear!=undefined)
         this.marryList.bearStatus = parseInt(this.bear)
+
       this.marryList.oneBorn = parseInt(this.onebear)
       this.marryList.handbookStatus =parseInt(this.handsj)
       this.marryList.sex = this.sinds
       this.marryList.spouseSex = this.inds
+      console.log(this.marryList,'marryListmarryListmarryListmarryList')
+      // this.marryList.id = this.iddd
       this.$refs['elForm'].validate(valid => {
+        // alert(valid)
         if (valid) {
           if (this.marryList.id !== undefined) {
             updateMarry(this.marryList).then(response => {
@@ -975,6 +988,7 @@
               this.dsb = true
               this.isShow_2=false
               this.isShow = true
+              this.getList()
 
             }).catch(error => {
               console.error(error);
@@ -986,6 +1000,7 @@
           }
         }
       })
+      this.getList()
       // 鍒锋柊椤甸潰
       // window.location.reload();
     },

--
Gitblit v1.9.1