<template>
    <table class="detail-table" border="1" cellspacing="1">
        <colgroup>
          <col width="15%" />
          <col width="35%" />
          <col width="15%" />
          <col width="35%" />
        </colgroup>
        <tbody>
            <tr class="ant-table-cell ant-table-cell-ellipsis">
                <td class="ant-table-cell ant-table-cell-ellipsis bgColor">需要风险管控修复土壤污染面积(m²)</td>
                <td class="ant-table-cell ant-table-cell-ellipsis">{{ data?.wrmj }}</td>
                <td class="ant-table-cell ant-table-cell-ellipsis bgColor">主要风险</td>
                <td class="ant-table-cell ant-table-cell-ellipsis">
                    {{ data?.zyfx == 1 ? '公众健康风险' : `其他：${data?.zyfxQt || ''}` }}
                </td>
            </tr>
            <tr class="ant-table-cell ant-table-cell-ellipsis">
                <td class="ant-table-cell ant-table-cell-ellipsis bgColor">土壤风险不可接受的污染物</td>
                <td class="ant-table-cell ant-table-cell-ellipsis">
                    {{ data?.wjwWrwTr }}{{data?.wjwTrQt}}{{ data?.yjwWrwTr }}{{data?.yjwTrQt }}
                </td>
                <td class="ant-table-cell ant-table-cell-ellipsis bgColor">土壤风险否涉及易迁移污染物</td>
                <td class="ant-table-cell ant-table-cell-ellipsis">
                    {{ data?.trSfsjyqywrw === '1' ? '是' :data?.trSfsjyqywrw === '0' ? '否' : '' }}
                </td>
            </tr>
            <tr class="ant-table-cell ant-table-cell-ellipsis">
                <td class="ant-table-cell ant-table-cell-ellipsis bgColor">地下水是否作为饮用水源</td>
                <td class="ant-table-cell ant-table-cell-ellipsis">
                    {{ data?.dxssfzwyys === '1' ? '是' :data?.dxssfzwyys === '0' ? '否' : '' }}
                </td>
                <td class="ant-table-cell ant-table-cell-ellipsis bgColor">地下水污染修复区域面积(m²)</td>
                <td class="ant-table-cell ant-table-cell-ellipsis">
                    {{ data?.dxswrxfqymj }}
                </td>
            </tr>
            <tr class="ant-table-cell ant-table-cell-ellipsis">
                <td class="ant-table-cell ant-table-cell-ellipsis bgColor">地下水超过标准限值的污染物</td>
                <td class="ant-table-cell ant-table-cell-ellipsis">
                    {{ data?.wjwWrwDxs }}{{data?.wjwDxsQt}}{{ data?.yjwWrwDxs }}{{data?.yjwDxsQt }}
                </td>
                <td class="ant-table-cell ant-table-cell-ellipsis bgColor">地下水否涉及易迁移污染物</td>
                <td class="ant-table-cell ant-table-cell-ellipsis">
                   {{ data?.dxsSfsjyqywrw === '1' ? '是' :data?.dxsSfsjyqywrw === '0' ? '否' : '' }}
                </td>
            </tr>
            <tr class="ant-table-cell ant-table-cell-ellipsis">
                <td class="ant-table-cell ant-table-cell-ellipsis bgColor">风险管控、修复要求</td>
                <td class="ant-table-cell ant-table-cell-ellipsis">
                    <span v-if="data?.gkxflx == 1000">风险管控</span>
                    <span v-if="data?.gkxflx == 2000">修复</span>
                    <span v-if="data?.gkxflx == 3000">管控及修复</span>
                    <span v-if="data?.gkxflx == 4000">风险可接受</span>
                </td>
            </tr>
        </tbody>
    </table>
</template>
      
<script lang="ts" setup>
import { defineProps } from 'vue';
const props = defineProps({
    data: {
        type: Object,
        default: () => ({}),
    },
})
</script>
