form-imagining 0.0.92-beta6 → 0.0.92-beta7
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-Dy69lJby.js +32 -0
- package/dist/App-gc8TY4z8.js +32 -0
- package/dist/Area-BKmK8jAi.js +4 -0
- package/dist/Area-DZeS7unN.js +4 -0
- package/dist/Bar-CXRAabBP.js +4 -0
- package/dist/Bar-C_8o4_k-.js +4 -0
- package/dist/ChartsArea-BmlTeyPc.js +4 -0
- package/dist/ChartsArea-Cz8PpepF.js +4 -0
- package/dist/ChartsBar-6xGUNU0K.js +4 -0
- package/dist/ChartsBar-toEDM9iv.js +4 -0
- package/dist/ChartsPie-0Hqhq0nd.js +4 -0
- package/dist/ChartsPie-CY8qBCHU.js +4 -0
- package/dist/CheckBoxModel-8yTw_hwe.js +4 -0
- package/dist/CheckBoxModel-COopxYk6.js +4 -0
- package/dist/Col-C0fJOt4h.js +4 -0
- package/dist/Col-CKrU575z.js +4 -0
- package/dist/Collapse-CuPcg5DN.js +4 -0
- package/dist/Collapse-DY8JJf-8.js +4 -0
- package/dist/{CommonText copy-B643btsR.js → CommonText copy-CmlDkDvl.js } +38 -38
- package/dist/CommonText copy-D48YGV78.js +189 -0
- package/dist/{Demo copy-Bux2O9AZ.js → Demo copy-CubdSIKo.js } +2 -2
- package/dist/Demo-BBlmCZIs.js +201 -0
- package/dist/{Demo-CimZDSZD.js → Demo-C_7IdDRC.js} +2 -2
- package/dist/{Demo-DD_E8Ai0.js → Demo-CePtih08.js} +29 -29
- package/dist/Demo-DFdHFJP7.js +72 -0
- package/dist/FView-BN6y0eGJ.js +4 -0
- package/dist/FView-DBymGl_r.js +4 -0
- package/dist/FX-BrTyQb5T.js +4 -0
- package/dist/FX-Cu1QaTr2.js +4 -0
- package/dist/{Form-CE0VVIWD.js → Form-CsKlmwSd.js} +4 -4
- package/dist/FormGridCopy-C5JaVFdK.js +168 -0
- package/dist/{FormGridCopy-QMd-e6gZ.js → FormGridCopy-D946vIFX.js} +36 -36
- package/dist/FormImagining-BDVWZeL1.js +9 -0
- package/dist/FormImagining-CHHDf_kr.js +9 -0
- package/dist/GenerateForm-B0EeOsMt.js +4 -0
- package/dist/GenerateForm-BbDcX3WR.js +4 -0
- package/dist/GenerateReport-BjePkHFB.js +4 -0
- package/dist/GenerateReport-Co5jGfx3.js +4 -0
- package/dist/HelloWorld-Cmw0q963.js +9 -0
- package/dist/HelloWorld-w6Uyo7RK.js +9 -0
- package/dist/Input-/345/210/240/351/231/{244-B-UBNSP7.js → 244-CogaNq_E.js} +3 -3
- package/dist/Input-/345/210/240/351/231/244-M97srcEi.js +87 -0
- package/dist/Label-/345/210/240/351/231/244-BmNexBjX.js +92 -0
- package/dist/Label-/345/210/240/351/231/{244-hylaZnyv.js → 244-DTwh4xrp.js} +4 -4
- package/dist/LabelModel-CKWPaxYH.js +4 -0
- package/dist/LabelModel-DO1SQ8ED.js +4 -0
- package/dist/Login-DOgkipof.js +9 -0
- package/dist/Login-uyqpY1Ly.js +9 -0
- package/dist/Pie-Cxi4RDmx.js +4 -0
- package/dist/Pie-DNK2X15G.js +4 -0
- package/dist/PropertyIndex-Bd2Pm7mk.js +4 -0
- package/dist/PropertyIndex-DDRfn6_M.js +4 -0
- package/dist/RView-C3dg-Yqj.js +4 -0
- package/dist/RView-iZlDKePW.js +4 -0
- package/dist/SqlModule-CZ8IWtNr.js +4 -0
- package/dist/SqlModule-Dn2xznSB.js +4 -0
- package/dist/{SvgIconCopy-CC9UpEw1.js → SvgIconCopy-BAgUz2L5.js} +7 -7
- package/dist/SvgIconCopy-CObs-hJv.js +39 -0
- package/dist/TableBtnModal-BUlt0iHM.js +4 -0
- package/dist/TableBtnModal-R_RsD8Ea.js +4 -0
- package/dist/TextModel-C6EGEBqy.js +9 -0
- package/dist/TextModel-D-fhyH0w.js +9 -0
- package/dist/childForm-CDlmnWpq.js +4 -0
- package/dist/childForm-Cgfks09_.js +4 -0
- package/dist/{cssMode-BevUSJIs.js → cssMode-6xsZ8ZGX.js} +1 -1
- package/dist/cssMode-BMk0-3nN.js +1577 -0
- package/dist/form-imagining.js +9 -9
- package/dist/form-imagining.umd.cjs +259 -261
- package/dist/formTest-C42FmOpn.js +19 -0
- package/dist/formTest-tdHK1NX3.js +19 -0
- package/dist/{freemarker2-RntfmZOW.js → freemarker2-ClWG2wsn.js} +1 -1
- package/dist/freemarker2-D12KUO_x.js +995 -0
- package/dist/{handlebars-Cos4lZca.js → handlebars-CfS26JAU.js} +1 -1
- package/dist/handlebars-CyCFSLnS.js +425 -0
- package/dist/{html-Uag4N1dQ.js → html-4yUK2tg_.js} +1 -1
- package/dist/html-Brn93q0c.js +314 -0
- package/dist/{htmlMode-BhOweWtW.js → htmlMode-C0e-P-9j.js} +1 -1
- package/dist/htmlMode-CedhMm4n.js +1587 -0
- package/dist/index - /345/211/257/346/234/{254-dGB_y2eB.js" → 254-BzAzJmyM.js" } +31 -31
- package/dist/index - /345/211/257/346/234/254-DKBhcAeE.js" +531 -0
- package/dist/index-Bm-XlawA.js +11 -0
- package/dist/{index-Bnry2ZnT.js → index-BypfeQHD.js} +5 -5
- package/dist/{index-Djxsz7aX.js → index-CGewm3AG.js} +10578 -10356
- package/dist/index-DHKV0Flv.js +11 -0
- package/dist/index-DR7adI8e.js +300221 -0
- package/dist/index-DuQaPsVU.js +36 -0
- package/dist/index-JO80Najh.js +3323 -0
- package/dist/index-Uv2ByVY2.js +3323 -0
- package/dist/{javascript-inEC7YCz.js → javascript-CYQBr6_b.js} +1 -1
- package/dist/javascript-DjSH_4ZT.js +76 -0
- package/dist/json/scope_type.json +6 -6
- package/dist/{jsonMode-Buplw_74.js → jsonMode-DihBdHqw.js} +1 -1
- package/dist/jsonMode-Lmzjav2p.js +2002 -0
- package/dist/{liquid-CXCXl0KK.js → liquid-BxLo43Ct.js} +1 -1
- package/dist/liquid-D14hiY5U.js +246 -0
- package/dist/{mdx-C8oAZz3N.js → mdx-BDpw5Kbd.js} +1 -1
- package/dist/mdx-C_MygCTF.js +171 -0
- package/dist/{python-ISYPt2bG.js → python-C9ti-PHF.js} +1 -1
- package/dist/python-CUIJvIHb.js +307 -0
- package/dist/{razor-BoONAPbT.js → razor-BbUoXQDE.js} +1 -1
- package/dist/razor-DIK7kb6j.js +556 -0
- package/dist/setting.json +3 -3
- package/dist/style.css +1 -1
- package/dist/tableSelectDemo-BTFNNFzZ.js +134 -0
- package/dist/{tableSelectDemo-l99YI8J9.js → tableSelectDemo-Dx7qyy56.js} +18 -18
- package/dist/tableSelectDemo2-CZ2D8wAR.js +108 -0
- package/dist/{tableSelectDemo2-OfOWLB-I.js → tableSelectDemo2-CgipzvsA.js} +6 -6
- package/dist/{tsMode-qM4H6_33.js → tsMode-DpO4uS0I.js} +1 -1
- package/dist/tsMode-iDHD8gbC.js +895 -0
- package/dist/{typescript-CQq3LImM.js → typescript-C6ioGGYS.js} +1 -1
- package/dist/typescript-CgBbKzVq.js +349 -0
- package/dist/{xml-DSo44BnU.js → xml-DTVqjyvz.js} +1 -1
- package/dist/xml-qdG2F75N.js +101 -0
- package/dist/{yaml-BocXdDT1.js → yaml-BXojr1-a.js} +1 -1
- package/dist/yaml-BvaiX8e3.js +212 -0
- package/package.json +68 -68
- package/dist/App-DtMf3n_F.js +0 -30
- package/dist/Area-gYvfwS2L.js +0 -4
- package/dist/Bar-ODGClNe0.js +0 -4
- package/dist/ChartsArea-CQwwd2lJ.js +0 -4
- package/dist/ChartsBar-BKMAI52E.js +0 -4
- package/dist/ChartsPie-BBp_ag4Y.js +0 -4
- package/dist/CheckBoxModel-CAtOkaZl.js +0 -4
- package/dist/Col-BjOWCaAV.js +0 -4
- package/dist/Collapse-xi1XYSvh.js +0 -4
- package/dist/FView-lgPHPdpT.js +0 -4
- package/dist/FX-DITkqQ2E.js +0 -4
- package/dist/FormImagining-DMMX4UTU.js +0 -9
- package/dist/GenerateForm-CbTFj_A8.js +0 -4
- package/dist/GenerateReport-DTLeuaUN.js +0 -4
- package/dist/HelloWorld-BfnT0WhV.js +0 -9
- package/dist/LabelModel-DPw6ImbD.js +0 -4
- package/dist/Login-BdZxDvKs.js +0 -9
- package/dist/Pie-KAdq-zq0.js +0 -4
- package/dist/PropertyIndex-B5sPOPGF.js +0 -4
- package/dist/RView-Dti2PztB.js +0 -4
- package/dist/SqlModule-Bs93rJS9.js +0 -4
- package/dist/TableBtnModal-CP8poyU5.js +0 -4
- package/dist/TextModel-BxnsH9j1.js +0 -9
- package/dist/childForm-2suLJZtu.js +0 -4
- package/dist/formTest-DdkaJBmv.js +0 -19
- package/dist/index-Bu9AKZLX.js +0 -3658
- package/dist/index-DhqC9JWs.js +0 -11
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { defineComponent as G, ref as s, reactive as K, resolveComponent as r, openBlock as n, createElementBlock as l, createVNode as c, withCtx as d, createTextVNode as p, unref as a, createBlock as y, createCommentVNode as L, isRef as P, Fragment as g, toDisplayString as f, withModifiers as Q } from "vue";
|
|
2
|
+
import { aJ as X, ah as z, ag as h, am as O, a4 as Y, ar as Z, _ as ee } from "./index-CGewm3AG.js";
|
|
3
|
+
const te = {
|
|
4
|
+
ref: "formRef",
|
|
5
|
+
class: "cici-form-css",
|
|
6
|
+
style: { padding: "10px" }
|
|
7
|
+
}, ae = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "required-text"
|
|
10
|
+
}, oe = { key: 1 }, ne = ["onClick"], ie = /* @__PURE__ */ G({
|
|
11
|
+
__name: "Demo",
|
|
12
|
+
setup(de) {
|
|
13
|
+
X();
|
|
14
|
+
let u = s([]), _ = s(), w = s([]), B = s({}), V = s(!1), q = s(!1), m = K({
|
|
15
|
+
formId: "",
|
|
16
|
+
tableName: "",
|
|
17
|
+
title: "文件",
|
|
18
|
+
keyCol: "",
|
|
19
|
+
searchInfo: []
|
|
20
|
+
}), A = {
|
|
21
|
+
title: {
|
|
22
|
+
text: "本年度不动产登记情况",
|
|
23
|
+
width: "800",
|
|
24
|
+
height: "400"
|
|
25
|
+
},
|
|
26
|
+
xAxis: [
|
|
27
|
+
{
|
|
28
|
+
type: "category",
|
|
29
|
+
dataIndex: "month",
|
|
30
|
+
pointerType: "shadow"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
yAxis: [{ name: "抵押", type: "value", min: "1", interval: 100, unit: "个" }],
|
|
34
|
+
series: [{ name: "产权", type: "bar", dataIndex: "cq_count" }, { name: "抵押", type: "bar", dataIndex: "dy_count", unit: "个" }, { name: "预告", type: "line", dataIndex: "yg_count" }]
|
|
35
|
+
};
|
|
36
|
+
_.value = { total: 0, current: 1, pageSize: 5, showSizeChanger: !1, showTotal: (o) => `共 ${o} 条数据` }, w.value = [{ key: "column-617ff7f2-a54f-1979c0fd2a8-fd70-700057f84a62", title: "year", dataIndex: "year", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-1cf72339-f874-1979c0fd2a8-b988-60f9b58ff66a", title: "month", dataIndex: "month", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-84b63a70-2238-1979c0fd2a8-29a5-68340db892fa", title: "cq_count", dataIndex: "cq_count", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-f8aa1b10-fe0d-1979c0fd2a8-8167-9c69e75fdf15", title: "dy_count", dataIndex: "dy_count", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-cf6692ef-5ce7-1979c0fd2a8-4531-cb617052dd15", title: "yg_count", dataIndex: "yg_count", width: "auto", options: { hidden: !1 }, rules: [] }, { id: "action", key: "action", title: "操作", dataIndex: "action", width: "auto", fixed: "right", align: "left", options: { hidden: !1 }, rules: [] }], m.formId = "1935623887264063490", m.title = "刘鹭测试";
|
|
37
|
+
let b = s([]), k = {
|
|
38
|
+
viewData: B,
|
|
39
|
+
dataSource: u,
|
|
40
|
+
reportInfo: m,
|
|
41
|
+
paginations: _,
|
|
42
|
+
loading: V,
|
|
43
|
+
sortField: "",
|
|
44
|
+
sortOrder: ""
|
|
45
|
+
};
|
|
46
|
+
function M() {
|
|
47
|
+
_.value.current = 1, O(k);
|
|
48
|
+
}
|
|
49
|
+
let E = s([]);
|
|
50
|
+
E.value = w.value;
|
|
51
|
+
function R(o) {
|
|
52
|
+
E.value = o;
|
|
53
|
+
}
|
|
54
|
+
function W(o, i) {
|
|
55
|
+
const { sorter: C, pagination: D } = o, { field: x, order: I } = C;
|
|
56
|
+
k.sortField = x, k.sortOrder = I, _.value.current = D.current, O(k);
|
|
57
|
+
}
|
|
58
|
+
function $(o) {
|
|
59
|
+
let i = s(o);
|
|
60
|
+
if (i.value.length == 0) {
|
|
61
|
+
Y.warning("请选择要导出的列");
|
|
62
|
+
return;
|
|
63
|
+
} else
|
|
64
|
+
Z(i, B, m, q);
|
|
65
|
+
}
|
|
66
|
+
return (o, i) => {
|
|
67
|
+
const C = r("a-col"), D = r("a-button"), x = r("a-form-item"), I = r("a-row"), F = r("a-form"), H = r("c-echarts-bar"), T = r("a-tag"), J = r("a-divider"), U = r("a-space"), j = r("c-table");
|
|
68
|
+
return n(), l("div", te, [
|
|
69
|
+
c(F, {
|
|
70
|
+
"label-col": { style: { width: "120px" } },
|
|
71
|
+
labelWrap: !0
|
|
72
|
+
}, {
|
|
73
|
+
default: d(() => [
|
|
74
|
+
c(F, {
|
|
75
|
+
id: "wonder-form-css",
|
|
76
|
+
"label-col": { style: { width: "120px" } },
|
|
77
|
+
labelWrap: !0
|
|
78
|
+
}, {
|
|
79
|
+
default: d(() => [
|
|
80
|
+
c(I, {
|
|
81
|
+
class: "wonderform-row-css",
|
|
82
|
+
style: { padding: "0px 0px 0px 0px" },
|
|
83
|
+
gutter: [8, 0],
|
|
84
|
+
tyle: "flex"
|
|
85
|
+
}, {
|
|
86
|
+
default: d(() => [
|
|
87
|
+
c(C, {
|
|
88
|
+
span: 12,
|
|
89
|
+
offset: 0
|
|
90
|
+
}),
|
|
91
|
+
c(C, {
|
|
92
|
+
span: 12,
|
|
93
|
+
offset: 0
|
|
94
|
+
}, {
|
|
95
|
+
default: d(() => [
|
|
96
|
+
c(x, { style: { "text-align": "left", "padding-left": "5px" } }, {
|
|
97
|
+
default: d(() => [
|
|
98
|
+
c(D, {
|
|
99
|
+
type: "primary",
|
|
100
|
+
onClick: i[0] || (i[0] = (e) => M()),
|
|
101
|
+
class: "btn-icon-content"
|
|
102
|
+
}, {
|
|
103
|
+
default: d(() => [...i[3] || (i[3] = [
|
|
104
|
+
p(" 查询 ", -1)
|
|
105
|
+
])]),
|
|
106
|
+
_: 1
|
|
107
|
+
})
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
})
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
})
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
})
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}),
|
|
120
|
+
a(u) && a(u).length > 0 ? (n(), y(H, {
|
|
121
|
+
key: 0,
|
|
122
|
+
options: a(A),
|
|
123
|
+
data: a(u)
|
|
124
|
+
}, null, 8, ["options", "data"])) : L("", !0),
|
|
125
|
+
c(j, {
|
|
126
|
+
columns: a(w),
|
|
127
|
+
"data-source": a(u),
|
|
128
|
+
onColumnsChange: R,
|
|
129
|
+
loading: a(V),
|
|
130
|
+
onExport: $,
|
|
131
|
+
eLoading: a(q),
|
|
132
|
+
value: a(b),
|
|
133
|
+
"onUpdate:value": i[1] || (i[1] = (e) => P(b) ? b.value = e : b = e),
|
|
134
|
+
scroll: { x: "max-content" },
|
|
135
|
+
pagination: a(_),
|
|
136
|
+
onChange: i[2] || (i[2] = (e) => W(e))
|
|
137
|
+
}, {
|
|
138
|
+
headerCell: d(({ title: e, column: t }) => {
|
|
139
|
+
var v;
|
|
140
|
+
return [
|
|
141
|
+
(v = t.rules) != null && v.find((N) => N.required) ? (n(), l("span", ae, f(e), 1)) : (n(), l("span", oe, f(e), 1))
|
|
142
|
+
];
|
|
143
|
+
}),
|
|
144
|
+
bodyCell: d(({ column: e, text: t, record: v, index: N }) => {
|
|
145
|
+
var S;
|
|
146
|
+
return [
|
|
147
|
+
e.options.displayType == "tag" ? (n(), l(g, { key: 0 }, [
|
|
148
|
+
e.options.tagList.length ? (n(), l(g, { key: 0 }, [
|
|
149
|
+
a(z)(e.options.tagList, t) ? (n(), y(T, {
|
|
150
|
+
key: 0,
|
|
151
|
+
color: (S = a(z)(e.options.tagList, t)) == null ? void 0 : S.color[0]
|
|
152
|
+
}, {
|
|
153
|
+
default: d(() => [
|
|
154
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
155
|
+
]),
|
|
156
|
+
_: 2
|
|
157
|
+
}, 1032, ["color"])) : (n(), y(T, { key: 1 }, {
|
|
158
|
+
default: d(() => [
|
|
159
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
160
|
+
]),
|
|
161
|
+
_: 2
|
|
162
|
+
}, 1024))
|
|
163
|
+
], 64)) : (n(), y(T, { key: 1 }, {
|
|
164
|
+
default: d(() => [
|
|
165
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
166
|
+
]),
|
|
167
|
+
_: 2
|
|
168
|
+
}, 1024))
|
|
169
|
+
], 64)) : e.options.displayType == "href" ? (n(), l("a", {
|
|
170
|
+
key: 1,
|
|
171
|
+
onClick: Q((re) => o.excuteHrefFun(e.options.hrefFun, v), ["stop"])
|
|
172
|
+
}, f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 9, ne)) : (n(), l(g, { key: 2 }, [
|
|
173
|
+
e.dict ? (n(), l(g, { key: 0 }, [
|
|
174
|
+
p(f(a(h)(e.dict, t)), 1)
|
|
175
|
+
], 64)) : e.treeDict ? (n(), l(g, { key: 1 }, [
|
|
176
|
+
p(f(o.getLabelByTreeDictCode(e.treeDict, t)), 1)
|
|
177
|
+
], 64)) : L("", !0)
|
|
178
|
+
], 64)),
|
|
179
|
+
e.key === "action" ? (n(), y(U, {
|
|
180
|
+
key: 3,
|
|
181
|
+
size: 0
|
|
182
|
+
}, {
|
|
183
|
+
split: d(() => [
|
|
184
|
+
c(J, { type: "vertical" })
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
})) : L("", !0)
|
|
188
|
+
];
|
|
189
|
+
}),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["columns", "data-source", "loading", "eLoading", "value", "pagination"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})
|
|
195
|
+
], 512);
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
}), ce = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-14a1711c"]]);
|
|
199
|
+
export {
|
|
200
|
+
ce as default
|
|
201
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, onBeforeUpdate,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
|
|
2
|
+
import { aF as useFormStore, ae as generateReportHtml, a8 as defHttp } from "./index-CGewm3AG.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "Demo",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as J, ref as r, reactive as K, resolveComponent as s,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as J, ref as r, reactive as K, resolveComponent as s, openBlock as n, createElementBlock as l, createVNode as c, withCtx as d, createTextVNode as p, unref as a, createBlock as y, createCommentVNode as T, isRef as P, Fragment as g, toDisplayString as f, withModifiers as Q } from "vue";
|
|
2
|
+
import { aL as X, ah as z, ag as h, an as O, a4 as Y, as as Z, _ as ee } from "./index-DR7adI8e.js";
|
|
3
3
|
const te = {
|
|
4
4
|
ref: "formRef",
|
|
5
5
|
class: "cici-form-css",
|
|
@@ -11,7 +11,7 @@ const te = {
|
|
|
11
11
|
__name: "Demo",
|
|
12
12
|
setup(de) {
|
|
13
13
|
X();
|
|
14
|
-
let u = r([]),
|
|
14
|
+
let u = r([]), _ = r(), w = r([]), B = r({}), V = r(!1), q = r(!1), m = K({
|
|
15
15
|
formId: "",
|
|
16
16
|
tableName: "",
|
|
17
17
|
title: "文件",
|
|
@@ -33,18 +33,18 @@ const te = {
|
|
|
33
33
|
yAxis: [{ name: "抵押", type: "value", min: "1", interval: 100, unit: "个" }],
|
|
34
34
|
series: [{ name: "产权", type: "bar", dataIndex: "cq_count" }, { name: "抵押", type: "bar", dataIndex: "dy_count", unit: "个" }, { name: "预告", type: "line", dataIndex: "yg_count" }]
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_.value = { total: 0, current: 1, pageSize: 5, showSizeChanger: !1, showTotal: (o) => `共 ${o} 条数据` }, w.value = [{ key: "column-617ff7f2-a54f-1979c0fd2a8-fd70-700057f84a62", title: "year", dataIndex: "year", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-1cf72339-f874-1979c0fd2a8-b988-60f9b58ff66a", title: "month", dataIndex: "month", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-84b63a70-2238-1979c0fd2a8-29a5-68340db892fa", title: "cq_count", dataIndex: "cq_count", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-f8aa1b10-fe0d-1979c0fd2a8-8167-9c69e75fdf15", title: "dy_count", dataIndex: "dy_count", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-cf6692ef-5ce7-1979c0fd2a8-4531-cb617052dd15", title: "yg_count", dataIndex: "yg_count", width: "auto", options: { hidden: !1 }, rules: [] }, { id: "action", key: "action", title: "操作", dataIndex: "action", width: "auto", fixed: "right", align: "left", options: { hidden: !1 }, rules: [] }], m.formId = "1935623887264063490", m.title = "刘鹭测试";
|
|
37
37
|
let b = r([]), k = {
|
|
38
38
|
viewData: B,
|
|
39
39
|
dataSource: u,
|
|
40
40
|
reportInfo: m,
|
|
41
|
-
paginations:
|
|
41
|
+
paginations: _,
|
|
42
42
|
loading: V,
|
|
43
43
|
sortField: "",
|
|
44
44
|
sortOrder: ""
|
|
45
45
|
};
|
|
46
46
|
function M() {
|
|
47
|
-
|
|
47
|
+
_.value.current = 1, O(k);
|
|
48
48
|
}
|
|
49
49
|
let E = r([]);
|
|
50
50
|
E.value = w.value;
|
|
@@ -52,8 +52,8 @@ const te = {
|
|
|
52
52
|
E.value = o;
|
|
53
53
|
}
|
|
54
54
|
function W(o, i) {
|
|
55
|
-
const { sorter: C, pagination:
|
|
56
|
-
k.sortField =
|
|
55
|
+
const { sorter: C, pagination: D } = o, { field: x, order: I } = C;
|
|
56
|
+
k.sortField = x, k.sortOrder = I, _.value.current = D.current, O(k);
|
|
57
57
|
}
|
|
58
58
|
function $(o) {
|
|
59
59
|
let i = r(o);
|
|
@@ -64,7 +64,7 @@ const te = {
|
|
|
64
64
|
Z(i, B, m, q);
|
|
65
65
|
}
|
|
66
66
|
return (o, i) => {
|
|
67
|
-
const C = s("a-col"),
|
|
67
|
+
const C = s("a-col"), D = s("a-button"), x = s("a-form-item"), I = s("a-row"), F = s("a-form"), H = s("c-echarts-bar"), L = s("a-tag"), U = s("a-divider"), j = s("a-space"), G = s("c-table");
|
|
68
68
|
return n(), l("div", te, [
|
|
69
69
|
c(F, {
|
|
70
70
|
"label-col": { style: { width: "120px" } },
|
|
@@ -93,15 +93,15 @@ const te = {
|
|
|
93
93
|
offset: 0
|
|
94
94
|
}, {
|
|
95
95
|
default: d(() => [
|
|
96
|
-
c(
|
|
96
|
+
c(x, { style: { "text-align": "left", "padding-left": "5px" } }, {
|
|
97
97
|
default: d(() => [
|
|
98
|
-
c(
|
|
98
|
+
c(D, {
|
|
99
99
|
type: "primary",
|
|
100
100
|
onClick: i[0] || (i[0] = (e) => M()),
|
|
101
101
|
class: "btn-icon-content"
|
|
102
102
|
}, {
|
|
103
103
|
default: d(() => [...i[3] || (i[3] = [
|
|
104
|
-
|
|
104
|
+
p(" 查询 ", -1)
|
|
105
105
|
])]),
|
|
106
106
|
_: 1
|
|
107
107
|
})
|
|
@@ -117,11 +117,11 @@ const te = {
|
|
|
117
117
|
]),
|
|
118
118
|
_: 1
|
|
119
119
|
}),
|
|
120
|
-
a(u) && a(u).length > 0 ? (n(),
|
|
120
|
+
a(u) && a(u).length > 0 ? (n(), y(H, {
|
|
121
121
|
key: 0,
|
|
122
122
|
options: a(A),
|
|
123
123
|
data: a(u)
|
|
124
|
-
}, null, 8, ["options", "data"])) :
|
|
124
|
+
}, null, 8, ["options", "data"])) : T("", !0),
|
|
125
125
|
c(G, {
|
|
126
126
|
columns: a(w),
|
|
127
127
|
"data-source": a(u),
|
|
@@ -132,13 +132,13 @@ const te = {
|
|
|
132
132
|
value: a(b),
|
|
133
133
|
"onUpdate:value": i[1] || (i[1] = (e) => P(b) ? b.value = e : b = e),
|
|
134
134
|
scroll: { x: "max-content" },
|
|
135
|
-
pagination: a(
|
|
135
|
+
pagination: a(_),
|
|
136
136
|
onChange: i[2] || (i[2] = (e) => W(e))
|
|
137
137
|
}, {
|
|
138
138
|
headerCell: d(({ title: e, column: t }) => {
|
|
139
139
|
var v;
|
|
140
140
|
return [
|
|
141
|
-
(v = t.rules) != null && v.find((N) => N.required) ? (n(), l("span", ae,
|
|
141
|
+
(v = t.rules) != null && v.find((N) => N.required) ? (n(), l("span", ae, f(e), 1)) : (n(), l("span", oe, f(e), 1))
|
|
142
142
|
];
|
|
143
143
|
}),
|
|
144
144
|
bodyCell: d(({ column: e, text: t, record: v, index: N }) => {
|
|
@@ -146,37 +146,37 @@ const te = {
|
|
|
146
146
|
return [
|
|
147
147
|
e.options.displayType == "tag" ? (n(), l(g, { key: 0 }, [
|
|
148
148
|
e.options.tagList.length ? (n(), l(g, { key: 0 }, [
|
|
149
|
-
a(z)(e.options.tagList, t) ? (n(),
|
|
149
|
+
a(z)(e.options.tagList, t) ? (n(), y(L, {
|
|
150
150
|
key: 0,
|
|
151
151
|
color: (S = a(z)(e.options.tagList, t)) == null ? void 0 : S.color[0]
|
|
152
152
|
}, {
|
|
153
153
|
default: d(() => [
|
|
154
|
-
f(
|
|
154
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
155
155
|
]),
|
|
156
156
|
_: 2
|
|
157
|
-
}, 1032, ["color"])) : (n(),
|
|
157
|
+
}, 1032, ["color"])) : (n(), y(L, { key: 1 }, {
|
|
158
158
|
default: d(() => [
|
|
159
|
-
f(
|
|
159
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
160
160
|
]),
|
|
161
161
|
_: 2
|
|
162
162
|
}, 1024))
|
|
163
|
-
], 64)) : (n(),
|
|
163
|
+
], 64)) : (n(), y(L, { key: 1 }, {
|
|
164
164
|
default: d(() => [
|
|
165
|
-
f(
|
|
165
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
166
166
|
]),
|
|
167
167
|
_: 2
|
|
168
168
|
}, 1024))
|
|
169
169
|
], 64)) : e.options.displayType == "href" ? (n(), l("a", {
|
|
170
170
|
key: 1,
|
|
171
171
|
onClick: Q((se) => o.excuteHrefFun(e.options.hrefFun, v), ["stop"])
|
|
172
|
-
},
|
|
172
|
+
}, f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 9, ne)) : (n(), l(g, { key: 2 }, [
|
|
173
173
|
e.dict ? (n(), l(g, { key: 0 }, [
|
|
174
|
-
f(
|
|
174
|
+
p(f(a(h)(e.dict, t)), 1)
|
|
175
175
|
], 64)) : e.treeDict ? (n(), l(g, { key: 1 }, [
|
|
176
|
-
f(
|
|
177
|
-
], 64)) :
|
|
176
|
+
p(f(o.getLabelByTreeDictCode(e.treeDict, t)), 1)
|
|
177
|
+
], 64)) : T("", !0)
|
|
178
178
|
], 64)),
|
|
179
|
-
e.key === "action" ? (n(),
|
|
179
|
+
e.key === "action" ? (n(), y(j, {
|
|
180
180
|
key: 3,
|
|
181
181
|
size: 0
|
|
182
182
|
}, {
|
|
@@ -184,7 +184,7 @@ const te = {
|
|
|
184
184
|
c(U, { type: "vertical" })
|
|
185
185
|
]),
|
|
186
186
|
_: 1
|
|
187
|
-
})) :
|
|
187
|
+
})) : T("", !0)
|
|
188
188
|
];
|
|
189
189
|
}),
|
|
190
190
|
_: 1
|
|
@@ -195,7 +195,7 @@ const te = {
|
|
|
195
195
|
], 512);
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
}), ce = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-
|
|
198
|
+
}), ce = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-14a1711c"]]);
|
|
199
199
|
export {
|
|
200
200
|
ce as default
|
|
201
201
|
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
|
|
2
|
+
import { aH as useFormStore, ae as generateReportHtml, a8 as defHttp } from "./index-DR7adI8e.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "Demo",
|
|
5
|
+
props: {
|
|
6
|
+
data: {
|
|
7
|
+
type: Object,
|
|
8
|
+
default: []
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const formStore = useFormStore();
|
|
13
|
+
let list = ref(formStore.formData.config.eventScript);
|
|
14
|
+
const { eventScript, baseScript, ...restConfig } = formStore.formData.config;
|
|
15
|
+
let vue3Script = ref({
|
|
16
|
+
importScript: "",
|
|
17
|
+
//import导入
|
|
18
|
+
variableScript: "",
|
|
19
|
+
//变量
|
|
20
|
+
contentScript: ""
|
|
21
|
+
//ts内容
|
|
22
|
+
});
|
|
23
|
+
const generateData = generateReportHtml(formStore.formData.list, restConfig, vue3Script), columns = JSON.parse(generateData.columns), searchInfo = generateData.searchData;
|
|
24
|
+
onBeforeUpdate(() => {
|
|
25
|
+
});
|
|
26
|
+
const generateVue3 = defineComponent({
|
|
27
|
+
template: generateData.html,
|
|
28
|
+
props: {},
|
|
29
|
+
setup() {
|
|
30
|
+
let viewData = ref({});
|
|
31
|
+
const events = {};
|
|
32
|
+
return generateTs(), {
|
|
33
|
+
// formData,
|
|
34
|
+
// formRef,
|
|
35
|
+
search,
|
|
36
|
+
searchInfo,
|
|
37
|
+
// defineExpose,
|
|
38
|
+
// paginations,
|
|
39
|
+
// dataSource,
|
|
40
|
+
// datalist,
|
|
41
|
+
columns,
|
|
42
|
+
viewData,
|
|
43
|
+
// initTable,
|
|
44
|
+
...events,
|
|
45
|
+
defHttp,
|
|
46
|
+
onChange
|
|
47
|
+
};
|
|
48
|
+
function search() {
|
|
49
|
+
}
|
|
50
|
+
function onChange(e) {
|
|
51
|
+
}
|
|
52
|
+
function generateTs() {
|
|
53
|
+
for (let e = 0; e < list.value.length; e++) {
|
|
54
|
+
const t = list.value[e];
|
|
55
|
+
events[t.name] = newFunction(t);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function newFunction(_data) {
|
|
59
|
+
return _data.param != "" ? (_params) => {
|
|
60
|
+
eval(_data.func);
|
|
61
|
+
} : () => {
|
|
62
|
+
eval(_data.func);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
return (e, t) => (openBlock(), createBlock(unref(generateVue3)));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
_sfc_main as default
|
|
72
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, resolveComponent as o,
|
|
1
|
+
import { defineComponent as d, resolveComponent as o, openBlock as l, createBlock as n, withCtx as c, createCommentVNode as u } from "vue";
|
|
2
2
|
const D = /* @__PURE__ */ d({
|
|
3
3
|
__name: "Form",
|
|
4
4
|
props: {
|
|
@@ -10,16 +10,16 @@ const D = /* @__PURE__ */ d({
|
|
|
10
10
|
setup(e) {
|
|
11
11
|
return (i, t) => {
|
|
12
12
|
const m = o("a-input"), r = o("a-textarea"), f = o("a-form-item");
|
|
13
|
-
return
|
|
13
|
+
return l(), n(f, {
|
|
14
14
|
label: e.formData.name
|
|
15
15
|
}, {
|
|
16
16
|
default: c(() => [
|
|
17
|
-
e.formData.type == "input" ? (
|
|
17
|
+
e.formData.type == "input" ? (l(), n(m, {
|
|
18
18
|
key: 0,
|
|
19
19
|
value: e.formData.defaultValue,
|
|
20
20
|
"onUpdate:value": t[0] || (t[0] = (a) => e.formData.defaultValue = a)
|
|
21
21
|
}, null, 8, ["value"])) : u("", !0),
|
|
22
|
-
e.formData.type == "textarea" ? (
|
|
22
|
+
e.formData.type == "textarea" ? (l(), n(r, {
|
|
23
23
|
key: 1,
|
|
24
24
|
value: e.formData.defaultValue,
|
|
25
25
|
"onUpdate:value": t[1] || (t[1] = (a) => e.formData.defaultValue = a),
|