Newer
Older
KaiFengPC / src / views / spongePerformance / waterlogging / naturalWaterArea / index.vue
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
<template>
  <!-- 天然水域面积比 -->
  <div class="water-analysis-page">
    <div class="top">
      <el-form ref="ruleForm" inline :model="tableData" v-show="showSearch">
        <el-form-item label="考核年度:" prop="year">
          <el-date-picker v-model="tableData.year" type="year" value-format="YYYY" placeholder="请选择年份" style="width: 240px" />
        </el-form-item>
        <el-form-item>
          <el-button type="primary" icon="Search" @click="searchForm"> 搜索</el-button>
          <el-button icon="Refresh" @click="resectClcik"> 重置</el-button>
        </el-form-item>
      </el-form>
      <todoDon ref="todoDonRef" :params="tableData"></todoDon>
    </div>
  </div>
</template>
<script setup>
import todoDon from './todoDon.vue';
const { proxy } = getCurrentInstance();
const todoDonRef = ref(null);
const ruleForm = ref(null);
const showSearch = ref(true);

//动态组件
let dataForm = reactive({
  tableData: { itemDataType: 'TRSYMJBL' },
  tableDateTwo: '',
  tableLoading: true,
});
let { tableData } = toRefs(dataForm);
//获取列表数据
//搜索
const searchForm = () => {
  todoDonRef.value.search(tableData.value);
};
//重置
const resectClcik = () => {
  ruleForm.value.resetFields();
  todoDonRef.value.search(tableData.value);
};

onMounted(() => {});
</script>
<style lang="scss" scoped>
.water-analysis-page {
  padding: 20px;
  overflow-y: hidden;
}
</style>