<template>
<div>
    <table class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>检查项</th>
          <th>数据字段</th>
          <th>数据类型</th>
          <th>是否必检</th>
      </tr>
      </thead>
      <tbody v-for=" row in model">
      <tr>
        <td>{{row.f_item_name}}</td>
        <td>{{row.f_item_field}}</td>
        <td>{{row.f_item_type}}</td>
        <td>{{row.f_write_must}}</td>
      </tr>
        </tbody>
    </table>
</div>
</template>

<script>

  export default {
    title: '安检设备项列表',
    data () {
      return {
        model:this.$parent.device
      }
    },
  watch:{
    '$parent.device'(val){
      this.model = val
    },
  }
  }
</script>
