From ad208889ad6ca2283a06d7bc440ecd289c535d83 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 03 四月 2025 17:26:29 +0800 Subject: [PATCH] 1. 添加显示问题整改的时间; 2. 新增巡查场景数、巡查点次、复查点次的统计; 3. 添加扬尘监测数据统计结果管理(待完成) --- src/components/SearchBar.vue | 32 ++++++++++---------------------- 1 files changed, 10 insertions(+), 22 deletions(-) diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue index b137a36..49c3e62 100644 --- a/src/components/SearchBar.vue +++ b/src/components/SearchBar.vue @@ -1,6 +1,6 @@ <template> <el-row class="layout"> - <el-col :span="12"> + <el-col :span="10"> <el-form :inline="true" :model="formSearch"> <el-form-item label="鎬讳换鍔�"> <!-- <el-input v-model="formSearch.topTaskId" placeholder="鎬讳换鍔�" /> --> @@ -17,26 +17,17 @@ /> </el-select> </el-form-item> - <el-form-item label="鍦烘櫙绫诲瀷"> - <el-select - v-model="formSearch.sceneTypeId" - placeholder="鍦烘櫙绫诲瀷" - style="width: 150px" - > - <el-option - v-for="s in sceneTypes" - :key="s.value" - :label="s.label" - :value="s.value" - /> - </el-select> - </el-form-item> + <FYOptionScene + :allOption="true" + :type="2" + v-model:value="formSearch.scenetype" + ></FYOptionScene> <el-form-item> <el-button type="primary" @click="onSubmit">鏌ヨ</el-button> </el-form-item> </el-form> </el-col> - <el-col :span="12"> + <el-col :span="14"> <el-row justify="end"> <slot name="summary"></slot> </el-row> @@ -46,17 +37,15 @@ <script> import taskApi from '@/api/fysp/taskApi'; -import { enumScene } from '@/enum/scene'; export default { emits: ['onSubmit'], data() { return { topTasks: [], - sceneTypes: enumScene(2, false), formSearch: { topTaskId: '', - sceneTypeId: '' + scenetype: '' } }; }, @@ -83,15 +72,14 @@ ); const param = { topTask: task ? task.data : {}, - sceneTypeId: this.formSearch.sceneTypeId + sceneTypeId: this.formSearch.scenetype.value }; - console.log(param); + // console.log(param); this.$emit('onSubmit', param); } }, mounted() { - this.formSearch.sceneTypeId = this.sceneTypes[0].value; this.getOptions(); } }; -- Gitblit v1.9.3