|
@@ -26,7 +26,8 @@
|
|
|
/>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <span>确定</span>
|
|
|
+ <span @click="onSub(true)" v-if="subStat==0">确定</span>
|
|
|
+ <span @click="onSub(false)" v-else>关闭</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -39,15 +40,22 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<script setup>
|
|
|
- import {reactive} from "vue";
|
|
|
+ import {reactive, ref} from "vue";
|
|
|
import { ElDatePicker,ElMessage } from 'element-plus'
|
|
|
import 'element-plus/es/components/message/style/css'
|
|
|
import 'element-plus/es/components/date-picker/style/css'
|
|
|
|
|
|
+ import {drawArea} from '@/utils/map/Boat'
|
|
|
const timeRange = reactive({
|
|
|
time1: '2023-05-06 12:30:00',
|
|
|
time2: '2023-08-06 12:30:00',
|
|
|
})
|
|
|
+
|
|
|
+ const subStat = ref(0)
|
|
|
+ function onSub(type) {
|
|
|
+ subStat.value=1
|
|
|
+ drawArea(timeRange.time1,timeRange.time2,type)
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|