Newer
Older
Nanping_sponge_GCYPG / src / views / home / rationality / components / underlySurfaceTable.vue
@liyingjing liyingjing on 25 Oct 2023 1 KB 工程预评估
<template>
  <el-form
    class="tableForm"
    ref="tableForm"
    :model="formModel"
  >
    <el-table
      :data="formModel.list"
      v-loading="loading"
      stripe
      :max-height="200"
      element-loading-text="数据加载中..."
    >
      <el-table-column label="下垫面类型" align="center" prop="itemName" />
      <el-table-column label="面积㎡" align="center" prop="area" />
      <el-table-column label="径流系数" align="center" prop="runoffCoefficient">
        <template #header>
          <span>径流系数</span>
          <popover>
            <span style="font-weight: 700">说明</span>
            <br />
            <span>可输入参考值范围内的值,默认取径流系数参考值下限</span>
          </popover>
        </template>
      </el-table-column>
      <el-table-column label="径流系数参考值" align="center">
        <template #header>
          <span>径流系数参考值</span>
          <popover>
            <span style="font-weight: 700">说明</span>
            <br />
            <span>由下垫面建议径流系数配置获取</span>
          </popover>
        </template>
        <template #default="{ row }">
          <span>{{ `${row.downValue}-${row.upValue}` }}</span>
        </template>
      </el-table-column>
    </el-table>
  </el-form>
</template>

<script setup>
import { } from 'vue'
const { proxy } = getCurrentInstance()
import useTable from './mixins'
import popover from '@/components/popover'
const { loading, formModel } = useTable(proxy)
const props = defineProps({
  list: {
    type: Array,
    default: () => {}
  }
})
</script>

<style lang="scss" scoped></style>