form-imagining 0.0.19 → 0.0.20
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/dist/App-603e5455.js +25 -0
- package/dist/Code-ef12c34b.js +5 -0
- package/dist/Col-74cca139.js +5 -0
- package/dist/{Demo-2f408623.js → Demo-602f04d8.js} +16 -16
- package/dist/Demo-be0d3a37.js +10 -0
- package/dist/{Demo-015b9b67.js → Demo-fdd82548.js} +1 -1
- package/dist/{Form-0f5f50ca.js → Form-1e372621.js} +1 -1
- package/dist/FormPublic-089eac3d.js +5 -0
- package/dist/GenerateForm-30d677aa.js +5 -0
- package/dist/Grid-68fdd72c.js +5 -0
- package/dist/{HelloWorld-517394a2.js → HelloWorld-2cd60613.js} +1 -1
- package/dist/Input-/345/210/240/351/231/{244-4e69b06c.js → 244-e2e34a89.js} +1 -1
- package/dist/Label-/345/210/240/351/231/{244-f578d3e5.js → 244-0cb771ab.js} +1 -1
- package/dist/{Login-a543825f.js → Login-5c75038a.js} +1 -1
- package/dist/{Preview0925-eb180084.js → Preview0925-588dfc2c.js} +1 -1
- package/dist/{PreviewDemo-43295c2b.js → PreviewDemo-1d0b0f64.js} +2 -2
- package/dist/{PreviewDemo.vue_vue_type_script_setup_true_lang-4331a2aa.js → PreviewDemo.vue_vue_type_script_setup_true_lang-f4e79a3a.js} +1 -1
- package/dist/{PreviewDemo2-af5b2b15.js → PreviewDemo2-737fda06.js} +2 -2
- package/dist/{PreviewDemo2.vue_vue_type_script_setup_true_lang-c4c0faba.js → PreviewDemo2.vue_vue_type_script_setup_true_lang-24e1e1ab.js} +1 -1
- package/dist/{PreviewDemo3-74865af3.js → PreviewDemo3-66f4aa07.js} +3 -3
- package/dist/{ReportModule-3bfd10cf.js → ReportModule-c94639d3.js} +2 -2
- package/dist/{ReportModule.vue_vue_type_script_setup_true_lang-33baf803.js → ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js} +1 -1
- package/dist/SqlModule-5f0db752.js +5 -0
- package/dist/Table-e36c1320.js +5 -0
- package/dist/{cTable-431ee1b4.js → cTable-a295aa0e.js} +1 -1
- package/dist/childForm-d19dd561.js +5 -0
- package/dist/{cssMode-fe11d538.js → cssMode-8a4c63ba.js} +16 -16
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +109 -94
- package/dist/{freemarker2-a9827bc5.js → freemarker2-e9ba76f1.js} +3 -3
- package/dist/{handlebars-fd8c9253.js → handlebars-d018e927.js} +1 -1
- package/dist/{html-5b477149.js → html-e310a901.js} +1 -1
- package/dist/{htmlMode-0b28e3b6.js → htmlMode-786de656.js} +12 -12
- package/dist/{index-fcd8f846.js → index-2679db46.js} +33 -33
- package/dist/{index-ad0b4ca1.js → index-6ef372a0.js} +27 -32
- package/dist/{index-d5af5250.js → index-c9c30439.js} +35200 -33492
- package/dist/{index-1fec8e75.js → index-e4aae2dd.js} +1 -1
- package/dist/{javascript-35762a78.js → javascript-f12bd58c.js} +2 -2
- package/dist/{jsonMode-a11989e3.js → jsonMode-75952d51.js} +30 -30
- package/dist/{liquid-f8e1c827.js → liquid-fb05d087.js} +1 -1
- package/dist/{mdx-4548f19b.js → mdx-be59e6cc.js} +1 -1
- package/dist/{modalDemo-a8eef4e4.js → modalDemo-2753e710.js} +1 -1
- package/dist/{python-c05ae2c4.js → python-ad30fefa.js} +1 -1
- package/dist/{razor-d7fe2d0e.js → razor-d91e2766.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-58dfc524.js → tableSelectDemo-b96742b6.js} +1 -1
- package/dist/{tableSelectDemo2-02f609dc.js → tableSelectDemo2-1351b70e.js} +1 -1
- package/dist/{tsMode-0eddd23b.js → tsMode-2a9d1903.js} +4 -4
- package/dist/{typescript-dda9428f.js → typescript-0c990a02.js} +1 -1
- package/dist/{xml-dc95c919.js → xml-2c3838bd.js} +1 -1
- package/dist/{yaml-aa39d268.js → yaml-b0a7f3a3.js} +1 -1
- package/package.json +1 -1
- package/dist/App-52419af9.js +0 -22
- package/dist/Code-2bb39b3d.js +0 -5
- package/dist/Col-2cdf69c5.js +0 -5
- package/dist/Demo-6d1f7624.js +0 -10
- package/dist/FormPublic-044b0ba0.js +0 -5
- package/dist/GenerateForm-e3fa78fc.js +0 -5
- package/dist/Grid-625fc82d.js +0 -5
- package/dist/SqlModule-265d1b00.js +0 -5
- package/dist/Table-05d6b54d.js +0 -5
- package/dist/childForm-5998f80c.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as F } from "./index-c9c30439.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
/*!-----------------------------------------------------------------------------
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -630,14 +630,14 @@ var w = {
|
|
|
630
630
|
}, P = {
|
|
631
631
|
conf: A(),
|
|
632
632
|
language: m(k)
|
|
633
|
-
},
|
|
633
|
+
}, I = {
|
|
634
634
|
conf: A(),
|
|
635
635
|
language: m(p)
|
|
636
636
|
};
|
|
637
637
|
export {
|
|
638
638
|
h as TagAngleInterpolationBracket,
|
|
639
639
|
w as TagAngleInterpolationDollar,
|
|
640
|
-
|
|
640
|
+
I as TagAutoInterpolationBracket,
|
|
641
641
|
P as TagAutoInterpolationDollar,
|
|
642
642
|
S as TagBracketInterpolationBracket,
|
|
643
643
|
T as TagBracketInterpolationDollar
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
2
|
var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import {
|
|
4
|
+
import { I as Qe } from "./index-c9c30439.js";
|
|
5
5
|
import "vue";
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9,13 +9,13 @@ import "vue";
|
|
|
9
9
|
* Released under the MIT license
|
|
10
10
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
11
11
|
*-----------------------------------------------------------------------------*/
|
|
12
|
-
var
|
|
12
|
+
var Ge = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ye = Object.getOwnPropertyNames, Ze = Object.prototype.hasOwnProperty, Y = (e, n, i, r) => {
|
|
13
13
|
if (n && typeof n == "object" || typeof n == "function")
|
|
14
14
|
for (let t of Ye(n))
|
|
15
|
-
!Ze.call(e, t) && t !== i &&
|
|
15
|
+
!Ze.call(e, t) && t !== i && Ge(e, t, { get: () => n[t], enumerable: !(r = Je(n, t)) || r.enumerable });
|
|
16
16
|
return e;
|
|
17
17
|
}, Ke = (e, n, i) => (Y(e, n, "default"), i && Y(i, n, "default")), c = {};
|
|
18
|
-
Ke(c,
|
|
18
|
+
Ke(c, Qe);
|
|
19
19
|
var et = 2 * 60 * 1e3, Me = class {
|
|
20
20
|
constructor(e) {
|
|
21
21
|
k(this, "_defaults");
|
|
@@ -555,22 +555,22 @@ var L;
|
|
|
555
555
|
}
|
|
556
556
|
e.is = n;
|
|
557
557
|
})(L || (L = {}));
|
|
558
|
-
var
|
|
558
|
+
var Q;
|
|
559
559
|
(function(e) {
|
|
560
560
|
function n(i) {
|
|
561
561
|
var r = i;
|
|
562
562
|
return s.objectLiteral(i) && L.is(r.kind) && s.string(r.value);
|
|
563
563
|
}
|
|
564
564
|
e.is = n;
|
|
565
|
-
})(
|
|
565
|
+
})(Q || (Q = {}));
|
|
566
566
|
var l;
|
|
567
567
|
(function(e) {
|
|
568
568
|
e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25;
|
|
569
569
|
})(l || (l = {}));
|
|
570
|
-
var
|
|
570
|
+
var G;
|
|
571
571
|
(function(e) {
|
|
572
572
|
e.PlainText = 1, e.Snippet = 2;
|
|
573
|
-
})(
|
|
573
|
+
})(G || (G = {}));
|
|
574
574
|
var ce;
|
|
575
575
|
(function(e) {
|
|
576
576
|
e.Deprecated = 1;
|
|
@@ -621,7 +621,7 @@ var he;
|
|
|
621
621
|
(function(e) {
|
|
622
622
|
function n(i) {
|
|
623
623
|
var r = i;
|
|
624
|
-
return !!r && s.objectLiteral(r) && (
|
|
624
|
+
return !!r && s.objectLiteral(r) && (Q.is(r.contents) || z.is(r.contents) || s.typedArray(r.contents, z.is)) && (i.range === void 0 || p.is(i.range));
|
|
625
625
|
}
|
|
626
626
|
e.is = n;
|
|
627
627
|
})(he || (he = {}));
|
|
@@ -785,8 +785,8 @@ var Pe;
|
|
|
785
785
|
e.is = i;
|
|
786
786
|
function r(a, o) {
|
|
787
787
|
for (var u = a.getText(), f = t(o, function(y, N) {
|
|
788
|
-
var
|
|
789
|
-
return
|
|
788
|
+
var J = y.range.start.line - N.range.start.line;
|
|
789
|
+
return J === 0 ? y.range.start.character - N.range.start.character : J;
|
|
790
790
|
}), d = u.length, v = f.length - 1; v >= 0; v--) {
|
|
791
791
|
var w = f[v], E = a.offsetAt(w.range.start), g = a.offsetAt(w.range.end);
|
|
792
792
|
if (g <= d)
|
|
@@ -1029,7 +1029,7 @@ var it = class {
|
|
|
1029
1029
|
return d.textEdit && (at(d.textEdit) ? v.range = {
|
|
1030
1030
|
insert: _(d.textEdit.insert),
|
|
1031
1031
|
replace: _(d.textEdit.replace)
|
|
1032
|
-
} : v.range = _(d.textEdit.range), v.insertText = d.textEdit.newText), d.additionalTextEdits && (v.additionalTextEdits = d.additionalTextEdits.map(j)), d.insertTextFormat ===
|
|
1032
|
+
} : v.range = _(d.textEdit.range), v.insertText = d.textEdit.newText), d.additionalTextEdits && (v.additionalTextEdits = d.additionalTextEdits.map(j)), d.insertTextFormat === G.Snippet && (v.insertTextRules = c.languages.CompletionItemInsertTextRule.InsertAsSnippet), v;
|
|
1033
1033
|
});
|
|
1034
1034
|
return {
|
|
1035
1035
|
isIncomplete: a.isIncomplete,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as I, ref as s, onMounted as N, resolveComponent as r, openBlock as T, createBlock as z, withCtx as e, createVNode as t, createElementVNode as i, unref as l, createTextVNode as
|
|
2
|
-
import { u as
|
|
3
|
-
import
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as I, ref as s, onMounted as N, resolveComponent as r, openBlock as T, createBlock as z, withCtx as e, createVNode as t, createElementVNode as i, unref as l, createTextVNode as v } from "vue";
|
|
2
|
+
import { u as K, l as x, D as S, A, F as B, r as V, m as H, n as E, _ as J } from "./index-c9c30439.js";
|
|
3
|
+
import L from "./index-6ef372a0.js";
|
|
4
|
+
import { _ as M } from "./ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js";
|
|
5
|
+
const O = { style: { background: "#fff", textAlign: "center", height: "99%" } }, R = /* @__PURE__ */ I({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
id: {
|
|
@@ -11,33 +11,33 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
setup(u) {
|
|
14
|
-
const _ =
|
|
15
|
-
let b = s([]), f = s(),
|
|
14
|
+
const _ = K(), c = u;
|
|
15
|
+
let b = s([]), f = s(), m = s();
|
|
16
16
|
h(), D();
|
|
17
17
|
function h() {
|
|
18
18
|
const o = "/magicapi/zrzy-form/magic/form/form/list";
|
|
19
|
-
|
|
19
|
+
x.post({ url: o, params: { id: c.id } }, { withToken: !0 }).then((a) => {
|
|
20
20
|
const n = a.list[0];
|
|
21
|
-
if (
|
|
22
|
-
const
|
|
23
|
-
_.setFormData(
|
|
21
|
+
if (m.value = n.code, n.content != "") {
|
|
22
|
+
const d = JSON.parse(n.content);
|
|
23
|
+
_.setFormData(d);
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
function D() {
|
|
28
28
|
const o = "/magicapi/zrzy-form/magic/form/source/list";
|
|
29
|
-
|
|
29
|
+
x.post({ url: o, params: { formId: c.id } }, { withToken: !0 }).then((a) => {
|
|
30
30
|
b.value = a.list;
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
33
|
+
const p = s("1");
|
|
34
|
+
function F(o) {
|
|
35
35
|
f.value = o;
|
|
36
36
|
}
|
|
37
37
|
return N(() => {
|
|
38
|
-
_.setFormId(
|
|
38
|
+
_.setFormId(c.id);
|
|
39
39
|
}), (o, a) => {
|
|
40
|
-
const n = r("a-tab-pane"),
|
|
40
|
+
const n = r("a-tab-pane"), d = r("a-tabs"), y = r("a-layout-sider"), k = r("a-layout-header"), C = r("a-layout-content"), g = r("a-layout");
|
|
41
41
|
return T(), z(g, { style: { height: "100%", padding: "5px 5px" } }, {
|
|
42
42
|
default: e(() => [
|
|
43
43
|
t(y, {
|
|
@@ -45,32 +45,32 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
|
|
|
45
45
|
style: { left: 0, top: 0, bottom: 0 }
|
|
46
46
|
}, {
|
|
47
47
|
default: e(() => [
|
|
48
|
-
t(
|
|
49
|
-
activeKey:
|
|
50
|
-
"onUpdate:activeKey": a[0] || (a[0] = (w) =>
|
|
48
|
+
t(d, {
|
|
49
|
+
activeKey: p.value,
|
|
50
|
+
"onUpdate:activeKey": a[0] || (a[0] = (w) => p.value = w)
|
|
51
51
|
}, {
|
|
52
52
|
default: e(() => [
|
|
53
53
|
t(n, { key: "1" }, {
|
|
54
54
|
tab: e(() => [
|
|
55
55
|
i("span", null, [
|
|
56
|
-
t(l(
|
|
57
|
-
|
|
56
|
+
t(l(S)),
|
|
57
|
+
v(" 报表信息 ")
|
|
58
58
|
])
|
|
59
59
|
]),
|
|
60
60
|
default: e(() => [
|
|
61
|
-
t(
|
|
61
|
+
t(M)
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
64
|
}),
|
|
65
65
|
t(n, { key: "2" }, {
|
|
66
66
|
tab: e(() => [
|
|
67
67
|
i("span", null, [
|
|
68
|
-
t(l(
|
|
69
|
-
|
|
68
|
+
t(l(A)),
|
|
69
|
+
v(" 报表组件 ")
|
|
70
70
|
])
|
|
71
71
|
]),
|
|
72
72
|
default: e(() => [
|
|
73
|
-
t(
|
|
73
|
+
t(B, { "data-source": l(V) }, null, 8, ["data-source"])
|
|
74
74
|
]),
|
|
75
75
|
_: 1
|
|
76
76
|
})
|
|
@@ -84,17 +84,17 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
|
|
|
84
84
|
default: e(() => [
|
|
85
85
|
t(k, { style: { background: "#fff", border: "1px solid #e4e7ed", borderBottom: "0px" } }, {
|
|
86
86
|
default: e(() => [
|
|
87
|
-
t(
|
|
87
|
+
t(L, {
|
|
88
88
|
formId: u.id,
|
|
89
|
-
code: l(
|
|
89
|
+
code: l(m)
|
|
90
90
|
}, null, 8, ["formId", "code"])
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
93
|
}),
|
|
94
|
-
t(
|
|
94
|
+
t(C, { style: { overflow: "auto" } }, {
|
|
95
95
|
default: e(() => [
|
|
96
|
-
i("div",
|
|
97
|
-
t(
|
|
96
|
+
i("div", O, [
|
|
97
|
+
t(H, { onControlConfig: F })
|
|
98
98
|
])
|
|
99
99
|
]),
|
|
100
100
|
_: 1
|
|
@@ -107,7 +107,7 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
|
|
|
107
107
|
style: { right: 0, top: 0, bottom: 0 }
|
|
108
108
|
}, {
|
|
109
109
|
default: e(() => [
|
|
110
|
-
t(
|
|
110
|
+
t(E, { configData: l(f) }, null, 8, ["configData"])
|
|
111
111
|
]),
|
|
112
112
|
_: 1
|
|
113
113
|
})
|
|
@@ -117,7 +117,7 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
const
|
|
120
|
+
const G = /* @__PURE__ */ J(R, [["__scopeId", "data-v-62871ad5"]]);
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
G as default
|
|
123
123
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as F,
|
|
1
|
+
import { defineComponent as L, ref as r, resolveComponent as f, openBlock as c, createElementBlock as y, Fragment as k, createElementVNode as b, renderList as M, createVNode as s, withCtx as i, createTextVNode as h, toDisplayString as B, createBlock as x, unref as C, createCommentVNode as w } from "vue";
|
|
2
|
+
import { u as F, s as H, p as R, e as U, M as q, E as J, l as T, q as A, w as V, x as G, _ as K } from "./index-c9c30439.js";
|
|
3
3
|
function P(v) {
|
|
4
4
|
return `
|
|
5
5
|
<template>
|
|
@@ -8,15 +8,10 @@ function P(v) {
|
|
|
8
8
|
|
|
9
9
|
<script setup lang="ts">
|
|
10
10
|
import { defHttp } from "/@/utils/http/axios";
|
|
11
|
-
|
|
11
|
+
import { initTableList } from "/@/utils/form/wonder-report";
|
|
12
12
|
import { ref } from "vue";
|
|
13
13
|
let formModel = ref({})
|
|
14
|
-
|
|
15
|
-
function getData(viewData,formId){
|
|
16
|
-
defHttp.get({url:'/api/report/getReportData?formId='+formId}).then((res)=>{
|
|
17
|
-
viewData.value = res.data
|
|
18
|
-
})
|
|
19
|
-
}
|
|
14
|
+
initTableList(viewData,formId)
|
|
20
15
|
|
|
21
16
|
/**
|
|
22
17
|
* 分页
|
|
@@ -34,7 +29,7 @@ export function onChange(pag: any, callback: any) {
|
|
|
34
29
|
</style>
|
|
35
30
|
`;
|
|
36
31
|
}
|
|
37
|
-
const Q = { class: "flex-div" }, W = /* @__PURE__ */
|
|
32
|
+
const Q = { class: "flex-div" }, W = /* @__PURE__ */ L({
|
|
38
33
|
__name: "index",
|
|
39
34
|
props: {
|
|
40
35
|
formId: {
|
|
@@ -48,10 +43,10 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
|
|
|
48
43
|
},
|
|
49
44
|
setup(v) {
|
|
50
45
|
const p = v, n = F();
|
|
51
|
-
|
|
52
|
-
const a =
|
|
46
|
+
H(n);
|
|
47
|
+
const a = r(!1), l = r(!1), j = () => {
|
|
53
48
|
a.value = !0;
|
|
54
|
-
},
|
|
49
|
+
}, D = [
|
|
55
50
|
{ icon: "preview", title: "预览", type: "preview" },
|
|
56
51
|
{ icon: "json", title: "json", type: "json" },
|
|
57
52
|
{ icon: "ing", title: "测试数据", type: "ceshi" },
|
|
@@ -60,36 +55,36 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
|
|
|
60
55
|
{ icon: "save", title: "保存", type: "save" },
|
|
61
56
|
{ icon: "code", title: "文件", type: "saveVue" }
|
|
62
57
|
];
|
|
63
|
-
let u =
|
|
58
|
+
let u = r(), d = r("json");
|
|
64
59
|
function N(e) {
|
|
65
60
|
switch (e) {
|
|
66
61
|
case "json":
|
|
67
62
|
u.value = null, d.value = "json", j();
|
|
68
63
|
break;
|
|
69
64
|
case "code":
|
|
70
|
-
d.value = "html",
|
|
65
|
+
d.value = "html", $();
|
|
71
66
|
break;
|
|
72
67
|
case "preview":
|
|
73
|
-
|
|
68
|
+
l.value = !0;
|
|
74
69
|
break;
|
|
75
70
|
case "clear":
|
|
76
71
|
O();
|
|
77
72
|
break;
|
|
78
73
|
case "save":
|
|
79
|
-
|
|
74
|
+
E();
|
|
80
75
|
break;
|
|
81
76
|
case "saveVue":
|
|
82
|
-
|
|
77
|
+
z();
|
|
83
78
|
break;
|
|
84
79
|
default:
|
|
85
|
-
|
|
80
|
+
S();
|
|
86
81
|
break;
|
|
87
82
|
}
|
|
88
83
|
}
|
|
89
84
|
const O = () => {
|
|
90
85
|
q.confirm({
|
|
91
86
|
title: "确定清除当前表单吗?",
|
|
92
|
-
icon: s(
|
|
87
|
+
icon: s(J),
|
|
93
88
|
content: "清除后将不能找回",
|
|
94
89
|
onOk() {
|
|
95
90
|
n.formData.list = [];
|
|
@@ -98,32 +93,32 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
|
|
|
98
93
|
}
|
|
99
94
|
});
|
|
100
95
|
};
|
|
101
|
-
function
|
|
96
|
+
function S() {
|
|
102
97
|
const e = G[0];
|
|
103
98
|
n.setFormData1(e);
|
|
104
99
|
}
|
|
105
|
-
function
|
|
100
|
+
function $() {
|
|
106
101
|
u.value = P(), a.value = !0;
|
|
107
102
|
}
|
|
108
|
-
function
|
|
103
|
+
function z() {
|
|
109
104
|
const e = generate(), t = "/imaginform/zrzy-form/generate/createVue";
|
|
110
|
-
|
|
105
|
+
T.post({ url: t, data: { name: p.code, vueCode: A(e) } }, { withToken: !0 }).then((m) => {
|
|
111
106
|
m.code == 200 && V.success("保存成功");
|
|
112
107
|
});
|
|
113
108
|
}
|
|
114
109
|
const _ = (e) => {
|
|
115
110
|
a.value = !1;
|
|
116
|
-
},
|
|
111
|
+
}, E = () => {
|
|
117
112
|
const e = "/magicapi/zrzy-form/magic/form/form/edit";
|
|
118
|
-
|
|
113
|
+
T.post({ url: e, data: { id: p.formId, content: JSON.stringify(n.formData) } }, { withToken: !1 }).then((t) => {
|
|
119
114
|
t == 1 && V.success("保存成功");
|
|
120
115
|
});
|
|
121
116
|
};
|
|
122
117
|
return (e, t) => {
|
|
123
|
-
const m = f("svg-icon"),
|
|
118
|
+
const m = f("svg-icon"), I = f("a-button"), g = f("a-modal");
|
|
124
119
|
return c(), y(k, null, [
|
|
125
120
|
b("div", Q, [
|
|
126
|
-
(c(), y(k, null, M(
|
|
121
|
+
(c(), y(k, null, M(D, (o) => s(I, {
|
|
127
122
|
type: "text",
|
|
128
123
|
style: { margin: "auto 5px", color: "rgba(35,46,60,.7)" },
|
|
129
124
|
onClick: (X) => N(o.type)
|
|
@@ -151,7 +146,7 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
|
|
|
151
146
|
onOk: _
|
|
152
147
|
}, {
|
|
153
148
|
default: i(() => [
|
|
154
|
-
a.value ? (c(), x(
|
|
149
|
+
a.value ? (c(), x(R, {
|
|
155
150
|
key: 0,
|
|
156
151
|
code: C(u),
|
|
157
152
|
language: C(d)
|
|
@@ -160,14 +155,14 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
|
|
|
160
155
|
_: 1
|
|
161
156
|
}, 8, ["open"]),
|
|
162
157
|
s(g, {
|
|
163
|
-
open:
|
|
164
|
-
"onUpdate:open": t[1] || (t[1] = (o) =>
|
|
158
|
+
open: l.value,
|
|
159
|
+
"onUpdate:open": t[1] || (t[1] = (o) => l.value = o),
|
|
165
160
|
title: "预览",
|
|
166
161
|
width: "100%",
|
|
167
162
|
onOk: _
|
|
168
163
|
}, {
|
|
169
164
|
default: i(() => [
|
|
170
|
-
|
|
165
|
+
l.value ? (c(), x(U, { key: 0 })) : w("", !0)
|
|
171
166
|
]),
|
|
172
167
|
_: 1
|
|
173
168
|
}, 8, ["open"])
|