From 95db84d44298bf695b843d7555d671a41595c814 Mon Sep 17 00:00:00 2001 From: WX <1377869194@qq.com> Date: 星期四, 13 七月 2023 10:21:54 +0800 Subject: [PATCH] 1 --- src/views/query/SpatialQuery.vue | 30 ++++++++++++++++++++++++------ 1 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/views/query/SpatialQuery.vue b/src/views/query/SpatialQuery.vue index 5b850cd..4a2e843 100644 --- a/src/views/query/SpatialQuery.vue +++ b/src/views/query/SpatialQuery.vue @@ -16,7 +16,7 @@ <div class="spatialContent"> <div> <el-row :gutter="20"> - <el-col :span="18"> + <el-col :span="16"> <el-input v-model="listData.filter" type="text" @@ -24,12 +24,17 @@ disabled /> </el-col> - <el-col :span="6"> + <el-col :span="8"> <el-button :icon="Plus" type="success" @click="dialogVisible = true" >楂樼骇鏌ヨ</el-button> + <el-button + :icon="Refresh" + type="info" + @click="setdialogRefresh" + >閲嶇疆</el-button> </el-col> </el-row> </div> @@ -140,7 +145,7 @@ nextTick, } from "vue"; import config from "@/assets/js/Map/config"; -import { User, Lock, Plus } from "@element-plus/icons-vue"; +import { User, Lock, Plus, Refresh } from "@element-plus/icons-vue"; import { dataQuery_selectByPage, dataQuery_selectFields } from "@/api/api"; import { ElMessage } from "element-plus"; import store from "@/store"; @@ -206,10 +211,22 @@ } listData.value.filter += formSql.value.field + " " + formSql.value.type + " " + val; - debugger; - // debugger; - // setFieldChange(attributeData.value[0]); + + var res = attributeData.value[0]; + conditionChange(res); + setQueySpatialData(); }; + +const setdialogRefresh = () => { + listData.value.filter = ""; + listData.value.pageIndex = 1; + listData.value.pageSize = 10; + + var res = attributeData.value[0]; + conditionChange(res); + setQueySpatialData(); +}; + //鏍煎紡鍖栨椂闂� const add0 = (m) => { return m < 10 ? "0" + m : m; @@ -247,6 +264,7 @@ } }; const conditionChange = (res) => { + formSql.value.value = ""; formSql.value.field = res.field; formSql.value.cut = res.type; const type = res.type; -- Gitblit v1.9.3