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,343 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.cust-border {width: 100%; height: 100%; border: 0.01rem solid var(--cx-colorBorder1); padding: 0.1rem; padding-top: 0.1rem !important;
|
|
3
|
+
:deep(.el-form .el-form-item .el-form-item__label){text-align: left ;}
|
|
4
|
+
}
|
|
5
|
+
.cust-title {font-size: 0.16rem; font-weight: 400;}
|
|
6
|
+
</style>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<cx-BorderRegular class="cust-border">
|
|
10
|
+
<cx-layout style="height: 100%;">
|
|
11
|
+
<cx-region region="north" gutter height="0.4rem;" style="display:flex; align-items:center; justify-content:space-between;">
|
|
12
|
+
<span class='cust-title'>输入</span>
|
|
13
|
+
<el-popover
|
|
14
|
+
placement="right"
|
|
15
|
+
width="600"
|
|
16
|
+
v-if="smData"
|
|
17
|
+
trigger="click">
|
|
18
|
+
<p style="white-space: pre-wrap;" v-html="smData"></p>
|
|
19
|
+
<template #reference>
|
|
20
|
+
<cx-button icon="cx-fi ic-question"> 说明</cx-button>
|
|
21
|
+
</template>
|
|
22
|
+
</el-popover>
|
|
23
|
+
</cx-region>
|
|
24
|
+
<cx-region region="center" gutter>
|
|
25
|
+
<CustomForm v-if="showForm" ref="form" v-bind="formdata" @click-seldyna="onSeldyna" @click-ckyctask="onCkyctask" @click-calculation="onCalculation"></CustomForm>
|
|
26
|
+
<AnomalsGard ref="grid" v-if="grid" :col="formdata.form.col"></AnomalsGard>
|
|
27
|
+
<slot name="form" :data='formdata.form'></slot>
|
|
28
|
+
</cx-region>
|
|
29
|
+
<cx-region region="south" border v-if="btntext">
|
|
30
|
+
<cx-cmdbar class="cx-cmd-save" :size="size">
|
|
31
|
+
<cx-button type="primary"
|
|
32
|
+
:size="size"
|
|
33
|
+
@click="onOk"
|
|
34
|
+
>
|
|
35
|
+
{{btntext}}
|
|
36
|
+
</cx-button>
|
|
37
|
+
</cx-cmdbar>
|
|
38
|
+
</cx-region>
|
|
39
|
+
</cx-layout>
|
|
40
|
+
</cx-BorderRegular>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 插件 - 数据分析模型 - 左侧表单
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 修改记录:
|
|
51
|
+
* 24-05-15 张光辉 首次编写
|
|
52
|
+
*/
|
|
53
|
+
import CustomForm from '../../coms/CustomForm.vue'
|
|
54
|
+
import MakeData from '../../coms/MakeData.js'
|
|
55
|
+
import Api from '../../Api.js'
|
|
56
|
+
import AnomalsGard from '../extgeoanomalies/AnomalsGard'
|
|
57
|
+
export default
|
|
58
|
+
{
|
|
59
|
+
mixins: [cx.mixin.IComBase, MakeData],
|
|
60
|
+
components: { CustomForm, AnomalsGard },
|
|
61
|
+
props:
|
|
62
|
+
{
|
|
63
|
+
sfmk: { type: Object },
|
|
64
|
+
multiple: { type: Boolean, default: false },
|
|
65
|
+
grid: { type: Boolean, default: false },
|
|
66
|
+
btntext: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: () =>
|
|
69
|
+
{
|
|
70
|
+
return '运行'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
fldsData: { type: Array }
|
|
74
|
+
},
|
|
75
|
+
data()
|
|
76
|
+
{
|
|
77
|
+
return {
|
|
78
|
+
smData: '',
|
|
79
|
+
formdata: {},
|
|
80
|
+
showForm: true
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
emits: ['ok-click'],
|
|
85
|
+
|
|
86
|
+
created()
|
|
87
|
+
{
|
|
88
|
+
this.initData()
|
|
89
|
+
if (this.sfmk && this.sfmk.name)
|
|
90
|
+
this.smData = window.SmData[this.sfmk.name]
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
watch: {
|
|
94
|
+
'formdata.form': {
|
|
95
|
+
handler()
|
|
96
|
+
{
|
|
97
|
+
this.$emit('formChange', this.formdata)
|
|
98
|
+
},
|
|
99
|
+
deep: true
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
// 按功能相关性组织函数块,函数名体现功能
|
|
104
|
+
methods:
|
|
105
|
+
{
|
|
106
|
+
refresh()
|
|
107
|
+
{
|
|
108
|
+
this.showForm = false
|
|
109
|
+
this.$nextTick(() =>
|
|
110
|
+
{
|
|
111
|
+
this.showForm = true
|
|
112
|
+
})
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
initData()
|
|
116
|
+
{
|
|
117
|
+
if (this.sfmk)
|
|
118
|
+
{
|
|
119
|
+
this.formdata = this.makeForm(this.sfmk)
|
|
120
|
+
if (this.sfmk.form)
|
|
121
|
+
this.formdata.form = this.sfmk.form
|
|
122
|
+
}
|
|
123
|
+
else if (this.fldsData)
|
|
124
|
+
this.formdata = this.makeForm({}, this.fldsData)
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
multiple_(fld)
|
|
128
|
+
{
|
|
129
|
+
return this.multiple || fld?.multiple
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
async onSeldyna(fld)
|
|
133
|
+
{
|
|
134
|
+
let data = await cx.svr.data.query($app.TabConst.sjj.major, $app.TabConst.sjj.minor, { args: [['userid', '=', $g.user.id, null], ['defdata', '=', 1, 'and']] })
|
|
135
|
+
let fixedExpArr
|
|
136
|
+
if (data.length)
|
|
137
|
+
fld.filetype ? fixedExpArr = [['username', '=', $g.user.id], ['datatype', 'in', fld.filetype, 'and'], ['glid', '=', data[0].id, 'and']] : fixedExpArr = [['username', '=', $g.user.id], ['datatype', 'in', 'excel,csv', 'and'], ['glid', '=', data[0].id, 'and']]
|
|
138
|
+
else
|
|
139
|
+
fld.filetype ? fixedExpArr = [['username', '=', $g.user.id], ['datatype', 'in', fld.filetype, 'and']] : fixedExpArr = [['username', '=', $g.user.id], ['datatype', 'in', 'excel,csv', 'and']]
|
|
140
|
+
if (fld.exp)
|
|
141
|
+
fixedExpArr = [...fixedExpArr, ...fld.exp]
|
|
142
|
+
let fixedExp = cx.sqlexp.from(fixedExpArr)
|
|
143
|
+
let params =
|
|
144
|
+
{
|
|
145
|
+
...$app.TabConst.yclsjj,
|
|
146
|
+
fixedExp: fixedExp,
|
|
147
|
+
multiple: this.multiple_(fld),
|
|
148
|
+
onOk: (selection) => this.onSeldynaOk(selection, fld)
|
|
149
|
+
}
|
|
150
|
+
if (fld.disptype === 'seldynaList')
|
|
151
|
+
params.multiple = true
|
|
152
|
+
if (fld.filenum)
|
|
153
|
+
params.filenum = fld.filenum
|
|
154
|
+
cx.run.runPlug('SelData', params)
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
// 表单完成回调
|
|
158
|
+
async onSeldynaOk(selection, fld)
|
|
159
|
+
{
|
|
160
|
+
if (fld.filenum && selection.length !== fld.filenum)
|
|
161
|
+
this.$showMsg(`请选择${fld.filenum}个文件`, 'warning')
|
|
162
|
+
// 重新选择时情况table 表格
|
|
163
|
+
if (this.grid)
|
|
164
|
+
this.$refs.grid.param1.table.list = []
|
|
165
|
+
|
|
166
|
+
if (selection && selection.length)
|
|
167
|
+
{
|
|
168
|
+
// 已知矿点文件数据不保存
|
|
169
|
+
if (fld.colname !== 'colYzkd')
|
|
170
|
+
this.selection = selection
|
|
171
|
+
// 设置form的值
|
|
172
|
+
if (!this.multiple_(fld))
|
|
173
|
+
{
|
|
174
|
+
if (fld.fileUrl !== 'url')
|
|
175
|
+
{
|
|
176
|
+
this.formdata.form[fld.colname] = selection.map((item) =>
|
|
177
|
+
{
|
|
178
|
+
return item.anlycol
|
|
179
|
+
})
|
|
180
|
+
}
|
|
181
|
+
// 插值分析时x,y,z 需要自动填入
|
|
182
|
+
this.formdata.form.x = selection[0].x ? selection[0].x : this.formdata.form.x
|
|
183
|
+
this.formdata.form.y = selection[0].y ? selection[0].y : this.formdata.form.y
|
|
184
|
+
if (selection[0].datatype == 'csv' || selection[0].datatype == 'excel')
|
|
185
|
+
this.formdata.form.z = selection[0].anlycol ? selection[0].anlycol : this.formdata.form.z
|
|
186
|
+
|
|
187
|
+
// 插值范围
|
|
188
|
+
let sjjData = await cx.svr.data.query($app.TabConst.sjj.major, $app.TabConst.sjj.minor, { args: [['id', '=', selection[0].glid]] })
|
|
189
|
+
|
|
190
|
+
if (sjjData.length)
|
|
191
|
+
{
|
|
192
|
+
this.formdata.form.min1 = sjjData[0].xmin1
|
|
193
|
+
this.formdata.form.max1 = sjjData[0].xmax1
|
|
194
|
+
this.formdata.form.min2 = sjjData[0].ymin1
|
|
195
|
+
this.formdata.form.max2 = sjjData[0].ymax1
|
|
196
|
+
this.formdata.form.step = sjjData[0].defprecision
|
|
197
|
+
}
|
|
198
|
+
let tab = $app.TabConst.ysjj
|
|
199
|
+
let id = selection[0].sourceid
|
|
200
|
+
if (selection.length > 0)
|
|
201
|
+
{
|
|
202
|
+
this.formdata.form.file = ''
|
|
203
|
+
this.formdata.form[fld.colname + '_file'] = []
|
|
204
|
+
this.formdata.form[fld.colname + '_data'] = []
|
|
205
|
+
for (let i in selection)
|
|
206
|
+
{
|
|
207
|
+
id = selection[i].id
|
|
208
|
+
tab = $app.TabConst.yclsjj
|
|
209
|
+
let media = await this.queryMedia(tab, id)
|
|
210
|
+
this.$emit('onSeldynaOk', selection, fld, media)
|
|
211
|
+
if (media && media.length)
|
|
212
|
+
{
|
|
213
|
+
this.formdata.form.file = media[0].filename
|
|
214
|
+
this.formdata.form[fld.colname + '_file'].push(media[0].filename)
|
|
215
|
+
this.formdata.form[fld.colname + '_data'].push(selection[i])
|
|
216
|
+
}
|
|
217
|
+
this.$emit('onSeldynaOk2', this.formdata)
|
|
218
|
+
}
|
|
219
|
+
if (fld.fileUrl === 'url')
|
|
220
|
+
this.formdata.form[fld.colname] = this.formdata.form[fld.colname + '_file'].toString()
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
else
|
|
224
|
+
{
|
|
225
|
+
let ids = [], tabs = []
|
|
226
|
+
let cols = []
|
|
227
|
+
selection.forEach(att =>
|
|
228
|
+
{
|
|
229
|
+
cols.push(att.anlycol)
|
|
230
|
+
let id = att.sourceid
|
|
231
|
+
let tab = $app.TabConst.ysjj
|
|
232
|
+
if (att.layer)
|
|
233
|
+
{
|
|
234
|
+
id = att.id
|
|
235
|
+
tab = $app.TabConst.yclsjj
|
|
236
|
+
}
|
|
237
|
+
tabs.push(tab)
|
|
238
|
+
ids.push(id)
|
|
239
|
+
})
|
|
240
|
+
fld.multiple ? this.formdata.form[fld.colname] = cols : this.formdata.form[fld.colname] = cols[0]
|
|
241
|
+
// 多个file的不知道咋传
|
|
242
|
+
let media = await this.queryMedia(tabs[0], ids)
|
|
243
|
+
if (media && media.length)
|
|
244
|
+
{
|
|
245
|
+
let filters = Array.from(media, med => med.filename)
|
|
246
|
+
this.formdata.form.files = filters
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
|
|
252
|
+
async onCkyctask(fld)
|
|
253
|
+
{
|
|
254
|
+
let data = await cx.svr.data.query($app.TabConst.sjj.major, $app.TabConst.sjj.minor, { args: [['userid', '=', $g.user.id, null], ['defdata', '=', 1, 'and']] })
|
|
255
|
+
let fixedExp = cx.sqlexp.from([['tasktype', '=', 'cnnnet', 'and'], ['filename', 'is not null', '', 'and'], data[0] ? ['defsjj', '=', data[0].id, 'and'] : ['id', '>', 0, 'and']])
|
|
256
|
+
let params =
|
|
257
|
+
{
|
|
258
|
+
major: $app.TabConst.ckycTask.major,
|
|
259
|
+
minor: $app.TabConst.ckycTask.minor,
|
|
260
|
+
fixedExp: fixedExp,
|
|
261
|
+
multiple: this.multiple_(fld),
|
|
262
|
+
onOk: (selection) => this.onCkyctaskOk(selection, fld)
|
|
263
|
+
}
|
|
264
|
+
cx.run.runPlug('SelData', params)
|
|
265
|
+
},
|
|
266
|
+
|
|
267
|
+
async onCkyctaskOk(selection, fld)
|
|
268
|
+
{
|
|
269
|
+
// 重新选择时情况table 表格
|
|
270
|
+
if (this.grid)
|
|
271
|
+
this.$refs.grid.param1.table.list = []
|
|
272
|
+
|
|
273
|
+
if (selection && selection.length)
|
|
274
|
+
{
|
|
275
|
+
this.formdata.form[fld.colname] = selection.map((item) =>
|
|
276
|
+
{
|
|
277
|
+
return JSON.parse(item.paramsdata).mxname
|
|
278
|
+
})
|
|
279
|
+
this.formdata.form[fld.colname + '_file'] = selection.map((item) =>
|
|
280
|
+
{
|
|
281
|
+
return item.filename
|
|
282
|
+
})
|
|
283
|
+
this.formdata.form.wsize = JSON.parse(selection[0].paramsdata).wsize
|
|
284
|
+
this.formdata.form.colXltcParams = JSON.parse(selection[0].paramsdata).colXltc
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
|
|
288
|
+
queryMedia(table, entityid)
|
|
289
|
+
{
|
|
290
|
+
let param
|
|
291
|
+
if (Array.isArray(entityid))
|
|
292
|
+
param = { args: [['major', '=', table.major], ['minor', '=', table.minor, 'and'], ['entityid', 'in', entityid.toString(), 'and']] }
|
|
293
|
+
else
|
|
294
|
+
param = { args: [['major', '=', table.major], ['minor', '=', table.minor, 'and'], ['entityid', '=', entityid, 'and']] }
|
|
295
|
+
return cx.svr.data.query(cx.consts.SYSTAB, cx.consts.MEDIA, param)
|
|
296
|
+
},
|
|
297
|
+
|
|
298
|
+
onOk()
|
|
299
|
+
{
|
|
300
|
+
let anomals
|
|
301
|
+
if (this.grid)
|
|
302
|
+
anomals = this.$refs.grid.param1.table.list
|
|
303
|
+
this.$refs.form.$refs.ruleForm.validate((valid) =>
|
|
304
|
+
{
|
|
305
|
+
if (valid)
|
|
306
|
+
this.$emit('ok-click', this.formdata.form, this.selection, anomals)
|
|
307
|
+
else
|
|
308
|
+
{
|
|
309
|
+
this.$showMsg('请将内容填写完整', 'error')
|
|
310
|
+
return false
|
|
311
|
+
}
|
|
312
|
+
})
|
|
313
|
+
},
|
|
314
|
+
|
|
315
|
+
// 计算范围
|
|
316
|
+
onCalculation()
|
|
317
|
+
{
|
|
318
|
+
if (!this.formdata.form.x && !this.formdata.form.y && !this.formdata.form.z)
|
|
319
|
+
return this.$showMsg('请先设置统计对象', 'error')
|
|
320
|
+
let param =
|
|
321
|
+
{
|
|
322
|
+
file: this.formdata.form.file,
|
|
323
|
+
x: this.formdata.form.x,
|
|
324
|
+
y: this.formdata.form.y,
|
|
325
|
+
z: this.formdata.form.z
|
|
326
|
+
}
|
|
327
|
+
Api.fileinfo(param).then((res) =>
|
|
328
|
+
{
|
|
329
|
+
if (res)
|
|
330
|
+
{
|
|
331
|
+
this.formdata.form.min1 = res.bounds[0]
|
|
332
|
+
this.formdata.form.min2 = res.bounds[1]
|
|
333
|
+
this.formdata.form.max1 = res.bounds[2]
|
|
334
|
+
this.formdata.form.max2 = res.bounds[3]
|
|
335
|
+
}
|
|
336
|
+
}).catch((err) =>
|
|
337
|
+
{
|
|
338
|
+
this.onError(err)
|
|
339
|
+
})
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
</script>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.cust-border {width: 100%; height: 100%; border: 0.01rem solid var(--cx-colorBorder1); padding: 0.16rem;box-sizing:border-box}
|
|
3
|
+
</style>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<cx-layout padding>
|
|
7
|
+
<cx-region region="west" width="4.2rem" gutter>
|
|
8
|
+
<GetFormData :sfmk="sfmk" @ok-click="onOk"></GetFormData>
|
|
9
|
+
</cx-region>
|
|
10
|
+
<cx-region region="center" >
|
|
11
|
+
<RightContent @ok-click="onExportResult" title="输出">
|
|
12
|
+
<ResultTable ref="ResultTable" :czdx="czdx" :file="file" :graph="graph" :select="select"></ResultTable>
|
|
13
|
+
</RightContent>
|
|
14
|
+
</cx-region>
|
|
15
|
+
</cx-layout>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 插件 - 数据分析模型-基础统计
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 修改记录:
|
|
26
|
+
* 24-05-15 罗志远 首次编写
|
|
27
|
+
*/
|
|
28
|
+
import GetFormData from './GetFormData'
|
|
29
|
+
import RightContent from '../../coms/RightContent'
|
|
30
|
+
import ResultTable from './ResultTable'
|
|
31
|
+
import Api from '../../Api.js'
|
|
32
|
+
export default
|
|
33
|
+
{
|
|
34
|
+
mixins: [cx.mixin.IComBase],
|
|
35
|
+
components: { GetFormData, RightContent, ResultTable },
|
|
36
|
+
data()
|
|
37
|
+
{
|
|
38
|
+
return {
|
|
39
|
+
sfmk: { name: '滑动平均', type: 'dataanly' },
|
|
40
|
+
tabdatas: {},
|
|
41
|
+
plzftdatas: {
|
|
42
|
+
x: [], y: []
|
|
43
|
+
},
|
|
44
|
+
czdx: '',
|
|
45
|
+
file: '',
|
|
46
|
+
select: '',
|
|
47
|
+
graph: ''
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
// 按功能相关性组织函数块,函数名体现功能
|
|
52
|
+
methods:
|
|
53
|
+
{
|
|
54
|
+
onOk(form, selection)
|
|
55
|
+
{
|
|
56
|
+
this.czdx = form.z
|
|
57
|
+
this.select = selection
|
|
58
|
+
this.select[0].name = '滑动平均'
|
|
59
|
+
this.select[0].layer = selection.map((item) =>
|
|
60
|
+
{
|
|
61
|
+
return item.anlycol
|
|
62
|
+
}).toString()
|
|
63
|
+
let param =
|
|
64
|
+
{
|
|
65
|
+
file: form.file
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (form.size)
|
|
69
|
+
cx.base.extend(param, { size: Number(form.size) })
|
|
70
|
+
|
|
71
|
+
vm.$processing.show()
|
|
72
|
+
Api.moveaverage(param).then((res) =>
|
|
73
|
+
{
|
|
74
|
+
vm.$processing.close()
|
|
75
|
+
|
|
76
|
+
if (res.ret !== 0)
|
|
77
|
+
return this.$showMsg(res.msg, 'error')
|
|
78
|
+
this.file = res.file
|
|
79
|
+
this.graph = res.graph
|
|
80
|
+
this.$nextTick(() =>
|
|
81
|
+
{
|
|
82
|
+
this.$refs.ResultTable.getCriticalData()
|
|
83
|
+
})
|
|
84
|
+
}).catch((err) =>
|
|
85
|
+
{
|
|
86
|
+
this.onError(err)
|
|
87
|
+
})
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
onError(err)
|
|
91
|
+
{
|
|
92
|
+
vm.$processing.close()
|
|
93
|
+
this.$showRet(err)
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
exportResult()
|
|
97
|
+
{}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
</script>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.cust-border {width: 100%; height: 100%; border: 0.01rem solid var(--cx-colorBorder1); padding: 0.16rem;box-sizing:border-box}
|
|
3
|
+
</style>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<cx-layout padding>
|
|
7
|
+
<cx-region region="west" width="4.2rem" gutter>
|
|
8
|
+
<GetFormData ref="GetFormData" :sfmk="sfmk" @ok-click="onOk" @onSeldynaOk="onSeldynaOk" @click-seldyna="onSeldyna"></GetFormData>
|
|
9
|
+
</cx-region>
|
|
10
|
+
<cx-region region="center" >
|
|
11
|
+
<RightContent @ok-click="onExportResult" title="输出">
|
|
12
|
+
<ResultOnlyData ref="ResultTable" :grad="true" :czdx="czdx" :file="file" :graph="graph" :select="select"></ResultOnlyData>
|
|
13
|
+
</RightContent>
|
|
14
|
+
</cx-region>
|
|
15
|
+
</cx-layout>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 插件 - 数据分析模型-平均梯度
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 修改记录:
|
|
26
|
+
* 24-05-15 张光辉 首次编写
|
|
27
|
+
*/
|
|
28
|
+
import GetFormData from './GetFormData'
|
|
29
|
+
import RightContent from '../../coms/RightContent'
|
|
30
|
+
import ResultOnlyData from './ResultOnlyData'
|
|
31
|
+
import Api from '../../Api.js'
|
|
32
|
+
export default
|
|
33
|
+
{
|
|
34
|
+
mixins: [cx.mixin.IComBase],
|
|
35
|
+
components: { GetFormData, RightContent, ResultOnlyData },
|
|
36
|
+
data()
|
|
37
|
+
{
|
|
38
|
+
return {
|
|
39
|
+
sfmk: { name: '平均梯度', type: 'dataanly' },
|
|
40
|
+
tabdatas: {},
|
|
41
|
+
plzftdatas: {
|
|
42
|
+
x: [], y: []
|
|
43
|
+
},
|
|
44
|
+
czdx: '',
|
|
45
|
+
file: '',
|
|
46
|
+
select: ''
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
// 按功能相关性组织函数块,函数名体现功能
|
|
51
|
+
methods:
|
|
52
|
+
{
|
|
53
|
+
onOk(form, selection)
|
|
54
|
+
{
|
|
55
|
+
this.czdx = form.z
|
|
56
|
+
this.select = selection
|
|
57
|
+
this.select[0].name = '平均梯度'
|
|
58
|
+
this.select[0].layer = selection.map((item) =>
|
|
59
|
+
{
|
|
60
|
+
return item.anlycol
|
|
61
|
+
}).toString()
|
|
62
|
+
let param =
|
|
63
|
+
{
|
|
64
|
+
file: form.file
|
|
65
|
+
}
|
|
66
|
+
vm.$processing.show()
|
|
67
|
+
Api.averagegradient(param).then((res) =>
|
|
68
|
+
{
|
|
69
|
+
vm.$processing.close()
|
|
70
|
+
this.$nextTick(() =>
|
|
71
|
+
{
|
|
72
|
+
this.$refs.ResultTable.getCriticalData({ grad: res.grad })
|
|
73
|
+
})
|
|
74
|
+
}).catch((err) =>
|
|
75
|
+
{
|
|
76
|
+
this.onError(err)
|
|
77
|
+
})
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
onError(err)
|
|
81
|
+
{
|
|
82
|
+
vm.$processing.close()
|
|
83
|
+
this.$showRet(err)
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
exportResult()
|
|
87
|
+
{}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
</script>
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
.cust-border {width: 100%; height: 100%; border: 0.01rem solid var(--cx-colorBorder1); padding: 0.16rem;box-sizing:border-box}
|
|
3
|
+
</style>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<cx-layout padding>
|
|
7
|
+
<cx-region region="west" width="4.2rem" gutter>
|
|
8
|
+
<GetFormData :sfmk="sfmk" @ok-click="onOk"></GetFormData>
|
|
9
|
+
</cx-region>
|
|
10
|
+
<cx-region region="center" >
|
|
11
|
+
<RightContent @ok-click="onExportResult" title="输出">
|
|
12
|
+
<ResultTable ref="ResultTable" :czdx="czdx" :file="file" :graph="graph" :select="select"></ResultTable>
|
|
13
|
+
</RightContent>
|
|
14
|
+
</cx-region>
|
|
15
|
+
</cx-layout>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 插件 - 数据分析模型-基础统计
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 修改记录:
|
|
26
|
+
* 24-05-15 张光辉 首次编写
|
|
27
|
+
*/
|
|
28
|
+
import GetFormData from './GetFormData'
|
|
29
|
+
import RightContent from '../../coms/RightContent'
|
|
30
|
+
import ResultTable from './ResultTable'
|
|
31
|
+
import Api from '../../Api.js'
|
|
32
|
+
export default
|
|
33
|
+
{
|
|
34
|
+
mixins: [cx.mixin.IComBase],
|
|
35
|
+
components: { GetFormData, RightContent, ResultTable },
|
|
36
|
+
data()
|
|
37
|
+
{
|
|
38
|
+
return {
|
|
39
|
+
sfmk: { name: '趋势分析', type: 'dataanly' },
|
|
40
|
+
tabdatas: {},
|
|
41
|
+
plzftdatas: {
|
|
42
|
+
x: [], y: []
|
|
43
|
+
},
|
|
44
|
+
czdx: '',
|
|
45
|
+
file: '',
|
|
46
|
+
select: '',
|
|
47
|
+
graph: ''
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
// 按功能相关性组织函数块,函数名体现功能
|
|
52
|
+
methods:
|
|
53
|
+
{
|
|
54
|
+
onOk(form, selection)
|
|
55
|
+
{
|
|
56
|
+
this.czdx = form.z
|
|
57
|
+
this.select = selection
|
|
58
|
+
this.select[0].name = '趋势分析'
|
|
59
|
+
this.select[0].layer = selection.map((item) =>
|
|
60
|
+
{
|
|
61
|
+
return item.anlycol
|
|
62
|
+
}).toString()
|
|
63
|
+
let param =
|
|
64
|
+
{
|
|
65
|
+
file: form.file,
|
|
66
|
+
type: form.type
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (form.x_step)
|
|
70
|
+
cx.base.extend(param, { x_step: Number(form.x_step) })
|
|
71
|
+
|
|
72
|
+
if (form.y_step)
|
|
73
|
+
cx.base.extend(param, { y_step: Number(form.y_step) })
|
|
74
|
+
|
|
75
|
+
if (form.x_order)
|
|
76
|
+
cx.base.extend(param, { x_order: Number(form.x_order) })
|
|
77
|
+
|
|
78
|
+
if (form.y_order)
|
|
79
|
+
cx.base.extend(param, { y_order: Number(form.y_order) })
|
|
80
|
+
vm.$processing.show()
|
|
81
|
+
Api.trendanaly(param).then((res) =>
|
|
82
|
+
{
|
|
83
|
+
vm.$processing.close()
|
|
84
|
+
|
|
85
|
+
if (res.ret !== 0)
|
|
86
|
+
return this.$showMsg(res.msg, 'error')
|
|
87
|
+
this.file = res.file
|
|
88
|
+
this.graph = res.graph
|
|
89
|
+
this.$nextTick(() =>
|
|
90
|
+
{
|
|
91
|
+
this.$refs.ResultTable.getCriticalData()
|
|
92
|
+
})
|
|
93
|
+
}).catch((err) =>
|
|
94
|
+
{
|
|
95
|
+
this.onError(err)
|
|
96
|
+
})
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
onError(err)
|
|
100
|
+
{
|
|
101
|
+
vm.$processing.close()
|
|
102
|
+
this.$showRet(err)
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
exportResult()
|
|
106
|
+
{}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</script>
|