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,200 @@
|
|
|
1
|
+
<style lang='scss' scoped>
|
|
2
|
+
</style>
|
|
3
|
+
|
|
4
|
+
<template>
|
|
5
|
+
<cx-data-man2
|
|
6
|
+
class="dataman2"
|
|
7
|
+
ref="dataman2"
|
|
8
|
+
v-bind="datamanOpts"
|
|
9
|
+
v-on="datamanEvts"
|
|
10
|
+
@row-click="onRowClick"
|
|
11
|
+
/>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 插件 - 工具编辑与发布
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 修改记录:
|
|
22
|
+
* 24-07-08 张光辉 首次编写
|
|
23
|
+
*/
|
|
24
|
+
import CodeApi from './CodeApi.js'
|
|
25
|
+
|
|
26
|
+
export default
|
|
27
|
+
{
|
|
28
|
+
mixins: [cx.mixin.IPlugBase],
|
|
29
|
+
data()
|
|
30
|
+
{
|
|
31
|
+
return {
|
|
32
|
+
datamanOpts:
|
|
33
|
+
{
|
|
34
|
+
params:
|
|
35
|
+
{
|
|
36
|
+
editable: true,
|
|
37
|
+
major: $app.TabConst.zdygjsxb.major,
|
|
38
|
+
minor: $app.TabConst.zdygjsxb.minor,
|
|
39
|
+
fixedExp: cx.sqlexp.from([['userid', '=', $g.user.id]])
|
|
40
|
+
},
|
|
41
|
+
makeExpOpers: this.makeExpOpers,
|
|
42
|
+
makeTabOpers: this.makeTabOpers,
|
|
43
|
+
expParams: { 'show-more': false },
|
|
44
|
+
aftDel: this.aftDel,
|
|
45
|
+
dgParams: {
|
|
46
|
+
datagrid: {
|
|
47
|
+
table: {
|
|
48
|
+
elAtts: {
|
|
49
|
+
stripe: false,
|
|
50
|
+
'row-style': this.onRowStyle,
|
|
51
|
+
'cell-style': ({ row, column, rowIndex, columnIndex }) => this.onCellStyle({ row, column, rowIndex, columnIndex })
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
accept: ''
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
mounted()
|
|
62
|
+
{
|
|
63
|
+
this.$refs.dataman2.datagridAtts.datagrid.table.multiple = true // 表格支持多选
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
methods:
|
|
67
|
+
{
|
|
68
|
+
/**
|
|
69
|
+
* 生成表达式操作按钮
|
|
70
|
+
* @param {Array} list 按钮列表
|
|
71
|
+
* @returns {Array} 处理后的按钮列表
|
|
72
|
+
*/
|
|
73
|
+
makeExpOpers(list)
|
|
74
|
+
{
|
|
75
|
+
let _list = list.filter(item => item.name === 'del')
|
|
76
|
+
_list.unshift(
|
|
77
|
+
{ name: 'CreateSjj', title: '新建', icon: 'cx-fi ic-addCircle', type: 'primary', showLabel: true, showIcon: true, show: () => true, enable: () => true, onClick: this.onCreateDataset },
|
|
78
|
+
// { name: 'SetdefSjj', title: '上传', icon: 'cx-fi ic-setting', showLabel: true, showIcon: true, show: () => true, enable: () => true, onClick: this.mrDataset },
|
|
79
|
+
{ name: 'fbData', title: '发布', icon: 'cx-fi ic-setting', showLabel: true, showIcon: true, show: () => true, enable: () => true, onClick: this.fbState },
|
|
80
|
+
{ name: 'qxfbData', title: '取消发布', icon: 'cx-fi ic-setting', showLabel: true, showIcon: true, show: () => true, enable: () => true, onClick: this.qxfbState }
|
|
81
|
+
)
|
|
82
|
+
return _list
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 生成表格操作按钮
|
|
87
|
+
* @param {Array} defBtns 默认按钮
|
|
88
|
+
* @returns {Array} 处理后的按钮
|
|
89
|
+
*/
|
|
90
|
+
makeTabOpers(defBtns)
|
|
91
|
+
{
|
|
92
|
+
defBtns[0].btns.push(
|
|
93
|
+
{
|
|
94
|
+
enable: (att) => true,
|
|
95
|
+
name: 'predata_',
|
|
96
|
+
onClick: (att) => this.preData(att),
|
|
97
|
+
show: (att) => true,
|
|
98
|
+
title: '代码编辑'
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
defBtns[0].width = 150
|
|
102
|
+
return defBtns
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* 代码编辑
|
|
107
|
+
* @param {Object} att 属性数据
|
|
108
|
+
*/
|
|
109
|
+
preData(att)
|
|
110
|
+
{
|
|
111
|
+
CodeApi.checkcontainer({
|
|
112
|
+
userid: 'code' + $g.user.id
|
|
113
|
+
}).then(res =>
|
|
114
|
+
{
|
|
115
|
+
att.isEdit = true
|
|
116
|
+
if (!res.ret)
|
|
117
|
+
cx.run.runPlug('DmfbForm', { ...att, ...res })
|
|
118
|
+
else
|
|
119
|
+
cx.run.runPlug('DmfbForm', att)
|
|
120
|
+
}).catch(this.onError)
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 新建代码
|
|
125
|
+
*/
|
|
126
|
+
onCreateDataset()
|
|
127
|
+
{
|
|
128
|
+
CodeApi.checkcontainer({
|
|
129
|
+
userid: 'code' + $g.user.id
|
|
130
|
+
}).then(res =>
|
|
131
|
+
{
|
|
132
|
+
if (!res.ret)
|
|
133
|
+
cx.run.runPlug('DmfbForm', res)
|
|
134
|
+
else
|
|
135
|
+
cx.run.runPlug('DmfbForm')
|
|
136
|
+
}).catch(this.onError)
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* 取消发布
|
|
141
|
+
*/
|
|
142
|
+
qxfbState()
|
|
143
|
+
{
|
|
144
|
+
this.fbState(0)
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* 发布状态设置
|
|
149
|
+
* @param {Number} type 状态类型
|
|
150
|
+
*/
|
|
151
|
+
fbState(type)
|
|
152
|
+
{
|
|
153
|
+
let ids = []
|
|
154
|
+
let state = []
|
|
155
|
+
if (this.$refs.dataman2.selection.length)
|
|
156
|
+
{
|
|
157
|
+
ids = this.$refs.dataman2.selection.map((item) =>
|
|
158
|
+
{
|
|
159
|
+
return item.id
|
|
160
|
+
})
|
|
161
|
+
state = this.$refs.dataman2.selection.map((item) =>
|
|
162
|
+
{
|
|
163
|
+
return type === 0 ? type : 1
|
|
164
|
+
})
|
|
165
|
+
let params =
|
|
166
|
+
{
|
|
167
|
+
id: ids.toString(),
|
|
168
|
+
state: state.toString()
|
|
169
|
+
}
|
|
170
|
+
cx.svr.data.updates($app.TabConst.zdygjsxb.major, $app.TabConst.zdygjsxb.minor, params).then(() =>
|
|
171
|
+
{
|
|
172
|
+
this.datamanOpts.params.fixedExp = cx.sqlexp.from([['userid', '=', $g.user.id]])
|
|
173
|
+
this.$showMsg('修改成功', 'success')
|
|
174
|
+
}).catch(() =>
|
|
175
|
+
{
|
|
176
|
+
this.$showMsg('修改失败', 'error')
|
|
177
|
+
})
|
|
178
|
+
}
|
|
179
|
+
else
|
|
180
|
+
this.$showMsg('请选择修改的数据', 'warning')
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
onCellStyle({ row, column, rowIndex, columnIndex })
|
|
184
|
+
{
|
|
185
|
+
if (['_debug_state', '_state'].includes(column.property))
|
|
186
|
+
{
|
|
187
|
+
column.fixed = true
|
|
188
|
+
let style = {}
|
|
189
|
+
if (Number(row[column.property.replace('_', '')]) === 0)
|
|
190
|
+
style.color = 'var(--cx-colorWarning1)'
|
|
191
|
+
else if (Number(row[column.property.replace('_', '')]) === 1)
|
|
192
|
+
style.color = 'var(--cx-colorSuccess1)'
|
|
193
|
+
else if (Number(row[column.property.replace('_', '')]) === 2)
|
|
194
|
+
style.color = 'var(--cx-colorDanger1)'
|
|
195
|
+
return style
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
</script>
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
<style lang="scss" scoped>
|
|
2
|
+
.title-box{width: 1.3rem; display: inline-block;}
|
|
3
|
+
.zw-box{position: relative; left: -0.2rem;}
|
|
4
|
+
.wjlx-box{position: relative; left: -0.5rem;}
|
|
5
|
+
.colvalue-box{position: relative; left: -0.7rem;}
|
|
6
|
+
.bt-box{position: relative; left: -0.9rem;}
|
|
7
|
+
.add-icon{position: absolute; right: 0.1rem; top: 0.1rem; font-size: 0.2rem; cursor: pointer; color: var(--cx-colorSuccess3);}
|
|
8
|
+
.list-params{display: flex; justify-content: space-between;margin-bottom: 0.1rem;
|
|
9
|
+
.colname-box{width: 1rem;}
|
|
10
|
+
.el-select{width: 1rem;}
|
|
11
|
+
.el-input{width: 1rem;}
|
|
12
|
+
}
|
|
13
|
+
.getLength{
|
|
14
|
+
.el-select{width: 1.7rem;}
|
|
15
|
+
.el-input{width: 1.7rem;}
|
|
16
|
+
}
|
|
17
|
+
.delete-icon{position: relative; right: 0.02rem; top: 0.05rem; font-size: 0.2rem; cursor: pointer; color: var(--cx-colorDanger3);}
|
|
18
|
+
.file-upload{margin-right: 0.1rem;}
|
|
19
|
+
</style>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<cx-layout :size="size" padding>
|
|
23
|
+
<cx-region region="north">
|
|
24
|
+
<div class="title-box">参数名</div>
|
|
25
|
+
<div class="title-box zw-box" v-if="!noValue">中文名称</div>
|
|
26
|
+
<div class="title-box wjlx-box" v-if="!noValue">文件类型</div>
|
|
27
|
+
<div class="title-box colvalue-box" v-if="!noValue">参数值</div>
|
|
28
|
+
<div class="title-box bt-box" v-if="!noValue">必填</div>
|
|
29
|
+
<cx-icon class="add-icon" icon="cx-fi ic-addCircle" v-if="addable" @click="addParam"></cx-icon>
|
|
30
|
+
</cx-region>
|
|
31
|
+
<cx-region region="center" style="marginTop: 0.1rem;">
|
|
32
|
+
<div class="list-params" :class="noValue?'getLength':''" v-for="(item, index) in tabData" :key="index">
|
|
33
|
+
<div v-if="!addable" class="colname-box"><span style="color: red;">*</span> {{ item.colname }}</div>
|
|
34
|
+
<el-input v-if="addable" v-model="item.colname" placeholder="请输入参数名" />
|
|
35
|
+
<el-input v-if="addable && !noValue" v-model="item.namec" placeholder="请输入中文名称" />
|
|
36
|
+
<el-select v-model="item.coltype" placeholder="请选择参数类型">
|
|
37
|
+
<el-option v-for="(option, index) in item.optionType" :key="index" :label="option.label" :value="option.value" />
|
|
38
|
+
</el-select>
|
|
39
|
+
<el-select v-if="item.coltype === 'ref' && !noValue" v-model="item.colvalue" placeholder="请选择参数值" >
|
|
40
|
+
<el-option v-for="(option, index) in item.option" :key="index" :label="option.label" :value="option.value" />
|
|
41
|
+
</el-select>
|
|
42
|
+
<el-input v-if="item.coltype !== 'ref' && !noValue" :type="item.coltype=='number'?'number':''" v-model="item.colvalue" placeholder="请输入参数值" />
|
|
43
|
+
<el-select v-model="item.require" v-if="item.coltype !== 'ref' && !noValue" placeholder="是否必填" >
|
|
44
|
+
<el-option v-for="(option, index) in optionRequire" :key="index" :label="option.label" :value="option.value" />
|
|
45
|
+
</el-select>
|
|
46
|
+
<cx-button class="file-upload" v-if="item.coltype === 'file'" type="primary" @click="getFile(item)">文件选择</cx-button>
|
|
47
|
+
<cx-icon class="delete-icon" icon="cx-fi ic-delete" @click="deleteParam(index)"></cx-icon>
|
|
48
|
+
</div>
|
|
49
|
+
</cx-region>
|
|
50
|
+
</cx-layout>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<script>
|
|
54
|
+
/**
|
|
55
|
+
* 插件 - 知识库检索(BiFlow)
|
|
56
|
+
*
|
|
57
|
+
* 调用说明:
|
|
58
|
+
* @param {Array} data 参数列表
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 修改记录
|
|
64
|
+
* 25-03-26 黄佳龙 首次提交
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
export default
|
|
68
|
+
{
|
|
69
|
+
mixins: [cx.mixin.IPlugBase],
|
|
70
|
+
props: {
|
|
71
|
+
data: {
|
|
72
|
+
type: Array,
|
|
73
|
+
default: () => []
|
|
74
|
+
},
|
|
75
|
+
addable: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false
|
|
78
|
+
},
|
|
79
|
+
noValue: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: false
|
|
82
|
+
},
|
|
83
|
+
option: {
|
|
84
|
+
type: Array,
|
|
85
|
+
default: () => []
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
data()
|
|
89
|
+
{
|
|
90
|
+
return {
|
|
91
|
+
tabData: [],
|
|
92
|
+
optionRequire: [
|
|
93
|
+
{ label: '是', value: true },
|
|
94
|
+
{ label: '否', value: false }
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
created()
|
|
100
|
+
{
|
|
101
|
+
if (this.data.length || !this.addable)
|
|
102
|
+
this.tabData = this.data
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
methods: {
|
|
106
|
+
/**
|
|
107
|
+
* 添加参数
|
|
108
|
+
*/
|
|
109
|
+
addParam()
|
|
110
|
+
{
|
|
111
|
+
this.tabData.push(
|
|
112
|
+
{
|
|
113
|
+
colname: '',
|
|
114
|
+
namec: '',
|
|
115
|
+
colvalue: '',
|
|
116
|
+
coltype: '',
|
|
117
|
+
require: '',
|
|
118
|
+
option: this.option,
|
|
119
|
+
optionType: [
|
|
120
|
+
{ label: '数字', value: 'number' },
|
|
121
|
+
{ label: '字符串', value: 'string' },
|
|
122
|
+
{ label: '文件', value: 'file' }
|
|
123
|
+
]
|
|
124
|
+
})
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* 删除参数
|
|
129
|
+
* @param {Number} index 索引
|
|
130
|
+
*/
|
|
131
|
+
deleteParam(index)
|
|
132
|
+
{
|
|
133
|
+
this.tabData.splice(index, 1)
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 上传文件
|
|
138
|
+
* @param {Object} item 参数对象
|
|
139
|
+
*/
|
|
140
|
+
uploadFile(item)
|
|
141
|
+
{
|
|
142
|
+
const onLoad = (att) =>
|
|
143
|
+
{
|
|
144
|
+
if (!att.ret)
|
|
145
|
+
{
|
|
146
|
+
let flieList = item.colvalue ? item.colvalue.split(',') : []
|
|
147
|
+
flieList.push(att.filename)
|
|
148
|
+
item.colvalue = flieList.toString()
|
|
149
|
+
}
|
|
150
|
+
cx.run.closeRun('UploadFile')
|
|
151
|
+
}
|
|
152
|
+
let data =
|
|
153
|
+
{
|
|
154
|
+
major: 0,
|
|
155
|
+
minor: 0,
|
|
156
|
+
entityid: 0,
|
|
157
|
+
saveto: 'Doc'
|
|
158
|
+
}
|
|
159
|
+
let params =
|
|
160
|
+
{
|
|
161
|
+
multiple: true,
|
|
162
|
+
url: cx.svr.doc.url(),
|
|
163
|
+
title: '文件上传',
|
|
164
|
+
accept: '',
|
|
165
|
+
data,
|
|
166
|
+
onLoad
|
|
167
|
+
}
|
|
168
|
+
cx.run.runPlug('UploadFile', params)
|
|
169
|
+
},
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* 获取文件
|
|
173
|
+
* @param {Object} item 参数对象
|
|
174
|
+
* @returns {Promise<void>}
|
|
175
|
+
*/
|
|
176
|
+
async getFile(item)
|
|
177
|
+
{
|
|
178
|
+
let data = await cx.svr.data.query($app.TabConst.sjj.major, $app.TabConst.sjj.minor, { args: [['userid', '=', $g.user.id, null], ['defdata', '=', 1, 'and']] })
|
|
179
|
+
let params =
|
|
180
|
+
{
|
|
181
|
+
...$app.TabConst.yclsjj,
|
|
182
|
+
fixedExp: data.length ? cx.sqlexp.from([['username', '=', $g.user.id], ['glid', '=', data[0].id, 'and']]) : cx.sqlexp.from([['username', '=', $g.user.id]]),
|
|
183
|
+
multiple: true,
|
|
184
|
+
onOk: (selection) => this.onSeldynaOk(selection, item)
|
|
185
|
+
}
|
|
186
|
+
cx.run.runPlug('SelData', params)
|
|
187
|
+
},
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* 选择动态数据后回调
|
|
191
|
+
* @param {Array} selection 选中数据
|
|
192
|
+
* @param {Object} item 参数对象
|
|
193
|
+
* @returns {Promise<void>}
|
|
194
|
+
*/
|
|
195
|
+
async onSeldynaOk(selection, item)
|
|
196
|
+
{
|
|
197
|
+
let flieList = []
|
|
198
|
+
let tab = $app.TabConst.yclsjj
|
|
199
|
+
for (let i in selection)
|
|
200
|
+
{
|
|
201
|
+
let id = selection[i].id
|
|
202
|
+
let media = await this.queryMedia(tab, id)
|
|
203
|
+
if (media && media.length)
|
|
204
|
+
flieList.push(media[0].filename)
|
|
205
|
+
}
|
|
206
|
+
item.colvalue = flieList.toString()
|
|
207
|
+
},
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* 查询媒体文件
|
|
211
|
+
* @param {Object} table 表信息
|
|
212
|
+
* @param {Number} entityid 实体ID
|
|
213
|
+
* @returns {Promise} 查询结果
|
|
214
|
+
*/
|
|
215
|
+
queryMedia(table, entityid)
|
|
216
|
+
{
|
|
217
|
+
let param = { args: [['major', '=', table.major], ['minor', '=', table.minor, 'and'], ['entityid', '=', entityid, 'and']] }
|
|
218
|
+
return cx.svr.data.query(cx.consts.SYSTAB, cx.consts.MEDIA, param)
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
</script>
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
<style lang="scss" scoped>
|
|
2
|
+
.title-box{width: 1.3rem; display: inline-block;}
|
|
3
|
+
.colvalue-box{position: relative; left: 2.5rem;}
|
|
4
|
+
.add-icon{position: absolute; right: 0.1rem; top: 0.1rem; font-size: 0.2rem; cursor: pointer; color: var(--cx-colorSuccess3);}
|
|
5
|
+
.list-params{display: flex; justify-content: space-between;margin-bottom: 0.1rem;
|
|
6
|
+
.colname-box{width: 1rem;}
|
|
7
|
+
.el-select{width: 1rem;}
|
|
8
|
+
.el-input{width: 1rem;}
|
|
9
|
+
}
|
|
10
|
+
.getLength{
|
|
11
|
+
.el-select{width: 1.7rem;}
|
|
12
|
+
.el-input{width: 1.7rem;}
|
|
13
|
+
}
|
|
14
|
+
.delete-icon{position: relative; right: 0.02rem; top: 0.05rem; font-size: 0.2rem; cursor: pointer; color: var(--cx-colorDanger3);}
|
|
15
|
+
.file-upload{margin-right: 0.1rem;}
|
|
16
|
+
</style>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<cx-layout :size="size" padding>
|
|
20
|
+
<cx-region region="north">
|
|
21
|
+
<div class="title-box">参数名</div>
|
|
22
|
+
<div class="title-box colvalue-box">参数值</div>
|
|
23
|
+
<cx-icon class="add-icon" icon="cx-fi ic-addFilled" v-if="addable" @click="addParam"></cx-icon>
|
|
24
|
+
</cx-region>
|
|
25
|
+
<cx-region region="center" style="marginTop: 0.1rem;">
|
|
26
|
+
<div class="list-params" v-for="(item, index) in tabData" :key="index">
|
|
27
|
+
<!-- 基本信息 -->
|
|
28
|
+
<div v-if="!addable" class="colname-box"><span style="color: red;">*</span> {{ item.colname }}</div>
|
|
29
|
+
<el-input v-if="addable" v-model="item.colname" placeholder="请输入参数名" />
|
|
30
|
+
<el-input :readonly="!addable" v-model="item.namec" placeholder="请输入中文名称" />
|
|
31
|
+
<el-select :disabled="!addable" v-model="item.fldOptionObj" placeholder="请选择参数类型" @change="selectParam(item)">
|
|
32
|
+
<el-option v-for="(option, index) in fldOption" :key="index" :label="option.label" :value="option" />
|
|
33
|
+
</el-select>
|
|
34
|
+
<!-- 参数值输入 -->
|
|
35
|
+
<el-input v-if="item.disptype==1" :type="item.isnum?'number':''" v-model="item.value" placeholder="请选择参数值"/>
|
|
36
|
+
<el-select v-else-if="item.disptype==2" v-model="item.value" placeholder="请选择参数值">
|
|
37
|
+
<el-option v-for="(option, index) in item.fldOptionObj.option" :key="index" :label="option.label" :value="option.value" />
|
|
38
|
+
</el-select>
|
|
39
|
+
<el-input v-if="item.disptype==7" v-model="item.value" placeholder="请输入参数值"/>
|
|
40
|
+
<cx-button v-if="item.disptype==7" icon="cx-fi ic-search" @click="pluginClick(item)"></cx-button>
|
|
41
|
+
<!-- 必填 -->
|
|
42
|
+
<el-select v-model="item.nullable" placeholder="是否必填" >
|
|
43
|
+
<el-option v-for="(option, index) in optionRequire" :key="index" :label="option.label" :value="option.value" />
|
|
44
|
+
</el-select>
|
|
45
|
+
<!-- 删除 -->
|
|
46
|
+
<cx-icon v-if="addable" class="delete-icon" icon="cx-fi ic-trash" @click="deleteParam(index)"></cx-icon>
|
|
47
|
+
</div>
|
|
48
|
+
</cx-region>
|
|
49
|
+
</cx-layout>
|
|
50
|
+
</template>
|
|
51
|
+
|
|
52
|
+
<script>
|
|
53
|
+
/**
|
|
54
|
+
* 组件 - 自定义类型字段编辑(新增,删除)
|
|
55
|
+
*
|
|
56
|
+
* 调用说明:
|
|
57
|
+
* @param {Array} data 参数列表(fld字段)
|
|
58
|
+
* @param {Boolean} addable 是否可新增参数
|
|
59
|
+
* @param {String} data.fldKey 字段类型key(fldOption对应fldKey)
|
|
60
|
+
* @param {Array} otherOption 自定义字段
|
|
61
|
+
* @param {String} otherOption.label 自定义字段label
|
|
62
|
+
* @param {String} otherOption.fldKey 自定义字段key
|
|
63
|
+
* @param {Object} otherOption.value 自定义字段设置修改fld的属性
|
|
64
|
+
* @param {Array} otherOption.option 自定义字段disptype=2时下拉框参数
|
|
65
|
+
* @param {Object} otherOption.plugin 自定义字段disptype=7时插件
|
|
66
|
+
* @param {String} otherOption.plugin.name 自定义字段disptype=7时插件name
|
|
67
|
+
* @param {Object} otherOption.plugin.params 自定义字段disptype=7时插件参数
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 修改记录
|
|
73
|
+
* 25-05-14 黄佳龙 首次提交
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
export default
|
|
77
|
+
{
|
|
78
|
+
mixins: [cx.mixin.IPlugBase],
|
|
79
|
+
props: {
|
|
80
|
+
data: {
|
|
81
|
+
type: Array,
|
|
82
|
+
default: () => []
|
|
83
|
+
},
|
|
84
|
+
addable: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: false
|
|
87
|
+
},
|
|
88
|
+
otherOption: {
|
|
89
|
+
type: Array,
|
|
90
|
+
default: () => []
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
data()
|
|
94
|
+
{
|
|
95
|
+
return {
|
|
96
|
+
tabData: [],
|
|
97
|
+
fldOption: [
|
|
98
|
+
{ label: '字符串', fldKey: '字符串', value: { disptype: 1, isnum: 0 } },
|
|
99
|
+
{ label: '数字', fldKey: '数字', value: { disptype: 1, isnum: 1 } },
|
|
100
|
+
{ label: '选择框', fldKey: '选择框', value: { disptype: 2 }, option: [{ label: '测试1', value: '测试1' }, { label: '测试2', value: '测试2' }] }
|
|
101
|
+
],
|
|
102
|
+
optionRequire: [
|
|
103
|
+
{ label: '是', value: 0 },
|
|
104
|
+
{ label: '否', value: 1 }
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
created()
|
|
110
|
+
{
|
|
111
|
+
this.initOption()
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
methods: {
|
|
115
|
+
/**
|
|
116
|
+
* 初始化参数
|
|
117
|
+
* @returns {Promise<void>}
|
|
118
|
+
*/
|
|
119
|
+
async initOption()
|
|
120
|
+
{
|
|
121
|
+
this.fldOption.push(
|
|
122
|
+
{ label: '文件', fldKey: '文件', value: { disptype: 7 }, plugin: { name: 'SelData', params: await this.getParamsFile() } }
|
|
123
|
+
)
|
|
124
|
+
if (this.otherOption.length)
|
|
125
|
+
this.fldOption = [...this.fldOption, ...this.otherOption]
|
|
126
|
+
this.tabData = this.data
|
|
127
|
+
this.tabData.forEach((item) =>
|
|
128
|
+
{
|
|
129
|
+
let obj = this.fldOption.find((item2) =>
|
|
130
|
+
{
|
|
131
|
+
return item2.fldKey === item.fldKey
|
|
132
|
+
})
|
|
133
|
+
item.fldOptionObj = obj
|
|
134
|
+
})
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* 新增参数
|
|
139
|
+
*/
|
|
140
|
+
addParam()
|
|
141
|
+
{
|
|
142
|
+
this.tabData.push({
|
|
143
|
+
colname: '',
|
|
144
|
+
namec: '',
|
|
145
|
+
disptype: 1,
|
|
146
|
+
disporder: this.tabData.length + 1,
|
|
147
|
+
nullable: 0,
|
|
148
|
+
isnum: 0,
|
|
149
|
+
valid: '',
|
|
150
|
+
bz: '',
|
|
151
|
+
value: '',
|
|
152
|
+
fldKey: null,
|
|
153
|
+
fldOptionObj: ''
|
|
154
|
+
})
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* 删除参数
|
|
159
|
+
* @param {Number} index 索引
|
|
160
|
+
*/
|
|
161
|
+
deleteParam(index)
|
|
162
|
+
{
|
|
163
|
+
this.tabData.splice(index, 1)
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* 选择参数
|
|
168
|
+
* @param {Object} item 字段对象
|
|
169
|
+
*/
|
|
170
|
+
selectParam(item)
|
|
171
|
+
{
|
|
172
|
+
item.fldKey = item.fldOptionObj.fldKey
|
|
173
|
+
for (let i in item.fldOptionObj.value)
|
|
174
|
+
item[i] = item.fldOptionObj.value[i]
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* 插件选择(插件内部处理对象value值)
|
|
179
|
+
* @param {Object} item 字段对象
|
|
180
|
+
*/
|
|
181
|
+
pluginClick(item)
|
|
182
|
+
{
|
|
183
|
+
item.fldOptionObj.plugin.params._fldObj = item
|
|
184
|
+
cx.run.runPlug(item.fldOptionObj.plugin.name, item.fldOptionObj.plugin.params)
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* 文件选择插件参数
|
|
189
|
+
* @returns {Promise<Object>} 插件参数
|
|
190
|
+
*/
|
|
191
|
+
async getParamsFile()
|
|
192
|
+
{
|
|
193
|
+
let data = await cx.svr.data.query($app.TabConst.sjj.major, $app.TabConst.sjj.minor, { args: [['userid', '=', $g.user.id, null], ['defdata', '=', 1, 'and']] })
|
|
194
|
+
let params =
|
|
195
|
+
{
|
|
196
|
+
...$app.TabConst.yclsjj,
|
|
197
|
+
fixedExp: data.length ? cx.sqlexp.from([['username', '=', $g.user.id], ['glid', '=', data[0].id, 'and']]) : cx.sqlexp.from([['username', '=', $g.user.id]]),
|
|
198
|
+
multiple: true
|
|
199
|
+
}
|
|
200
|
+
return params
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
</script>
|