@fecp/designer 5.4.31 → 5.4.34

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 (45) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
  3. package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  4. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  5. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  6. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  7. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  8. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  9. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  10. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  11. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  12. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  13. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
  14. package/es/designer.css +17 -17
  15. package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +2 -14
  16. package/es/packages/vue/src/components/bus/document/Document.vue.mjs +2 -14
  17. package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +9 -19
  18. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +2 -2
  19. package/es/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.mjs +3 -15
  20. package/es/packages/vue/src/components/riskSch/RiskSchRenderer.vue.mjs +2 -14
  21. package/es/packages/vue/src/utils/common.mjs +14 -0
  22. package/es/packages/vue/src/utils/formulajs/calculate.mjs +24 -15
  23. package/lib/designer/package.json.js +1 -1
  24. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  25. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  26. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  27. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  28. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  29. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  30. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  31. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  32. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  33. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  34. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  35. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
  36. package/lib/designer.css +17 -17
  37. package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +2 -14
  38. package/lib/packages/vue/src/components/bus/document/Document.vue.js +2 -14
  39. package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +9 -19
  40. package/lib/packages/vue/src/components/forms/form/Form.vue.js +2 -2
  41. package/lib/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.js +3 -15
  42. package/lib/packages/vue/src/components/riskSch/RiskSchRenderer.vue.js +2 -14
  43. package/lib/packages/vue/src/utils/common.js +14 -0
  44. package/lib/packages/vue/src/utils/formulajs/calculate.js +24 -15
  45. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const version = "5.4.31";
1
+ const version = "5.4.34";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -9,7 +9,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
9
9
  /* empty css */
10
10
  import { computed, ref, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
11
11
  import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
12
- import ValueSelector from "./ValueSelector.vue2.mjs";
12
+ import ValueSelector from "./ValueSelector.vue.mjs";
13
13
  import api from "../api/index.mjs";
14
14
  /* empty css */
15
15
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -4,7 +4,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
4
4
  /* empty css */
5
5
  import { computed, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
6
6
  import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
7
- import ValueSelector from "./ValueSelector.vue2.mjs";
7
+ import ValueSelector from "./ValueSelector.vue.mjs";
8
8
  /* empty css */
9
9
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
10
10
  import { ElButton } from "../../../node_modules/element-plus/es/components/button/index.mjs";
@@ -16,7 +16,7 @@ import { Plus as plus_default, RefreshRight as refresh_right_default, Delete as
16
16
  import { getEditConfigData, getEditingType, cloneDeep, getEditConfigDataFields } from "../../packages/utils/common.mjs";
17
17
  import { defaultProperty } from "../../packages/form/aside/index.mjs";
18
18
  import { defaultProperty as defaultProperty$1 } from "../../packages/table/aside/index.mjs";
19
- import ValueSelector from "../../components/ValueSelector.vue2.mjs";
19
+ import ValueSelector from "../../components/ValueSelector.vue.mjs";
20
20
  /* empty css */
21
21
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
22
22
  import { ElDialog } from "../../../../node_modules/element-plus/es/components/dialog/index.mjs";
@@ -14,7 +14,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
14
14
  import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
15
15
  import { computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
16
16
  import { useVModel } from "../../../../node_modules/@vueuse/core/dist/index.mjs";
17
- import ValueSelector from "../../components/ValueSelector.vue2.mjs";
17
+ import ValueSelector from "../../components/ValueSelector.vue.mjs";
18
18
  import api from "../../api/index.mjs";
19
19
  import { getEditConfigDataSources } from "../utils/common.mjs";
20
20
  import { createDataSource } from "../utils/datasource.mjs";
@@ -30,7 +30,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs
30
30
  /* empty css */
31
31
  /* empty css */
32
32
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
33
- /* empty css */
33
+ /* empty css */
34
34
  import "../../axios/config.mjs";
35
35
  import "../../../../_virtual/FileSaver.min.mjs";
36
36
  import "../../../../_virtual/index.mjs";
@@ -84,7 +84,7 @@ import widgets from "../table/property/widgets.vue.mjs";
84
84
  import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
85
85
  /* empty css */
86
86
  /* empty css */
87
- /* empty css */
87
+ /* empty css */
88
88
  /* empty css */
89
89
  /* empty css */
90
90
  /* empty css */
@@ -4,7 +4,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
4
4
  /* empty css */
5
5
  import { createElementBlock, openBlock, Fragment, createVNode, withCtx } from "vue";
6
6
  import RiskSchemeSelector from "../../../../components/RiskSchemeSelector.vue2.mjs";
7
- import ValueSelector from "../../../../components/ValueSelector.vue2.mjs";
7
+ import ValueSelector from "../../../../components/ValueSelector.vue.mjs";
8
8
  import ParamsConfig from "../../../../components/ParamsConfig.vue2.mjs";
9
9
  import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
10
10
  import { ElSwitch } from "../../../../../../node_modules/element-plus/es/components/switch/index.mjs";
@@ -11,7 +11,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
11
11
  import { computed, ref, watch, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment } from "vue";
12
12
  import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
13
13
  import emitter from "../../utils/eventBus.mjs";
14
- import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
14
+ import ValueSelector from "../../../components/ValueSelector.vue.mjs";
15
15
  import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
16
16
  import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
17
17
  import { ElInput } from "../../../../../node_modules/element-plus/es/components/input/index.mjs";
@@ -17,7 +17,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
17
17
  import { computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
18
18
  import { getCurrentItem } from "../../utils/common.mjs";
19
19
  import "../../utils/eventBus.mjs";
20
- import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
20
+ import ValueSelector from "../../../components/ValueSelector.vue.mjs";
21
21
  import api from "../../../api/index.mjs";
22
22
  import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
23
23
  /* empty css */
@@ -12,7 +12,7 @@ import { computed, ref, createBlock, openBlock, unref, isRef, withCtx, createVNo
12
12
  import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
13
13
  import TemplateSelector from "../../../components/TemplateSelector.vue.mjs";
14
14
  import emitter from "../../utils/eventBus.mjs";
15
- import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
15
+ import ValueSelector from "../../../components/ValueSelector.vue.mjs";
16
16
  import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
17
17
  import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
18
18
  import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
@@ -14,7 +14,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
14
14
  import { useModel, ref, watch, computed, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref } from "vue";
15
15
  import { Plus as plus_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
16
16
  import { getEditConfigData, getEditConfigDataFields, setEditConfigData } from "../utils/common.mjs";
17
- import ValueSelector from "../../components/ValueSelector.vue2.mjs";
17
+ import ValueSelector from "../../components/ValueSelector.vue.mjs";
18
18
  import api from "../../api/index.mjs";
19
19
  /* empty css */
20
20
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -45,7 +45,7 @@ import { Connection as connection_default, Grid as grid_default, ChatLineSquare
45
45
  /* empty css */
46
46
  import "../../store/index.mjs";
47
47
  /* empty css */
48
- /* empty css */
48
+ /* empty css */
49
49
  /* empty css */
50
50
  /* empty css */
51
51
  /* empty css */
package/es/designer.css CHANGED
@@ -5708,18 +5708,18 @@ body,
5708
5708
  :root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
5709
5709
  :root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
5710
5710
  :root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
5711
- .dialog-header-content[data-v-9cd09319] {
5711
+ .dialog-header-content[data-v-41c2b253] {
5712
5712
  font-size: 16px;
5713
5713
  font-weight: 600;
5714
5714
  color: #303133;
5715
5715
  }
5716
- .dialog-content-wrapper[data-v-9cd09319] {
5716
+ .dialog-content-wrapper[data-v-41c2b253] {
5717
5717
  min-height: 500px;
5718
5718
  flex-grow: 1;
5719
5719
  display: flex;
5720
5720
  flex-direction: column;
5721
5721
  }
5722
- .empty-content[data-v-9cd09319] {
5722
+ .empty-content[data-v-41c2b253] {
5723
5723
  display: flex;
5724
5724
  align-items: center;
5725
5725
  justify-content: center;
@@ -5727,13 +5727,13 @@ body,
5727
5727
  color: #909399;
5728
5728
  font-size: 14px;
5729
5729
  }
5730
- .component-error[data-v-9cd09319] {
5730
+ .component-error[data-v-41c2b253] {
5731
5731
  padding: 40px 20px;
5732
5732
  text-align: center;
5733
5733
  color: #f56c6c;
5734
5734
  font-size: 14px;
5735
5735
  }
5736
- .fec-dialog-table[data-v-9cd09319] .table-pagination {
5736
+ .fec-dialog-table[data-v-41c2b253] .table-pagination {
5737
5737
  padding: 8px 0 0 0;
5738
5738
  }.text-field-wrapper[data-v-185ddd14] {
5739
5739
  width: 100%;
@@ -5904,27 +5904,27 @@ body,
5904
5904
  width: 80px;
5905
5905
  font-size: var(--el-font-size-extra-small);
5906
5906
  }
5907
- .fec-form[data-v-4eb26904] {
5907
+ .fec-form[data-v-d272bf0a] {
5908
5908
  height: 100%;
5909
5909
  }
5910
- [data-v-4eb26904] .vgl-item {
5910
+ [data-v-d272bf0a] .vgl-item {
5911
5911
  transition: none;
5912
5912
  }
5913
- [data-v-4eb26904] .vgl-item > .el-form-item {
5913
+ [data-v-d272bf0a] .vgl-item > .el-form-item {
5914
5914
  width: 100%;
5915
5915
  padding: 12px 8px 0 8px;
5916
5916
  height: calc(100% - 15px);
5917
5917
  display: flex;
5918
5918
  }
5919
- [data-v-4eb26904] .vgl-item > .el-form-item.el-form-item--label-top {
5919
+ [data-v-d272bf0a] .vgl-item > .el-form-item.el-form-item--label-top {
5920
5920
  flex-direction: column;
5921
5921
  }
5922
- [data-v-4eb26904] .vgl-item > .el-form-item .el-form-item__label {
5922
+ [data-v-d272bf0a] .vgl-item > .el-form-item .el-form-item__label {
5923
5923
  line-height: 20px;
5924
5924
  display: flex;
5925
5925
  align-items: center;
5926
5926
  }
5927
- [data-v-4eb26904] .vgl-item > .el-container {
5927
+ [data-v-d272bf0a] .vgl-item > .el-container {
5928
5928
  height: auto !important;
5929
5929
  }.cell-content .cell-text[data-v-3e5372d4] {
5930
5930
  display: inline-block;
@@ -6295,7 +6295,7 @@ body,
6295
6295
  margin-bottom: 0 !important;
6296
6296
  flex: 1;
6297
6297
  }
6298
- .fec-layout-card[data-v-3ce25014] {
6298
+ .fec-layout-card[data-v-2872569c] {
6299
6299
  margin-bottom: 8px;
6300
6300
  border-radius: 4px;
6301
6301
  background-color: #fff;
@@ -6303,16 +6303,16 @@ body,
6303
6303
  display: flex;
6304
6304
  flex-direction: column;
6305
6305
  }
6306
- .fec-layout-card .header[data-v-3ce25014] {
6306
+ .fec-layout-card .header[data-v-2872569c] {
6307
6307
  display: flex;
6308
6308
  align-items: center;
6309
6309
  justify-content: space-between;
6310
6310
  }
6311
- .fec-layout-card .header .title[data-v-3ce25014] {
6311
+ .fec-layout-card .header .title[data-v-2872569c] {
6312
6312
  display: flex;
6313
6313
  align-items: center;
6314
6314
  }
6315
- .fec-layout-card .header .title .icon[data-v-3ce25014] {
6315
+ .fec-layout-card .header .title .icon[data-v-2872569c] {
6316
6316
  color: #fff;
6317
6317
  width: 30px;
6318
6318
  height: 30px;
@@ -6323,12 +6323,12 @@ body,
6323
6323
  font-size: 20px;
6324
6324
  margin-right: 12px;
6325
6325
  }
6326
- .fec-layout-card .header .title > span[data-v-3ce25014] {
6326
+ .fec-layout-card .header .title > span[data-v-2872569c] {
6327
6327
  font-size: 17px;
6328
6328
  font-weight: bold;
6329
6329
  color: #1a1a1a;
6330
6330
  }
6331
- .fec-layout-card .content[data-v-3ce25014] {
6331
+ .fec-layout-card .content[data-v-2872569c] {
6332
6332
  flex-grow: 1;
6333
6333
  padding-top: 12px;
6334
6334
  }
@@ -2,6 +2,7 @@ import { ref, inject, computed, onMounted, createElementBlock, openBlock, create
2
2
  import "../../forms/h2/index.mjs";
3
3
  import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
4
4
  import { parseRouteParams, parseSingleParamValue } from "../../../utils/parseRouteParams.mjs";
5
+ import { loadComponentByPath } from "../../../utils/common.mjs";
5
6
  const _hoisted_1 = { class: "contract-content" };
6
7
  const path = "/tech/ctr/components/DocCtrInfoComponent";
7
8
  const _sfc_main = /* @__PURE__ */ Object.assign({
@@ -54,21 +55,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
54
55
  return props.config.mode;
55
56
  });
56
57
  const currentComponent = ref(null);
57
- const loadComponentByPath = (path2) => {
58
- const route = ctx.$router.getRoutes().find((item) => item.path === path2);
59
- if (!route) return;
60
- const comp = route.components.default;
61
- if (!comp) return;
62
- if (typeof comp === "function") {
63
- comp().then((module) => {
64
- currentComponent.value = module.default;
65
- });
66
- } else {
67
- currentComponent.value = comp;
68
- }
69
- };
70
58
  onMounted(() => {
71
- loadComponentByPath(path);
59
+ loadComponentByPath(path, ctx.$router, currentComponent);
72
60
  });
73
61
  function loaded(dom) {
74
62
  const foundItem = props.localConfig.fieldsData.find(
@@ -2,6 +2,7 @@ import { ref, inject, computed, onMounted, createElementBlock, openBlock, Fragme
2
2
  import { SubTitle } from "../../forms/subTitle/index.mjs";
3
3
  import { H2 } from "../../forms/h2/index.mjs";
4
4
  import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
5
+ import { loadComponentByPath } from "../../../utils/common.mjs";
5
6
  const _hoisted_1 = {
6
7
  key: 0,
7
8
  style: { "height": "60px", "position": "relative" }
@@ -98,21 +99,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
98
99
  });
99
100
  });
100
101
  const currentComponent = ref(null);
101
- const loadComponentByPath = (path2) => {
102
- const route = ctx.$router.getRoutes().find((item) => item.path === path2);
103
- if (!route) return;
104
- const comp = route.components.default;
105
- if (!comp) return;
106
- if (typeof comp === "function") {
107
- comp().then((module) => {
108
- currentComponent.value = module.default;
109
- });
110
- } else {
111
- currentComponent.value = comp;
112
- }
113
- };
114
102
  onMounted(() => {
115
- loadComponentByPath(path);
103
+ loadComponentByPath(path, ctx.$router, currentComponent);
116
104
  });
117
105
  function loaded(dom) {
118
106
  const foundItem = props.localConfig.fieldsData.find(
@@ -12,6 +12,7 @@ import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowH
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
+ import { loadComponentByPath } from "../../utils/common.mjs";
15
16
  /* empty css */
16
17
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
17
18
  /* empty css */
@@ -119,6 +120,7 @@ const _sfc_main = {
119
120
  });
120
121
  return { ...paramsObj };
121
122
  });
123
+ const currentComponent = ref(null);
122
124
  watch(
123
125
  () => {
124
126
  return props.modelValue;
@@ -126,7 +128,11 @@ const _sfc_main = {
126
128
  (val) => {
127
129
  dialogVisible.value = val;
128
130
  if (val) {
129
- loadComponentByPath(currentDialogConfig.value.componentPath);
131
+ loadComponentByPath(
132
+ currentDialogConfig.value.componentPath,
133
+ props.componentCtx.$router,
134
+ currentComponent.value
135
+ );
130
136
  }
131
137
  },
132
138
  {
@@ -145,20 +151,6 @@ const _sfc_main = {
145
151
  );
146
152
  return params;
147
153
  });
148
- const currentComponent = ref(null);
149
- function loadComponentByPath(path) {
150
- const route = props.componentCtx.$router.getRoutes().find((item) => item.path === path);
151
- if (!route) return;
152
- const comp = route.components.default;
153
- if (!comp) return;
154
- if (typeof comp === "function") {
155
- comp().then((module) => {
156
- currentComponent.value = module.default;
157
- });
158
- } else {
159
- currentComponent.value = comp;
160
- }
161
- }
162
154
  const handleSubmit = (data) => {
163
155
  emit("confirm", data);
164
156
  };
@@ -334,8 +326,7 @@ const _sfc_main = {
334
326
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
335
327
  width: dialogWidth.value,
336
328
  draggable: true,
337
- "close-on-click-modal": false,
338
- "append-to-body": ""
329
+ "close-on-click-modal": false
339
330
  }, componentParams.value, {
340
331
  formData: __props.formData,
341
332
  onClose: handleClose,
@@ -347,7 +338,6 @@ const _sfc_main = {
347
338
  width: dialogWidth.value,
348
339
  draggable: true,
349
340
  "close-on-click-modal": false,
350
- "append-to-body": "",
351
341
  class: "fec-dialog-renderer"
352
342
  }, {
353
343
  header: withCtx(() => {
@@ -446,7 +436,7 @@ const _sfc_main = {
446
436
  };
447
437
  }
448
438
  };
449
- const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9cd09319"]]);
439
+ const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-41c2b253"]]);
450
440
  export {
451
441
  DialogRenderer as default
452
442
  };
@@ -145,7 +145,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
145
145
  }
146
146
  );
147
147
  const loadConfig = async () => {
148
- if (!props.templateKey && props.initOption && Object.keys(props.initOption).length == 0) {
148
+ if (!props.templateKey && (!props.initOption || Object.keys(props.initOption).length == 0)) {
149
149
  return;
150
150
  }
151
151
  configLoading.value = true;
@@ -1064,7 +1064,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1064
1064
  };
1065
1065
  }
1066
1066
  });
1067
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4eb26904"]]);
1067
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d272bf0a"]]);
1068
1068
  export {
1069
1069
  _Form as default
1070
1070
  };
@@ -8,6 +8,7 @@ import api from "../../../api/index.mjs";
8
8
  import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
9
9
  import { Form } from "../../forms/form/index.mjs";
10
10
  import { Table } from "../../table/index.mjs";
11
+ import { loadComponentByPath } from "../../../utils/common.mjs";
11
12
  /* empty css */
12
13
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
13
14
  import { ElButton } from "../../../../../../node_modules/element-plus/es/components/button/index.mjs";
@@ -67,7 +68,7 @@ const _sfc_main = {
67
68
  });
68
69
  function moreClick() {
69
70
  if (props.morePageRoute) {
70
- loadComponentByPath(props.morePageRoute);
71
+ loadComponentByPath(props.morePageRoute, ctx.$router, currentComponent);
71
72
  dialogVisible.value = true;
72
73
  } else if (props.morePageTemplateKey) {
73
74
  api.findByTemplateKey(ctx.$http, {
@@ -87,19 +88,6 @@ const _sfc_main = {
87
88
  });
88
89
  }
89
90
  }
90
- function loadComponentByPath(path) {
91
- const route = ctx.$router.getRoutes().find((item) => item.path === path);
92
- if (!route) return;
93
- const comp = route.components.default;
94
- if (!comp) return;
95
- if (typeof comp === "function") {
96
- comp().then((module) => {
97
- currentComponent.value = module.default;
98
- });
99
- } else {
100
- currentComponent.value = comp;
101
- }
102
- }
103
91
  return (_ctx, _cache) => {
104
92
  const _component_el_icon = ElIcon;
105
93
  const _component_el_button = ElButton;
@@ -156,7 +144,7 @@ const _sfc_main = {
156
144
  };
157
145
  }
158
146
  };
159
- const _LayoutCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3ce25014"]]);
147
+ const _LayoutCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2872569c"]]);
160
148
  export {
161
149
  _LayoutCard as default
162
150
  };
@@ -1,4 +1,5 @@
1
1
  import { ref, watch, onMounted, createBlock, openBlock, resolveDynamicComponent, unref, isRef } from "vue";
2
+ import { loadComponentByPath } from "../../utils/common.mjs";
2
3
  const path = "/bus/module/comm/risk/components/RiskInterceptResult";
3
4
  const _sfc_main = /* @__PURE__ */ Object.assign({
4
5
  inheritAttrs: false
@@ -53,21 +54,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
53
54
  emit("cancel", data);
54
55
  }
55
56
  const currentComponent = ref(null);
56
- const loadComponentByPath = (path2) => {
57
- const route = props.ctx.$router.getRoutes().find((item) => item.path === path2);
58
- if (!route) return;
59
- const comp = route.components.default;
60
- if (!comp) return;
61
- if (typeof comp === "function") {
62
- comp().then((module) => {
63
- currentComponent.value = module.default;
64
- });
65
- } else {
66
- currentComponent.value = comp;
67
- }
68
- };
69
57
  onMounted(() => {
70
- loadComponentByPath(path);
58
+ loadComponentByPath(path, props.ctx.$router, currentComponent);
71
59
  });
72
60
  return (_ctx, _cache) => {
73
61
  return openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), {
@@ -67,10 +67,24 @@ const setFormDataByFieldMapping = (value, multiple, options, fieldMapping, formD
67
67
  });
68
68
  }
69
69
  };
70
+ const loadComponentByPath = (path, router, currentComponent) => {
71
+ const route = router == null ? void 0 : router.getRoutes().find((item) => item.path === path);
72
+ if (!route) return;
73
+ const comp = route.components.default;
74
+ if (!comp) return;
75
+ if (typeof comp === "function") {
76
+ comp().then((module) => {
77
+ currentComponent.value = module.default;
78
+ });
79
+ } else {
80
+ currentComponent.value = comp;
81
+ }
82
+ };
70
83
  export {
71
84
  cloneDeep,
72
85
  handleSearchData,
73
86
  isEqual,
87
+ loadComponentByPath,
74
88
  removeEmptyValues,
75
89
  setFormDataByFieldMapping
76
90
  };
@@ -23,26 +23,35 @@ function calculate(params) {
23
23
  const [key, subKey] = enCode.split(".");
24
24
  if (value[key]) data = value[key].map((o) => o[subKey]);
25
25
  }
26
- if (!data) {
27
- const fieldItem = fieldsList.find((item2) => item2.fieldName == enCode);
28
- if (fieldItem) {
29
- switch (fieldItem.fieldType) {
30
- case "number":
26
+ const fieldItem = fieldsList.find((item2) => item2.fieldName == enCode);
27
+ if (fieldItem) {
28
+ switch (fieldItem.fieldType) {
29
+ case "number":
30
+ if (!data) {
31
31
  data = 0;
32
- break;
33
- case "switch":
32
+ } else {
33
+ Number(data);
34
+ }
35
+ break;
36
+ case "switch":
37
+ data = false;
38
+ if (!data) {
34
39
  data = false;
35
- break;
36
- default:
40
+ } else if ("true" == data + "") {
41
+ Number(data);
42
+ } else {
43
+ data = false;
44
+ }
45
+ break;
46
+ default:
47
+ if (!data) {
37
48
  data = "";
38
- }
39
- } else {
40
- throw new Error("字段:" + item.fieldName + " 未定义");
49
+ }
41
50
  }
51
+ } else {
52
+ throw new Error("字段:" + item.fieldName + " 未定义");
42
53
  }
43
- if (typeof data != "string") {
44
- data = JSON.stringify(data);
45
- }
54
+ data = JSON.stringify(data);
46
55
  const actualStart = startIndex + offset;
47
56
  const actualEnd = endIndex + offset;
48
57
  str = str.slice(0, actualStart) + data.toString() + str.slice(actualEnd);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.4.31";
3
+ const version = "5.4.34";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -11,7 +11,7 @@ require("../../../node_modules/element-plus/es/index.js");
11
11
  ;/* empty css */
12
12
  const vue = require("vue");
13
13
  const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
14
- const ValueSelector = require("./ValueSelector.vue2.js");
14
+ const ValueSelector = require("./ValueSelector.vue.js");
15
15
  const index = require("../api/index.js");
16
16
  ;/* empty css */
17
17
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
@@ -6,7 +6,7 @@ require("../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const vue = require("vue");
8
8
  const index$1 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
9
- const ValueSelector = require("./ValueSelector.vue2.js");
9
+ const ValueSelector = require("./ValueSelector.vue.js");
10
10
  ;/* empty css */
11
11
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
12
12
  const index = require("../../../node_modules/element-plus/es/components/button/index.js");
@@ -18,7 +18,7 @@ const index$2 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
18
18
  const common = require("../../packages/utils/common.js");
19
19
  const index$5 = require("../../packages/form/aside/index.js");
20
20
  const index$6 = require("../../packages/table/aside/index.js");
21
- const ValueSelector = require("../../components/ValueSelector.vue2.js");
21
+ const ValueSelector = require("../../components/ValueSelector.vue.js");
22
22
  ;/* empty css */
23
23
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
24
24
  const index = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
16
16
  require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
17
17
  const vue = require("vue");
18
18
  const index = require("../../../../node_modules/@vueuse/core/dist/index.js");
19
- const ValueSelector = require("../../components/ValueSelector.vue2.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue.js");
20
20
  const index$1 = require("../../api/index.js");
21
21
  const common = require("../utils/common.js");
22
22
  const datasource = require("../utils/datasource.js");
@@ -32,7 +32,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
32
32
  ;/* empty css */
33
33
  ;/* empty css */
34
34
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
35
- ;/* empty css */
35
+ ;/* empty css */
36
36
  require("../../axios/config.js");
37
37
  require("../../../../_virtual/FileSaver.min.js");
38
38
  require("../../../../_virtual/index.js");
@@ -86,7 +86,7 @@ const widgets = require("../table/property/widgets.vue.js");
86
86
  require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
87
87
  ;/* empty css */
88
88
  ;/* empty css */
89
- ;/* empty css */
89
+ ;/* empty css */
90
90
  ;/* empty css */
91
91
  ;/* empty css */
92
92
  ;/* empty css */
@@ -6,7 +6,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const vue = require("vue");
8
8
  const RiskSchemeSelector = require("../../../../components/RiskSchemeSelector.vue2.js");
9
- const ValueSelector = require("../../../../components/ValueSelector.vue2.js");
9
+ const ValueSelector = require("../../../../components/ValueSelector.vue.js");
10
10
  const ParamsConfig = require("../../../../components/ParamsConfig.vue2.js");
11
11
  const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
12
12
  const index$1 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");
@@ -13,7 +13,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
13
13
  const vue = require("vue");
14
14
  const common = require("../../utils/common.js");
15
15
  const eventBus = require("../../utils/eventBus.js");
16
- const ValueSelector = require("../../../components/ValueSelector.vue2.js");
16
+ const ValueSelector = require("../../../components/ValueSelector.vue.js");
17
17
  const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
18
18
  const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
19
19
  const index$2 = require("../../../../../node_modules/element-plus/es/components/input/index.js");
@@ -19,7 +19,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
19
19
  const vue = require("vue");
20
20
  const common = require("../../utils/common.js");
21
21
  require("../../utils/eventBus.js");
22
- const ValueSelector = require("../../../components/ValueSelector.vue2.js");
22
+ const ValueSelector = require("../../../components/ValueSelector.vue.js");
23
23
  const index = require("../../../api/index.js");
24
24
  const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
25
25
  ;/* empty css */
@@ -14,7 +14,7 @@ const vue = require("vue");
14
14
  const common = require("../../utils/common.js");
15
15
  const TemplateSelector = require("../../../components/TemplateSelector.vue.js");
16
16
  const eventBus = require("../../utils/eventBus.js");
17
- const ValueSelector = require("../../../components/ValueSelector.vue2.js");
17
+ const ValueSelector = require("../../../components/ValueSelector.vue.js");
18
18
  const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
19
19
  const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
20
20
  const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/es/index.js");
16
16
  const vue = require("vue");
17
17
  const index$6 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
18
18
  const common = require("../utils/common.js");
19
- const ValueSelector = require("../../components/ValueSelector.vue2.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue.js");
20
20
  const index = require("../../api/index.js");
21
21
  ;/* empty css */
22
22
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
@@ -47,7 +47,7 @@ const index$1 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
47
47
  ;/* empty css */
48
48
  require("../../store/index.js");
49
49
  ;/* empty css */
50
- ;/* empty css */
50
+ ;/* empty css */
51
51
  ;/* empty css */
52
52
  ;/* empty css */
53
53
  ;/* empty css */
package/lib/designer.css CHANGED
@@ -5708,18 +5708,18 @@ body,
5708
5708
  :root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
5709
5709
  :root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
5710
5710
  :root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
5711
- .dialog-header-content[data-v-9cd09319] {
5711
+ .dialog-header-content[data-v-41c2b253] {
5712
5712
  font-size: 16px;
5713
5713
  font-weight: 600;
5714
5714
  color: #303133;
5715
5715
  }
5716
- .dialog-content-wrapper[data-v-9cd09319] {
5716
+ .dialog-content-wrapper[data-v-41c2b253] {
5717
5717
  min-height: 500px;
5718
5718
  flex-grow: 1;
5719
5719
  display: flex;
5720
5720
  flex-direction: column;
5721
5721
  }
5722
- .empty-content[data-v-9cd09319] {
5722
+ .empty-content[data-v-41c2b253] {
5723
5723
  display: flex;
5724
5724
  align-items: center;
5725
5725
  justify-content: center;
@@ -5727,13 +5727,13 @@ body,
5727
5727
  color: #909399;
5728
5728
  font-size: 14px;
5729
5729
  }
5730
- .component-error[data-v-9cd09319] {
5730
+ .component-error[data-v-41c2b253] {
5731
5731
  padding: 40px 20px;
5732
5732
  text-align: center;
5733
5733
  color: #f56c6c;
5734
5734
  font-size: 14px;
5735
5735
  }
5736
- .fec-dialog-table[data-v-9cd09319] .table-pagination {
5736
+ .fec-dialog-table[data-v-41c2b253] .table-pagination {
5737
5737
  padding: 8px 0 0 0;
5738
5738
  }.text-field-wrapper[data-v-185ddd14] {
5739
5739
  width: 100%;
@@ -5904,27 +5904,27 @@ body,
5904
5904
  width: 80px;
5905
5905
  font-size: var(--el-font-size-extra-small);
5906
5906
  }
5907
- .fec-form[data-v-4eb26904] {
5907
+ .fec-form[data-v-d272bf0a] {
5908
5908
  height: 100%;
5909
5909
  }
5910
- [data-v-4eb26904] .vgl-item {
5910
+ [data-v-d272bf0a] .vgl-item {
5911
5911
  transition: none;
5912
5912
  }
5913
- [data-v-4eb26904] .vgl-item > .el-form-item {
5913
+ [data-v-d272bf0a] .vgl-item > .el-form-item {
5914
5914
  width: 100%;
5915
5915
  padding: 12px 8px 0 8px;
5916
5916
  height: calc(100% - 15px);
5917
5917
  display: flex;
5918
5918
  }
5919
- [data-v-4eb26904] .vgl-item > .el-form-item.el-form-item--label-top {
5919
+ [data-v-d272bf0a] .vgl-item > .el-form-item.el-form-item--label-top {
5920
5920
  flex-direction: column;
5921
5921
  }
5922
- [data-v-4eb26904] .vgl-item > .el-form-item .el-form-item__label {
5922
+ [data-v-d272bf0a] .vgl-item > .el-form-item .el-form-item__label {
5923
5923
  line-height: 20px;
5924
5924
  display: flex;
5925
5925
  align-items: center;
5926
5926
  }
5927
- [data-v-4eb26904] .vgl-item > .el-container {
5927
+ [data-v-d272bf0a] .vgl-item > .el-container {
5928
5928
  height: auto !important;
5929
5929
  }.cell-content .cell-text[data-v-3e5372d4] {
5930
5930
  display: inline-block;
@@ -6295,7 +6295,7 @@ body,
6295
6295
  margin-bottom: 0 !important;
6296
6296
  flex: 1;
6297
6297
  }
6298
- .fec-layout-card[data-v-3ce25014] {
6298
+ .fec-layout-card[data-v-2872569c] {
6299
6299
  margin-bottom: 8px;
6300
6300
  border-radius: 4px;
6301
6301
  background-color: #fff;
@@ -6303,16 +6303,16 @@ body,
6303
6303
  display: flex;
6304
6304
  flex-direction: column;
6305
6305
  }
6306
- .fec-layout-card .header[data-v-3ce25014] {
6306
+ .fec-layout-card .header[data-v-2872569c] {
6307
6307
  display: flex;
6308
6308
  align-items: center;
6309
6309
  justify-content: space-between;
6310
6310
  }
6311
- .fec-layout-card .header .title[data-v-3ce25014] {
6311
+ .fec-layout-card .header .title[data-v-2872569c] {
6312
6312
  display: flex;
6313
6313
  align-items: center;
6314
6314
  }
6315
- .fec-layout-card .header .title .icon[data-v-3ce25014] {
6315
+ .fec-layout-card .header .title .icon[data-v-2872569c] {
6316
6316
  color: #fff;
6317
6317
  width: 30px;
6318
6318
  height: 30px;
@@ -6323,12 +6323,12 @@ body,
6323
6323
  font-size: 20px;
6324
6324
  margin-right: 12px;
6325
6325
  }
6326
- .fec-layout-card .header .title > span[data-v-3ce25014] {
6326
+ .fec-layout-card .header .title > span[data-v-2872569c] {
6327
6327
  font-size: 17px;
6328
6328
  font-weight: bold;
6329
6329
  color: #1a1a1a;
6330
6330
  }
6331
- .fec-layout-card .content[data-v-3ce25014] {
6331
+ .fec-layout-card .content[data-v-2872569c] {
6332
6332
  flex-grow: 1;
6333
6333
  padding-top: 12px;
6334
6334
  }
@@ -4,6 +4,7 @@ const vue = require("vue");
4
4
  require("../../forms/h2/index.js");
5
5
  const getInstance = require("../../../utils/getInstance.js");
6
6
  const parseRouteParams = require("../../../utils/parseRouteParams.js");
7
+ const common = require("../../../utils/common.js");
7
8
  const _hoisted_1 = { class: "contract-content" };
8
9
  const path = "/tech/ctr/components/DocCtrInfoComponent";
9
10
  const _sfc_main = /* @__PURE__ */ Object.assign({
@@ -56,21 +57,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
56
57
  return props.config.mode;
57
58
  });
58
59
  const currentComponent = vue.ref(null);
59
- const loadComponentByPath = (path2) => {
60
- const route = ctx.$router.getRoutes().find((item) => item.path === path2);
61
- if (!route) return;
62
- const comp = route.components.default;
63
- if (!comp) return;
64
- if (typeof comp === "function") {
65
- comp().then((module2) => {
66
- currentComponent.value = module2.default;
67
- });
68
- } else {
69
- currentComponent.value = comp;
70
- }
71
- };
72
60
  vue.onMounted(() => {
73
- loadComponentByPath(path);
61
+ common.loadComponentByPath(path, ctx.$router, currentComponent);
74
62
  });
75
63
  function loaded(dom) {
76
64
  const foundItem = props.localConfig.fieldsData.find(
@@ -4,6 +4,7 @@ const vue = require("vue");
4
4
  const index$1 = require("../../forms/subTitle/index.js");
5
5
  const index = require("../../forms/h2/index.js");
6
6
  const getInstance = require("../../../utils/getInstance.js");
7
+ const common = require("../../../utils/common.js");
7
8
  const _hoisted_1 = {
8
9
  key: 0,
9
10
  style: { "height": "60px", "position": "relative" }
@@ -100,21 +101,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
100
101
  });
101
102
  });
102
103
  const currentComponent = vue.ref(null);
103
- const loadComponentByPath = (path2) => {
104
- const route = ctx.$router.getRoutes().find((item) => item.path === path2);
105
- if (!route) return;
106
- const comp = route.components.default;
107
- if (!comp) return;
108
- if (typeof comp === "function") {
109
- comp().then((module2) => {
110
- currentComponent.value = module2.default;
111
- });
112
- } else {
113
- currentComponent.value = comp;
114
- }
115
- };
116
104
  vue.onMounted(() => {
117
- loadComponentByPath(path);
105
+ common.loadComponentByPath(path, ctx.$router, currentComponent);
118
106
  });
119
107
  function loaded(dom) {
120
108
  const foundItem = props.localConfig.fieldsData.find(
@@ -14,6 +14,7 @@ const eventFlowHandler = require("../../utils/eventFlow/eventFlowHandler.js");
14
14
  ;/* empty css */
15
15
  ;/* empty css */
16
16
  ;/* empty css */
17
+ const common = require("../../utils/common.js");
17
18
  ;/* empty css */
18
19
  const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
19
20
  ;/* empty css */
@@ -121,6 +122,7 @@ const _sfc_main = {
121
122
  });
122
123
  return { ...paramsObj };
123
124
  });
125
+ const currentComponent = vue.ref(null);
124
126
  vue.watch(
125
127
  () => {
126
128
  return props.modelValue;
@@ -128,7 +130,11 @@ const _sfc_main = {
128
130
  (val) => {
129
131
  dialogVisible.value = val;
130
132
  if (val) {
131
- loadComponentByPath(currentDialogConfig.value.componentPath);
133
+ common.loadComponentByPath(
134
+ currentDialogConfig.value.componentPath,
135
+ props.componentCtx.$router,
136
+ currentComponent.value
137
+ );
132
138
  }
133
139
  },
134
140
  {
@@ -147,20 +153,6 @@ const _sfc_main = {
147
153
  );
148
154
  return params;
149
155
  });
150
- const currentComponent = vue.ref(null);
151
- function loadComponentByPath(path) {
152
- const route = props.componentCtx.$router.getRoutes().find((item) => item.path === path);
153
- if (!route) return;
154
- const comp = route.components.default;
155
- if (!comp) return;
156
- if (typeof comp === "function") {
157
- comp().then((module2) => {
158
- currentComponent.value = module2.default;
159
- });
160
- } else {
161
- currentComponent.value = comp;
162
- }
163
- }
164
156
  const handleSubmit = (data) => {
165
157
  emit("confirm", data);
166
158
  };
@@ -336,8 +328,7 @@ const _sfc_main = {
336
328
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
337
329
  width: dialogWidth.value,
338
330
  draggable: true,
339
- "close-on-click-modal": false,
340
- "append-to-body": ""
331
+ "close-on-click-modal": false
341
332
  }, componentParams.value, {
342
333
  formData: __props.formData,
343
334
  onClose: handleClose,
@@ -349,7 +340,6 @@ const _sfc_main = {
349
340
  width: dialogWidth.value,
350
341
  draggable: true,
351
342
  "close-on-click-modal": false,
352
- "append-to-body": "",
353
343
  class: "fec-dialog-renderer"
354
344
  }, {
355
345
  header: vue.withCtx(() => {
@@ -448,5 +438,5 @@ const _sfc_main = {
448
438
  };
449
439
  }
450
440
  };
451
- const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-9cd09319"]]);
441
+ const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-41c2b253"]]);
452
442
  exports.default = DialogRenderer;
@@ -147,7 +147,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
147
147
  }
148
148
  );
149
149
  const loadConfig = async () => {
150
- if (!props.templateKey && props.initOption && Object.keys(props.initOption).length == 0) {
150
+ if (!props.templateKey && (!props.initOption || Object.keys(props.initOption).length == 0)) {
151
151
  return;
152
152
  }
153
153
  configLoading.value = true;
@@ -1066,5 +1066,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1066
1066
  };
1067
1067
  }
1068
1068
  });
1069
- const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4eb26904"]]);
1069
+ const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-d272bf0a"]]);
1070
1070
  exports.default = _Form;
@@ -10,6 +10,7 @@ const index$4 = require("../../../api/index.js");
10
10
  const getInstance = require("../../../utils/getInstance.js");
11
11
  const index$5 = require("../../forms/form/index.js");
12
12
  const index$6 = require("../../table/index.js");
13
+ const common = require("../../../utils/common.js");
13
14
  ;/* empty css */
14
15
  const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
15
16
  const index = require("../../../../../../node_modules/element-plus/es/components/button/index.js");
@@ -69,7 +70,7 @@ const _sfc_main = {
69
70
  });
70
71
  function moreClick() {
71
72
  if (props.morePageRoute) {
72
- loadComponentByPath(props.morePageRoute);
73
+ common.loadComponentByPath(props.morePageRoute, ctx.$router, currentComponent);
73
74
  dialogVisible.value = true;
74
75
  } else if (props.morePageTemplateKey) {
75
76
  index$4.default.findByTemplateKey(ctx.$http, {
@@ -89,19 +90,6 @@ const _sfc_main = {
89
90
  });
90
91
  }
91
92
  }
92
- function loadComponentByPath(path) {
93
- const route = ctx.$router.getRoutes().find((item) => item.path === path);
94
- if (!route) return;
95
- const comp = route.components.default;
96
- if (!comp) return;
97
- if (typeof comp === "function") {
98
- comp().then((module2) => {
99
- currentComponent.value = module2.default;
100
- });
101
- } else {
102
- currentComponent.value = comp;
103
- }
104
- }
105
93
  return (_ctx, _cache) => {
106
94
  const _component_el_icon = index$1.ElIcon;
107
95
  const _component_el_button = index.ElButton;
@@ -158,5 +146,5 @@ const _sfc_main = {
158
146
  };
159
147
  }
160
148
  };
161
- const _LayoutCard = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3ce25014"]]);
149
+ const _LayoutCard = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2872569c"]]);
162
150
  exports.default = _LayoutCard;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
+ const common = require("../../utils/common.js");
4
5
  const path = "/bus/module/comm/risk/components/RiskInterceptResult";
5
6
  const _sfc_main = /* @__PURE__ */ Object.assign({
6
7
  inheritAttrs: false
@@ -55,21 +56,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
55
56
  emit("cancel", data);
56
57
  }
57
58
  const currentComponent = vue.ref(null);
58
- const loadComponentByPath = (path2) => {
59
- const route = props.ctx.$router.getRoutes().find((item) => item.path === path2);
60
- if (!route) return;
61
- const comp = route.components.default;
62
- if (!comp) return;
63
- if (typeof comp === "function") {
64
- comp().then((module2) => {
65
- currentComponent.value = module2.default;
66
- });
67
- } else {
68
- currentComponent.value = comp;
69
- }
70
- };
71
59
  vue.onMounted(() => {
72
- loadComponentByPath(path);
60
+ common.loadComponentByPath(path, props.ctx.$router, currentComponent);
73
61
  });
74
62
  return (_ctx, _cache) => {
75
63
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentComponent)), {
@@ -69,8 +69,22 @@ const setFormDataByFieldMapping = (value, multiple, options, fieldMapping, formD
69
69
  });
70
70
  }
71
71
  };
72
+ const loadComponentByPath = (path, router, currentComponent) => {
73
+ const route = router == null ? void 0 : router.getRoutes().find((item) => item.path === path);
74
+ if (!route) return;
75
+ const comp = route.components.default;
76
+ if (!comp) return;
77
+ if (typeof comp === "function") {
78
+ comp().then((module2) => {
79
+ currentComponent.value = module2.default;
80
+ });
81
+ } else {
82
+ currentComponent.value = comp;
83
+ }
84
+ };
72
85
  exports.cloneDeep = cloneDeep;
73
86
  exports.handleSearchData = handleSearchData;
74
87
  exports.isEqual = isEqual;
88
+ exports.loadComponentByPath = loadComponentByPath;
75
89
  exports.removeEmptyValues = removeEmptyValues;
76
90
  exports.setFormDataByFieldMapping = setFormDataByFieldMapping;
@@ -25,26 +25,35 @@ function calculate(params) {
25
25
  const [key, subKey] = enCode.split(".");
26
26
  if (value[key]) data = value[key].map((o) => o[subKey]);
27
27
  }
28
- if (!data) {
29
- const fieldItem = fieldsList.find((item2) => item2.fieldName == enCode);
30
- if (fieldItem) {
31
- switch (fieldItem.fieldType) {
32
- case "number":
28
+ const fieldItem = fieldsList.find((item2) => item2.fieldName == enCode);
29
+ if (fieldItem) {
30
+ switch (fieldItem.fieldType) {
31
+ case "number":
32
+ if (!data) {
33
33
  data = 0;
34
- break;
35
- case "switch":
34
+ } else {
35
+ Number(data);
36
+ }
37
+ break;
38
+ case "switch":
39
+ data = false;
40
+ if (!data) {
36
41
  data = false;
37
- break;
38
- default:
42
+ } else if ("true" == data + "") {
43
+ Number(data);
44
+ } else {
45
+ data = false;
46
+ }
47
+ break;
48
+ default:
49
+ if (!data) {
39
50
  data = "";
40
- }
41
- } else {
42
- throw new Error("字段:" + item.fieldName + " 未定义");
51
+ }
43
52
  }
53
+ } else {
54
+ throw new Error("字段:" + item.fieldName + " 未定义");
44
55
  }
45
- if (typeof data != "string") {
46
- data = JSON.stringify(data);
47
- }
56
+ data = JSON.stringify(data);
48
57
  const actualStart = startIndex + offset;
49
58
  const actualEnd = endIndex + offset;
50
59
  str = str.slice(0, actualStart) + data.toString() + str.slice(actualEnd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.4.31",
3
+ "version": "5.4.34",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [