form-imagining 0.0.89-10 → 0.0.89-10-cs
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 +2 -0
- package/dist/App-CzBWayVN.js +34 -0
- package/dist/Col-BtumcSSN.js +4 -0
- package/dist/Collapse-B2cLw_DQ.js +4 -0
- package/dist/{Demo-CUVY4lZv.js → Demo-DFs2G3B3.js} +5 -7
- package/dist/FX-BqnZDn5N.js +4 -0
- package/dist/{FormGridCopy-DsmRxMnU.js → FormGridCopy-jm2AxRyZ.js} +17 -17
- package/dist/GenerateForm-1gb-D85J.js +4 -0
- package/dist/GenerateReport-Cmtlu8u5.js +4 -0
- package/dist/{HelloWorld-Bi4ClSsz.js → HelloWorld-OtqdSCkx.js} +1 -1
- package/dist/Input-/345/210/240/351/231/{244-CFxGz6PZ.js → 244-CpwYSbP0.js} +1 -1
- package/dist/Label-/345/210/240/351/231/{244-Cj-qcnQ5.js → 244-BGk8J3Cu.js} +1 -1
- package/dist/{Login-CJhXE8bn.js → Login-CC0mwXKP.js} +1 -1
- package/dist/RView-DgIVkVAF.js +223 -0
- package/dist/SqlModule-BHx_4SzY.js +4 -0
- package/dist/TableBtnModal-DRdLH3EH.js +4 -0
- package/dist/childForm-BNpvzZ_-.js +4 -0
- package/dist/{cssMode-925Wn99b.js → cssMode-CNElC5-Y.js} +17 -17
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +190 -183
- package/dist/{formTest--ihBIr0Q.js → formTest-CRJCNSOf.js} +1 -1
- package/dist/{freemarker2-CNMJHDDg.js → freemarker2-CmTgiq-k.js} +1 -1
- package/dist/{handlebars-D_mujDKd.js → handlebars-CEIZ9jnP.js} +1 -1
- package/dist/{html-C3BEyIIj.js → html-D0oEQyaN.js} +1 -1
- package/dist/{htmlMode-CgpSNBLS.js → htmlMode-CTB4ifGT.js} +20 -20
- package/dist/{index-BZXnp9dq.js → index-CB8nLJ4W.js} +12256 -8586
- package/dist/{index-Bmg2ubkH.js → index-Cm7U2NLL.js} +1 -1
- package/dist/{index-Bx1UtCoF.js → index-DgogPSRi.js} +1 -1
- package/dist/{javascript-DZiUegaG.js → javascript-DrcfrQiB.js} +1 -1
- package/dist/{jsonMode-D9PTeGQX.js → jsonMode-BiT4S4Uq.js} +21 -21
- package/dist/{liquid-Bej9aswT.js → liquid-BAugAkAQ.js} +1 -1
- package/dist/{mdx-K7SVAGLN.js → mdx-BhJUCRvM.js} +3 -3
- package/dist/{python-DWYmTuQj.js → python-FS7kgsSj.js} +1 -1
- package/dist/{razor-ibR9eBJP.js → razor-Bf9TLtsv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-CaQvtj4L.js → tableSelectDemo-Ca1UEsJQ.js} +1 -1
- package/dist/{tableSelectDemo2-CYAKAmgH.js → tableSelectDemo2-D9arxjAX.js} +1 -1
- package/dist/{tsMode-DFauRSBy.js → tsMode-BS8i2mUt.js} +1 -1
- package/dist/{typescript-B2wm24K1.js → typescript-D6F-KjZd.js} +1 -1
- package/dist/{xml-C4_gJTVQ.js → xml-C0Ju_62G.js} +1 -1
- package/dist/{yaml-DTGNMDce.js → yaml-DfwHlmRD.js} +1 -1
- package/package.json +2 -1
- package/dist/App-BEEDRFPW.js +0 -23
- package/dist/Col-CGo-gbJe.js +0 -4
- package/dist/Collapse-CMyJqZE2.js +0 -4
- package/dist/FX-CEp0N1T2.js +0 -4
- package/dist/GenerateForm-BWQiLx7l.js +0 -4
- package/dist/GenerateReport-DCbbMaWR.js +0 -4
- package/dist/SqlModule-BVTBkUCI.js +0 -4
- package/dist/TableBtnModal-DVCWjduO.js +0 -4
- package/dist/childForm-BTyyiVpC.js +0 -4
package/README.md
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as a, onMounted as p, resolveComponent as l, openBlock as o, createBlock as r, unref as e, withCtx as t, Suspense as c, createVNode as s } from "vue";
|
|
2
|
+
import { u as i, l as f, r as _ } from "./index-CB8nLJ4W.js";
|
|
3
|
+
import m from "./RView-DgIVkVAF.js";
|
|
4
|
+
const R = /* @__PURE__ */ a({
|
|
5
|
+
__name: "App",
|
|
6
|
+
setup(d) {
|
|
7
|
+
const n = i();
|
|
8
|
+
return p(() => {
|
|
9
|
+
}), (h, k) => {
|
|
10
|
+
const u = l("a-config-provider");
|
|
11
|
+
return o(), r(u, {
|
|
12
|
+
locale: e(f),
|
|
13
|
+
theme: { token: { fontSize: 13, borderRadius: 5, colorPrimary: "#1890ff" } }
|
|
14
|
+
}, {
|
|
15
|
+
default: t(() => [
|
|
16
|
+
(o(), r(c, null, {
|
|
17
|
+
default: t(() => [
|
|
18
|
+
s(m, {
|
|
19
|
+
"p-router": e(_),
|
|
20
|
+
"p-route": e(n),
|
|
21
|
+
id: "36"
|
|
22
|
+
}, null, 8, ["p-router", "p-route"])
|
|
23
|
+
]),
|
|
24
|
+
_: 1
|
|
25
|
+
}))
|
|
26
|
+
]),
|
|
27
|
+
_: 1
|
|
28
|
+
}, 8, ["locale"]);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
R as default
|
|
34
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
|
|
2
|
-
import { b as useFormStore, g as generateReportHtml,
|
|
2
|
+
import { b as useFormStore, g as generateReportHtml, d as defHttp } from "./index-CB8nLJ4W.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "Demo",
|
|
5
5
|
props: {
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
//ts内容
|
|
22
22
|
});
|
|
23
23
|
const generateData = generateReportHtml(formStore.formData.list, restConfig, vue3Script), columns = JSON.parse(generateData.columns), searchInfo = generateData.searchData;
|
|
24
|
-
|
|
24
|
+
onBeforeUpdate(() => {
|
|
25
25
|
});
|
|
26
26
|
const generateVue3 = defineComponent({
|
|
27
27
|
template: generateData.html,
|
|
@@ -37,21 +37,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
search,
|
|
38
38
|
searchInfo,
|
|
39
39
|
// defineExpose,
|
|
40
|
-
paginations,
|
|
41
|
-
dataSource,
|
|
40
|
+
// paginations,
|
|
41
|
+
// dataSource,
|
|
42
42
|
// datalist,
|
|
43
43
|
columns,
|
|
44
44
|
viewData,
|
|
45
|
-
initTable,
|
|
45
|
+
// initTable,
|
|
46
46
|
...events,
|
|
47
47
|
defHttp,
|
|
48
48
|
onChange
|
|
49
49
|
};
|
|
50
50
|
function search() {
|
|
51
|
-
paginations.value.current = 1, initTable({ viewData: viewData.value, searchInfo });
|
|
52
51
|
}
|
|
53
52
|
function onChange(e) {
|
|
54
|
-
paginations.value = e, initTable({ viewData: viewData.value, searchInfo });
|
|
55
53
|
}
|
|
56
54
|
function generateTs() {
|
|
57
55
|
for (let e = 0; e < list.value.length; e++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as z, ref as J, watch as L, resolveComponent as h, openBlock as o, createElementBlock as u, createElementVNode as
|
|
2
|
-
import { b as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as z, ref as J, watch as L, resolveComponent as h, openBlock as o, createElementBlock as u, createElementVNode as P, createVNode as r, unref as f, createCommentVNode as x, normalizeStyle as C, withCtx as g, Fragment as I, renderList as k, createBlock as w, normalizeClass as b } from "vue";
|
|
2
|
+
import { b as R, N as W, V as j, O as A, P as K, Q as N, R as O, M as Q, _ as q } from "./index-CB8nLJ4W.js";
|
|
3
|
+
const H = { class: "move" }, T = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "widget-view-drag"
|
|
6
6
|
}, U = ["onMousedown"], X = {
|
|
@@ -30,15 +30,15 @@ const Q = { class: "move" }, T = {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["childConfig", "index"],
|
|
33
|
-
setup(e, { emit:
|
|
34
|
-
const
|
|
33
|
+
setup(e, { emit: S }) {
|
|
34
|
+
const D = R(), a = e, i = J("-1");
|
|
35
35
|
L(
|
|
36
36
|
() => a.activeIndex,
|
|
37
37
|
(t, n) => {
|
|
38
38
|
i.value = t;
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
const m =
|
|
41
|
+
const m = S;
|
|
42
42
|
function p(t, n, d) {
|
|
43
43
|
i.value = n, m("childConfig", t), m("index", i.value), d.stopPropagation(), d.preventDefault();
|
|
44
44
|
}
|
|
@@ -52,7 +52,7 @@ const Q = { class: "move" }, T = {
|
|
|
52
52
|
const n = JSON.parse(JSON.stringify(t));
|
|
53
53
|
if (a.data.columns && a.data.columns.length > 0) {
|
|
54
54
|
let d = a.data.columns.findIndex((v) => v.key == t.key);
|
|
55
|
-
d > -1 && (n.key =
|
|
55
|
+
d > -1 && (n.key = O(), n.id = O(), a.data.columns.splice(d + 1, 0, n));
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function E(t) {
|
|
@@ -61,7 +61,7 @@ const Q = { class: "move" }, T = {
|
|
|
61
61
|
}
|
|
62
62
|
function F() {
|
|
63
63
|
if (a.data.columns.length > 0)
|
|
64
|
-
|
|
64
|
+
Q.confirm({
|
|
65
65
|
title: "确定要删除该栅格布局吗?",
|
|
66
66
|
content: "如果该布局存在表单,将会一并删除",
|
|
67
67
|
onOk() {
|
|
@@ -79,14 +79,14 @@ const Q = { class: "move" }, T = {
|
|
|
79
79
|
return (t, n) => {
|
|
80
80
|
const d = h("a-col"), v = h("a-row"), B = h("a-form");
|
|
81
81
|
return o(), u("div", null, [
|
|
82
|
-
|
|
82
|
+
P("div", H, [
|
|
83
83
|
e.activeIndex == e.index ? (o(), u("div", T, [
|
|
84
|
-
r(f(
|
|
84
|
+
r(f(W), { style: { padding: "6px" } })
|
|
85
85
|
])) : x("", !0)
|
|
86
86
|
]),
|
|
87
87
|
r(B, {
|
|
88
88
|
style: C({ padding: `${e.data.top || 0}px ${e.data.right || 0}px ${e.data.bottom || 0}px ${e.data.left || 0}px` }),
|
|
89
|
-
"label-col": { style: { width: f(
|
|
89
|
+
"label-col": { style: { width: f(D).formData.config.labelWidth + "px" } },
|
|
90
90
|
labelWrap: !0
|
|
91
91
|
}, {
|
|
92
92
|
default: g(() => [
|
|
@@ -103,7 +103,7 @@ const Q = { class: "move" }, T = {
|
|
|
103
103
|
onMousedown: (s) => p(l, "col-" + e.index + "-" + c, s)
|
|
104
104
|
}, {
|
|
105
105
|
default: g(() => [
|
|
106
|
-
r(f(
|
|
106
|
+
r(f(j), {
|
|
107
107
|
class: "widget-col-list",
|
|
108
108
|
style: { "min-height": "50px" },
|
|
109
109
|
"ghost-class": "ghost",
|
|
@@ -124,7 +124,7 @@ const Q = { class: "move" }, T = {
|
|
|
124
124
|
class: b(["widget-view", { active: i.value == e.index + "-" + c + "-" + y }]),
|
|
125
125
|
onMousedown: (G) => p(s, e.index + "-" + c + "-" + y, G)
|
|
126
126
|
}, [
|
|
127
|
-
r(
|
|
127
|
+
r(A, {
|
|
128
128
|
data: s,
|
|
129
129
|
list: l.list,
|
|
130
130
|
activeIndex: i.value,
|
|
@@ -135,11 +135,11 @@ const Q = { class: "move" }, T = {
|
|
|
135
135
|
_: 2
|
|
136
136
|
}, 1032, ["list", "onEnd"]),
|
|
137
137
|
e.activeIndex === "col-" + e.index + "-" + c ? (o(), u("div", X, [
|
|
138
|
-
r(f(
|
|
138
|
+
r(f(K), {
|
|
139
139
|
style: { padding: "3px 5px" },
|
|
140
140
|
onClick: (s) => V(l)
|
|
141
141
|
}, null, 8, ["onClick"]),
|
|
142
|
-
e.data.columns.length !== 1 ? (o(), w(f(
|
|
142
|
+
e.data.columns.length !== 1 ? (o(), w(f(N), {
|
|
143
143
|
key: 0,
|
|
144
144
|
onClick: (s) => E(l)
|
|
145
145
|
}, null, 8, ["onClick"])) : x("", !0)
|
|
@@ -148,7 +148,7 @@ const Q = { class: "move" }, T = {
|
|
|
148
148
|
_: 2
|
|
149
149
|
}, 1032, ["span", "class", "offset", "onMousedown"]))), 256)),
|
|
150
150
|
e.activeIndex === e.index ? (o(), u("div", Y, [
|
|
151
|
-
r(f(
|
|
151
|
+
r(f(N), {
|
|
152
152
|
style: { padding: "3px 5px", color: "#fff" },
|
|
153
153
|
onClick: n[0] || (n[0] = (l) => F())
|
|
154
154
|
})
|
|
@@ -162,7 +162,7 @@ const Q = { class: "move" }, T = {
|
|
|
162
162
|
]);
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
}), te = /* @__PURE__ */
|
|
165
|
+
}), te = /* @__PURE__ */ q(Z, [["__scopeId", "data-v-b6a6a4fd"]]);
|
|
166
166
|
export {
|
|
167
167
|
te as default
|
|
168
168
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, resolveComponent as f, openBlock as m, createBlock as v, withCtx as u, createVNode as t } from "vue";
|
|
2
|
-
import { b as c } from "./index-
|
|
2
|
+
import { b as c } from "./index-CB8nLJ4W.js";
|
|
3
3
|
const s = /* @__PURE__ */ i({
|
|
4
4
|
__name: "Input-删除",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, resolveComponent as o, openBlock as n, createBlock as l, withCtx as i, createElementBlock as u, Fragment as d, renderList as r, createVNode as k, createTextVNode as x, toDisplayString as D, createCommentVNode as w } from "vue";
|
|
2
|
-
import { b as U } from "./index-
|
|
2
|
+
import { b as U } from "./index-CB8nLJ4W.js";
|
|
3
3
|
const L = /* @__PURE__ */ _({
|
|
4
4
|
__name: "Label-删除",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { defineComponent, ref, reactive, withAsyncContext, openBlock, createBlock, unref } from "vue";
|
|
2
|
+
import { n as useVNodes, o as useUserStore, p as getReport, g as generateReportHtml, d as defHttp, s as syncChange, q as getSelectAllCheck, v as setSelectAllCheck, w as initTableV2, x as edit, y as save, z as cancel, A as getDictItemsByCode, B as getTreeDictItemsByCode, C as getLabelByDictCode, D as getLabelByTreeDictCode, E as onExportExcel, G as formatMultipleSelectValue, c as cModal, M as Modal, H as getMatchTag, I as loadStyle, J as api, K as initApiTable, _ as _export_sfc } from "./index-CB8nLJ4W.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "RView",
|
|
5
|
+
props: {
|
|
6
|
+
id: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "-1"
|
|
9
|
+
},
|
|
10
|
+
formData: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: {}
|
|
13
|
+
},
|
|
14
|
+
pRouter: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: {}
|
|
17
|
+
},
|
|
18
|
+
pRoute: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: {}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
emits: ["ok", "rowChange"],
|
|
24
|
+
async setup(__props, { expose: __expose, emit: __emit }) {
|
|
25
|
+
var o;
|
|
26
|
+
let __temp, __restore;
|
|
27
|
+
const VNodes = useVNodes(), userStore = useUserStore(), props = __props, _router = props.pRouter, _route = props.pRoute;
|
|
28
|
+
console.log("_route", _route), console.log("_router", _router);
|
|
29
|
+
let code = props.formData.formId || props.id;
|
|
30
|
+
code == "-1" && (_route.params.code == null ? code = _route.fullPath.split("/").pop() || "-1" : code = (o = _route == null ? void 0 : _route.params) == null ? void 0 : o.code.toString());
|
|
31
|
+
let dataSource = ref(), paginations = ref(), columns = ref([]), viewData = ref({}), loading = ref(!1), reportInfo = reactive({
|
|
32
|
+
formId: "",
|
|
33
|
+
tableName: "",
|
|
34
|
+
title: "文件",
|
|
35
|
+
keyCol: "",
|
|
36
|
+
searchInfo: []
|
|
37
|
+
}), options = {
|
|
38
|
+
viewData,
|
|
39
|
+
dataSource,
|
|
40
|
+
reportInfo,
|
|
41
|
+
paginations,
|
|
42
|
+
loading,
|
|
43
|
+
sortField: "",
|
|
44
|
+
sortOrder: ""
|
|
45
|
+
}, eLoading = ref(!1), editableData = reactive({});
|
|
46
|
+
reportInfo.formId = Number.parseInt(code), [__temp, __restore] = withAsyncContext(() => initStoreData()), await __temp, __restore();
|
|
47
|
+
const info = ([__temp, __restore] = withAsyncContext(() => getReport({ id: reportInfo.formId })), __temp = await __temp, __restore(), __temp);
|
|
48
|
+
console.log("info", info);
|
|
49
|
+
const data = JSON.parse(info.content), config = data.config;
|
|
50
|
+
reportInfo.tableName = info.tableName, reportInfo.title = info.title;
|
|
51
|
+
const { eventScript, baseScript, cBasicInfo, ...restConfig } = config;
|
|
52
|
+
let vue3Script = ref({
|
|
53
|
+
importScript: "",
|
|
54
|
+
//import导入
|
|
55
|
+
variableScript: "",
|
|
56
|
+
//变量
|
|
57
|
+
contentScript: ""
|
|
58
|
+
//ts内容
|
|
59
|
+
});
|
|
60
|
+
const generateData = generateReportHtml(data.list, restConfig, vue3Script, info);
|
|
61
|
+
console.log("generateDatagenerateData", generateData), columns.value = [], generateData.columns != "" && (columns.value = JSON.parse(generateData.columns));
|
|
62
|
+
let reportApiSource = info.dataSource;
|
|
63
|
+
reportInfo.searchInfo = generateData.searchData, paginations.value = generateData.paginations, viewData.value = {};
|
|
64
|
+
let selectedValue = ref([]), events = {}, event1 = ref({});
|
|
65
|
+
const computedEvents = {};
|
|
66
|
+
let basicInfo = ref({});
|
|
67
|
+
if (cBasicInfo)
|
|
68
|
+
for (let e = 0; e < cBasicInfo.length; e++) {
|
|
69
|
+
const t = cBasicInfo[e].name, a = cBasicInfo[e].type, n = cBasicInfo[e].default;
|
|
70
|
+
basicInfo.value[t] = transformValueByType(n, a);
|
|
71
|
+
}
|
|
72
|
+
function transformValueByType(e, t) {
|
|
73
|
+
switch (t) {
|
|
74
|
+
case "string":
|
|
75
|
+
return e;
|
|
76
|
+
case "number":
|
|
77
|
+
return Number(e);
|
|
78
|
+
case "boolean":
|
|
79
|
+
return !!e;
|
|
80
|
+
case "object":
|
|
81
|
+
case "array":
|
|
82
|
+
try {
|
|
83
|
+
return JSON.parse(e);
|
|
84
|
+
} catch (a) {
|
|
85
|
+
return console.error(`转换失败: ${e}`, a), null;
|
|
86
|
+
}
|
|
87
|
+
default:
|
|
88
|
+
return e;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const exposeds = eventScript.filter((e) => e.type == "Exposed");
|
|
92
|
+
let arrExposed = [];
|
|
93
|
+
exposeds.length > 0 && (arrExposed = exposeds[0].name.split(","));
|
|
94
|
+
let filterColumns = ref([]);
|
|
95
|
+
filterColumns.value = columns.value;
|
|
96
|
+
const emit = __emit, generateVue3 = defineComponent({
|
|
97
|
+
template: generateData.html,
|
|
98
|
+
components: {
|
|
99
|
+
VNodes
|
|
100
|
+
},
|
|
101
|
+
props: {
|
|
102
|
+
message: String
|
|
103
|
+
},
|
|
104
|
+
computed: {
|
|
105
|
+
...computedEvents
|
|
106
|
+
},
|
|
107
|
+
setup() {
|
|
108
|
+
return generateTs(), paginations.value, {
|
|
109
|
+
emit,
|
|
110
|
+
viewData,
|
|
111
|
+
basicInfo,
|
|
112
|
+
reportInfo,
|
|
113
|
+
paginations,
|
|
114
|
+
dataSource,
|
|
115
|
+
columns,
|
|
116
|
+
loading,
|
|
117
|
+
...events,
|
|
118
|
+
// ...bdc,
|
|
119
|
+
defHttp,
|
|
120
|
+
_router,
|
|
121
|
+
// router,
|
|
122
|
+
editableData,
|
|
123
|
+
selectedValue,
|
|
124
|
+
search,
|
|
125
|
+
reset,
|
|
126
|
+
handleTableChange,
|
|
127
|
+
syncChange,
|
|
128
|
+
getSelectAllCheck,
|
|
129
|
+
setSelectAllCheck,
|
|
130
|
+
initTableV2,
|
|
131
|
+
execInitFun,
|
|
132
|
+
edit,
|
|
133
|
+
save,
|
|
134
|
+
cancel,
|
|
135
|
+
getDictItemsByCode,
|
|
136
|
+
getTreeDictItemsByCode,
|
|
137
|
+
getLabelByDictCode,
|
|
138
|
+
getLabelByTreeDictCode,
|
|
139
|
+
onExportExcel,
|
|
140
|
+
// onExportExcelApi,
|
|
141
|
+
onCExport,
|
|
142
|
+
formatMultipleSelectValue,
|
|
143
|
+
onSelectChange,
|
|
144
|
+
cModal,
|
|
145
|
+
reloadTable,
|
|
146
|
+
Modal,
|
|
147
|
+
getMatchTag,
|
|
148
|
+
excuteHrefFun,
|
|
149
|
+
loadStyle,
|
|
150
|
+
onColumnsChange
|
|
151
|
+
};
|
|
152
|
+
function search() {
|
|
153
|
+
paginations.value.current = 1, execInitFun();
|
|
154
|
+
}
|
|
155
|
+
function reset() {
|
|
156
|
+
viewData.value = {}, paginations.value.current = 1, execInitFun();
|
|
157
|
+
}
|
|
158
|
+
function onCExport(e) {
|
|
159
|
+
let t = ref(e);
|
|
160
|
+
if (t.value.length == 0) {
|
|
161
|
+
api.warning("请选择要导出的列");
|
|
162
|
+
return;
|
|
163
|
+
} else
|
|
164
|
+
info.cType == "sql" && onExportExcel(t, viewData, reportInfo, eLoading);
|
|
165
|
+
}
|
|
166
|
+
function handleTableChange(e) {
|
|
167
|
+
const { sorter: t, pagination: a } = e, { field: n, order: r } = t;
|
|
168
|
+
options.sortField = n, options.sortOrder = r, paginations.value.current = a.current, initTableV2(options);
|
|
169
|
+
}
|
|
170
|
+
function onSelectChange(e, t) {
|
|
171
|
+
basicInfo.value.state.selectedRowKeys = e;
|
|
172
|
+
}
|
|
173
|
+
function generateTs() {
|
|
174
|
+
const _eventScript = eventScript.filter((e) => e.type == "Function" || e.type == "Mounted" || e.type == "Watch" || e.type == "Computed" || e.type == "BeforeValidate");
|
|
175
|
+
for (let i = 0; i < _eventScript.length; i++) {
|
|
176
|
+
const _data = _eventScript[i];
|
|
177
|
+
if (_data.type == "Computed")
|
|
178
|
+
computedEvents[_data.name] = eval(`() => { ${_data.func} }`);
|
|
179
|
+
else if (_data.param != "")
|
|
180
|
+
if (_data.isasync)
|
|
181
|
+
events[_data.name] = eval(`async (${_data.param})=> { ${_data.func}}`), arrExposed.includes(_data.name) && (event1.value[_data.name] = eval(`async (${_data.param})=> { ${_data.func}}`));
|
|
182
|
+
else
|
|
183
|
+
try {
|
|
184
|
+
eval(`(${_data.param})=> { ${_data.func}}`), events[_data.name] = eval(`(${_data.param})=> { ${_data.func}}`), arrExposed.includes(_data.name) && (event1.value[_data.name] = eval(`(${_data.param})=> { ${_data.func}}`));
|
|
185
|
+
} catch (e) {
|
|
186
|
+
}
|
|
187
|
+
else
|
|
188
|
+
_data.isasync ? (events[_data.name] = eval(`async ()=> { ${_data.func}}`), arrExposed.includes(_data.name) && (event1.value[_data.name] = eval(`async ()=> { ${_data.func}}`))) : (events[_data.name] = eval(`()=> { ${_data.func}}`), arrExposed.includes(_data.name) && (event1.value[_data.name] = eval(`()=> { ${_data.func}}`)));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
mounted() {
|
|
193
|
+
eventScript.filter((t) => t.type == "Mounted").length > 0 && events.initMount(), info.isLoad == 1 && execInitFun();
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
async function initStoreData() {
|
|
197
|
+
userStore.initDataDict(), userStore.initCategory(), userStore.initValidateRule(), userStore.initToken(), await setTimeout(() => {
|
|
198
|
+
}, 100);
|
|
199
|
+
}
|
|
200
|
+
function execInitFun() {
|
|
201
|
+
info.cType == "sql" ? initTableV2(options) : initApiTable(viewData, dataSource, reportApiSource, paginations, loading);
|
|
202
|
+
}
|
|
203
|
+
function createCase() {
|
|
204
|
+
basicInfo.value.state.selectedRowKeys.length == 0 ? api.warning("请选择要提取的数据") : emit("ok", { reload: !0, data: basicInfo.value.state.selectedRowKeys });
|
|
205
|
+
}
|
|
206
|
+
function reloadTable() {
|
|
207
|
+
execInitFun();
|
|
208
|
+
}
|
|
209
|
+
function onColumnsChange(e) {
|
|
210
|
+
filterColumns.value = e;
|
|
211
|
+
}
|
|
212
|
+
function excuteHrefFun(e, t) {
|
|
213
|
+
events[e] && events[e](t);
|
|
214
|
+
}
|
|
215
|
+
return __expose({
|
|
216
|
+
createCase,
|
|
217
|
+
event1
|
|
218
|
+
}), (e, t) => (openBlock(), createBlock(unref(generateVue3)));
|
|
219
|
+
}
|
|
220
|
+
}), RView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d2c4d3f7"]]);
|
|
221
|
+
export {
|
|
222
|
+
RView as default
|
|
223
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as et } from "./index-CB8nLJ4W.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
@@ -48,13 +48,13 @@ var st = 2 * 60 * 1e3, ut = class {
|
|
|
48
48
|
return this._worker.withSyncedResources(e);
|
|
49
49
|
}).then((i) => n);
|
|
50
50
|
}
|
|
51
|
-
},
|
|
51
|
+
}, J;
|
|
52
52
|
(function(e) {
|
|
53
53
|
function n(i) {
|
|
54
54
|
return typeof i == "string";
|
|
55
55
|
}
|
|
56
56
|
e.is = n;
|
|
57
|
-
})(
|
|
57
|
+
})(J || (J = {}));
|
|
58
58
|
var O;
|
|
59
59
|
(function(e) {
|
|
60
60
|
function n(i) {
|
|
@@ -741,15 +741,15 @@ var Ne;
|
|
|
741
741
|
}
|
|
742
742
|
e.is = i;
|
|
743
743
|
})(Ne || (Ne = {}));
|
|
744
|
-
var
|
|
744
|
+
var T;
|
|
745
745
|
(function(e) {
|
|
746
746
|
e.Type = 1, e.Parameter = 2;
|
|
747
747
|
function n(i) {
|
|
748
748
|
return i === 1 || i === 2;
|
|
749
749
|
}
|
|
750
750
|
e.is = n;
|
|
751
|
-
})(
|
|
752
|
-
var
|
|
751
|
+
})(T || (T = {}));
|
|
752
|
+
var G;
|
|
753
753
|
(function(e) {
|
|
754
754
|
function n(r) {
|
|
755
755
|
return { value: r };
|
|
@@ -760,7 +760,7 @@ var J;
|
|
|
760
760
|
return a.objectLiteral(t) && (t.tooltip === void 0 || a.string(t.tooltip) || P.is(t.tooltip)) && (t.location === void 0 || C.is(t.location)) && (t.command === void 0 || I.is(t.command));
|
|
761
761
|
}
|
|
762
762
|
e.is = i;
|
|
763
|
-
})(
|
|
763
|
+
})(G || (G = {}));
|
|
764
764
|
var Oe;
|
|
765
765
|
(function(e) {
|
|
766
766
|
function n(r, t, o) {
|
|
@@ -770,7 +770,7 @@ var Oe;
|
|
|
770
770
|
e.create = n;
|
|
771
771
|
function i(r) {
|
|
772
772
|
const t = r;
|
|
773
|
-
return a.objectLiteral(t) && w.is(t.position) && (a.string(t.label) || a.typedArray(t.label,
|
|
773
|
+
return a.objectLiteral(t) && w.is(t.position) && (a.string(t.label) || a.typedArray(t.label, G.is)) && (t.kind === void 0 || T.is(t.kind)) && t.textEdits === void 0 || a.typedArray(t.textEdits, E.is) && (t.tooltip === void 0 || a.string(t.tooltip) || P.is(t.tooltip)) && (t.paddingLeft === void 0 || a.boolean(t.paddingLeft)) && (t.paddingRight === void 0 || a.boolean(t.paddingRight));
|
|
774
774
|
}
|
|
775
775
|
e.is = i;
|
|
776
776
|
})(Oe || (Oe = {}));
|
|
@@ -1231,11 +1231,11 @@ var xt = class {
|
|
|
1231
1231
|
const r = e.uri;
|
|
1232
1232
|
return this._worker(r).then((t) => t.findDefinition(r.toString(), k(n))).then((t) => {
|
|
1233
1233
|
if (t)
|
|
1234
|
-
return [
|
|
1234
|
+
return [Te(t)];
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
|
1238
|
-
function
|
|
1238
|
+
function Te(e) {
|
|
1239
1239
|
return {
|
|
1240
1240
|
uri: d.Uri.parse(e.uri),
|
|
1241
1241
|
range: m(e.range)
|
|
@@ -1249,7 +1249,7 @@ var It = class {
|
|
|
1249
1249
|
const t = e.uri;
|
|
1250
1250
|
return this._worker(t).then((o) => o.findReferences(t.toString(), k(n))).then((o) => {
|
|
1251
1251
|
if (o)
|
|
1252
|
-
return o.map(
|
|
1252
|
+
return o.map(Te);
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
}, Et = class {
|
|
@@ -1289,11 +1289,11 @@ var At = class {
|
|
|
1289
1289
|
const i = e.uri;
|
|
1290
1290
|
return this._worker(i).then((r) => r.findDocumentSymbols(i.toString())).then((r) => {
|
|
1291
1291
|
if (r)
|
|
1292
|
-
return r.map((t) => Rt(t) ?
|
|
1292
|
+
return r.map((t) => Rt(t) ? Ge(t) : {
|
|
1293
1293
|
name: t.name,
|
|
1294
1294
|
detail: "",
|
|
1295
1295
|
containerName: t.containerName,
|
|
1296
|
-
kind:
|
|
1296
|
+
kind: Je(t.kind),
|
|
1297
1297
|
range: m(t.location.range),
|
|
1298
1298
|
selectionRange: m(t.location.range),
|
|
1299
1299
|
tags: []
|
|
@@ -1304,18 +1304,18 @@ var At = class {
|
|
|
1304
1304
|
function Rt(e) {
|
|
1305
1305
|
return "children" in e;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Ge(e) {
|
|
1308
1308
|
return {
|
|
1309
1309
|
name: e.name,
|
|
1310
1310
|
detail: e.detail ?? "",
|
|
1311
|
-
kind:
|
|
1311
|
+
kind: Je(e.kind),
|
|
1312
1312
|
range: m(e.range),
|
|
1313
1313
|
selectionRange: m(e.selectionRange),
|
|
1314
1314
|
tags: e.tags ?? [],
|
|
1315
|
-
children: (e.children ?? []).map((n) =>
|
|
1315
|
+
children: (e.children ?? []).map((n) => Ge(n))
|
|
1316
1316
|
};
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function Je(e) {
|
|
1319
1319
|
let n = d.languages.SymbolKind;
|
|
1320
1320
|
switch (e) {
|
|
1321
1321
|
case p.File:
|
package/dist/form-imagining.js
CHANGED