<template>
  <div>
    <Modal v-model="showModal" title="计划详情" class="zIndex-1100">
      <div class="maxHeight">
        <table class="tableClass">
          <tbody>
            <tr>
              <th>监控方法</th>
              <td>{{ obj.method }}</td>
            </tr>
            <tr>
              <th>项目名称</th>
              <td>{{ obj.name }}</td>
            </tr>
            <tr>
              <th>频次</th>
              <td>{{ obj.frequency }}</td>
            </tr>
            <tr>
              <th>计划开始日期</th>
              <td>{{ this.$dateformat(obj.beginDate, "yyyy-mm-dd") }}</td>
            </tr>
            <tr>
              <th>责任单位</th>
              <td>{{ obj.monitorUnit }}</td>
            </tr>
            <tr>
              <th>责任人</th>
              <td>{{ obj.monitorMan }}</td>
            </tr>
            <tr>
              <th>备注</th>
              <td>{{ obj.remark }}</td>
            </tr>
          </tbody>
        </table>
      </div>
    </Modal>
  </div>
</template>
<script>
/**
 * 样品详情
 */
import { abilitySubPlan } from '../../../api'
export default {
  data() {
    return {
      obj: {},
      showModal: false
    }
  },
  methods: {
    _open: async function(id) {
      this.showModal = true
      this.obj = await abilitySubPlan.getById(id)
    }
  }
}
</script>
