@fecp/designer 5.6.11 → 5.6.14
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/layout/index.vue.mjs +44 -38
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1 -0
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer/src/packages/importantDataChange/index.vue.mjs +1 -1
- package/es/designer.css +90 -87
- package/es/packages/mobile/src/index.vue.mjs +3 -3
- package/es/packages/vue/src/components/bus/approvalHistory/timeLine.vue.mjs +1 -1
- package/es/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.mjs +2 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +15 -3
- package/es/packages/vue/src/utils/importantDataChange.mjs +0 -1
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/layout/index.vue.js +61 -55
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1 -0
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer/src/packages/importantDataChange/index.vue.js +1 -1
- package/lib/designer.css +90 -87
- package/lib/packages/mobile/src/index.vue.js +3 -3
- package/lib/packages/vue/src/components/bus/approvalHistory/timeLine.vue.js +1 -1
- package/lib/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.js +2 -2
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +14 -2
- package/lib/packages/vue/src/utils/importantDataChange.js +0 -1
- package/package.json +1 -1
|
@@ -7,18 +7,18 @@ import "../../../node_modules/element-plus/es/index.mjs";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import "../../../node_modules/element-plus/theme-chalk/el-config-provider.css.mjs";
|
|
10
|
-
import { getCurrentInstance, ref, computed, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent } from "vue";
|
|
10
|
+
import { getCurrentInstance, ref, computed, onMounted, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent } from "vue";
|
|
11
11
|
import zh_cn_default from "../../../node_modules/element-plus/es/locale/lang/zh-cn.mjs";
|
|
12
12
|
import LayoutAside from "./aside/index.vue.mjs";
|
|
13
13
|
import _sfc_main$1 from "./header/index.vue.mjs";
|
|
14
14
|
import LayoutProperty from "./property/index.vue.mjs";
|
|
15
15
|
import tableWorkArea from "../packages/table/index.vue.mjs";
|
|
16
16
|
import formWorkArea from "../packages/form/index.vue.mjs";
|
|
17
|
-
import
|
|
18
|
-
import { setEditConfigData, setSelectedItem, setHoverItem } from "../packages/utils/common.mjs";
|
|
17
|
+
import { setSelectedItem, setHoverItem, setEditConfigData } from "../packages/utils/common.mjs";
|
|
19
18
|
import api from "../api/index.mjs";
|
|
20
19
|
import { defaultTableConfig } from "../packages/table/default.mjs";
|
|
21
20
|
import { defaultFormConfig } from "../packages/form/default.mjs";
|
|
21
|
+
import { useStore } from "../../../node_modules/vuex/dist/vuex.esm-bundler.mjs";
|
|
22
22
|
/* empty css */
|
|
23
23
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
24
24
|
import { ElConfigProvider } from "../../../node_modules/element-plus/es/components/config-provider/index.mjs";
|
|
@@ -31,45 +31,48 @@ const _hoisted_1 = {
|
|
|
31
31
|
const _sfc_main = {
|
|
32
32
|
__name: "index",
|
|
33
33
|
setup(__props) {
|
|
34
|
+
const store = useStore();
|
|
34
35
|
const currentInstance = getCurrentInstance();
|
|
35
36
|
const ctx = currentInstance.proxy;
|
|
36
37
|
const pkId = getUrlParam("pkId");
|
|
37
38
|
const isInitd = ref(0);
|
|
38
39
|
const compRef = ref(null);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
store.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
40
|
+
async function init() {
|
|
41
|
+
if (!pkId) {
|
|
42
|
+
isInitd.value = -1;
|
|
43
|
+
} else {
|
|
44
|
+
if (!store.getters.token) {
|
|
45
|
+
const resData = await api.login4dev(ctx.$http);
|
|
46
|
+
store.commit("set_token", resData.token);
|
|
47
|
+
store.commit("set_refreshToken", resData.refreshToken);
|
|
48
|
+
}
|
|
49
|
+
const data = await api.getById(ctx.$http, pkId);
|
|
50
|
+
const templateName = data.templateName;
|
|
51
|
+
const templateKey = data.templateKey;
|
|
52
|
+
document.title = templateName || "表单设计器";
|
|
53
|
+
if (data.type == "table") {
|
|
54
|
+
const tableOptions = ref({
|
|
55
|
+
pkId,
|
|
56
|
+
templateName,
|
|
57
|
+
templateKey,
|
|
58
|
+
...defaultTableConfig,
|
|
59
|
+
...JSON.parse(data.context)
|
|
60
|
+
});
|
|
61
|
+
setEditConfigData(tableOptions.value);
|
|
62
|
+
isInitd.value = 1;
|
|
63
|
+
} else if (data.type == "form") {
|
|
64
|
+
const formOptions = ref({
|
|
65
|
+
pkId,
|
|
66
|
+
templateName,
|
|
67
|
+
templateKey,
|
|
68
|
+
...defaultFormConfig,
|
|
69
|
+
...JSON.parse(data.context)
|
|
70
|
+
});
|
|
71
|
+
setEditConfigData(formOptions.value);
|
|
72
|
+
isInitd.value = 1;
|
|
73
|
+
}
|
|
74
|
+
store.commit("set_editing_type", data.type);
|
|
75
|
+
}
|
|
73
76
|
}
|
|
74
77
|
const editingArea = computed(() => {
|
|
75
78
|
switch (store.getters.editingType) {
|
|
@@ -95,6 +98,9 @@ const _sfc_main = {
|
|
|
95
98
|
if (values.length === 0) return null;
|
|
96
99
|
return values.length === 1 ? values[0] : values;
|
|
97
100
|
}
|
|
101
|
+
onMounted(() => {
|
|
102
|
+
init();
|
|
103
|
+
});
|
|
98
104
|
return (_ctx, _cache) => {
|
|
99
105
|
const _component_el_config_provider = ElConfigProvider;
|
|
100
106
|
const _component_el_main = ElMain;
|
|
@@ -144,7 +150,7 @@ const _sfc_main = {
|
|
|
144
150
|
};
|
|
145
151
|
}
|
|
146
152
|
};
|
|
147
|
-
const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
153
|
+
const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10018284"]]);
|
|
148
154
|
export {
|
|
149
155
|
layout as default
|
|
150
156
|
};
|
|
@@ -85,7 +85,7 @@ import widgets from "../table/property/widgets.vue.mjs";
|
|
|
85
85
|
import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
|
|
86
86
|
/* empty css */
|
|
87
87
|
/* empty css */
|
|
88
|
-
/* empty css
|
|
88
|
+
/* empty css */
|
|
89
89
|
/* empty css */
|
|
90
90
|
/* empty css */
|
|
91
91
|
/* empty css */
|
|
@@ -52,8 +52,8 @@ import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
52
52
|
import "../../../components/TemplateSelector.vue.mjs";
|
|
53
53
|
import "../../table/default.mjs";
|
|
54
54
|
/* empty css */
|
|
55
|
-
/* empty css
|
|
56
|
-
/* empty css
|
|
55
|
+
/* empty css */
|
|
56
|
+
/* empty css */
|
|
57
57
|
import "../../../store/index.mjs";
|
|
58
58
|
/* empty css */
|
|
59
59
|
import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
|
|
@@ -178,7 +178,7 @@ const _sfc_main = {
|
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
|
-
const ImportantDataChangeDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
181
|
+
const ImportantDataChangeDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ed2c5a64"]]);
|
|
182
182
|
export {
|
|
183
183
|
ImportantDataChangeDialog as default
|
|
184
184
|
};
|