@fecp/designer 5.4.30 → 5.4.33
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/es/designer/package.json.mjs +1 -1
- package/es/designer.css +17 -17
- package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +2 -14
- package/es/packages/vue/src/components/bus/document/Document.vue.mjs +2 -14
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +9 -16
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +2 -2
- package/es/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.mjs +3 -15
- package/es/packages/vue/src/components/riskSch/RiskSchRenderer.vue.mjs +2 -14
- package/es/packages/vue/src/utils/common.mjs +14 -0
- package/es/packages/vue/src/utils/formulajs/calculate.mjs +24 -15
- package/lib/designer/package.json.js +1 -1
- package/lib/designer.css +17 -17
- package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +2 -14
- package/lib/packages/vue/src/components/bus/document/Document.vue.js +2 -14
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +9 -16
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +2 -2
- package/lib/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.js +3 -15
- package/lib/packages/vue/src/components/riskSch/RiskSchRenderer.vue.js +2 -14
- package/lib/packages/vue/src/utils/common.js +14 -0
- package/lib/packages/vue/src/utils/formulajs/calculate.js +24 -15
- package/package.json +1 -1
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-
|
|
5711
|
+
.dialog-header-content[data-v-600f4264] {
|
|
5712
5712
|
font-size: 16px;
|
|
5713
5713
|
font-weight: 600;
|
|
5714
5714
|
color: #303133;
|
|
5715
5715
|
}
|
|
5716
|
-
.dialog-content-wrapper[data-v-
|
|
5716
|
+
.dialog-content-wrapper[data-v-600f4264] {
|
|
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-
|
|
5722
|
+
.empty-content[data-v-600f4264] {
|
|
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-
|
|
5730
|
+
.component-error[data-v-600f4264] {
|
|
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-
|
|
5736
|
+
.fec-dialog-table[data-v-600f4264] .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-
|
|
5907
|
+
.fec-form[data-v-d272bf0a] {
|
|
5908
5908
|
height: 100%;
|
|
5909
5909
|
}
|
|
5910
|
-
[data-v-
|
|
5910
|
+
[data-v-d272bf0a] .vgl-item {
|
|
5911
5911
|
transition: none;
|
|
5912
5912
|
}
|
|
5913
|
-
[data-v-
|
|
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-
|
|
5919
|
+
[data-v-d272bf0a] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5920
5920
|
flex-direction: column;
|
|
5921
5921
|
}
|
|
5922
|
-
[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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(
|
|
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
|
};
|
|
@@ -168,6 +160,7 @@ const _sfc_main = {
|
|
|
168
160
|
const dialogTableRef = ref();
|
|
169
161
|
const handleConfirm = () => {
|
|
170
162
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
163
|
+
debugger;
|
|
171
164
|
const contentSource = (_a = currentDialogConfig.value) == null ? void 0 : _a.contentSource;
|
|
172
165
|
if (contentSource === "table") {
|
|
173
166
|
if (tableSelectionRows.value.length == 0) {
|
|
@@ -446,7 +439,7 @@ const _sfc_main = {
|
|
|
446
439
|
};
|
|
447
440
|
}
|
|
448
441
|
};
|
|
449
|
-
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
442
|
+
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-600f4264"]]);
|
|
450
443
|
export {
|
|
451
444
|
DialogRenderer as default
|
|
452
445
|
};
|
|
@@ -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
|
|
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-
|
|
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-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
33
|
-
|
|
32
|
+
} else {
|
|
33
|
+
Number(data);
|
|
34
|
+
}
|
|
35
|
+
break;
|
|
36
|
+
case "switch":
|
|
37
|
+
data = false;
|
|
38
|
+
if (!data) {
|
|
34
39
|
data = false;
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
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);
|
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-
|
|
5711
|
+
.dialog-header-content[data-v-600f4264] {
|
|
5712
5712
|
font-size: 16px;
|
|
5713
5713
|
font-weight: 600;
|
|
5714
5714
|
color: #303133;
|
|
5715
5715
|
}
|
|
5716
|
-
.dialog-content-wrapper[data-v-
|
|
5716
|
+
.dialog-content-wrapper[data-v-600f4264] {
|
|
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-
|
|
5722
|
+
.empty-content[data-v-600f4264] {
|
|
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-
|
|
5730
|
+
.component-error[data-v-600f4264] {
|
|
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-
|
|
5736
|
+
.fec-dialog-table[data-v-600f4264] .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-
|
|
5907
|
+
.fec-form[data-v-d272bf0a] {
|
|
5908
5908
|
height: 100%;
|
|
5909
5909
|
}
|
|
5910
|
-
[data-v-
|
|
5910
|
+
[data-v-d272bf0a] .vgl-item {
|
|
5911
5911
|
transition: none;
|
|
5912
5912
|
}
|
|
5913
|
-
[data-v-
|
|
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-
|
|
5919
|
+
[data-v-d272bf0a] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5920
5920
|
flex-direction: column;
|
|
5921
5921
|
}
|
|
5922
|
-
[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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(
|
|
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
|
};
|
|
@@ -170,6 +162,7 @@ const _sfc_main = {
|
|
|
170
162
|
const dialogTableRef = vue.ref();
|
|
171
163
|
const handleConfirm = () => {
|
|
172
164
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
165
|
+
debugger;
|
|
173
166
|
const contentSource = (_a = currentDialogConfig.value) == null ? void 0 : _a.contentSource;
|
|
174
167
|
if (contentSource === "table") {
|
|
175
168
|
if (tableSelectionRows.value.length == 0) {
|
|
@@ -448,5 +441,5 @@ const _sfc_main = {
|
|
|
448
441
|
};
|
|
449
442
|
}
|
|
450
443
|
};
|
|
451
|
-
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
444
|
+
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-600f4264"]]);
|
|
452
445
|
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
|
|
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-
|
|
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-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
35
|
-
|
|
34
|
+
} else {
|
|
35
|
+
Number(data);
|
|
36
|
+
}
|
|
37
|
+
break;
|
|
38
|
+
case "switch":
|
|
39
|
+
data = false;
|
|
40
|
+
if (!data) {
|
|
36
41
|
data = false;
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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);
|