明树Git Lab

Commit c1648b3d authored by zhanghan's avatar zhanghan

年份处理

parent 70496eab
Pipeline #112170 passed with stage
in 19 seconds
<template> <template>
<div class="manage-container"> <div class="manage-container">
<div class="manage-wrap"> <div class="manage-wrap">
<search-form @search="handleSearch" :items="items" /> <search-form ref="searchRef" @search="handleSearch" :items="items" />
<div class="manage-header"> <div class="manage-header">
<div class="header-left"></div> <div class="header-left"></div>
<div class="header-right"> <div class="header-right">
...@@ -60,6 +60,7 @@ import { ElMessage, ElMessageBox } from "element-plus"; ...@@ -60,6 +60,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
import CommonTable from "@/components/common/commonTable.vue"; import CommonTable from "@/components/common/commonTable.vue";
import SearchForm from "@/components/common/SearchForm.vue"; import SearchForm from "@/components/common/SearchForm.vue";
const searchRef = ref();
const handleSearch = (formData) => { const handleSearch = (formData) => {
currentPage.value = 1; currentPage.value = 1;
...@@ -91,14 +92,20 @@ const items = ref([ ...@@ -91,14 +92,20 @@ const items = ref([
span: 6, span: 6,
clearable: true, clearable: true,
}, },
{ {
type: "input", type: "date",
label: "直属企业", label: "年度",
prop: "zsqy", prop: "jhnf",
placeholder: "请输入直属企业", dateType: "year",
span: 6, format: "YYYY",
valueFormat: "YYYY",
placeholder: "请选择年度",
clearable: true, clearable: true,
defaultValue: new Date().getFullYear().toString(),
span: 6,
}, },
{ {
type: "input", type: "input",
label: "管理主体", label: "管理主体",
...@@ -248,7 +255,7 @@ const deleteStatement = (item) => { ...@@ -248,7 +255,7 @@ const deleteStatement = (item) => {
.catch(() => {}); .catch(() => {});
}; };
onMounted(() => { onMounted(() => {
getProjectData(); searchRef.value.search();
}); });
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment