@jeecg/online 3.5.3-beta2 → 3.5.3-vite4
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/AuthButtonConfig-2f71787c.mjs +125 -0
- package/AuthButtonTree-d73bccf5.mjs +156 -0
- package/AuthDataConfig-32cf23d2.mjs +212 -0
- package/AuthDataTree-03d62d3f.mjs +139 -0
- package/AuthFieldConfig-b1217a0c.mjs +139 -0
- package/AuthFieldTree-888e04a9.mjs +232 -0
- package/AuthManagerDrawer-f127b8a2.mjs +114 -0
- package/AuthSetterModal-37da78ed.mjs +261 -0
- package/CgformCopyList-3adab58f.mjs +245 -0
- package/CgformModal-6938d8c2.mjs +613 -0
- package/CgreportModal-77ec8c17.mjs +12 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
- package/CheckDictTable-414313f2.mjs +211 -0
- package/CodeFileListModal-4831ce3d.mjs +158 -0
- package/CodeFileViewModal-5990dac4.mjs +244 -0
- package/CodeGeneratorModal-7df9e25d.mjs +234 -0
- package/CustomButtonList-1c9bd859.mjs +363 -0
- package/DBAttributeTable-cd1c41e5.mjs +473 -0
- package/DbToOnlineModal-dc5d2030.mjs +160 -0
- package/DetailForm-e4538e7a.mjs +446 -0
- package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
- package/EnhanceJsHistory-c30805ce.mjs +184 -0
- package/EnhanceJsModal-0b133341.mjs +233 -0
- package/EnhanceSqlModal-33a94c83.mjs +259 -0
- package/ExtendConfigModal-60f2cf86.mjs +111 -0
- package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
- package/FileSelectModal-64aaf623.mjs +91 -0
- package/ForeignKeyTable-cb1abd1d.mjs +69 -0
- package/IndexTable-4e94cd1f.mjs +89 -0
- package/JModalTip-abe1515a.mjs +46 -0
- package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
- package/LeftDepart-ca7a7375.mjs +82 -0
- package/LeftRole-d0fa8398.mjs +86 -0
- package/LeftUser-0c88c240.mjs +105 -0
- package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
- package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
- package/LinkTableListPiece-34266919.mjs +34 -0
- package/ModalFormDemo-0eeea994.mjs +78 -0
- package/OnlCgformErpList-7a0388d8.mjs +425 -0
- package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
- package/OnlineAutoList-85e6a30d.mjs +472 -0
- package/OnlineAutoModal-2a146238.mjs +206 -0
- package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
- package/OnlineCustomModal-456a85a6.mjs +227 -0
- package/OnlineDetailModal-f967f080.mjs +177 -0
- package/OnlineForm-630a22c2.mjs +778 -0
- package/OnlineFormDetail-1b216792.mjs +296 -0
- package/OnlineQueryForm-1c5949a7.mjs +378 -0
- package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
- package/OnlineSelectCascade-c7baf52b.mjs +160 -0
- package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
- package/PageAttributeTable-811185fd.mjs +404 -0
- package/ProcessOnlineForm-27be6f6f.mjs +177 -0
- package/QueryTable-4ba771ef.mjs +115 -0
- package/SuperQuery-3821f984.mjs +845 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-fe20103a.mjs +6 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-074b92e5.mjs +236 -0
- package/index-6a09a912.mjs +58 -0
- package/index-9d32ae88.mjs +313 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-2d6a5955.mjs +388 -0
- package/useExtendComponent-48d37d9b.mjs +3919 -0
- package/useListButton-cef1371a.mjs +656 -0
- package/useOnlinePopEvent-e9a042f8.mjs +19 -0
- package/useOnlineTest-0df0ae86.mjs +43 -0
- package/useSchemas-fc8d97ce.mjs +669 -0
- package/useTableSync-dc333087.mjs +83 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -524
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -553
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1018
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1021
- package/SuperQueryValComponent.js +0 -9
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var r = (n, f, s) => new Promise((m, u) => {
|
|
2
|
+
var p = (a) => {
|
|
3
|
+
try {
|
|
4
|
+
i(s.next(a));
|
|
5
|
+
} catch (e) {
|
|
6
|
+
u(e);
|
|
7
|
+
}
|
|
8
|
+
}, c = (a) => {
|
|
9
|
+
try {
|
|
10
|
+
i(s.throw(a));
|
|
11
|
+
} catch (e) {
|
|
12
|
+
u(e);
|
|
13
|
+
}
|
|
14
|
+
}, i = (a) => a.done ? m(a.value) : Promise.resolve(a.value).then(p, c);
|
|
15
|
+
i((s = s.apply(n, f)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as g, ref as k, watch as w, resolveComponent as _, openBlock as S, createElementBlock as x, createVNode as h, withCtx as l, createTextVNode as b } from "vue";
|
|
18
|
+
import { BasicTable as F, useTable as v } from "/@/components/Table";
|
|
19
|
+
import { a as E, b as I, c as y } from "./auth.api-d3a6c4b3.mjs";
|
|
20
|
+
import { a as T } from "./auth.data-8be5c9e3.mjs";
|
|
21
|
+
import { _ as B } from "./index-6a09a912.mjs";
|
|
22
|
+
import "/@/utils/http/axios";
|
|
23
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
24
|
+
import "/@/hooks/web/useMessage";
|
|
25
|
+
import "vue-router";
|
|
26
|
+
const U = g({
|
|
27
|
+
name: "AuthFieldConfig",
|
|
28
|
+
components: { BasicTable: F },
|
|
29
|
+
props: {
|
|
30
|
+
headId: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "",
|
|
33
|
+
required: !0
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: ["update:authFields"],
|
|
37
|
+
setup(n, { emit: f }) {
|
|
38
|
+
const s = k(""), [m, { reload: u }] = v({
|
|
39
|
+
api: p,
|
|
40
|
+
rowKey: "code",
|
|
41
|
+
bordered: !0,
|
|
42
|
+
columns: T,
|
|
43
|
+
showIndexColumn: !1
|
|
44
|
+
});
|
|
45
|
+
w(
|
|
46
|
+
() => n.headId,
|
|
47
|
+
(a) => {
|
|
48
|
+
s.value = a.split("?")[0], u().catch(() => null);
|
|
49
|
+
},
|
|
50
|
+
{ immediate: !0 }
|
|
51
|
+
);
|
|
52
|
+
function p(a) {
|
|
53
|
+
return r(this, null, function* () {
|
|
54
|
+
const e = ["id"];
|
|
55
|
+
let t = yield E(s.value, a), o = [], C = [];
|
|
56
|
+
return t.forEach((d) => {
|
|
57
|
+
e.indexOf(d.code) < 0 && ((d.isShowForm == 1 || d.isShowList == 1) && C.push(d), d.dbIsPersist == 1 && o.push({ text: d.title, value: d.code }));
|
|
58
|
+
}), f("update:authFields", o), C;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function c(a, e) {
|
|
62
|
+
return r(this, null, function* () {
|
|
63
|
+
yield I({
|
|
64
|
+
cgformId: s.value,
|
|
65
|
+
code: e.code,
|
|
66
|
+
status: a ? 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 i(a, e, t) {
|
|
71
|
+
return r(this, null, function* () {
|
|
72
|
+
let o = a.target.checked;
|
|
73
|
+
yield y({
|
|
74
|
+
cgformId: s.value,
|
|
75
|
+
code: e.code,
|
|
76
|
+
switchFlag: t,
|
|
77
|
+
listShow: o,
|
|
78
|
+
formShow: o,
|
|
79
|
+
formEditable: o
|
|
80
|
+
}), t == 1 ? e.listShow = o : t == 2 ? e.formShow = o : t == 3 && (e.formEditable = o);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return { registerTable: m, onUpdateStatus: c, onCheckboxChange: i };
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
const $ = { class: "auth-field-config" };
|
|
87
|
+
function A(n, f, s, m, u, p) {
|
|
88
|
+
const c = _("a-switch"), i = _("a-checkbox"), a = _("BasicTable");
|
|
89
|
+
return S(), x("div", $, [
|
|
90
|
+
h(a, { onRegister: n.registerTable }, {
|
|
91
|
+
switch: l(({ text: e, record: t }) => [
|
|
92
|
+
h(c, {
|
|
93
|
+
size: "small",
|
|
94
|
+
checked: t.status === 1,
|
|
95
|
+
onChange: (o) => n.onUpdateStatus(o, t)
|
|
96
|
+
}, null, 8, ["checked", "onChange"])
|
|
97
|
+
]),
|
|
98
|
+
list: l(({ text: e, record: t }) => [
|
|
99
|
+
h(i, {
|
|
100
|
+
checked: t.listShow,
|
|
101
|
+
disabled: t.status === 0,
|
|
102
|
+
onChange: (o) => n.onCheckboxChange(o, t, 1)
|
|
103
|
+
}, {
|
|
104
|
+
default: l(() => [
|
|
105
|
+
b(" 可见 ")
|
|
106
|
+
]),
|
|
107
|
+
_: 2
|
|
108
|
+
}, 1032, ["checked", "disabled", "onChange"])
|
|
109
|
+
]),
|
|
110
|
+
form: l(({ text: e, record: t }) => [
|
|
111
|
+
h(i, {
|
|
112
|
+
checked: t.formShow,
|
|
113
|
+
disabled: t.status === 0,
|
|
114
|
+
onChange: (o) => n.onCheckboxChange(o, t, 2)
|
|
115
|
+
}, {
|
|
116
|
+
default: l(() => [
|
|
117
|
+
b(" 可见 ")
|
|
118
|
+
]),
|
|
119
|
+
_: 2
|
|
120
|
+
}, 1032, ["checked", "disabled", "onChange"]),
|
|
121
|
+
h(i, {
|
|
122
|
+
checked: t.formEditable,
|
|
123
|
+
disabled: t.status === 0,
|
|
124
|
+
onChange: (o) => n.onCheckboxChange(o, t, 3)
|
|
125
|
+
}, {
|
|
126
|
+
default: l(() => [
|
|
127
|
+
b(" 可编辑 ")
|
|
128
|
+
]),
|
|
129
|
+
_: 2
|
|
130
|
+
}, 1032, ["checked", "disabled", "onChange"])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["onRegister"])
|
|
134
|
+
]);
|
|
135
|
+
}
|
|
136
|
+
const P = /* @__PURE__ */ B(U, [["render", A], ["__scopeId", "data-v-d597c946"]]);
|
|
137
|
+
export {
|
|
138
|
+
P as default
|
|
139
|
+
};
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
var g = (e, m, u) => new Promise((C, h) => {
|
|
2
|
+
var s = (a) => {
|
|
3
|
+
try {
|
|
4
|
+
o(u.next(a));
|
|
5
|
+
} catch (i) {
|
|
6
|
+
h(i);
|
|
7
|
+
}
|
|
8
|
+
}, l = (a) => {
|
|
9
|
+
try {
|
|
10
|
+
o(u.throw(a));
|
|
11
|
+
} catch (i) {
|
|
12
|
+
h(i);
|
|
13
|
+
}
|
|
14
|
+
}, o = (a) => a.done ? C(a.value) : Promise.resolve(a.value).then(s, l);
|
|
15
|
+
o((u = u.apply(e, m)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as P, ref as p, computed as R, watch as V, unref as $, resolveComponent as f, openBlock as E, createElementBlock as A, createBlock as b, Fragment as q, createElementVNode as H, createVNode as d, withCtx as v, createTextVNode as k } from "vue";
|
|
18
|
+
import { useMessage as J } from "/@/hooks/web/useMessage";
|
|
19
|
+
import { k as L, l as j, s as G } from "./auth.api-d3a6c4b3.mjs";
|
|
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-6a09a912.mjs";
|
|
22
|
+
import "/@/utils/http/axios";
|
|
23
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
24
|
+
import "vue-router";
|
|
25
|
+
const ne = P({
|
|
26
|
+
name: "AuthFieldTree",
|
|
27
|
+
components: {
|
|
28
|
+
DownCircleOutlined: Q,
|
|
29
|
+
HomeOutlined: W,
|
|
30
|
+
UpCircleOutlined: X,
|
|
31
|
+
UndoOutlined: Y,
|
|
32
|
+
CheckOutlined: Z
|
|
33
|
+
},
|
|
34
|
+
props: {
|
|
35
|
+
cgformId: { type: String, required: !0 }
|
|
36
|
+
},
|
|
37
|
+
setup(e) {
|
|
38
|
+
const { createMessage: m } = J(), u = p(""), C = p(1), h = p(!0), s = p([]), l = p([]), o = p([]), a = p([]), i = p(""), O = R(() => !u.value);
|
|
39
|
+
V(() => e.cgformId, y, { immediate: !0 });
|
|
40
|
+
function y() {
|
|
41
|
+
return g(this, null, function* () {
|
|
42
|
+
if (!e.cgformId)
|
|
43
|
+
return;
|
|
44
|
+
let n = yield L(e.cgformId, C.value), t = [], c = [];
|
|
45
|
+
n.forEach((r) => {
|
|
46
|
+
c.includes(r.code) || (c.push(r.code), t.push({ key: r.code, title: r.title }));
|
|
47
|
+
});
|
|
48
|
+
for (let r of t) {
|
|
49
|
+
let I = [];
|
|
50
|
+
for (let F of n)
|
|
51
|
+
if (r.key === F.code) {
|
|
52
|
+
let M = D(F);
|
|
53
|
+
I.push({ key: F.id, title: M });
|
|
54
|
+
}
|
|
55
|
+
r.children = I;
|
|
56
|
+
}
|
|
57
|
+
a.value = t, s.value = [...c], o.value = c;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function D(n) {
|
|
61
|
+
let t = "";
|
|
62
|
+
return n.page == 3 ? t += "列表" : n.page == 5 && (t += "表单"), n.control == 3 ? t += "可编辑" : n.control == 5 && (t += "可见"), t;
|
|
63
|
+
}
|
|
64
|
+
function _(n, t) {
|
|
65
|
+
return g(this, null, function* () {
|
|
66
|
+
u.value = n, i.value = t, l.value = [], yield y();
|
|
67
|
+
let c = yield j({
|
|
68
|
+
roleId: n,
|
|
69
|
+
cgformId: e.cgformId,
|
|
70
|
+
type: C.value,
|
|
71
|
+
authMode: t
|
|
72
|
+
});
|
|
73
|
+
l.value = c.map((r) => r.authId);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function K() {
|
|
77
|
+
u.value = "", y();
|
|
78
|
+
}
|
|
79
|
+
function w() {
|
|
80
|
+
y(), _(u.value, i.value);
|
|
81
|
+
}
|
|
82
|
+
function T() {
|
|
83
|
+
return g(this, null, function* () {
|
|
84
|
+
let n = l.value.filter((t) => o.value.indexOf(t) < 0);
|
|
85
|
+
yield G(u.value, e.cgformId, {
|
|
86
|
+
authId: JSON.stringify(n),
|
|
87
|
+
authMode: i.value
|
|
88
|
+
}), m.success("保存成功");
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function S() {
|
|
92
|
+
s.value = [...o.value];
|
|
93
|
+
}
|
|
94
|
+
function x() {
|
|
95
|
+
s.value = [];
|
|
96
|
+
}
|
|
97
|
+
function U(n) {
|
|
98
|
+
s.value = n, h.value = !1;
|
|
99
|
+
}
|
|
100
|
+
function z() {
|
|
101
|
+
u.value = "", l.value = [];
|
|
102
|
+
}
|
|
103
|
+
function B() {
|
|
104
|
+
l.value = [];
|
|
105
|
+
}
|
|
106
|
+
function N() {
|
|
107
|
+
const n = function(t) {
|
|
108
|
+
for (let c of t)
|
|
109
|
+
l.value.push(c.key), c.children && c.children.length > 0 && n.call(null, c.children);
|
|
110
|
+
};
|
|
111
|
+
l.value = [], n.call(null, $(a));
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
loadChecked: _,
|
|
115
|
+
clear: z,
|
|
116
|
+
expandedKeys: s,
|
|
117
|
+
autoExpandParent: h,
|
|
118
|
+
checkedKeys: l,
|
|
119
|
+
treeData: a,
|
|
120
|
+
disabled: O,
|
|
121
|
+
onSave: T,
|
|
122
|
+
onExpand: U,
|
|
123
|
+
clearChecked: K,
|
|
124
|
+
onCloseAll: x,
|
|
125
|
+
onExpandAll: S,
|
|
126
|
+
onRefresh: w,
|
|
127
|
+
onClearSelected: B,
|
|
128
|
+
onSelectAll: N
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
const te = { class: "onl-auth-tree-btns" };
|
|
133
|
+
function oe(e, m, u, C, h, s) {
|
|
134
|
+
const l = f("a-empty"), o = f("a-button"), a = f("DownCircleOutlined"), i = f("UpCircleOutlined"), O = f("CheckOutlined"), y = f("UndoOutlined"), D = f("a-tree");
|
|
135
|
+
return E(), A("div", null, [
|
|
136
|
+
e.disabled ? (E(), b(l, {
|
|
137
|
+
key: 0,
|
|
138
|
+
description: "请先选中左侧角色/部门/用户"
|
|
139
|
+
})) : e.treeData.length === 0 ? (E(), b(l, {
|
|
140
|
+
key: 1,
|
|
141
|
+
description: "无权限信息"
|
|
142
|
+
})) : (E(), A(q, { key: 2 }, [
|
|
143
|
+
H("div", te, [
|
|
144
|
+
d(o, {
|
|
145
|
+
onClick: e.onRefresh,
|
|
146
|
+
size: "small",
|
|
147
|
+
type: "primary",
|
|
148
|
+
preIcon: "ant-design:redo",
|
|
149
|
+
ghost: ""
|
|
150
|
+
}, {
|
|
151
|
+
default: v(() => [
|
|
152
|
+
k("刷新")
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["onClick"]),
|
|
156
|
+
d(o, {
|
|
157
|
+
onClick: e.onExpandAll,
|
|
158
|
+
size: "small",
|
|
159
|
+
type: "primary",
|
|
160
|
+
ghost: ""
|
|
161
|
+
}, {
|
|
162
|
+
default: v(() => [
|
|
163
|
+
d(a),
|
|
164
|
+
k("展开")
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["onClick"]),
|
|
168
|
+
d(o, {
|
|
169
|
+
onClick: e.onCloseAll,
|
|
170
|
+
size: "small",
|
|
171
|
+
type: "primary",
|
|
172
|
+
ghost: ""
|
|
173
|
+
}, {
|
|
174
|
+
default: v(() => [
|
|
175
|
+
d(i),
|
|
176
|
+
k("折叠")
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["onClick"]),
|
|
180
|
+
d(o, {
|
|
181
|
+
onClick: e.onSave,
|
|
182
|
+
size: "small",
|
|
183
|
+
type: "primary",
|
|
184
|
+
preIcon: "ant-design:save",
|
|
185
|
+
ghost: ""
|
|
186
|
+
}, {
|
|
187
|
+
default: v(() => [
|
|
188
|
+
k("保存")
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["onClick"]),
|
|
192
|
+
d(o, {
|
|
193
|
+
onClick: e.onSelectAll,
|
|
194
|
+
size: "small",
|
|
195
|
+
type: "primary",
|
|
196
|
+
ghost: ""
|
|
197
|
+
}, {
|
|
198
|
+
default: v(() => [
|
|
199
|
+
d(O),
|
|
200
|
+
k("全选")
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["onClick"]),
|
|
204
|
+
d(o, {
|
|
205
|
+
onClick: e.onClearSelected,
|
|
206
|
+
size: "small",
|
|
207
|
+
type: "primary",
|
|
208
|
+
ghost: ""
|
|
209
|
+
}, {
|
|
210
|
+
default: v(() => [
|
|
211
|
+
d(y),
|
|
212
|
+
k("重置")
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}, 8, ["onClick"])
|
|
216
|
+
]),
|
|
217
|
+
d(D, {
|
|
218
|
+
checkable: "",
|
|
219
|
+
checkedKeys: e.checkedKeys,
|
|
220
|
+
"onUpdate:checkedKeys": m[0] || (m[0] = (_) => e.checkedKeys = _),
|
|
221
|
+
expandedKeys: e.expandedKeys,
|
|
222
|
+
autoExpandParent: e.autoExpandParent,
|
|
223
|
+
treeData: e.treeData,
|
|
224
|
+
onExpand: e.onExpand
|
|
225
|
+
}, null, 8, ["checkedKeys", "expandedKeys", "autoExpandParent", "treeData", "onExpand"])
|
|
226
|
+
], 64))
|
|
227
|
+
]);
|
|
228
|
+
}
|
|
229
|
+
const fe = /* @__PURE__ */ ee(ne, [["render", oe], ["__scopeId", "data-v-e6dabb1d"]]);
|
|
230
|
+
export {
|
|
231
|
+
fe as default
|
|
232
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { defineComponent as A, ref as u, computed as D, resolveComponent as a, openBlock as h, createBlock as y, withCtx as r, createVNode as o, createElementBlock as _, Fragment as B, createCommentVNode as F } from "vue";
|
|
2
|
+
import { BasicDrawer as I, useDrawerInner as b } from "/@/components/Drawer";
|
|
3
|
+
import w from "./AuthFieldConfig-b1217a0c.mjs";
|
|
4
|
+
import v from "./AuthButtonConfig-2f71787c.mjs";
|
|
5
|
+
import k from "./AuthDataConfig-32cf23d2.mjs";
|
|
6
|
+
import { _ as K } from "./index-6a09a912.mjs";
|
|
7
|
+
import "/@/components/Table";
|
|
8
|
+
import "./auth.api-d3a6c4b3.mjs";
|
|
9
|
+
import "/@/utils/http/axios";
|
|
10
|
+
import "./auth.data-8be5c9e3.mjs";
|
|
11
|
+
import "lodash-es";
|
|
12
|
+
import "/@/components/Modal";
|
|
13
|
+
import "/@/components/Form";
|
|
14
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
15
|
+
import "/@/hooks/web/useMessage";
|
|
16
|
+
import "vue-router";
|
|
17
|
+
const R = A({
|
|
18
|
+
name: "AuthManagerDrawer",
|
|
19
|
+
components: {
|
|
20
|
+
BasicDrawer: I,
|
|
21
|
+
AuthFieldConfig: w,
|
|
22
|
+
AuthButtonConfig: v,
|
|
23
|
+
AuthDataConfig: k
|
|
24
|
+
},
|
|
25
|
+
props: {
|
|
26
|
+
// 1单表 2主表 3附表
|
|
27
|
+
tableType: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 1
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["register"],
|
|
33
|
+
setup(e) {
|
|
34
|
+
const t = u(""), i = u(""), f = u([]), d = u("field"), c = D(() => e.tableType == 1 || e.tableType == 2), [s, { closeDrawer: n }] = b((m) => {
|
|
35
|
+
t.value = m.cgformId, i.value = t.value + "?" + (/* @__PURE__ */ new Date()).getTime(), d.value = "field";
|
|
36
|
+
});
|
|
37
|
+
function l() {
|
|
38
|
+
n();
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
activeKey: d,
|
|
42
|
+
cgformId: t,
|
|
43
|
+
headId: i,
|
|
44
|
+
authFields: f,
|
|
45
|
+
hasDataAuth: c,
|
|
46
|
+
onClose: l,
|
|
47
|
+
registerDrawer: s
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
function T(e, t, i, f, d, c) {
|
|
52
|
+
const s = a("AuthFieldConfig"), n = a("a-tab-pane"), l = a("AuthButtonConfig"), m = a("AuthDataConfig"), g = a("a-tabs"), C = a("BasicDrawer");
|
|
53
|
+
return h(), y(C, {
|
|
54
|
+
onRegister: e.registerDrawer,
|
|
55
|
+
title: "权限管理",
|
|
56
|
+
width: 800,
|
|
57
|
+
onClose: e.onClose
|
|
58
|
+
}, {
|
|
59
|
+
default: r(() => [
|
|
60
|
+
o(g, {
|
|
61
|
+
activeKey: e.activeKey,
|
|
62
|
+
"onUpdate:activeKey": t[1] || (t[1] = (p) => e.activeKey = p)
|
|
63
|
+
}, {
|
|
64
|
+
default: r(() => [
|
|
65
|
+
o(n, {
|
|
66
|
+
tab: "字段权限",
|
|
67
|
+
key: "field",
|
|
68
|
+
forceRender: ""
|
|
69
|
+
}, {
|
|
70
|
+
default: r(() => [
|
|
71
|
+
o(s, {
|
|
72
|
+
headId: e.headId,
|
|
73
|
+
authFields: e.authFields,
|
|
74
|
+
"onUpdate:authFields": t[0] || (t[0] = (p) => e.authFields = p)
|
|
75
|
+
}, null, 8, ["headId", "authFields"])
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
}),
|
|
79
|
+
e.hasDataAuth ? (h(), _(B, { key: 0 }, [
|
|
80
|
+
o(n, {
|
|
81
|
+
tab: "按钮权限",
|
|
82
|
+
key: "button",
|
|
83
|
+
forceRender: ""
|
|
84
|
+
}, {
|
|
85
|
+
default: r(() => [
|
|
86
|
+
o(l, { headId: e.headId }, null, 8, ["headId"])
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
}),
|
|
90
|
+
o(n, {
|
|
91
|
+
tab: "数据权限",
|
|
92
|
+
key: "data",
|
|
93
|
+
forceRender: ""
|
|
94
|
+
}, {
|
|
95
|
+
default: r(() => [
|
|
96
|
+
o(m, {
|
|
97
|
+
cgformId: e.cgformId,
|
|
98
|
+
authFields: e.authFields
|
|
99
|
+
}, null, 8, ["cgformId", "authFields"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
], 64)) : F("", !0)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["activeKey"])
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}, 8, ["onRegister", "onClose"]);
|
|
110
|
+
}
|
|
111
|
+
const S = /* @__PURE__ */ K(R, [["render", T]]);
|
|
112
|
+
export {
|
|
113
|
+
S as default
|
|
114
|
+
};
|