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,101 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.set-opacity {width: 100%; color: white; padding: 0.2rem; display: flex; justify-content: space-around; box-sizing: border-box;
|
|
3
|
+
.demonstration {display: inline-block; height: 30px; line-height: 30px;}
|
|
4
|
+
.el-slider {width: 80%;}
|
|
5
|
+
.btn-bc {position: relative; left: 75%; top: 10%; color: var(--cx-colorText12); border: 0.01rem solid var(--cx-colorGoing2); border-radius: 5px; background-color: var(--cx-colorGoing0);}
|
|
6
|
+
}
|
|
7
|
+
</style>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<cx-layout>
|
|
11
|
+
<cx-region region='center'>
|
|
12
|
+
<div class="set-opacity">
|
|
13
|
+
<el-slider v-if="params.type !== 'xrsz'" v-model="sliderValue" @change="setModOpac" />
|
|
14
|
+
<el-select
|
|
15
|
+
v-else
|
|
16
|
+
v-model="showType"
|
|
17
|
+
:size="size"
|
|
18
|
+
clearable
|
|
19
|
+
:placeholder="'请选择grd渲染类型'"
|
|
20
|
+
@change="setModOpac"
|
|
21
|
+
>
|
|
22
|
+
<el-option
|
|
23
|
+
v-for="(item, index) in options"
|
|
24
|
+
:key="index"
|
|
25
|
+
:label="item.label"
|
|
26
|
+
:value="item.value">
|
|
27
|
+
<div>
|
|
28
|
+
<span>
|
|
29
|
+
<img :src="item.url" style="width: 100%; height: 15px;">
|
|
30
|
+
</span>
|
|
31
|
+
</div>
|
|
32
|
+
</el-option>
|
|
33
|
+
</el-select>
|
|
34
|
+
</div>
|
|
35
|
+
</cx-region>
|
|
36
|
+
</cx-layout>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script >
|
|
40
|
+
/**
|
|
41
|
+
* 组件 - 透明度设置--img图层
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 修改记录:
|
|
46
|
+
* 24-09-09 黄佳龙 首次提交
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
export default {
|
|
50
|
+
mixins: [cx.mixin.IPlugBase],
|
|
51
|
+
data()
|
|
52
|
+
{
|
|
53
|
+
return {
|
|
54
|
+
sliderValue: 100,
|
|
55
|
+
modData: null,
|
|
56
|
+
modName: '模型',
|
|
57
|
+
showType: 'brg',
|
|
58
|
+
options:
|
|
59
|
+
[
|
|
60
|
+
{ label: 'brg', value: 'brg', url: 'static/img/znycpjxt/brg.png' },
|
|
61
|
+
{ label: 'bwr', value: 'bwr', url: 'static/img/znycpjxt/bwr.png' },
|
|
62
|
+
{ label: 'coolwarm', value: 'coolwarm', url: 'static/img/znycpjxt/coolwarm.png' },
|
|
63
|
+
{ label: 'gist_earth', value: 'gist_earth', url: 'static/img/znycpjxt/gist-earth.png' },
|
|
64
|
+
{ label: 'gist_rainbow', value: 'gist_rainbow', url: 'static/img/znycpjxt/gist-rainbow.png' },
|
|
65
|
+
{ label: 'jet', value: 'jet', url: 'static/img/znycpjxt/jet.png' },
|
|
66
|
+
{ label: 'ocean', value: 'ocean', url: 'static/img/znycpjxt/ocean.png' },
|
|
67
|
+
{ label: 'rainbow', value: 'rainbow', url: 'static/img/znycpjxt/rainbow.png' },
|
|
68
|
+
{ label: 'RdBu', value: 'RdBu', url: 'static/img/znycpjxt/RdBu.png' },
|
|
69
|
+
{ label: 'RdYlBu', value: 'RdYlBu', url: 'static/img/znycpjxt/RdYlBu.png' },
|
|
70
|
+
{ label: 'RdYlGn', value: 'RdYlGn', url: 'static/img/znycpjxt/RdYlGn.png' },
|
|
71
|
+
{ label: 'seismic', value: 'seismic', url: 'static/img/znycpjxt/seismic.png' },
|
|
72
|
+
{ label: 'Spectral', value: 'Spectral', url: 'static/img/znycpjxt/Spectral.png' },
|
|
73
|
+
{ label: 'terrain', value: 'terrain', url: 'static/img/znycpjxt/terrain.png' },
|
|
74
|
+
{ label: 'turbo', value: 'turbo', url: 'static/img/znycpjxt/turbo.png' }
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
created()
|
|
80
|
+
{
|
|
81
|
+
if (this.params.sliderValue)
|
|
82
|
+
this.sliderValue = this.params.sliderValue
|
|
83
|
+
if (this.params.showType || this.params.type == 'xrsz')
|
|
84
|
+
{
|
|
85
|
+
this.setTitle('渲染设置')
|
|
86
|
+
this.showType = this.params.showType
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
methods: {
|
|
91
|
+
/**
|
|
92
|
+
* 设置透明度或渲染类型
|
|
93
|
+
* @param {Number|String} value 参数值
|
|
94
|
+
*/
|
|
95
|
+
setModOpac(value)
|
|
96
|
+
{
|
|
97
|
+
cx.base.call(this.params.onOk, value)
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
</script>
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.dsj-tree {width: 100%; height: 100%; position: relative; overflow: auto;}
|
|
3
|
+
:deep(.el-tree) {height: 8rem; width: 5rem; overflow: auto; margin-top: 0.12rem;}
|
|
4
|
+
:deep(.custom-tree-node) {font-size: 14px;}
|
|
5
|
+
.menu {position: absolute; width: 1.2rem; height: 0.42rem; cursor: pointer; border: 0.01rem solid var(--cx-colorBorder1); border-radius: 0.05rem; background: var(--cx-colorBg5);}
|
|
6
|
+
.menu_add {text-align: center; line-height: 0.42rem; font-size: 0.14rem;}
|
|
7
|
+
.menu:hover {background: var(--cx-colorPrimary6); color: var(--cx-colorText12) !important;}
|
|
8
|
+
</style>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div class="dsj-tree">
|
|
12
|
+
<el-input placeholder="输入关键字" v-model="filterText"></el-input>
|
|
13
|
+
<el-tree ref="treeRef"
|
|
14
|
+
v-if="nodes.length"
|
|
15
|
+
default-expand-all
|
|
16
|
+
show-checkbox
|
|
17
|
+
:data="nodes"
|
|
18
|
+
:props="defaultProps"
|
|
19
|
+
:filter-node-method="filterNode"
|
|
20
|
+
@node-click="onClickNode"
|
|
21
|
+
@current-change="onCurrentChange"
|
|
22
|
+
@node-contextmenu="onCont"
|
|
23
|
+
@check-change="onCheckChange"
|
|
24
|
+
>
|
|
25
|
+
<template #default="{ node, data }">
|
|
26
|
+
<span class="custom-tree-node" >
|
|
27
|
+
<!-- <img class="cx-icon" src="static/img/ui/wenjian.png" style="margin-right: 0.05rem;"> -->
|
|
28
|
+
<span>{{node.label}}</span>
|
|
29
|
+
</span>
|
|
30
|
+
</template>
|
|
31
|
+
</el-tree>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script>
|
|
36
|
+
/**
|
|
37
|
+
* 组件 - 大数据中心服务树
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 维护历史:
|
|
42
|
+
* 24-03-26 张光辉 首次编写
|
|
43
|
+
*/
|
|
44
|
+
import DsjzxApi from './api/DsjzxApi.js'
|
|
45
|
+
export default
|
|
46
|
+
{
|
|
47
|
+
data()
|
|
48
|
+
{
|
|
49
|
+
return {
|
|
50
|
+
filterText: '',
|
|
51
|
+
nodes: [],
|
|
52
|
+
defaultProps: {
|
|
53
|
+
children: 'children',
|
|
54
|
+
label: 'name'
|
|
55
|
+
},
|
|
56
|
+
meunshow: false,
|
|
57
|
+
leftData: null
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
emits: ['check-change', 'current-change'],
|
|
62
|
+
|
|
63
|
+
watch: {
|
|
64
|
+
filterText(val)
|
|
65
|
+
{
|
|
66
|
+
this.$refs.treeRef.filter(val)
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
mounted()
|
|
71
|
+
{
|
|
72
|
+
this.reqLayerTreeData()
|
|
73
|
+
this.contextClick()
|
|
74
|
+
|
|
75
|
+
cx.events.listen(this, 'tmdSet', () =>
|
|
76
|
+
{
|
|
77
|
+
this.tmdSet()
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
// setTimeout(() =>
|
|
81
|
+
// {
|
|
82
|
+
// debugger
|
|
83
|
+
// const hbToken = this.getSessionCookies('hb_token')
|
|
84
|
+
// let opt = {
|
|
85
|
+
// // url: `https://geocloud.hubgs.com/api/igs/rest/ogc/doc/${data.code}/WMSServer?styles=default&hb_token=eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJjb20uem9uZHkuc2hpcm8iLCJpc3MiOiJjb20uem9uZHkuc2hpcm8iLCJpYXQiOjE3NTEzNzk3OTUsInN1YiI6IjQxMDg2IiwiZXhwIjoxODgwOTc5Nzk1fQ.0eKckfMW8II3UA2bHjRrjiW7W3iBoMwkMiIl0SyO8ZI`,
|
|
86
|
+
// // url: 'geocloud/api/igs/rest/ogc/WMTSServer',
|
|
87
|
+
// url: `https://geocloud.hubgs.com/api/igs/rest/ogc/doc/020101010008003/WMSServer?styles=default&hb_token=eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJjb20uem9uZHkuc2hpcm8iLCJpc3MiOiJjb20uem9uZHkuc2hpcm8iLCJpYXQiOjE3Njg5NjE5ODYsInN1YiI6IjQwMzkxIiwiZXhwIjoxNzY4OTY0Njg2fQ.nrQ4OWyJceRNI3Ln_rKcKsHAyTWx7flVf7oElLUpVWI`,
|
|
88
|
+
// format: 'image/png',
|
|
89
|
+
// layers: '020101010008003',
|
|
90
|
+
// parameters: {
|
|
91
|
+
// service: 'WMS',
|
|
92
|
+
// transparent: true
|
|
93
|
+
// }
|
|
94
|
+
// }
|
|
95
|
+
// let baseLayer = new cxe.ImageryLayer('wms', opt)
|
|
96
|
+
// baseLayer.name = '020101010008003'
|
|
97
|
+
// Viewer.layers.addImageryLayer(baseLayer)
|
|
98
|
+
// }, 10000)
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
methods:
|
|
102
|
+
{
|
|
103
|
+
/**
|
|
104
|
+
* 右键菜单事件
|
|
105
|
+
* @param {Event} event 事件对象
|
|
106
|
+
* @param {Object} data 节点数据
|
|
107
|
+
*/
|
|
108
|
+
onCont(event, data)
|
|
109
|
+
{
|
|
110
|
+
const menu = document.getElementsByClassName('menu')[0]
|
|
111
|
+
// this.meunshow = true
|
|
112
|
+
this.$emit('meunshow', true)
|
|
113
|
+
menu.style.left = event.pageX + 15 + 'px'
|
|
114
|
+
menu.style.top = data.glid === 0 ? event.pageY + 'px' : event.pageY - 70 + 'px'
|
|
115
|
+
menu.style.zIndex = 9999
|
|
116
|
+
this.leftData = data
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* 注册右键菜单点击事件
|
|
121
|
+
*/
|
|
122
|
+
contextClick()
|
|
123
|
+
{
|
|
124
|
+
this.clickHandler = () =>
|
|
125
|
+
{
|
|
126
|
+
this.$emit('meunshow', false)
|
|
127
|
+
}
|
|
128
|
+
document.documentElement.addEventListener('click', this.clickHandler)
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* 透明度设置
|
|
133
|
+
*/
|
|
134
|
+
tmdSet()
|
|
135
|
+
{
|
|
136
|
+
let self = this
|
|
137
|
+
this.meunshow = false
|
|
138
|
+
let onOK = async(value) =>
|
|
139
|
+
{
|
|
140
|
+
window.Viewer.imageryLayers._layers.forEach((item) =>
|
|
141
|
+
{
|
|
142
|
+
if (item && item?.tcmc == self.leftData.layerName)
|
|
143
|
+
item.alpha = value / 100
|
|
144
|
+
})
|
|
145
|
+
}
|
|
146
|
+
let sliderValue = 0
|
|
147
|
+
window.Viewer.imageryLayers._layers.forEach((item) =>
|
|
148
|
+
{
|
|
149
|
+
if (item && item?.tcmc == self.leftData.layerName)
|
|
150
|
+
sliderValue = item.alpha ? item.alpha * 100 : 0
|
|
151
|
+
})
|
|
152
|
+
cx.run.runPlug('SetOpacity', { onOk: onOK, sliderValue: sliderValue })
|
|
153
|
+
},
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* 请求图层树数据
|
|
157
|
+
*/
|
|
158
|
+
async reqLayerTreeData()
|
|
159
|
+
{
|
|
160
|
+
try
|
|
161
|
+
{
|
|
162
|
+
DsjzxApi.getTree().then((data) =>
|
|
163
|
+
{
|
|
164
|
+
if (data.data)
|
|
165
|
+
this.nodes = data.data.t
|
|
166
|
+
})
|
|
167
|
+
}
|
|
168
|
+
catch
|
|
169
|
+
{
|
|
170
|
+
this.nodes = []
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* 树节点勾选变化事件
|
|
176
|
+
* @param {Object} data 节点数据
|
|
177
|
+
* @param {Boolean} checked 是否选中
|
|
178
|
+
* @param {Boolean} childrenChecked 子节点是否选中
|
|
179
|
+
*/
|
|
180
|
+
onCheckChange(data, checked, childrenChecked)
|
|
181
|
+
{
|
|
182
|
+
let layer = null
|
|
183
|
+
for (let i in window.Viewer.layers._ImageryCache)
|
|
184
|
+
{
|
|
185
|
+
if (window.Viewer.layers._ImageryCache[i].name == data.code)
|
|
186
|
+
layer = window.Viewer.layers._ImageryCache[i]
|
|
187
|
+
}
|
|
188
|
+
if (data.code && !layer)
|
|
189
|
+
this.loadWms(data)
|
|
190
|
+
else
|
|
191
|
+
layer.show = checked
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* 加载WMS图层
|
|
196
|
+
* @param {Object} data 节点数据
|
|
197
|
+
*/
|
|
198
|
+
loadWms(data)
|
|
199
|
+
{
|
|
200
|
+
const hbToken = this.getSessionCookies('hb_token')
|
|
201
|
+
let opt = {
|
|
202
|
+
// url: `https://geocloud.hubgs.com/api/igs/rest/ogc/doc/${data.code}/WMSServer?styles=default&hb_token=eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJjb20uem9uZHkuc2hpcm8iLCJpc3MiOiJjb20uem9uZHkuc2hpcm8iLCJpYXQiOjE3NTEzNzk3OTUsInN1YiI6IjQxMDg2IiwiZXhwIjoxODgwOTc5Nzk1fQ.0eKckfMW8II3UA2bHjRrjiW7W3iBoMwkMiIl0SyO8ZI`,
|
|
203
|
+
// url: 'geocloud/api/igs/rest/ogc/WMTSServer',
|
|
204
|
+
url: `https://geocloud.hubgs.com/api/igs/rest/ogc/doc/${data.code}/WMSServer?styles=default&hb_token=${hbToken}`,
|
|
205
|
+
format: 'image/png',
|
|
206
|
+
layers: data.code,
|
|
207
|
+
parameters: {
|
|
208
|
+
service: 'WMS',
|
|
209
|
+
transparent: true
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
let baseLayer = new cxe.ImageryLayer('wms', opt)
|
|
213
|
+
baseLayer.name = data.code
|
|
214
|
+
Viewer.layers.addImageryLayer(baseLayer)
|
|
215
|
+
},
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* 从Cookie中获取指定名称的值
|
|
219
|
+
* @param {string} name - 要获取的Cookie名称
|
|
220
|
+
* @returns {string|null} 返回对应的值,不存在则返回null
|
|
221
|
+
*/
|
|
222
|
+
getSessionCookies(name)
|
|
223
|
+
{
|
|
224
|
+
let baseToken = 'eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJjb20uem9uZHkuc2hpcm8iLCJpc3MiOiJjb20uem9uZHkuc2hpcm8iLCJpYXQiOjE3NTEzNzk3OTUsInN1YiI6IjQxMDg2IiwiZXhwIjoxODgwOTc5Nzk1fQ.0eKckfMW8II3UA2bHjRrjiW7W3iBoMwkMiIl0SyO8ZI'
|
|
225
|
+
// 解析 Cookie 为对象
|
|
226
|
+
let list = window.localStorage.getItem('hb_token')
|
|
227
|
+
list = list ? list : baseToken
|
|
228
|
+
return list
|
|
229
|
+
},
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* 过滤树节点
|
|
233
|
+
* @param {String} value 过滤值
|
|
234
|
+
* @param {Object} data 节点数据
|
|
235
|
+
* @returns {Boolean} 是否匹配
|
|
236
|
+
*/
|
|
237
|
+
filterNode(value, data)
|
|
238
|
+
{
|
|
239
|
+
if (!value) return true
|
|
240
|
+
return data.name.indexOf(value) !== -1
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
</script>
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.spat-tree {margin-top: 5%;}
|
|
3
|
+
</style>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<cx-tree-syn ref="tree"
|
|
7
|
+
class="tree-cont"
|
|
8
|
+
v-if="nodes.length"
|
|
9
|
+
v-bind="treeCfg || {}"
|
|
10
|
+
:data="nodes"
|
|
11
|
+
:show-checkbox="true"
|
|
12
|
+
:plugs="plugs"
|
|
13
|
+
show-filter
|
|
14
|
+
@node-click="onClickNode"
|
|
15
|
+
@current-change="onCurrentChange"
|
|
16
|
+
@check-change="onCheckChange"
|
|
17
|
+
/>
|
|
18
|
+
</template>
|
|
19
|
+
<script>
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 组件 - 空间数据资源树
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 修改记录:
|
|
27
|
+
* 23-09-05 黄佳龙 首次提交
|
|
28
|
+
*/
|
|
29
|
+
export default
|
|
30
|
+
{
|
|
31
|
+
mixins: [cx.mixin.IPlugBase, cx.mixin.IAttBase],
|
|
32
|
+
|
|
33
|
+
data()
|
|
34
|
+
{
|
|
35
|
+
return {
|
|
36
|
+
treeCfg:
|
|
37
|
+
{
|
|
38
|
+
selectFirst: true,
|
|
39
|
+
expandAll: true,
|
|
40
|
+
showFilter: true,
|
|
41
|
+
showCheckbox: false
|
|
42
|
+
},
|
|
43
|
+
plugs: this.getTreePlugs(),
|
|
44
|
+
nodes: []
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
created()
|
|
49
|
+
{
|
|
50
|
+
this.makeNodes()
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
mounted()
|
|
54
|
+
{
|
|
55
|
+
cx.events.listen(this, 'getNewTree', (params) =>
|
|
56
|
+
{
|
|
57
|
+
if (params.resData)
|
|
58
|
+
{
|
|
59
|
+
// this.$refs.tree.getTree().append(params.resData, this.nodes)
|
|
60
|
+
let node = {
|
|
61
|
+
att: params.resData
|
|
62
|
+
}
|
|
63
|
+
node.label = params.resData.name + (params.resData.layer ? ('-' + params.resData.layer) : '')
|
|
64
|
+
this.nodes.push(node)
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
methods: {
|
|
70
|
+
/**
|
|
71
|
+
* 获取树节点插件
|
|
72
|
+
* @returns {Array} 插件数组
|
|
73
|
+
*/
|
|
74
|
+
getTreePlugs()
|
|
75
|
+
{
|
|
76
|
+
return [
|
|
77
|
+
cx.dc.Plug.plugNode('透明度设置', _ => true, _ => true, this.tmdSetYcl, null, ''),
|
|
78
|
+
cx.dc.Plug.plugNode('渲染设置', _ => true, _ => true, this.xrsz, null, '')
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* 透明度设置
|
|
84
|
+
* @param {Object} data 节点数据
|
|
85
|
+
*/
|
|
86
|
+
tmdSetYcl(data)
|
|
87
|
+
{
|
|
88
|
+
let onOK = async(value) =>
|
|
89
|
+
{
|
|
90
|
+
if (window?.Viewer?.entities?.values)
|
|
91
|
+
{
|
|
92
|
+
window.Viewer.entities.values.forEach((item) =>
|
|
93
|
+
{
|
|
94
|
+
if (item.name == 'layer' + data.att.mediaId)
|
|
95
|
+
|
|
96
|
+
item.polygon.material.color = new Cesium.Color(1.0, 1.0, 1.0, value / 100)
|
|
97
|
+
})
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
let sliderValue = 0
|
|
101
|
+
window.Viewer.entities.values.forEach((item) =>
|
|
102
|
+
{
|
|
103
|
+
if (item.name == 'layer' + data.att.mediaId)
|
|
104
|
+
sliderValue = item.polygon.material.color ? item.polygon.material.color._value.alpha * 100 : 100
|
|
105
|
+
})
|
|
106
|
+
cx.run.runPlug('SetOpacity', { onOk: onOK, sliderValue: sliderValue })
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* 渲染设置
|
|
111
|
+
* @param {Object} data 节点数据
|
|
112
|
+
*/
|
|
113
|
+
xrsz(data)
|
|
114
|
+
{
|
|
115
|
+
if (data.att.datatype !== 'grd') return this.$showMsg('该节点暂不支持', 'warning')
|
|
116
|
+
let onOK = async(value) =>
|
|
117
|
+
{
|
|
118
|
+
data.att.showType = value
|
|
119
|
+
this.params.onCheckChangeTree(data, false)
|
|
120
|
+
this.$nextTick(() =>
|
|
121
|
+
{
|
|
122
|
+
this.params.onCheckChangeTree(data, true)
|
|
123
|
+
})
|
|
124
|
+
}
|
|
125
|
+
cx.run.runPlug('SetOpacity', { onOk: onOK, type: 'xrsz', showType: data.att.showType })
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* 获取默认数据集
|
|
130
|
+
* @returns {Promise} 数据集数组
|
|
131
|
+
*/
|
|
132
|
+
getMrSjj()
|
|
133
|
+
{
|
|
134
|
+
return cx.svr.data.query($app.TabConst.sjj.major, $app.TabConst.sjj.minor, { args: [['userid', '=', $g.user.id, null], ['defdata', '=', 1, 'and']] })
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* 构造树节点
|
|
139
|
+
*/
|
|
140
|
+
async makeNodes()
|
|
141
|
+
{
|
|
142
|
+
let data = await this.getMrSjj()
|
|
143
|
+
if (!this.params.params.showSjj)
|
|
144
|
+
{
|
|
145
|
+
cx.dc.Tree.trees('sjjBqqd', { username: $g.user.id, glid: this.params.params.nodeId ? this.params.params.nodeId : data[0].id }).then(ret =>
|
|
146
|
+
{
|
|
147
|
+
ret[0].filters = [() => [['datatype', '!=', 'csv', 'and'], ['datatype', '!=', 'tif', 'and'], ['gcsj', '=', 1, 'and']]]
|
|
148
|
+
let glid = this.params.params.nodeId ? this.params.params.nodeId : data[0].id
|
|
149
|
+
ret[0].source.vals = $g.user.id + ',' + glid
|
|
150
|
+
let makeTreeData = new cx.dc.TreeData({
|
|
151
|
+
nodes: ret,
|
|
152
|
+
onLoad: this.onLoad,
|
|
153
|
+
hideNode: this.hideNode,
|
|
154
|
+
disableNode: this.disableNode
|
|
155
|
+
})
|
|
156
|
+
makeTreeData.run()
|
|
157
|
+
})
|
|
158
|
+
}
|
|
159
|
+
else
|
|
160
|
+
{
|
|
161
|
+
cx.dc.Tree.trees('sjjBqqd', { username: $g.user.id, glid: this.params.params.nodeId ? this.params.params.nodeId : data[0].id }).then(ret =>
|
|
162
|
+
{
|
|
163
|
+
ret[0].filters = [() => [['datatype', '!=', 'tif', 'and']]]
|
|
164
|
+
let glid = this.params.params.nodeId ? this.params.params.nodeId : data[0].id
|
|
165
|
+
ret[0].source.vals = $g.user.id + ',' + glid
|
|
166
|
+
let makeTreeData = new cx.dc.TreeData({
|
|
167
|
+
nodes: ret,
|
|
168
|
+
onLoad: this.onLoad,
|
|
169
|
+
hideNode: this.hideNode,
|
|
170
|
+
disableNode: this.disableNode
|
|
171
|
+
})
|
|
172
|
+
makeTreeData.run()
|
|
173
|
+
})
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* 树节点加载完成回调
|
|
179
|
+
* @param {Array} data 节点数组
|
|
180
|
+
*/
|
|
181
|
+
onLoad(data)
|
|
182
|
+
{
|
|
183
|
+
data.forEach((item) =>
|
|
184
|
+
{
|
|
185
|
+
item.label = item.att.name + (item.att.layer ? ('-' + item.att.layer) : '')
|
|
186
|
+
})
|
|
187
|
+
this.nodes = data
|
|
188
|
+
if (this.params.params?.row?.cqfilename)
|
|
189
|
+
{
|
|
190
|
+
this.nodes.unshift({
|
|
191
|
+
label: '裁切范围',
|
|
192
|
+
att: {
|
|
193
|
+
datatype: 'POLYGON',
|
|
194
|
+
src: this.params.params.row.cqfilename,
|
|
195
|
+
epsg: this.params.params.row.epsg
|
|
196
|
+
}
|
|
197
|
+
})
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* 树节点勾选变化事件
|
|
203
|
+
* @param {Object} att 节点属性
|
|
204
|
+
* @param {Object} val 选中状态
|
|
205
|
+
*/
|
|
206
|
+
onCheckChange(att, val)
|
|
207
|
+
{
|
|
208
|
+
this.params.onCheckChangeTree(att, val)
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
</script>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* 接口类 - 大数据中心的接口
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 修改记录
|
|
8
|
+
* 24-03-27 张光辉 首次编写
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import axios from 'axios'
|
|
12
|
+
const rootUrl = 'https://geocloud.hubgs.com/api'
|
|
13
|
+
class DsjzxApi
|
|
14
|
+
{
|
|
15
|
+
static getTree(node)
|
|
16
|
+
{
|
|
17
|
+
let axios = require('axios')
|
|
18
|
+
let data = JSON.stringify([
|
|
19
|
+
'01'
|
|
20
|
+
])
|
|
21
|
+
|
|
22
|
+
let config = {
|
|
23
|
+
method: 'post',
|
|
24
|
+
url: 'https://geocloud.hubgs.com/api/map/server/tree',
|
|
25
|
+
headers: {
|
|
26
|
+
'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
|
|
27
|
+
'Content-Type': 'application/json',
|
|
28
|
+
Accept: '*/*',
|
|
29
|
+
Host: 'geocloud.hubgs.com',
|
|
30
|
+
Connection: 'keep-alive'
|
|
31
|
+
},
|
|
32
|
+
data: data
|
|
33
|
+
}
|
|
34
|
+
return axios(config)
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export default DsjzxApi
|