From cf5d5ffc8350d86daaca952c24452b16e368c127 Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期五, 11 十月 2024 10:14:20 +0800 Subject: [PATCH] 问题审核 --- src/components/SearchBar.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue index d2533eb..539278a 100644 --- a/src/components/SearchBar.vue +++ b/src/components/SearchBar.vue @@ -1,6 +1,6 @@ <template> <el-row class="layout"> - <el-col :span="16"> + <el-col :span="12"> <el-form :inline="true" :model="formSearch"> <el-form-item label="鎬讳换鍔�"> <!-- <el-input v-model="formSearch.topTaskId" placeholder="鎬讳换鍔�" /> --> @@ -28,7 +28,7 @@ </el-form-item> </el-form> </el-col> - <el-col :span="8"> + <el-col :span="12"> <el-row justify="end"> <slot name="summary"></slot> </el-row> @@ -38,17 +38,18 @@ <script> import taskApi from '@/api/fysp/taskApi'; -import { enumScene_2NA } from "@/enum/scene"; +import { enumScene } from "@/enum/scene"; export default { emits: ['onSubmit'], data() { return { topTasks: [], - sceneTypes: enumScene_2NA(), + sceneTypes: enumScene(2, false), formSearch: { topTaskId: '', sceneTypeId: '', + obj: '', }, }; }, @@ -61,6 +62,7 @@ list.push({ value: r.tguid, label: r.name, + obj: r, towncode: r.towncode, districtCode: r.districtcode, month: r.starttime.slice(0, 7), @@ -68,6 +70,7 @@ }); this.topTasks = list; this.formSearch.topTaskId = list[0].value; + this.formSearch.obj = list[0].obj; this.$emit('onSubmit', this.formSearch); }); }, -- Gitblit v1.9.3