fec-dev-designer 1.1.1 → 5.1.2
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/package.json.js +66 -0
- package/es/src/assets/approvalHistory.png.js +4 -0
- package/es/src/assets/logo.png.js +4 -0
- package/es/src/components/DataSourceSelect.vue.js +2 -1
- package/es/src/components/OptionConfig.vue.js +3 -2
- package/es/src/components/OptionConfig.vue2.js +2 -2
- package/es/src/components/ParamsConfig.vue.js +2 -2
- package/es/src/components/ParamsConfig.vue2.js +31 -32
- package/es/src/components/ValueSelector.vue2.js +49 -39
- package/es/src/layout/aside/index.vue.js +51 -51
- package/es/src/layout/header/index.vue.js +88 -77
- package/es/src/layout/index.vue.js +48 -48
- package/es/src/layout/property/index.vue.js +16 -16
- package/es/src/packages/advancedFilter/ValueInput.vue2.js +57 -60
- package/es/src/packages/dataSource/dataSource.vue.js +98 -105
- package/es/src/packages/dialog/index.vue.js +443 -322
- package/es/src/packages/event/index.vue2.js +44 -44
- package/es/src/packages/event/useEventDialog.js +2 -2
- package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +47 -54
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +42 -49
- package/es/src/packages/form/aside/index.js +27 -2
- package/es/src/packages/form/aside/roleSelect.js +156 -0
- package/es/src/packages/form/aside/userSelect.js +206 -0
- package/es/src/packages/form/components/ApprovalHistory.vue.js +73 -0
- package/es/src/packages/form/components/ApprovalHistory.vue2.js +4 -0
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +51 -41
- package/es/src/packages/form/components/H2Wrapper.vue.js +13 -10
- package/es/src/packages/form/index.vue.js +140 -130
- package/es/src/packages/form/property/approvalHistory.vue.js +178 -0
- package/es/src/packages/form/property/index.vue.js +23 -22
- package/es/src/packages/form/property/subTable.vue.js +37 -43
- package/es/src/packages/form/property/widgets.vue.js +258 -202
- package/es/src/packages/table/aside/index.js +2 -1
- package/es/src/packages/table/default.js +24 -21
- package/es/src/packages/table/property/widgets.vue.js +63 -47
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -3,42 +3,42 @@ import "../../../node_modules/element-plus/theme-chalk/el-aside.css.js";
|
|
|
3
3
|
import "../../../node_modules/element-plus/theme-chalk/el-badge.css.js";
|
|
4
4
|
import "../../../node_modules/element-plus/theme-chalk/el-collapse.css.js";
|
|
5
5
|
import "../../../node_modules/element-plus/theme-chalk/el-collapse-item.css.js";
|
|
6
|
-
import { computed as u, ref as g, openBlock as s, createBlock as c, withCtx as a, createElementVNode as l, createVNode as n, createElementBlock as
|
|
7
|
-
import { useStore as $ } from "vuex";
|
|
6
|
+
import { computed as u, ref as g, openBlock as s, createBlock as c, withCtx as a, createElementVNode as l, createVNode as n, createElementBlock as r, Fragment as E, renderList as k, unref as d, toDisplayString as b, createCommentVNode as p } from "vue";
|
|
8
7
|
import x from "../../packages/utils/eventBus.js";
|
|
9
|
-
import { VueDraggable as
|
|
10
|
-
import { Calendar as
|
|
11
|
-
import { getEditConfigData as C, setSelectedItem as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { throttle as
|
|
8
|
+
import { VueDraggable as $ } from "../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js";
|
|
9
|
+
import { Calendar as j, DeleteFilled as q, Hide as z } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
10
|
+
import { getEditConfigData as C, setSelectedItem as G } from "../../packages/utils/common.js";
|
|
11
|
+
import J from "../../packages/table/aside/index.js";
|
|
12
|
+
import K from "../../packages/form/aside/index.js";
|
|
13
|
+
import O from "../../packages/form/fieldRecycleBin.vue.js";
|
|
14
|
+
import P from "../../packages/form/HiddenFieldDialog.vue.js";
|
|
15
|
+
import { throttle as Q } from "../../../node_modules/@vexip-ui/utils/dist/index.js";
|
|
16
|
+
import m from "../../store/index.js";
|
|
17
17
|
import "./index.vue2.js";
|
|
18
|
-
import
|
|
19
|
-
import { ElIcon as
|
|
20
|
-
import { ElCollapseItem as
|
|
21
|
-
import { ElBadge as
|
|
22
|
-
import { ElAside as
|
|
23
|
-
const
|
|
18
|
+
import W from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
19
|
+
import { ElIcon as X } from "../../../node_modules/element-plus/es/components/icon/index.js";
|
|
20
|
+
import { ElCollapseItem as Y, ElCollapse as Z } from "../../../node_modules/element-plus/es/components/collapse/index.js";
|
|
21
|
+
import { ElBadge as ee } from "../../../node_modules/element-plus/es/components/badge/index.js";
|
|
22
|
+
import { ElAside as te } from "../../../node_modules/element-plus/es/components/container/index.js";
|
|
23
|
+
const oe = { class: "dev-designer-aside" }, le = { class: "components-item" }, ne = { class: "menu-components-item" }, se = { class: "components-item-label" }, ae = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "table-item"
|
|
26
|
-
},
|
|
26
|
+
}, ie = { class: "widgets" }, re = { class: "field-label" }, de = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "aside-footer"
|
|
29
|
-
},
|
|
29
|
+
}, me = {
|
|
30
30
|
__name: "index",
|
|
31
31
|
emits: ["onFormDragMove"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
switch (
|
|
32
|
+
setup(ue, { emit: B }) {
|
|
33
|
+
const T = B, w = u(() => {
|
|
34
|
+
switch (m.getters.editingType) {
|
|
35
35
|
case "table":
|
|
36
|
-
return
|
|
36
|
+
return J;
|
|
37
37
|
case "form":
|
|
38
|
-
return
|
|
38
|
+
return K;
|
|
39
39
|
}
|
|
40
40
|
return null;
|
|
41
|
-
}), V = u(() =>
|
|
41
|
+
}), V = u(() => m.getters.editingType), y = g(["basic", "advanced"]), f = g(!1), _ = g(!1), F = u(() => {
|
|
42
42
|
var e;
|
|
43
43
|
const t = C();
|
|
44
44
|
return ((e = t == null ? void 0 : t.deletedFields) == null ? void 0 : e.length) || 0;
|
|
@@ -47,19 +47,19 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
|
|
|
47
47
|
const t = C();
|
|
48
48
|
return ((e = t == null ? void 0 : t.hiddenFields) == null ? void 0 : e.length) || 0;
|
|
49
49
|
});
|
|
50
|
-
function
|
|
50
|
+
function M(t) {
|
|
51
51
|
return {
|
|
52
52
|
...t,
|
|
53
53
|
id: Date.now(),
|
|
54
54
|
type: "widgets"
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
|
|
57
|
+
function N(t) {
|
|
58
|
+
G(t.clonedData), m.getters.editingType == "form" && x.emit("onFormDragEnd", t);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const S = Q((t) => (m.getters.editingType == "form" && T("onFormDragMove", t), !0), 50);
|
|
61
61
|
function U(t) {
|
|
62
|
-
|
|
62
|
+
m.getters.editingType == "form" && x.emit("onFormDragStart", t);
|
|
63
63
|
}
|
|
64
64
|
function I() {
|
|
65
65
|
f.value = !0;
|
|
@@ -68,47 +68,47 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
|
|
|
68
68
|
_.value = !0;
|
|
69
69
|
}
|
|
70
70
|
return (t, e) => {
|
|
71
|
-
const v =
|
|
71
|
+
const v = X, H = Y, L = Z, D = ee, R = te;
|
|
72
72
|
return s(), c(R, { class: "root-aside" }, {
|
|
73
73
|
default: a(() => [
|
|
74
|
-
l("div",
|
|
74
|
+
l("div", oe, [
|
|
75
75
|
n(L, {
|
|
76
76
|
modelValue: y.value,
|
|
77
77
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => y.value = o)
|
|
78
78
|
}, {
|
|
79
79
|
default: a(() => [
|
|
80
|
-
(s(!0),
|
|
80
|
+
(s(!0), r(E, null, k(w.value, (o) => (s(), c(H, {
|
|
81
81
|
title: o.title,
|
|
82
82
|
name: o.name
|
|
83
83
|
}, {
|
|
84
84
|
default: a(() => [
|
|
85
|
-
n(
|
|
85
|
+
n(d($), {
|
|
86
86
|
modelValue: o.children,
|
|
87
|
-
"onUpdate:modelValue": (
|
|
87
|
+
"onUpdate:modelValue": (i) => o.children = i,
|
|
88
88
|
animation: 150,
|
|
89
89
|
ghostClass: "ghost",
|
|
90
90
|
group: { name: "dev", pull: "clone", put: !1 },
|
|
91
|
-
clone:
|
|
92
|
-
onEnd:
|
|
93
|
-
onMove:
|
|
91
|
+
clone: M,
|
|
92
|
+
onEnd: N,
|
|
93
|
+
onMove: d(S),
|
|
94
94
|
onStart: U,
|
|
95
95
|
sort: !1,
|
|
96
96
|
class: "components-list"
|
|
97
97
|
}, {
|
|
98
98
|
default: a(() => [
|
|
99
|
-
(s(!0),
|
|
100
|
-
l("div",
|
|
99
|
+
(s(!0), r(E, null, k(o.children, (i) => (s(), r("div", le, [
|
|
100
|
+
l("div", ne, [
|
|
101
101
|
n(v, { class: "components-item-icon" }, {
|
|
102
102
|
default: a(() => [
|
|
103
|
-
n(
|
|
103
|
+
n(d(j))
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
}),
|
|
107
|
-
l("span",
|
|
107
|
+
l("span", se, b(i.label), 1)
|
|
108
108
|
]),
|
|
109
|
-
V.value == "table" ? (s(),
|
|
110
|
-
l("div",
|
|
111
|
-
l("div",
|
|
109
|
+
V.value == "table" ? (s(), r("div", ae, [
|
|
110
|
+
l("div", ie, b(i.label), 1),
|
|
111
|
+
l("div", re, b(i.fieldName), 1)
|
|
112
112
|
])) : p("", !0)
|
|
113
113
|
]))), 256))
|
|
114
114
|
]),
|
|
@@ -121,14 +121,14 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
|
|
|
121
121
|
_: 1
|
|
122
122
|
}, 8, ["modelValue"])
|
|
123
123
|
]),
|
|
124
|
-
V.value == "form" ? (s(),
|
|
124
|
+
V.value == "form" ? (s(), r("div", de, [
|
|
125
125
|
l("div", {
|
|
126
126
|
class: "footer-btn recycle-btn",
|
|
127
127
|
onClick: I
|
|
128
128
|
}, [
|
|
129
129
|
n(v, { class: "btn-icon" }, {
|
|
130
130
|
default: a(() => [
|
|
131
|
-
n(
|
|
131
|
+
n(d(q))
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
134
134
|
}),
|
|
@@ -147,7 +147,7 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
|
|
|
147
147
|
}, [
|
|
148
148
|
n(v, { class: "btn-icon" }, {
|
|
149
149
|
default: a(() => [
|
|
150
|
-
n(
|
|
150
|
+
n(d(z))
|
|
151
151
|
]),
|
|
152
152
|
_: 1
|
|
153
153
|
}),
|
|
@@ -160,11 +160,11 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
|
|
|
160
160
|
}, null, 8, ["value"])) : p("", !0)
|
|
161
161
|
])
|
|
162
162
|
])) : p("", !0),
|
|
163
|
-
n(
|
|
163
|
+
n(O, {
|
|
164
164
|
modelValue: f.value,
|
|
165
165
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => f.value = o)
|
|
166
166
|
}, null, 8, ["modelValue"]),
|
|
167
|
-
n(
|
|
167
|
+
n(P, {
|
|
168
168
|
modelValue: _.value,
|
|
169
169
|
"onUpdate:modelValue": e[2] || (e[2] = (o) => _.value = o)
|
|
170
170
|
}, null, 8, ["modelValue"])
|
|
@@ -173,7 +173,7 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
|
|
|
173
173
|
});
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
},
|
|
176
|
+
}, Ue = /* @__PURE__ */ W(me, [["__scopeId", "data-v-8edf3b11"]]);
|
|
177
177
|
export {
|
|
178
|
-
|
|
178
|
+
Ue as default
|
|
179
179
|
};
|
|
@@ -6,33 +6,35 @@ import "../../../node_modules/element-plus/theme-chalk/el-button.css.js";
|
|
|
6
6
|
import "../../../node_modules/element-plus/theme-chalk/el-form.css.js";
|
|
7
7
|
import "../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
|
|
8
8
|
import "../../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
9
|
-
import { computed as
|
|
10
|
-
import
|
|
11
|
-
import { UploadFilled as
|
|
12
|
-
import { ElMessage as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { getEditConfigData as
|
|
9
|
+
import { computed as g, ref as v, reactive as I, openBlock as y, createBlock as D, withCtx as m, createElementVNode as o, toDisplayString as f, unref as r, createVNode as t, resolveDynamicComponent as U, isRef as H, createTextVNode as N } from "vue";
|
|
10
|
+
import R from "../../assets/logo.png.js";
|
|
11
|
+
import { UploadFilled as T, Edit as h } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
12
|
+
import { ElMessage as q } from "element-plus";
|
|
13
|
+
import J from "../../packages/table/headerBtn.vue.js";
|
|
14
|
+
import S from "../../packages/form/headerBtn.vue.js";
|
|
15
|
+
import { getEditConfigData as z } from "../../packages/utils/common.js";
|
|
16
16
|
import M from "../../api/index.js";
|
|
17
|
+
import O from "../../store/index.js";
|
|
18
|
+
import $ from "../../../package.json.js";
|
|
17
19
|
import "./index.vue2.js";
|
|
18
|
-
import { ElIcon as
|
|
19
|
-
import { ElInput as
|
|
20
|
-
import { ElFormItem as
|
|
21
|
-
import { ElButton as
|
|
22
|
-
import { ElDialog as
|
|
23
|
-
import { ElHeader as
|
|
24
|
-
const
|
|
20
|
+
import { ElIcon as j } from "../../../node_modules/element-plus/es/components/icon/index.js";
|
|
21
|
+
import { ElInput as A } from "../../../node_modules/element-plus/es/components/input/index.js";
|
|
22
|
+
import { ElFormItem as G, ElForm as L } from "../../../node_modules/element-plus/es/components/form/index.js";
|
|
23
|
+
import { ElButton as P } from "../../../node_modules/element-plus/es/components/button/index.js";
|
|
24
|
+
import { ElDialog as Q } from "../../../node_modules/element-plus/es/components/dialog/index.js";
|
|
25
|
+
import { ElHeader as W } from "../../../node_modules/element-plus/es/components/container/index.js";
|
|
26
|
+
const X = { class: "dev-title" }, Y = { class: "logo" }, Z = { class: "version" }, ee = { class: "header-title" }, te = { class: "title-row" }, le = { class: "template-name" }, oe = { class: "template-key" }, ae = { class: "opt-btn-content" }, me = { class: "dialog-footer" }, Ue = {
|
|
25
27
|
__name: "index",
|
|
26
|
-
setup(
|
|
27
|
-
const V =
|
|
28
|
-
switch (
|
|
28
|
+
setup(re) {
|
|
29
|
+
const V = g(() => {
|
|
30
|
+
switch (O.getters.editingType) {
|
|
29
31
|
case "table":
|
|
30
|
-
return
|
|
32
|
+
return J;
|
|
31
33
|
case "form":
|
|
32
|
-
return
|
|
34
|
+
return S;
|
|
33
35
|
}
|
|
34
36
|
return null;
|
|
35
|
-
}),
|
|
37
|
+
}), b = g(() => z()), E = $.version, p = () => b.value || {}, i = v(!1), c = v(null), l = I({
|
|
36
38
|
templateName: "",
|
|
37
39
|
templateKey: "",
|
|
38
40
|
templateDesc: ""
|
|
@@ -45,70 +47,79 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
|
|
|
45
47
|
{ max: 200, message: "长度不能超过 200 个字符", trigger: "blur" }
|
|
46
48
|
]
|
|
47
49
|
};
|
|
48
|
-
function x() {
|
|
49
|
-
const o = s();
|
|
50
|
-
l.templateName = o.templateName || "", l.templateKey = o.templateKey || "", l.templateDesc = o.templateDesc || "", p.value = !0;
|
|
51
|
-
}
|
|
52
50
|
function k() {
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
const a = p();
|
|
52
|
+
l.templateName = a.templateName || "", l.templateKey = a.templateKey || "", l.templateDesc = a.templateDesc || "", i.value = !0;
|
|
53
|
+
}
|
|
54
|
+
function x() {
|
|
55
|
+
var a;
|
|
56
|
+
(a = c.value) == null || a.validate((e) => {
|
|
55
57
|
if (e) {
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
+
const n = p();
|
|
59
|
+
n.templateName = l.templateName, n.templateKey = l.templateKey, n.templateDesc = l.templateDesc, i.value = !1;
|
|
58
60
|
} else
|
|
59
61
|
return !1;
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
64
|
function w() {
|
|
63
|
-
const
|
|
64
|
-
pkId:
|
|
65
|
-
templateKey:
|
|
66
|
-
templateName:
|
|
67
|
-
context: JSON.stringify(
|
|
65
|
+
const a = p(), e = {
|
|
66
|
+
pkId: a.pkId,
|
|
67
|
+
templateKey: a.templateKey,
|
|
68
|
+
templateName: a.templateName,
|
|
69
|
+
context: JSON.stringify(a)
|
|
68
70
|
};
|
|
69
71
|
M.updateById(e).then(() => {
|
|
70
|
-
|
|
72
|
+
q.success("保存成功");
|
|
71
73
|
});
|
|
72
74
|
}
|
|
73
|
-
return (
|
|
74
|
-
const
|
|
75
|
-
return
|
|
76
|
-
default:
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
return (a, e) => {
|
|
76
|
+
const n = j, d = A, u = G, C = L, _ = P, B = Q, F = W;
|
|
77
|
+
return y(), D(F, { class: "dev-root-header" }, {
|
|
78
|
+
default: m(() => [
|
|
79
|
+
o("div", X, [
|
|
80
|
+
o("div", Y, [
|
|
81
|
+
e[5] || (e[5] = o("img", {
|
|
82
|
+
src: R,
|
|
83
|
+
alt: "logo",
|
|
84
|
+
class: "logo-img"
|
|
85
|
+
}, null, -1)),
|
|
86
|
+
e[6] || (e[6] = o("div", { class: "title" }, "表单设计器", -1)),
|
|
87
|
+
o("div", Z, "v" + f(r(E)), 1)
|
|
88
|
+
]),
|
|
89
|
+
o("div", {
|
|
79
90
|
class: "btn-item",
|
|
80
91
|
onClick: w
|
|
81
92
|
}, [
|
|
82
|
-
t(
|
|
83
|
-
default:
|
|
84
|
-
t(
|
|
93
|
+
t(n, null, {
|
|
94
|
+
default: m(() => [
|
|
95
|
+
t(r(T))
|
|
85
96
|
]),
|
|
86
97
|
_: 1
|
|
87
98
|
}),
|
|
88
|
-
e[
|
|
99
|
+
e[7] || (e[7] = o("span", null, "保存", -1))
|
|
89
100
|
])
|
|
90
101
|
]),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
t(
|
|
102
|
+
o("div", ee, [
|
|
103
|
+
o("div", te, [
|
|
104
|
+
o("div", le, f(p().templateName), 1),
|
|
105
|
+
t(n, {
|
|
95
106
|
class: "edit-icon",
|
|
96
|
-
onClick:
|
|
107
|
+
onClick: k
|
|
97
108
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
t(
|
|
109
|
+
default: m(() => [
|
|
110
|
+
t(r(h))
|
|
100
111
|
]),
|
|
101
112
|
_: 1
|
|
102
113
|
})
|
|
103
114
|
]),
|
|
104
|
-
|
|
115
|
+
o("div", oe, f(p().templateKey), 1)
|
|
105
116
|
]),
|
|
106
|
-
|
|
107
|
-
(
|
|
117
|
+
o("div", ae, [
|
|
118
|
+
(y(), D(U(V.value)))
|
|
108
119
|
]),
|
|
109
120
|
t(B, {
|
|
110
|
-
modelValue:
|
|
111
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
121
|
+
modelValue: r(i),
|
|
122
|
+
"onUpdate:modelValue": e[4] || (e[4] = (s) => H(i) ? i.value = s : null),
|
|
112
123
|
title: "编辑模板信息",
|
|
113
124
|
width: "500px",
|
|
114
125
|
draggable: "",
|
|
@@ -116,44 +127,44 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
|
|
|
116
127
|
"append-to-body": "",
|
|
117
128
|
class: "fec-dev-designer-dialog"
|
|
118
129
|
}, {
|
|
119
|
-
footer:
|
|
120
|
-
|
|
121
|
-
t(
|
|
122
|
-
onClick: e[3] || (e[3] = (
|
|
130
|
+
footer: m(() => [
|
|
131
|
+
o("div", me, [
|
|
132
|
+
t(_, {
|
|
133
|
+
onClick: e[3] || (e[3] = (s) => i.value = !1)
|
|
123
134
|
}, {
|
|
124
|
-
default:
|
|
135
|
+
default: m(() => [...e[8] || (e[8] = [
|
|
125
136
|
N("取消", -1)
|
|
126
137
|
])]),
|
|
127
138
|
_: 1
|
|
128
139
|
}),
|
|
129
|
-
t(
|
|
140
|
+
t(_, {
|
|
130
141
|
type: "primary",
|
|
131
|
-
onClick:
|
|
142
|
+
onClick: x
|
|
132
143
|
}, {
|
|
133
|
-
default:
|
|
144
|
+
default: m(() => [...e[9] || (e[9] = [
|
|
134
145
|
N("确定", -1)
|
|
135
146
|
])]),
|
|
136
147
|
_: 1
|
|
137
148
|
})
|
|
138
149
|
])
|
|
139
150
|
]),
|
|
140
|
-
default:
|
|
151
|
+
default: m(() => [
|
|
141
152
|
t(C, {
|
|
142
|
-
model:
|
|
153
|
+
model: r(l),
|
|
143
154
|
rules: K,
|
|
144
155
|
ref_key: "editFormRef",
|
|
145
156
|
ref: c,
|
|
146
157
|
"label-width": "100px"
|
|
147
158
|
}, {
|
|
148
|
-
default:
|
|
159
|
+
default: m(() => [
|
|
149
160
|
t(u, {
|
|
150
161
|
label: "模板标识",
|
|
151
162
|
prop: "templateKey"
|
|
152
163
|
}, {
|
|
153
|
-
default:
|
|
164
|
+
default: m(() => [
|
|
154
165
|
t(d, {
|
|
155
|
-
modelValue:
|
|
156
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
166
|
+
modelValue: r(l).templateKey,
|
|
167
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => r(l).templateKey = s),
|
|
157
168
|
placeholder: "请输入模板标识"
|
|
158
169
|
}, null, 8, ["modelValue"])
|
|
159
170
|
]),
|
|
@@ -163,10 +174,10 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
|
|
|
163
174
|
label: "模板名称",
|
|
164
175
|
prop: "templateName"
|
|
165
176
|
}, {
|
|
166
|
-
default:
|
|
177
|
+
default: m(() => [
|
|
167
178
|
t(d, {
|
|
168
|
-
modelValue:
|
|
169
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
179
|
+
modelValue: r(l).templateName,
|
|
180
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => r(l).templateName = s),
|
|
170
181
|
placeholder: "请输入模板名称"
|
|
171
182
|
}, null, 8, ["modelValue"])
|
|
172
183
|
]),
|
|
@@ -176,10 +187,10 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
|
|
|
176
187
|
label: "模板描述",
|
|
177
188
|
prop: "templateDesc"
|
|
178
189
|
}, {
|
|
179
|
-
default:
|
|
190
|
+
default: m(() => [
|
|
180
191
|
t(d, {
|
|
181
|
-
modelValue:
|
|
182
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
192
|
+
modelValue: r(l).templateDesc,
|
|
193
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => r(l).templateDesc = s),
|
|
183
194
|
type: "textarea",
|
|
184
195
|
rows: 4,
|
|
185
196
|
placeholder: "请输入模板描述",
|
|
@@ -203,5 +214,5 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
|
|
|
203
214
|
}
|
|
204
215
|
};
|
|
205
216
|
export {
|
|
206
|
-
|
|
217
|
+
Ue as default
|
|
207
218
|
};
|
|
@@ -7,88 +7,88 @@ import "../../node_modules/element-plus/theme-chalk/el-footer.css.js";
|
|
|
7
7
|
import "../../node_modules/element-plus/theme-chalk/el-header.css.js";
|
|
8
8
|
import "../../node_modules/element-plus/theme-chalk/el-main.css.js";
|
|
9
9
|
import "../../node_modules/element-plus/theme-chalk/el-config-provider.css.js";
|
|
10
|
-
import { ref as
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import T from "./
|
|
14
|
-
import A from "./
|
|
15
|
-
import F from "
|
|
16
|
-
import M from "../packages/
|
|
17
|
-
import S from "
|
|
18
|
-
import
|
|
19
|
-
import { setEditConfigData as d, setSelectedItem as
|
|
10
|
+
import { ref as p, computed as b, openBlock as f, createBlock as _, withCtx as r, createVNode as o, unref as s, resolveDynamicComponent as w, createElementBlock as D, createTextVNode as E, createCommentVNode as N } from "vue";
|
|
11
|
+
import { useRoute as B, useRouter as O } from "vue-router";
|
|
12
|
+
import R from "./aside/index.vue.js";
|
|
13
|
+
import T from "./header/index.vue.js";
|
|
14
|
+
import A from "./property/index.vue.js";
|
|
15
|
+
import F from "../packages/table/index.vue.js";
|
|
16
|
+
import M from "../packages/form/index.vue.js";
|
|
17
|
+
import S from "../../node_modules/element-plus/dist/locale/zh-cn.js";
|
|
18
|
+
import a from "../store/index.js";
|
|
19
|
+
import { setEditConfigData as d, setSelectedItem as V, setHoverItem as J } from "../packages/utils/common.js";
|
|
20
20
|
import y from "../api/index.js";
|
|
21
|
-
import { defaultTableConfig as
|
|
22
|
-
import { defaultFormConfig as
|
|
21
|
+
import { defaultTableConfig as K } from "../packages/table/default.js";
|
|
22
|
+
import { defaultFormConfig as L } from "../packages/form/default.js";
|
|
23
23
|
import "./index.vue2.js";
|
|
24
|
-
import
|
|
25
|
-
import { ElConfigProvider as
|
|
26
|
-
import { ElMain as
|
|
27
|
-
import { ElButton as
|
|
28
|
-
import { ElResult as
|
|
29
|
-
const
|
|
24
|
+
import P from "../../_virtual/_plugin-vue_export-helper.js";
|
|
25
|
+
import { ElConfigProvider as W } from "../../node_modules/element-plus/es/components/config-provider/index.js";
|
|
26
|
+
import { ElMain as q, ElContainer as z } from "../../node_modules/element-plus/es/components/container/index.js";
|
|
27
|
+
import { ElButton as H } from "../../node_modules/element-plus/es/components/button/index.js";
|
|
28
|
+
import { ElResult as $ } from "../../node_modules/element-plus/es/components/result/index.js";
|
|
29
|
+
const j = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "init-error-container"
|
|
32
|
-
},
|
|
32
|
+
}, G = {
|
|
33
33
|
__name: "index",
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
34
|
+
setup(Q) {
|
|
35
|
+
const v = B(), g = O(), m = v.query.pkId, n = p(0), u = p(null);
|
|
36
36
|
function k() {
|
|
37
37
|
window.history.length > 1 ? g.back() : window.close();
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const
|
|
39
|
+
m ? y.login4dev().then((i) => {
|
|
40
|
+
a.commit("set_token", i.token), a.commit("set_refreshToken", i.refreshToken), y.getById(m).then((e) => {
|
|
41
|
+
const l = e.templateName, c = e.templateKey;
|
|
42
42
|
if (e.type == "table") {
|
|
43
|
-
const t =
|
|
44
|
-
pkId:
|
|
45
|
-
templateName:
|
|
46
|
-
templateKey:
|
|
47
|
-
...
|
|
43
|
+
const t = p({
|
|
44
|
+
pkId: m,
|
|
45
|
+
templateName: l,
|
|
46
|
+
templateKey: c,
|
|
47
|
+
...K,
|
|
48
48
|
...JSON.parse(e.context)
|
|
49
49
|
});
|
|
50
50
|
d(t.value), n.value = 1;
|
|
51
51
|
} else if (e.type == "form") {
|
|
52
|
-
const t =
|
|
53
|
-
pkId:
|
|
54
|
-
templateName:
|
|
55
|
-
templateKey:
|
|
56
|
-
...
|
|
52
|
+
const t = p({
|
|
53
|
+
pkId: m,
|
|
54
|
+
templateName: l,
|
|
55
|
+
templateKey: c,
|
|
56
|
+
...L,
|
|
57
57
|
...JSON.parse(e.context)
|
|
58
58
|
});
|
|
59
59
|
d(t.value), n.value = 1;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
a.commit("set_editing_type", e.type);
|
|
62
62
|
});
|
|
63
63
|
}) : n.value = -1;
|
|
64
64
|
const h = b(() => {
|
|
65
|
-
switch (
|
|
65
|
+
switch (a.getters.editingType) {
|
|
66
66
|
case "table":
|
|
67
|
-
return
|
|
67
|
+
return F;
|
|
68
68
|
case "form":
|
|
69
|
-
return
|
|
69
|
+
return M;
|
|
70
70
|
}
|
|
71
71
|
return null;
|
|
72
72
|
});
|
|
73
|
-
|
|
73
|
+
V(null), J(null);
|
|
74
74
|
function x(i) {
|
|
75
75
|
var e;
|
|
76
76
|
(e = u.value) == null || e.onFormDragMove(i);
|
|
77
77
|
}
|
|
78
78
|
return (i, e) => {
|
|
79
|
-
const
|
|
79
|
+
const l = W, c = q, t = z, C = H, I = $;
|
|
80
80
|
return n.value == 1 ? (f(), _(t, {
|
|
81
81
|
key: 0,
|
|
82
82
|
style: { "flex-direction": "column", height: "100%" }
|
|
83
83
|
}, {
|
|
84
84
|
default: r(() => [
|
|
85
|
-
o(
|
|
85
|
+
o(s(T)),
|
|
86
86
|
o(t, { class: "inner-container" }, {
|
|
87
87
|
default: r(() => [
|
|
88
|
-
o(
|
|
89
|
-
o(
|
|
88
|
+
o(s(R), { onOnFormDragMove: x }),
|
|
89
|
+
o(c, { class: "root-main" }, {
|
|
90
90
|
default: r(() => [
|
|
91
|
-
o(
|
|
91
|
+
o(l, { locale: s(S) }, {
|
|
92
92
|
default: r(() => [
|
|
93
93
|
(f(), _(w(h.value), {
|
|
94
94
|
ref_key: "compRef",
|
|
@@ -100,13 +100,13 @@ const G = {
|
|
|
100
100
|
]),
|
|
101
101
|
_: 1
|
|
102
102
|
}),
|
|
103
|
-
o(
|
|
103
|
+
o(s(A))
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
})
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
|
-
})) : n.value == -1 ? (f(), D("div",
|
|
109
|
+
})) : n.value == -1 ? (f(), D("div", j, [
|
|
110
110
|
o(I, {
|
|
111
111
|
icon: "warning",
|
|
112
112
|
title: "缺少模板ID",
|
|
@@ -128,7 +128,7 @@ const G = {
|
|
|
128
128
|
])) : N("", !0);
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, be = /* @__PURE__ */ P(G, [["__scopeId", "data-v-9f473d85"]]);
|
|
132
132
|
export {
|
|
133
|
-
|
|
133
|
+
be as default
|
|
134
134
|
};
|