form-imagining 0.0.19 → 0.0.21
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/README.md +11 -8
- package/dist/{App-52419af9.js → App-117f2401.js} +1 -1
- package/dist/Code-2b650014.js +5 -0
- package/dist/Col-1ad3b02d.js +5 -0
- package/dist/Demo-be0d3a37.js +10 -0
- package/dist/{Demo-015b9b67.js → Demo-cb77eefd.js} +1 -1
- package/dist/{Form-0f5f50ca.js → Form-267b2acf.js} +1 -1
- package/dist/FormPublic-fcfcf793.js +5 -0
- package/dist/GenerateForm-2f713859.js +5 -0
- package/dist/Grid-8c79143b.js +5 -0
- package/dist/{HelloWorld-517394a2.js → HelloWorld-0cfd7df3.js} +1 -1
- package/dist/Input-/345/210/240/351/231/{244-4e69b06c.js → 244-c82959c3.js} +1 -1
- package/dist/Label-/345/210/240/351/231/{244-f578d3e5.js → 244-aa8cd9e3.js} +1 -1
- package/dist/{Login-a543825f.js → Login-fce41eee.js} +1 -1
- package/dist/ReportModule-297f2362.js +5 -0
- package/dist/SqlModule-329c9c55.js +5 -0
- package/dist/Table-62645938.js +5 -0
- package/dist/{cTable-431ee1b4.js → cTable-87c99e69.js} +1 -1
- package/dist/childForm-1af05ca1.js +5 -0
- package/dist/{cssMode-fe11d538.js → cssMode-d2a84267.js} +16 -16
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +313 -274
- package/dist/{freemarker2-a9827bc5.js → freemarker2-3efa9ea1.js} +1 -1
- package/dist/{handlebars-fd8c9253.js → handlebars-72a49cd2.js} +1 -1
- package/dist/{html-5b477149.js → html-1af18738.js} +1 -1
- package/dist/{htmlMode-0b28e3b6.js → htmlMode-9eeb1349.js} +12 -12
- package/dist/{index-1fec8e75.js → index-30b21584.js} +1 -1
- package/dist/{index-d5af5250.js → index-7a0091c2.js} +42619 -39769
- package/dist/{javascript-35762a78.js → javascript-47f9fb53.js} +2 -2
- package/dist/{jsonMode-a11989e3.js → jsonMode-e9558a7f.js} +1 -1
- package/dist/{liquid-f8e1c827.js → liquid-7869544b.js} +1 -1
- package/dist/{mdx-4548f19b.js → mdx-fdfe381b.js} +4 -4
- package/dist/{python-c05ae2c4.js → python-dcb57e90.js} +1 -1
- package/dist/{razor-d7fe2d0e.js → razor-f9413e1b.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-58dfc524.js → tableSelectDemo-9cfa765c.js} +1 -1
- package/dist/{tableSelectDemo2-02f609dc.js → tableSelectDemo2-8d43da9c.js} +1 -1
- package/dist/{tsMode-0eddd23b.js → tsMode-6849c82b.js} +13 -13
- package/dist/{typescript-dda9428f.js → typescript-dbbb0167.js} +1 -1
- package/dist/{xml-dc95c919.js → xml-0082bfd8.js} +1 -1
- package/dist/{yaml-aa39d268.js → yaml-d3ddc3e7.js} +1 -1
- package/package.json +1 -1
- package/dist/Code-2bb39b3d.js +0 -5
- package/dist/Col-2cdf69c5.js +0 -5
- package/dist/Demo-2f408623.js +0 -110
- 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/Preview0925-eb180084.js +0 -62
- package/dist/PreviewDemo-43295c2b.js +0 -6
- package/dist/PreviewDemo.vue_vue_type_script_setup_true_lang-4331a2aa.js +0 -285
- package/dist/PreviewDemo2-af5b2b15.js +0 -6
- package/dist/PreviewDemo2.vue_vue_type_script_setup_true_lang-c4c0faba.js +0 -88
- package/dist/PreviewDemo3-74865af3.js +0 -82
- package/dist/ReportModule-3bfd10cf.js +0 -6
- package/dist/ReportModule.vue_vue_type_script_setup_true_lang-33baf803.js +0 -105
- package/dist/SqlModule-265d1b00.js +0 -5
- package/dist/Table-05d6b54d.js +0 -5
- package/dist/childForm-5998f80c.js +0 -5
- package/dist/index-ad0b4ca1.js +0 -182
- package/dist/index-fcd8f846.js +0 -123
- package/dist/modalDemo-a8eef4e4.js +0 -53
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, ref as r, reactive as y, onMounted as j, resolveComponent as n, openBlock as z, createElementBlock as g, createVNode as t, withCtx as a, mergeProps as s, unref as d } from "vue";
|
|
2
|
-
import { o as x, v as f, b as p } from "./index-d5af5250.js";
|
|
3
|
-
const C = /* @__PURE__ */ w({
|
|
4
|
-
__name: "PreviewDemo2",
|
|
5
|
-
props: {
|
|
6
|
-
disabled: {
|
|
7
|
-
type: Boolean,
|
|
8
|
-
default: !1
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
setup(i, { expose: _ }) {
|
|
12
|
-
r([]), r([]);
|
|
13
|
-
const l = y({
|
|
14
|
-
bdc_djzb: {
|
|
15
|
-
业务号: "",
|
|
16
|
-
age: 20,
|
|
17
|
-
受理编号: 2
|
|
18
|
-
},
|
|
19
|
-
bdc_ywfw: {
|
|
20
|
-
name: "",
|
|
21
|
-
title: "我是yefw"
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
let u = r();
|
|
25
|
-
_({
|
|
26
|
-
onSubmit: c
|
|
27
|
-
}), j(() => {
|
|
28
|
-
console.info("我是预览页面");
|
|
29
|
-
});
|
|
30
|
-
function c() {
|
|
31
|
-
return x(u.value);
|
|
32
|
-
}
|
|
33
|
-
return (B, e) => {
|
|
34
|
-
const m = n("a-input"), b = n("a-form-item"), v = n("a-form");
|
|
35
|
-
return z(), g("div", {
|
|
36
|
-
class: "cici-form-css",
|
|
37
|
-
ref_key: "formRef",
|
|
38
|
-
ref: u
|
|
39
|
-
}, [
|
|
40
|
-
t(v, {
|
|
41
|
-
"label-col": { style: { width: "100px" } },
|
|
42
|
-
labelWrap: !0,
|
|
43
|
-
model: l
|
|
44
|
-
}, {
|
|
45
|
-
default: a(() => [
|
|
46
|
-
t(b, s({
|
|
47
|
-
required: "",
|
|
48
|
-
label: "受理编号"
|
|
49
|
-
}, d(f)["bdc_djzb.受理编号"]), {
|
|
50
|
-
default: a(() => [
|
|
51
|
-
t(m, {
|
|
52
|
-
value: l.bdc_djzb.受理编号,
|
|
53
|
-
"onUpdate:value": e[0] || (e[0] = (o) => l.bdc_djzb.受理编号 = o),
|
|
54
|
-
valueModifiers: { number: !0 },
|
|
55
|
-
disabled: i.disabled,
|
|
56
|
-
"write-field": "bdc_djzb.受理编号",
|
|
57
|
-
rules: [{ type: "required", msg: "必须填写此项" }, { type: "number", msg: "请填写数字" }],
|
|
58
|
-
onBlur: e[1] || (e[1] = (o) => d(p)(o, "blur"))
|
|
59
|
-
}, null, 8, ["value", "disabled"])
|
|
60
|
-
]),
|
|
61
|
-
_: 1
|
|
62
|
-
}, 16),
|
|
63
|
-
t(b, s({
|
|
64
|
-
required: "",
|
|
65
|
-
label: "名称"
|
|
66
|
-
}, d(f)["bdc_djzb.name"]), {
|
|
67
|
-
default: a(() => [
|
|
68
|
-
t(m, {
|
|
69
|
-
value: l.bdc_ywfw.name,
|
|
70
|
-
"onUpdate:value": e[2] || (e[2] = (o) => l.bdc_ywfw.name = o),
|
|
71
|
-
disabled: i.disabled,
|
|
72
|
-
"write-field": "bdc_djzb.name",
|
|
73
|
-
rules: [{ type: "required", msg: "必须填写此项" }],
|
|
74
|
-
onBlur: e[3] || (e[3] = (o) => d(p)(o, "blur"))
|
|
75
|
-
}, null, 8, ["value", "disabled"])
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
}, 16)
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["model"])
|
|
82
|
-
], 512);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
export {
|
|
87
|
-
C as _
|
|
88
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, ref as m, reactive as w, onMounted as C, onBeforeUpdate as D, resolveComponent as l, openBlock as K, createElementBlock as R, createVNode as e, unref as c, isRef as g, withCtx as o, createElementVNode as p } from "vue";
|
|
2
|
-
import { _ as x } from "./PreviewDemo.vue_vue_type_script_setup_true_lang-4331a2aa.js";
|
|
3
|
-
import { _ as B } from "./PreviewDemo2.vue_vue_type_script_setup_true_lang-c4c0faba.js";
|
|
4
|
-
import { s as h } from "./index-d5af5250.js";
|
|
5
|
-
const E = { class: "cici-form-css" }, z = /* @__PURE__ */ k({
|
|
6
|
-
__name: "PreviewDemo3",
|
|
7
|
-
setup(M) {
|
|
8
|
-
let t = m("1"), n = [], i = !1, a = m(!1);
|
|
9
|
-
w({
|
|
10
|
-
bdc_djzb: {
|
|
11
|
-
业务号: "",
|
|
12
|
-
age: 20,
|
|
13
|
-
受理编号: 2
|
|
14
|
-
},
|
|
15
|
-
bdc_ywfw: {
|
|
16
|
-
name: "",
|
|
17
|
-
title: "我是yefw"
|
|
18
|
-
}
|
|
19
|
-
}), C(() => {
|
|
20
|
-
i = !0;
|
|
21
|
-
}), D(() => {
|
|
22
|
-
n = [];
|
|
23
|
-
});
|
|
24
|
-
const f = (s) => {
|
|
25
|
-
s && i && n.push(s);
|
|
26
|
-
};
|
|
27
|
-
function u() {
|
|
28
|
-
h(n);
|
|
29
|
-
}
|
|
30
|
-
function b() {
|
|
31
|
-
a.value = !a.value;
|
|
32
|
-
}
|
|
33
|
-
return (s, r) => {
|
|
34
|
-
const _ = l("a-tab-pane"), v = l("a-tabs"), y = l("a-space");
|
|
35
|
-
return K(), R("div", E, [
|
|
36
|
-
e(v, {
|
|
37
|
-
activeKey: c(t),
|
|
38
|
-
"onUpdate:activeKey": r[0] || (r[0] = (d) => g(t) ? t.value = d : t = d)
|
|
39
|
-
}, {
|
|
40
|
-
default: o(() => [
|
|
41
|
-
e(_, {
|
|
42
|
-
key: "1",
|
|
43
|
-
tab: "测试1"
|
|
44
|
-
}, {
|
|
45
|
-
default: o(() => [
|
|
46
|
-
e(x, {
|
|
47
|
-
ref: f,
|
|
48
|
-
disabled: c(a)
|
|
49
|
-
}, null, 8, ["disabled"])
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}),
|
|
53
|
-
e(_, {
|
|
54
|
-
key: "2",
|
|
55
|
-
tab: "测试2",
|
|
56
|
-
forceRender: ""
|
|
57
|
-
}, {
|
|
58
|
-
default: o(() => [
|
|
59
|
-
e(B, {
|
|
60
|
-
ref: f,
|
|
61
|
-
disabled: c(a)
|
|
62
|
-
}, null, 8, ["disabled"])
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
})
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}, 8, ["activeKey"]),
|
|
69
|
-
e(y, null, {
|
|
70
|
-
default: o(() => [
|
|
71
|
-
p("a", { onClick: u }, "保存"),
|
|
72
|
-
p("a", { onClick: b }, "是否允许编辑")
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
})
|
|
76
|
-
]);
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
export {
|
|
81
|
-
z as default
|
|
82
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, ref as _, resolveComponent as u, openBlock as c, createBlock as b, unref as o, withCtx as n, createVNode as e, createTextVNode as y } from "vue";
|
|
2
|
-
import { w as v } from "./index-d5af5250.js";
|
|
3
|
-
const h = /* @__PURE__ */ f({
|
|
4
|
-
__name: "ReportModule",
|
|
5
|
-
setup(x) {
|
|
6
|
-
let t = _({});
|
|
7
|
-
function p() {
|
|
8
|
-
}
|
|
9
|
-
return (g, l) => {
|
|
10
|
-
const m = u("a-input"), r = u("a-form-item"), d = u("a-select"), s = u("a-button"), i = u("a-form");
|
|
11
|
-
return c(), b(i, {
|
|
12
|
-
model: o(t),
|
|
13
|
-
"label-col": { style: { width: "70px" } },
|
|
14
|
-
layout: "vertical",
|
|
15
|
-
autocomplete: "off",
|
|
16
|
-
onFinish: p
|
|
17
|
-
}, {
|
|
18
|
-
default: n(() => [
|
|
19
|
-
e(r, {
|
|
20
|
-
label: "报表编号",
|
|
21
|
-
name: "code",
|
|
22
|
-
rules: [{ required: !0, message: "报表编号" }]
|
|
23
|
-
}, {
|
|
24
|
-
default: n(() => [
|
|
25
|
-
e(m, {
|
|
26
|
-
value: o(t).code,
|
|
27
|
-
"onUpdate:value": l[0] || (l[0] = (a) => o(t).code = a),
|
|
28
|
-
prefix: "",
|
|
29
|
-
suffix: ""
|
|
30
|
-
}, null, 8, ["value"])
|
|
31
|
-
]),
|
|
32
|
-
_: 1
|
|
33
|
-
}),
|
|
34
|
-
e(r, {
|
|
35
|
-
label: "报表名称",
|
|
36
|
-
name: "name",
|
|
37
|
-
rules: [{ required: !0, message: "报表名称" }]
|
|
38
|
-
}, {
|
|
39
|
-
default: n(() => [
|
|
40
|
-
e(m, {
|
|
41
|
-
value: o(t).name,
|
|
42
|
-
"onUpdate:value": l[1] || (l[1] = (a) => o(t).name = a),
|
|
43
|
-
prefix: "",
|
|
44
|
-
suffix: ""
|
|
45
|
-
}, null, 8, ["value"])
|
|
46
|
-
]),
|
|
47
|
-
_: 1
|
|
48
|
-
}),
|
|
49
|
-
e(r, {
|
|
50
|
-
label: "数据源",
|
|
51
|
-
name: "dbType",
|
|
52
|
-
rules: [{ required: !0 }]
|
|
53
|
-
}, {
|
|
54
|
-
default: n(() => [
|
|
55
|
-
e(d, {
|
|
56
|
-
value: o(t).dbType,
|
|
57
|
-
"onUpdate:value": l[2] || (l[2] = (a) => o(t).dbType = a),
|
|
58
|
-
mode: "tags",
|
|
59
|
-
placeholder: "请选择",
|
|
60
|
-
style: { width: "100%" }
|
|
61
|
-
}, null, 8, ["value"])
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}),
|
|
65
|
-
e(r, {
|
|
66
|
-
label: "SQL/API",
|
|
67
|
-
name: "content",
|
|
68
|
-
rules: [{ required: !0 }]
|
|
69
|
-
}, {
|
|
70
|
-
default: n(() => [
|
|
71
|
-
e(v, {
|
|
72
|
-
modelValue: o(t).content,
|
|
73
|
-
"onUpdate:modelValue": l[3] || (l[3] = (a) => o(t).content = a),
|
|
74
|
-
theme: "themeGray",
|
|
75
|
-
language: "typescript",
|
|
76
|
-
style: { width: "100%", border: "1px solid #e5e7eb" },
|
|
77
|
-
height: "250px",
|
|
78
|
-
"update:modelValue": "reportData.content"
|
|
79
|
-
}, null, 8, ["modelValue"])
|
|
80
|
-
]),
|
|
81
|
-
_: 1
|
|
82
|
-
}),
|
|
83
|
-
e(r, { "wrapper-col": { offset: 16, span: 8 } }, {
|
|
84
|
-
default: n(() => [
|
|
85
|
-
e(s, {
|
|
86
|
-
type: "primary",
|
|
87
|
-
"html-type": "submit"
|
|
88
|
-
}, {
|
|
89
|
-
default: n(() => [
|
|
90
|
-
y("解析")
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
})
|
|
94
|
-
]),
|
|
95
|
-
_: 1
|
|
96
|
-
})
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
}, 8, ["model"]);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
export {
|
|
104
|
-
h as _
|
|
105
|
-
};
|
package/dist/Table-05d6b54d.js
DELETED
package/dist/index-ad0b4ca1.js
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { defineComponent as H, ref as l, 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, x as R, r as L, e as U, M as q, E as A, q as D, y as J, n as V, A as G, _ as K } from "./index-d5af5250.js";
|
|
3
|
-
function P(v) {
|
|
4
|
-
return `
|
|
5
|
-
<template>
|
|
6
|
-
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script setup lang="ts">
|
|
10
|
-
import { defHttp } from "/@/utils/http/axios";
|
|
11
|
-
|
|
12
|
-
import { ref } from "vue";
|
|
13
|
-
let formModel = ref({})
|
|
14
|
-
getData(viewData,formId)
|
|
15
|
-
function getData(viewData,formId){
|
|
16
|
-
defHttp.get({url:'/api/report/getReportData?formId='+formId}).then((res)=>{
|
|
17
|
-
viewData.value = res.data
|
|
18
|
-
})
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 分页
|
|
23
|
-
* @param pag
|
|
24
|
-
* @param callback 回调函数
|
|
25
|
-
*/
|
|
26
|
-
export function onChange(pag: any, callback: any) {
|
|
27
|
-
pagination.value = pag
|
|
28
|
-
callback()
|
|
29
|
-
}
|
|
30
|
-
<\/script>
|
|
31
|
-
|
|
32
|
-
<style scoped lang="less">
|
|
33
|
-
@import url('/@/assets/less/form.less');
|
|
34
|
-
</style>
|
|
35
|
-
`;
|
|
36
|
-
}
|
|
37
|
-
const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
|
|
38
|
-
__name: "index",
|
|
39
|
-
props: {
|
|
40
|
-
formId: {
|
|
41
|
-
type: Number,
|
|
42
|
-
default: 14
|
|
43
|
-
},
|
|
44
|
-
code: {
|
|
45
|
-
type: String,
|
|
46
|
-
defalut: ""
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
setup(v) {
|
|
50
|
-
const p = v, n = F();
|
|
51
|
-
R(n);
|
|
52
|
-
const a = l(!1), r = l(!1), j = () => {
|
|
53
|
-
a.value = !0;
|
|
54
|
-
}, I = [
|
|
55
|
-
{ icon: "preview", title: "预览", type: "preview" },
|
|
56
|
-
{ icon: "json", title: "json", type: "json" },
|
|
57
|
-
{ icon: "ing", title: "测试数据", type: "ceshi" },
|
|
58
|
-
{ icon: "clear", title: "清除", type: "clear" },
|
|
59
|
-
{ icon: "code", title: "代码", type: "code" },
|
|
60
|
-
{ icon: "save", title: "保存", type: "save" },
|
|
61
|
-
{ icon: "code", title: "文件", type: "saveVue" }
|
|
62
|
-
];
|
|
63
|
-
let u = l(), d = l("json");
|
|
64
|
-
function N(e) {
|
|
65
|
-
switch (e) {
|
|
66
|
-
case "json":
|
|
67
|
-
u.value = null, d.value = "json", j();
|
|
68
|
-
break;
|
|
69
|
-
case "code":
|
|
70
|
-
d.value = "html", S();
|
|
71
|
-
break;
|
|
72
|
-
case "preview":
|
|
73
|
-
r.value = !0;
|
|
74
|
-
break;
|
|
75
|
-
case "clear":
|
|
76
|
-
O();
|
|
77
|
-
break;
|
|
78
|
-
case "save":
|
|
79
|
-
z();
|
|
80
|
-
break;
|
|
81
|
-
case "saveVue":
|
|
82
|
-
$();
|
|
83
|
-
break;
|
|
84
|
-
default:
|
|
85
|
-
T();
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
const O = () => {
|
|
90
|
-
q.confirm({
|
|
91
|
-
title: "确定清除当前表单吗?",
|
|
92
|
-
icon: s(A),
|
|
93
|
-
content: "清除后将不能找回",
|
|
94
|
-
onOk() {
|
|
95
|
-
n.formData.list = [];
|
|
96
|
-
},
|
|
97
|
-
onCancel() {
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
function T() {
|
|
102
|
-
const e = G[0];
|
|
103
|
-
n.setFormData1(e);
|
|
104
|
-
}
|
|
105
|
-
function S() {
|
|
106
|
-
u.value = P(), a.value = !0;
|
|
107
|
-
}
|
|
108
|
-
function $() {
|
|
109
|
-
const e = generate(), t = "/imaginform/zrzy-form/generate/createVue";
|
|
110
|
-
D.post({ url: t, data: { name: p.code, vueCode: J(e) } }, { withToken: !0 }).then((m) => {
|
|
111
|
-
m.code == 200 && V.success("保存成功");
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
const _ = (e) => {
|
|
115
|
-
a.value = !1;
|
|
116
|
-
}, z = () => {
|
|
117
|
-
const e = "/magicapi/zrzy-form/magic/form/form/edit";
|
|
118
|
-
D.post({ url: e, data: { id: p.formId, content: JSON.stringify(n.formData) } }, { withToken: !1 }).then((t) => {
|
|
119
|
-
t == 1 && V.success("保存成功");
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
return (e, t) => {
|
|
123
|
-
const m = f("svg-icon"), E = f("a-button"), g = f("a-modal");
|
|
124
|
-
return c(), y(k, null, [
|
|
125
|
-
b("div", Q, [
|
|
126
|
-
(c(), y(k, null, M(I, (o) => s(E, {
|
|
127
|
-
type: "text",
|
|
128
|
-
style: { margin: "auto 5px", color: "rgba(35,46,60,.7)" },
|
|
129
|
-
onClick: (X) => N(o.type)
|
|
130
|
-
}, {
|
|
131
|
-
icon: i(() => [
|
|
132
|
-
s(m, {
|
|
133
|
-
name: o.icon,
|
|
134
|
-
class: "toolbar-css",
|
|
135
|
-
title: o.title
|
|
136
|
-
}, null, 8, ["name", "title"]),
|
|
137
|
-
h(" ")
|
|
138
|
-
]),
|
|
139
|
-
default: i(() => [
|
|
140
|
-
h(" " + B(o.title), 1)
|
|
141
|
-
]),
|
|
142
|
-
_: 2
|
|
143
|
-
}, 1032, ["onClick"])), 64))
|
|
144
|
-
]),
|
|
145
|
-
b("div", null, [
|
|
146
|
-
s(g, {
|
|
147
|
-
open: a.value,
|
|
148
|
-
"onUpdate:open": t[0] || (t[0] = (o) => a.value = o),
|
|
149
|
-
title: "代码",
|
|
150
|
-
width: "1000px",
|
|
151
|
-
onOk: _
|
|
152
|
-
}, {
|
|
153
|
-
default: i(() => [
|
|
154
|
-
a.value ? (c(), x(L, {
|
|
155
|
-
key: 0,
|
|
156
|
-
code: C(u),
|
|
157
|
-
language: C(d)
|
|
158
|
-
}, null, 8, ["code", "language"])) : w("", !0)
|
|
159
|
-
]),
|
|
160
|
-
_: 1
|
|
161
|
-
}, 8, ["open"]),
|
|
162
|
-
s(g, {
|
|
163
|
-
open: r.value,
|
|
164
|
-
"onUpdate:open": t[1] || (t[1] = (o) => r.value = o),
|
|
165
|
-
title: "预览",
|
|
166
|
-
width: "100%",
|
|
167
|
-
onOk: _
|
|
168
|
-
}, {
|
|
169
|
-
default: i(() => [
|
|
170
|
-
r.value ? (c(), x(U, { key: 0 })) : w("", !0)
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
}, 8, ["open"])
|
|
174
|
-
])
|
|
175
|
-
], 64);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
const ee = /* @__PURE__ */ K(W, [["__scopeId", "data-v-ac8c43ce"]]);
|
|
180
|
-
export {
|
|
181
|
-
ee as default
|
|
182
|
-
};
|
package/dist/index-fcd8f846.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
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 x } from "vue";
|
|
2
|
-
import { u as B, q as v, D as K, B as S, C as H, G as V, H as A, I as q, _ as E } from "./index-d5af5250.js";
|
|
3
|
-
import G from "./index-ad0b4ca1.js";
|
|
4
|
-
import { _ as J } from "./ReportModule.vue_vue_type_script_setup_true_lang-33baf803.js";
|
|
5
|
-
const L = { style: { background: "#fff", textAlign: "center", height: "99%" } }, M = /* @__PURE__ */ I({
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
id: {
|
|
9
|
-
type: Number,
|
|
10
|
-
default: 28
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
setup(u) {
|
|
14
|
-
const _ = B(), d = u;
|
|
15
|
-
let b = s([]), f = s(), p = s();
|
|
16
|
-
h(), D();
|
|
17
|
-
function h() {
|
|
18
|
-
const o = "/magicapi/zrzy-form/magic/form/form/list";
|
|
19
|
-
v.post({ url: o, params: { id: d.id } }, { withToken: !0 }).then((a) => {
|
|
20
|
-
const n = a.list[0];
|
|
21
|
-
if (p.value = n.code, n.content != "") {
|
|
22
|
-
const c = JSON.parse(n.content);
|
|
23
|
-
_.setFormData(c);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function D() {
|
|
28
|
-
const o = "/magicapi/zrzy-form/magic/form/source/list";
|
|
29
|
-
v.post({ url: o, params: { formId: d.id } }, { withToken: !0 }).then((a) => {
|
|
30
|
-
b.value = a.list;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
const m = s("1");
|
|
34
|
-
function C(o) {
|
|
35
|
-
f.value = o;
|
|
36
|
-
}
|
|
37
|
-
return N(() => {
|
|
38
|
-
_.setFormId(d.id);
|
|
39
|
-
}), (o, a) => {
|
|
40
|
-
const n = r("a-tab-pane"), c = r("a-tabs"), y = r("a-layout-sider"), k = r("a-layout-header"), F = r("a-layout-content"), g = r("a-layout");
|
|
41
|
-
return T(), z(g, { style: { height: "100%", padding: "5px 5px" } }, {
|
|
42
|
-
default: e(() => [
|
|
43
|
-
t(y, {
|
|
44
|
-
width: "270",
|
|
45
|
-
style: { left: 0, top: 0, bottom: 0 }
|
|
46
|
-
}, {
|
|
47
|
-
default: e(() => [
|
|
48
|
-
t(c, {
|
|
49
|
-
activeKey: m.value,
|
|
50
|
-
"onUpdate:activeKey": a[0] || (a[0] = (w) => m.value = w)
|
|
51
|
-
}, {
|
|
52
|
-
default: e(() => [
|
|
53
|
-
t(n, { key: "1" }, {
|
|
54
|
-
tab: e(() => [
|
|
55
|
-
i("span", null, [
|
|
56
|
-
t(l(K)),
|
|
57
|
-
x(" 报表信息 ")
|
|
58
|
-
])
|
|
59
|
-
]),
|
|
60
|
-
default: e(() => [
|
|
61
|
-
t(J)
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}),
|
|
65
|
-
t(n, { key: "2" }, {
|
|
66
|
-
tab: e(() => [
|
|
67
|
-
i("span", null, [
|
|
68
|
-
t(l(S)),
|
|
69
|
-
x(" 报表组件 ")
|
|
70
|
-
])
|
|
71
|
-
]),
|
|
72
|
-
default: e(() => [
|
|
73
|
-
t(H, { "data-source": l(V) }, null, 8, ["data-source"])
|
|
74
|
-
]),
|
|
75
|
-
_: 1
|
|
76
|
-
})
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}, 8, ["activeKey"])
|
|
80
|
-
]),
|
|
81
|
-
_: 1
|
|
82
|
-
}),
|
|
83
|
-
t(g, { style: { margin: "0px 5px" } }, {
|
|
84
|
-
default: e(() => [
|
|
85
|
-
t(k, { style: { background: "#fff", border: "1px solid #e4e7ed", borderBottom: "0px" } }, {
|
|
86
|
-
default: e(() => [
|
|
87
|
-
t(G, {
|
|
88
|
-
formId: u.id,
|
|
89
|
-
code: l(p)
|
|
90
|
-
}, null, 8, ["formId", "code"])
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
}),
|
|
94
|
-
t(F, { style: { overflow: "auto" } }, {
|
|
95
|
-
default: e(() => [
|
|
96
|
-
i("div", L, [
|
|
97
|
-
t(A, { onControlConfig: C })
|
|
98
|
-
])
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
})
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
}),
|
|
105
|
-
t(y, {
|
|
106
|
-
width: "250",
|
|
107
|
-
style: { right: 0, top: 0, bottom: 0 }
|
|
108
|
-
}, {
|
|
109
|
-
default: e(() => [
|
|
110
|
-
t(q, { configData: l(f) }, null, 8, ["configData"])
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
})
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
const P = /* @__PURE__ */ E(M, [["__scopeId", "data-v-62871ad5"]]);
|
|
121
|
-
export {
|
|
122
|
-
P as default
|
|
123
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, onBeforeUnmount as c, resolveComponent as f, openBlock as u, createElementBlock as _, Fragment as p, createVNode as a, withCtx as l, createTextVNode as i } from "vue";
|
|
2
|
-
import { c as r } from "./index-d5af5250.js";
|
|
3
|
-
const h = /* @__PURE__ */ d({
|
|
4
|
-
__name: "modalDemo",
|
|
5
|
-
setup(C) {
|
|
6
|
-
let e;
|
|
7
|
-
function s() {
|
|
8
|
-
e ? e.show() : e = r({
|
|
9
|
-
title: "test",
|
|
10
|
-
onOk: (t) => {
|
|
11
|
-
t.onSubmit() && (e.setConfirmLoading(!0), setTimeout(() => {
|
|
12
|
-
e.setConfirmLoading(!1), e.destroy(), e = null;
|
|
13
|
-
}, 2e3));
|
|
14
|
-
},
|
|
15
|
-
onCancel: () => {
|
|
16
|
-
e.close();
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function m() {
|
|
21
|
-
let t = r({
|
|
22
|
-
title: "test",
|
|
23
|
-
onOk: (o) => {
|
|
24
|
-
o.onSubmit() && (t.setConfirmLoading(!0), setTimeout(() => {
|
|
25
|
-
t.setConfirmLoading(!1), t.destroy();
|
|
26
|
-
}, 2e3));
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return c(() => {
|
|
31
|
-
e == null || e.destroy();
|
|
32
|
-
}), (t, o) => {
|
|
33
|
-
const n = f("a-button");
|
|
34
|
-
return u(), _(p, null, [
|
|
35
|
-
a(n, { onClick: s }, {
|
|
36
|
-
default: l(() => [
|
|
37
|
-
i("打开弹窗")
|
|
38
|
-
]),
|
|
39
|
-
_: 1
|
|
40
|
-
}),
|
|
41
|
-
a(n, { onClick: m }, {
|
|
42
|
-
default: l(() => [
|
|
43
|
-
i("打开弹窗2")
|
|
44
|
-
]),
|
|
45
|
-
_: 1
|
|
46
|
-
})
|
|
47
|
-
], 64);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
export {
|
|
52
|
-
h as default
|
|
53
|
-
};
|