linwenling
2023-08-13 2a42ed8d4536ea97c464a12ca55f6a37107c14aa
婚姻
1个文件已修改
23 ■■■■■ 已修改文件
ruoyi-ui/src/views/marry/index.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/marry/index.vue
@@ -322,12 +322,12 @@
            <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>
@@ -817,6 +817,7 @@
        this.mrs = '离婚'
      else
        this.mrs = '再婚'// this.isEdit=false
      if(this.marryList.spouseMarryStatus == 0)
        this.smrs = '未婚'
      else if(this.marryList.spouseMarryStatus == 1)
@@ -831,6 +832,16 @@
        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 = '是'
    },
@@ -876,6 +887,14 @@
    },
    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);
    },