<!-- 下拉框 -->
  <el-select
      v-model="formItem.data"
      :placeholder="$t(formItem.placeholder || '请选择')"
      size="small"
      :disabled="disabled"
      clearable
    >
    <el-option
      v-for="(itemm) in formItem.options"
      :key="itemm.value"
      :label="$t(itemm.label)"
      :value="getValue(itemm.value)"
      ></el-option>
  </el-select>
getValue(value) {
  const data = this.formItem.data;
  const isNumber = typeof data === 'number' && !isNaN(parseInt(value));
  return isNumber? parseInt(value) : value;
}

扩展阅读