@fecp/designer 5.4.17 → 5.4.19
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/src/components/DocumentParam.vue.mjs +1 -1
- package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +17 -5
- package/es/designer/src/packages/eventFlow/dialog/action/config.mjs +1 -0
- package/es/designer/src/packages/form/index.vue.mjs +18 -5
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
- package/es/designer.css +69 -69
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +10 -0
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +10 -0
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +10 -0
- package/es/packages/vue/src/components/riskSch/RiskSchRenderer.vue.mjs +87 -0
- package/es/packages/vue/src/components/riskSch/index.mjs +71 -0
- package/es/packages/vue/src/components/table/Table.vue.mjs +10 -0
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +10 -0
- package/es/packages/vue/src/composables/usePageEvents.mjs +10 -0
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +44 -7
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DocumentParam.vue.js +1 -1
- package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +17 -5
- package/lib/designer/src/packages/eventFlow/dialog/action/config.js +1 -0
- package/lib/designer/src/packages/form/index.vue.js +17 -4
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
- package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
- package/lib/designer.css +69 -69
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +10 -0
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +10 -0
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +10 -0
- package/lib/packages/vue/src/components/riskSch/RiskSchRenderer.vue.js +87 -0
- package/lib/packages/vue/src/components/riskSch/index.js +71 -0
- package/lib/packages/vue/src/components/table/Table.vue.js +10 -0
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +10 -0
- package/lib/packages/vue/src/composables/usePageEvents.js +10 -0
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +57 -20
- package/package.json +1 -1
|
@@ -14,6 +14,16 @@ import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowH
|
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
17
|
+
/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
20
|
+
/* empty css */
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
/* empty css */
|
|
17
27
|
/* empty css */
|
|
18
28
|
/* empty css */
|
|
19
29
|
import { ElDialog } from "../../../../../node_modules/element-plus/es/components/dialog/index.mjs";
|
|
@@ -26,6 +26,16 @@ import { useEventFlow } from "../../../utils/eventFlow/eventFlowHandler.mjs";
|
|
|
26
26
|
/* empty css */
|
|
27
27
|
/* empty css */
|
|
28
28
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
29
|
+
/* empty css */
|
|
30
|
+
/* empty css */
|
|
31
|
+
/* empty css */
|
|
32
|
+
/* empty css */
|
|
33
|
+
/* empty css */
|
|
34
|
+
/* empty css */
|
|
35
|
+
/* empty css */
|
|
36
|
+
/* empty css */
|
|
37
|
+
/* empty css */
|
|
38
|
+
/* empty css */
|
|
29
39
|
import api from "../../../api/index.mjs";
|
|
30
40
|
/* empty css */
|
|
31
41
|
/* empty css */
|
|
@@ -7,6 +7,16 @@ import { computed, getCurrentInstance, inject, createElementBlock, openBlock, cr
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { openDialog } from "../../dialog/index.mjs";
|
|
10
|
+
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
10
20
|
import api from "../../../api/index.mjs";
|
|
11
21
|
/* empty css */
|
|
12
22
|
/* empty css */
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { ref, watch, onMounted, createBlock, openBlock, resolveDynamicComponent, unref, isRef } from "vue";
|
|
2
|
+
const path = "/bus/module/comm/risk/components/RiskInterceptResult";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
4
|
+
inheritAttrs: false
|
|
5
|
+
}, {
|
|
6
|
+
__name: "RiskSchRenderer",
|
|
7
|
+
props: {
|
|
8
|
+
// 是否显示
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: false
|
|
12
|
+
},
|
|
13
|
+
ctx: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: {}
|
|
16
|
+
},
|
|
17
|
+
schNo: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
busNo: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
paramList: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: {}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["update:modelValue", "confirm", "cancel"],
|
|
31
|
+
setup(__props, { emit: __emit }) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const emit = __emit;
|
|
34
|
+
const dialogVisible = ref(false);
|
|
35
|
+
watch(
|
|
36
|
+
() => {
|
|
37
|
+
return props.modelValue;
|
|
38
|
+
},
|
|
39
|
+
(val) => {
|
|
40
|
+
dialogVisible.value = val;
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
immediate: true
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
watch(dialogVisible, (val) => {
|
|
47
|
+
emit("update:modelValue", val);
|
|
48
|
+
});
|
|
49
|
+
function confirm(data) {
|
|
50
|
+
emit("confirm", data);
|
|
51
|
+
}
|
|
52
|
+
function cancel(data) {
|
|
53
|
+
emit("cancel", data);
|
|
54
|
+
}
|
|
55
|
+
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
|
+
onMounted(() => {
|
|
70
|
+
loadComponentByPath(path);
|
|
71
|
+
});
|
|
72
|
+
return (_ctx, _cache) => {
|
|
73
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), {
|
|
74
|
+
modelValue: unref(dialogVisible),
|
|
75
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null),
|
|
76
|
+
schNo: __props.schNo,
|
|
77
|
+
busNo: __props.busNo,
|
|
78
|
+
paramList: __props.paramList,
|
|
79
|
+
onConfirm: confirm,
|
|
80
|
+
onCancel: cancel
|
|
81
|
+
}, null, 40, ["modelValue", "schNo", "busNo", "paramList"]);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
_sfc_main as default
|
|
87
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { createVNode, render } from "vue";
|
|
2
|
+
import _sfc_main from "./RiskSchRenderer.vue.mjs";
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
import { closeDialog } from "../../../../../node_modules/vant/es/dialog/function-call.mjs";
|
|
14
|
+
import "../../../../../node_modules/vant/es/dialog/index.mjs";
|
|
15
|
+
let currentDialogInstance = null;
|
|
16
|
+
let isCleaningUp = false;
|
|
17
|
+
const cleanupDialog = () => {
|
|
18
|
+
if (isCleaningUp) return;
|
|
19
|
+
isCleaningUp = true;
|
|
20
|
+
setTimeout(() => {
|
|
21
|
+
var _a;
|
|
22
|
+
try {
|
|
23
|
+
if ((_a = currentDialogInstance == null ? void 0 : currentDialogInstance.container) == null ? void 0 : _a.parentNode) {
|
|
24
|
+
currentDialogInstance.container.parentNode.removeChild(
|
|
25
|
+
currentDialogInstance.container
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
if (currentDialogInstance == null ? void 0 : currentDialogInstance.vnode) {
|
|
29
|
+
render(null, currentDialogInstance.container);
|
|
30
|
+
}
|
|
31
|
+
currentDialogInstance = null;
|
|
32
|
+
} catch (error) {
|
|
33
|
+
console.error("Dialog cleanup error:", error);
|
|
34
|
+
} finally {
|
|
35
|
+
isCleaningUp = false;
|
|
36
|
+
}
|
|
37
|
+
}, 300);
|
|
38
|
+
};
|
|
39
|
+
function openRiskSch(option, instance, ctx) {
|
|
40
|
+
return new Promise((resolve, reject) => {
|
|
41
|
+
if (currentDialogInstance) {
|
|
42
|
+
closeDialog();
|
|
43
|
+
}
|
|
44
|
+
const container = document.createElement("div");
|
|
45
|
+
document.body.appendChild(container);
|
|
46
|
+
const vnode = createVNode(_sfc_main, {
|
|
47
|
+
modelValue: true,
|
|
48
|
+
...option,
|
|
49
|
+
ctx,
|
|
50
|
+
"onUpdate:modelValue": (val) => {
|
|
51
|
+
if (!val) {
|
|
52
|
+
cleanupDialog();
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
onConfirm: (data) => {
|
|
56
|
+
cleanupDialog();
|
|
57
|
+
resolve(data);
|
|
58
|
+
},
|
|
59
|
+
onCancel: () => {
|
|
60
|
+
cleanupDialog();
|
|
61
|
+
reject(new Error("用户取消"));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
vnode.appContext = instance.appContext;
|
|
65
|
+
render(vnode, container);
|
|
66
|
+
currentDialogInstance = { vnode, container };
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
openRiskSch
|
|
71
|
+
};
|
|
@@ -28,6 +28,16 @@ import { useEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
|
28
28
|
/* empty css */
|
|
29
29
|
/* empty css */
|
|
30
30
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
31
|
+
/* empty css */
|
|
32
|
+
/* empty css */
|
|
33
|
+
/* empty css */
|
|
34
|
+
/* empty css */
|
|
35
|
+
/* empty css */
|
|
36
|
+
/* empty css */
|
|
37
|
+
/* empty css */
|
|
38
|
+
/* empty css */
|
|
39
|
+
/* empty css */
|
|
40
|
+
/* empty css */
|
|
31
41
|
/* empty css */
|
|
32
42
|
/* empty css */
|
|
33
43
|
import getJsonAsyncUtil from "../../utils/getJsonAsyncUtil.mjs";
|
|
@@ -18,6 +18,16 @@ import "../../utils/formulajs/functionCore.mjs";
|
|
|
18
18
|
import { useEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
19
19
|
/* empty css */
|
|
20
20
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
/* empty css */
|
|
27
|
+
/* empty css */
|
|
28
|
+
/* empty css */
|
|
29
|
+
/* empty css */
|
|
30
|
+
/* empty css */
|
|
21
31
|
/* empty css */
|
|
22
32
|
/* empty css */
|
|
23
33
|
import { Decimal } from "../../../../../node_modules/decimal.js/decimal.mjs";
|
|
@@ -11,6 +11,16 @@ import "../components/forms/form/index.mjs";
|
|
|
11
11
|
import "../utils/formulajs/functionCore.mjs";
|
|
12
12
|
import { useEventFlow } from "../utils/eventFlow/eventFlowHandler.mjs";
|
|
13
13
|
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
17
|
+
/* empty css */
|
|
18
|
+
/* empty css */
|
|
19
|
+
/* empty css */
|
|
20
|
+
/* empty css */
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
14
24
|
/* empty css */
|
|
15
25
|
/* empty css */
|
|
16
26
|
function usePageEvents(getOptions) {
|
|
@@ -3,6 +3,7 @@ import { parseRouteParams, parseSingleParamValue } from "../parseRouteParams.mjs
|
|
|
3
3
|
import { removeEmptyValues } from "../common.mjs";
|
|
4
4
|
import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
5
5
|
import { openDialog } from "../../components/dialog/index.mjs";
|
|
6
|
+
import { openRiskSch } from "../../components/riskSch/index.mjs";
|
|
6
7
|
import api from "../../api/index.mjs";
|
|
7
8
|
/* empty css */
|
|
8
9
|
/* empty css */
|
|
@@ -630,6 +631,7 @@ async function handleDialog(node, data, fields, context) {
|
|
|
630
631
|
}
|
|
631
632
|
}
|
|
632
633
|
async function handleRiskSchDialog(node, data, fields, context) {
|
|
634
|
+
var _a, _b, _c;
|
|
633
635
|
const basic = node.basic || {};
|
|
634
636
|
if (!(basic == null ? void 0 : basic.schNo)) {
|
|
635
637
|
console.error("风险拦截校验: 缺少 schNo 配置");
|
|
@@ -639,16 +641,51 @@ async function handleRiskSchDialog(node, data, fields, context) {
|
|
|
639
641
|
console.error("风险拦截校验: 缺少 busNo 配置");
|
|
640
642
|
return;
|
|
641
643
|
}
|
|
644
|
+
if (basic == null ? void 0 : basic.formValidate) {
|
|
645
|
+
const formComponent = (_a = context.components) == null ? void 0 : _a.form;
|
|
646
|
+
const validateMethod = (_c = (_b = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.validate;
|
|
647
|
+
try {
|
|
648
|
+
if (typeof validateMethod === "function") {
|
|
649
|
+
await validateMethod();
|
|
650
|
+
} else {
|
|
651
|
+
console.error("未找到表单组件的 validate 方法");
|
|
652
|
+
return {
|
|
653
|
+
success: false,
|
|
654
|
+
message: "表单组件未正确配置或 validate 方法未暴露",
|
|
655
|
+
shouldShowError: true
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
} catch (error) {
|
|
659
|
+
return {
|
|
660
|
+
success: false,
|
|
661
|
+
message: "表单验证失败!",
|
|
662
|
+
shouldShowError: false
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
}
|
|
642
666
|
const schNo = basic.schNo;
|
|
643
|
-
console.log("🚀 ~ handleRiskSchDialog ~ schNo:", schNo);
|
|
644
667
|
const paramList = parseRouteParams(basic == null ? void 0 : basic.params, data, fields);
|
|
645
|
-
console.log("🚀 ~ handleRiskSchDialog ~ paramList:", paramList);
|
|
646
668
|
const busNo = parseSingleParamValue(basic.busNo, data, fields);
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
669
|
+
try {
|
|
670
|
+
await openRiskSch(
|
|
671
|
+
{ schNo, busNo, paramList },
|
|
672
|
+
context.instance,
|
|
673
|
+
context.ctx
|
|
674
|
+
);
|
|
675
|
+
return {
|
|
676
|
+
success: true,
|
|
677
|
+
message: "用户已确认",
|
|
678
|
+
shouldShowError: false
|
|
679
|
+
};
|
|
680
|
+
} catch (error) {
|
|
681
|
+
return {
|
|
682
|
+
success: false,
|
|
683
|
+
message: "用户已取消",
|
|
684
|
+
confirmed: false,
|
|
685
|
+
shouldShowError: false
|
|
686
|
+
// 用户取消不提示错误
|
|
687
|
+
};
|
|
688
|
+
}
|
|
652
689
|
}
|
|
653
690
|
async function handleUpload(node, data, fields, context) {
|
|
654
691
|
const basic = node.basic || {};
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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");
|
|
@@ -79,7 +79,7 @@ require("../formulaEditor/core/functionCore.js");
|
|
|
79
79
|
require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
80
80
|
;/* empty css */
|
|
81
81
|
;/* empty css */
|
|
82
|
-
;/* empty css
|
|
82
|
+
;/* empty css */
|
|
83
83
|
;/* empty css */
|
|
84
84
|
;/* empty css */
|
|
85
85
|
;/* empty css */
|
|
@@ -3,11 +3,13 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
require("../../../../../../node_modules/element-plus/es/index.js");
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
6
7
|
const vue = require("vue");
|
|
7
8
|
const RiskSchemeSelector = require("../../../../components/RiskSchemeSelector.vue2.js");
|
|
8
|
-
const ValueSelector = require("../../../../components/ValueSelector.
|
|
9
|
+
const ValueSelector = require("../../../../components/ValueSelector.vue.js");
|
|
9
10
|
const ParamsConfig = require("../../../../components/ParamsConfig.vue2.js");
|
|
10
11
|
const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
12
|
+
const index$1 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");
|
|
11
13
|
const _sfc_main = {
|
|
12
14
|
__name: "RiskSch",
|
|
13
15
|
props: {
|
|
@@ -15,15 +17,25 @@ const _sfc_main = {
|
|
|
15
17
|
},
|
|
16
18
|
setup(__props) {
|
|
17
19
|
return (_ctx, _cache) => {
|
|
20
|
+
const _component_el_switch = index$1.ElSwitch;
|
|
18
21
|
const _component_el_form_item = index.ElFormItem;
|
|
19
22
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
23
|
+
vue.createVNode(_component_el_form_item, { label: "表单校验" }, {
|
|
24
|
+
default: vue.withCtx(() => [
|
|
25
|
+
vue.createVNode(_component_el_switch, {
|
|
26
|
+
modelValue: __props.formData.formValidate,
|
|
27
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.formValidate = $event)
|
|
28
|
+
}, null, 8, ["modelValue"])
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
}),
|
|
20
32
|
vue.createVNode(_component_el_form_item, { label: "风险方案" }, {
|
|
21
33
|
default: vue.withCtx(() => [
|
|
22
34
|
vue.createVNode(RiskSchemeSelector.default, {
|
|
23
35
|
modelValue: __props.formData.schName,
|
|
24
|
-
"onUpdate:modelValue": _cache[
|
|
36
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.schName = $event),
|
|
25
37
|
schNo: __props.formData.schNo,
|
|
26
|
-
"onUpdate:schNo": _cache[
|
|
38
|
+
"onUpdate:schNo": _cache[2] || (_cache[2] = ($event) => __props.formData.schNo = $event)
|
|
27
39
|
}, null, 8, ["modelValue", "schNo"])
|
|
28
40
|
]),
|
|
29
41
|
_: 1
|
|
@@ -32,7 +44,7 @@ const _sfc_main = {
|
|
|
32
44
|
default: vue.withCtx(() => [
|
|
33
45
|
vue.createVNode(ValueSelector.default, {
|
|
34
46
|
modelValue: __props.formData.busNo,
|
|
35
|
-
"onUpdate:modelValue": _cache[
|
|
47
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.formData.busNo = $event),
|
|
36
48
|
multiple: false,
|
|
37
49
|
placeholder: "选择业务主键"
|
|
38
50
|
}, null, 8, ["modelValue"])
|
|
@@ -43,7 +55,7 @@ const _sfc_main = {
|
|
|
43
55
|
default: vue.withCtx(() => [
|
|
44
56
|
vue.createVNode(ParamsConfig.default, {
|
|
45
57
|
modelValue: __props.formData.params,
|
|
46
|
-
"onUpdate:modelValue": _cache[
|
|
58
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.formData.params = $event)
|
|
47
59
|
}, null, 8, ["modelValue"])
|
|
48
60
|
]),
|
|
49
61
|
_: 1
|
|
@@ -62,6 +62,14 @@ const _sfc_main = {
|
|
|
62
62
|
editConfigData.value.fieldsData.forEach((item) => {
|
|
63
63
|
item.component = { ...index.defaultProperty, ...item.component };
|
|
64
64
|
});
|
|
65
|
+
vue.watch(
|
|
66
|
+
editConfigData,
|
|
67
|
+
(val) => {
|
|
68
|
+
console.log("🚀 ~ val:", val);
|
|
69
|
+
common.setEditConfigData(val);
|
|
70
|
+
},
|
|
71
|
+
{ deep: true }
|
|
72
|
+
);
|
|
65
73
|
const layoutDragData = vue.ref([]);
|
|
66
74
|
const layoutData = vue.ref(editConfigData.value.fieldsData || []);
|
|
67
75
|
const gridLayout = vue.ref(null);
|
|
@@ -103,6 +111,7 @@ const _sfc_main = {
|
|
|
103
111
|
item.x = 0;
|
|
104
112
|
});
|
|
105
113
|
layoutData.value = [...validItems, ...itemsToRelayout];
|
|
114
|
+
editConfigData.value.fieldsData = layoutData.value;
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
117
|
);
|
|
@@ -114,9 +123,13 @@ const _sfc_main = {
|
|
|
114
123
|
var _a, _b, _c;
|
|
115
124
|
if (["subTitle", "h2", "divider"].includes((_a = item.component) == null ? void 0 : _a.fieldType)) {
|
|
116
125
|
item.h = 1 * targetHeight;
|
|
117
|
-
} else if ([
|
|
118
|
-
|
|
119
|
-
|
|
126
|
+
} else if ([
|
|
127
|
+
"subForm",
|
|
128
|
+
"subTable",
|
|
129
|
+
"approvalHistory",
|
|
130
|
+
"document",
|
|
131
|
+
"contract"
|
|
132
|
+
].includes((_b = item.component) == null ? void 0 : _b.fieldType)) {
|
|
120
133
|
if (((_c = item.component) == null ? void 0 : _c.titleMode) == "none") {
|
|
121
134
|
item.h = 2 * targetHeight;
|
|
122
135
|
} else {
|
|
@@ -506,5 +519,5 @@ const _sfc_main = {
|
|
|
506
519
|
};
|
|
507
520
|
}
|
|
508
521
|
};
|
|
509
|
-
const formWorkArea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
522
|
+
const formWorkArea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-d23df582"]]);
|
|
510
523
|
exports.default = formWorkArea;
|
|
@@ -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.
|
|
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.
|
|
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 */
|
|
@@ -15,7 +15,7 @@ const vue = require("vue");
|
|
|
15
15
|
const common = require("../../utils/common.js");
|
|
16
16
|
const TemplateSelector = require("../../../components/TemplateSelector.vue.js");
|
|
17
17
|
const eventBus = require("../../utils/eventBus.js");
|
|
18
|
-
const ValueSelector = require("../../../components/ValueSelector.
|
|
18
|
+
const ValueSelector = require("../../../components/ValueSelector.vue.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");
|
|
21
21
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/input/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.
|
|
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");
|