<template> <div class="evaluate"> <el-card class="box-card"> <template #header> <div class="card-header"> <span>项目目标</span> </div> </template> <el-form class="form" ref="targetForm" :model="form"> <el-row :gutter="20"> <el-col :span="8"> <el-form-item label="建设工程:" prop="projectNo"> <span>{{ form.projectName }}</span> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="工程类型:" prop="engineeringType"> <span>{{ findText('sponge_engineering_type', form.engineeringType) }}</span> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="建设分区:" prop="drainagePartition"> <span>{{ findText('drainage_partition', form.drainagePartition) }}</span> </el-form-item> </el-col> </el-row> <el-row :gutter="20"> <el-col :span="8"> <el-form-item label="建设类型:" prop="buildCategory"> <span>{{ findText('build_category', form.buildCategory) }}</span> </el-form-item></el-col> <el-col :span="8"> <el-form-item label="年径流总量控制率%,≥:" prop="targetAnnualRunoffTotalControlRate"> <span>{{ form.targetAnnualRunoffTotalControlRate }}</span> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="年径流污染控制率%,≥:" prop="targetAnnualRunoffPollutionControlRate"> <span>{{ form.targetAnnualRunoffPollutionControlRate }}</span> </el-form-item> </el-col> </el-row> <el-row :gutter="20"> <el-col :span="8"> <el-form-item label="调蓄量是否达标:" prop="storageCapacityStandards"> <el-tag v-if="standardMap.get(form.storageCapacityStandards)?.text" :type="standardMap.get(form.storageCapacityStandards)?.type" >{{ standardMap.get(form.storageCapacityStandards)?.text }}</el-tag> <span v-else></span> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="污染去除率是否达标:" prop="pollutionRemovalStandards"> <el-tag v-if="standardMap.get(form.pollutionRemovalStandards)?.text" :type="standardMap.get(form.pollutionRemovalStandards)?.type" >{{ standardMap.get(form.pollutionRemovalStandards)?.text }}</el-tag> <span v-else></span> </el-form-item> </el-col> </el-row> </el-form> </el-card> <div class="tabs"> <el-tabs v-model="active" type="border-card" > <el-tab-pane label="控制项" :name="0"> <Control ref="controlRef"/> </el-tab-pane> <el-tab-pane label="评分项" :name="1"> <Mark ref="markRef"/> </el-tab-pane> </el-tabs> </div> </div> </template> <script setup> import { reactive, onMounted } from 'vue' import Control from './control.vue' import Mark from './mark.vue' import { useDicts } from '@/hooks' const { proxy } = getCurrentInstance() const { findText } = useDicts(proxy) const form = reactive({ projectNo: '', projectName: '', buildCategory: '', engineeringType: '', drainagePartition: '', targetAnnualRunoffTotalControlRate: '', targetAnnualRunoffPollutionControlRate: '', storageCapacityStandards: '', pollutionRemovalStandards: '', }) const active = ref(0) const standardMap = new Map([ [0, { text: '否', type: 'danger' }], [1, { text: '是', type: 'success' }] ]) onMounted(() => { proxy.$refs.controlRef.getDetail() proxy.$refs.markRef.getDetail() }) </script> <style lang="scss" scoped></style>