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,122 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
</style>
|
|
3
|
+
|
|
4
|
+
<template>
|
|
5
|
+
<div>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 组件名称: 量算:距离、面积、角度。
|
|
13
|
+
* 功能说明: 基于cxe实现的量算封装组件
|
|
14
|
+
* 参数说明:
|
|
15
|
+
* @param {Object} params.type 量算的类型:MeasureLine、MeasureArea、MeasureAngle、Clear
|
|
16
|
+
*/
|
|
17
|
+
const TYPE =
|
|
18
|
+
{
|
|
19
|
+
MeasureLine: 'MeasureLine',
|
|
20
|
+
MeasureArea: 'MeasureArea',
|
|
21
|
+
MeasureAngle: 'MeasureAngle',
|
|
22
|
+
Clear: 'MeasureClear'
|
|
23
|
+
}
|
|
24
|
+
export default
|
|
25
|
+
{
|
|
26
|
+
mixins: [cx.mixin.IPlugBase],
|
|
27
|
+
components: {},
|
|
28
|
+
data()
|
|
29
|
+
{
|
|
30
|
+
return {
|
|
31
|
+
layer: '',
|
|
32
|
+
instrument: {
|
|
33
|
+
MeasureLine: '', // 测距
|
|
34
|
+
MeasureArea: '', // 测面
|
|
35
|
+
MeasureAngle: '' // 测角
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
// 计算属性,依赖其他数据数字计算
|
|
41
|
+
computed:
|
|
42
|
+
{},
|
|
43
|
+
|
|
44
|
+
// 属性监听,处理属性变化后有大量操作
|
|
45
|
+
watch:
|
|
46
|
+
{},
|
|
47
|
+
|
|
48
|
+
// 初始化组件,data中数据变量赋值
|
|
49
|
+
created()
|
|
50
|
+
{
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
// 组件dom挂载成功
|
|
54
|
+
mounted()
|
|
55
|
+
{
|
|
56
|
+
this.start()
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
// 销毁前
|
|
60
|
+
beforeUnmount()
|
|
61
|
+
{
|
|
62
|
+
this.onIncident()
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
// 按功能相关性组织函数块,函数名体现功能
|
|
66
|
+
methods:
|
|
67
|
+
{
|
|
68
|
+
start()
|
|
69
|
+
{
|
|
70
|
+
this.viewer = window.Viewer
|
|
71
|
+
if (!this.viewer)
|
|
72
|
+
return console.log('viewer error:', this.viewer)
|
|
73
|
+
// 开启深度测试
|
|
74
|
+
this.viewer.scene.globe.depthTestAgainstTerrain = true
|
|
75
|
+
if (this.params && this.params.type)
|
|
76
|
+
{
|
|
77
|
+
this.layer = this.creatLayer(this.viewer)
|
|
78
|
+
switch (this.params.type)
|
|
79
|
+
{
|
|
80
|
+
case TYPE.MeasureLine : this.onMeasure(this.viewer, this.layer, TYPE.MeasureLine); break
|
|
81
|
+
case TYPE.MeasureArea : this.onMeasure(this.viewer, this.layer, TYPE.MeasureArea); break
|
|
82
|
+
case TYPE.MeasureAngle : this.onMeasure(this.viewer, this.layer, TYPE.MeasureAngle); break
|
|
83
|
+
case TYPE.Clear : this.onClear(); break
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
// 创建图层
|
|
89
|
+
creatLayer(viewer)
|
|
90
|
+
{
|
|
91
|
+
let layer = new cxe.VectorLayer(this.params.type + 'layer')
|
|
92
|
+
viewer.layers.addLayer(layer)
|
|
93
|
+
return layer
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
// 量算
|
|
97
|
+
onMeasure(viewer, layer, type)
|
|
98
|
+
{
|
|
99
|
+
this.instrument[type] = new cxe[type](viewer, { layer })
|
|
100
|
+
this.instrument[type].start()
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
// 消除对应的事件
|
|
104
|
+
onIncident()
|
|
105
|
+
{
|
|
106
|
+
this.viewer.layers.removeLayer(this.layer)
|
|
107
|
+
|
|
108
|
+
Object.keys(this.instrument).forEach(item =>
|
|
109
|
+
{
|
|
110
|
+
if (this.instrument[item] !== '')
|
|
111
|
+
this.instrument[item].destroy()
|
|
112
|
+
})
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
// 清除绘制
|
|
116
|
+
onClear()
|
|
117
|
+
{
|
|
118
|
+
cx.run.closeRun('TMeasureClear')
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
</script>
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
// 1、定位:position, z-index, left, right, top, bottom, clip
|
|
3
|
+
// 2、自身:width, height, min-height, max-height, min-width, max-width
|
|
4
|
+
// 3、文字:color, font-size, letter-spacing, color, text-align
|
|
5
|
+
// 4、背景:background-image, border
|
|
6
|
+
</style>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<!-- 标签语义化:header、nav、main、article、aside、footer、section -->
|
|
10
|
+
<div></div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 组件 - 恢复默认视角-cesium
|
|
17
|
+
*
|
|
18
|
+
* 调用说明:
|
|
19
|
+
* @prop {Object} xxxxxx 描述参数
|
|
20
|
+
*
|
|
21
|
+
* @event event 响应方法以及参数
|
|
22
|
+
*
|
|
23
|
+
* @slot default 描述
|
|
24
|
+
*
|
|
25
|
+
* 参数说明:
|
|
26
|
+
* xxx参数
|
|
27
|
+
* @param {Object} xxx 描述参数
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 修改记录:
|
|
32
|
+
* 22-06-20 姓名 修改内容
|
|
33
|
+
*/
|
|
34
|
+
export default
|
|
35
|
+
{
|
|
36
|
+
mixins: [cx.mixin.IPlugBase],
|
|
37
|
+
components: {},
|
|
38
|
+
|
|
39
|
+
data()
|
|
40
|
+
{
|
|
41
|
+
return {
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
// 计算属性,依赖其他数据数字计算
|
|
47
|
+
computed:
|
|
48
|
+
{},
|
|
49
|
+
|
|
50
|
+
// 属性监听,处理属性变化后有大量操作
|
|
51
|
+
watch:
|
|
52
|
+
{},
|
|
53
|
+
|
|
54
|
+
// 初始化组件,data中数据变量赋值
|
|
55
|
+
created()
|
|
56
|
+
{
|
|
57
|
+
this.viewer = this.params.viewer ? window[this.params.viewer] : window.Viewer
|
|
58
|
+
this.getViewData()
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
// 组件dom挂载成功
|
|
62
|
+
mounted()
|
|
63
|
+
{},
|
|
64
|
+
|
|
65
|
+
// 销毁前
|
|
66
|
+
beforeUnmount()
|
|
67
|
+
{},
|
|
68
|
+
|
|
69
|
+
// 按功能相关性组织函数块,函数名体现功能
|
|
70
|
+
methods:
|
|
71
|
+
{
|
|
72
|
+
// 设置视角和朝向
|
|
73
|
+
setView(center, orientation)
|
|
74
|
+
{
|
|
75
|
+
this.viewer.camera.flyTo({
|
|
76
|
+
destination: Cesium.Cartesian3.fromDegrees(center.longitude, center.latitude, center.height),
|
|
77
|
+
orientation: {
|
|
78
|
+
heading: Cesium.Math.toRadians(cx.base.defVal(orientation.heading, 0)), // y
|
|
79
|
+
pitch: Cesium.Math.toRadians(cx.base.defVal(orientation.pitch, -90)), // x
|
|
80
|
+
roll: Cesium.Math.toRadians(cx.base.defVal(orientation.roll, 0)) // z
|
|
81
|
+
}
|
|
82
|
+
})
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
getViewData()
|
|
86
|
+
{
|
|
87
|
+
if ($g.init.viewport)
|
|
88
|
+
{
|
|
89
|
+
let center = $g.init.viewport[0].center, orientation = $g.init.viewport[0].orientation
|
|
90
|
+
this.setView(center, orientation)
|
|
91
|
+
}
|
|
92
|
+
else
|
|
93
|
+
{
|
|
94
|
+
cx.svr.data.query(cx.consts.SYSTAB, cx.consts.TAB_VIEWPORT, { args: [['sys', '=', $g.user.sys]] }).then((result) =>
|
|
95
|
+
{
|
|
96
|
+
if (result.length)
|
|
97
|
+
{
|
|
98
|
+
let center = result[0].center, orientation = result[0].center
|
|
99
|
+
this.setView(center, orientation)
|
|
100
|
+
}
|
|
101
|
+
}).catch((err) =>
|
|
102
|
+
{
|
|
103
|
+
console.log(err, 'viewport没有数据')
|
|
104
|
+
})
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</script>
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件名称: 无
|
|
3
|
+
* 功能说明: 根据wms服务url取能力文档,会解析xml
|
|
4
|
+
* 研发时间: 2022.12.28
|
|
5
|
+
* 研发人员: 张光辉
|
|
6
|
+
* 参数说明: 暂无
|
|
7
|
+
* @param {Object} params 参数
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import axios from 'axios'
|
|
11
|
+
import X2js from 'x2js'
|
|
12
|
+
const x2js = new X2js()
|
|
13
|
+
export default
|
|
14
|
+
{
|
|
15
|
+
mixins: [],
|
|
16
|
+
components: {},
|
|
17
|
+
props:
|
|
18
|
+
{},
|
|
19
|
+
data()
|
|
20
|
+
{
|
|
21
|
+
return {
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
// 计算属性,依赖其他数据数字计算
|
|
27
|
+
computed:
|
|
28
|
+
{},
|
|
29
|
+
|
|
30
|
+
// 属性监听,处理属性变化后有大量操作
|
|
31
|
+
watch:
|
|
32
|
+
{},
|
|
33
|
+
|
|
34
|
+
// 初始化组件,data中数据变量赋值
|
|
35
|
+
created()
|
|
36
|
+
{
|
|
37
|
+
// this.getWmsGetCapabilities('http://192.168.2.225:6080/arcgis/rest/services/xzdz/GCDZ/MapServer/WMSServer')
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
// 组件dom挂载成功
|
|
41
|
+
mounted()
|
|
42
|
+
{},
|
|
43
|
+
|
|
44
|
+
// 销毁前
|
|
45
|
+
beforeUnmount()
|
|
46
|
+
{},
|
|
47
|
+
|
|
48
|
+
// 按功能相关性组织函数块,函数名体现功能
|
|
49
|
+
methods:
|
|
50
|
+
{
|
|
51
|
+
// 更新wms3表rectangle, (三维也需要更新wms3,故写到这里)
|
|
52
|
+
updateWmsRectangle(wms, rectangle)
|
|
53
|
+
{
|
|
54
|
+
let _params = {}
|
|
55
|
+
let wms3 = $g.init.wms3.find(wms3 => wms3.name === wms.name)
|
|
56
|
+
if (wms3.params) _params = { ...wms3.params, rectangle }
|
|
57
|
+
else _params = { rectangle }
|
|
58
|
+
let param =
|
|
59
|
+
{
|
|
60
|
+
id: wms3.id,
|
|
61
|
+
cols: 'params',
|
|
62
|
+
params: JSON.stringify(_params)
|
|
63
|
+
}
|
|
64
|
+
cx.svr.data.update($app.TabConst.wms3.major, $app.TabConst.wms3.minor, param).then(_ =>
|
|
65
|
+
{
|
|
66
|
+
wms3.params = _params
|
|
67
|
+
}).catch(err => console.log(err))
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* 获取有效的url地址,必须以'/WMSServer'结尾。
|
|
72
|
+
* @method
|
|
73
|
+
* @param {String} url url地址
|
|
74
|
+
* @returns {String} 构造好的有效的url地址
|
|
75
|
+
*/
|
|
76
|
+
getUseUrl(url)
|
|
77
|
+
{
|
|
78
|
+
// 校验url是不是以'/WMSServer'结尾,不是的话拼接上
|
|
79
|
+
if (url.split('/').pop() === 'WMSServer')
|
|
80
|
+
return url.replace('/rest', '')
|
|
81
|
+
return `${url.replace('/rest', '')}/WMSServer`
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 查询xml的能力文档
|
|
86
|
+
* @param {String} url wms的url
|
|
87
|
+
* @returns Promises
|
|
88
|
+
*/
|
|
89
|
+
getWmsGetCapabilities(url)
|
|
90
|
+
{
|
|
91
|
+
let str = '?request=GetCapabilities&service=WMS'
|
|
92
|
+
let _url = this.getUseUrl(url)
|
|
93
|
+
return new Promise((resolve, reject) =>
|
|
94
|
+
{
|
|
95
|
+
axios.get(_url + str).then(ret =>
|
|
96
|
+
{
|
|
97
|
+
if (ret.status === 200)
|
|
98
|
+
resolve(this.xmlToJson(ret.data))
|
|
99
|
+
}).catch(reject)
|
|
100
|
+
})
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
// xml文档解析成对象
|
|
104
|
+
xmlToJson(xml)
|
|
105
|
+
{
|
|
106
|
+
let data = x2js.xml2js(xml)
|
|
107
|
+
return data
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
// 根据能力文档取到具体layer的信息
|
|
111
|
+
async getWmsLayerByXml(url, name, isWms)
|
|
112
|
+
{
|
|
113
|
+
let xmlData = await this.getWmsGetCapabilities(url)
|
|
114
|
+
if (isWms && isWms === 'wms')
|
|
115
|
+
{
|
|
116
|
+
let layer = Number(name) + 1
|
|
117
|
+
name = xmlData.WMS_Capabilities.Capability.Layer.Layer.length ? (xmlData.WMS_Capabilities.Capability.Layer.Layer.length - layer).toString() : '0'
|
|
118
|
+
}
|
|
119
|
+
return xmlData.WMS_Capabilities.Capability.Layer.Layer.length ? xmlData.WMS_Capabilities.Capability.Layer.Layer.find(layer => layer.Name === name) : xmlData.WMS_Capabilities.Capability.Layer.Layer
|
|
120
|
+
},
|
|
121
|
+
getBbox(layer)
|
|
122
|
+
{
|
|
123
|
+
return layer.EX_GeographicBoundingBox.westBoundLongitude + ',' + layer.EX_GeographicBoundingBox.southBoundLatitude + ',' + layer.EX_GeographicBoundingBox.eastBoundLongitude + ',' + layer.EX_GeographicBoundingBox.northBoundLatitude
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
import { open } from 'shapefile'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @param {String} shp shp的地址
|
|
6
|
+
* @param {String} dbf dbf的地址
|
|
7
|
+
* @return Promise
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
const shpToGeoJson = async function(shp, dbf)
|
|
11
|
+
{
|
|
12
|
+
let features = []
|
|
13
|
+
return open(shp, dbf, { encoding: 'UTF-8' })
|
|
14
|
+
.then(source => source.read()
|
|
15
|
+
.then(function log(result)
|
|
16
|
+
{
|
|
17
|
+
if (result.done) return features
|
|
18
|
+
features.push(result.value)
|
|
19
|
+
return source.read().then(log)
|
|
20
|
+
}))
|
|
21
|
+
.catch(error => console.error(error.stack))
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default shpToGeoJson
|
|
@@ -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
|