<template>
  <el-form>
    <el-row :gutter="5">
      <el-col :span="5">
        <el-card>
          <el-form-item required prop="c" style="display: flex;flex-direction: column">
            <div>工业增加值（万元）<span style="color: red">*</span></div>
            <el-input v-model="form.a"></el-input>
          </el-form-item>
        </el-card>
      </el-col>
      <el-col :span="5">
        <el-card>
          <el-form-item required prop="c" style="display: flex;flex-direction: column">
            <div>产值（万元）<span style="color: red">*</span></div>
            <el-input v-model="form.b"></el-input>
          </el-form-item>
        </el-card>
      </el-col>
      <el-col :span="5">
        <el-card>
          <el-form-item required prop="c" style="display: flex;flex-direction: column">
            <div>能源总费用（吨标煤）</div>
            <el-input v-model="form.c"></el-input>
          </el-form-item>
        </el-card>
      </el-col>
      <el-col :span="5">
        <el-card>
          <el-form-item required prop="c" style="display: flex;flex-direction: column">
            <div>生产总成本（万元）<span style="color: red">*</span></div>
            <el-input v-model="form.d"></el-input>
          </el-form-item>
        </el-card>
      </el-col>
      <el-col :span="4" offset="1">
        <!--        <el-card>-->
        <div style="display: flex;align-items: center;height: 100%;">
          <el-button type="primary" @click="calc">计算</el-button>
          <el-button @click="report">生成报告</el-button>
        </div>
        <!--        </el-card>-->
      </el-col>

    </el-row>
  </el-form>
  <el-row :gutter="5" style="margin-top: 20px;">
    <el-col :span="24" style="display: flex;gap: 10px;height: 60vh;">
      <el-card style="flex: 1;">
        <template #header>
          <div>
            <span>政策驱动参数</span>
            <img src="/src/assets/svg/u540.svg"/>
          </div>
        </template>
        <template #default>
          <el-form>
            <el-form-item label="2030年非化石能源占比目标">
              <el-input v-model="form2.a" placeholder="例如:30%"/>
            </el-form-item>
            <el-form-item label="2060年非化石能源占比目标">
              <el-input v-model="form2.b" placeholder="例如:80%"/>
            </el-form-item>
            <el-form-item label="2030年煤炭消费占比目标">
              <el-input v-model="form2.c" placeholder="例如:40%"/>
            </el-form-item>
          </el-form>
        </template>
      </el-card>
      <el-card style="flex: 1;">
        <template #header>
          <div>
            <span>技术发展参数</span>
            <img src="/src/assets/svg/u561.svg"/>
          </div>
        </template>
        <template #default>
          <el-form>
            <el-form-item label="光伏发电能源转化效率提升率">
              <el-input v-model="form2.sda" placeholder="例如:2%/年" />
            </el-form-item>
            <el-form-item label="风力发电能源转化效率提升率">
              <el-input v-model="form2.zxc" placeholder="例如:2%/年"/>
            </el-form-item>
            <el-form-item label="太阳能发电能源转化效率提升率">
              <el-input v-model="form2.asdf" placeholder="例如:2%/年"/>
            </el-form-item>
            <el-form-item label="储能效率提升率">
              <el-input v-model="form2.fg" placeholder="例如:2%/年"/>
            </el-form-item>

          </el-form>
        </template>
      </el-card>
      <el-card style="flex: 1;">
        <template #header>
          <div>
            <span>政策驱动参数</span>
            <img src="/src/assets/svg/u598.svg"/>
          </div>
        </template>
        <template #default>
          <el-form>
            <el-form-item label="2060年煤炭消费占比目标">
              <el-input v-model="form2.dd" placeholder="例如:10%"/>
            </el-form-item>
            <el-form-item label="2030年天然气替代煤炭比例">
              <el-input v-model="form2.dasa" placeholder="例如:20%"/>
            </el-form-item>
            <el-form-item label="2060年天然气替代煤炭比例">
              <el-input v-model="form2.zxczxcxz" placeholder="例如:50%"/>
            </el-form-item>
            <el-form-item label="碳中和目标达成年份">
              <el-input v-model="form2.ddsdasda" placeholder="例如:2026年"/>
            </el-form-item>
            <el-form-item label="碳排放强度10年累计下降目标">
              <el-input v-model="form2.ddzcxzc" placeholder="例如:50%"/>
            </el-form-item>
            <el-form-item label="平均碳交易价格">
              <el-input v-model="form2.ddqweqwewq" placeholder="例如:50元/吨"/>
            </el-form-item>
            <el-form-item label="风光消纳比例">
              <el-input v-model="form2.ddghfhfg" placeholder="例如:95%"/>
            </el-form-item>
          </el-form>
        </template>
      </el-card>
      <el-card style="flex: 1;">
        <template #header>
          <div>
            <span>技术发展参数</span>
            <img src="/src/assets/svg/u540.svg"/>
          </div>
        </template>
        <template #default>
          <el-form>
            <el-form-item label="光伏发电成本降低率">
              <el-input v-model="form2.fg1232" placeholder="例如:2%/年"/>
            </el-form-item>
            <el-form-item label="风力发电成本降低率">
              <el-input v-model="form2.fgqwe" placeholder="例如:2%/年"/>
            </el-form-item>
            <el-form-item label="太阳能发电成本降低率">
              <el-input v-model="form2.fg1321" placeholder="例如:2%/年"/>
            </el-form-item>
            <el-form-item label="储能成本降低率">
              <el-input v-model="form2.fgwqeqw" placeholder="例如:2%/年"/>
            </el-form-item>
          </el-form>
        </template>
      </el-card>
      <el-card style="flex: 1;">
        <template #header>
          <div>
            <span>政策驱动参数</span>
            <img src="/src/assets/svg/u540.svg"/>
          </div>
        </template>
        <template #default>
          <el-empty></el-empty>
        </template>
      </el-card>
    </el-col>
  </el-row>
</template>

<script setup>
import {ElMessage} from "element-plus";

const form = reactive({
  a: ''
})
const form2 = reactive({
  a: ''
})
const form3 = reactive({
  a: ''
})
const calc = () => {
  ElMessage.success("已提交计算")
}
const report = () => {
  ElMessage.info("正在提交生成报告")
}
</script>

<style scoped>
.custom-hr {
  display: flex;
  align-items: center;
  position: relative;
  margin: 20px 0;
}

.custom-hr::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ccc;
  z-index: 1;
}

.custom-hr span {
  position: relative;
  background-color: white;
  padding: 0 10px;
  z-index: 2;
  font-size: 14px;
}
</style>