ruoyi-ui/src/views/self/show.vue
@@ -351,6 +351,9 @@
          <el-table-column label="证件名称" prop="cerName" sortable width="280" align="center" >
            <template slot-scope="scope">{{scope.row.cerName? scope.row.cerName: '————'}}</template>
          </el-table-column>
          <el-table-column label="证件类型" prop="type" sortable width="280" align="center" >
            <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template>
          </el-table-column>
          <el-table-column label="持有情况" prop="ownStatus" sortable width="280" align="center" >
            <template slot-scope="scope">{{scope.row.ownStatus? scope.row.ownStatus: '————'}}</template>
          </el-table-column>
@@ -547,6 +550,12 @@
        <el-form-item label="证件名称" prop="cerName">
          <el-input v-model="formDat.cerName" placeholder="请输入证件名称" clearable :style="{width: '100%'}" >
          </el-input>
        </el-form-item>
        <el-form-item label="证件类型" prop="type">
          <el-select v-model="formDat.type" placeholder="请选择类型" clearable :style="{width: '100%'}"  >
            <el-option v-for="(item, index) in typeOption" :key="index" :label="item.label" :value="item.value"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="持有情况" prop="ownStatus">
          <el-input v-model="formDat.ownStatus" placeholder="请输入持有情况" clearable :style="{width: '100%'}" >
@@ -783,6 +792,7 @@
        otherPosition:undefined,
        otherPolitical:undefined,
        //持有出入境证件情况
        type:undefined,
        cerName:undefined,
        validityDate:undefined,
        ownStatus:undefined,
@@ -892,7 +902,16 @@
        }],
      },
      typeOptions: [],
      typeOption: [{
        value:'护照',
        label:'护照'
      },{
        value:'通行证',
        label:'通行证'
      },{
        value:'身份证',
        label:'身份证'
      }],
    };
  },
  created() {
@@ -931,6 +950,18 @@
        return "statistics-warning-row1";
      } else {
        return "statistics-warning-row";
      }
    },
    //证件类别
    getSrc(type) {
      if (type === '护照'){
        return '护照'
      }else if(type === '通行证'){
        return '通行证'
      }else if(type === '身份证'){
        return '身份证'
      }else {
        return '——————'
      }
    },
@@ -1180,6 +1211,10 @@
          });
        }
      });
      // 清空formDat对象的数据
      Object.keys(this.formDat).forEach(key => {
        this.formDat[key] = '';
      });
    },
    submitDataScope2: function() {
@@ -1199,6 +1234,10 @@
            this.getList();
          });
        }
      });
      // 清空formDat对象的数据
      Object.keys(this.formDat).forEach(key => {
        this.formDat[key] = '';
      });
    },
    submitDataScope4: function() {
@@ -1220,6 +1259,10 @@
          });
        }
      });
      // 清空formDat对象的数据
      Object.keys(this.formDat).forEach(key => {
        this.formDat[key] = '';
      });
    },
    submitDataScope5: function() {
@@ -1240,6 +1283,10 @@
          });
        }
      });
      // 清空formDat对象的数据
      Object.keys(this.formDat).forEach(key => {
        this.formDat[key] = '';
      });
    },
    submitDataScope6: function() {
@@ -1259,6 +1306,10 @@
            this.getList();
          });
        }
      });
      // 清空formDat对象的数据
      Object.keys(this.formDat).forEach(key => {
        this.formDat[key] = '';
      });
    },
@@ -1299,7 +1350,7 @@
    /** 删除成员关系按钮操作 */
    handleRelationDelete(row) {
      const Ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除数据项?'+Ids).then(function() {
      this.$modal.confirm('是否确认删除数据项?').then(function() {
        return delRelation(Ids);
      }).then(() => {
        this.getList();
@@ -1319,7 +1370,7 @@
    /** 删除出国(境)情况按钮操作 */
    handleAbroadDelete(row) {
      const Ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除数据项?'+Ids).then(function() {
      this.$modal.confirm('是否确认删除数据项?').then(function() {
        return delAbroad(Ids);
      }).then(() => {
        this.getList();