zqq:路由配置
This commit is contained in:
parent
24db25b30a
commit
3f92797912
|
@ -46,7 +46,7 @@ export const dynamicRoutes = [
|
|||
{
|
||||
path: '/responseManagement',
|
||||
name: 'responseManagement',
|
||||
component: () => import('/@/views/responseManagement/responseManagement.vue'),
|
||||
component: () => import('/@/views/responseManagement/index.vue'),
|
||||
redirect: '/responseManagement/userResponse',
|
||||
meta: {
|
||||
title: 'Response management',
|
||||
|
|
|
@ -12,9 +12,9 @@ export const useThemeConfig = defineStore('themeConfig', {
|
|||
state: () => ({
|
||||
website: {
|
||||
// 开启验证码模式
|
||||
captchaMode: false,
|
||||
captchaMode: true,
|
||||
tokenTime: 3000,
|
||||
tenantId: '595035'
|
||||
tenantId: '595035',
|
||||
},
|
||||
themeConfig: {
|
||||
// 是否开启布局配置抽屉
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="container">
|
||||
<div class="rsSelect">
|
||||
<el-tabs v-model="activeName"
|
||||
<el-tabs v-model="state.activeName"
|
||||
@tab-click="handleClick">
|
||||
<el-tab-pane label="Search condition"
|
||||
name="first">
|
||||
|
@ -11,7 +11,7 @@
|
|||
<div class="block">
|
||||
<span class="demonstration">Start time</span>
|
||||
<el-date-picker style="width: 70%;"
|
||||
v-model="startTime"
|
||||
v-model="state.startTime"
|
||||
type="datetime"
|
||||
placeholder="Select start time"
|
||||
:shortcuts="shortcuts" />
|
||||
|
@ -20,7 +20,7 @@
|
|||
<div class="block">
|
||||
<span class="demonstration">End time</span>
|
||||
<el-date-picker style="width: 70%;"
|
||||
v-model="endTime"
|
||||
v-model="state.endTime"
|
||||
type="datetime"
|
||||
placeholder="Select end time"
|
||||
:shortcuts="shortcuts" />
|
||||
|
@ -34,7 +34,7 @@
|
|||
view-class="view-box"
|
||||
:native="false">
|
||||
<div class="coordinateContainer"
|
||||
v-for="(coordinate, i) in coordinateList">{{
|
||||
v-for="(coordinate, i) in state.coordinateList">{{
|
||||
// coordinate
|
||||
'Lat:' + coordinate.lat.toFixed("3") + ', Lng:' + coordinate.lng.toFixed("3")
|
||||
}}
|
||||
|
@ -56,7 +56,7 @@
|
|||
view-class="view-box"
|
||||
:native="false">
|
||||
<el-tree-select class="satelliteSelect"
|
||||
v-model="satelliteSelected"
|
||||
v-model="state.satelliteSelected"
|
||||
:data="sensor"
|
||||
multiple
|
||||
:render-after-expand="false"
|
||||
|
@ -79,14 +79,17 @@
|
|||
import { ref, reactive } from 'vue';
|
||||
import Map from "/@/components/Map.vue";
|
||||
|
||||
const activeName = ref('first')
|
||||
|
||||
const startTime = ref('')
|
||||
const endTime = ref('')
|
||||
const addCoord = ref(false)
|
||||
const satelliteSelected = ref([])
|
||||
const state = reactive({
|
||||
activeName: 'first',
|
||||
startTime: '',
|
||||
endTime: '',
|
||||
addCoord: false,
|
||||
satelliteSelected: [],
|
||||
coordinateList: [],
|
||||
|
||||
})
|
||||
|
||||
const coordinateList = ref([])
|
||||
const sensor = ref([
|
||||
{
|
||||
value: 'landsat',
|
||||
|
@ -233,8 +236,8 @@ const shortcuts = [
|
|||
|
||||
// 添加坐标点
|
||||
const addCoordinate = () => {
|
||||
addCoord = !addCoord;
|
||||
coordinateList = [
|
||||
state.addCoord = !state.addCoord;
|
||||
state.coordinateList = [
|
||||
// '43.538', '111.530', '36.195', '120.761'
|
||||
{
|
||||
Lat: '43.538'
|
||||
|
@ -249,16 +252,16 @@ const addCoordinate = () => {
|
|||
}
|
||||
// 清空坐标点
|
||||
const clearCoordinate = () => {
|
||||
coordinateList = [];
|
||||
startTime = '';
|
||||
endTime = '';
|
||||
state.coordinateList = [];
|
||||
state.startTime = '';
|
||||
state.endTime = '';
|
||||
}
|
||||
|
||||
const startCrawl = () => {
|
||||
console.log("start time:", startTime.value)
|
||||
console.log("end time:", endTime.value)
|
||||
console.log("addCoord:", addCoord.value)
|
||||
console.log("satelliteSelected:", satelliteSelected.value)
|
||||
console.log("start time:", state.startTime)
|
||||
console.log("end time:", state.endTime)
|
||||
console.log("addCoord:", state.addCoord)
|
||||
console.log("satelliteSelected:", state.satelliteSelected)
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue