@fecp/designer 5.4.14 → 5.4.16
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/api/index.mjs +7 -1
- package/es/designer/src/components/DocumentParam.vue.mjs +17 -19
- package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/designer/src/components/RiskSchemeDialog.vue2.mjs +241 -0
- package/es/designer/src/components/RiskSchemeSelector.vue2.mjs +68 -0
- package/es/designer/src/components/TemplateDialog.vue.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/dataSource/dataSource.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +11 -6
- package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +55 -0
- package/es/designer/src/packages/eventFlow/dialog/action/config.mjs +171 -69
- package/es/designer/src/packages/form/aside/index.mjs +6 -2
- package/es/designer/src/packages/form/components/Contract.vue.mjs +80 -0
- package/es/designer/src/packages/form/components/Document.vue.mjs +27 -10
- package/es/designer/src/packages/form/index.vue.mjs +10 -17
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +227 -0
- package/es/designer/src/packages/form/property/document.vue.mjs +3 -3
- package/es/designer/src/packages/form/property/index.vue.mjs +5 -2
- 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 +6 -1
- package/es/designer.css +224 -115
- package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +101 -0
- package/es/packages/vue/src/components/bus/contract/index.mjs +7 -0
- package/es/packages/vue/src/components/forms/cascader/Cascader.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/date/Date.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +3 -2
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +10 -3
- package/es/packages/vue/src/components/forms/radio/Radio.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/select/Select.vue.mjs +1 -1
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +54 -29
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/api/index.js +7 -1
- package/lib/designer/src/components/DocumentParam.vue.js +16 -18
- package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/designer/src/components/RiskSchemeDialog.vue2.js +241 -0
- package/lib/designer/src/components/RiskSchemeSelector.vue2.js +68 -0
- package/lib/designer/src/components/TemplateDialog.vue.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/dataSource/dataSource.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +11 -6
- package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +55 -0
- package/lib/designer/src/packages/eventFlow/dialog/action/config.js +170 -68
- package/lib/designer/src/packages/form/aside/index.js +6 -2
- package/lib/designer/src/packages/form/components/Contract.vue.js +80 -0
- package/lib/designer/src/packages/form/components/Document.vue.js +26 -9
- package/lib/designer/src/packages/form/index.vue.js +10 -17
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +227 -0
- package/lib/designer/src/packages/form/property/document.vue.js +3 -3
- package/lib/designer/src/packages/form/property/index.vue.js +5 -2
- 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 +6 -1
- package/lib/designer.css +224 -115
- package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +101 -0
- package/lib/packages/vue/src/components/bus/contract/index.js +7 -0
- package/lib/packages/vue/src/components/forms/cascader/Cascader.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/date/Date.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +3 -2
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +14 -7
- package/lib/packages/vue/src/components/forms/radio/Radio.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/select/Select.vue.js +1 -1
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +53 -28
- package/package.json +1 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ref, inject, computed, onMounted, createElementBlock, openBlock, createBlock, resolveDynamicComponent, unref } from "vue";
|
|
2
|
+
import "../../forms/h2/index.mjs";
|
|
3
|
+
import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
|
|
4
|
+
import { parseRouteParams, parseSingleParamValue } from "../../../utils/parseRouteParams.mjs";
|
|
5
|
+
const _hoisted_1 = { class: "contract-content" };
|
|
6
|
+
const path = "/tech/ctr/components/DocCtrInfoComponent";
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
8
|
+
inheritAttrs: false
|
|
9
|
+
}, {
|
|
10
|
+
__name: "Contract",
|
|
11
|
+
props: {
|
|
12
|
+
config: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
localConfig: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
formMode: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const ctx = getCurrentVueInstance();
|
|
28
|
+
ref("");
|
|
29
|
+
const formData = inject("formData");
|
|
30
|
+
inject("rowHeight");
|
|
31
|
+
inject("gridLayout");
|
|
32
|
+
inject("gridLayoutFieldsData");
|
|
33
|
+
const setFormItemHeight = inject("setFormItemHeight");
|
|
34
|
+
const fieldsData = props.localConfig.fieldsData.map((item) => {
|
|
35
|
+
return item.component;
|
|
36
|
+
});
|
|
37
|
+
const hiddenFields = props.localConfig.hiddenFields;
|
|
38
|
+
const parsedParams = parseRouteParams(props.config.params, formData.value, [
|
|
39
|
+
...fieldsData,
|
|
40
|
+
...hiddenFields
|
|
41
|
+
]);
|
|
42
|
+
const busNo = parseSingleParamValue(props.config.busNo, formData.value, [
|
|
43
|
+
...fieldsData,
|
|
44
|
+
...hiddenFields
|
|
45
|
+
]);
|
|
46
|
+
const contNo = parseSingleParamValue(props.config.contNo, formData.value, [
|
|
47
|
+
...fieldsData,
|
|
48
|
+
...hiddenFields
|
|
49
|
+
]);
|
|
50
|
+
const mode = computed(() => {
|
|
51
|
+
if (props.formMode == "query") {
|
|
52
|
+
return "view";
|
|
53
|
+
}
|
|
54
|
+
return props.config.mode;
|
|
55
|
+
});
|
|
56
|
+
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
|
+
onMounted(() => {
|
|
71
|
+
loadComponentByPath(path);
|
|
72
|
+
});
|
|
73
|
+
function loaded(dom) {
|
|
74
|
+
const foundItem = props.localConfig.fieldsData.find(
|
|
75
|
+
(item) => item.id == props.config.id
|
|
76
|
+
);
|
|
77
|
+
const titleHeight = 0;
|
|
78
|
+
if (foundItem) {
|
|
79
|
+
foundItem.fixedH = true;
|
|
80
|
+
foundItem.h = dom.offsetHeight + titleHeight;
|
|
81
|
+
setFormItemHeight(props.config.id, true, dom.offsetHeight + titleHeight);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
86
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), {
|
|
87
|
+
mode: unref(mode),
|
|
88
|
+
busNo: unref(busNo),
|
|
89
|
+
contNo: unref(contNo),
|
|
90
|
+
busSubject: __props.config.busSubject,
|
|
91
|
+
genType: __props.config.genType,
|
|
92
|
+
parmList: unref(parsedParams),
|
|
93
|
+
onLoaded: loaded
|
|
94
|
+
}, null, 40, ["mode", "busNo", "contNo", "busSubject", "genType", "parmList"]))
|
|
95
|
+
]);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
_sfc_main as default
|
|
101
|
+
};
|
|
@@ -994,7 +994,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
994
994
|
rules: formRules.value,
|
|
995
995
|
"label-position": localConfig.value.labelPosition,
|
|
996
996
|
style: normalizeStyle({ padding: __props.isSubForm || __props.isDialog ? "0" : "18px" }),
|
|
997
|
-
"validate-on-rule-change": false
|
|
997
|
+
"validate-on-rule-change": false,
|
|
998
|
+
"scroll-to-error": ""
|
|
998
999
|
}, {
|
|
999
1000
|
default: withCtx(() => [
|
|
1000
1001
|
!configLoading.value ? (openBlock(), createBlock(unref(De), {
|
|
@@ -1052,7 +1053,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1052
1053
|
};
|
|
1053
1054
|
}
|
|
1054
1055
|
});
|
|
1055
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1056
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-575ec394"]]);
|
|
1056
1057
|
export {
|
|
1057
1058
|
_Form as default
|
|
1058
1059
|
};
|
|
@@ -11,6 +11,7 @@ import { SubForm } from "../subForm/index.mjs";
|
|
|
11
11
|
import { SubTable } from "../subTable/index.mjs";
|
|
12
12
|
import { ApprovalHistory } from "../../bus/approvalHistory/index.mjs";
|
|
13
13
|
import { Document } from "../../bus/document/index.mjs";
|
|
14
|
+
import { Contract } from "../../bus/contract/index.mjs";
|
|
14
15
|
import * as index$1 from "../index.mjs";
|
|
15
16
|
import * as index from "../../bus/index.mjs";
|
|
16
17
|
/* empty css */
|
|
@@ -142,11 +143,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
142
143
|
ref: innerComponentRef,
|
|
143
144
|
config: __props.config,
|
|
144
145
|
localConfig: __props.localConfig
|
|
145
|
-
}, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "
|
|
146
|
+
}, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "contract" ? (openBlock(), createBlock(unref(Contract), {
|
|
146
147
|
key: 6,
|
|
148
|
+
ref_key: "innerComponentRef",
|
|
149
|
+
ref: innerComponentRef,
|
|
150
|
+
config: __props.config,
|
|
151
|
+
localConfig: __props.localConfig
|
|
152
|
+
}, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "blank" || __props.config.fieldType == "divider" ? (openBlock(), createElementBlock("div", {
|
|
153
|
+
key: 7,
|
|
147
154
|
class: normalizeClass(__props.config.fieldType)
|
|
148
155
|
}, null, 2)) : (openBlock(), createBlock(_component_el_form_item, {
|
|
149
|
-
key:
|
|
156
|
+
key: 8,
|
|
150
157
|
prop: __props.config.fieldName,
|
|
151
158
|
required: __props.config.required,
|
|
152
159
|
error: __props.error,
|
|
@@ -195,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
195
202
|
};
|
|
196
203
|
}
|
|
197
204
|
});
|
|
198
|
-
const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
205
|
+
const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e00643b1"]]);
|
|
199
206
|
export {
|
|
200
207
|
_FormItem as default
|
|
201
208
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createDataSource } from "../datasource.mjs";
|
|
2
|
-
import { parseRouteParams } from "../parseRouteParams.mjs";
|
|
2
|
+
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";
|
|
@@ -92,17 +92,13 @@ async function handlePageGoBack(node, data, fields, context) {
|
|
|
92
92
|
};
|
|
93
93
|
if (config.showConfirm) {
|
|
94
94
|
try {
|
|
95
|
-
await ElMessageBox.confirm(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
draggable: true,
|
|
103
|
-
showClose: false
|
|
104
|
-
}
|
|
105
|
-
);
|
|
95
|
+
await ElMessageBox.confirm(config.confirmMessage, config.confirmTitle, {
|
|
96
|
+
confirmButtonText: "确定",
|
|
97
|
+
cancelButtonText: "取消",
|
|
98
|
+
type: "warning",
|
|
99
|
+
draggable: true,
|
|
100
|
+
showClose: false
|
|
101
|
+
});
|
|
106
102
|
} catch (error) {
|
|
107
103
|
return {
|
|
108
104
|
success: false,
|
|
@@ -198,18 +194,14 @@ async function handleConfirm(node, data, fields, context) {
|
|
|
198
194
|
cancelAction: basic.cancelAction || "stop"
|
|
199
195
|
};
|
|
200
196
|
try {
|
|
201
|
-
await ElMessageBox.confirm(
|
|
202
|
-
config.
|
|
203
|
-
config.
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
draggable: true,
|
|
210
|
-
showClose: false
|
|
211
|
-
}
|
|
212
|
-
);
|
|
197
|
+
await ElMessageBox.confirm(config.message, config.title, {
|
|
198
|
+
confirmButtonText: config.confirmText,
|
|
199
|
+
cancelButtonText: config.cancelText,
|
|
200
|
+
type: config.messageType,
|
|
201
|
+
showCancelButton: config.showCancel,
|
|
202
|
+
draggable: true,
|
|
203
|
+
showClose: false
|
|
204
|
+
});
|
|
213
205
|
if (config.confirmAction === "stop") {
|
|
214
206
|
return {
|
|
215
207
|
success: false,
|
|
@@ -296,7 +288,9 @@ async function handleTableChildRefresh(node, data, fields, context) {
|
|
|
296
288
|
const formComponent = (_a = context.components) == null ? void 0 : _a.form;
|
|
297
289
|
const getFormItemRefMethod = (_c = (_b = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.getFormItemRef;
|
|
298
290
|
if (typeof getFormItemRefMethod === "function") {
|
|
299
|
-
const subTableRef = getFormItemRefMethod(
|
|
291
|
+
const subTableRef = getFormItemRefMethod(
|
|
292
|
+
String(basic.selectSubTableFieldId)
|
|
293
|
+
);
|
|
300
294
|
context.components.table = {
|
|
301
295
|
$: {
|
|
302
296
|
exposed: {
|
|
@@ -323,7 +317,9 @@ async function handleTableChildSelection(node, data, fields, context) {
|
|
|
323
317
|
const setFormDataMethod = (_e = (_d = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _d.exposed) == null ? void 0 : _e.setFormData;
|
|
324
318
|
const getFormItemRefMethod = (_g = (_f = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _f.exposed) == null ? void 0 : _g.getFormItemRef;
|
|
325
319
|
if (typeof getFormItemRefMethod === "function") {
|
|
326
|
-
const subTableRef = getFormItemRefMethod(
|
|
320
|
+
const subTableRef = getFormItemRefMethod(
|
|
321
|
+
String(basic.selectSubTableFieldId)
|
|
322
|
+
);
|
|
327
323
|
const getSelectionMethod = (_h = subTableRef == null ? void 0 : subTableRef.subTableRef) == null ? void 0 : _h.getSelection;
|
|
328
324
|
if (typeof getSelectionMethod === "function") {
|
|
329
325
|
const rows = await getSelectionMethod();
|
|
@@ -447,7 +443,13 @@ async function handleFormSetValue(node, data, fields, context) {
|
|
|
447
443
|
}
|
|
448
444
|
const metadata = context.metadata || {};
|
|
449
445
|
const initSearchData = (metadata == null ? void 0 : metadata.initSearchData) || {};
|
|
450
|
-
const result = await handleApiCall(
|
|
446
|
+
const result = await handleApiCall(
|
|
447
|
+
node,
|
|
448
|
+
data,
|
|
449
|
+
fields,
|
|
450
|
+
context,
|
|
451
|
+
initSearchData
|
|
452
|
+
);
|
|
451
453
|
if (!result.success) {
|
|
452
454
|
return result;
|
|
453
455
|
}
|
|
@@ -627,6 +629,27 @@ async function handleDialog(node, data, fields, context) {
|
|
|
627
629
|
};
|
|
628
630
|
}
|
|
629
631
|
}
|
|
632
|
+
async function handleRiskSchDialog(node, data, fields, context) {
|
|
633
|
+
const basic = node.basic || {};
|
|
634
|
+
if (!(basic == null ? void 0 : basic.schNo)) {
|
|
635
|
+
console.error("风险拦截校验: 缺少 schNo 配置");
|
|
636
|
+
return;
|
|
637
|
+
}
|
|
638
|
+
if (!(basic == null ? void 0 : basic.busNo)) {
|
|
639
|
+
console.error("风险拦截校验: 缺少 busNo 配置");
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
const schNo = basic.schNo;
|
|
643
|
+
console.log("🚀 ~ handleRiskSchDialog ~ schNo:", schNo);
|
|
644
|
+
const paramList = parseRouteParams(basic == null ? void 0 : basic.params, data, fields);
|
|
645
|
+
console.log("🚀 ~ handleRiskSchDialog ~ paramList:", paramList);
|
|
646
|
+
const busNo = parseSingleParamValue(basic.busNo, data, fields);
|
|
647
|
+
console.log("🚀 ~ handleRiskSchDialog ~ busNo:", busNo);
|
|
648
|
+
return {
|
|
649
|
+
success: true,
|
|
650
|
+
message: "风险拦截校验通过"
|
|
651
|
+
};
|
|
652
|
+
}
|
|
630
653
|
async function handleUpload(node, data, fields, context) {
|
|
631
654
|
const basic = node.basic || {};
|
|
632
655
|
console.log("[EventFlow] 执行文件上传动作:", basic);
|
|
@@ -737,9 +760,10 @@ const defaultActionHandlers = {
|
|
|
737
760
|
"table-child-selection": handleTableChildSelection,
|
|
738
761
|
"form-setValue": handleFormSetValue,
|
|
739
762
|
"form-submit": handleFormSubmit,
|
|
740
|
-
|
|
763
|
+
custom: handleCustomAction,
|
|
741
764
|
"ui-dialog": handleDialog,
|
|
742
|
-
"ui-upload": handleUpload
|
|
765
|
+
"ui-upload": handleUpload,
|
|
766
|
+
riskSchDialog: handleRiskSchDialog
|
|
743
767
|
};
|
|
744
768
|
export {
|
|
745
769
|
defaultActionHandlers as default,
|
|
@@ -751,6 +775,7 @@ export {
|
|
|
751
775
|
handleMessage,
|
|
752
776
|
handlePageGoBack,
|
|
753
777
|
handlePageJump,
|
|
778
|
+
handleRiskSchDialog,
|
|
754
779
|
handleTableChildRefresh,
|
|
755
780
|
handleTableChildSelection,
|
|
756
781
|
handleTableRefresh,
|
|
@@ -58,8 +58,14 @@ const api = {
|
|
|
58
58
|
getProductConfig: () => {
|
|
59
59
|
return index.postForm(`${$servers.base}/design/getProductConfig`);
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
getModeNoList4Doc: () => {
|
|
62
62
|
return index.post(`${$servers.base}/docFileModeConfig/findList`, null, false);
|
|
63
|
+
},
|
|
64
|
+
getModeNoList4Cont: () => {
|
|
65
|
+
return index.post(`${$servers.base}/docCtrModeConfig/findList`, null, false);
|
|
66
|
+
},
|
|
67
|
+
findRiskSchByPopPage4Designer: (data) => {
|
|
68
|
+
return index.post(`${$servers.comm}/riskSch/findRiskSchByPopPage4Designer`, data);
|
|
63
69
|
}
|
|
64
70
|
};
|
|
65
71
|
exports.default = api;
|
|
@@ -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.vue2.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");
|
|
@@ -44,7 +44,7 @@ const _sfc_main = {
|
|
|
44
44
|
set: (val) => emit("update:modelValue", val)
|
|
45
45
|
});
|
|
46
46
|
const scenarioOptions = vue.ref([]);
|
|
47
|
-
index.default.
|
|
47
|
+
index.default.getModeNoList4Doc().then((data) => {
|
|
48
48
|
scenarioOptions.value = data.map((item) => ({
|
|
49
49
|
label: item.modeName,
|
|
50
50
|
value: item.modeNo
|
|
@@ -65,21 +65,19 @@ const _sfc_main = {
|
|
|
65
65
|
const _component_el_option = index$3.ElOption;
|
|
66
66
|
const _component_el_select = index$3.ElSelect;
|
|
67
67
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
68
|
-
params.value.length === 0 ? (vue.openBlock(), vue.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(scenarioOptions)), 1)
|
|
82
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
68
|
+
params.value.length === 0 ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
69
|
+
key: 0,
|
|
70
|
+
type: "primary",
|
|
71
|
+
size: "small",
|
|
72
|
+
icon: vue.unref(index$2.Plus),
|
|
73
|
+
link: "",
|
|
74
|
+
onClick: addParam
|
|
75
|
+
}, {
|
|
76
|
+
default: vue.withCtx(() => _cache[0] || (_cache[0] = [
|
|
77
|
+
vue.createTextVNode(" 新增要件参数 ")
|
|
78
|
+
])),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 8, ["icon"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
83
81
|
_cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "param-header" }, [
|
|
84
82
|
vue.createElementVNode("div", { class: "param-cell scenario-header" }, "业务场景"),
|
|
85
83
|
vue.createElementVNode("div", { class: "param-cell key-header" }, "业务主键"),
|
|
@@ -154,5 +152,5 @@ const _sfc_main = {
|
|
|
154
152
|
};
|
|
155
153
|
}
|
|
156
154
|
};
|
|
157
|
-
const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
155
|
+
const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4262b43c"]]);
|
|
158
156
|
exports.default = DocumentParam;
|
|
@@ -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.vue2.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");
|