| | |
| | | <div class="spatialContent"> |
| | | <div> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="18"> |
| | | <el-col :span="16"> |
| | | <el-input |
| | | v-model="listData.filter" |
| | | type="text" |
| | |
| | | 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> |
| | |
| | | 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"; |
| | |
| | | } |
| | | 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; |
| | |
| | | } |
| | | }; |
| | | const conditionChange = (res) => { |
| | | formSql.value.value = ""; |
| | | formSql.value.field = res.field; |
| | | formSql.value.cut = res.type; |
| | | const type = res.type; |