@fecp/designer 5.4.15 → 5.4.17
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 +3 -3
- 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/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/components/Contract.vue.mjs +1 -1
- package/es/designer/src/packages/form/components/Document.vue.mjs +1 -1
- package/es/designer/src/packages/form/components/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +27 -12
- 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 +72 -53
- package/es/packages/vue/src/components/bus/contract/Contract.vue.mjs +7 -2
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
- 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/radio/Radio.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/select/Select.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.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 +3 -3
- 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/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/components/Contract.vue.js +1 -1
- package/lib/designer/src/packages/form/components/Document.vue.js +1 -1
- package/lib/designer/src/packages/form/components/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +27 -12
- 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 +72 -53
- package/lib/packages/vue/src/components/bus/contract/Contract.vue.js +7 -2
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
- 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/radio/Radio.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/select/Select.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +1 -1
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +53 -28
- package/package.json +1 -1
|
@@ -43,6 +43,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
43
43
|
...fieldsData,
|
|
44
44
|
...hiddenFields
|
|
45
45
|
]);
|
|
46
|
+
const contNo = parseSingleParamValue(props.config.contNo, formData.value, [
|
|
47
|
+
...fieldsData,
|
|
48
|
+
...hiddenFields
|
|
49
|
+
]);
|
|
46
50
|
const mode = computed(() => {
|
|
47
51
|
if (props.formMode == "query") {
|
|
48
52
|
return "view";
|
|
@@ -82,11 +86,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
82
86
|
(openBlock(), createBlock(resolveDynamicComponent(unref(currentComponent)), {
|
|
83
87
|
mode: unref(mode),
|
|
84
88
|
busNo: unref(busNo),
|
|
85
|
-
|
|
89
|
+
contNo: unref(contNo),
|
|
90
|
+
modeNo: __props.config.busSubject,
|
|
86
91
|
genType: __props.config.genType,
|
|
87
92
|
parmList: unref(parsedParams),
|
|
88
93
|
onLoaded: loaded
|
|
89
|
-
}, null, 40, ["mode", "busNo", "
|
|
94
|
+
}, null, 40, ["mode", "busNo", "contNo", "modeNo", "genType", "parmList"]))
|
|
90
95
|
]);
|
|
91
96
|
};
|
|
92
97
|
}
|
|
@@ -9,8 +9,8 @@ import { Form } from "../forms/form/index.mjs";
|
|
|
9
9
|
import { parseRouteParams } from "../../utils/parseRouteParams.mjs";
|
|
10
10
|
import { calculate } from "../../utils/formulajs/calculate.mjs";
|
|
11
11
|
import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
12
|
-
/* empty css */
|
|
13
12
|
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -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
|
};
|
|
@@ -3,8 +3,8 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { computed, getCurrentInstance, inject, createElementBlock, openBlock, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
|
|
6
|
-
/* empty css */
|
|
7
6
|
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { openDialog } from "../../dialog/index.mjs";
|
|
10
10
|
import api from "../../../api/index.mjs";
|
|
@@ -7,8 +7,8 @@ import "../../../../../node_modules/vxe-table/es/components.mjs";
|
|
|
7
7
|
import { CopyDocument as copy_document_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
8
8
|
import { checkFilterMatch } from "../../utils/parseFilterConfig.mjs";
|
|
9
9
|
import { removeEmptyValues } from "../../utils/common.mjs";
|
|
10
|
-
/* empty css */
|
|
11
10
|
/* empty css */
|
|
11
|
+
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
@@ -2,8 +2,8 @@ import { reactive } from "vue";
|
|
|
2
2
|
import { parseRouteParams } from "./parseRouteParams.mjs";
|
|
3
3
|
import "../../../../node_modules/element-plus/es/index.mjs";
|
|
4
4
|
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
5
|
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { ElLoading } from "../../../../node_modules/element-plus/es/components/loading/index.mjs";
|
|
9
9
|
import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
@@ -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
|
|
@@ -152,5 +152,5 @@ const _sfc_main = {
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
|
-
const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
155
|
+
const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4262b43c"]]);
|
|
156
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");
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
require("../../../node_modules/element-plus/es/index.js");
|
|
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
|
+
;/* empty css */
|
|
14
|
+
;/* empty css */
|
|
15
|
+
require("../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
|
|
16
|
+
;/* empty css */
|
|
17
|
+
;/* empty css */
|
|
18
|
+
;/* empty css */
|
|
19
|
+
;/* empty css */
|
|
20
|
+
const vue = require("vue");
|
|
21
|
+
const index$4 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
22
|
+
const index = require("../api/index.js");
|
|
23
|
+
;/* empty css */
|
|
24
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
25
|
+
const index$1 = require("../../../node_modules/element-plus/es/components/dialog/index.js");
|
|
26
|
+
const index$2 = require("../../../node_modules/element-plus/es/components/input/index.js");
|
|
27
|
+
const index$3 = require("../../../node_modules/element-plus/es/components/button/index.js");
|
|
28
|
+
const index$5 = require("../../../node_modules/element-plus/es/components/table/index.js");
|
|
29
|
+
const index$6 = require("../../../node_modules/element-plus/es/components/pagination/index.js");
|
|
30
|
+
const index$7 = require("../../../node_modules/element-plus/es/components/message/index.js");
|
|
31
|
+
const _hoisted_1 = { class: "search-bar" };
|
|
32
|
+
const _hoisted_2 = { class: "dialog-footer" };
|
|
33
|
+
const _sfc_main = {
|
|
34
|
+
__name: "RiskSchemeDialog",
|
|
35
|
+
props: {
|
|
36
|
+
modelValue: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
title: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "选择风险拦截方案"
|
|
43
|
+
},
|
|
44
|
+
width: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "50%"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
emits: ["update:modelValue", "confirm", "close"],
|
|
50
|
+
setup(__props, { emit: __emit }) {
|
|
51
|
+
const props = __props;
|
|
52
|
+
const emit = __emit;
|
|
53
|
+
const dialogVisible = vue.computed({
|
|
54
|
+
get: () => props.modelValue,
|
|
55
|
+
set: (val) => emit("update:modelValue", val)
|
|
56
|
+
});
|
|
57
|
+
const searchText = vue.ref("");
|
|
58
|
+
const schemeList = vue.ref([]);
|
|
59
|
+
const total = vue.ref(0);
|
|
60
|
+
const tableRef = vue.ref(null);
|
|
61
|
+
const selectedRows = vue.ref([]);
|
|
62
|
+
const pageInfo = vue.ref({
|
|
63
|
+
pageNo: 1,
|
|
64
|
+
pageSize: 10
|
|
65
|
+
});
|
|
66
|
+
vue.watch(
|
|
67
|
+
() => props.modelValue,
|
|
68
|
+
(val) => {
|
|
69
|
+
if (val) {
|
|
70
|
+
searchText.value = "";
|
|
71
|
+
pageInfo.value = {
|
|
72
|
+
pageNo: 1,
|
|
73
|
+
pageSize: 10
|
|
74
|
+
};
|
|
75
|
+
loadSchemeList();
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{ immediate: true }
|
|
79
|
+
);
|
|
80
|
+
async function loadSchemeList() {
|
|
81
|
+
try {
|
|
82
|
+
const params = {
|
|
83
|
+
pageNo: pageInfo.value.pageNo,
|
|
84
|
+
pageSize: pageInfo.value.pageSize
|
|
85
|
+
};
|
|
86
|
+
if (searchText.value) {
|
|
87
|
+
params.dynamicQuery = searchText.value;
|
|
88
|
+
}
|
|
89
|
+
const data = await index.default.findRiskSchByPopPage4Designer(params);
|
|
90
|
+
schemeList.value = data.records || data.list || [];
|
|
91
|
+
total.value = schemeList.value.length;
|
|
92
|
+
} catch (error) {
|
|
93
|
+
console.error("加载风险拦截方案列表失败:", error);
|
|
94
|
+
schemeList.value = [];
|
|
95
|
+
total.value = 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function handleSearch() {
|
|
99
|
+
pageInfo.value.pageNo = 1;
|
|
100
|
+
loadSchemeList();
|
|
101
|
+
}
|
|
102
|
+
function handleSelectionChange(rows) {
|
|
103
|
+
selectedRows.value = rows;
|
|
104
|
+
}
|
|
105
|
+
function handleSizeChange(size) {
|
|
106
|
+
pageInfo.value.pageSize = size;
|
|
107
|
+
pageInfo.value.pageNo = 1;
|
|
108
|
+
loadSchemeList();
|
|
109
|
+
}
|
|
110
|
+
function handlePageChange(page) {
|
|
111
|
+
pageInfo.value.pageNo = page;
|
|
112
|
+
loadSchemeList();
|
|
113
|
+
}
|
|
114
|
+
function closeDialog() {
|
|
115
|
+
dialogVisible.value = false;
|
|
116
|
+
emit("close");
|
|
117
|
+
}
|
|
118
|
+
function onConfirm() {
|
|
119
|
+
if (selectedRows.value.length === 0) {
|
|
120
|
+
index$7.ElMessage.warning("请先选择方案");
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
emit("confirm", {
|
|
124
|
+
rows: selectedRows.value
|
|
125
|
+
});
|
|
126
|
+
dialogVisible.value = false;
|
|
127
|
+
}
|
|
128
|
+
return (_ctx, _cache) => {
|
|
129
|
+
const _component_el_button = index$3.ElButton;
|
|
130
|
+
const _component_el_input = index$2.ElInput;
|
|
131
|
+
const _component_el_table_column = index$5.ElTableColumn;
|
|
132
|
+
const _component_el_table = index$5.ElTable;
|
|
133
|
+
const _component_el_pagination = index$6.ElPagination;
|
|
134
|
+
const _component_el_dialog = index$1.ElDialog;
|
|
135
|
+
return vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
136
|
+
modelValue: dialogVisible.value,
|
|
137
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dialogVisible.value = $event),
|
|
138
|
+
width: __props.width,
|
|
139
|
+
title: __props.title,
|
|
140
|
+
draggable: "",
|
|
141
|
+
overflow: "",
|
|
142
|
+
"append-to-body": "",
|
|
143
|
+
class: "fec-dev-designer-dialog"
|
|
144
|
+
}, {
|
|
145
|
+
footer: vue.withCtx(() => [
|
|
146
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
147
|
+
vue.createVNode(_component_el_button, {
|
|
148
|
+
onClick: closeDialog,
|
|
149
|
+
size: "default"
|
|
150
|
+
}, {
|
|
151
|
+
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
152
|
+
vue.createTextVNode("取消")
|
|
153
|
+
])),
|
|
154
|
+
_: 1
|
|
155
|
+
}),
|
|
156
|
+
vue.createVNode(_component_el_button, {
|
|
157
|
+
type: "primary",
|
|
158
|
+
onClick: onConfirm,
|
|
159
|
+
size: "default"
|
|
160
|
+
}, {
|
|
161
|
+
default: vue.withCtx(() => _cache[5] || (_cache[5] = [
|
|
162
|
+
vue.createTextVNode("确定")
|
|
163
|
+
])),
|
|
164
|
+
_: 1
|
|
165
|
+
})
|
|
166
|
+
])
|
|
167
|
+
]),
|
|
168
|
+
default: vue.withCtx(() => [
|
|
169
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
170
|
+
vue.createVNode(_component_el_input, {
|
|
171
|
+
modelValue: searchText.value,
|
|
172
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchText.value = $event),
|
|
173
|
+
placeholder: _ctx.searchPlaceholder || "搜索方案名称/方案编号",
|
|
174
|
+
clearable: "",
|
|
175
|
+
onClear: handleSearch,
|
|
176
|
+
onKeyup: vue.withKeys(handleSearch, ["enter"]),
|
|
177
|
+
style: { "width": "300px" },
|
|
178
|
+
size: "default"
|
|
179
|
+
}, {
|
|
180
|
+
append: vue.withCtx(() => [
|
|
181
|
+
vue.createVNode(_component_el_button, {
|
|
182
|
+
icon: vue.unref(index$4.Search),
|
|
183
|
+
onClick: handleSearch
|
|
184
|
+
}, null, 8, ["icon"])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["modelValue", "placeholder"])
|
|
188
|
+
]),
|
|
189
|
+
vue.createVNode(_component_el_table, {
|
|
190
|
+
ref_key: "tableRef",
|
|
191
|
+
ref: tableRef,
|
|
192
|
+
data: schemeList.value,
|
|
193
|
+
"max-height": "500",
|
|
194
|
+
onSelectionChange: handleSelectionChange,
|
|
195
|
+
style: { "width": "100%", "margin-top": "10px" },
|
|
196
|
+
size: "default"
|
|
197
|
+
}, {
|
|
198
|
+
default: vue.withCtx(() => [
|
|
199
|
+
vue.createVNode(_component_el_table_column, {
|
|
200
|
+
type: "selection",
|
|
201
|
+
width: "55"
|
|
202
|
+
}),
|
|
203
|
+
vue.createVNode(_component_el_table_column, {
|
|
204
|
+
prop: "schNo",
|
|
205
|
+
label: "方案编号",
|
|
206
|
+
"min-width": "200"
|
|
207
|
+
}),
|
|
208
|
+
vue.createVNode(_component_el_table_column, {
|
|
209
|
+
prop: "schName",
|
|
210
|
+
label: "方案名称",
|
|
211
|
+
"min-width": "200"
|
|
212
|
+
}),
|
|
213
|
+
vue.createVNode(_component_el_table_column, {
|
|
214
|
+
prop: "remark",
|
|
215
|
+
label: "备注",
|
|
216
|
+
"min-width": "200"
|
|
217
|
+
})
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["data"]),
|
|
221
|
+
vue.createVNode(_component_el_pagination, {
|
|
222
|
+
size: "small",
|
|
223
|
+
"current-page": pageInfo.value.pageNo,
|
|
224
|
+
"onUpdate:currentPage": _cache[1] || (_cache[1] = ($event) => pageInfo.value.pageNo = $event),
|
|
225
|
+
"page-size": pageInfo.value.pageSize,
|
|
226
|
+
"onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => pageInfo.value.pageSize = $event),
|
|
227
|
+
"page-sizes": [10, 20, 50, 100],
|
|
228
|
+
total: total.value,
|
|
229
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
230
|
+
onSizeChange: handleSizeChange,
|
|
231
|
+
onCurrentChange: handlePageChange,
|
|
232
|
+
style: { "margin-top": "20px", "justify-content": "flex-end" }
|
|
233
|
+
}, null, 8, ["current-page", "page-size", "total"])
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
}, 8, ["modelValue", "width", "title"]);
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
const RiskSchemeDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-7dd01cd4"]]);
|
|
241
|
+
exports.default = RiskSchemeDialog;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
require("../../../node_modules/element-plus/es/index.js");
|
|
5
|
+
const RiskSchemeDialog = require("./RiskSchemeDialog.vue2.js");
|
|
6
|
+
;/* empty css */
|
|
7
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
8
|
+
const index = require("../../../node_modules/element-plus/es/components/input-tag/index.js");
|
|
9
|
+
const _sfc_main = {
|
|
10
|
+
__name: "RiskSchemeSelector",
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: Array,
|
|
14
|
+
default: () => []
|
|
15
|
+
},
|
|
16
|
+
schNo: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
dialogTitle: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "风险拦截方案"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
emits: ["update:modelValue", "update:schNo", "confirm"],
|
|
26
|
+
setup(__props, { emit: __emit }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const emit = __emit;
|
|
29
|
+
const modelValue = vue.computed({
|
|
30
|
+
get: () => props.modelValue,
|
|
31
|
+
set: (val) => emit("update:modelValue", val)
|
|
32
|
+
});
|
|
33
|
+
const dialogVisible = vue.ref(false);
|
|
34
|
+
function openDialog() {
|
|
35
|
+
dialogVisible.value = true;
|
|
36
|
+
}
|
|
37
|
+
function handleDialogConfirm({ rows }) {
|
|
38
|
+
const schNames = rows.map((row) => row.schName);
|
|
39
|
+
const schNos = rows.map((row) => row.schNo).join(",");
|
|
40
|
+
modelValue.value = schNames;
|
|
41
|
+
emit("update:schNo", schNos);
|
|
42
|
+
emit("confirm", rows);
|
|
43
|
+
}
|
|
44
|
+
function handleDialogClose() {
|
|
45
|
+
}
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
48
|
+
vue.createVNode(vue.unref(index.ElInputTag), {
|
|
49
|
+
modelValue: modelValue.value,
|
|
50
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
51
|
+
placeholder: "请选择风险拦截方案",
|
|
52
|
+
readonly: "",
|
|
53
|
+
clearable: "",
|
|
54
|
+
onClick: openDialog
|
|
55
|
+
}, null, 8, ["modelValue"]),
|
|
56
|
+
vue.createVNode(RiskSchemeDialog.default, {
|
|
57
|
+
modelValue: dialogVisible.value,
|
|
58
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dialogVisible.value = $event),
|
|
59
|
+
title: __props.dialogTitle,
|
|
60
|
+
onConfirm: handleDialogConfirm,
|
|
61
|
+
onClose: handleDialogClose
|
|
62
|
+
}, null, 8, ["modelValue", "title"])
|
|
63
|
+
], 64);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const RiskSchemeSelector = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-87e02ca9"]]);
|
|
68
|
+
exports.default = RiskSchemeSelector;
|
|
@@ -251,5 +251,5 @@ const _sfc_main = {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
|
-
const TemplateDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
254
|
+
const TemplateDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2716f51c"]]);
|
|
255
255
|
exports.default = TemplateDialog;
|