@fecp/designer 5.4.8 → 5.4.11
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 +30 -7
- package/es/designer/src/assets/document.png.mjs +4 -0
- package/es/designer/src/components/DocumentParam.vue.mjs +158 -0
- package/es/designer/src/components/FieldMapping.vue2.mjs +1 -1
- package/es/designer/src/components/FieldSetMapping.vue2.mjs +1 -1
- package/es/designer/src/components/FileTypeSelect.vue.mjs +139 -0
- package/es/designer/src/components/OptionConfig.vue.mjs +39 -12
- package/es/designer/src/packages/advancedFilter/dialog.vue.mjs +2 -1
- package/es/designer/src/packages/eventFlow/dialog/action/Upload.vue2.mjs +19 -120
- package/es/designer/src/packages/form/aside/index.mjs +17 -1
- package/es/designer/src/packages/form/components/Document.vue.mjs +52 -0
- package/es/designer/src/packages/form/index.vue.mjs +25 -5
- package/es/designer/src/packages/form/property/document.vue.mjs +201 -0
- package/es/designer/src/packages/form/property/index.vue.mjs +5 -2
- package/es/designer.css +262 -157
- package/es/packages/vue/src/components/all.mjs +2 -0
- package/es/packages/vue/src/components/bus/document/Document.vue.mjs +133 -0
- package/es/packages/vue/src/components/bus/document/index.mjs +7 -0
- package/es/packages/vue/src/components/bus/index.mjs +3 -1
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +2 -2
- package/es/packages/vue/src/components/forms/checkbox/Checkbox.vue.mjs +17 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +3 -1
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +10 -3
- package/es/packages/vue/src/components/forms/radio/Radio.vue.mjs +17 -2
- package/es/packages/vue/src/components/forms/select/Select.vue.mjs +17 -2
- package/es/packages/vue/src/utils/common.mjs +20 -4
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/api/index.js +29 -6
- package/lib/designer/src/assets/document.png.js +4 -0
- package/lib/designer/src/components/DocumentParam.vue.js +158 -0
- package/lib/designer/src/components/FieldMapping.vue2.js +1 -1
- package/lib/designer/src/components/FieldSetMapping.vue2.js +1 -1
- package/lib/designer/src/components/FileTypeSelect.vue.js +139 -0
- package/lib/designer/src/components/OptionConfig.vue.js +38 -11
- package/lib/designer/src/packages/advancedFilter/dialog.vue.js +2 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/Upload.vue2.js +22 -123
- package/lib/designer/src/packages/form/aside/index.js +17 -1
- package/lib/designer/src/packages/form/components/Document.vue.js +52 -0
- package/lib/designer/src/packages/form/index.vue.js +25 -5
- package/lib/designer/src/packages/form/property/document.vue.js +201 -0
- package/lib/designer/src/packages/form/property/index.vue.js +5 -2
- package/lib/designer.css +262 -157
- package/lib/packages/vue/index.js +5 -5
- package/lib/packages/vue/src/components/all.js +8 -6
- package/lib/packages/vue/src/components/bus/document/Document.vue.js +133 -0
- package/lib/packages/vue/src/components/bus/document/index.js +7 -0
- package/lib/packages/vue/src/components/bus/index.js +2 -0
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +2 -2
- package/lib/packages/vue/src/components/forms/checkbox/Checkbox.vue.js +16 -1
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +3 -1
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +14 -7
- package/lib/packages/vue/src/components/forms/radio/Radio.vue.js +16 -1
- package/lib/packages/vue/src/components/forms/select/Select.vue.js +16 -1
- package/lib/packages/vue/src/utils/common.js +19 -3
- package/package.json +1 -1
|
@@ -0,0 +1,158 @@
|
|
|
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
|
+
const vue = require("vue");
|
|
13
|
+
const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
14
|
+
const ValueSelector = require("./ValueSelector.vue.js");
|
|
15
|
+
const index = require("../api/index.js");
|
|
16
|
+
;/* empty css */
|
|
17
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
18
|
+
const index$1 = require("../../../node_modules/element-plus/es/components/button/index.js");
|
|
19
|
+
const index$3 = require("../../../node_modules/element-plus/es/components/select/index.js");
|
|
20
|
+
const _hoisted_1 = { class: "essential-param-container" };
|
|
21
|
+
const _hoisted_2 = {
|
|
22
|
+
key: 1,
|
|
23
|
+
class: "param-table"
|
|
24
|
+
};
|
|
25
|
+
const _hoisted_3 = { class: "param-body" };
|
|
26
|
+
const _hoisted_4 = { class: "param-cell scenario-cell" };
|
|
27
|
+
const _hoisted_5 = { class: "param-cell key-cell" };
|
|
28
|
+
const _hoisted_6 = { class: "param-cell action-cell" };
|
|
29
|
+
const _hoisted_7 = { class: "param-footer" };
|
|
30
|
+
const _sfc_main = {
|
|
31
|
+
__name: "DocumentParam",
|
|
32
|
+
props: {
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: Array,
|
|
35
|
+
default: () => []
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
emits: ["update:modelValue"],
|
|
39
|
+
setup(__props, { emit: __emit }) {
|
|
40
|
+
const props = __props;
|
|
41
|
+
const emit = __emit;
|
|
42
|
+
const params = vue.computed({
|
|
43
|
+
get: () => props.modelValue,
|
|
44
|
+
set: (val) => emit("update:modelValue", val)
|
|
45
|
+
});
|
|
46
|
+
const scenarioOptions = vue.ref([]);
|
|
47
|
+
index.default.getModeNoList().then((data) => {
|
|
48
|
+
scenarioOptions.value = data.map((item) => ({
|
|
49
|
+
label: item.modeName,
|
|
50
|
+
value: item.modeNo
|
|
51
|
+
}));
|
|
52
|
+
});
|
|
53
|
+
function addParam() {
|
|
54
|
+
params.value.push({
|
|
55
|
+
id: Date.now(),
|
|
56
|
+
scenario: "",
|
|
57
|
+
businessKey: null
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function removeParam(index2) {
|
|
61
|
+
params.value.splice(index2, 1);
|
|
62
|
+
}
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
const _component_el_button = index$1.ElButton;
|
|
65
|
+
const _component_el_option = index$3.ElOption;
|
|
66
|
+
const _component_el_select = index$3.ElSelect;
|
|
67
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
68
|
+
params.value.length === 0 ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
69
|
+
vue.createVNode(_component_el_button, {
|
|
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"]),
|
|
81
|
+
vue.createTextVNode(" " + vue.toDisplayString(vue.unref(scenarioOptions)), 1)
|
|
82
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
83
|
+
_cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "param-header" }, [
|
|
84
|
+
vue.createElementVNode("div", { class: "param-cell scenario-header" }, "业务场景"),
|
|
85
|
+
vue.createElementVNode("div", { class: "param-cell key-header" }, "业务主键"),
|
|
86
|
+
vue.createElementVNode("div", {
|
|
87
|
+
class: "param-cell action-header",
|
|
88
|
+
style: { "width": "50px" }
|
|
89
|
+
})
|
|
90
|
+
], -1)),
|
|
91
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
92
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(params.value, (item, index2) => {
|
|
93
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
94
|
+
key: item.id,
|
|
95
|
+
class: "param-row"
|
|
96
|
+
}, [
|
|
97
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
98
|
+
vue.createVNode(_component_el_select, {
|
|
99
|
+
modelValue: item.scenario,
|
|
100
|
+
"onUpdate:modelValue": ($event) => item.scenario = $event,
|
|
101
|
+
placeholder: "选择业务场景",
|
|
102
|
+
size: "small",
|
|
103
|
+
style: { "width": "100%" },
|
|
104
|
+
clearable: ""
|
|
105
|
+
}, {
|
|
106
|
+
default: vue.withCtx(() => [
|
|
107
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(scenarioOptions), (scene) => {
|
|
108
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
109
|
+
key: scene.value,
|
|
110
|
+
label: scene.label,
|
|
111
|
+
value: scene.value
|
|
112
|
+
}, null, 8, ["label", "value"]);
|
|
113
|
+
}), 128))
|
|
114
|
+
]),
|
|
115
|
+
_: 2
|
|
116
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
117
|
+
]),
|
|
118
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
119
|
+
vue.createVNode(ValueSelector.default, {
|
|
120
|
+
modelValue: item.businessKey,
|
|
121
|
+
"onUpdate:modelValue": ($event) => item.businessKey = $event,
|
|
122
|
+
multiple: false,
|
|
123
|
+
placeholder: "选择业务主键"
|
|
124
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
125
|
+
]),
|
|
126
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
127
|
+
vue.createVNode(_component_el_button, {
|
|
128
|
+
type: "danger",
|
|
129
|
+
size: "small",
|
|
130
|
+
icon: vue.unref(index$2.Delete),
|
|
131
|
+
text: "",
|
|
132
|
+
onClick: ($event) => removeParam(index2)
|
|
133
|
+
}, null, 8, ["icon", "onClick"])
|
|
134
|
+
])
|
|
135
|
+
]);
|
|
136
|
+
}), 128))
|
|
137
|
+
]),
|
|
138
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
139
|
+
vue.createVNode(_component_el_button, {
|
|
140
|
+
type: "primary",
|
|
141
|
+
size: "small",
|
|
142
|
+
icon: vue.unref(index$2.Plus),
|
|
143
|
+
link: "",
|
|
144
|
+
onClick: addParam
|
|
145
|
+
}, {
|
|
146
|
+
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
147
|
+
vue.createTextVNode(" 新增要件参数 ")
|
|
148
|
+
])),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["icon"])
|
|
151
|
+
])
|
|
152
|
+
]))
|
|
153
|
+
]);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
const DocumentParam = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4767f242"]]);
|
|
158
|
+
exports.default = DocumentParam;
|
|
@@ -187,5 +187,5 @@ const _sfc_main = {
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
-
const FieldMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
190
|
+
const FieldMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-a09f49c9"]]);
|
|
191
191
|
exports.default = FieldMapping;
|
|
@@ -407,5 +407,5 @@ const _sfc_main = {
|
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
|
-
const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
410
|
+
const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-87a3bc4a"]]);
|
|
411
411
|
exports.default = FieldSetMapping;
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
const vue = require("vue");
|
|
8
|
+
const index = require("../../../node_modules/element-plus/es/components/checkbox/index.js");
|
|
9
|
+
const _hoisted_1 = { class: "accept-type-container" };
|
|
10
|
+
const _hoisted_2 = { class: "quick-options" };
|
|
11
|
+
const _hoisted_3 = { class: "type-category" };
|
|
12
|
+
const _hoisted_4 = { class: "type-category" };
|
|
13
|
+
const _hoisted_5 = { class: "type-category" };
|
|
14
|
+
const _sfc_main = {
|
|
15
|
+
__name: "FileTypeSelect",
|
|
16
|
+
props: {
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: () => []
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(__props, { emit: __emit }) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const emit = __emit;
|
|
26
|
+
const allFileTypes = [
|
|
27
|
+
"doc",
|
|
28
|
+
"xls",
|
|
29
|
+
"ppt",
|
|
30
|
+
"pdf",
|
|
31
|
+
"text",
|
|
32
|
+
"image",
|
|
33
|
+
"video",
|
|
34
|
+
"audio",
|
|
35
|
+
"zip"
|
|
36
|
+
];
|
|
37
|
+
const localAcceptType = vue.ref([...props.modelValue]);
|
|
38
|
+
vue.watch(
|
|
39
|
+
() => props.modelValue,
|
|
40
|
+
(newVal) => {
|
|
41
|
+
if (JSON.stringify(newVal) !== JSON.stringify(localAcceptType.value)) {
|
|
42
|
+
localAcceptType.value = [...newVal];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
vue.watch(
|
|
47
|
+
localAcceptType,
|
|
48
|
+
(newVal) => {
|
|
49
|
+
emit("update:modelValue", [...newVal]);
|
|
50
|
+
},
|
|
51
|
+
{ flush: "post" }
|
|
52
|
+
);
|
|
53
|
+
const isAllSelected = vue.computed(() => {
|
|
54
|
+
return allFileTypes.every((type) => {
|
|
55
|
+
var _a;
|
|
56
|
+
return (_a = localAcceptType.value) == null ? void 0 : _a.includes(type);
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
const toggleSelectAll = () => {
|
|
60
|
+
if (isAllSelected.value) {
|
|
61
|
+
localAcceptType.value = [];
|
|
62
|
+
} else {
|
|
63
|
+
localAcceptType.value = [...allFileTypes];
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
const _component_el_checkbox = index.ElCheckbox;
|
|
68
|
+
const _component_el_checkbox_group = index.ElCheckboxGroup;
|
|
69
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
70
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
71
|
+
vue.createVNode(_component_el_checkbox, {
|
|
72
|
+
"model-value": isAllSelected.value,
|
|
73
|
+
onChange: toggleSelectAll,
|
|
74
|
+
size: "small",
|
|
75
|
+
class: "select-all-checkbox"
|
|
76
|
+
}, {
|
|
77
|
+
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
78
|
+
vue.createTextVNode(" 全部 ")
|
|
79
|
+
])),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["model-value"])
|
|
82
|
+
]),
|
|
83
|
+
vue.createVNode(_component_el_checkbox_group, {
|
|
84
|
+
modelValue: localAcceptType.value,
|
|
85
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localAcceptType.value = $event),
|
|
86
|
+
size: "small",
|
|
87
|
+
class: "type-checkbox-group"
|
|
88
|
+
}, {
|
|
89
|
+
default: vue.withCtx(() => [
|
|
90
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
91
|
+
vue.createVNode(_component_el_checkbox, {
|
|
92
|
+
label: "Word文档",
|
|
93
|
+
value: "doc"
|
|
94
|
+
}),
|
|
95
|
+
vue.createVNode(_component_el_checkbox, {
|
|
96
|
+
label: "Excel文档",
|
|
97
|
+
value: "xls"
|
|
98
|
+
}),
|
|
99
|
+
vue.createVNode(_component_el_checkbox, {
|
|
100
|
+
label: "PowerPoint文档",
|
|
101
|
+
value: "ppt"
|
|
102
|
+
}),
|
|
103
|
+
vue.createVNode(_component_el_checkbox, {
|
|
104
|
+
label: "PDF文档",
|
|
105
|
+
value: "pdf"
|
|
106
|
+
}),
|
|
107
|
+
vue.createVNode(_component_el_checkbox, {
|
|
108
|
+
label: "文本文件",
|
|
109
|
+
value: "text"
|
|
110
|
+
})
|
|
111
|
+
]),
|
|
112
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
113
|
+
vue.createVNode(_component_el_checkbox, {
|
|
114
|
+
label: "图片",
|
|
115
|
+
value: "image"
|
|
116
|
+
}),
|
|
117
|
+
vue.createVNode(_component_el_checkbox, {
|
|
118
|
+
label: "视频",
|
|
119
|
+
value: "video"
|
|
120
|
+
}),
|
|
121
|
+
vue.createVNode(_component_el_checkbox, {
|
|
122
|
+
label: "音频",
|
|
123
|
+
value: "audio"
|
|
124
|
+
})
|
|
125
|
+
]),
|
|
126
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
127
|
+
vue.createVNode(_component_el_checkbox, {
|
|
128
|
+
label: "压缩包",
|
|
129
|
+
value: "zip"
|
|
130
|
+
})
|
|
131
|
+
])
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["modelValue"])
|
|
135
|
+
]);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
exports.default = _sfc_main;
|
|
@@ -14,6 +14,8 @@ const vue = require("vue");
|
|
|
14
14
|
const index$3 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
15
15
|
const vueDraggablePlus = require("../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js");
|
|
16
16
|
const DataSourceSelect = require("./DataSourceSelect.vue.js");
|
|
17
|
+
const FieldMapping = require("./FieldMapping.vue2.js");
|
|
18
|
+
const common = require("../packages/utils/common.js");
|
|
17
19
|
;/* empty css */
|
|
18
20
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
19
21
|
const index = require("../../../node_modules/element-plus/es/components/form/index.js");
|
|
@@ -27,6 +29,10 @@ const _hoisted_4 = ["onClick"];
|
|
|
27
29
|
const _hoisted_5 = { class: "data-source-fields" };
|
|
28
30
|
const _hoisted_6 = { class: "field-item" };
|
|
29
31
|
const _hoisted_7 = { class: "field-item" };
|
|
32
|
+
const _hoisted_8 = {
|
|
33
|
+
class: "field-item",
|
|
34
|
+
style: { "flex-direction": "column", "align-items": "start" }
|
|
35
|
+
};
|
|
30
36
|
const _sfc_main = {
|
|
31
37
|
__name: "OptionConfig",
|
|
32
38
|
props: {
|
|
@@ -54,21 +60,29 @@ const _sfc_main = {
|
|
|
54
60
|
dataSourceValue: "",
|
|
55
61
|
displayField: "",
|
|
56
62
|
valueField: "",
|
|
57
|
-
dictionaryValue: ""
|
|
63
|
+
dictionaryValue: "",
|
|
64
|
+
fieldMapping: []
|
|
58
65
|
})
|
|
59
66
|
}
|
|
60
67
|
},
|
|
61
68
|
emits: ["update:modelValue"],
|
|
62
69
|
setup(__props, { emit: __emit }) {
|
|
63
|
-
var _a, _b, _c, _d, _e, _f;
|
|
70
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
64
71
|
const props = __props;
|
|
65
72
|
const emit = __emit;
|
|
73
|
+
vue.computed(() => {
|
|
74
|
+
const displayFields = common.getEditConfigDataFields() || [];
|
|
75
|
+
const editConfigData = common.getEditConfigData();
|
|
76
|
+
const hiddenList = (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
|
|
77
|
+
return [...displayFields, ...hiddenList];
|
|
78
|
+
});
|
|
66
79
|
const optionSource = vue.ref(((_a = props.modelValue) == null ? void 0 : _a.optionSource) || "custom");
|
|
67
80
|
const options = vue.ref(((_b = props.modelValue) == null ? void 0 : _b.options) || []);
|
|
68
81
|
const dataSourceValue = vue.ref(((_c = props.modelValue) == null ? void 0 : _c.dataSourceValue) || "");
|
|
69
82
|
const displayField = vue.ref(((_d = props.modelValue) == null ? void 0 : _d.displayField) || "");
|
|
70
83
|
const valueField = vue.ref(((_e = props.modelValue) == null ? void 0 : _e.valueField) || "");
|
|
71
84
|
const dictionaryValue = vue.ref(((_f = props.modelValue) == null ? void 0 : _f.dictionaryValue) || "");
|
|
85
|
+
const fieldMapping = vue.ref(((_g = props.modelValue) == null ? void 0 : _g.fieldMapping) || []);
|
|
72
86
|
const isUpdatingFromProps = vue.ref(false);
|
|
73
87
|
vue.watch(
|
|
74
88
|
() => props.modelValue,
|
|
@@ -80,6 +94,7 @@ const _sfc_main = {
|
|
|
80
94
|
displayField.value = newVal.displayField || "";
|
|
81
95
|
valueField.value = newVal.valueField || "";
|
|
82
96
|
dictionaryValue.value = newVal.dictionaryValue || "";
|
|
97
|
+
fieldMapping.value = newVal.fieldMapping || [];
|
|
83
98
|
}
|
|
84
99
|
},
|
|
85
100
|
{ deep: true }
|
|
@@ -92,7 +107,8 @@ const _sfc_main = {
|
|
|
92
107
|
dataSourceValue: dataSourceValue.value,
|
|
93
108
|
displayField: displayField.value,
|
|
94
109
|
valueField: valueField.value,
|
|
95
|
-
dictionaryValue: dictionaryValue.value
|
|
110
|
+
dictionaryValue: dictionaryValue.value,
|
|
111
|
+
fieldMapping: fieldMapping.value
|
|
96
112
|
};
|
|
97
113
|
emit("update:modelValue", data);
|
|
98
114
|
vue.nextTick(() => {
|
|
@@ -106,7 +122,8 @@ const _sfc_main = {
|
|
|
106
122
|
dataSourceValue,
|
|
107
123
|
displayField,
|
|
108
124
|
valueField,
|
|
109
|
-
dictionaryValue
|
|
125
|
+
dictionaryValue,
|
|
126
|
+
fieldMapping
|
|
110
127
|
],
|
|
111
128
|
updateParent,
|
|
112
129
|
{ deep: true, immediate: true }
|
|
@@ -162,9 +179,9 @@ const _sfc_main = {
|
|
|
162
179
|
default: vue.withCtx(() => [
|
|
163
180
|
vue.createElementVNode("div", _hoisted_1, [
|
|
164
181
|
vue.createElementVNode("div", _hoisted_2, [
|
|
165
|
-
_cache[
|
|
166
|
-
_cache[
|
|
167
|
-
_cache[
|
|
182
|
+
_cache[7] || (_cache[7] = vue.createElementVNode("span", null, null, -1)),
|
|
183
|
+
_cache[8] || (_cache[8] = vue.createElementVNode("span", { class: "header-label" }, "显示值", -1)),
|
|
184
|
+
_cache[9] || (_cache[9] = vue.createElementVNode("span", { class: "header-label" }, "真实值", -1)),
|
|
168
185
|
vue.createElementVNode("div", {
|
|
169
186
|
class: "icon-btn add-btn",
|
|
170
187
|
onClick: handleAddOption
|
|
@@ -238,7 +255,7 @@ const _sfc_main = {
|
|
|
238
255
|
}),
|
|
239
256
|
vue.createElementVNode("div", _hoisted_5, [
|
|
240
257
|
vue.createElementVNode("div", _hoisted_6, [
|
|
241
|
-
_cache[
|
|
258
|
+
_cache[10] || (_cache[10] = vue.createElementVNode("span", { class: "field-label" }, "显示字段", -1)),
|
|
242
259
|
vue.createVNode(_component_el_input, {
|
|
243
260
|
modelValue: vue.unref(displayField),
|
|
244
261
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(displayField) ? displayField.value = $event : null),
|
|
@@ -246,19 +263,29 @@ const _sfc_main = {
|
|
|
246
263
|
}, null, 8, ["modelValue"])
|
|
247
264
|
]),
|
|
248
265
|
vue.createElementVNode("div", _hoisted_7, [
|
|
249
|
-
_cache[
|
|
266
|
+
_cache[11] || (_cache[11] = vue.createElementVNode("span", { class: "field-label" }, "值字段", -1)),
|
|
250
267
|
vue.createVNode(_component_el_input, {
|
|
251
268
|
modelValue: vue.unref(valueField),
|
|
252
269
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(valueField) ? valueField.value = $event : null),
|
|
253
270
|
placeholder: "如:optCode"
|
|
254
271
|
}, null, 8, ["modelValue"])
|
|
272
|
+
]),
|
|
273
|
+
vue.createElementVNode("div", _hoisted_8, [
|
|
274
|
+
_cache[12] || (_cache[12] = vue.createElementVNode("span", {
|
|
275
|
+
class: "field-label",
|
|
276
|
+
style: { "width": "auto" }
|
|
277
|
+
}, "选中数据映射表单字段", -1)),
|
|
278
|
+
vue.createVNode(FieldMapping.default, {
|
|
279
|
+
modelValue: vue.unref(fieldMapping),
|
|
280
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(fieldMapping) ? fieldMapping.value = $event : null)
|
|
281
|
+
}, null, 8, ["modelValue"])
|
|
255
282
|
])
|
|
256
283
|
])
|
|
257
284
|
], 64)) : vue.unref(optionSource) === "dictionary" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, { key: 2 }, {
|
|
258
285
|
default: vue.withCtx(() => [
|
|
259
286
|
vue.createVNode(_component_el_input, {
|
|
260
287
|
modelValue: vue.unref(dictionaryValue),
|
|
261
|
-
"onUpdate:modelValue": _cache[
|
|
288
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.isRef(dictionaryValue) ? dictionaryValue.value = $event : null),
|
|
262
289
|
placeholder: "keyName"
|
|
263
290
|
}, null, 8, ["modelValue"])
|
|
264
291
|
]),
|
|
@@ -268,5 +295,5 @@ const _sfc_main = {
|
|
|
268
295
|
};
|
|
269
296
|
}
|
|
270
297
|
};
|
|
271
|
-
const OptionConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
298
|
+
const OptionConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-fd4c229c"]]);
|
|
272
299
|
exports.default = OptionConfig;
|
|
@@ -59,6 +59,7 @@ const _sfc_main = {
|
|
|
59
59
|
draggable: "",
|
|
60
60
|
overflow: "",
|
|
61
61
|
"append-to-body": "",
|
|
62
|
+
"close-on-click-modal": false,
|
|
62
63
|
class: "fec-dev-designer-dialog"
|
|
63
64
|
}, {
|
|
64
65
|
footer: vue.withCtx(() => [
|
|
@@ -94,5 +95,5 @@ const _sfc_main = {
|
|
|
94
95
|
};
|
|
95
96
|
}
|
|
96
97
|
};
|
|
97
|
-
const AdvancedFilterDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
98
|
+
const AdvancedFilterDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-9741f10d"]]);
|
|
98
99
|
exports.default = AdvancedFilterDialog;
|
|
@@ -5,23 +5,16 @@ require("../../../../../../node_modules/element-plus/es/index.js");
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
7
|
;/* empty css */
|
|
8
|
-
;/* empty css */
|
|
9
|
-
;/* empty css */
|
|
10
8
|
;/* empty css */
|
|
11
9
|
const vue = require("vue");
|
|
12
10
|
const DataSourceSelect = require("../../../../components/DataSourceSelect.vue.js");
|
|
11
|
+
const FileTypeSelect = require("../../../../components/FileTypeSelect.vue.js");
|
|
13
12
|
;/* empty css */
|
|
14
13
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
15
14
|
const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
16
|
-
const index$1 = require("../../../../../../node_modules/element-plus/es/components/
|
|
17
|
-
const index$2 = require("../../../../../../node_modules/element-plus/es/components/
|
|
18
|
-
const
|
|
19
|
-
const _hoisted_1 = { class: "accept-type-container" };
|
|
20
|
-
const _hoisted_2 = { class: "quick-options" };
|
|
21
|
-
const _hoisted_3 = { class: "type-category" };
|
|
22
|
-
const _hoisted_4 = { class: "type-category" };
|
|
23
|
-
const _hoisted_5 = { class: "type-category" };
|
|
24
|
-
const _hoisted_6 = { class: "desc-content" };
|
|
15
|
+
const index$1 = require("../../../../../../node_modules/element-plus/es/components/input-number/index.js");
|
|
16
|
+
const index$2 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");
|
|
17
|
+
const _hoisted_1 = { class: "desc-content" };
|
|
25
18
|
const _sfc_main = {
|
|
26
19
|
__name: "Upload",
|
|
27
20
|
props: {
|
|
@@ -29,136 +22,42 @@ const _sfc_main = {
|
|
|
29
22
|
},
|
|
30
23
|
setup(__props) {
|
|
31
24
|
const props = __props;
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"ppt",
|
|
36
|
-
"pdf",
|
|
37
|
-
"text",
|
|
38
|
-
"image",
|
|
39
|
-
"video",
|
|
40
|
-
"audio",
|
|
41
|
-
"zip"
|
|
42
|
-
]);
|
|
43
|
-
const isAllSelected = vue.computed(() => {
|
|
44
|
-
return allFileTypes.value.every(
|
|
45
|
-
(type) => {
|
|
46
|
-
var _a;
|
|
47
|
-
return (_a = formData.value.acceptType) == null ? void 0 : _a.includes(type);
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
});
|
|
51
|
-
const toggleSelectAll = () => {
|
|
52
|
-
if (isAllSelected.value) {
|
|
53
|
-
formData.value.acceptType = [];
|
|
54
|
-
} else {
|
|
55
|
-
formData.value.acceptType = [...allFileTypes.value];
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const formData = vue.ref(props.formData);
|
|
59
|
-
if (!formData.value.acceptType) {
|
|
60
|
-
formData.value.acceptType = [];
|
|
25
|
+
const formData = props.formData;
|
|
26
|
+
if (!formData.acceptType) {
|
|
27
|
+
formData.acceptType = [];
|
|
61
28
|
}
|
|
62
29
|
return (_ctx, _cache) => {
|
|
63
30
|
const _component_el_form_item = index.ElFormItem;
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
const _component_el_input_number = index$2.ElInputNumber;
|
|
67
|
-
const _component_el_switch = index$3.ElSwitch;
|
|
31
|
+
const _component_el_input_number = index$1.ElInputNumber;
|
|
32
|
+
const _component_el_switch = index$2.ElSwitch;
|
|
68
33
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
69
34
|
vue.createVNode(_component_el_form_item, { label: "选择数据源" }, {
|
|
70
35
|
default: vue.withCtx(() => [
|
|
71
36
|
vue.createVNode(DataSourceSelect.default, {
|
|
72
|
-
modelValue: formData.
|
|
73
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.
|
|
37
|
+
modelValue: vue.unref(formData).dataSourceId,
|
|
38
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(formData).dataSourceId = $event)
|
|
74
39
|
}, null, 8, ["modelValue"])
|
|
75
40
|
]),
|
|
76
41
|
_: 1
|
|
77
42
|
}),
|
|
78
43
|
vue.createVNode(_component_el_form_item, { label: "允许上传的文件类型" }, {
|
|
79
44
|
default: vue.withCtx(() => [
|
|
80
|
-
vue.
|
|
81
|
-
vue.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
onChange: toggleSelectAll,
|
|
85
|
-
size: "small",
|
|
86
|
-
class: "select-all-checkbox"
|
|
87
|
-
}, {
|
|
88
|
-
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
89
|
-
vue.createTextVNode(" 全部 ")
|
|
90
|
-
])),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["model-value"])
|
|
93
|
-
]),
|
|
94
|
-
vue.createVNode(_component_el_checkbox_group, {
|
|
95
|
-
modelValue: formData.value.acceptType,
|
|
96
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formData.value.acceptType = $event),
|
|
97
|
-
size: "small",
|
|
98
|
-
class: "type-checkbox-group"
|
|
99
|
-
}, {
|
|
100
|
-
default: vue.withCtx(() => [
|
|
101
|
-
vue.createElementVNode("div", _hoisted_3, [
|
|
102
|
-
_cache[5] || (_cache[5] = vue.createElementVNode("div", { class: "category-title" }, "文档类", -1)),
|
|
103
|
-
vue.createVNode(_component_el_checkbox, {
|
|
104
|
-
label: "Word文档",
|
|
105
|
-
value: "doc"
|
|
106
|
-
}),
|
|
107
|
-
vue.createVNode(_component_el_checkbox, {
|
|
108
|
-
label: "Excel文档",
|
|
109
|
-
value: "xls"
|
|
110
|
-
}),
|
|
111
|
-
vue.createVNode(_component_el_checkbox, {
|
|
112
|
-
label: "PowerPoint文档",
|
|
113
|
-
value: "ppt"
|
|
114
|
-
}),
|
|
115
|
-
vue.createVNode(_component_el_checkbox, {
|
|
116
|
-
label: "PDF文档",
|
|
117
|
-
value: "pdf"
|
|
118
|
-
}),
|
|
119
|
-
vue.createVNode(_component_el_checkbox, {
|
|
120
|
-
label: "文本文件",
|
|
121
|
-
value: "text"
|
|
122
|
-
})
|
|
123
|
-
]),
|
|
124
|
-
vue.createElementVNode("div", _hoisted_4, [
|
|
125
|
-
_cache[6] || (_cache[6] = vue.createElementVNode("div", { class: "category-title" }, "媒体类", -1)),
|
|
126
|
-
vue.createVNode(_component_el_checkbox, {
|
|
127
|
-
label: "图片",
|
|
128
|
-
value: "image"
|
|
129
|
-
}),
|
|
130
|
-
vue.createVNode(_component_el_checkbox, {
|
|
131
|
-
label: "视频",
|
|
132
|
-
value: "video"
|
|
133
|
-
}),
|
|
134
|
-
vue.createVNode(_component_el_checkbox, {
|
|
135
|
-
label: "音频",
|
|
136
|
-
value: "audio"
|
|
137
|
-
})
|
|
138
|
-
]),
|
|
139
|
-
vue.createElementVNode("div", _hoisted_5, [
|
|
140
|
-
_cache[7] || (_cache[7] = vue.createElementVNode("div", { class: "category-title" }, "其他", -1)),
|
|
141
|
-
vue.createVNode(_component_el_checkbox, {
|
|
142
|
-
label: "压缩包",
|
|
143
|
-
value: "zip"
|
|
144
|
-
})
|
|
145
|
-
])
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["modelValue"])
|
|
149
|
-
])
|
|
45
|
+
vue.createVNode(FileTypeSelect.default, {
|
|
46
|
+
modelValue: vue.unref(formData).acceptType,
|
|
47
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(formData).acceptType = $event)
|
|
48
|
+
}, null, 8, ["modelValue"])
|
|
150
49
|
]),
|
|
151
50
|
_: 1
|
|
152
51
|
}),
|
|
153
52
|
vue.createVNode(_component_el_form_item, { label: "文件大小限制" }, {
|
|
154
53
|
default: vue.withCtx(() => [
|
|
155
|
-
vue.createElementVNode("div",
|
|
54
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
156
55
|
vue.createVNode(_component_el_input_number, {
|
|
157
|
-
modelValue: formData.
|
|
158
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formData.
|
|
56
|
+
modelValue: vue.unref(formData).maxSize,
|
|
57
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(formData).maxSize = $event),
|
|
159
58
|
min: 0
|
|
160
59
|
}, null, 8, ["modelValue"]),
|
|
161
|
-
_cache[
|
|
60
|
+
_cache[4] || (_cache[4] = vue.createElementVNode("div", { class: "condition-desc" }, "单位 MB, 填0不限制。", -1))
|
|
162
61
|
])
|
|
163
62
|
]),
|
|
164
63
|
_: 1
|
|
@@ -166,8 +65,8 @@ const _sfc_main = {
|
|
|
166
65
|
vue.createVNode(_component_el_form_item, { label: "允许多选" }, {
|
|
167
66
|
default: vue.withCtx(() => [
|
|
168
67
|
vue.createVNode(_component_el_switch, {
|
|
169
|
-
modelValue: formData.
|
|
170
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => formData.
|
|
68
|
+
modelValue: vue.unref(formData).multipleUpload,
|
|
69
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.unref(formData).multipleUpload = $event)
|
|
171
70
|
}, null, 8, ["modelValue"])
|
|
172
71
|
]),
|
|
173
72
|
_: 1
|
|
@@ -176,5 +75,5 @@ const _sfc_main = {
|
|
|
176
75
|
};
|
|
177
76
|
}
|
|
178
77
|
};
|
|
179
|
-
const Upload = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
78
|
+
const Upload = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b73022da"]]);
|
|
180
79
|
exports.default = Upload;
|