|
@@ -1,15 +1,9 @@
|
|
|
<template>
|
|
|
<hc-card class="hc-project-collect-gist-list">
|
|
|
<template #header>
|
|
|
+ <hc-date-year v-model="searchForm.startYear" v-model:end="searchForm.endYear" />
|
|
|
<div class="relative ml-3 w-[300px]">
|
|
|
- <hc-search-input v-model="searchForm.queryValue" text="搜索" color="#151921" @search="searchClick">
|
|
|
- <template #prepend>
|
|
|
- <el-select v-model="searchForm.year" placeholder="年份" clearable style="width: 80px">
|
|
|
- <el-option label="2023" value="2023" />
|
|
|
- <el-option label="2024" value="2024" />
|
|
|
- </el-select>
|
|
|
- </template>
|
|
|
- </hc-search-input>
|
|
|
+ <hc-search-input v-model="searchForm.queryValue" text="搜索" color="#151921" @search="searchClick" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #extra>
|
|
@@ -43,16 +37,27 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref } from 'vue'
|
|
|
+import { onMounted, ref } from 'vue'
|
|
|
import HcTableList from '../modules/gist-list.vue'
|
|
|
+import { getDictionaryData } from '~src/utils/tools'
|
|
|
+import mainApi from '~api/project/gist'
|
|
|
|
|
|
//事件
|
|
|
const emit = defineEmits(['edit'])
|
|
|
|
|
|
+onMounted(() => {
|
|
|
+ getDataApi()
|
|
|
+})
|
|
|
+
|
|
|
+//获取接口数据
|
|
|
+const getDataApi = async () => {
|
|
|
+ projectStage.value = await getDictionaryData('projectStage', true)
|
|
|
+}
|
|
|
+
|
|
|
const tableRef = ref(null)
|
|
|
|
|
|
//项目阶段
|
|
|
-const stateOptions = ref([{ value: '1', label: '新开工项目' }, { value: '2', label: '建成项目' }, { value: '3', label: '在建项目' }])
|
|
|
+const projectStage = ref([])
|
|
|
|
|
|
//搜索条件
|
|
|
const searchForm = ref({ queryValue: '', year: '', current: 1, size: 20, total: 0 })
|