@fecp/designer 5.2.13 → 5.3.1
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.css +160 -118
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/api/index.mjs +3 -0
- package/es/packages/designer/src/components/FieldSetMapping.vue2.mjs +2 -1
- package/es/packages/designer/src/components/ValueSelector.vue2.mjs +2 -2
- package/es/packages/designer/src/layout/header/index.vue.mjs +14 -3
- package/es/packages/designer/src/packages/dataSource/dataSource.vue.mjs +3 -3
- package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +1 -1
- package/es/packages/designer/src/packages/form/headerBtn.vue.mjs +40 -21
- package/es/packages/designer/src/packages/prod/index.vue.mjs +516 -0
- package/es/packages/designer/src/packages/prod/useProdDialog.mjs +16 -0
- package/es/packages/vue/src/api/index.mjs +3 -0
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +3 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +178 -10
- package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +9 -2
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +64 -2
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +6 -2
- package/es/packages/vue/src/components/table/Table.vue.mjs +9 -8
- 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/lib/designer.css +160 -118
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/api/index.js +3 -0
- package/lib/packages/designer/src/components/FieldSetMapping.vue2.js +2 -1
- package/lib/packages/designer/src/components/ValueSelector.vue2.js +2 -2
- package/lib/packages/designer/src/layout/header/index.vue.js +14 -3
- package/lib/packages/designer/src/packages/dataSource/dataSource.vue.js +3 -3
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +1 -1
- package/lib/packages/designer/src/packages/form/headerBtn.vue.js +39 -20
- package/lib/packages/designer/src/packages/prod/index.vue.js +516 -0
- package/lib/packages/designer/src/packages/prod/useProdDialog.js +16 -0
- package/lib/packages/vue/src/api/index.js +3 -0
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +3 -2
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +178 -10
- package/lib/packages/vue/src/components/forms/h2/H2.vue.js +9 -2
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +64 -2
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +6 -2
- package/lib/packages/vue/src/components/table/Table.vue.js +9 -8
- 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/package.json +1 -1
|
@@ -34,6 +34,9 @@ const api = {
|
|
|
34
34
|
},
|
|
35
35
|
deleteTemplateDialog: (id) => {
|
|
36
36
|
return index.postForm(`${$servers.base}/template/sysTemplateDialog/deleteById`, { id });
|
|
37
|
+
},
|
|
38
|
+
getProductConfig: () => {
|
|
39
|
+
return index.postForm(`${$servers.base}/design/getProductConfig`);
|
|
37
40
|
}
|
|
38
41
|
};
|
|
39
42
|
exports.default = api;
|
|
@@ -94,6 +94,7 @@ const _sfc_main = {
|
|
|
94
94
|
const hiddenFields = vue.computed(() => {
|
|
95
95
|
const editConfigData = common.getEditConfigData();
|
|
96
96
|
const fields = (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
|
|
97
|
+
debugger;
|
|
97
98
|
return fields.map((item) => ({
|
|
98
99
|
id: item == null ? void 0 : item.id,
|
|
99
100
|
fieldId: item == null ? void 0 : item.id,
|
|
@@ -403,5 +404,5 @@ const _sfc_main = {
|
|
|
403
404
|
};
|
|
404
405
|
}
|
|
405
406
|
};
|
|
406
|
-
const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
407
|
+
const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e05b323a"]]);
|
|
407
408
|
exports.default = FieldSetMapping;
|
|
@@ -14,7 +14,7 @@ const _sfc_main = {
|
|
|
14
14
|
// 单选:{ type: 'field', value: '字段ID' }
|
|
15
15
|
// 多选:[{ type: 'field', value: '字段ID1' }, { type: 'field', value: '字段ID2' }]
|
|
16
16
|
modelValue: {
|
|
17
|
-
type: [Object, Array],
|
|
17
|
+
type: [Object, Array, null, void 0],
|
|
18
18
|
default: () => null
|
|
19
19
|
},
|
|
20
20
|
placeholder: {
|
|
@@ -187,5 +187,5 @@ const _sfc_main = {
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
-
const ValueSelector = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
190
|
+
const ValueSelector = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5a61ffc7"]]);
|
|
191
191
|
exports.default = ValueSelector;
|
|
@@ -112,7 +112,6 @@ const _sfc_main = {
|
|
|
112
112
|
}
|
|
113
113
|
function handleTemplateSelect({ row, context }) {
|
|
114
114
|
var _a, _b;
|
|
115
|
-
console.log("importText", row, context);
|
|
116
115
|
editConfigData.value.fieldsData.splice(0);
|
|
117
116
|
if (!editConfigData.value.hiddenFields) {
|
|
118
117
|
editConfigData.value.hiddenFields = [];
|
|
@@ -125,7 +124,7 @@ const _sfc_main = {
|
|
|
125
124
|
context.formItem.forEach((item, index2) => {
|
|
126
125
|
setTimeout(() => {
|
|
127
126
|
var _a2;
|
|
128
|
-
const id =
|
|
127
|
+
const id = generateId();
|
|
129
128
|
const x = index2 % columns;
|
|
130
129
|
const y = Math.floor(index2 / columns);
|
|
131
130
|
if (item.fieldType != "empty" && item.fieldName != "" && item.label != "") {
|
|
@@ -203,7 +202,7 @@ const _sfc_main = {
|
|
|
203
202
|
}
|
|
204
203
|
context.columns.forEach((item, index2) => {
|
|
205
204
|
setTimeout(() => {
|
|
206
|
-
const id =
|
|
205
|
+
const id = generateId();
|
|
207
206
|
if (item.isShow) {
|
|
208
207
|
const custom = {};
|
|
209
208
|
let fieldType = item.fieldType;
|
|
@@ -263,6 +262,18 @@ const _sfc_main = {
|
|
|
263
262
|
}
|
|
264
263
|
index$9.ElMessage.success(`已选择模板: ${row.templateName}`);
|
|
265
264
|
}
|
|
265
|
+
let lastTime = 0;
|
|
266
|
+
let sequence = 0;
|
|
267
|
+
function generateId() {
|
|
268
|
+
const now = Date.now();
|
|
269
|
+
if (now === lastTime) {
|
|
270
|
+
sequence++;
|
|
271
|
+
} else {
|
|
272
|
+
sequence = 0;
|
|
273
|
+
lastTime = now;
|
|
274
|
+
}
|
|
275
|
+
return `${now}${sequence}`;
|
|
276
|
+
}
|
|
266
277
|
function handleTemplateDialogClose() {
|
|
267
278
|
}
|
|
268
279
|
return (_ctx, _cache) => {
|
|
@@ -241,13 +241,13 @@ const _sfc_main = {
|
|
|
241
241
|
default: vue.withCtx(() => [
|
|
242
242
|
vue.createVNode(_component_el_radio, { value: "json" }, {
|
|
243
243
|
default: vue.withCtx(() => _cache[8] || (_cache[8] = [
|
|
244
|
-
vue.createTextVNode("JSON")
|
|
244
|
+
vue.createTextVNode("JSON(RequestBody)")
|
|
245
245
|
])),
|
|
246
246
|
_: 1
|
|
247
247
|
}),
|
|
248
248
|
vue.createVNode(_component_el_radio, { value: "formData" }, {
|
|
249
249
|
default: vue.withCtx(() => _cache[9] || (_cache[9] = [
|
|
250
|
-
vue.createTextVNode("FormData")
|
|
250
|
+
vue.createTextVNode("FormData(RequestParam)")
|
|
251
251
|
])),
|
|
252
252
|
_: 1
|
|
253
253
|
})
|
|
@@ -361,5 +361,5 @@ const _sfc_main = {
|
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
|
-
const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
364
|
+
const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-a4f99247"]]);
|
|
365
365
|
exports.default = DataSource;
|
|
@@ -45,7 +45,7 @@ const menuData = [
|
|
|
45
45
|
{ index: "ui-confirm", label: "确认弹窗", desc: "显示确认对话框", component: Confirm.default, default: {
|
|
46
46
|
messageType: "warning",
|
|
47
47
|
title: "确认操作",
|
|
48
|
-
message: "
|
|
48
|
+
message: "此操作将永久删除该记录, 是否继续?",
|
|
49
49
|
confirmText: "确定",
|
|
50
50
|
cancelText: "取消",
|
|
51
51
|
showCancel: true,
|
|
@@ -10,6 +10,7 @@ const useDataLinkageDialog = require("../dataLinkage/useDataLinkageDialog.js");
|
|
|
10
10
|
const useJsonDataDrawer = require("../../components/useJsonDataDrawer.js");
|
|
11
11
|
const useDialogDialog = require("../dialog/useDialogDialog.js");
|
|
12
12
|
const useDialogGlobalDialog = require("../dialogGlobal/useDialogGlobalDialog.js");
|
|
13
|
+
const useProdDialog = require("../prod/useProdDialog.js");
|
|
13
14
|
const index$1 = require("../../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.2_vue@3.5.13_typescript@5.7.3_/node_modules/@element-plus/icons-vue/dist/index.js");
|
|
14
15
|
const common = require("../utils/common.js");
|
|
15
16
|
;/* empty css */
|
|
@@ -46,15 +47,33 @@ const _sfc_main = {
|
|
|
46
47
|
openDialogGlobalDialog,
|
|
47
48
|
DialogGlobalDialog
|
|
48
49
|
} = useDialogGlobalDialog.useDialogGlobalDialog();
|
|
50
|
+
const { prodDialogVisible, openProdDialog, ProdDialog } = useProdDialog.useProdDialog();
|
|
49
51
|
vue.computed(() => {
|
|
50
52
|
return common.getEditConfigData();
|
|
51
53
|
});
|
|
52
54
|
return (_ctx, _cache) => {
|
|
55
|
+
const _component_Wallet = vue.resolveComponent("Wallet");
|
|
53
56
|
const _component_el_icon = index.ElIcon;
|
|
54
57
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
55
58
|
vue.createElementVNode("div", {
|
|
56
59
|
class: "btn-item",
|
|
57
|
-
onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(
|
|
60
|
+
onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(openProdDialog) && vue.unref(openProdDialog)(...args))
|
|
61
|
+
}, [
|
|
62
|
+
vue.createVNode(_component_el_icon, null, {
|
|
63
|
+
default: vue.withCtx(() => [
|
|
64
|
+
vue.createVNode(_component_Wallet)
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}),
|
|
68
|
+
_cache[15] || (_cache[15] = vue.createElementVNode("span", null, "产品配置", -1))
|
|
69
|
+
]),
|
|
70
|
+
vue.createVNode(vue.unref(ProdDialog), {
|
|
71
|
+
modelValue: vue.unref(prodDialogVisible),
|
|
72
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(prodDialogVisible) ? prodDialogVisible.value = $event : null)
|
|
73
|
+
}, null, 8, ["modelValue"]),
|
|
74
|
+
vue.createElementVNode("div", {
|
|
75
|
+
class: "btn-item",
|
|
76
|
+
onClick: _cache[2] || (_cache[2] = (...args) => vue.unref(openDataSourceDialog) && vue.unref(openDataSourceDialog)(...args))
|
|
58
77
|
}, [
|
|
59
78
|
vue.createVNode(_component_el_icon, null, {
|
|
60
79
|
default: vue.withCtx(() => [
|
|
@@ -62,15 +81,15 @@ const _sfc_main = {
|
|
|
62
81
|
]),
|
|
63
82
|
_: 1
|
|
64
83
|
}),
|
|
65
|
-
_cache[
|
|
84
|
+
_cache[16] || (_cache[16] = vue.createElementVNode("span", null, "数据源", -1))
|
|
66
85
|
]),
|
|
67
86
|
vue.createVNode(vue.unref(DataSourceDialog), {
|
|
68
87
|
modelValue: vue.unref(dataSourceDialogVisible),
|
|
69
|
-
"onUpdate:modelValue": _cache[
|
|
88
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(dataSourceDialogVisible) ? dataSourceDialogVisible.value = $event : null)
|
|
70
89
|
}, null, 8, ["modelValue"]),
|
|
71
90
|
vue.createVNode(vue.unref(index$2.default), {
|
|
72
91
|
modelValue: vue.unref(eventDialogVisible),
|
|
73
|
-
"onUpdate:modelValue": _cache[
|
|
92
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(eventDialogVisible) ? eventDialogVisible.value = $event : null)
|
|
74
93
|
}, null, 8, ["modelValue"]),
|
|
75
94
|
vue.createElementVNode("div", {
|
|
76
95
|
class: "btn-item",
|
|
@@ -82,22 +101,22 @@ const _sfc_main = {
|
|
|
82
101
|
]),
|
|
83
102
|
_: 1
|
|
84
103
|
}),
|
|
85
|
-
_cache[
|
|
104
|
+
_cache[17] || (_cache[17] = vue.createElementVNode("span", null, "页面事件", -1))
|
|
86
105
|
]),
|
|
87
106
|
vue.createVNode(pageEvent.default, {
|
|
88
107
|
modelValue: vue.unref(pageEventDialogVisible),
|
|
89
|
-
"onUpdate:modelValue": _cache[
|
|
108
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(pageEventDialogVisible) ? pageEventDialogVisible.value = $event : null)
|
|
90
109
|
}, null, 8, ["modelValue"]),
|
|
91
110
|
vue.createVNode(vue.unref(AdvancedFilterDialog), {
|
|
92
111
|
modelValue: vue.unref(advancedFilterDialogVisible),
|
|
93
|
-
"onUpdate:modelValue": _cache[
|
|
112
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.isRef(advancedFilterDialogVisible) ? advancedFilterDialogVisible.value = $event : null),
|
|
94
113
|
filterConfig: vue.unref(filterConfig),
|
|
95
114
|
onConfirm: advancedConfirm,
|
|
96
115
|
title: "条件表达式配置"
|
|
97
116
|
}, null, 8, ["modelValue", "filterConfig"]),
|
|
98
117
|
vue.createElementVNode("div", {
|
|
99
118
|
class: "btn-item",
|
|
100
|
-
onClick: _cache[
|
|
119
|
+
onClick: _cache[7] || (_cache[7] = (...args) => vue.unref(openDataLinkageDialog) && vue.unref(openDataLinkageDialog)(...args))
|
|
101
120
|
}, [
|
|
102
121
|
vue.createVNode(_component_el_icon, null, {
|
|
103
122
|
default: vue.withCtx(() => [
|
|
@@ -105,15 +124,15 @@ const _sfc_main = {
|
|
|
105
124
|
]),
|
|
106
125
|
_: 1
|
|
107
126
|
}),
|
|
108
|
-
_cache[
|
|
127
|
+
_cache[18] || (_cache[18] = vue.createElementVNode("span", null, "联动配置", -1))
|
|
109
128
|
]),
|
|
110
129
|
vue.createVNode(vue.unref(DataLinkageDialog), {
|
|
111
130
|
modelValue: vue.unref(dataLinkageDialogVisible),
|
|
112
|
-
"onUpdate:modelValue": _cache[
|
|
131
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.isRef(dataLinkageDialogVisible) ? dataLinkageDialogVisible.value = $event : null)
|
|
113
132
|
}, null, 8, ["modelValue"]),
|
|
114
133
|
vue.createElementVNode("div", {
|
|
115
134
|
class: "btn-item",
|
|
116
|
-
onClick: _cache[
|
|
135
|
+
onClick: _cache[9] || (_cache[9] = (...args) => vue.unref(openDialogGlobalDialog) && vue.unref(openDialogGlobalDialog)(...args))
|
|
117
136
|
}, [
|
|
118
137
|
vue.createVNode(_component_el_icon, null, {
|
|
119
138
|
default: vue.withCtx(() => [
|
|
@@ -121,15 +140,15 @@ const _sfc_main = {
|
|
|
121
140
|
]),
|
|
122
141
|
_: 1
|
|
123
142
|
}),
|
|
124
|
-
_cache[
|
|
143
|
+
_cache[19] || (_cache[19] = vue.createElementVNode("span", null, "全局弹层", -1))
|
|
125
144
|
]),
|
|
126
145
|
vue.createVNode(vue.unref(DialogGlobalDialog), {
|
|
127
146
|
modelValue: vue.unref(dialogGlobalDialogVisible),
|
|
128
|
-
"onUpdate:modelValue": _cache[
|
|
147
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => vue.isRef(dialogGlobalDialogVisible) ? dialogGlobalDialogVisible.value = $event : null)
|
|
129
148
|
}, null, 8, ["modelValue"]),
|
|
130
149
|
vue.createElementVNode("div", {
|
|
131
150
|
class: "btn-item",
|
|
132
|
-
onClick: _cache[
|
|
151
|
+
onClick: _cache[11] || (_cache[11] = (...args) => vue.unref(openDialogDialog) && vue.unref(openDialogDialog)(...args))
|
|
133
152
|
}, [
|
|
134
153
|
vue.createVNode(_component_el_icon, null, {
|
|
135
154
|
default: vue.withCtx(() => [
|
|
@@ -137,15 +156,15 @@ const _sfc_main = {
|
|
|
137
156
|
]),
|
|
138
157
|
_: 1
|
|
139
158
|
}),
|
|
140
|
-
_cache[
|
|
159
|
+
_cache[20] || (_cache[20] = vue.createElementVNode("span", null, "页面弹层", -1))
|
|
141
160
|
]),
|
|
142
161
|
vue.createVNode(vue.unref(DialogDialog), {
|
|
143
162
|
modelValue: vue.unref(dialogDialogVisible),
|
|
144
|
-
"onUpdate:modelValue": _cache[
|
|
163
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => vue.isRef(dialogDialogVisible) ? dialogDialogVisible.value = $event : null)
|
|
145
164
|
}, null, 8, ["modelValue"]),
|
|
146
165
|
vue.createElementVNode("div", {
|
|
147
166
|
class: "btn-item",
|
|
148
|
-
onClick: _cache[
|
|
167
|
+
onClick: _cache[13] || (_cache[13] = (...args) => vue.unref(openJsonDrawer) && vue.unref(openJsonDrawer)(...args))
|
|
149
168
|
}, [
|
|
150
169
|
vue.createVNode(_component_el_icon, null, {
|
|
151
170
|
default: vue.withCtx(() => [
|
|
@@ -153,15 +172,15 @@ const _sfc_main = {
|
|
|
153
172
|
]),
|
|
154
173
|
_: 1
|
|
155
174
|
}),
|
|
156
|
-
_cache[
|
|
175
|
+
_cache[21] || (_cache[21] = vue.createElementVNode("span", null, "数据结构", -1))
|
|
157
176
|
]),
|
|
158
177
|
vue.createVNode(vue.unref(JsonDataDrawer), {
|
|
159
178
|
modelValue: vue.unref(jsonDataDrawerVisible),
|
|
160
|
-
"onUpdate:modelValue": _cache[
|
|
179
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => vue.isRef(jsonDataDrawerVisible) ? jsonDataDrawerVisible.value = $event : null)
|
|
161
180
|
}, null, 8, ["modelValue"])
|
|
162
181
|
]);
|
|
163
182
|
};
|
|
164
183
|
}
|
|
165
184
|
};
|
|
166
|
-
const formHeaderBtn = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
185
|
+
const formHeaderBtn = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-44c2c956"]]);
|
|
167
186
|
exports.default = formHeaderBtn;
|