月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-07-12 e6a60101c210494ea716e32632c4ed52fd4f7174
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;