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.
Files changed (249) hide show
  1. package/README.md +3 -0
  2. package/package.json +90 -0
  3. package/src/plugins/app/com/CesiumTool.js +730 -0
  4. package/src/plugins/app/com/MapMethods.js +355 -0
  5. package/src/plugins/app/com/MapTool.vue +772 -0
  6. package/src/plugins/app/com/MenuRouter.vue +157 -0
  7. package/src/plugins/app/com/ParamsDes.vue +35 -0
  8. package/src/plugins/app/com/SelCoorSys.vue +235 -0
  9. package/src/plugins/app/com/WebProj4.js +32 -0
  10. package/src/plugins/app/com/measure.js +127 -0
  11. package/src/plugins/app/com/yx.js +238 -0
  12. package/src/plugins/app/modelmanagement/D3DrawGraph.js +708 -0
  13. package/src/plugins/app/modelmanagement/MineralGo.vue +241 -0
  14. package/src/plugins/app/modelmanagement/MineralModel.vue +1203 -0
  15. package/src/plugins/app/modelmanagement/ModelCloudmap.vue +69 -0
  16. package/src/plugins/app/modelmanagement/ModelMst.vue +60 -0
  17. package/src/plugins/app/modelmanagement/ModelSy.vue +173 -0
  18. package/src/plugins/app/modelmanagement/ModelTp.vue +51 -0
  19. package/src/plugins/app/modelmanagement/ModelUpload.vue +774 -0
  20. package/src/plugins/app/znycpjxt/Api.js +714 -0
  21. package/src/plugins/app/znycpjxt/Bf/AttFactory.js +25 -0
  22. package/src/plugins/app/znycpjxt/Bf/IAnomalyhandle.js +102 -0
  23. package/src/plugins/app/znycpjxt/Bf/IComposeanomaly.js +140 -0
  24. package/src/plugins/app/znycpjxt/Bf/IContinueanaly.js +138 -0
  25. package/src/plugins/app/znycpjxt/Bf/IContrastanaly.js +138 -0
  26. package/src/plugins/app/znycpjxt/Bf/ICustomNode.js +145 -0
  27. package/src/plugins/app/znycpjxt/Bf/IDerivanaly.js +139 -0
  28. package/src/plugins/app/znycpjxt/Bf/IFilterananly.js +141 -0
  29. package/src/plugins/app/znycpjxt/Bf/IMeananaly.js +137 -0
  30. package/src/plugins/app/znycpjxt/Bf/IModelNodeBase.js +135 -0
  31. package/src/plugins/app/znycpjxt/Bf/IMoveaverage.js +135 -0
  32. package/src/plugins/app/znycpjxt/Bf/IReducepole.js +141 -0
  33. package/src/plugins/app/znycpjxt/Bf/ISmoothanaly.js +135 -0
  34. package/src/plugins/app/znycpjxt/Bf/ITrendanaly.js +144 -0
  35. package/src/plugins/app/znycpjxt/Bf/IVector2grd.js +144 -0
  36. package/src/plugins/app/znycpjxt/Bf/IYcfj.js +84 -0
  37. package/src/plugins/app/znycpjxt/Bf/IYcxxjs.js +105 -0
  38. package/src/plugins/app/znycpjxt/Bf/IYgsbtq.js +112 -0
  39. package/src/plugins/app/znycpjxt/Bf/IYgtxrh.js +112 -0
  40. package/src/plugins/app/znycpjxt/Bf/Iinteranaly.js +135 -0
  41. package/src/plugins/app/znycpjxt/Bf/index.js +44 -0
  42. package/src/plugins/app/znycpjxt/Bf/input/InputData.js +21 -0
  43. package/src/plugins/app/znycpjxt/Bf/input/InputExcel.js +28 -0
  44. package/src/plugins/app/znycpjxt/Bf/input/InputKd.js +31 -0
  45. package/src/plugins/app/znycpjxt/Bqqd/Bqqd.vue +380 -0
  46. package/src/plugins/app/znycpjxt/Bqqd/BqqdMap.vue +1046 -0
  47. package/src/plugins/app/znycpjxt/Bqqd/SetOpacity.vue +101 -0
  48. package/src/plugins/app/znycpjxt/Bqqd/SjzxTree.vue +244 -0
  49. package/src/plugins/app/znycpjxt/Bqqd/YclsjjTree.vue +212 -0
  50. package/src/plugins/app/znycpjxt/Bqqd/api/DsjzxApi.js +37 -0
  51. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmx.vue +161 -0
  52. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/CfgGloalParams.vue +92 -0
  53. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/CfgNodeFlds.vue +102 -0
  54. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/CfgNodeParams.vue +277 -0
  55. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/Ckycmxgl.vue +303 -0
  56. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/SetLabelParam.vue +68 -0
  57. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxgl/SetModelParam.vue +69 -0
  58. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Ckycmxtab.vue +107 -0
  59. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Dtzzylwl.vue +156 -0
  60. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Jjsjwl.vue +230 -0
  61. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Sjsl.vue +126 -0
  62. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Zcxlj.vue +128 -0
  63. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Zjq.vue +123 -0
  64. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Zstp.vue +271 -0
  65. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/Zzylwl.vue +149 -0
  66. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/coms/ParamsData.vue +323 -0
  67. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/coms/ParamsDataNew.vue +336 -0
  68. package/src/plugins/app/znycpjxt/Ckycmx/Ckycmxtab/coms/QqtEcharts.vue +137 -0
  69. package/src/plugins/app/znycpjxt/Ckycmx/Ckycrwgl/Ckycrwgl.vue +290 -0
  70. package/src/plugins/app/znycpjxt/CusTools/CodeApi.js +83 -0
  71. package/src/plugins/app/znycpjxt/CusTools/CodeEditor/CodeEditor.md +36 -0
  72. package/src/plugins/app/znycpjxt/CusTools/CodeEditor/CodeEditor.vue +227 -0
  73. package/src/plugins/app/znycpjxt/CusTools/CodeEditor/PlugCodeEditor.vue +78 -0
  74. package/src/plugins/app/znycpjxt/CusTools/CodeEditor/demo/basic.png +0 -0
  75. package/src/plugins/app/znycpjxt/CusTools/CodeEditor/demo/basic.vue +27 -0
  76. package/src/plugins/app/znycpjxt/CusTools/DmbjForm.vue +76 -0
  77. package/src/plugins/app/znycpjxt/CusTools/DmfbForm.vue +351 -0
  78. package/src/plugins/app/znycpjxt/CusTools/GjForm.vue +206 -0
  79. package/src/plugins/app/znycpjxt/CusTools/Gjbjyfb.vue +200 -0
  80. package/src/plugins/app/znycpjxt/CusTools/ParamSelect.vue +222 -0
  81. package/src/plugins/app/znycpjxt/CusTools/ParamSelect2.vue +204 -0
  82. package/src/plugins/app/znycpjxt/CusTools/Zngjj.vue +105 -0
  83. package/src/plugins/app/znycpjxt/DataAnlyModel/DataAnlyModel.vue +134 -0
  84. package/src/plugins/app/znycpjxt/DataAnlyModel/Hgfx/HgfxEcharts.vue +98 -0
  85. package/src/plugins/app/znycpjxt/DataAnlyModel/Hgfx/HgfxTab.vue +73 -0
  86. package/src/plugins/app/znycpjxt/DataAnlyModel/Hgfx.vue +101 -0
  87. package/src/plugins/app/znycpjxt/DataAnlyModel/Jctj/JctjjgTab.vue +70 -0
  88. package/src/plugins/app/znycpjxt/DataAnlyModel/Jctj/Plzft.vue +154 -0
  89. package/src/plugins/app/znycpjxt/DataAnlyModel/Jctj.vue +118 -0
  90. package/src/plugins/app/znycpjxt/DataAnlyModel/Jlfx/JlfxImg.vue +80 -0
  91. package/src/plugins/app/znycpjxt/DataAnlyModel/Jlfx.vue +91 -0
  92. package/src/plugins/app/znycpjxt/DataAnlyModel/PCAfx/PcaTab.vue +161 -0
  93. package/src/plugins/app/znycpjxt/DataAnlyModel/PCAfx.vue +101 -0
  94. package/src/plugins/app/znycpjxt/DataAnlyModel/Qqt/QqtEcharts.vue +202 -0
  95. package/src/plugins/app/znycpjxt/DataAnlyModel/Qqt.vue +88 -0
  96. package/src/plugins/app/znycpjxt/DataAnlyModel/Xgxfx/XgxfxImg.vue +80 -0
  97. package/src/plugins/app/znycpjxt/DataAnlyModel/Xgxfx.vue +96 -0
  98. package/src/plugins/app/znycpjxt/DatasetMan/CreateDataset.vue +296 -0
  99. package/src/plugins/app/znycpjxt/DatasetMan/DatasetMan.vue +141 -0
  100. package/src/plugins/app/znycpjxt/DatasetMan/PreData.js +91 -0
  101. package/src/plugins/app/znycpjxt/DatasetMan/PreData.vue +545 -0
  102. package/src/plugins/app/znycpjxt/DatasetMan/PreDataApi.js +101 -0
  103. package/src/plugins/app/znycpjxt/DatasetMan/SelData.vue +186 -0
  104. package/src/plugins/app/znycpjxt/DatasetMan/SjTree.vue +130 -0
  105. package/src/plugins/app/znycpjxt/DatasetMan/Sjj.vue +478 -0
  106. package/src/plugins/app/znycpjxt/DatasetMan/Yclsjj.vue +445 -0
  107. package/src/plugins/app/znycpjxt/DatasetMan/Yssjj.vue +389 -0
  108. package/src/plugins/app/znycpjxt/DocList/DocList.vue +496 -0
  109. package/src/plugins/app/znycpjxt/DocList/unit/DocItem.vue +137 -0
  110. package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Dchj.vue +107 -0
  111. package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/GeophysicalAnomaly.vue +115 -0
  112. package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Jxyt.vue +98 -0
  113. package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Lbjs.vue +127 -0
  114. package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Pjcjs.vue +103 -0
  115. package/src/plugins/app/znycpjxt/ExceptHandlModel/AnomalyExtraction/Qdjs.vue +103 -0
  116. package/src/plugins/app/znycpjxt/ExceptHandlModel/ExceptHandlModel.vue +163 -0
  117. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Cdjs.vue +102 -0
  118. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Czfx.vue +163 -0
  119. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/GetFormData.vue +343 -0
  120. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Hdpj.vue +100 -0
  121. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Pjtd.vue +90 -0
  122. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Qsfx.vue +109 -0
  123. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/ResultOnlyData.vue +121 -0
  124. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/ResultTable.vue +231 -0
  125. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/UniversalComputing.vue +139 -0
  126. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Xgxsjs.vue +93 -0
  127. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Xxsjs.vue +90 -0
  128. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Ycfj.vue +116 -0
  129. package/src/plugins/app/znycpjxt/ExceptHandlModel/GeneralCalculation/Yhcl.vue +100 -0
  130. package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/AnomalsGard.vue +91 -0
  131. package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/Dqhxycht.vue +113 -0
  132. package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/GeocAnomalies.vue +99 -0
  133. package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/JgTableList.vue +203 -0
  134. package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/Lszcl.vue +110 -0
  135. package/src/plugins/app/znycpjxt/ExceptHandlModel/extgeoanomalies/Ycxxjs.vue +116 -0
  136. package/src/plugins/app/znycpjxt/ExceptHandlModel/geoAnomalyExtraction/GeoAnomalyExtraction.vue +108 -0
  137. package/src/plugins/app/znycpjxt/ExceptHandlModel/geoAnomalyExtraction/coms/AttWeight.vue +99 -0
  138. package/src/plugins/app/znycpjxt/ExceptHandlModel/geoAnomalyExtraction/coms/Ckdctq.vue +98 -0
  139. package/src/plugins/app/znycpjxt/ExceptHandlModel/geoAnomalyExtraction/coms/LeftForm.vue +266 -0
  140. package/src/plugins/app/znycpjxt/ExceptHandlModel/ygyctq/Ygsbtq.vue +150 -0
  141. package/src/plugins/app/znycpjxt/ExceptHandlModel/ygyctq/Ygtxrh.vue +107 -0
  142. package/src/plugins/app/znycpjxt/ExceptHandlModel/ygyctq/ygyctq.vue +98 -0
  143. package/src/plugins/app/znycpjxt/Index/DataCard.vue +45 -0
  144. package/src/plugins/app/znycpjxt/Index/Index.vue +123 -0
  145. package/src/plugins/app/znycpjxt/Rzgl/Rzgl.vue +156 -0
  146. package/src/plugins/app/znycpjxt/coms/CmapColor.vue +70 -0
  147. package/src/plugins/app/znycpjxt/coms/CustomFileView.vue +343 -0
  148. package/src/plugins/app/znycpjxt/coms/CustomForm.vue +220 -0
  149. package/src/plugins/app/znycpjxt/coms/GrdView.vue +355 -0
  150. package/src/plugins/app/znycpjxt/coms/LeftForm.vue +195 -0
  151. package/src/plugins/app/znycpjxt/coms/MakeData.js +472 -0
  152. package/src/plugins/app/znycpjxt/coms/PreView.js +55 -0
  153. package/src/plugins/app/znycpjxt/coms/RightContent.vue +71 -0
  154. package/src/plugins/app/znycpjxt/coms/TableEarth.vue +259 -0
  155. package/src/plugins/app/znycpjxt/intellPred/ModelList.vue +200 -0
  156. package/src/plugins/app/znycpjxt/intellPred/coms/D3DrawGraph.js +634 -0
  157. package/src/plugins/app/znycpjxt/intellPred/coms/MineralGo.vue +249 -0
  158. package/src/plugins/app/znycpjxt/intellPred/coms/ModelCard.vue +298 -0
  159. package/src/plugins/app/znycpjxt/intellPred/coms/ModelEdit.vue +292 -0
  160. package/src/plugins/app/znycpjxt/intellPred/coms/ModelSpecif.vue +46 -0
  161. package/src/plugins/app/znycpjxt/intellPred/intellPred.vue +71 -0
  162. package/src/plugins/bf/BfApi.js +92 -0
  163. package/src/plugins/bf/BfColAdd.vue +78 -0
  164. package/src/plugins/bf/BfColEdit.vue +68 -0
  165. package/src/plugins/bf/BfColFilter.vue +112 -0
  166. package/src/plugins/bf/BfDataGroup.vue +80 -0
  167. package/src/plugins/bf/BfDataPreview.vue +118 -0
  168. package/src/plugins/bf/BfDataStat.vue +81 -0
  169. package/src/plugins/bf/BfDuplicateDel.vue +82 -0
  170. package/src/plugins/bf/BfProcCall.vue +82 -0
  171. package/src/plugins/bf/BfRunHis.vue +289 -0
  172. package/src/plugins/bf/BfRunParams.vue +94 -0
  173. package/src/plugins/bf/BfSaveFlow.vue +186 -0
  174. package/src/plugins/bf/BfSelFlow.vue +123 -0
  175. package/src/plugins/bf/BfTabCombine.vue +127 -0
  176. package/src/plugins/bf/BfTabJoin.vue +108 -0
  177. package/src/plugins/bf/BfTabMerge.vue +68 -0
  178. package/src/plugins/bf/BfTabReader.vue +126 -0
  179. package/src/plugins/bf/BfValFormat.vue +68 -0
  180. package/src/plugins/bf/BfValNumber.vue +68 -0
  181. package/src/plugins/bf/BfValProc.vue +78 -0
  182. package/src/plugins/bf/BfValSort.vue +78 -0
  183. package/src/plugins/bf/BiFlow.vue +1177 -0
  184. package/src/plugins/bf/IBfPlug.js +205 -0
  185. package/src/plugins/bf/coms/ColAdd.vue +75 -0
  186. package/src/plugins/bf/coms/ColEdit.vue +52 -0
  187. package/src/plugins/bf/coms/ColList.vue +91 -0
  188. package/src/plugins/bf/coms/DataGroup.vue +90 -0
  189. package/src/plugins/bf/coms/DataStat.vue +67 -0
  190. package/src/plugins/bf/coms/EditTable.vue +161 -0
  191. package/src/plugins/bf/coms/NodeTree.vue +105 -0
  192. package/src/plugins/bf/coms/PlugCmd.vue +95 -0
  193. package/src/plugins/bf/coms/RunParams.vue +68 -0
  194. package/src/plugins/bf/coms/TabCombine.vue +60 -0
  195. package/src/plugins/bf/coms/TabJoin.vue +69 -0
  196. package/src/plugins/bf/coms/ValFormat.vue +53 -0
  197. package/src/plugins/bf/coms/ValProc.vue +77 -0
  198. package/src/plugins/bf/coms/ValSort.vue +89 -0
  199. package/src/plugins/bf/parts/Icon.vue +105 -0
  200. package/src/plugins/bf/parts/Rect.vue +98 -0
  201. package/src/plugins/bf/parts/index.js +11 -0
  202. package/src/plugins/cxMixin/IAttBase.js +78 -0
  203. package/src/plugins/cxMixin/IAttDlg.js +45 -0
  204. package/src/plugins/cxMixin/IAttProc.js +98 -0
  205. package/src/plugins/cxMixin/IComBase.js +42 -0
  206. package/src/plugins/cxMixin/IContextMenu.js +74 -0
  207. package/src/plugins/cxMixin/IDataAcce.js +1106 -0
  208. package/src/plugins/cxMixin/IDataList.js +775 -0
  209. package/src/plugins/cxMixin/IDataMan.js +1670 -0
  210. package/src/plugins/cxMixin/IDataMan2.js +2561 -0
  211. package/src/plugins/cxMixin/IDataProc.js +379 -0
  212. package/src/plugins/cxMixin/IDatagrid.js +234 -0
  213. package/src/plugins/cxMixin/IEditableDg.js +477 -0
  214. package/src/plugins/cxMixin/IExpBase.js +51 -0
  215. package/src/plugins/cxMixin/IFormBase.js +29 -0
  216. package/src/plugins/cxMixin/IGridBpm.js +732 -0
  217. package/src/plugins/cxMixin/IGridData.js +109 -0
  218. package/src/plugins/cxMixin/IOperMore.js +323 -0
  219. package/src/plugins/cxMixin/IPlugBase.js +341 -0
  220. package/src/plugins/cxMixin/ISendCode.js +86 -0
  221. package/src/plugins/cxMixin/ISinglePage.js +112 -0
  222. package/src/plugins/cxMixin/ITags.js +81 -0
  223. package/src/plugins/cxe/CxeMap.vue +61 -0
  224. package/src/plugins/home/HeadNav.vue +194 -0
  225. package/src/plugins/home/Home.vue +59 -0
  226. package/src/plugins/home/HomePage.vue +237 -0
  227. package/src/plugins/home/Login.vue +139 -0
  228. package/src/plugins/zbcxCesium/coms/GraDrawBarWgt.vue +176 -0
  229. package/src/plugins/zbcxCesium/coms/baseMapSwitch/BaseMap.scss +42 -0
  230. package/src/plugins/zbcxCesium/coms/baseMapSwitch/BaseMap.vue +59 -0
  231. package/src/plugins/zbcxCesium/coms/dataPreview/DataPreview.vue +526 -0
  232. package/src/plugins/zbcxCesium/coms/dataPreview/DataPreviewPlug.vue +79 -0
  233. package/src/plugins/zbcxCesium/coms/dataPreview/ReadShpFile.js +42 -0
  234. package/src/plugins/zbcxCesium/coms/legend/Legend.vue +78 -0
  235. package/src/plugins/zbcxCesium/coms/popup/dialog-left-bg.png +0 -0
  236. package/src/plugins/zbcxCesium/coms/popup/index.js +88 -0
  237. package/src/plugins/zbcxCesium/coms/popup/index.vue +93 -0
  238. package/src/plugins/zbcxCesium/pub/LoadGeojson.js +44 -0
  239. package/src/plugins/zbcxCesium/pub/LoadModel.js +128 -0
  240. package/src/plugins/zbcxCesium/pub/LoadOgc.js +226 -0
  241. package/src/plugins/zbcxCesium/pub/Opacity.vue +139 -0
  242. package/src/plugins/zbcxCesium/pub/PubCxe.js +97 -0
  243. package/src/plugins/zbcxCesium/pub/SceneSet.vue +178 -0
  244. package/src/plugins/zbcxCesium/pub/ShowEffect.vue +216 -0
  245. package/src/plugins/zbcxCesium/pub/TMeasure.vue +122 -0
  246. package/src/plugins/zbcxCesium/pub/ToDefView3.vue +109 -0
  247. package/src/plugins/zbcxCesium/pub/getWmsGetCapabilities.js +127 -0
  248. package/src/plugins/zbcxCesium/utils/ShpToGeoJson.js +24 -0
  249. package/src/plugins/zbcxCesium/utils/WebProj4.js +32 -0
@@ -0,0 +1,323 @@
1
+ <style lang='scss' scoped>
2
+ .title{font-size: 0.18rem;font-weight: 600;}
3
+ </style>
4
+
5
+ <template>
6
+ <cx-layout padding>
7
+ <cx-region region="center" gutter>
8
+ <span class="title">{{title}}</span>
9
+ <el-table v-if="showTab" @row-click="onRowClick" :data="tableData" stripe style="width: 100%;height: 100%">
10
+ <el-table-column v-if="showName" prop="mxname" label="训练模型名称" align="center"/>
11
+ <el-table-column prop="taskstate" label="状态" align="center"/>
12
+ <el-table-column prop="timeadd" label="时间" align="center"/>
13
+ <el-table-column prop="taskid" label="任务id" align="center"/>
14
+ <el-table-column fixed="right" label="操作" width="150">
15
+ <template #default="scope">
16
+ <el-button link type="primary" :size="size" v-if="!noShowYl&&scope.row.taskstate!=='正在执行'" @click="onPreview(scope.row)">预览</el-button>
17
+ <el-button link type="primary" :size="size" v-if="!noShowBc&&scope.row.taskstate!=='正在执行'" @click="onStorage(scope.row)">保存</el-button>
18
+ <el-button link type="primary" :size="size" v-if="!noShowDc&&scope.row.taskstate!=='正在执行'" @click="onExport(scope.row)">导出</el-button>
19
+ <el-button link type="primary" :size="size" v-if="!noShowXlxg&&scope.row.taskstate==='完成'" @click="onXlxg(scope.row)">训练效果</el-button>
20
+ <el-button link type="primary" :size="size" v-if="!noShowSc" @click="onDelect(scope.row)">删除</el-button>
21
+ </template>
22
+ </el-table-column>
23
+ </el-table>
24
+ </cx-region>
25
+ </cx-layout>
26
+ </template>
27
+
28
+ <script>
29
+ /**
30
+ * 插件 - 异步接口参数表
31
+ */
32
+
33
+ /**
34
+ * 修改记录:
35
+ * 24-06-17 黄佳龙 首次编写
36
+ */
37
+
38
+ import PreView from '../../../coms/PreView'
39
+ import Api from '../../../Api'
40
+ export default
41
+ {
42
+ mixins: [cx.mixin.IPlugBase, PreView],
43
+ props:
44
+ {
45
+ czdx: { type: String },
46
+ file: { type: String },
47
+ graph: { type: String },
48
+ select: { type: Array },
49
+ anomal: { type: Number },
50
+ tasktype: { type: String },
51
+ noShowYl: { type: Boolean },
52
+ noShowBc: { type: Boolean },
53
+ noShowDc: { type: Boolean },
54
+ noShowXlxg: { type: Boolean },
55
+ noShowSc: { type: Boolean },
56
+ showName: { type: Boolean },
57
+ title: { type: String }
58
+ },
59
+ data()
60
+ {
61
+ return {
62
+ tableData: [],
63
+ src: '',
64
+ srcList: [],
65
+ isSave: false,
66
+ selection: null,
67
+ showTab: true,
68
+ time: null,
69
+ defsjj: []
70
+ }
71
+ },
72
+
73
+ async created()
74
+ {
75
+ this.defsjj = await cx.svr.data.query($app.TabConst.sjj.major, $app.TabConst.sjj.minor, { args: [['userid', '=', $g.user.id, null], ['defdata', '=', 1, 'and']] })
76
+ await this.getTableData()
77
+ // 每半分钟执行一次
78
+ this.setTask(this.tableData)
79
+ this.time = setInterval(() =>
80
+ {
81
+ this.setTask(this.tableData)
82
+ }, 30000)
83
+ },
84
+
85
+ unmounted()
86
+ {
87
+ clearInterval(this.time)
88
+ },
89
+
90
+ methods:
91
+ {
92
+ /**
93
+ * 获取表格数据
94
+ * @returns {Promise<void>}
95
+ */
96
+ async getTableData()
97
+ {
98
+ this.showTab = false
99
+ let params = {
100
+ _major: $app.TabConst.ckycTask.major,
101
+ _minor: $app.TabConst.ckycTask.minor,
102
+ args: [['tasktype', '=', this.tasktype, 'and'], this.defsjj[0] ? ['defsjj', '=', this.defsjj[0].id, 'and'] : ['id', '=', 0, 'and']],
103
+ orderBy: 'id desc'
104
+ }
105
+ this.tableData = await cx.svr.data.query(params._major, params._minor, params).catch((err) =>
106
+ {
107
+ this.showTab = true
108
+ this.onError(err)
109
+ })
110
+ this.tableData.forEach((item) =>
111
+ {
112
+ item.mxname = JSON.parse(item.paramsdata).mxname
113
+ })
114
+ this.showTab = true
115
+ },
116
+
117
+ /**
118
+ * 每半分钟循环执行任务
119
+ * @param {Array} list 任务列表
120
+ * @returns {Promise<void>}
121
+ */
122
+ async setTask(list)
123
+ {
124
+ let listC = list.filter((item) =>
125
+ {
126
+ return item.taskstate === '正在执行'
127
+ })
128
+ if (!listC.length) return
129
+ for (let i in listC)
130
+ {
131
+ let res = await Api.checktask({ taskid: listC[i].taskid }).catch((err) =>
132
+ {
133
+ this.onError(err)
134
+ })
135
+ if (res.ret === 0 || res.modelfile)
136
+ {
137
+ let att = {
138
+ id: listC[i].id,
139
+ taskstate: '完成',
140
+ filename: res.file ? res.file : res.modelfile
141
+ }
142
+ // 更新状态
143
+ await cx.svr.data.update($app.TabConst.ckycTask.major, $app.TabConst.ckycTask.minor, att).catch((err) =>
144
+ {
145
+ this.onError(err)
146
+ })
147
+ this.getTableData()
148
+ }
149
+ else if (res.ret === 1)
150
+ {
151
+ let att = {
152
+ id: listC[i].id,
153
+ taskstate: '失败'
154
+ }
155
+ // 更新状态
156
+ await cx.svr.data.update($app.TabConst.ckycTask.major, $app.TabConst.ckycTask.minor, att).catch((err) =>
157
+ {
158
+ this.onError(err)
159
+ })
160
+ this.getTableData()
161
+ }
162
+ }
163
+ },
164
+
165
+ /**
166
+ * 保存数据
167
+ * @param {Object} row 行数据
168
+ */
169
+ onStorage(row)
170
+ {
171
+ if (row.yclsjj_id) return this.$showMsg('数据已保存', 'warning')
172
+ let onOkAdd = async(att) =>
173
+ {
174
+ delete att.id
175
+ att.gcsj = 1 // 为过程数据
176
+ let flag = await this.isSameName(att)
177
+ if (!flag)
178
+ {
179
+ this.$showMsg('已存在数据名称与图层名称相同数据', 'warning')
180
+
181
+ return false
182
+ }
183
+ cx.svr.data.add($app.TabConst.yclsjj.major, $app.TabConst.yclsjj.minor, att, 1).then(ret =>
184
+ {
185
+ if (!ret)
186
+ return
187
+ let att = {
188
+ id: row.id,
189
+ yclsjj_id: ret.id
190
+ }
191
+ cx.svr.data.update($app.TabConst.ckycTask.major, $app.TabConst.ckycTask.minor, att).then(() =>
192
+ {
193
+ this.getTableData()
194
+ }).catch((err) =>
195
+ {
196
+ this.onError(err)
197
+ })
198
+ let medias = { entityid: ret.id, filename: row.filename, mode: 2, title: ret.layer + '.' + row.filename.split('.')[1], uperson: $g.user.name, major: $app.TabConst.yclsjj.major, minor: $app.TabConst.yclsjj.minor, update: cx.formatter.datetimeDb(new Date()) }
199
+
200
+ cx.svr.data.add(cx.consts.SYSTAB, cx.consts.MEDIA, medias, 1).then(res =>
201
+ {
202
+ Api.pubSave({ files: [row.filename] })
203
+ vm.$processing.close()
204
+ this.isSave = true
205
+ cx.run.closeRun('AttInput')
206
+ this.$showSuccess('add')
207
+ }).catch(err =>
208
+ {
209
+ this.onError(err)
210
+ })
211
+ }).catch(err =>
212
+ {
213
+ this.onError(err)
214
+ })
215
+ }
216
+ let rowData = JSON.parse(row.paramsdata)
217
+ let params =
218
+ {
219
+ major: $app.TabConst.yclsjj.major,
220
+ minor: $app.TabConst.yclsjj.minor,
221
+ title: '属性录入',
222
+ att: rowData.select,
223
+ onOk: onOkAdd
224
+ }
225
+ cx.run.runPlug('AttInput', params)
226
+ },
227
+
228
+ /**
229
+ * 判断同名校验
230
+ * @param {Object} att 属性数据
231
+ * @returns {Promise<boolean>} 是否存在同名数据
232
+ */
233
+ async isSameName(att)
234
+ {
235
+ let data = await cx.svr.data.query($app.TabConst.yclsjj.major, $app.TabConst.yclsjj.minor, { args: [['username', '=', $g.user.id, null], ['glid', '=', att.glid, 'and'], ['name', '=', att.name, 'and'], ['layer', '=', att.layer, 'and']] })
236
+ .catch(() =>
237
+ {
238
+ })
239
+ if (data.length)
240
+ return false
241
+ else
242
+ return true
243
+ },
244
+
245
+ /**
246
+ * 预览数据
247
+ * @param {Object} row 行数据
248
+ */
249
+ onPreview(row)
250
+ {
251
+ let src = row.filename
252
+ let title = cx.file.getFileName(row.filename)
253
+ let filetype = cx.file.getFileType(title)
254
+ let att = JSON.parse(row.paramsdata)
255
+ cx.run.runPlug('CustomFileView', { data: { src, att: att.select, filetype: filetype } })
256
+ },
257
+
258
+ /**
259
+ * 导出数据
260
+ * @param {Object} row 行数据
261
+ */
262
+ onExport(row)
263
+ {
264
+ if (row.yclsjj_id)
265
+ {
266
+ this.queryMedia($app.TabConst.yclsjj.major, $app.TabConst.yclsjj.minor, row.yclsjj_id).then(res =>
267
+ {
268
+ if (res && res.length)
269
+ cx.svr.doc.download({ id: res[0].id })
270
+ })
271
+ }
272
+ else
273
+ this.$showMsg('请先保存分析结果', 'error')
274
+ },
275
+
276
+ /**
277
+ * 查看训练效果
278
+ * @param {Object} row 行数据
279
+ */
280
+ onXlxg(row)
281
+ {
282
+ Api.checktask({ taskid: row.taskid }).then((res) =>
283
+ {
284
+ if (!res.modelfile)
285
+ return this.$showMsg('生成失败', 'error')
286
+ this.qqtdatas = res
287
+ this.myChart = null
288
+ this.$nextTick(() =>
289
+ {
290
+ cx.run.runPlug('QqtEcharts', { data: res })
291
+ this.initCharts()
292
+ })
293
+ }).catch((err) =>
294
+ {
295
+ this.$showRet(err)
296
+ })
297
+ },
298
+
299
+ /**
300
+ * 删除数据
301
+ * @param {Object} row 行数据
302
+ */
303
+ onDelect(row)
304
+ {
305
+ cx.svr.data.dels($app.TabConst.ckycTask.major, $app.TabConst.ckycTask.minor, row.id.toString()).then(() =>
306
+ {
307
+ this.$showMsg('删除成功', 'success')
308
+ this.getTableData()
309
+ }).catch(this.onError)
310
+ },
311
+
312
+ /**
313
+ * 行点击事件
314
+ * @param {Object} row 行数据
315
+ */
316
+ onRowClick(row)
317
+ {
318
+ this.$emit('onRowClick', row)
319
+ }
320
+
321
+ }
322
+ }
323
+ </script>
@@ -0,0 +1,336 @@
1
+ <style lang='scss' scoped>
2
+ .title{font-size: 0.18rem; font-weight: 600;}
3
+ </style>
4
+
5
+ <template>
6
+ <cx-layout padding>
7
+ <cx-region region="center" gutter>
8
+ <span class="title">{{title}}</span>
9
+ <el-table v-if="showTab" @row-click="onRowClick" :data="tableData" stripe style="width: 100%;height: 100%">
10
+ <el-table-column v-if="showName" prop="mxname" label="训练模型名称" align="center"/>
11
+ <el-table-column prop="taskstate" label="状态" align="center"/>
12
+ <el-table-column prop="timeadd" label="时间" align="center"/>
13
+ <el-table-column prop="taskid" label="任务id" align="center"/>
14
+ <el-table-column fixed="right" label="操作" width="150">
15
+ <template #default="scope">
16
+ <el-button link type="primary" :size="size" v-if="!noShowYl&&scope.row.taskstate!=='正在执行'&&scope.row.taskstate.indexOf('执行进度') === -1" @click="onPreview(scope.row)">预览</el-button>
17
+ <el-button link type="primary" :size="size" v-if="!noShowBc&&scope.row.taskstate!=='正在执行'&&scope.row.taskstate.indexOf('执行进度') === -1" @click="onStorage(scope.row)">保存</el-button>
18
+ <el-button link type="primary" :size="size" v-if="!noShowDc&&scope.row.taskstate!=='正在执行'&&scope.row.taskstate.indexOf('执行进度') === -1" @click="onExport(scope.row)">导出</el-button>
19
+ <el-button link type="primary" :size="size" v-if="scope.row.taskstate==='完成'" @click="onXlxg(scope.row)">训练效果</el-button>
20
+ <el-button link type="primary" :size="size" v-if="!noShowSc" @click="onDelect(scope.row)">删除</el-button>
21
+ </template>
22
+ </el-table-column>
23
+ </el-table>
24
+ </cx-region>
25
+ </cx-layout>
26
+ </template>
27
+
28
+ <script>
29
+ /**
30
+ * 插件 - 异步接口参数表
31
+ */
32
+
33
+ /**
34
+ * 修改记录:
35
+ * 24-06-17 黄佳龙 首次编写
36
+ */
37
+
38
+ import PreView from '../../../coms/PreView'
39
+ import Api from '../../../Api'
40
+ export default
41
+ {
42
+ mixins: [cx.mixin.IPlugBase, PreView],
43
+ props:
44
+ {
45
+ czdx: { type: String },
46
+ file: { type: String },
47
+ graph: { type: String },
48
+ select: { type: Array },
49
+ anomal: { type: Number },
50
+ tasktype: { type: String },
51
+ noShowYl: { type: Boolean },
52
+ noShowBc: { type: Boolean },
53
+ noShowDc: { type: Boolean },
54
+ noShowXlxg: { type: Boolean },
55
+ noShowSc: { type: Boolean },
56
+ showName: { type: Boolean },
57
+ title: { type: String }
58
+ },
59
+ data()
60
+ {
61
+ return {
62
+ tableData: [],
63
+ src: '',
64
+ srcList: [],
65
+ isSave: false,
66
+ selection: null,
67
+ showTab: true,
68
+ time: null,
69
+ defsjj: []
70
+ }
71
+ },
72
+
73
+ async created()
74
+ {
75
+ this.defsjj = await cx.svr.data.query($app.TabConst.sjj.major, $app.TabConst.sjj.minor, { args: [['userid', '=', $g.user.id, null], ['defdata', '=', 1, 'and']] })
76
+ await this.getTableData()
77
+ // 每半分钟执行一次
78
+ this.setTask(this.tableData)
79
+ this.time = setInterval(() =>
80
+ {
81
+ this.setTask(this.tableData)
82
+ }, 30000)
83
+ },
84
+
85
+ unmounted()
86
+ {
87
+ clearInterval(this.time)
88
+ },
89
+
90
+ methods:
91
+ {
92
+ /**
93
+ * 获取表格数据
94
+ * @returns {Promise<void>}
95
+ */
96
+ async getTableData()
97
+ {
98
+ this.showTab = false
99
+ let params = {
100
+ _major: $app.TabConst.ckycTask.major,
101
+ _minor: $app.TabConst.ckycTask.minor,
102
+ args: [['tasktype', '=', this.tasktype, 'and'], this.defsjj[0] ? ['defsjj', '=', this.defsjj[0].id, 'and'] : ['id', '=', 0, 'and']],
103
+ orderBy: 'id desc'
104
+ }
105
+ this.tableData = await cx.svr.data.query(params._major, params._minor, params).catch((err) =>
106
+ {
107
+ this.showTab = true
108
+ this.onError(err)
109
+ })
110
+ this.tableData.forEach((item) =>
111
+ {
112
+ item.mxname = JSON.parse(item.paramsdata).mxname
113
+ })
114
+ this.showTab = true
115
+ },
116
+
117
+ /**
118
+ * 每半分钟循环执行任务
119
+ * @param {Array} list 任务列表
120
+ * @returns {Promise<void>}
121
+ */
122
+ async setTask(list)
123
+ {
124
+ let listC = list.filter((item) =>
125
+ {
126
+ return item.taskstate === '正在执行' || item.taskstate.indexOf('执行进度') !== -1
127
+ })
128
+ if (!listC.length) return
129
+ for (let i in listC)
130
+ {
131
+ let res = await Api.checkcxtask({ taskid: listC[i].taskid }).catch((err) =>
132
+ {
133
+ this.onError(err)
134
+ })
135
+ if (res.status === 0 || res.modelfile)
136
+ {
137
+ let att = {
138
+ id: listC[i].id,
139
+ taskstate: '完成',
140
+ filename: res.result.file ? res.result.file : res.modelfile
141
+ }
142
+ // 更新状态
143
+ await cx.svr.data.update($app.TabConst.ckycTask.major, $app.TabConst.ckycTask.minor, att).catch((err) =>
144
+ {
145
+ this.onError(err)
146
+ })
147
+ this.getTableData()
148
+ }
149
+ else if (res.status === 2)
150
+ {
151
+ let att = {
152
+ id: listC[i].id,
153
+ taskstate: '失败'
154
+ }
155
+ // 更新状态
156
+ await cx.svr.data.update($app.TabConst.ckycTask.major, $app.TabConst.ckycTask.minor, att).catch((err) =>
157
+ {
158
+ this.onError(err)
159
+ })
160
+ this.getTableData()
161
+ }
162
+ else if (res.status === 1)
163
+ {
164
+ listC[i].taskstate = res.result.task
165
+ list.forEach(item =>
166
+ {
167
+ if (item.taskid === listC[i].taskid)
168
+ item.taskstate = res.result.task
169
+ })
170
+ }
171
+ }
172
+ },
173
+
174
+ /**
175
+ * 保存数据
176
+ * @param {Object} row 行数据
177
+ */
178
+ onStorage(row)
179
+ {
180
+ if (row.yclsjj_id) return this.$showMsg('数据已保存', 'warning')
181
+ let onOkAdd = async(att) =>
182
+ {
183
+ delete att.id
184
+ att.gcsj = 1 // 为过程数据
185
+ let flag = await this.isSameName(att)
186
+ if (!flag)
187
+ {
188
+ this.$showMsg('已存在数据名称与图层名称相同数据', 'warning')
189
+
190
+ return false
191
+ }
192
+ cx.svr.data.add($app.TabConst.yclsjj.major, $app.TabConst.yclsjj.minor, att, 1).then(ret =>
193
+ {
194
+ if (!ret)
195
+ return
196
+ let att = {
197
+ id: row.id,
198
+ yclsjj_id: ret.id
199
+ }
200
+ cx.svr.data.update($app.TabConst.ckycTask.major, $app.TabConst.ckycTask.minor, att).then(() =>
201
+ {
202
+ this.getTableData()
203
+ }).catch((err) =>
204
+ {
205
+ this.onError(err)
206
+ })
207
+ let medias = { entityid: ret.id, filename: row.filename, mode: 2, title: ret.layer + '.' + row.filename.split('.')[1], uperson: $g.user.name, major: $app.TabConst.yclsjj.major, minor: $app.TabConst.yclsjj.minor, update: cx.formatter.datetimeDb(new Date()) }
208
+
209
+ cx.svr.data.add(cx.consts.SYSTAB, cx.consts.MEDIA, medias, 1).then(res =>
210
+ {
211
+ Api.pubSave({ files: [row.filename] })
212
+ vm.$processing.close()
213
+ this.isSave = true
214
+ cx.run.closeRun('AttInput')
215
+ this.$showSuccess('add')
216
+ }).catch(err =>
217
+ {
218
+ this.onError(err)
219
+ })
220
+ }).catch(err =>
221
+ {
222
+ this.onError(err)
223
+ })
224
+ }
225
+ let rowData = JSON.parse(row.paramsdata)
226
+ let params =
227
+ {
228
+ major: $app.TabConst.yclsjj.major,
229
+ minor: $app.TabConst.yclsjj.minor,
230
+ title: '属性录入',
231
+ att: rowData.select,
232
+ onOk: onOkAdd
233
+ }
234
+ cx.run.runPlug('AttInput', params)
235
+ },
236
+
237
+ /**
238
+ * 判断同名校验
239
+ * @param {Object} att 属性数据
240
+ * @returns {Promise<boolean>} 是否存在同名数据
241
+ */
242
+ async isSameName(att)
243
+ {
244
+ let data = await cx.svr.data.query($app.TabConst.yclsjj.major, $app.TabConst.yclsjj.minor, { args: [['username', '=', $g.user.id, null], ['glid', '=', att.glid, 'and'], ['name', '=', att.name, 'and'], ['layer', '=', att.layer, 'and']] })
245
+ .catch(() =>
246
+ {
247
+ })
248
+ if (data.length)
249
+ return false
250
+ else
251
+ return true
252
+ },
253
+
254
+ /**
255
+ * 预览数据
256
+ * @param {Object} row 行数据
257
+ */
258
+ onPreview(row)
259
+ {
260
+ let src = row.filename
261
+ let title = cx.file.getFileName(row.filename)
262
+ let filetype = cx.file.getFileType(title)
263
+ let att = JSON.parse(row.paramsdata)
264
+ cx.run.runPlug('CustomFileView', { data: { src, att: att.select, filetype: filetype } })
265
+ },
266
+
267
+ /**
268
+ * 导出数据
269
+ * @param {Object} row 行数据
270
+ */
271
+ onExport(row)
272
+ {
273
+ if (row.yclsjj_id)
274
+ {
275
+ this.queryMedia($app.TabConst.yclsjj.major, $app.TabConst.yclsjj.minor, row.yclsjj_id).then(res =>
276
+ {
277
+ if (res && res.length)
278
+ cx.svr.doc.download({ id: res[0].id })
279
+ })
280
+ }
281
+ else
282
+ this.$showMsg('请先保存分析结果', 'error')
283
+ },
284
+
285
+ /**
286
+ * 查看训练效果
287
+ * @param {Object} row 行数据
288
+ */
289
+ onXlxg(row)
290
+ {
291
+ Api.checkcxtask({ taskid: row.taskid }).then((res) =>
292
+ {
293
+ if (!res.result)
294
+ return this.$showMsg('生成失败', 'error')
295
+
296
+
297
+ this.$nextTick(() =>
298
+ {
299
+ let src = `data:image/png;base64,${res.result.roc_graph}`
300
+ // cx.run.runPlug('QqtEcharts', { data: res })
301
+ // this.initCharts()
302
+ const filetype = 'png'
303
+ cx.run.runPlug('FileView', { data: { src, filetype }, title: '训练效果' })
304
+ })
305
+ }).catch((err) =>
306
+ {
307
+ this.$showRet(err)
308
+ })
309
+ },
310
+
311
+ /**
312
+ * 删除数据
313
+ * @param {Object} row 行数据
314
+ */
315
+ onDelect(row)
316
+ {
317
+ cx.svr.data.dels($app.TabConst.ckycTask.major, $app.TabConst.ckycTask.minor, row.id.toString()).then(() =>
318
+ {
319
+ this.$showMsg('删除成功', 'success')
320
+ this.getTableData()
321
+ }).catch(this.onError)
322
+ },
323
+
324
+ /**
325
+ * 行点击事件
326
+ * @param {Object} row 行数据
327
+ */
328
+ onRowClick(row)
329
+ {
330
+ this.$emit('onRowClick', row)
331
+ }
332
+
333
+ }
334
+ }
335
+ </script>
336
+