<template>
  <div style="height:75vh;overflow:auto" class="app-content">
    <table class="tab-content" style="width: 100%">
      <tr>
        <th>序号</th>
        <th>内容</th>
        <th>指标</th>
        <th>评分内容</th>
        <th>指标值</th>
        <th>分值</th>
        <th>评估评审标准</th>
        <th>打分</th>
      </tr>
      <tr v-for="(item,index) in fromList" :key="'tr1'+index">
        <td :rowspan="item.row1" v-if="item.row1>0"></td>
        <td :rowspan="item.row1" v-if="item.row1>0">{{ item.title1 }}</td>
        <td :rowspan="item.row2" v-if="item.row2>0">{{ item.title2  }}</td>
        <td :rowspan="item.row3" v-if="item.row3>0">{{ item.title3  }}</td>
        <td style="text-align: center;">{{ item.title }}</td>
        <td style="text-align: center;">{{ item.score }}</td>
        <td>{{ item.meaning }}</td>
        <td style="text-align: center;" :rowspan="item.row3" v-if="item.row3>0">
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==1">
            <a-input-number v-model="formData.score1" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==2">
            <a-input-number v-model="formData.score2" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==3">
            <a-input-number v-model="formData.score3" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==4">
            <a-input-number v-model="formData.score4" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==5">
            <a-input-number v-model="formData.score5" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==6">
            <a-input-number v-model="formData.score6" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==7">
            <a-input-number v-model="formData.score7" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==8">
            <a-input-number v-model="formData.score8" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==9">
            <a-input-number v-model="formData.score9" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==10">
            <a-input-number v-model="formData.score10" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==11">
            <a-input-number v-model="formData.score11" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==12">
            <a-input-number v-model="formData.score12" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==13">
            <a-input-number v-model="formData.score13" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==14">
            <a-input-number v-model="formData.score14" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==15">
            <a-input-number v-model="formData.score15" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==16">
            <a-input-number v-model="formData.score16" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==17">
            <a-input-number v-model="formData.score17" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==18">
            <a-input-number v-model="formData.score18" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
          <a-form-model-item :prop="'score' + item.order" v-if="item.order==19">
            <a-input-number v-model="formData.score19" :min="0" :max="item.max" style="width: 60%" />
          </a-form-model-item>
        </td>
      </tr>
    </table>
  </div>
</template>

<script>
import { standardList } from '@/views/evaluation/components/config'
export default {
  name: "economy",
  components: {},
  props: {
    value: {
      type: Object,
      default () {
        return formData;
      },
    },
  },
  data () {
    return {
      fromList: standardList,
    };
  },
  created () {
  },
  methods: {
  },
};
</script>
<style scoped lang="less">
.app-content {
  table {
    table-layout: fixed;
    width: 100%;
    border: 1;
    border-collapse: collapse;
  }
  table tr td,
  th {
    border: 1px solid #e8e8e8;
    padding: 6px 6px;
    color: rgba(0, 0, 0, 0.65);
  }
  table tr th {
    text-align: center;
  }
  table tr {
    th:first-child {
      width: 4%;
    }
    th:nth-child(2) {
      width: 6%;
    }
    th:nth-child(3) {
      width: 8%;
    }
    th:nth-child(4) {
      width: 18%;
    }
    th:nth-child(5) {
      width: 6%;
    }
    th:nth-child(6) {
      width: 6%;
    }
    th:nth-child(7) {
      width: 40%;
    }
  }
  table {
    ::v-deep .ant-row {
      border: 0 !important;
    }
    ::v-deep .ant-row .ant-col {
      border: 0 !important;
      min-height: 30px !important;
    }
    ::v-deep .ant-form-item-control {
      line-height: 30px !important;
    }
    ::v-deep .ant-form-item {
      margin: 0 !important;
    }
    ::v-deep .ant-input-number {
      height: 30px !important;
    }
    ::v-deep .ant-input-number-input {
      height: 30px !important;
    }
  }
}
</style>
ant-tabs