@jeecg/online 3.6.2-beta → 3.7.1-RC
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-6de335e3.mjs +84 -0
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/AuthDataConfig-5c3a8e6b.mjs +238 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/AuthManagerDrawer-76f15e8d.mjs +119 -0
- package/AuthSetterModal-f5d2e87f.mjs +274 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
- package/CheckDictTable-1bc8322d.mjs +229 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/CodeFileViewModal-2fe911f4.mjs +253 -0
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/CustomButtonList-f07bc695.mjs +397 -0
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/DetailForm-deecbf3d.mjs +486 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
- package/EnhanceJsModal-175357a1.mjs +548 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
- package/ExtendConfigModal-a89ae052.mjs +117 -0
- package/FieldExtendJsonModal-32135634.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
- package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
- package/LinkTableConfigModal-9242d750.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/OnlCgformErpList-58acdfa0.mjs +470 -0
- package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
- package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
- package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
- package/OnlCgformTabList-019ad753.mjs +408 -0
- package/OnlineAutoList-48589d09.mjs +493 -0
- package/OnlineAutoModal-c2928847.mjs +239 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-022ca117.mjs +342 -0
- package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
- package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
- package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
- package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
- package/OnlineTabForm-27655c83.mjs +817 -0
- package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
- package/PageAttributeTable-25e3b7da.mjs +466 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
- package/QueryTable-f7bfca7f.mjs +147 -0
- package/SetSwitchOptions-b2af757f.mjs +62 -0
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/auth.data-511e5197.mjs +217 -0
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
- package/index-1d1a6e56.mjs +57 -0
- package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
- package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-f41d4dc1.mjs +426 -0
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-bfac4ecf.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgformModal-eccfc38e.mjs +0 -611
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeFileViewModal-373e8058.mjs +0 -244
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/CustomButtonList-02e3d897.mjs +0 -363
- package/DbToOnlineModal-9f13956f.mjs +0 -160
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/JOnlineSearchSelect-c287af12.mjs +0 -95
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/auth.data-8be5c9e3.mjs +0 -141
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- package/useListButton-cdbab702.mjs +0 -676
- package/useTableSync-774c3774.mjs +0 -87
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
var S = (s, g, m) => new Promise((y, k) => {
|
|
2
|
+
var r = (h) => {
|
|
3
|
+
try {
|
|
4
|
+
f(m.next(h));
|
|
5
|
+
} catch (u) {
|
|
6
|
+
k(u);
|
|
7
|
+
}
|
|
8
|
+
}, w = (h) => {
|
|
9
|
+
try {
|
|
10
|
+
f(m.throw(h));
|
|
11
|
+
} catch (u) {
|
|
12
|
+
k(u);
|
|
13
|
+
}
|
|
14
|
+
}, f = (h) => h.done ? y(h.value) : Promise.resolve(h.value).then(r, w);
|
|
15
|
+
f((m = m.apply(s, g)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as z, ref as p, watch as V, resolveComponent as L, openBlock as E, createElementBlock as U, createVNode as b, withCtx as C, Fragment as B, createTextVNode as v, createBlock as P, toDisplayString as _ } from "vue";
|
|
18
|
+
import { BasicTable as q, useTable as K } from "/@/components/Table";
|
|
19
|
+
import { a as M, b as O, c as j, d as G, e as x } from "./auth.api-ea1d33d4.mjs";
|
|
20
|
+
import { a as H } from "./auth.data-511e5197.mjs";
|
|
21
|
+
import { _ as J } from "./index-1d1a6e56.mjs";
|
|
22
|
+
import "/@/utils/http/axios";
|
|
23
|
+
import "/@/utils/index";
|
|
24
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
25
|
+
import "/@/hooks/web/useMessage";
|
|
26
|
+
import "vue-router";
|
|
27
|
+
const Q = z({
|
|
28
|
+
name: "AuthFieldConfig",
|
|
29
|
+
components: { BasicTable: q },
|
|
30
|
+
props: {
|
|
31
|
+
headId: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "",
|
|
34
|
+
required: !0
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
emits: ["update:authFields"],
|
|
38
|
+
setup(s, { emit: g }) {
|
|
39
|
+
const m = p(""), [y, { reload: k, getTableRef: r, setPagination: w }] = K({
|
|
40
|
+
api: A,
|
|
41
|
+
rowKey: "code",
|
|
42
|
+
bordered: !0,
|
|
43
|
+
columns: H,
|
|
44
|
+
showIndexColumn: !1
|
|
45
|
+
}), f = p(!1), h = p(!1), u = p(!1), i = p(!1), c = p(!1), I = p(!1), F = p(!1);
|
|
46
|
+
V(
|
|
47
|
+
() => s.headId,
|
|
48
|
+
(l) => {
|
|
49
|
+
m.value = l.split("?")[0], r().value && w({ current: 1, pageSize: 10 }), k().catch(() => null);
|
|
50
|
+
},
|
|
51
|
+
{ immediate: !0 }
|
|
52
|
+
);
|
|
53
|
+
function A(l) {
|
|
54
|
+
return S(this, null, function* () {
|
|
55
|
+
const e = ["id"];
|
|
56
|
+
let n = yield M(m.value, l), t = [], d = [];
|
|
57
|
+
return n.forEach((o) => {
|
|
58
|
+
e.indexOf(o.code) < 0 && ((o.isShowForm == 1 || o.isShowList == 1) && d.push(o), o.dbIsPersist == 1 && t.push({
|
|
59
|
+
text: o.title,
|
|
60
|
+
value: o.code,
|
|
61
|
+
// -update-begin--author:liaozhiyang---date:20240617---for:【TV360X-201】权限管理条件根据控件过滤
|
|
62
|
+
view: o.fieldShowType,
|
|
63
|
+
dbType: o.dbType
|
|
64
|
+
// -update-end--author:liaozhiyang---date:20240617---for:【TV360X-201】权限管理条件根据控件过滤
|
|
65
|
+
}));
|
|
66
|
+
}), g("update:authFields", t), T(l.pageNo, l.pageSize, d), d;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function $(l, e) {
|
|
70
|
+
return S(this, null, function* () {
|
|
71
|
+
yield O({
|
|
72
|
+
cgformId: m.value,
|
|
73
|
+
code: e.code,
|
|
74
|
+
status: l ? 1 : 0
|
|
75
|
+
}), e.formEditable || e.formShow || e.listShow || (e.formEditable = !0, e.formShow = !0, e.listShow = !0), e.status = Math.abs(e.status - 1), R();
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function N(l, e, n) {
|
|
79
|
+
return S(this, null, function* () {
|
|
80
|
+
let t = l.target.checked;
|
|
81
|
+
yield j({
|
|
82
|
+
cgformId: m.value,
|
|
83
|
+
code: e.code,
|
|
84
|
+
switchFlag: n,
|
|
85
|
+
listShow: t,
|
|
86
|
+
formShow: t,
|
|
87
|
+
formEditable: t
|
|
88
|
+
}), n == 1 ? e.listShow = t : n == 2 ? e.formShow = t : n == 3 && (e.formEditable = t), e.listShow === !1 && e.formShow === !1 && e.formEditable === !1 && (e.status = 0), R();
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function T(l, e, n) {
|
|
92
|
+
const t = [];
|
|
93
|
+
if (n != null && n.length) {
|
|
94
|
+
const d = l * e > n.length ? n.length : l * e;
|
|
95
|
+
for (let o = l * e - e; o < d; o++) {
|
|
96
|
+
const a = n[o];
|
|
97
|
+
t.push(a);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
t.length ? (f.value = !0, h.value = !0, u.value = !0, t.forEach((d) => {
|
|
101
|
+
f.value && d.status == 0 && (f.value = !1), h.value && d.listShow == !1 && (h.value = !1), u.value && (d.formEditable == !1 || d.formShow == !1) && (u.value = !1);
|
|
102
|
+
}), h.value == !0 ? F.value = !1 : t.find((o) => o.listShow) ? F.value = !0 : F.value = !1, u.value == !0 ? I.value = !1 : t.find((o) => o.formEditable || o.formShow) ? I.value = !0 : I.value = !1) : (f.value = !1, h.value = !1, u.value = !1);
|
|
103
|
+
}
|
|
104
|
+
const R = () => {
|
|
105
|
+
const { current: l, pageSize: e } = r().value.getPaginationRef(), n = r().value.getDataSource();
|
|
106
|
+
T(l, e, n);
|
|
107
|
+
}, D = (l, e) => {
|
|
108
|
+
const n = [], t = r().value.getDataSource();
|
|
109
|
+
if (t != null && t.length) {
|
|
110
|
+
const d = l * e > t.length ? t.length : l * e;
|
|
111
|
+
for (let o = l * e - e; o < d; o++) {
|
|
112
|
+
const a = t[o];
|
|
113
|
+
n.push(a);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return n;
|
|
117
|
+
};
|
|
118
|
+
return { registerTable: y, onUpdateStatus: $, onCheckboxChange: N, handleChangeSwitch: (l) => S(this, null, function* () {
|
|
119
|
+
c.value = !0, f.value = l;
|
|
120
|
+
const { current: e, pageSize: n } = r().value.getPaginationRef(), t = D(e, n);
|
|
121
|
+
let d = t.map((a) => ({ cgformId: a.cgformId, code: a.code, status: l ? 1 : 0 }));
|
|
122
|
+
i.value = !0, yield G(d), t.forEach((a) => {
|
|
123
|
+
l ? a.status = 1 : a.status = 0, a.formEditable || a.formShow || a.listShow || (a.formEditable = !0, a.formShow = !0, a.listShow = !0);
|
|
124
|
+
}), i.value = !1, c.value = !1;
|
|
125
|
+
const o = r().value.getDataSource();
|
|
126
|
+
T(e, n, o);
|
|
127
|
+
}), allSwitch: f, allFormControl: u, allListControl: h, allSloading: i, handleTableChange: (l) => {
|
|
128
|
+
}, handleChangeList: (l) => S(this, null, function* () {
|
|
129
|
+
c.value = !0;
|
|
130
|
+
const e = l.target.checked;
|
|
131
|
+
h.value = e;
|
|
132
|
+
const { current: n, pageSize: t } = r().value.getPaginationRef(), d = D(n, t);
|
|
133
|
+
let o = d.map((a) => ({ cgformId: a.cgformId, code: a.code, switchFlag: 1, listShow: !!e }));
|
|
134
|
+
yield x(o), d.forEach((a) => {
|
|
135
|
+
a.listShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0, f.value = !1);
|
|
136
|
+
}), e && (F.value = !1), c.value = !1;
|
|
137
|
+
}), handleChangeForm: (l) => S(this, null, function* () {
|
|
138
|
+
c.value = !0;
|
|
139
|
+
const e = l.target.checked;
|
|
140
|
+
u.value = e;
|
|
141
|
+
const { current: n, pageSize: t } = r().value.getPaginationRef(), d = D(n, t), o = [
|
|
142
|
+
...d.map((a) => ({ cgformId: a.cgformId, code: a.code, switchFlag: 4, formShow: !!e, formEditable: !!e }))
|
|
143
|
+
];
|
|
144
|
+
yield x(o), d.forEach((a) => {
|
|
145
|
+
a.formEditable = !!e, a.formShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0, f.value = !1);
|
|
146
|
+
}), e && (I.value = !1), c.value = !1;
|
|
147
|
+
}), tableLoading: c, formIndeterminate: I, listIndeterminate: F };
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
const W = { class: "auth-field-config" };
|
|
151
|
+
function X(s, g, m, y, k, r) {
|
|
152
|
+
const w = L("a-switch"), f = L("a-checkbox"), h = L("BasicTable");
|
|
153
|
+
return E(), U("div", W, [
|
|
154
|
+
b(h, {
|
|
155
|
+
onRegister: s.registerTable,
|
|
156
|
+
onChange: s.handleTableChange,
|
|
157
|
+
loading: s.tableLoading
|
|
158
|
+
}, {
|
|
159
|
+
headerCell: C(({ column: u }) => [
|
|
160
|
+
u.dataIndex === "switch" ? (E(), U(B, { key: 0 }, [
|
|
161
|
+
b(w, {
|
|
162
|
+
loading: s.allSloading,
|
|
163
|
+
checked: s.allSwitch,
|
|
164
|
+
"onUpdate:checked": g[0] || (g[0] = (i) => s.allSwitch = i),
|
|
165
|
+
size: "small",
|
|
166
|
+
onChange: s.handleChangeSwitch
|
|
167
|
+
}, null, 8, ["loading", "checked", "onChange"]),
|
|
168
|
+
v("启用 ")
|
|
169
|
+
], 64)) : u.dataIndex === "list" ? (E(), P(f, {
|
|
170
|
+
key: 1,
|
|
171
|
+
indeterminate: s.listIndeterminate,
|
|
172
|
+
checked: s.allListControl,
|
|
173
|
+
"onUpdate:checked": g[1] || (g[1] = (i) => s.allListControl = i),
|
|
174
|
+
disabled: !s.allSwitch,
|
|
175
|
+
onChange: s.handleChangeList
|
|
176
|
+
}, {
|
|
177
|
+
default: C(() => [
|
|
178
|
+
v(_(u.customTitle), 1)
|
|
179
|
+
]),
|
|
180
|
+
_: 2
|
|
181
|
+
}, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : u.dataIndex === "form" ? (E(), P(f, {
|
|
182
|
+
key: 2,
|
|
183
|
+
indeterminate: s.formIndeterminate,
|
|
184
|
+
checked: s.allFormControl,
|
|
185
|
+
"onUpdate:checked": g[2] || (g[2] = (i) => s.allFormControl = i),
|
|
186
|
+
disabled: !s.allSwitch,
|
|
187
|
+
onChange: s.handleChangeForm
|
|
188
|
+
}, {
|
|
189
|
+
default: C(() => [
|
|
190
|
+
v(_(u.customTitle), 1)
|
|
191
|
+
]),
|
|
192
|
+
_: 2
|
|
193
|
+
}, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : (E(), U(B, { key: 3 }, [
|
|
194
|
+
v(_(u.customTitle), 1)
|
|
195
|
+
], 64))
|
|
196
|
+
]),
|
|
197
|
+
switch: C(({ text: u, record: i }) => [
|
|
198
|
+
b(w, {
|
|
199
|
+
size: "small",
|
|
200
|
+
checked: i.status === 1,
|
|
201
|
+
onChange: (c) => s.onUpdateStatus(c, i)
|
|
202
|
+
}, null, 8, ["checked", "onChange"])
|
|
203
|
+
]),
|
|
204
|
+
list: C(({ text: u, record: i }) => [
|
|
205
|
+
b(f, {
|
|
206
|
+
checked: i.listShow,
|
|
207
|
+
disabled: i.status === 0,
|
|
208
|
+
onChange: (c) => s.onCheckboxChange(c, i, 1)
|
|
209
|
+
}, {
|
|
210
|
+
default: C(() => [
|
|
211
|
+
v(" 可见 ")
|
|
212
|
+
]),
|
|
213
|
+
_: 2
|
|
214
|
+
}, 1032, ["checked", "disabled", "onChange"])
|
|
215
|
+
]),
|
|
216
|
+
form: C(({ text: u, record: i }) => [
|
|
217
|
+
b(f, {
|
|
218
|
+
checked: i.formShow,
|
|
219
|
+
disabled: i.status === 0,
|
|
220
|
+
onChange: (c) => s.onCheckboxChange(c, i, 2)
|
|
221
|
+
}, {
|
|
222
|
+
default: C(() => [
|
|
223
|
+
v(" 可见 ")
|
|
224
|
+
]),
|
|
225
|
+
_: 2
|
|
226
|
+
}, 1032, ["checked", "disabled", "onChange"]),
|
|
227
|
+
b(f, {
|
|
228
|
+
checked: i.formEditable,
|
|
229
|
+
disabled: i.status === 0,
|
|
230
|
+
onChange: (c) => s.onCheckboxChange(c, i, 3)
|
|
231
|
+
}, {
|
|
232
|
+
default: C(() => [
|
|
233
|
+
v(" 可编辑 ")
|
|
234
|
+
]),
|
|
235
|
+
_: 2
|
|
236
|
+
}, 1032, ["checked", "disabled", "onChange"])
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}, 8, ["onRegister", "onChange", "loading"])
|
|
240
|
+
]);
|
|
241
|
+
}
|
|
242
|
+
const re = /* @__PURE__ */ J(Q, [["render", X], ["__scopeId", "data-v-c48da65c"]]);
|
|
243
|
+
export {
|
|
244
|
+
re as default
|
|
245
|
+
};
|
|
@@ -16,9 +16,9 @@ var g = (e, m, u) => new Promise((C, h) => {
|
|
|
16
16
|
});
|
|
17
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
18
|
import { useMessage as J } from "/@/hooks/web/useMessage";
|
|
19
|
-
import {
|
|
19
|
+
import { m as L, n as j, s as G } from "./auth.api-ea1d33d4.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-1d1a6e56.mjs";
|
|
22
22
|
import "/@/utils/http/axios";
|
|
23
23
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
24
24
|
import "vue-router";
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { defineComponent as b, ref as n, computed as C, resolveComponent as a, openBlock as g, createBlock as A, withCtx as u, createVNode as o, createElementBlock as D, Fragment as B, createCommentVNode as F } from "vue";
|
|
2
|
+
import { BasicDrawer as I, useDrawerInner as _ } from "/@/components/Drawer";
|
|
3
|
+
import v from "./AuthFieldConfig-9f6fa06c.mjs";
|
|
4
|
+
import w from "./AuthButtonConfig-89763932.mjs";
|
|
5
|
+
import T from "./AuthDataConfig-5c3a8e6b.mjs";
|
|
6
|
+
import { _ as k } from "./index-1d1a6e56.mjs";
|
|
7
|
+
import "/@/components/Table";
|
|
8
|
+
import "./auth.api-ea1d33d4.mjs";
|
|
9
|
+
import "/@/utils/http/axios";
|
|
10
|
+
import "./auth.data-511e5197.mjs";
|
|
11
|
+
import "/@/utils/index";
|
|
12
|
+
import "lodash-es";
|
|
13
|
+
import "/@/components/Modal";
|
|
14
|
+
import "/@/components/Form";
|
|
15
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
16
|
+
import "/@/hooks/web/useMessage";
|
|
17
|
+
import "vue-router";
|
|
18
|
+
const K = b({
|
|
19
|
+
name: "AuthManagerDrawer",
|
|
20
|
+
components: {
|
|
21
|
+
BasicDrawer: I,
|
|
22
|
+
AuthFieldConfig: v,
|
|
23
|
+
AuthButtonConfig: w,
|
|
24
|
+
AuthDataConfig: T
|
|
25
|
+
},
|
|
26
|
+
props: {
|
|
27
|
+
// 1单表 2主表 3附表
|
|
28
|
+
tableType: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 1
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["register"],
|
|
34
|
+
setup(e) {
|
|
35
|
+
const t = n(""), d = n(""), h = n([]), s = n("field"), l = n(1), p = C(() => e.tableType == 1 || e.tableType == 2), [r, { closeDrawer: m }] = _((i) => {
|
|
36
|
+
t.value = i.cgformId, d.value = t.value + "?" + (/* @__PURE__ */ new Date()).getTime(), s.value = "field", l.value = i.tableType;
|
|
37
|
+
});
|
|
38
|
+
function f() {
|
|
39
|
+
m();
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
activeKey: s,
|
|
43
|
+
cgformId: t,
|
|
44
|
+
headId: d,
|
|
45
|
+
authFields: h,
|
|
46
|
+
hasDataAuth: p,
|
|
47
|
+
onClose: f,
|
|
48
|
+
registerDrawer: r,
|
|
49
|
+
curTableType: l
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
function R(e, t, d, h, s, l) {
|
|
54
|
+
const p = a("AuthFieldConfig"), r = a("a-tab-pane"), m = a("AuthButtonConfig"), f = a("AuthDataConfig"), i = a("a-tabs"), y = a("BasicDrawer");
|
|
55
|
+
return g(), A(y, {
|
|
56
|
+
onRegister: e.registerDrawer,
|
|
57
|
+
title: "权限管理",
|
|
58
|
+
width: 800,
|
|
59
|
+
onClose: e.onClose
|
|
60
|
+
}, {
|
|
61
|
+
default: u(() => [
|
|
62
|
+
o(i, {
|
|
63
|
+
activeKey: e.activeKey,
|
|
64
|
+
"onUpdate:activeKey": t[1] || (t[1] = (c) => e.activeKey = c)
|
|
65
|
+
}, {
|
|
66
|
+
default: u(() => [
|
|
67
|
+
o(r, {
|
|
68
|
+
tab: "字段权限",
|
|
69
|
+
key: "field",
|
|
70
|
+
forceRender: ""
|
|
71
|
+
}, {
|
|
72
|
+
default: u(() => [
|
|
73
|
+
o(p, {
|
|
74
|
+
headId: e.headId,
|
|
75
|
+
authFields: e.authFields,
|
|
76
|
+
"onUpdate:authFields": t[0] || (t[0] = (c) => e.authFields = c)
|
|
77
|
+
}, null, 8, ["headId", "authFields"])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}),
|
|
81
|
+
e.hasDataAuth ? (g(), D(B, { key: 0 }, [
|
|
82
|
+
o(r, {
|
|
83
|
+
tab: "按钮权限",
|
|
84
|
+
key: "button",
|
|
85
|
+
forceRender: ""
|
|
86
|
+
}, {
|
|
87
|
+
default: u(() => [
|
|
88
|
+
o(m, {
|
|
89
|
+
headId: e.headId,
|
|
90
|
+
tableType: e.curTableType
|
|
91
|
+
}, null, 8, ["headId", "tableType"])
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}),
|
|
95
|
+
o(r, {
|
|
96
|
+
tab: "数据权限",
|
|
97
|
+
key: "data",
|
|
98
|
+
forceRender: ""
|
|
99
|
+
}, {
|
|
100
|
+
default: u(() => [
|
|
101
|
+
o(f, {
|
|
102
|
+
cgformId: e.cgformId,
|
|
103
|
+
authFields: e.authFields
|
|
104
|
+
}, null, 8, ["cgformId", "authFields"])
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
})
|
|
108
|
+
], 64)) : F("", !0)
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 8, ["activeKey"])
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
}, 8, ["onRegister", "onClose"]);
|
|
115
|
+
}
|
|
116
|
+
const W = /* @__PURE__ */ k(K, [["render", R]]);
|
|
117
|
+
export {
|
|
118
|
+
W as default
|
|
119
|
+
};
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
var F = Object.defineProperty, O = Object.defineProperties;
|
|
2
|
+
var N = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var M = Object.getOwnPropertySymbols;
|
|
4
|
+
var $ = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var B = (e, t, o) => t in e ? F(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, D = (e, t) => {
|
|
6
|
+
for (var o in t || (t = {}))
|
|
7
|
+
$.call(t, o) && B(e, o, t[o]);
|
|
8
|
+
if (M)
|
|
9
|
+
for (var o of M(t))
|
|
10
|
+
V.call(t, o) && B(e, o, t[o]);
|
|
11
|
+
return e;
|
|
12
|
+
}, I = (e, t) => O(e, N(t));
|
|
13
|
+
var T = (e, t, o) => new Promise((p, l) => {
|
|
14
|
+
var n = (f) => {
|
|
15
|
+
try {
|
|
16
|
+
c(o.next(f));
|
|
17
|
+
} catch (v) {
|
|
18
|
+
l(v);
|
|
19
|
+
}
|
|
20
|
+
}, i = (f) => {
|
|
21
|
+
try {
|
|
22
|
+
c(o.throw(f));
|
|
23
|
+
} catch (v) {
|
|
24
|
+
l(v);
|
|
25
|
+
}
|
|
26
|
+
}, c = (f) => f.done ? p(f.value) : Promise.resolve(f.value).then(n, i);
|
|
27
|
+
c((o = o.apply(e, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import P from "./LeftRole-2ed8a2bf.mjs";
|
|
30
|
+
import j from "./LeftDepart-d5615ed9.mjs";
|
|
31
|
+
import q from "./LeftUser-22baa378.mjs";
|
|
32
|
+
import z from "./AuthFieldTree-e326fc38.mjs";
|
|
33
|
+
import G from "./AuthButtonTree-2d87d0b3.mjs";
|
|
34
|
+
import H from "./AuthDataTree-dd7a1240.mjs";
|
|
35
|
+
import { defineComponent as J, ref as d, computed as Q, nextTick as L, resolveComponent as s, openBlock as b, createBlock as w, withCtx as u, createVNode as a, createElementBlock as W, Fragment as X, createCommentVNode as K } from "vue";
|
|
36
|
+
import { BasicModal as Y, useModalInner as Z } from "/@/components/Modal";
|
|
37
|
+
import { _ as x } from "./index-1d1a6e56.mjs";
|
|
38
|
+
import "/@/utils/http/axios";
|
|
39
|
+
import "/@/components/Table";
|
|
40
|
+
import "/@/hooks/system/useListPage";
|
|
41
|
+
import "/@/api/common/api";
|
|
42
|
+
import "/@/hooks/web/useMessage";
|
|
43
|
+
import "./auth.api-ea1d33d4.mjs";
|
|
44
|
+
import "@ant-design/icons-vue";
|
|
45
|
+
import "./auth.data-511e5197.mjs";
|
|
46
|
+
import "/@/utils/index";
|
|
47
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
48
|
+
import "vue-router";
|
|
49
|
+
const ee = J({
|
|
50
|
+
name: "AuthSetterModal",
|
|
51
|
+
components: {
|
|
52
|
+
BasicModal: Y,
|
|
53
|
+
LeftRole: P,
|
|
54
|
+
LeftDepart: j,
|
|
55
|
+
LeftUser: q,
|
|
56
|
+
AuthFieldTree: z,
|
|
57
|
+
AuthButtonTree: G,
|
|
58
|
+
AuthDataTree: H
|
|
59
|
+
},
|
|
60
|
+
props: {
|
|
61
|
+
// 1单表 2主表 3附表
|
|
62
|
+
tableType: { type: Number, default: 1 }
|
|
63
|
+
},
|
|
64
|
+
setup(e) {
|
|
65
|
+
const t = d(""), o = d(!1), p = d("field"), l = d("role"), n = {
|
|
66
|
+
fieldRef: d(),
|
|
67
|
+
buttonRef: d(),
|
|
68
|
+
dataRef: d(),
|
|
69
|
+
roleRef: d(),
|
|
70
|
+
userRef: d(),
|
|
71
|
+
departRef: d()
|
|
72
|
+
}, i = d(""), c = Q(() => e.tableType == 1 || e.tableType == 2), f = d(!0), [v, { closeModal: R }] = Z((r) => {
|
|
73
|
+
p.value = "field", l.value = "role", t.value = r.cgformId, y();
|
|
74
|
+
});
|
|
75
|
+
function h(r = p.value) {
|
|
76
|
+
var k;
|
|
77
|
+
return (k = n[r + "Ref"]) == null ? void 0 : k.value;
|
|
78
|
+
}
|
|
79
|
+
function y() {
|
|
80
|
+
return T(this, null, function* () {
|
|
81
|
+
yield L(), g(), h().clear();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function S(r) {
|
|
85
|
+
i.value = r, m(p.value), _();
|
|
86
|
+
}
|
|
87
|
+
function C(r) {
|
|
88
|
+
i.value = r, m(p.value), _();
|
|
89
|
+
}
|
|
90
|
+
function A(r) {
|
|
91
|
+
i.value = r, m(p.value), _();
|
|
92
|
+
}
|
|
93
|
+
function _() {
|
|
94
|
+
l.value == "role" ? (n.departRef.value.clearSelected(), n.userRef.value.clearSelected()) : l.value == "depart" ? (n.roleRef.value.clearSelected(), n.userRef.value.clearSelected()) : l.value == "user" && (n.departRef.value.clearSelected(), n.roleRef.value.clearSelected());
|
|
95
|
+
}
|
|
96
|
+
function g() {
|
|
97
|
+
l.value == "role" ? n.roleRef.value.clearSelected() : l.value == "depart" ? n.departRef.value.clearSelected() : l.value == "user" && n.userRef.value.clearSelected(), h().clearChecked(), i.value = "";
|
|
98
|
+
}
|
|
99
|
+
function m(r) {
|
|
100
|
+
return T(this, null, function* () {
|
|
101
|
+
yield L(), i.value && h(r).loadChecked(i.value, l.value);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function E() {
|
|
105
|
+
g();
|
|
106
|
+
}
|
|
107
|
+
const U = (r) => {
|
|
108
|
+
f.value = r;
|
|
109
|
+
};
|
|
110
|
+
return I(D({}, n), {
|
|
111
|
+
cgformId: t,
|
|
112
|
+
loading: o,
|
|
113
|
+
activeKey: p,
|
|
114
|
+
hasDataAuth: c,
|
|
115
|
+
authMode: l,
|
|
116
|
+
onAuthModeChange: E,
|
|
117
|
+
onAuthTypeChange: m,
|
|
118
|
+
closeModal: R,
|
|
119
|
+
onSelectRole: S,
|
|
120
|
+
onSelectDepart: C,
|
|
121
|
+
onSelectUser: A,
|
|
122
|
+
registerModal: v,
|
|
123
|
+
hanldeOpenChange: U,
|
|
124
|
+
contentShow: f
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
function te(e, t, o, p, l, n) {
|
|
129
|
+
const i = s("LeftRole"), c = s("a-tab-pane"), f = s("LeftDepart"), v = s("LeftUser"), R = s("a-tabs"), h = s("a-col"), y = s("AuthFieldTree"), S = s("AuthButtonTree"), C = s("AuthDataTree"), A = s("a-row"), _ = s("a-spin"), g = s("BasicModal");
|
|
130
|
+
return b(), w(g, {
|
|
131
|
+
title: "Online权限授权",
|
|
132
|
+
width: 900,
|
|
133
|
+
maskClosable: !1,
|
|
134
|
+
defaultFullscreen: "",
|
|
135
|
+
okButtonProps: { style: { display: "none" } },
|
|
136
|
+
cancelText: "关闭",
|
|
137
|
+
onCancel: e.closeModal,
|
|
138
|
+
onRegister: e.registerModal,
|
|
139
|
+
onOpenChange: e.hanldeOpenChange
|
|
140
|
+
}, {
|
|
141
|
+
default: u(() => [
|
|
142
|
+
a(_, {
|
|
143
|
+
wrapperClassName: "authsetting-container",
|
|
144
|
+
spinning: e.loading
|
|
145
|
+
}, {
|
|
146
|
+
default: u(() => [
|
|
147
|
+
e.contentShow ? (b(), w(A, { key: 0 }, {
|
|
148
|
+
default: u(() => [
|
|
149
|
+
a(h, { span: 12 }, {
|
|
150
|
+
default: u(() => [
|
|
151
|
+
a(R, {
|
|
152
|
+
activeKey: e.authMode,
|
|
153
|
+
"onUpdate:activeKey": t[0] || (t[0] = (m) => e.authMode = m),
|
|
154
|
+
onChange: e.onAuthModeChange
|
|
155
|
+
}, {
|
|
156
|
+
default: u(() => [
|
|
157
|
+
a(c, {
|
|
158
|
+
tab: "角色授权",
|
|
159
|
+
key: "role",
|
|
160
|
+
forceRender: ""
|
|
161
|
+
}, {
|
|
162
|
+
default: u(() => [
|
|
163
|
+
a(i, {
|
|
164
|
+
ref: "roleRef",
|
|
165
|
+
onSelect: e.onSelectRole
|
|
166
|
+
}, null, 8, ["onSelect"])
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}),
|
|
170
|
+
a(c, {
|
|
171
|
+
tab: "部门授权",
|
|
172
|
+
key: "depart",
|
|
173
|
+
forceRender: ""
|
|
174
|
+
}, {
|
|
175
|
+
default: u(() => [
|
|
176
|
+
a(f, {
|
|
177
|
+
ref: "departRef",
|
|
178
|
+
onSelect: e.onSelectDepart
|
|
179
|
+
}, null, 8, ["onSelect"])
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}),
|
|
183
|
+
a(c, {
|
|
184
|
+
tab: "人员授权",
|
|
185
|
+
key: "user",
|
|
186
|
+
forceRender: ""
|
|
187
|
+
}, {
|
|
188
|
+
default: u(() => [
|
|
189
|
+
a(v, {
|
|
190
|
+
ref: "userRef",
|
|
191
|
+
onSelect: e.onSelectUser
|
|
192
|
+
}, null, 8, ["onSelect"])
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
})
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["activeKey", "onChange"])
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}),
|
|
202
|
+
a(h, { span: 1 }),
|
|
203
|
+
a(h, { span: 11 }, {
|
|
204
|
+
default: u(() => [
|
|
205
|
+
a(R, {
|
|
206
|
+
activeKey: e.activeKey,
|
|
207
|
+
"onUpdate:activeKey": t[1] || (t[1] = (m) => e.activeKey = m),
|
|
208
|
+
onChange: e.onAuthTypeChange
|
|
209
|
+
}, {
|
|
210
|
+
default: u(() => [
|
|
211
|
+
a(c, {
|
|
212
|
+
tab: "字段权限",
|
|
213
|
+
key: "field",
|
|
214
|
+
forceRender: ""
|
|
215
|
+
}, {
|
|
216
|
+
default: u(() => [
|
|
217
|
+
a(y, {
|
|
218
|
+
class: "authFieldTree",
|
|
219
|
+
ref: "fieldRef",
|
|
220
|
+
cgformId: e.cgformId
|
|
221
|
+
}, null, 8, ["cgformId"])
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}),
|
|
225
|
+
e.hasDataAuth ? (b(), W(X, { key: 0 }, [
|
|
226
|
+
a(c, {
|
|
227
|
+
tab: "按钮权限",
|
|
228
|
+
key: "button",
|
|
229
|
+
forceRender: ""
|
|
230
|
+
}, {
|
|
231
|
+
default: u(() => [
|
|
232
|
+
a(S, {
|
|
233
|
+
class: "authButtonTree",
|
|
234
|
+
ref: "buttonRef",
|
|
235
|
+
cgformId: e.cgformId
|
|
236
|
+
}, null, 8, ["cgformId"])
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}),
|
|
240
|
+
a(c, {
|
|
241
|
+
tab: "数据权限",
|
|
242
|
+
key: "data",
|
|
243
|
+
forceRender: ""
|
|
244
|
+
}, {
|
|
245
|
+
default: u(() => [
|
|
246
|
+
a(C, {
|
|
247
|
+
class: "authDataTree",
|
|
248
|
+
ref: "dataRef",
|
|
249
|
+
cgformId: e.cgformId
|
|
250
|
+
}, null, 8, ["cgformId"])
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
})
|
|
254
|
+
], 64)) : K("", !0)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["activeKey", "onChange"])
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
})
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
})) : K("", !0)
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
}, 8, ["spinning"])
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 8, ["onCancel", "onRegister", "onOpenChange"]);
|
|
270
|
+
}
|
|
271
|
+
const Ae = /* @__PURE__ */ x(ee, [["render", te], ["__scopeId", "data-v-e2407ec1"]]);
|
|
272
|
+
export {
|
|
273
|
+
Ae as default
|
|
274
|
+
};
|