| | |
| | | limitCountImg:1,//上传图片的最大数量 |
| | | //个人信息数据 |
| | | marryList:{ |
| | | id:undefined, |
| | | name:undefined, |
| | | sex:undefined, |
| | | birthday:undefined, |
| | |
| | | activeNames:['1'], |
| | | // 弹出层标题 |
| | | title: "", |
| | | iddd:undefined, |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // open:true, |
| | |
| | | }, |
| | | // 表单校验 |
| | | rules: { |
| | | id: [{ |
| | | required: true, |
| | | idNo: [{ |
| | | // required: true, |
| | | message: '请输入身份证号码', |
| | | trigger: 'blur' |
| | | }], |
| | | name: [{ |
| | | required: true, |
| | | // required: true, |
| | | message: '请输入姓名', |
| | | trigger: 'blur' |
| | | }], |
| | |
| | | trigger: 'change' |
| | | }], |
| | | marryStatus: [{ |
| | | required: true, |
| | | // required: true, |
| | | message: '请选择婚姻状况', |
| | | trigger: 'change' |
| | | }], |
| | |
| | | cancelData() { |
| | | this.open = false; |
| | | this.reset(); |
| | | |
| | | }, |
| | | //下拉 |
| | | handleChange(val) { |
| | |
| | | this.oldSpouseList = this.marryList.oldSpouseList; |
| | | console.log(111) |
| | | console.log("信息") |
| | | console.log(this.marryList); |
| | | 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; |
| | |
| | | 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 => { |
| | |
| | | this.dsb = true |
| | | this.isShow_2=false |
| | | this.isShow = true |
| | | this.getList() |
| | | |
| | | }).catch(error => { |
| | | console.error(error); |
| | |
| | | } |
| | | } |
| | | }) |
| | | this.getList() |
| | | // 刷新页面 |
| | | // window.location.reload(); |
| | | }, |