@jeecg/online 3.6.2-GA → 3.7.0-beta
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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
- package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-f142147a.mjs +0 -125
- package/AuthDataConfig-8e5c7b0c.mjs +0 -212
- package/AuthFieldConfig-e9a45f94.mjs +0 -139
- package/AuthManagerDrawer-5b558c23.mjs +0 -114
- package/AuthSetterModal-0cc557cf.mjs +0 -267
- package/CgreportModal-2eb9c9e1.mjs +0 -13
- package/CheckDictTable-27102064.mjs +0 -211
- package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
- package/DetailForm-cdeb54e3.mjs +0 -462
- package/EnhanceJsModal-6158804c.mjs +0 -311
- package/ExtendConfigModal-0564ef83.mjs +0 -111
- package/FieldExtendJsonModal-40d961c1.mjs +0 -219
- package/LinkTableConfigModal-5edaa08d.mjs +0 -230
- package/OnlCgformErpList-4c51cdb3.mjs +0 -454
- package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
- package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
- package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
- package/OnlCgformTabList-c59c7cc7.mjs +0 -395
- package/OnlineAutoList-a7a9de5d.mjs +0 -479
- package/OnlineAutoModal-a33f1a63.mjs +0 -207
- package/OnlineForm-fb3a2379.mjs +0 -750
- package/OnlineFormDetail-52b1c303.mjs +0 -297
- package/OnlineQueryForm-7c70734e.mjs +0 -386
- package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
- package/OnlineTabForm-29ca07f7.mjs +0 -766
- package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
- package/PageAttributeTable-d82946c5.mjs +0 -404
- package/QueryTable-d4599fca.mjs +0 -115
- package/SuperQuery-07162778.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-73993b18.mjs +0 -56
- package/useCgformList-b135794d.mjs +0 -400
- package/useExtendComponent-f4e29152.mjs +0 -3926
- package/useListButton-4dd33e7a.mjs +0 -676
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { ref as l, resolveComponent as c, openBlock as x, createBlock as I, unref as r, mergeProps as A, withCtx as p, createElementVNode as e, createVNode as d, createTextVNode as k, pushScopeId as y, popScopeId as B } from "vue";
|
|
2
|
+
import { useModalInner as S, BasicModal as V } from "/@/components/Modal";
|
|
3
|
+
import { useMessage as z } from "/@/hooks/web/useMessage";
|
|
4
|
+
import { defHttp as N } from "/@/utils/http/axios";
|
|
5
|
+
import { _ as $ } from "./index-173949bb.mjs";
|
|
6
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
7
|
+
import "vue-router";
|
|
8
|
+
const u = (o) => (y("data-v-4ab211b3"), o = o(), B(), o), R = { class: "aiWrap" }, U = /* @__PURE__ */ u(() => /* @__PURE__ */ e("div", { class: "titleArea" }, [
|
|
9
|
+
/* @__PURE__ */ e("svg", {
|
|
10
|
+
t: "1707100353985",
|
|
11
|
+
class: "icon",
|
|
12
|
+
viewBox: "0 0 1024 1024",
|
|
13
|
+
version: "1.1",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
"p-id": "4235",
|
|
16
|
+
width: "26",
|
|
17
|
+
height: "26"
|
|
18
|
+
}, [
|
|
19
|
+
/* @__PURE__ */ e("path", {
|
|
20
|
+
d: "M512 64C264.8 64 64 264.8 64 512s200.8 448 448 448 448-200.8 448-448S759.2 64 512 64z m32 704h-64v-64h64v64z m11.2-203.2l-5.6 4.8c-3.2 2.4-5.6 8-5.6 12.8v58.4h-64v-58.4c0-24.8 11.2-48 29.6-63.2l5.6-4.8c56-44.8 83.2-68 83.2-108C598.4 358.4 560 320 512 320c-49.6 0-86.4 36.8-86.4 86.4h-64C361.6 322.4 428 256 512 256c83.2 0 150.4 67.2 150.4 150.4 0 72.8-49.6 112.8-107.2 158.4z",
|
|
21
|
+
"p-id": "4236",
|
|
22
|
+
fill: "currentColor"
|
|
23
|
+
})
|
|
24
|
+
]),
|
|
25
|
+
/* @__PURE__ */ e("h3", null, "创建工作表字段需要专业建议?试试AI智能推荐吧")
|
|
26
|
+
], -1)), E = /* @__PURE__ */ u(() => /* @__PURE__ */ e("p", { class: "tip" }, "可尝试添加修饰词,如:智能家居行业的生产计划表", -1)), H = { class: "content" }, P = {
|
|
27
|
+
__name: "AiModal",
|
|
28
|
+
emits: ["register", "success"],
|
|
29
|
+
setup(o, { emit: _ }) {
|
|
30
|
+
const m = {
|
|
31
|
+
aigc: "/online/cgform/api/aigc"
|
|
32
|
+
}, [v, { closeModal: h }] = S(), { createMessage: f } = z(), t = l(""), a = l(!1), g = l("ai创建表"), i = () => {
|
|
33
|
+
h();
|
|
34
|
+
}, C = () => {
|
|
35
|
+
t.value.trim() === "" ? f.warning("请输入修饰词~") : (a.value = !0, N.post({ url: `${m.aigc}?prompt=${t.value}`, timeout: 1e3 * 60 }).then((s) => {
|
|
36
|
+
a.value = !1, i(), _("success"), t.value = "";
|
|
37
|
+
}).catch((s) => {
|
|
38
|
+
a.value = !1;
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
return (s, n) => {
|
|
42
|
+
const M = c("a-input"), w = c("a-button");
|
|
43
|
+
return x(), I(r(V), A({
|
|
44
|
+
height: 180,
|
|
45
|
+
title: g.value,
|
|
46
|
+
width: 600,
|
|
47
|
+
maskClosable: !1
|
|
48
|
+
}, s.$attrs, {
|
|
49
|
+
onRegister: r(v),
|
|
50
|
+
footer: null,
|
|
51
|
+
onCancel: i
|
|
52
|
+
}), {
|
|
53
|
+
default: p(() => [
|
|
54
|
+
e("div", R, [
|
|
55
|
+
U,
|
|
56
|
+
E,
|
|
57
|
+
e("div", H, [
|
|
58
|
+
d(M, {
|
|
59
|
+
value: t.value,
|
|
60
|
+
"onUpdate:value": n[0] || (n[0] = (b) => t.value = b),
|
|
61
|
+
valueModifiers: { trim: !0 },
|
|
62
|
+
placeholder: "请输入修饰词"
|
|
63
|
+
}, null, 8, ["value"]),
|
|
64
|
+
d(w, {
|
|
65
|
+
loading: a.value,
|
|
66
|
+
type: "primary",
|
|
67
|
+
onClick: C
|
|
68
|
+
}, {
|
|
69
|
+
default: p(() => [
|
|
70
|
+
k("生成表")
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["loading"])
|
|
74
|
+
])
|
|
75
|
+
])
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 16, ["title", "onRegister"]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}, J = /* @__PURE__ */ $(P, [["__scopeId", "data-v-4ab211b3"]]);
|
|
82
|
+
export {
|
|
83
|
+
J as default
|
|
84
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
var b = (s, l, u) => new Promise((d, p) => {
|
|
2
|
+
var g = (e) => {
|
|
3
|
+
try {
|
|
4
|
+
i(u.next(e));
|
|
5
|
+
} catch (o) {
|
|
6
|
+
p(o);
|
|
7
|
+
}
|
|
8
|
+
}, f = (e) => {
|
|
9
|
+
try {
|
|
10
|
+
i(u.throw(e));
|
|
11
|
+
} catch (o) {
|
|
12
|
+
p(o);
|
|
13
|
+
}
|
|
14
|
+
}, i = (e) => e.done ? d(e.value) : Promise.resolve(e.value).then(g, f);
|
|
15
|
+
i((u = u.apply(s, l)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as L, ref as _, watch as S, resolveComponent as C, openBlock as k, createElementBlock as A, createVNode as y, withCtx as T, createTextVNode as E } from "vue";
|
|
18
|
+
import { cloneDeep as N } from "lodash-es";
|
|
19
|
+
import { BasicTable as $, useTable as F } from "/@/components/Table";
|
|
20
|
+
import { d as R, e as j, f as q } from "./auth.api-d3a6c4b3.mjs";
|
|
21
|
+
import { b as z, c as O } from "./auth.data-22948e87.mjs";
|
|
22
|
+
import { _ as U } from "./index-173949bb.mjs";
|
|
23
|
+
import "/@/utils/http/axios";
|
|
24
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
25
|
+
import "/@/hooks/web/useMessage";
|
|
26
|
+
import "vue-router";
|
|
27
|
+
const V = L({
|
|
28
|
+
name: "AuthButtonConfig",
|
|
29
|
+
components: { BasicTable: $ },
|
|
30
|
+
props: {
|
|
31
|
+
headId: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "",
|
|
34
|
+
required: !0
|
|
35
|
+
},
|
|
36
|
+
// 1单表 2主表 3附表
|
|
37
|
+
tableType: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
setup(s) {
|
|
43
|
+
const l = _(""), u = _(2), d = _(3), p = _(5), [g, { reload: f, getTableRef: i, setPagination: e }] = F({
|
|
44
|
+
api: o,
|
|
45
|
+
rowKey: "code",
|
|
46
|
+
bordered: !0,
|
|
47
|
+
columns: z,
|
|
48
|
+
showIndexColumn: !1
|
|
49
|
+
});
|
|
50
|
+
S(
|
|
51
|
+
() => s.headId,
|
|
52
|
+
(t) => {
|
|
53
|
+
l.value = t.split("?")[0], i().value && e({ current: 1, pageSize: 10 }), f().catch(() => null);
|
|
54
|
+
},
|
|
55
|
+
{ immediate: !0 }
|
|
56
|
+
);
|
|
57
|
+
function o(t) {
|
|
58
|
+
return b(this, null, function* () {
|
|
59
|
+
let a = yield R(l.value, t), { authList: m, buttonList: c } = a, r = [];
|
|
60
|
+
for (let n of N(O)) {
|
|
61
|
+
let h = {
|
|
62
|
+
status: 0,
|
|
63
|
+
page: d.value
|
|
64
|
+
}, I = m.find((D) => D.code == n.code);
|
|
65
|
+
Object.assign(n, h, I), r.push(n);
|
|
66
|
+
}
|
|
67
|
+
if (s.tableType == 3) {
|
|
68
|
+
const n = r.findIndex((h) => h.code === "super_query");
|
|
69
|
+
n != -1 && r.splice(n, 1);
|
|
70
|
+
}
|
|
71
|
+
return B(m, c, r);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function B(t, a, m) {
|
|
75
|
+
for (let c of a) {
|
|
76
|
+
let r = t.find((h) => h.code == c.buttonCode), n = {
|
|
77
|
+
code: c.buttonCode,
|
|
78
|
+
title: c.buttonName,
|
|
79
|
+
status: 0,
|
|
80
|
+
page: c.buttonStyle == "form" ? p.value : d.value
|
|
81
|
+
};
|
|
82
|
+
m.push(Object.assign(n, r));
|
|
83
|
+
}
|
|
84
|
+
return m;
|
|
85
|
+
}
|
|
86
|
+
function v(t, a) {
|
|
87
|
+
return b(this, null, function* () {
|
|
88
|
+
t ? w(a) : x(a);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function w(t) {
|
|
92
|
+
return b(this, null, function* () {
|
|
93
|
+
let a = yield j({
|
|
94
|
+
id: t.id,
|
|
95
|
+
code: t.code,
|
|
96
|
+
page: t.page,
|
|
97
|
+
cgformId: l.value,
|
|
98
|
+
type: u.value,
|
|
99
|
+
control: 5,
|
|
100
|
+
status: 1
|
|
101
|
+
});
|
|
102
|
+
t.id = a.id, t.status = 1;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function x(t) {
|
|
106
|
+
return b(this, null, function* () {
|
|
107
|
+
yield q(t.id), t.status = 0;
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
return { registerTable: g, onUpdateStatus: v };
|
|
111
|
+
}
|
|
112
|
+
}), K = { class: "auth-field-config" };
|
|
113
|
+
function P(s, l, u, d, p, g) {
|
|
114
|
+
const f = C("a-switch"), i = C("BasicTable");
|
|
115
|
+
return k(), A("div", K, [
|
|
116
|
+
y(i, { onRegister: s.registerTable }, {
|
|
117
|
+
switch: T(({ text: e, record: o }) => [
|
|
118
|
+
y(f, {
|
|
119
|
+
size: "small",
|
|
120
|
+
checked: o.status === 1,
|
|
121
|
+
onChange: (B) => s.onUpdateStatus(B, o)
|
|
122
|
+
}, null, 8, ["checked", "onChange"])
|
|
123
|
+
]),
|
|
124
|
+
control: T(() => [
|
|
125
|
+
E(" 可见 ")
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["onRegister"])
|
|
129
|
+
]);
|
|
130
|
+
}
|
|
131
|
+
const ot = /* @__PURE__ */ U(V, [["render", P]]);
|
|
132
|
+
export {
|
|
133
|
+
ot as default
|
|
134
|
+
};
|
|
@@ -16,9 +16,9 @@ var y = (e, l, a) => new Promise((f, i) => {
|
|
|
16
16
|
});
|
|
17
17
|
import { defineComponent as w, ref as d, computed as A, watch as N, resolveComponent as g, openBlock as v, createElementBlock as E, createBlock as I, Fragment as M, createElementVNode as P, createVNode as k, withCtx as B, createTextVNode as C } from "vue";
|
|
18
18
|
import { useMessage as S } from "/@/hooks/web/useMessage";
|
|
19
|
-
import { c as R } from "./auth.data-
|
|
19
|
+
import { c as R } from "./auth.data-22948e87.mjs";
|
|
20
20
|
import { m as V, l as $, n as z } from "./auth.api-d3a6c4b3.mjs";
|
|
21
|
-
import { _ as L } from "./index-
|
|
21
|
+
import { _ as L } from "./index-173949bb.mjs";
|
|
22
22
|
import "/@/utils/http/axios";
|
|
23
23
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
24
24
|
import "vue-router";
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
var K = Object.defineProperty, Q = Object.defineProperties;
|
|
2
|
+
var H = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var F = Object.getOwnPropertySymbols;
|
|
4
|
+
var W = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var M = (t, n, o) => n in t ? K(t, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[n] = o, S = (t, n) => {
|
|
6
|
+
for (var o in n || (n = {}))
|
|
7
|
+
W.call(n, o) && M(t, o, n[o]);
|
|
8
|
+
if (F)
|
|
9
|
+
for (var o of F(n))
|
|
10
|
+
X.call(n, o) && M(t, o, n[o]);
|
|
11
|
+
return t;
|
|
12
|
+
}, y = (t, n) => Q(t, H(n));
|
|
13
|
+
var A = (t, n, o) => new Promise((u, f) => {
|
|
14
|
+
var p = (a) => {
|
|
15
|
+
try {
|
|
16
|
+
i(o.next(a));
|
|
17
|
+
} catch (l) {
|
|
18
|
+
f(l);
|
|
19
|
+
}
|
|
20
|
+
}, g = (a) => {
|
|
21
|
+
try {
|
|
22
|
+
i(o.throw(a));
|
|
23
|
+
} catch (l) {
|
|
24
|
+
f(l);
|
|
25
|
+
}
|
|
26
|
+
}, i = (a) => a.done ? u(a.value) : Promise.resolve(a.value).then(p, g);
|
|
27
|
+
i((o = o.apply(t, n)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as Y, ref as Z, watch as k, reactive as ee, nextTick as te, resolveComponent as r, openBlock as ne, createElementBlock as oe, createVNode as c, withCtx as d, createTextVNode as ae, mergeProps as ie } from "vue";
|
|
30
|
+
import { BasicTable as le, TableAction as se, useTable as re } from "/@/components/Table";
|
|
31
|
+
import { BasicModal as ce, useModal as ue } from "/@/components/Modal";
|
|
32
|
+
import { BasicForm as me, useForm as de } from "/@/components/Form";
|
|
33
|
+
import { g as fe, h as pe, i as ge, j as he } from "./auth.api-d3a6c4b3.mjs";
|
|
34
|
+
import { d as Ce, u as be, U as v } from "./auth.data-22948e87.mjs";
|
|
35
|
+
import { _ as _e } from "./index-173949bb.mjs";
|
|
36
|
+
import "/@/utils/http/axios";
|
|
37
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
38
|
+
import "/@/hooks/web/useMessage";
|
|
39
|
+
import "vue-router";
|
|
40
|
+
const we = Y({
|
|
41
|
+
name: "AuthDataConfig",
|
|
42
|
+
components: { BasicTable: le, TableAction: se, BasicModal: ce, BasicForm: me },
|
|
43
|
+
props: {
|
|
44
|
+
cgformId: { type: String, required: !0 },
|
|
45
|
+
authFields: { type: Array, required: !0 }
|
|
46
|
+
},
|
|
47
|
+
setup(t) {
|
|
48
|
+
const n = Z(!1), [o, { reload: u, setLoading: f }] = re({
|
|
49
|
+
api: (e) => fe(t.cgformId, e),
|
|
50
|
+
rowKey: "id",
|
|
51
|
+
bordered: !0,
|
|
52
|
+
columns: Ce,
|
|
53
|
+
showIndexColumn: !1,
|
|
54
|
+
// 操作列
|
|
55
|
+
actionColumn: {
|
|
56
|
+
width: 120,
|
|
57
|
+
title: "操作",
|
|
58
|
+
fixed: !1,
|
|
59
|
+
dataIndex: "action",
|
|
60
|
+
slots: { customRender: "action" }
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
k(n, (e) => f(e));
|
|
64
|
+
const [p, { openModal: g, closeModal: i }] = ue(), a = ee({
|
|
65
|
+
title: "",
|
|
66
|
+
width: 800,
|
|
67
|
+
confirmLoading: !1,
|
|
68
|
+
onOk: E,
|
|
69
|
+
onCancel: i,
|
|
70
|
+
onRegister: p
|
|
71
|
+
});
|
|
72
|
+
let l = !1, h = {}, m = !1;
|
|
73
|
+
const { formSchemas: _ } = be(t, {
|
|
74
|
+
onRuleOperatorChange: P,
|
|
75
|
+
onRuleColumnChange: $,
|
|
76
|
+
onRuleNameChange: j
|
|
77
|
+
}), [C, { validate: b, resetFields: I, setFieldsValue: w, getFieldsValue: R, clearValidate: O, updateSchema: D }] = de({
|
|
78
|
+
schemas: _,
|
|
79
|
+
showActionButtonGroup: !1,
|
|
80
|
+
labelAlign: "right"
|
|
81
|
+
});
|
|
82
|
+
k(
|
|
83
|
+
() => t.cgformId,
|
|
84
|
+
() => {
|
|
85
|
+
u().catch(() => null);
|
|
86
|
+
},
|
|
87
|
+
{ immediate: !0 }
|
|
88
|
+
);
|
|
89
|
+
function T(e) {
|
|
90
|
+
return A(this, null, function* () {
|
|
91
|
+
var s;
|
|
92
|
+
l = (s = e.isUpdate) != null ? s : !1, a.title = e.title, g(), yield te(), yield I(), h = Object.assign({}, e.record), yield w(h);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function U() {
|
|
96
|
+
T({ title: "新增" });
|
|
97
|
+
}
|
|
98
|
+
function V(e) {
|
|
99
|
+
T({ title: "编辑", record: e, isUpdate: !0 });
|
|
100
|
+
}
|
|
101
|
+
function L(e) {
|
|
102
|
+
n.value = !0, he(e).then(u).finally(() => n.value = !1);
|
|
103
|
+
}
|
|
104
|
+
function E() {
|
|
105
|
+
return A(this, null, function* () {
|
|
106
|
+
try {
|
|
107
|
+
a.confirmLoading = !0;
|
|
108
|
+
let e = yield b();
|
|
109
|
+
e = Object.assign({}, h, e), e.ruleOperator == v && (e.ruleColumn = ""), e.cgformId = t.cgformId, yield pe(e, l), u(), i();
|
|
110
|
+
} finally {
|
|
111
|
+
a.confirmLoading = !1;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function N(e) {
|
|
116
|
+
n.value = !0;
|
|
117
|
+
let s = Math.abs(e.status - 1);
|
|
118
|
+
ge(y(S({}, e), { status: s })).then(() => {
|
|
119
|
+
e.status = s;
|
|
120
|
+
}).finally(() => {
|
|
121
|
+
n.value = !1;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function P(e) {
|
|
125
|
+
e == v ? (w({
|
|
126
|
+
ruleColumn: "",
|
|
127
|
+
ruleValue: ""
|
|
128
|
+
}), D({
|
|
129
|
+
field: "ruleValue",
|
|
130
|
+
component: "InputTextArea"
|
|
131
|
+
}), O(["ruleValue"])) : D({
|
|
132
|
+
field: "ruleValue",
|
|
133
|
+
component: "JInputSelect"
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function $(e) {
|
|
137
|
+
const s = R();
|
|
138
|
+
if (!s.ruleName || s.ruleName && !m) {
|
|
139
|
+
const B = t.authFields.find((J) => J.value === e), G = B ? B.text : e;
|
|
140
|
+
w({
|
|
141
|
+
ruleName: G
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function j(e) {
|
|
146
|
+
e.target.value.length ? m = !0 : m = !1;
|
|
147
|
+
}
|
|
148
|
+
function x(e) {
|
|
149
|
+
e && (m = !1);
|
|
150
|
+
}
|
|
151
|
+
function q(e) {
|
|
152
|
+
return [
|
|
153
|
+
{
|
|
154
|
+
label: "编辑",
|
|
155
|
+
onClick: () => V(e)
|
|
156
|
+
}
|
|
157
|
+
];
|
|
158
|
+
}
|
|
159
|
+
function z(e) {
|
|
160
|
+
return [
|
|
161
|
+
{
|
|
162
|
+
label: "删除",
|
|
163
|
+
popConfirm: {
|
|
164
|
+
title: "确定删除吗?",
|
|
165
|
+
placement: "left",
|
|
166
|
+
confirm: () => L(e.id)
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
];
|
|
170
|
+
}
|
|
171
|
+
return {
|
|
172
|
+
loading: n,
|
|
173
|
+
formModalProps: a,
|
|
174
|
+
onAdd: U,
|
|
175
|
+
onUpdateStatus: N,
|
|
176
|
+
getTableAction: q,
|
|
177
|
+
getDropDownAction: z,
|
|
178
|
+
registerTable: o,
|
|
179
|
+
registerModal: p,
|
|
180
|
+
registerForm: C,
|
|
181
|
+
handleOpenChange: x
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
function Ae(t, n, o, u, f, p) {
|
|
186
|
+
const g = r("a-button"), i = r("a-switch"), a = r("TableAction"), l = r("BasicTable"), h = r("BasicForm"), m = r("a-spin"), _ = r("BasicModal");
|
|
187
|
+
return ne(), oe("div", null, [
|
|
188
|
+
c(l, {
|
|
189
|
+
onRegister: t.registerTable,
|
|
190
|
+
loading: t.loading
|
|
191
|
+
}, {
|
|
192
|
+
tableTitle: d(() => [
|
|
193
|
+
c(g, {
|
|
194
|
+
onClick: t.onAdd,
|
|
195
|
+
type: "primary",
|
|
196
|
+
preIcon: "ant-design:plus"
|
|
197
|
+
}, {
|
|
198
|
+
default: d(() => [
|
|
199
|
+
ae("新增")
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 8, ["onClick"])
|
|
203
|
+
]),
|
|
204
|
+
switch: d(({ text: C, record: b }) => [
|
|
205
|
+
c(i, {
|
|
206
|
+
size: "small",
|
|
207
|
+
checked: b.status === 1,
|
|
208
|
+
onClick: () => t.onUpdateStatus(b)
|
|
209
|
+
}, null, 8, ["checked", "onClick"])
|
|
210
|
+
]),
|
|
211
|
+
action: d(({ record: C }) => [
|
|
212
|
+
c(a, {
|
|
213
|
+
actions: t.getTableAction(C),
|
|
214
|
+
dropDownActions: t.getDropDownAction(C)
|
|
215
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, ["onRegister", "loading"]),
|
|
219
|
+
c(_, ie(t.formModalProps, { onOpenChange: t.handleOpenChange }), {
|
|
220
|
+
default: d(() => [
|
|
221
|
+
c(m, {
|
|
222
|
+
spinning: t.formModalProps.confirmLoading
|
|
223
|
+
}, {
|
|
224
|
+
default: d(() => [
|
|
225
|
+
c(h, { onRegister: t.registerForm }, null, 8, ["onRegister"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 8, ["spinning"])
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 16, ["onOpenChange"])
|
|
232
|
+
]);
|
|
233
|
+
}
|
|
234
|
+
const Ue = /* @__PURE__ */ _e(we, [["render", Ae]]);
|
|
235
|
+
export {
|
|
236
|
+
Ue as default
|
|
237
|
+
};
|
|
@@ -17,7 +17,7 @@ var f = (e, s, t) => new Promise((l, c) => {
|
|
|
17
17
|
import { defineComponent as A, ref as r, computed as B, watch as F, resolveComponent as y, openBlock as h, createElementBlock as _, createBlock as g, Fragment as N, createElementVNode as M, createVNode as v, withCtx as E, createTextVNode as D } from "vue";
|
|
18
18
|
import { useMessage as P } from "/@/hooks/web/useMessage";
|
|
19
19
|
import { o as S, l as R, p as V } from "./auth.api-d3a6c4b3.mjs";
|
|
20
|
-
import { _ as $ } from "./index-
|
|
20
|
+
import { _ as $ } from "./index-173949bb.mjs";
|
|
21
21
|
import "/@/utils/http/axios";
|
|
22
22
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
23
|
import "vue-router";
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var _ = (s, m, o) => new Promise((r, h) => {
|
|
2
|
+
var b = (a) => {
|
|
3
|
+
try {
|
|
4
|
+
n(o.next(a));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
h(l);
|
|
7
|
+
}
|
|
8
|
+
}, f = (a) => {
|
|
9
|
+
try {
|
|
10
|
+
n(o.throw(a));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
h(l);
|
|
13
|
+
}
|
|
14
|
+
}, n = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(b, f);
|
|
15
|
+
n((o = o.apply(s, m)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as w, ref as S, watch as x, resolveComponent as C, openBlock as F, createElementBlock as v, createVNode as p, withCtx as c, createTextVNode as g } from "vue";
|
|
18
|
+
import { BasicTable as E, useTable as I } from "/@/components/Table";
|
|
19
|
+
import { a as T, b as y, c as B } from "./auth.api-d3a6c4b3.mjs";
|
|
20
|
+
import { a as U } from "./auth.data-22948e87.mjs";
|
|
21
|
+
import { _ as $ } from "./index-173949bb.mjs";
|
|
22
|
+
import "/@/utils/http/axios";
|
|
23
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
24
|
+
import "/@/hooks/web/useMessage";
|
|
25
|
+
import "vue-router";
|
|
26
|
+
const A = w({
|
|
27
|
+
name: "AuthFieldConfig",
|
|
28
|
+
components: { BasicTable: E },
|
|
29
|
+
props: {
|
|
30
|
+
headId: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "",
|
|
33
|
+
required: !0
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: ["update:authFields"],
|
|
37
|
+
setup(s, { emit: m }) {
|
|
38
|
+
const o = S(""), [r, { reload: h, getTableRef: b, setPagination: f }] = I({
|
|
39
|
+
api: n,
|
|
40
|
+
rowKey: "code",
|
|
41
|
+
bordered: !0,
|
|
42
|
+
columns: U,
|
|
43
|
+
showIndexColumn: !1
|
|
44
|
+
});
|
|
45
|
+
x(
|
|
46
|
+
() => s.headId,
|
|
47
|
+
(t) => {
|
|
48
|
+
o.value = t.split("?")[0], b().value && f({ current: 1, pageSize: 10 }), h().catch(() => null);
|
|
49
|
+
},
|
|
50
|
+
{ immediate: !0 }
|
|
51
|
+
);
|
|
52
|
+
function n(t) {
|
|
53
|
+
return _(this, null, function* () {
|
|
54
|
+
const e = ["id"];
|
|
55
|
+
let u = yield T(o.value, t), i = [], k = [];
|
|
56
|
+
return u.forEach((d) => {
|
|
57
|
+
e.indexOf(d.code) < 0 && ((d.isShowForm == 1 || d.isShowList == 1) && k.push(d), d.dbIsPersist == 1 && i.push({ text: d.title, value: d.code }));
|
|
58
|
+
}), m("update:authFields", i), k;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function a(t, e) {
|
|
62
|
+
return _(this, null, function* () {
|
|
63
|
+
yield y({
|
|
64
|
+
cgformId: o.value,
|
|
65
|
+
code: e.code,
|
|
66
|
+
status: t ? 1 : 0
|
|
67
|
+
}), e.formEditable || e.formShow || e.listShow || (e.formEditable = !0, e.formShow = !0, e.listShow = !0), e.status = Math.abs(e.status - 1);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function l(t, e, u) {
|
|
71
|
+
return _(this, null, function* () {
|
|
72
|
+
let i = t.target.checked;
|
|
73
|
+
yield B({
|
|
74
|
+
cgformId: o.value,
|
|
75
|
+
code: e.code,
|
|
76
|
+
switchFlag: u,
|
|
77
|
+
listShow: i,
|
|
78
|
+
formShow: i,
|
|
79
|
+
formEditable: i
|
|
80
|
+
}), u == 1 ? e.listShow = i : u == 2 ? e.formShow = i : u == 3 && (e.formEditable = i);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return { registerTable: r, onUpdateStatus: a, onCheckboxChange: l };
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
const D = { class: "auth-field-config" };
|
|
87
|
+
function R(s, m, o, r, h, b) {
|
|
88
|
+
const f = C("a-switch"), n = C("a-checkbox"), a = C("BasicTable");
|
|
89
|
+
return F(), v("div", D, [
|
|
90
|
+
p(a, { onRegister: s.registerTable }, {
|
|
91
|
+
switch: c(({ text: l, record: t }) => [
|
|
92
|
+
p(f, {
|
|
93
|
+
size: "small",
|
|
94
|
+
checked: t.status === 1,
|
|
95
|
+
onChange: (e) => s.onUpdateStatus(e, t)
|
|
96
|
+
}, null, 8, ["checked", "onChange"])
|
|
97
|
+
]),
|
|
98
|
+
list: c(({ text: l, record: t }) => [
|
|
99
|
+
p(n, {
|
|
100
|
+
checked: t.listShow,
|
|
101
|
+
disabled: t.status === 0,
|
|
102
|
+
onChange: (e) => s.onCheckboxChange(e, t, 1)
|
|
103
|
+
}, {
|
|
104
|
+
default: c(() => [
|
|
105
|
+
g(" 可见 ")
|
|
106
|
+
]),
|
|
107
|
+
_: 2
|
|
108
|
+
}, 1032, ["checked", "disabled", "onChange"])
|
|
109
|
+
]),
|
|
110
|
+
form: c(({ text: l, record: t }) => [
|
|
111
|
+
p(n, {
|
|
112
|
+
checked: t.formShow,
|
|
113
|
+
disabled: t.status === 0,
|
|
114
|
+
onChange: (e) => s.onCheckboxChange(e, t, 2)
|
|
115
|
+
}, {
|
|
116
|
+
default: c(() => [
|
|
117
|
+
g(" 可见 ")
|
|
118
|
+
]),
|
|
119
|
+
_: 2
|
|
120
|
+
}, 1032, ["checked", "disabled", "onChange"]),
|
|
121
|
+
p(n, {
|
|
122
|
+
checked: t.formEditable,
|
|
123
|
+
disabled: t.status === 0,
|
|
124
|
+
onChange: (e) => s.onCheckboxChange(e, t, 3)
|
|
125
|
+
}, {
|
|
126
|
+
default: c(() => [
|
|
127
|
+
g(" 可编辑 ")
|
|
128
|
+
]),
|
|
129
|
+
_: 2
|
|
130
|
+
}, 1032, ["checked", "disabled", "onChange"])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["onRegister"])
|
|
134
|
+
]);
|
|
135
|
+
}
|
|
136
|
+
const G = /* @__PURE__ */ $(A, [["render", R], ["__scopeId", "data-v-c886a3df"]]);
|
|
137
|
+
export {
|
|
138
|
+
G as default
|
|
139
|
+
};
|
|
@@ -18,7 +18,7 @@ import { defineComponent as P, ref as p, computed as R, watch as V, unref as $,
|
|
|
18
18
|
import { useMessage as J } from "/@/hooks/web/useMessage";
|
|
19
19
|
import { k as L, l as j, s as G } from "./auth.api-d3a6c4b3.mjs";
|
|
20
20
|
import { DownCircleOutlined as Q, HomeOutlined as W, UpCircleOutlined as X, UndoOutlined as Y, CheckOutlined as Z } from "@ant-design/icons-vue";
|
|
21
|
-
import { _ as ee } from "./index-
|
|
21
|
+
import { _ as ee } from "./index-173949bb.mjs";
|
|
22
22
|
import "/@/utils/http/axios";
|
|
23
23
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
24
24
|
import "vue-router";
|