Newer
Older
KaiFengPC / src / views / spongePerformance / OutputPerformance / SewageTreatment.vue
@zhangdeliang zhangdeliang on 26 Jul 2 KB update
<template>
  <!-- 污水处理厂进水BOD -->
  <div class="publicContainer">
    <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
      <el-form-item label="统计年份" prop="date">
        <el-date-picker
          type="year"
          v-model="queryParams.date"
          value-format="YYYY"
          placeholder="请选择统计年份"
          style="width: 100%"
        ></el-date-picker>
      </el-form-item>

      <el-form-item>
        <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
        <el-button icon="Refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <!-- 表格 -->
    <el-table :data="dataList" v-loading="loading" stripe :max-height="580">
      <el-table-column type="index" width="55" label="序号" />
      <el-table-column label="日期" prop="w" />
      <el-table-column label="进水BOD平均浓度(mg/L)">
        <el-table-column prop="monthPlan1" label="西区污水处理厂" />
        <el-table-column prop="monthPlan2" label="东区污水处理厂" />
        <el-table-column prop="monthPlan3" label="马家河污水处理厂" />
        <el-table-column prop="monthPlan4" label="包公湖污水处理厂" />
        <el-table-column prop="monthPlan5" label="祥符区污水处理厂" />
      </el-table-column>
      <el-table-column label="均值" prop="p" />
      <el-table-column label="年度绩效指标" prop="a" />
      <el-table-column label="年度达标情况" prop="b" />
    </el-table>
    <!-- 分页 -->
    <pagination
      v-show="total > 0"
      :total="total"
      v-model:page="queryParams.pageNum"
      v-model:limit="queryParams.pageSize"
      @pagination="getList"
    />
  </div>
</template>
<script setup name="WaterSupplyWaterPlants">
const { proxy } = getCurrentInstance();
const showSearch = ref(true);
const loading = ref(true);
const total = ref(0);
const dataList = ref([]);
const AllData = reactive({
  id: '',
  queryParams: {
    pageNum: 1,
    pageSize: 10,
    date: null,
  },
});
const { queryParams } = toRefs(AllData);
//搜索
function handleQuery() {
  getList();
}
//重置
function resetQuery() {
  proxy.resetForm('queryRef');
  handleQuery();
}

/** 查询列表 */
const getList = async () => {
  // loading.value = true;
  loading.value = false;
};

onMounted(() => {
  getList();
});
</script>
<style scoped lang="scss"></style>