zbcx_ckyc 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/package.json +90 -0
- package/src/plugins/app/com/CesiumTool.js +730 -0
- package/src/plugins/app/com/MapMethods.js +355 -0
- package/src/plugins/app/com/MapTool.vue +772 -0
- package/src/plugins/app/com/MenuRouter.vue +157 -0
- package/src/plugins/app/com/ParamsDes.vue +35 -0
- package/src/plugins/app/com/SelCoorSys.vue +235 -0
- package/src/plugins/app/com/WebProj4.js +32 -0
- package/src/plugins/app/com/measure.js +127 -0
- package/src/plugins/app/com/yx.js +238 -0
- package/src/plugins/app/modelmanagement/D3DrawGraph.js +708 -0
- package/src/plugins/app/modelmanagement/MineralGo.vue +241 -0
- package/src/plugins/app/modelmanagement/MineralModel.vue +1203 -0
- package/src/plugins/app/modelmanagement/ModelCloudmap.vue +69 -0
- package/src/plugins/app/modelmanagement/ModelMst.vue +60 -0
- package/src/plugins/app/modelmanagement/ModelSy.vue +173 -0
- package/src/plugins/app/modelmanagement/ModelTp.vue +51 -0
- package/src/plugins/app/modelmanagement/ModelUpload.vue +774 -0
- package/src/plugins/app/znycpjxt/Api.js +714 -0
- package/src/plugins/app/znycpjxt/Bf/AttFactory.js +25 -0
- package/src/plugins/app/znycpjxt/Bf/IAnomalyhandle.js +102 -0
- package/src/plugins/app/znycpjxt/Bf/IComposeanomaly.js +140 -0
- package/src/plugins/app/znycpjxt/Bf/IContinueanaly.js +138 -0
- package/src/plugins/app/znycpjxt/Bf/IContrastanaly.js +138 -0
- package/src/plugins/app/znycpjxt/Bf/ICustomNode.js +145 -0
- package/src/plugins/app/znycpjxt/Bf/IDerivanaly.js +139 -0
- package/src/plugins/app/znycpjxt/Bf/IFilterananly.js +141 -0
- package/src/plugins/app/znycpjxt/Bf/IMeananaly.js +137 -0
- package/src/plugins/app/znycpjxt/Bf/IModelNodeBase.js +135 -0
- package/src/plugins/app/znycpjxt/Bf/IMoveaverage.js +135 -0
- package/src/plugins/app/znycpjxt/Bf/IReducepole.js +141 -0
- package/src/plugins/app/znycpjxt/Bf/ISmoothanaly.js +135 -0
- package/src/plugins/app/znycpjxt/Bf/ITrendanaly.js +144 -0
- package/src/plugins/app/znycpjxt/Bf/IVector2grd.js +144 -0
- package/src/plugins/app/znycpjxt/Bf/IYcfj.js +84 -0
- package/src/plugins/app/znycpjxt/Bf/IYcxxjs.js +105 -0
- package/src/plugins/app/znycpjxt/Bf/IYgsbtq.js +112 -0
- package/src/plugins/app/znycpjxt/Bf/IYgtxrh.js +112 -0
- package/src/plugins/app/znycpjxt/Bf/Iinteranaly.js +135 -0
- package/src/plugins/app/znycpjxt/Bf/index.js +44 -0
- package/src/plugins/app/znycpjxt/Bf/input/InputData.js +21 -0
- package/src/plugins/app/znycpjxt/Bf/input/InputExcel.js +28 -0
- package/src/plugins/app/znycpjxt/Bf/input/InputKd.js +31 -0
- package/src/plugins/app/znycpjxt/Bqqd/Bqqd.vue +380 -0
- package/src/plugins/app/znycpjxt/Bqqd/BqqdMap.vue +1046 -0
- package/src/plugins/app/znycpjxt/Bqqd/SetOpacity.vue +101 -0
- package/src/plugins/app/znycpjxt/Bqqd/SjzxTree.vue +244 -0
- package/src/plugins/app/znycpjxt/Bqqd/YclsjjTree.vue +212 -0
- package/src/plugins/app/znycpjxt/Bqqd/api/DsjzxApi.js +37 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmx.vue +161 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/CfgGloalParams.vue +92 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/CfgNodeFlds.vue +102 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/CfgNodeParams.vue +277 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/Ckycmxgl.vue +303 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/SetLabelParam.vue +68 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/SetModelParam.vue +69 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Ckycmxtab.vue +107 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Dtzzylwl.vue +156 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Jjsjwl.vue +230 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Sjsl.vue +126 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Zcxlj.vue +128 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Zjq.vue +123 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Zstp.vue +271 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Zzylwl.vue +149 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/coms/ParamsData.vue +323 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/coms/ParamsDataNew.vue +336 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/coms/QqtEcharts.vue +137 -0
- package/src/plugins/app/znycpjxt/Ckycmx/Ckycrwgl/Ckycrwgl.vue +290 -0
- package/src/plugins/app/znycpjxt/CusTools/CodeApi.js +83 -0
- package/src/plugins/app/znycpjxt/CusTools/CodeEditor/CodeEditor.md +36 -0
- package/src/plugins/app/znycpjxt/CusTools/CodeEditor/CodeEditor.vue +227 -0
- package/src/plugins/app/znycpjxt/CusTools/CodeEditor/PlugCodeEditor.vue +78 -0
- package/src/plugins/app/znycpjxt/CusTools/CodeEditor/demo/basic.png +0 -0
- package/src/plugins/app/znycpjxt/CusTools/CodeEditor/demo/basic.vue +27 -0
- package/src/plugins/app/znycpjxt/CusTools/DmbjForm.vue +76 -0
- package/src/plugins/app/znycpjxt/CusTools/DmfbForm.vue +351 -0
- package/src/plugins/app/znycpjxt/CusTools/GjForm.vue +206 -0
- package/src/plugins/app/znycpjxt/CusTools/Gjbjyfb.vue +200 -0
- package/src/plugins/app/znycpjxt/CusTools/ParamSelect.vue +222 -0
- package/src/plugins/app/znycpjxt/CusTools/ParamSelect2.vue +204 -0
- package/src/plugins/app/znycpjxt/CusTools/Zngjj.vue +105 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/DataAnlyModel.vue +134 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Hgfx/HgfxEcharts.vue +98 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Hgfx/HgfxTab.vue +73 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Hgfx.vue +101 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Jctj/JctjjgTab.vue +70 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Jctj/Plzft.vue +154 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Jctj.vue +118 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Jlfx/JlfxImg.vue +80 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Jlfx.vue +91 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/PCAfx/PcaTab.vue +161 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/PCAfx.vue +101 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Qqt/QqtEcharts.vue +202 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Qqt.vue +88 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Xgxfx/XgxfxImg.vue +80 -0
- package/src/plugins/app/znycpjxt/DataAnlyModel/Xgxfx.vue +96 -0
- package/src/plugins/app/znycpjxt/DatasetMan/CreateDataset.vue +296 -0
- package/src/plugins/app/znycpjxt/DatasetMan/DatasetMan.vue +141 -0
- package/src/plugins/app/znycpjxt/DatasetMan/PreData.js +91 -0
- package/src/plugins/app/znycpjxt/DatasetMan/PreData.vue +545 -0
- package/src/plugins/app/znycpjxt/DatasetMan/PreDataApi.js +101 -0
- package/src/plugins/app/znycpjxt/DatasetMan/SelData.vue +186 -0
- package/src/plugins/app/znycpjxt/DatasetMan/SjTree.vue +130 -0
- package/src/plugins/app/znycpjxt/DatasetMan/Sjj.vue +478 -0
- package/src/plugins/app/znycpjxt/DatasetMan/Yclsjj.vue +445 -0
- package/src/plugins/app/znycpjxt/DatasetMan/Yssjj.vue +389 -0
- package/src/plugins/app/znycpjxt/DocList/DocList.vue +496 -0
- package/src/plugins/app/znycpjxt/DocList/unit/DocItem.vue +137 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Dchj.vue +107 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/GeophysicalAnomaly.vue +115 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Jxyt.vue +98 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Lbjs.vue +127 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Pjcjs.vue +103 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Qdjs.vue +103 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/ExceptHandlModel.vue +163 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Cdjs.vue +102 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Czfx.vue +163 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/GetFormData.vue +343 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Hdpj.vue +100 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Pjtd.vue +90 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Qsfx.vue +109 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/ResultOnlyData.vue +121 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/ResultTable.vue +231 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/UniversalComputing.vue +139 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Xgxsjs.vue +93 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Xxsjs.vue +90 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Ycfj.vue +116 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Yhcl.vue +100 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/AnomalsGard.vue +91 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/Dqhxycht.vue +113 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/GeocAnomalies.vue +99 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/JgTableList.vue +203 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/Lszcl.vue +110 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/Ycxxjs.vue +116 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/geoAnomalyExtraction/GeoAnomalyExtraction.vue +108 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/geoAnomalyExtraction/coms/AttWeight.vue +99 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/geoAnomalyExtraction/coms/Ckdctq.vue +98 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/geoAnomalyExtraction/coms/LeftForm.vue +266 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/ygyctq/Ygsbtq.vue +150 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/ygyctq/Ygtxrh.vue +107 -0
- package/src/plugins/app/znycpjxt/ExceptHandlModel/ygyctq/ygyctq.vue +98 -0
- package/src/plugins/app/znycpjxt/Index/DataCard.vue +45 -0
- package/src/plugins/app/znycpjxt/Index/Index.vue +123 -0
- package/src/plugins/app/znycpjxt/Rzgl/Rzgl.vue +156 -0
- package/src/plugins/app/znycpjxt/coms/CmapColor.vue +70 -0
- package/src/plugins/app/znycpjxt/coms/CustomFileView.vue +343 -0
- package/src/plugins/app/znycpjxt/coms/CustomForm.vue +220 -0
- package/src/plugins/app/znycpjxt/coms/GrdView.vue +355 -0
- package/src/plugins/app/znycpjxt/coms/LeftForm.vue +195 -0
- package/src/plugins/app/znycpjxt/coms/MakeData.js +472 -0
- package/src/plugins/app/znycpjxt/coms/PreView.js +55 -0
- package/src/plugins/app/znycpjxt/coms/RightContent.vue +71 -0
- package/src/plugins/app/znycpjxt/coms/TableEarth.vue +259 -0
- package/src/plugins/app/znycpjxt/intellPred/ModelList.vue +200 -0
- package/src/plugins/app/znycpjxt/intellPred/coms/D3DrawGraph.js +634 -0
- package/src/plugins/app/znycpjxt/intellPred/coms/MineralGo.vue +249 -0
- package/src/plugins/app/znycpjxt/intellPred/coms/ModelCard.vue +298 -0
- package/src/plugins/app/znycpjxt/intellPred/coms/ModelEdit.vue +292 -0
- package/src/plugins/app/znycpjxt/intellPred/coms/ModelSpecif.vue +46 -0
- package/src/plugins/app/znycpjxt/intellPred/intellPred.vue +71 -0
- package/src/plugins/bf/BfApi.js +92 -0
- package/src/plugins/bf/BfColAdd.vue +78 -0
- package/src/plugins/bf/BfColEdit.vue +68 -0
- package/src/plugins/bf/BfColFilter.vue +112 -0
- package/src/plugins/bf/BfDataGroup.vue +80 -0
- package/src/plugins/bf/BfDataPreview.vue +118 -0
- package/src/plugins/bf/BfDataStat.vue +81 -0
- package/src/plugins/bf/BfDuplicateDel.vue +82 -0
- package/src/plugins/bf/BfProcCall.vue +82 -0
- package/src/plugins/bf/BfRunHis.vue +289 -0
- package/src/plugins/bf/BfRunParams.vue +94 -0
- package/src/plugins/bf/BfSaveFlow.vue +186 -0
- package/src/plugins/bf/BfSelFlow.vue +123 -0
- package/src/plugins/bf/BfTabCombine.vue +127 -0
- package/src/plugins/bf/BfTabJoin.vue +108 -0
- package/src/plugins/bf/BfTabMerge.vue +68 -0
- package/src/plugins/bf/BfTabReader.vue +126 -0
- package/src/plugins/bf/BfValFormat.vue +68 -0
- package/src/plugins/bf/BfValNumber.vue +68 -0
- package/src/plugins/bf/BfValProc.vue +78 -0
- package/src/plugins/bf/BfValSort.vue +78 -0
- package/src/plugins/bf/BiFlow.vue +1177 -0
- package/src/plugins/bf/IBfPlug.js +205 -0
- package/src/plugins/bf/coms/ColAdd.vue +75 -0
- package/src/plugins/bf/coms/ColEdit.vue +52 -0
- package/src/plugins/bf/coms/ColList.vue +91 -0
- package/src/plugins/bf/coms/DataGroup.vue +90 -0
- package/src/plugins/bf/coms/DataStat.vue +67 -0
- package/src/plugins/bf/coms/EditTable.vue +161 -0
- package/src/plugins/bf/coms/NodeTree.vue +105 -0
- package/src/plugins/bf/coms/PlugCmd.vue +95 -0
- package/src/plugins/bf/coms/RunParams.vue +68 -0
- package/src/plugins/bf/coms/TabCombine.vue +60 -0
- package/src/plugins/bf/coms/TabJoin.vue +69 -0
- package/src/plugins/bf/coms/ValFormat.vue +53 -0
- package/src/plugins/bf/coms/ValProc.vue +77 -0
- package/src/plugins/bf/coms/ValSort.vue +89 -0
- package/src/plugins/bf/parts/Icon.vue +105 -0
- package/src/plugins/bf/parts/Rect.vue +98 -0
- package/src/plugins/bf/parts/index.js +11 -0
- package/src/plugins/cxMixin/IAttBase.js +78 -0
- package/src/plugins/cxMixin/IAttDlg.js +45 -0
- package/src/plugins/cxMixin/IAttProc.js +98 -0
- package/src/plugins/cxMixin/IComBase.js +42 -0
- package/src/plugins/cxMixin/IContextMenu.js +74 -0
- package/src/plugins/cxMixin/IDataAcce.js +1106 -0
- package/src/plugins/cxMixin/IDataList.js +775 -0
- package/src/plugins/cxMixin/IDataMan.js +1670 -0
- package/src/plugins/cxMixin/IDataMan2.js +2561 -0
- package/src/plugins/cxMixin/IDataProc.js +379 -0
- package/src/plugins/cxMixin/IDatagrid.js +234 -0
- package/src/plugins/cxMixin/IEditableDg.js +477 -0
- package/src/plugins/cxMixin/IExpBase.js +51 -0
- package/src/plugins/cxMixin/IFormBase.js +29 -0
- package/src/plugins/cxMixin/IGridBpm.js +732 -0
- package/src/plugins/cxMixin/IGridData.js +109 -0
- package/src/plugins/cxMixin/IOperMore.js +323 -0
- package/src/plugins/cxMixin/IPlugBase.js +341 -0
- package/src/plugins/cxMixin/ISendCode.js +86 -0
- package/src/plugins/cxMixin/ISinglePage.js +112 -0
- package/src/plugins/cxMixin/ITags.js +81 -0
- package/src/plugins/cxe/CxeMap.vue +61 -0
- package/src/plugins/home/HeadNav.vue +194 -0
- package/src/plugins/home/Home.vue +59 -0
- package/src/plugins/home/HomePage.vue +237 -0
- package/src/plugins/home/Login.vue +139 -0
- package/src/plugins/zbcxCesium/coms/GraDrawBarWgt.vue +176 -0
- package/src/plugins/zbcxCesium/coms/baseMapSwitch/BaseMap.scss +42 -0
- package/src/plugins/zbcxCesium/coms/baseMapSwitch/BaseMap.vue +59 -0
- package/src/plugins/zbcxCesium/coms/dataPreview/DataPreview.vue +526 -0
- package/src/plugins/zbcxCesium/coms/dataPreview/DataPreviewPlug.vue +79 -0
- package/src/plugins/zbcxCesium/coms/dataPreview/ReadShpFile.js +42 -0
- package/src/plugins/zbcxCesium/coms/legend/Legend.vue +78 -0
- package/src/plugins/zbcxCesium/coms/popup/dialog-left-bg.png +0 -0
- package/src/plugins/zbcxCesium/coms/popup/index.js +88 -0
- package/src/plugins/zbcxCesium/coms/popup/index.vue +93 -0
- package/src/plugins/zbcxCesium/pub/LoadGeojson.js +44 -0
- package/src/plugins/zbcxCesium/pub/LoadModel.js +128 -0
- package/src/plugins/zbcxCesium/pub/LoadOgc.js +226 -0
- package/src/plugins/zbcxCesium/pub/Opacity.vue +139 -0
- package/src/plugins/zbcxCesium/pub/PubCxe.js +97 -0
- package/src/plugins/zbcxCesium/pub/SceneSet.vue +178 -0
- package/src/plugins/zbcxCesium/pub/ShowEffect.vue +216 -0
- package/src/plugins/zbcxCesium/pub/TMeasure.vue +122 -0
- package/src/plugins/zbcxCesium/pub/ToDefView3.vue +109 -0
- package/src/plugins/zbcxCesium/pub/getWmsGetCapabilities.js +127 -0
- package/src/plugins/zbcxCesium/utils/ShpToGeoJson.js +24 -0
- package/src/plugins/zbcxCesium/utils/WebProj4.js +32 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.menu-router{background-color: var(--cx-colorBg12);}
|
|
3
|
+
.active-name{width: 98.8%; height: 100%; font-size: 0.2rem; font-weight: 400; box-sizing: border-box; padding-left: 0.1rem; padding-right: 0.1rem; margin: auto; line-height: 0.5rem; border-radius: 0.06rem; box-shadow: var(--cx-boxShadow5); border: .01rem solid var(--cx-colorBorder1); color: var(--cx-colorText3); background: var(--cx-colorBg5); display: flex;align-items: center;justify-content: space-between;}
|
|
4
|
+
.cx-menufold{width: 2.3rem;}
|
|
5
|
+
.cx-menufold.menufold-collapse{width: fit-content;}
|
|
6
|
+
.datasetman {margin: 0.12rem; padding: 0.12rem; overflow: visible; box-sizing: border-box;}
|
|
7
|
+
</style>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<cx-layout class="menu-router" ref="menuRouter">
|
|
11
|
+
<cx-region region="east" class="north">
|
|
12
|
+
<cx-menu-fold
|
|
13
|
+
v-if="menuFlag"
|
|
14
|
+
:size="size"
|
|
15
|
+
:defActive="defaultact"
|
|
16
|
+
v-bind="menuParam"
|
|
17
|
+
tintFont
|
|
18
|
+
@menu-click="onStairMenuClick($event,true)">
|
|
19
|
+
</cx-menu-fold>
|
|
20
|
+
</cx-region>
|
|
21
|
+
<cx-region region="center" style="height: 100%; overflow: hidden;">
|
|
22
|
+
<cx-region region="north" class="north" style="height: 6%;">
|
|
23
|
+
<div class="active-name">
|
|
24
|
+
<span>{{activeName}}</span>
|
|
25
|
+
<el-popover
|
|
26
|
+
v-if="smData"
|
|
27
|
+
placement="right"
|
|
28
|
+
width="600"
|
|
29
|
+
trigger="click">
|
|
30
|
+
<p style="white-space: pre-wrap; max-height: 8rem; overflow: auto;" v-html="smData"></p>
|
|
31
|
+
<template #reference>
|
|
32
|
+
<el-button class="btn_sm" type="primary">功能说明</el-button>
|
|
33
|
+
</template>
|
|
34
|
+
</el-popover>
|
|
35
|
+
</div>
|
|
36
|
+
</cx-region>
|
|
37
|
+
<cx-region region="center" style="height: 91%; overflow: visible;">
|
|
38
|
+
<cx-BorderRegular class="datasetman" >
|
|
39
|
+
<router-view />
|
|
40
|
+
</cx-BorderRegular>
|
|
41
|
+
</cx-region>
|
|
42
|
+
</cx-region>
|
|
43
|
+
</cx-layout>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script>
|
|
47
|
+
/**
|
|
48
|
+
* 插件 - 菜单路由
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 维护历史:
|
|
53
|
+
* 25-04-01 黄佳龙 创建
|
|
54
|
+
*/
|
|
55
|
+
export default
|
|
56
|
+
{
|
|
57
|
+
mixins: [cx.mixin.IPlugBase],
|
|
58
|
+
|
|
59
|
+
data()
|
|
60
|
+
{
|
|
61
|
+
return {
|
|
62
|
+
menuFlag: true,
|
|
63
|
+
menuParam: {
|
|
64
|
+
size: 'default',
|
|
65
|
+
menus: [],
|
|
66
|
+
isCollapse: true,
|
|
67
|
+
inverse: true,
|
|
68
|
+
foldTitle: '',
|
|
69
|
+
elAtts: { mode: 'vertical' }
|
|
70
|
+
},
|
|
71
|
+
defaultact: {},
|
|
72
|
+
activeName: '成矿预测',
|
|
73
|
+
smData: ''
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
watch:
|
|
78
|
+
{
|
|
79
|
+
'params.type':
|
|
80
|
+
{
|
|
81
|
+
handler(val)
|
|
82
|
+
{
|
|
83
|
+
this.getMenuData()
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
created()
|
|
89
|
+
{
|
|
90
|
+
this.getMenuData()
|
|
91
|
+
this.smData = window.SmData[this.activeName]
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
methods:
|
|
95
|
+
{
|
|
96
|
+
/**
|
|
97
|
+
* 获取菜单数据
|
|
98
|
+
* @param {Object} evt 事件对象
|
|
99
|
+
*/
|
|
100
|
+
getMenuData(evt)
|
|
101
|
+
{
|
|
102
|
+
if (!this.params.type && !this.params.route)
|
|
103
|
+
this.params = $g.init.func.find(item => item.name === this.$route.matched[1].name).params
|
|
104
|
+
this.menuFlag = false
|
|
105
|
+
this.menuParam.foldTitle = this.params.namec
|
|
106
|
+
this.menuParam.menus = $g.init.func.filter(item => !item.grp && item.target === this.params.type).map(item => ({
|
|
107
|
+
name: item.name,
|
|
108
|
+
title: item.namec,
|
|
109
|
+
icon: item.icon,
|
|
110
|
+
plugin: item.plugin,
|
|
111
|
+
params: item.params,
|
|
112
|
+
children: $g.init.func.filter(item1 => item1.grp && item1.grp === item.name).map(item2 => ({
|
|
113
|
+
name: item2.name,
|
|
114
|
+
title: item2.namec,
|
|
115
|
+
icon: item2.icon,
|
|
116
|
+
plugin: item2.plugin,
|
|
117
|
+
params: item2.params
|
|
118
|
+
}))
|
|
119
|
+
}))
|
|
120
|
+
this.defaultact = this.menuParam.menus[0].plugin ? this.menuParam.menus[0] : this.menuParam.menus[0].children[0]
|
|
121
|
+
this.onStairMenuClick({ menu: this.defaultact })
|
|
122
|
+
this.$nextTick(() =>
|
|
123
|
+
{
|
|
124
|
+
this.menuFlag = true
|
|
125
|
+
})
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* 菜单点击事件
|
|
130
|
+
* @param {Object} evt 事件对象
|
|
131
|
+
* @param {Boolean} checkMenu 是否检查菜单
|
|
132
|
+
*/
|
|
133
|
+
onStairMenuClick(evt, checkMenu)
|
|
134
|
+
{
|
|
135
|
+
if (evt.menu.name == 'Ygj')
|
|
136
|
+
window.open('https://geocloud.hubgs.com/cloudtool/#/home')
|
|
137
|
+
else if (this.params.route && !checkMenu)
|
|
138
|
+
{
|
|
139
|
+
this.defaultact = this.menuParam.menus.find((item) =>
|
|
140
|
+
{
|
|
141
|
+
return item.name == this.params.route
|
|
142
|
+
})
|
|
143
|
+
cx.run.runPlug(this.params.route)
|
|
144
|
+
this.activeName = this.params.title
|
|
145
|
+
this.smData = window.SmData[this.activeName]
|
|
146
|
+
}
|
|
147
|
+
else if (evt.menu.plugin)
|
|
148
|
+
{
|
|
149
|
+
cx.run.runPlug(evt.menu.plugin, evt.menu.params)
|
|
150
|
+
this.activeName = evt.menu.title
|
|
151
|
+
this.smData = window.SmData[this.activeName]
|
|
152
|
+
}
|
|
153
|
+
this.$emit('menu-click', evt)
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.params-des{width: 100%; height: 100%; padding: 0.5rem; box-sizing: border-box;
|
|
3
|
+
.p-box{white-space: pre-wrap; max-height: 8rem; overflow: auto}
|
|
4
|
+
}
|
|
5
|
+
</style>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="params-des">
|
|
9
|
+
<p class="p-box" v-html="smData"></p>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
/**
|
|
15
|
+
* 组件名称: 成矿预测参数说明
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 维护历史:
|
|
20
|
+
* 修改时间 人员 说明
|
|
21
|
+
*/
|
|
22
|
+
export default {
|
|
23
|
+
mixins: [cx.mixin.IPlugBase],
|
|
24
|
+
data()
|
|
25
|
+
{
|
|
26
|
+
return {
|
|
27
|
+
smData: ''
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
created()
|
|
31
|
+
{
|
|
32
|
+
this.smData = window.SmData[this.params.node.data.obj.cfg.namec]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.container-right {width: 96%; height: 97%; margin-left: 2%;}
|
|
3
|
+
.table {height: 3.5rem;}
|
|
4
|
+
.btn {margin-top: 0.5%; margin-left: 45%;}
|
|
5
|
+
:deep(.el-table__header) {width: 13.05rem !important;}
|
|
6
|
+
:deep(.el-table__body) {width: 13.05rem !important;}
|
|
7
|
+
:deep(.cx-expinput) {margin-bottom: 0.1rem;margin-left: 0.02rem;}
|
|
8
|
+
:deep(.cx-expinput.default .el-button) {width: 0.95rem}
|
|
9
|
+
:deep(.cx-attform.el-form .el-form-item.col1 .el-form-item__content) {width: 3rem;}
|
|
10
|
+
:deep(.cx-layout) {height: 100%;}
|
|
11
|
+
:deep(.cx-ta-c){height: 0.4rem;}
|
|
12
|
+
.addBtn{margin-left: 2%;}
|
|
13
|
+
</style>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<!-- 标签语义化:header、nav、main、article、aside、footer、section -->
|
|
17
|
+
<div class="container-right">
|
|
18
|
+
<cx-layout>
|
|
19
|
+
<cx-region region="north" class="region-padding-bottom" gutter border>
|
|
20
|
+
<cx-exp-input v-bind="expAtts" v-on="expEvts" :show-more="false">
|
|
21
|
+
<template #default>
|
|
22
|
+
<cx-button plain icon="cx-fi ic-add" @click="addHandle"> 新增 </cx-button>
|
|
23
|
+
<cx-button plain icon="cx-fi ic-delete" @click="delHandle"> 删除 </cx-button>
|
|
24
|
+
<cx-button plain icon="cx-fi ic-download" @click="onDownloadTem"> 下载模板 </cx-button>
|
|
25
|
+
<cx-button plain icon="cx-fi ic-importData" @click="onImportExcel"> 数据导入 </cx-button>
|
|
26
|
+
</template>
|
|
27
|
+
</cx-exp-input>
|
|
28
|
+
</cx-region>
|
|
29
|
+
<cx-region region="center" id="table" class="table-padding-small table">
|
|
30
|
+
<cx-data-grid v-bind="dgAtts" v-on="dgEvts" ref="datagrid"/>
|
|
31
|
+
</cx-region>
|
|
32
|
+
<cx-region region="south" class="">
|
|
33
|
+
<el-button class="btn" type="primary" @click="onOk">确定</el-button>
|
|
34
|
+
</cx-region>
|
|
35
|
+
</cx-layout>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script>
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 组件名称: 选择项目
|
|
43
|
+
* 功能说明:
|
|
44
|
+
*
|
|
45
|
+
* 参数说明:
|
|
46
|
+
* @prop 类型 参数名 参数说明
|
|
47
|
+
*
|
|
48
|
+
* 事件说明:
|
|
49
|
+
* @event 事件名 参数解构 事件和参数说明
|
|
50
|
+
*
|
|
51
|
+
* 插槽说明:
|
|
52
|
+
* @slot 插槽名 插槽prop解构 插槽和prop说明
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 维护历史:
|
|
57
|
+
* 修改时间 人员 说明
|
|
58
|
+
*/
|
|
59
|
+
export default
|
|
60
|
+
{
|
|
61
|
+
mixins: [cx.mixin.IPlugBase, cx.mixin.IExpBase, cx.mixin.IDataMan],
|
|
62
|
+
components: { },
|
|
63
|
+
|
|
64
|
+
data()
|
|
65
|
+
{
|
|
66
|
+
return {
|
|
67
|
+
noExpDispAll: true, // 没有查询条件显示所有数据
|
|
68
|
+
editable: true,
|
|
69
|
+
pages: true, // 是否启用分页
|
|
70
|
+
selected: null, // 当前选中
|
|
71
|
+
selection: [],
|
|
72
|
+
dg:
|
|
73
|
+
{
|
|
74
|
+
pages: true, // 是否使用分页
|
|
75
|
+
table:
|
|
76
|
+
{
|
|
77
|
+
elAtts:
|
|
78
|
+
{
|
|
79
|
+
border: false, // 是否带有纵向边框
|
|
80
|
+
stripe: true, // 是否为斑马纹 table
|
|
81
|
+
showSummary: false, // 是否在表尾显示合计行
|
|
82
|
+
'row-style': ({ row, rowIndex }) => this.onRowStyle({ row, rowIndex }), // 行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style。
|
|
83
|
+
'cell-style': ({ row, column, rowIndex, columnIndex }) => this.onCellStyle({ row, column, rowIndex, columnIndex }) // 单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style。
|
|
84
|
+
},
|
|
85
|
+
fitWidth: true, // 宽度自适应
|
|
86
|
+
multiple: false, // 是否支持多选
|
|
87
|
+
selectOnClick: true, // 点击某一行时会触发select选择事件,如果multiple多选模式会更新复选框的状态
|
|
88
|
+
operFix: 'right', // 操作列固定右边
|
|
89
|
+
list: [], // 数据列表
|
|
90
|
+
cols: [] // 列信息
|
|
91
|
+
},
|
|
92
|
+
page:
|
|
93
|
+
{
|
|
94
|
+
total: 0, // 数据量
|
|
95
|
+
pageSize: cx.consts.PAGE_SIZE, // 每页记录数
|
|
96
|
+
pageSizes: cx.consts.PAGE_SIZES // 分页标准
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
provide()
|
|
103
|
+
{
|
|
104
|
+
return {
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
inject: [],
|
|
109
|
+
|
|
110
|
+
watch:
|
|
111
|
+
{},
|
|
112
|
+
|
|
113
|
+
created()
|
|
114
|
+
{
|
|
115
|
+
this.major = $app.TabConst.prj_coorsys.major
|
|
116
|
+
this.minor = $app.TabConst.prj_coorsys.minor
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
methods:
|
|
120
|
+
{
|
|
121
|
+
/**
|
|
122
|
+
* 确定选择
|
|
123
|
+
* @param {Object} evt 事件对象
|
|
124
|
+
*/
|
|
125
|
+
onOk(evt)
|
|
126
|
+
{
|
|
127
|
+
if (this.params.plugonOk == 'true' && this.selected)
|
|
128
|
+
{
|
|
129
|
+
cx.base.call(this.params.onOk, { epsg: 'EPSG:' + this.selected.epsgbm })
|
|
130
|
+
this.close()
|
|
131
|
+
}
|
|
132
|
+
else if (this.selected)
|
|
133
|
+
{
|
|
134
|
+
console.log(this.selected)
|
|
135
|
+
console.log(this.params.onOk)
|
|
136
|
+
cx.base.call(this.params.onOk, this.selected)
|
|
137
|
+
this.close()
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* 新增记录
|
|
143
|
+
* @param {Object} evt 事件对象
|
|
144
|
+
*/
|
|
145
|
+
addHandle(evt)
|
|
146
|
+
{
|
|
147
|
+
// 回调函数
|
|
148
|
+
const onOk = (att) =>
|
|
149
|
+
{
|
|
150
|
+
this.$processing.show()
|
|
151
|
+
return cx.svr.attOper.insert(this.major, this.minor, att, 1)
|
|
152
|
+
.then(ret =>
|
|
153
|
+
{
|
|
154
|
+
this.refresh()
|
|
155
|
+
this.$showMsg(this.$loc('cx.success.add'), 'success')
|
|
156
|
+
this.$emit('ok-click', ret)
|
|
157
|
+
this.$processing.close()
|
|
158
|
+
return true
|
|
159
|
+
})
|
|
160
|
+
.catch(err =>
|
|
161
|
+
{
|
|
162
|
+
this.$processing.close()
|
|
163
|
+
this.onError(err)
|
|
164
|
+
})
|
|
165
|
+
}
|
|
166
|
+
// 参数
|
|
167
|
+
let params =
|
|
168
|
+
{
|
|
169
|
+
major: this.major,
|
|
170
|
+
minor: this.minor,
|
|
171
|
+
title: this.getEntityName(),
|
|
172
|
+
onOk
|
|
173
|
+
}
|
|
174
|
+
cx.run.runPlug('AttInput', params)
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* 删除记录
|
|
179
|
+
* @param {Object} evt 事件对象
|
|
180
|
+
*/
|
|
181
|
+
delHandle(evt)
|
|
182
|
+
{
|
|
183
|
+
if (!this.selection.length > 0)
|
|
184
|
+
return
|
|
185
|
+
|
|
186
|
+
let ids = cx.array.toString(this.selection, 'id')
|
|
187
|
+
// 确认删除
|
|
188
|
+
this.$cfmMsg('确定彻底删除内容吗?').then(() =>
|
|
189
|
+
{
|
|
190
|
+
cx.svr.data.dels(this.major, this.minor, ids).then(ret =>
|
|
191
|
+
{
|
|
192
|
+
this.refresh()
|
|
193
|
+
cx.base.showMsg('删除成功!', 'success')
|
|
194
|
+
})
|
|
195
|
+
})
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* 下载模板
|
|
200
|
+
* @param {Object} evt 事件对象
|
|
201
|
+
*/
|
|
202
|
+
onDownloadTem(evt)
|
|
203
|
+
{
|
|
204
|
+
let entity = $g.entity.byMajMin(this.major, this.minor)
|
|
205
|
+
let param =
|
|
206
|
+
{
|
|
207
|
+
json: [],
|
|
208
|
+
filename: entity.namec,
|
|
209
|
+
columns: {}
|
|
210
|
+
}
|
|
211
|
+
let flds = $g.field.fld[entity.name].filter(item => Number(item.disporder) !== 0)
|
|
212
|
+
for (let fld of flds)
|
|
213
|
+
param.columns[fld.colname] = fld.namec
|
|
214
|
+
cx.ExpExcel.exportToExcel(param)
|
|
215
|
+
},
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* 导入Excel数据
|
|
220
|
+
*/
|
|
221
|
+
onImportExcel()
|
|
222
|
+
{
|
|
223
|
+
let paras =
|
|
224
|
+
{
|
|
225
|
+
major: this.major,
|
|
226
|
+
minor: this.minor,
|
|
227
|
+
title: '数据导入',
|
|
228
|
+
beforeImportToDb: this.beforeImportToDb,
|
|
229
|
+
onFinish: (newData, plug) => this.refresh()
|
|
230
|
+
}
|
|
231
|
+
cx.run.runPlug('ImpData', paras)
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
</script>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import proj4 from 'proj4'
|
|
2
|
+
class WebProj4Class
|
|
3
|
+
{
|
|
4
|
+
constructor()
|
|
5
|
+
{
|
|
6
|
+
if (window.epsgdefs)
|
|
7
|
+
{
|
|
8
|
+
window.epsgdefs.forEach(item =>
|
|
9
|
+
{
|
|
10
|
+
proj4.defs(item.epsg, item.defs)
|
|
11
|
+
})
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// 静态方法
|
|
16
|
+
static getInstance()
|
|
17
|
+
{
|
|
18
|
+
if (!this.instance)
|
|
19
|
+
|
|
20
|
+
this.instance = new WebProj4Class()
|
|
21
|
+
|
|
22
|
+
return this.instance
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
transform(from, to, x, y)
|
|
26
|
+
{
|
|
27
|
+
return proj4(from, to, [x, y])
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export default WebProj4Class
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
class Measure
|
|
2
|
+
{
|
|
3
|
+
constructor(viewer)
|
|
4
|
+
{
|
|
5
|
+
this.viewer = viewer
|
|
6
|
+
this.measureDrawLine = null
|
|
7
|
+
this.measureDrawArea = null
|
|
8
|
+
this.measureDrawAngle = null
|
|
9
|
+
|
|
10
|
+
this.MeasureTipStyle = {
|
|
11
|
+
text: '',
|
|
12
|
+
disableDepthTestDistance: Number.POSITIVE_INFINITY,
|
|
13
|
+
pixelOffset: new Cesium.Cartesian2(5, 0), // 注意不要让提示文本与鼠标重叠
|
|
14
|
+
font: '16px',
|
|
15
|
+
scale: 1,
|
|
16
|
+
showBackground: true,
|
|
17
|
+
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
|
|
18
|
+
horizontalOrigin: Cesium.HorizontalOrigin.LEFT
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
this.layer = new cxe.VectorLayer('layer1')
|
|
22
|
+
if (this.viewer)
|
|
23
|
+
this.viewer.layers.addLayer(this.layer)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
destroy()
|
|
27
|
+
{
|
|
28
|
+
if (this.viewer && this.layer)
|
|
29
|
+
this.viewer.layers.removeLayer(this.layer)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 直线量算
|
|
34
|
+
*/
|
|
35
|
+
measureLine(type)
|
|
36
|
+
{
|
|
37
|
+
if (this.measureDrawLine)
|
|
38
|
+
{
|
|
39
|
+
this.viewer.actMan.clear()
|
|
40
|
+
this.measureDrawLine = null
|
|
41
|
+
return
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// window.Viewer.scene.globe.depthTestAgainstTerrain = true
|
|
45
|
+
this.measureDrawLine = new cxe.MeasureLine(this.viewer, {
|
|
46
|
+
layer: this.layer,
|
|
47
|
+
aftDestroy: () =>
|
|
48
|
+
{
|
|
49
|
+
this.clearMeasure()
|
|
50
|
+
this.measureDrawLine = null
|
|
51
|
+
},
|
|
52
|
+
measureTipStyle: this.MeasureTipStyle
|
|
53
|
+
})
|
|
54
|
+
this.type = type
|
|
55
|
+
this.viewer.actMan.addRepel(this.measureDrawLine)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 面积量算
|
|
60
|
+
*/
|
|
61
|
+
measureArea(type)
|
|
62
|
+
{
|
|
63
|
+
if (this.measureDrawArea)
|
|
64
|
+
{
|
|
65
|
+
this.viewer.actMan.clear()
|
|
66
|
+
this.measureDrawArea = null
|
|
67
|
+
return
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// window.Viewer.scene.globe.depthTestAgainstTerrain = true
|
|
71
|
+
this.measureDrawArea = new cxe.MeasureArea(this.viewer, {
|
|
72
|
+
layer: this.layer,
|
|
73
|
+
aftDestroy: () =>
|
|
74
|
+
{
|
|
75
|
+
this.clearMeasure()
|
|
76
|
+
this.measureDrawArea = null
|
|
77
|
+
},
|
|
78
|
+
measureTipStyle: this.MeasureTipStyle
|
|
79
|
+
})
|
|
80
|
+
this.type = type
|
|
81
|
+
this.viewer.actMan.addRepel(this.measureDrawArea)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 角度量算
|
|
86
|
+
*/
|
|
87
|
+
meaureAngle(type)
|
|
88
|
+
{
|
|
89
|
+
if (this.measureDrawAngle)
|
|
90
|
+
{
|
|
91
|
+
this.viewer.actMan.clear()
|
|
92
|
+
this.measureDrawAngle = null
|
|
93
|
+
return
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// window.Viewer.scene.globe.depthTestAgainstTerrain = true
|
|
97
|
+
this.measureDrawAngle = new cxe.MeasureAngle(this.viewer, {
|
|
98
|
+
layer: this.layer,
|
|
99
|
+
aftDestroy: () =>
|
|
100
|
+
{
|
|
101
|
+
this.clearMeasure()
|
|
102
|
+
this.measureDrawAngle = null
|
|
103
|
+
},
|
|
104
|
+
measureTipStyle: this.MeasureTipStyle
|
|
105
|
+
})
|
|
106
|
+
this.type = type
|
|
107
|
+
this.viewer.actMan.addRepel(this.measureDrawAngle)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* 清除量算
|
|
112
|
+
*/
|
|
113
|
+
clearMeasure()
|
|
114
|
+
{
|
|
115
|
+
// window.Viewer.scene.globe.depthTestAgainstTerrain = false
|
|
116
|
+
if (this.layer)
|
|
117
|
+
this.layer.clear()
|
|
118
|
+
|
|
119
|
+
if (this.viewer)
|
|
120
|
+
this.viewer.actMan.clear()
|
|
121
|
+
|
|
122
|
+
this.measureDrawLine = null
|
|
123
|
+
this.measureDrawArea = null
|
|
124
|
+
this.measureDrawAngle = null
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export default Measure
|