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,351 @@
|
|
|
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
|
+
.active-name{width: 98.8%; height: 6%; font-size: 0.2rem; font-weight: 400; box-sizing: border-box; padding-left: 0.1rem; padding-right: 0.1rem; margin: auto; line-height: 0.5rem; border-radius: 0.06rem; box-shadow: var(--cx-boxShadow5); border: .01rem solid var(--cx-colorBorder1); color: var(--cx-colorText0); background: var(--cx-colorBg5); display: flex;align-items: center;justify-content: space-between;}
|
|
4
|
+
.code-content{position: absolute; right: 0; top: 0; }
|
|
5
|
+
.param-content{width: 100%; height: 25%; margin-top: 0.25rem; overflow-y: auto; border: 0.01rem solid var(--cx-colorBorder1); padding: 0.16rem;box-sizing:border-box}
|
|
6
|
+
.yxjg-content{height: 40%;}
|
|
7
|
+
.code-editor{margin-top: 0.05rem;}
|
|
8
|
+
.res-box{display: -webkit-box; -webkit-box-orient: vertical; word-wrap: break-word; overflow: auto;}
|
|
9
|
+
</style>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<div class="active-name">
|
|
13
|
+
<span>{{}}</span>
|
|
14
|
+
<el-button class="btn_sm" type="primary" @click="back">返回</el-button>
|
|
15
|
+
</div>
|
|
16
|
+
<cx-layout padding style="height: 94%;">
|
|
17
|
+
<cx-region region="west" width="60%" gutter>
|
|
18
|
+
<RightContent :noBtn="true" title="运行代码">
|
|
19
|
+
<div class="code-content">
|
|
20
|
+
<cx-button icon="cx-fi ic-toBottom" @click="viewFile('自定义工具代码规范')">代码规范说明</cx-button>
|
|
21
|
+
<cx-button icon="cx-fi ic-card" @click="viewFile('代码示例')">代码示例</cx-button>
|
|
22
|
+
<cx-button @click="runCode" icon="cx-fi ic-play">运行</cx-button>
|
|
23
|
+
</div>
|
|
24
|
+
<CxCodeEditor class="code-editor" v-model="code" language="Python" />
|
|
25
|
+
</RightContent>
|
|
26
|
+
</cx-region>
|
|
27
|
+
<cx-region region="center" title="参数设置">
|
|
28
|
+
<RightContent :noBtn="true">
|
|
29
|
+
<div class="code-content">
|
|
30
|
+
<cx-button @click="publish(1)" icon="cx-fi ic-upload">发布</cx-button>
|
|
31
|
+
<cx-button @click="publish(0)" icon="cx-fi ic-save">保存</cx-button>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="param-content">
|
|
34
|
+
<span>输入参数</span>
|
|
35
|
+
<ParamSelect ref="paramSelect" :data="paramData" :option="option" addable />
|
|
36
|
+
</div>
|
|
37
|
+
<div class="param-content">
|
|
38
|
+
<span>输出参数</span>
|
|
39
|
+
<ParamSelect ref="paramSelectSc" :data="paramDataCs" :option="option" addable noValue />
|
|
40
|
+
</div>
|
|
41
|
+
<div class="param-content yxjg-content">
|
|
42
|
+
<span>运行结果</span>
|
|
43
|
+
<div v-for="(item, index) in codeResult" :key="index">
|
|
44
|
+
{{item.colname}}:
|
|
45
|
+
<img v-if="item.colname === 'graph'" :src="item.value.indexOf('data:image/png;base64,') === 0 ? item.value :('data:image/png;base64,'+item.value)" style="width: 100%;height: 100%;">
|
|
46
|
+
<cx-button v-else-if="item.colname === 'file'" type="primary" @click="download(item.value)">下载</cx-button>
|
|
47
|
+
<span v-else>{{item.value}}</span>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</RightContent>
|
|
51
|
+
</cx-region>
|
|
52
|
+
</cx-layout>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<script>
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 插件 - 公共工具
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 修改记录:
|
|
63
|
+
* 25-04-15 黄佳龙 首次编写
|
|
64
|
+
*/
|
|
65
|
+
import RightContent from '../coms/RightContent.vue'
|
|
66
|
+
import ParamSelect from './ParamSelect.vue'
|
|
67
|
+
import CxCodeEditor from './CodeEditor/CodeEditor.vue'
|
|
68
|
+
import CodeApi from './CodeApi'
|
|
69
|
+
|
|
70
|
+
export default
|
|
71
|
+
{
|
|
72
|
+
mixins: [cx.mixin.IPlugBase],
|
|
73
|
+
components: { RightContent, ParamSelect, CxCodeEditor },
|
|
74
|
+
data()
|
|
75
|
+
{
|
|
76
|
+
return {
|
|
77
|
+
paramData: [], // 输入参数
|
|
78
|
+
paramDataCs: [], // 输出参数
|
|
79
|
+
option: [],
|
|
80
|
+
code: '', // 代码
|
|
81
|
+
codeResult: '', // 运行结果
|
|
82
|
+
input: null,
|
|
83
|
+
output: null
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
created()
|
|
88
|
+
{
|
|
89
|
+
if (this.params.isEdit)
|
|
90
|
+
this.getCode()
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
// 按功能相关性组织函数块,函数名体现功能
|
|
94
|
+
methods:
|
|
95
|
+
{
|
|
96
|
+
/**
|
|
97
|
+
* 返回
|
|
98
|
+
*/
|
|
99
|
+
back()
|
|
100
|
+
{
|
|
101
|
+
cx.run.runPlug('Zdygj', { route: 'Gjbjyfb', title: '工具编辑与发布', type: 'Zdygj', namec: '自定义工具' })
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* 获取代码
|
|
106
|
+
*/
|
|
107
|
+
getCode()
|
|
108
|
+
{
|
|
109
|
+
this.code = this.params.code
|
|
110
|
+
if (this.params.input)
|
|
111
|
+
{
|
|
112
|
+
let tabArr = []
|
|
113
|
+
let input = JSON.parse(this.params.input)
|
|
114
|
+
for (let i in input.input)
|
|
115
|
+
{
|
|
116
|
+
let a = {
|
|
117
|
+
colname: i,
|
|
118
|
+
require: input.input[i].require,
|
|
119
|
+
colvalue: input.params[i],
|
|
120
|
+
namec: input.input[i].namec,
|
|
121
|
+
coltype: input.input[i].type,
|
|
122
|
+
optionType: [
|
|
123
|
+
{ label: '数字', value: 'number' },
|
|
124
|
+
{ label: '字符串', value: 'string' },
|
|
125
|
+
{ label: '文件', value: 'file' }
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
tabArr.push(a)
|
|
129
|
+
}
|
|
130
|
+
this.paramData = tabArr
|
|
131
|
+
}
|
|
132
|
+
if (this.params.output)
|
|
133
|
+
{
|
|
134
|
+
let tabArr = []
|
|
135
|
+
let output = JSON.parse(this.params.output)
|
|
136
|
+
for (let i in output)
|
|
137
|
+
{
|
|
138
|
+
let a = {
|
|
139
|
+
colname: i,
|
|
140
|
+
coltype: output[i],
|
|
141
|
+
optionType: [
|
|
142
|
+
{ label: '数字', value: 'number' },
|
|
143
|
+
{ label: '字符串', value: 'string' },
|
|
144
|
+
{ label: '文件', value: 'file' }
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
tabArr.push(a)
|
|
148
|
+
}
|
|
149
|
+
this.paramDataCs = tabArr
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* 运行代码
|
|
155
|
+
*/
|
|
156
|
+
runCode()
|
|
157
|
+
{
|
|
158
|
+
let params = {}
|
|
159
|
+
this.putData(params)
|
|
160
|
+
CodeApi.predebug({
|
|
161
|
+
code: this.code,
|
|
162
|
+
params: params,
|
|
163
|
+
input: this.input,
|
|
164
|
+
output: this.output
|
|
165
|
+
}, {
|
|
166
|
+
ip: $g.syscfg.pyip,
|
|
167
|
+
port: this.params.port,
|
|
168
|
+
isrequest: 1
|
|
169
|
+
}).then(res =>
|
|
170
|
+
{
|
|
171
|
+
this.codeResult = []
|
|
172
|
+
if (!res.ret)
|
|
173
|
+
{
|
|
174
|
+
this.$showMsg('运行通过', 'success')
|
|
175
|
+
for (let i in res.result)
|
|
176
|
+
this.codeResult.push({ colname: i, value: res.result[i] })
|
|
177
|
+
}
|
|
178
|
+
else
|
|
179
|
+
this.$showMsg('运行失败', 'error')
|
|
180
|
+
}).catch(this.onError)
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* 处理参数
|
|
185
|
+
* @param {Object} params 参数对象
|
|
186
|
+
*/
|
|
187
|
+
putData(params)
|
|
188
|
+
{
|
|
189
|
+
let input = {}
|
|
190
|
+
let output = {}
|
|
191
|
+
this.$refs.paramSelect.tabData.forEach(item =>
|
|
192
|
+
{
|
|
193
|
+
params[item.colname] = item.coltype == 'number' ? Number(item.colvalue) : item.colvalue
|
|
194
|
+
input[item.colname] = {
|
|
195
|
+
type: item.coltype,
|
|
196
|
+
namec: item.namec,
|
|
197
|
+
require: item.require
|
|
198
|
+
}
|
|
199
|
+
})
|
|
200
|
+
this.$refs.paramSelectSc.tabData.forEach(item =>
|
|
201
|
+
{
|
|
202
|
+
output[item.colname] = item.coltype
|
|
203
|
+
})
|
|
204
|
+
this.input = input
|
|
205
|
+
this.output = output
|
|
206
|
+
},
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* 发布代码
|
|
210
|
+
* @param {Number} state 发布状态
|
|
211
|
+
*/
|
|
212
|
+
publish(state)
|
|
213
|
+
{
|
|
214
|
+
let params = {}
|
|
215
|
+
this.$refs.paramSelect.tabData.forEach(item =>
|
|
216
|
+
{
|
|
217
|
+
params[item.colname] = item.colvalue
|
|
218
|
+
})
|
|
219
|
+
CodeApi.releasecheck({
|
|
220
|
+
code: this.code,
|
|
221
|
+
params: params,
|
|
222
|
+
userid: 'code' + $g.user.id
|
|
223
|
+
}, {
|
|
224
|
+
ip: $g.syscfg.pyip,
|
|
225
|
+
port: this.params.port,
|
|
226
|
+
isrequest: 1
|
|
227
|
+
}).then(res =>
|
|
228
|
+
{
|
|
229
|
+
if (!res.ret)
|
|
230
|
+
{
|
|
231
|
+
this.$showMsg('检查通过', 'success')
|
|
232
|
+
this.saveCode(state)
|
|
233
|
+
}
|
|
234
|
+
else
|
|
235
|
+
this.$showMsg('检查失败', 'error')
|
|
236
|
+
}).catch(this.onError)
|
|
237
|
+
},
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* 保存代码
|
|
241
|
+
* @param {Number} state 发布状态
|
|
242
|
+
*/
|
|
243
|
+
saveCode(state)
|
|
244
|
+
{
|
|
245
|
+
if (!this.params.isEdit)
|
|
246
|
+
{
|
|
247
|
+
const onOk = (att) =>
|
|
248
|
+
{
|
|
249
|
+
let params = {}
|
|
250
|
+
this.putData(params)
|
|
251
|
+
this.$processing.show()
|
|
252
|
+
att.username = $g.user.name
|
|
253
|
+
att.userid = $g.user.id
|
|
254
|
+
att.code = this.code
|
|
255
|
+
att.input = JSON.stringify({ input: this.input, params: params })
|
|
256
|
+
att.output = JSON.stringify(this.output)
|
|
257
|
+
att.state = 1
|
|
258
|
+
return cx.svr.attOper.insert($app.TabConst.zdygjsxb.major, $app.TabConst.zdygjsxb.minor, att, 1)
|
|
259
|
+
.then(ret =>
|
|
260
|
+
{
|
|
261
|
+
this.$showMsg('保存成功', 'success')
|
|
262
|
+
this.$processing.close()
|
|
263
|
+
return true
|
|
264
|
+
})
|
|
265
|
+
.catch(err =>
|
|
266
|
+
{
|
|
267
|
+
this.$processing.close()
|
|
268
|
+
this.onError(err)
|
|
269
|
+
})
|
|
270
|
+
}
|
|
271
|
+
let params =
|
|
272
|
+
{
|
|
273
|
+
major: $app.TabConst.zdygjsxb.major,
|
|
274
|
+
minor: $app.TabConst.zdygjsxb.minor,
|
|
275
|
+
title: '代码保存',
|
|
276
|
+
att: { state: state, debug_state: 1, udate: cx.formatter.dateDb(cx.datetime.now()) },
|
|
277
|
+
onOk
|
|
278
|
+
}
|
|
279
|
+
cx.run.runPlug('AttInput', params)
|
|
280
|
+
}
|
|
281
|
+
else
|
|
282
|
+
{
|
|
283
|
+
let params = {}
|
|
284
|
+
this.putData(params)
|
|
285
|
+
let att = {
|
|
286
|
+
id: this.params.id,
|
|
287
|
+
input: JSON.stringify({ input: this.input, params: params }),
|
|
288
|
+
output: JSON.stringify(this.output)
|
|
289
|
+
}
|
|
290
|
+
cx.svr.data.update($app.TabConst.zdygjsxb.major, $app.TabConst.zdygjsxb.minor, att).then(() =>
|
|
291
|
+
{
|
|
292
|
+
this.$showMsg('保存成功', 'success')
|
|
293
|
+
}).catch((err) =>
|
|
294
|
+
{
|
|
295
|
+
this.onError(err)
|
|
296
|
+
})
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* 错误处理
|
|
302
|
+
* @param {Error} err 错误对象
|
|
303
|
+
*/
|
|
304
|
+
onError(err)
|
|
305
|
+
{
|
|
306
|
+
this.$showMsg(err.msg, 'error')
|
|
307
|
+
},
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* 查看文件
|
|
311
|
+
* @param {String} type 文件类型
|
|
312
|
+
*/
|
|
313
|
+
viewFile(type)
|
|
314
|
+
{
|
|
315
|
+
const data =
|
|
316
|
+
{
|
|
317
|
+
src: `static/img/sm/${type}.docx`,
|
|
318
|
+
filetype: 'docx'
|
|
319
|
+
}
|
|
320
|
+
cx.run.runPlug('FileView', { data })
|
|
321
|
+
},
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* 下载文件
|
|
325
|
+
* @param {String} file 文件路径
|
|
326
|
+
*/
|
|
327
|
+
download(file)
|
|
328
|
+
{
|
|
329
|
+
let medias = { entityid: 0, filename: file, mode: 2, title: file.split('/')[file.split('/').length - 1], uperson: $g.user.name, major: 0, minor: 0, update: cx.formatter.datetimeDb(new Date()) }
|
|
330
|
+
cx.svr.data.add(cx.consts.SYSTAB, cx.consts.MEDIA, medias, 1).then(res1 =>
|
|
331
|
+
{
|
|
332
|
+
CodeApi.requestserver({
|
|
333
|
+
port: this.params.port,
|
|
334
|
+
func: 'doc/pub/save',
|
|
335
|
+
path: '',
|
|
336
|
+
param: {
|
|
337
|
+
files: [file]
|
|
338
|
+
}
|
|
339
|
+
}).then((res2) =>
|
|
340
|
+
{
|
|
341
|
+
if (res2.ret == 0)
|
|
342
|
+
cx.svr.doc.download({ id: res1.id })
|
|
343
|
+
})
|
|
344
|
+
}).catch(err =>
|
|
345
|
+
{
|
|
346
|
+
this.onError(err)
|
|
347
|
+
})
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
</script>
|
|
@@ -0,0 +1,206 @@
|
|
|
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
|
+
.active-name {width: 98.8%; height: 6%; font-size: 0.2rem; font-weight: 400; box-sizing: border-box; padding-left: 0.1rem; padding-right: 0.1rem; margin: auto; line-height: 0.5rem; border-radius: 0.06rem; box-shadow: var(--cx-boxShadow5); border: .01rem solid var(--cx-colorBorder1); color: var(--cx-colorText0); background: var(--cx-colorBg5); display: flex; align-items: center; justify-content: space-between;}
|
|
4
|
+
.res-box {display: -webkit-box; -webkit-box-orient: vertical; word-wrap: break-word; overflow: auto;}
|
|
5
|
+
</style>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="active-name">
|
|
9
|
+
<span>{{this.params.namec}}</span>
|
|
10
|
+
<el-button class="btn_sm" type="primary" @click="back">返回</el-button>
|
|
11
|
+
</div>
|
|
12
|
+
<cx-layout padding style="height: 94%;">
|
|
13
|
+
<cx-region region="west" width="4.2rem" gutter>
|
|
14
|
+
<GetFormData :fldsData="fldsData" @ok-click="onOk"></GetFormData>
|
|
15
|
+
</cx-region>
|
|
16
|
+
<cx-region region="center" >
|
|
17
|
+
<RightContent :noBtn="true" title="输出" @ok-click="onExportResult">
|
|
18
|
+
<div class="res-box">
|
|
19
|
+
<div v-for="(item, index) in codeResult" :key="index">
|
|
20
|
+
{{item.colname}}:
|
|
21
|
+
<img v-if="item.colname === 'graph'" :src="item.value.indexOf('data:image/png;base64,') === 0 ? item.value :('data:image/png;base64,'+item.value)" style="width: 100%;height: 100%;">
|
|
22
|
+
<cx-button v-else-if="item.colname === 'file'" type="primary" @click="download(item.value)">下载</cx-button>
|
|
23
|
+
<span v-else>{{item.value}}</span>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</RightContent>
|
|
27
|
+
</cx-region>
|
|
28
|
+
</cx-layout>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 插件 - 公共工具
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 修改记录:
|
|
39
|
+
* 25-04-15 黄佳龙 首次编写
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
import GetFormData from '../ExceptHandlModel/GeneralCalculation/GetFormData.vue'
|
|
43
|
+
import RightContent from '../coms/RightContent.vue'
|
|
44
|
+
import CodeApi from './CodeApi'
|
|
45
|
+
|
|
46
|
+
export default
|
|
47
|
+
{
|
|
48
|
+
mixins: [cx.mixin.IPlugBase],
|
|
49
|
+
components: { GetFormData, RightContent },
|
|
50
|
+
data()
|
|
51
|
+
{
|
|
52
|
+
return {
|
|
53
|
+
fldsData: [],
|
|
54
|
+
tabdatas: {},
|
|
55
|
+
plzftdatas: {
|
|
56
|
+
x: [], y: []
|
|
57
|
+
},
|
|
58
|
+
czdx: '',
|
|
59
|
+
file: '',
|
|
60
|
+
select: '',
|
|
61
|
+
graph: '',
|
|
62
|
+
datasPc: null,
|
|
63
|
+
hygl: null,
|
|
64
|
+
userPort: null,
|
|
65
|
+
codeResult: null
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
created()
|
|
70
|
+
{
|
|
71
|
+
this.getPort()
|
|
72
|
+
this.makeFlds()
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
// 按功能相关性组织函数块,函数名体现功能
|
|
76
|
+
methods:
|
|
77
|
+
{
|
|
78
|
+
/**
|
|
79
|
+
* 获取当前用户的端口
|
|
80
|
+
*/
|
|
81
|
+
getPort()
|
|
82
|
+
{
|
|
83
|
+
CodeApi.checkcontainer({
|
|
84
|
+
userid: 'code' + $g.user.id
|
|
85
|
+
}).then(res =>
|
|
86
|
+
{
|
|
87
|
+
if (!res.ret)
|
|
88
|
+
this.userPort = res
|
|
89
|
+
}).catch(this.onError)
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* 生成字段数据
|
|
94
|
+
*/
|
|
95
|
+
makeFlds()
|
|
96
|
+
{
|
|
97
|
+
let flds = []
|
|
98
|
+
if (this.params.input)
|
|
99
|
+
{
|
|
100
|
+
let input = JSON.parse(this.params.input)
|
|
101
|
+
for (let i in input.input)
|
|
102
|
+
{
|
|
103
|
+
let a = {
|
|
104
|
+
colname: i,
|
|
105
|
+
namec: input.input[i].namec,
|
|
106
|
+
disptype: input.input[i].type == 'file' ? 'seldynaList' : 'input',
|
|
107
|
+
placeholder: '请输入',
|
|
108
|
+
isNumber: input.input[i].type == 'number',
|
|
109
|
+
default: input.params[i],
|
|
110
|
+
disabled: false,
|
|
111
|
+
nullable: !!input.input[i].require,
|
|
112
|
+
filetype: 'excel,csv,grd,POLYLINE,tif,POLYGON'
|
|
113
|
+
}
|
|
114
|
+
if (input.input[i].type == 'file')
|
|
115
|
+
a.fileUrl = 'url'
|
|
116
|
+
flds.push(a)
|
|
117
|
+
}
|
|
118
|
+
this.fldsData = {
|
|
119
|
+
name: this.params.namec,
|
|
120
|
+
type: 'dataanly',
|
|
121
|
+
flds: flds
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* 确认运行
|
|
128
|
+
* @param {Object} form 表单数据
|
|
129
|
+
* @param {Object} selection 选中项
|
|
130
|
+
*/
|
|
131
|
+
onOk(form, selection)
|
|
132
|
+
{
|
|
133
|
+
CodeApi.predebug({
|
|
134
|
+
code: this.params.code,
|
|
135
|
+
params: form,
|
|
136
|
+
input: JSON.parse(this.params.input).input,
|
|
137
|
+
output: JSON.parse(this.params.output)
|
|
138
|
+
}, {
|
|
139
|
+
ip: $g.syscfg.pyip,
|
|
140
|
+
port: this.userPort.port,
|
|
141
|
+
isrequest: 1
|
|
142
|
+
}).then(res =>
|
|
143
|
+
{
|
|
144
|
+
this.codeResult = []
|
|
145
|
+
if (!res.ret)
|
|
146
|
+
{
|
|
147
|
+
this.$showMsg('运行通过', 'success')
|
|
148
|
+
for (let i in res.result)
|
|
149
|
+
this.codeResult.push({ colname: i, value: res.result[i] })
|
|
150
|
+
}
|
|
151
|
+
else
|
|
152
|
+
this.$showMsg('运行失败', 'error')
|
|
153
|
+
}).catch(this.onError)
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* 错误处理
|
|
158
|
+
* @param {Error} err 错误对象
|
|
159
|
+
*/
|
|
160
|
+
onError(err)
|
|
161
|
+
{
|
|
162
|
+
vm.$processing.close()
|
|
163
|
+
this.$showRet(err)
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* 返回
|
|
168
|
+
*/
|
|
169
|
+
back()
|
|
170
|
+
{
|
|
171
|
+
cx.run.runPlug('Zngjj')
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* 下载文件
|
|
176
|
+
* @param {String} file 文件名
|
|
177
|
+
*/
|
|
178
|
+
download(file)
|
|
179
|
+
{
|
|
180
|
+
let medias = { entityid: 0, filename: file, mode: 2, title: file.split('/')[file.split('/').length - 1], uperson: $g.user.name, major: 0, minor: 0, update: cx.formatter.datetimeDb(new Date()) }
|
|
181
|
+
cx.svr.data.add(cx.consts.SYSTAB, cx.consts.MEDIA, medias, 1).then(res1 =>
|
|
182
|
+
{
|
|
183
|
+
// Api.pubSave({ files: [file] }).then((res2) =>
|
|
184
|
+
// {
|
|
185
|
+
// if (res2.ret == 0)
|
|
186
|
+
CodeApi.requestserver({
|
|
187
|
+
port: this.userPort.port,
|
|
188
|
+
func: 'doc/pub/save',
|
|
189
|
+
path: '',
|
|
190
|
+
param: {
|
|
191
|
+
files: [file]
|
|
192
|
+
}
|
|
193
|
+
}).then((res2) =>
|
|
194
|
+
{
|
|
195
|
+
if (res2.ret == 0)
|
|
196
|
+
cx.svr.doc.download({ id: res1.id })
|
|
197
|
+
})
|
|
198
|
+
// })
|
|
199
|
+
}).catch(err =>
|
|
200
|
+
{
|
|
201
|
+
this.onError(err)
|
|
202
|
+
})
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
</script>
|