| | |
| | | |
| | | <el-table-column label="婚姻状态" prop="marryStatus" sortable width="100" align="center" > |
| | | <template slot-scope="scope"> |
| | | <template v-if="!scope.row.isEdit"> |
| | | <template v-if="!scope.row.isEdit" > |
| | | <span v-if="scope.row.marryStatus== 0">未婚</span> |
| | | <span v-if="scope.row.marryStatus== 1">初婚</span> |
| | | <span v-if="scope.row.marryStatus== 2">离婚</span> |
| | | <span v-if="scope.row.marryStatus== 3">再婚</span></template> |
| | | <template v-else> <el-select v-model="scope.row.marryStatus" placeholder="请选择"> |
| | | <template v-else> <el-select v-model="qianren" placeholder="请选择"> |
| | | <el-option label="未婚" value="0"></el-option> |
| | | <el-option label="初婚" value="1"></el-option> |
| | | <el-option label="离婚" value="2"></el-option> |
| | |
| | | this.mrs = '离婚' |
| | | else |
| | | this.mrs = '再婚'// this.isEdit=false |
| | | |
| | | if(this.marryList.spouseMarryStatus == 0) |
| | | this.smrs = '未婚' |
| | | else if(this.marryList.spouseMarryStatus == 1) |
| | |
| | | this.bear = '在孕' |
| | | else if(this.marryList.bearStatus == 2) |
| | | this.bear = '已生育' |
| | | |
| | | if(this.marryList.oneBorn == 0) |
| | | this.onebear = '否' |
| | | else if(this.marryList.oneBorn == 1) |
| | | this.onebear = '是' |
| | | |
| | | if(this.marryList.handbookStatus == 0) |
| | | this.handsj = '否' |
| | | else if (this.marryList.handbookStatus == 1) |
| | | this.handsj = '是' |
| | | |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | editRow(row) { |
| | | if(this.oldSpouseList.marryStatus == 0) |
| | | this.qianren = '未婚' |
| | | else if(this.oldSpouseList.marryStatus == 1) |
| | | this.qianren = '初婚' |
| | | else if(this.oldSpouseList.marryStatus == 2) |
| | | this.qianren = '离婚' |
| | | else |
| | | this.qianren = '再婚'// this.isEdit=false |
| | | this.$set(row, 'isEdit', true); |
| | | this.$set(this.editStatus, row.id, true); |
| | | }, |