|
@@ -62,9 +62,14 @@ export default {
|
|
|
import Tools from './cpns/tools/Tools.vue'
|
|
|
import LunDuMessage from './cpns/boatPanel/LunDuMessage.vue'
|
|
|
import SelectForUnit from './SelectForUnit.vue'
|
|
|
-
|
|
|
import { asideShow } from '@/store/index'
|
|
|
import {ElMessage} from "element-plus";
|
|
|
+
|
|
|
+ // 地图方法
|
|
|
+ import {fullExtent,calculation} from "@/utils/map/ArcgisUtil"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
let ldData=reactive({value: ''})
|
|
|
const checkLinDu=ref(false)
|
|
|
const checkSelect = ref(false)
|
|
@@ -107,14 +112,45 @@ export default {
|
|
|
|
|
|
function changeImage(index,name) {
|
|
|
isCheck.value.data.forEach(i=>{
|
|
|
- if(i.imageName===name&&!i.click){
|
|
|
- i.click=true;i.checkIoc=true
|
|
|
+ if(i.imageName===name) {
|
|
|
+ console.log(name)
|
|
|
+ i.click = !i.click ;
|
|
|
+ i.checkIoc = !i.checkIoc;
|
|
|
+ if (i.click) {
|
|
|
+ // 选择
|
|
|
+ if (name == 'qj') {
|
|
|
+ //返回全景
|
|
|
+ fullExtent();
|
|
|
+ i.click = !i.click ;
|
|
|
+ i.checkIoc = !i.checkIoc;
|
|
|
+ } else if (name == 'ss') {
|
|
|
+ togglePageAside()
|
|
|
+ }else if (name == 'cl') {
|
|
|
+ calculation('distance')
|
|
|
+ }else if (name == 'cm') {
|
|
|
+ calculation('area')
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+
|
|
|
+ // 取消
|
|
|
+ if (name == 'qj') {
|
|
|
+ //返回全景
|
|
|
+ fullExtent();
|
|
|
+ } else if (name == 'ss') {
|
|
|
+ togglePageAside()
|
|
|
+ }else if (name == 'cl') {
|
|
|
+
|
|
|
+ calculation('distance')
|
|
|
+
|
|
|
+ }else if (name == 'cm') {
|
|
|
+
|
|
|
+ calculation('area')
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
- else {
|
|
|
- i.click=false;
|
|
|
- i.checkIoc=false
|
|
|
- }
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
|