@jeecg/online 3.7.1-RC → 3.7.4
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/AccountLoginForm-d2fed52f.mjs +254 -0
- package/AiModal-fbe4b68a.mjs +84 -0
- package/AppForgetPassword-3b3bec82.mjs +310 -0
- package/AppLogin-cd2e2a87.mjs +287 -0
- package/AppLoginHeader-9b5be678.mjs +27 -0
- package/AppNameEmail-b4e32ae8.mjs +180 -0
- package/AppRegister-7117b66a.mjs +303 -0
- package/AppTenant-5817729b.mjs +373 -0
- package/AppThirdForm-d14fb5e5.mjs +189 -0
- package/AuthButtonConfig-5e3b6d72.mjs +156 -0
- package/AuthButtonTree-7b4ec967.mjs +165 -0
- package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
- package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
- package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
- package/AuthFieldTree-2d458c0c.mjs +232 -0
- package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
- package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.mjs} +9 -9
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1b9cbe19.mjs +260 -0
- package/CgformCopyList-580bba0f.mjs +252 -0
- package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
- package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
- package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
- package/CodeFileListModal-71752603.mjs +159 -0
- package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
- package/CodeGeneratorModal-2fe1e920.mjs +281 -0
- package/CustomButtonList-22b5cdb3.mjs +274 -0
- package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
- package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
- package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
- package/DropMenuItem-b1a8f47d.mjs +44 -0
- package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
- package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
- package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
- package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-37af21a5.mjs} +2 -2
- package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
- package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
- package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
- package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
- package/JModalTip-192fafa1.mjs +49 -0
- package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
- package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
- package/LeftRole-9d88976d.mjs +86 -0
- package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
- package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
- package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
- package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
- package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
- package/OnlCgformErpList-8fd15fc1.mjs +488 -0
- package/OnlCgformErpSubTable-3515150b.mjs +441 -0
- package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
- package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
- package/OnlCgformTabList-583ac15f.mjs +424 -0
- package/OnlineAutoList-36ec0957.mjs +513 -0
- package/OnlineAutoModal-c0743caf.mjs +260 -0
- package/OnlineAutoTreeList-1cd718be.mjs +523 -0
- package/OnlineCustomModal-661ee850.mjs +232 -0
- package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
- package/OnlineForm-c1fb38eb.mjs +1012 -0
- package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
- package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
- package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
- package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
- package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
- package/OnlineQueryForm-ca6186a3.mjs +484 -0
- package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
- package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
- package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
- package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
- package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
- package/OnlineTabForm-89389384.mjs +814 -0
- package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
- package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
- package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
- package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
- package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
- package/SetSwitchOptions-cdcb22a1.mjs +62 -0
- package/ShareAddView-f713c0a5.mjs +86 -0
- package/ShareEditView-691764ad.mjs +92 -0
- package/ShareView-df344a8d.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
- package/SingleView-ad0287d6.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
- package/SuperQuery-2b293e3b.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
- package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
- package/index-181f8344.mjs +219 -0
- package/index-19eaef11.mjs +11 -0
- package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
- package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-93341e02.mjs +110 -0
- package/index-bef7fe2d.mjs +74 -0
- package/index-d6f9ada7.mjs +135 -0
- package/index-f3683351.mjs +57 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-13c8aab7.mjs +378 -0
- package/useExtendComponent-3f5734ca.mjs +4459 -0
- package/useListButton-ee23874a.mjs +719 -0
- package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
- package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-6de335e3.mjs +0 -84
- package/AuthButtonConfig-89763932.mjs +0 -154
- package/AuthButtonTree-2d87d0b3.mjs +0 -157
- package/AuthFieldTree-e326fc38.mjs +0 -232
- package/CgformCopyList-365b3e8f.mjs +0 -251
- package/CodeFileListModal-24601898.mjs +0 -159
- package/CodeGeneratorModal-f09fe903.mjs +0 -282
- package/CustomButtonList-f07bc695.mjs +0 -397
- package/JModalTip-b055ab60.mjs +0 -49
- package/LeftRole-2ed8a2bf.mjs +0 -86
- package/OnlCgformErpList-58acdfa0.mjs +0 -470
- package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
- package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
- package/OnlCgformTabList-019ad753.mjs +0 -408
- package/OnlineAutoList-48589d09.mjs +0 -493
- package/OnlineAutoModal-c2928847.mjs +0 -239
- package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
- package/OnlineCustomModal-9e17b6ce.mjs +0 -232
- package/OnlineForm-9f1153ba.mjs +0 -985
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
- package/OnlineQueryForm-eedb9a60.mjs +0 -466
- package/OnlineTabForm-27655c83.mjs +0 -817
- package/SetSwitchOptions-b2af757f.mjs +0 -62
- package/SuperQuery-a8592995.mjs +0 -967
- package/index-1d1a6e56.mjs +0 -57
- package/useCgformList-f41d4dc1.mjs +0 -426
- package/useExtendComponent-dcae5c78.mjs +0 -4399
- package/useListButton-bfac4ecf.mjs +0 -697
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var f = (e,
|
|
1
|
+
var f = (e, n, t) => new Promise((l, d) => {
|
|
2
2
|
var i = (a) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
4
|
+
u(t.next(a));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
d(r);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, o = (a) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
10
|
+
u(t.throw(a));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
d(r);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, u = (a) => a.done ? l(a.value) : Promise.resolve(a.value).then(i, o);
|
|
15
|
+
u((t = t.apply(e, n)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as A, ref as
|
|
17
|
+
import { defineComponent as A, ref as s, computed as B, watch as F, resolveComponent as v, openBlock as y, createElementBlock as g, createBlock as _, Fragment as N, createElementVNode as M, createVNode as h, withCtx as E, createTextVNode as D } from "vue";
|
|
18
18
|
import { useMessage as P } from "/@/hooks/web/useMessage";
|
|
19
|
-
import { q as S, n as R, r as V } from "./auth.api-
|
|
20
|
-
import { _ as $ } from "./index-
|
|
19
|
+
import { q as S, n as R, r as V } from "./auth.api-53df4c33.mjs";
|
|
20
|
+
import { _ as $ } from "./index-f3683351.mjs";
|
|
21
21
|
import "/@/utils/http/axios";
|
|
22
22
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
23
|
import "vue-router";
|
|
@@ -27,26 +27,26 @@ const q = A({
|
|
|
27
27
|
cgformId: { type: String, required: !0 }
|
|
28
28
|
},
|
|
29
29
|
setup(e) {
|
|
30
|
-
const { createMessage:
|
|
30
|
+
const { createMessage: n } = P(), t = s(""), l = s(3), d = s(!0), i = s([]), o = s([]), u = s([]), a = s(""), r = B(() => !t.value);
|
|
31
31
|
F(() => e.cgformId, m, { immediate: !0 });
|
|
32
32
|
function m() {
|
|
33
33
|
return f(this, null, function* () {
|
|
34
34
|
if (!e.cgformId)
|
|
35
35
|
return;
|
|
36
|
-
let
|
|
37
|
-
|
|
36
|
+
let c = yield S(e.cgformId, l.value);
|
|
37
|
+
u.value = c.map((p) => ({ key: p.id, title: p.ruleName }));
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function k(
|
|
40
|
+
function k(c, p) {
|
|
41
41
|
return f(this, null, function* () {
|
|
42
|
-
t.value =
|
|
42
|
+
t.value = c, a.value = p, o.value = [], yield m();
|
|
43
43
|
let T = yield R({
|
|
44
|
-
roleId:
|
|
44
|
+
roleId: c,
|
|
45
45
|
cgformId: e.cgformId,
|
|
46
46
|
type: l.value,
|
|
47
47
|
authMode: p
|
|
48
48
|
});
|
|
49
|
-
|
|
49
|
+
o.value = T.map((w) => w.authId);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
function I() {
|
|
@@ -58,25 +58,25 @@ const q = A({
|
|
|
58
58
|
function K() {
|
|
59
59
|
return f(this, null, function* () {
|
|
60
60
|
yield V(t.value, e.cgformId, {
|
|
61
|
-
authId: JSON.stringify(
|
|
61
|
+
authId: JSON.stringify(o.value),
|
|
62
62
|
authMode: a.value
|
|
63
|
-
}),
|
|
63
|
+
}), n.success("保存成功");
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function b(
|
|
67
|
-
i.value =
|
|
66
|
+
function b(c) {
|
|
67
|
+
i.value = c, d.value = !1;
|
|
68
68
|
}
|
|
69
69
|
function x() {
|
|
70
|
-
t.value = "",
|
|
70
|
+
t.value = "", o.value = [];
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
73
|
loadChecked: k,
|
|
74
74
|
clear: x,
|
|
75
75
|
expandedKeys: i,
|
|
76
|
-
autoExpandParent:
|
|
77
|
-
checkedKeys:
|
|
78
|
-
treeData:
|
|
79
|
-
disabled:
|
|
76
|
+
autoExpandParent: d,
|
|
77
|
+
checkedKeys: o,
|
|
78
|
+
treeData: u,
|
|
79
|
+
disabled: r,
|
|
80
80
|
onSave: K,
|
|
81
81
|
onExpand: b,
|
|
82
82
|
onRefresh: C,
|
|
@@ -85,46 +85,46 @@ const q = A({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
const z = { class: "onl-auth-tree-btns" };
|
|
88
|
-
function J(e,
|
|
89
|
-
const
|
|
90
|
-
return
|
|
91
|
-
e.disabled ? (
|
|
88
|
+
function J(e, n, t, l, d, i) {
|
|
89
|
+
const o = v("a-empty"), u = v("a-button"), a = v("a-tree");
|
|
90
|
+
return y(), g("div", null, [
|
|
91
|
+
e.disabled ? (y(), _(o, {
|
|
92
92
|
key: 0,
|
|
93
93
|
description: "请先选中左侧角色/部门/用户"
|
|
94
|
-
})) : e.treeData.length === 0 ? (
|
|
94
|
+
})) : e.treeData.length === 0 ? (y(), _(o, {
|
|
95
95
|
key: 1,
|
|
96
96
|
description: "无权限信息"
|
|
97
|
-
})) : (
|
|
97
|
+
})) : (y(), g(N, { key: 2 }, [
|
|
98
98
|
M("div", z, [
|
|
99
|
-
|
|
99
|
+
h(u, {
|
|
100
100
|
onClick: e.onRefresh,
|
|
101
101
|
size: "small",
|
|
102
102
|
type: "primary",
|
|
103
103
|
preIcon: "ant-design:redo",
|
|
104
104
|
ghost: ""
|
|
105
105
|
}, {
|
|
106
|
-
default: E(() => [
|
|
106
|
+
default: E(() => n[1] || (n[1] = [
|
|
107
107
|
D("刷新")
|
|
108
|
-
]),
|
|
108
|
+
])),
|
|
109
109
|
_: 1
|
|
110
110
|
}, 8, ["onClick"]),
|
|
111
|
-
|
|
111
|
+
h(u, {
|
|
112
112
|
onClick: e.onSave,
|
|
113
113
|
size: "small",
|
|
114
114
|
type: "primary",
|
|
115
115
|
preIcon: "ant-design:save",
|
|
116
116
|
ghost: ""
|
|
117
117
|
}, {
|
|
118
|
-
default: E(() => [
|
|
118
|
+
default: E(() => n[2] || (n[2] = [
|
|
119
119
|
D("保存")
|
|
120
|
-
]),
|
|
120
|
+
])),
|
|
121
121
|
_: 1
|
|
122
122
|
}, 8, ["onClick"])
|
|
123
123
|
]),
|
|
124
|
-
|
|
124
|
+
h(a, {
|
|
125
125
|
checkable: "",
|
|
126
126
|
checkedKeys: e.checkedKeys,
|
|
127
|
-
"onUpdate:checkedKeys":
|
|
127
|
+
"onUpdate:checkedKeys": n[0] || (n[0] = (r) => e.checkedKeys = r),
|
|
128
128
|
expandedKeys: e.expandedKeys,
|
|
129
129
|
autoExpandParent: e.autoExpandParent,
|
|
130
130
|
treeData: e.treeData,
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var S = (s,
|
|
2
|
-
var
|
|
1
|
+
var S = (s, f, m) => new Promise((y, k) => {
|
|
2
|
+
var g = (r) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
h(m.next(r));
|
|
5
5
|
} catch (u) {
|
|
6
6
|
k(u);
|
|
7
7
|
}
|
|
8
|
-
}, w = (
|
|
8
|
+
}, w = (r) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
h(m.throw(r));
|
|
11
11
|
} catch (u) {
|
|
12
12
|
k(u);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, h = (r) => r.done ? y(r.value) : Promise.resolve(r.value).then(g, w);
|
|
15
|
+
h((m = m.apply(s, f)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as
|
|
18
|
-
import { BasicTable as
|
|
19
|
-
import { a as
|
|
20
|
-
import { a as H } from "./auth.data-
|
|
21
|
-
import { _ as J } from "./index-
|
|
17
|
+
import { defineComponent as V, ref as p, watch as q, resolveComponent as L, openBlock as E, createElementBlock as U, createVNode as b, withCtx as C, Fragment as P, createTextVNode as v, createBlock as x, toDisplayString as R } from "vue";
|
|
18
|
+
import { BasicTable as K, useTable as M } from "/@/components/Table";
|
|
19
|
+
import { a as O, b as _, c as j, d as G, e as A } from "./auth.api-53df4c33.mjs";
|
|
20
|
+
import { a as H } from "./auth.data-626c5083.mjs";
|
|
21
|
+
import { _ as J } from "./index-f3683351.mjs";
|
|
22
22
|
import "/@/utils/http/axios";
|
|
23
23
|
import "/@/utils/index";
|
|
24
24
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
25
25
|
import "/@/hooks/web/useMessage";
|
|
26
26
|
import "vue-router";
|
|
27
|
-
const Q =
|
|
27
|
+
const Q = V({
|
|
28
28
|
name: "AuthFieldConfig",
|
|
29
|
-
components: { BasicTable:
|
|
29
|
+
components: { BasicTable: K },
|
|
30
30
|
props: {
|
|
31
31
|
headId: {
|
|
32
32
|
type: String,
|
|
@@ -35,25 +35,25 @@ const Q = z({
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["update:authFields"],
|
|
38
|
-
setup(s, { emit:
|
|
39
|
-
const m = p(""), [y, { reload: k, getTableRef:
|
|
40
|
-
api:
|
|
38
|
+
setup(s, { emit: f }) {
|
|
39
|
+
const m = p(""), [y, { reload: k, getTableRef: g, setPagination: w }] = M({
|
|
40
|
+
api: $,
|
|
41
41
|
rowKey: "code",
|
|
42
42
|
bordered: !0,
|
|
43
43
|
columns: H,
|
|
44
44
|
showIndexColumn: !1
|
|
45
|
-
}),
|
|
46
|
-
|
|
45
|
+
}), h = p(!1), r = p(!1), u = p(!1), i = p(!1), c = p(!1), I = p(!1), F = p(!1);
|
|
46
|
+
q(
|
|
47
47
|
() => s.headId,
|
|
48
48
|
(l) => {
|
|
49
|
-
m.value = l.split("?")[0],
|
|
49
|
+
m.value = l.split("?")[0], g().value && w({ current: 1, pageSize: 10 }), k().catch(() => null);
|
|
50
50
|
},
|
|
51
51
|
{ immediate: !0 }
|
|
52
52
|
);
|
|
53
|
-
function
|
|
53
|
+
function $(l) {
|
|
54
54
|
return S(this, null, function* () {
|
|
55
55
|
const e = ["id"];
|
|
56
|
-
let n = yield
|
|
56
|
+
let n = yield O(m.value, l), t = [], d = [];
|
|
57
57
|
return n.forEach((o) => {
|
|
58
58
|
e.indexOf(o.code) < 0 && ((o.isShowForm == 1 || o.isShowList == 1) && d.push(o), o.dbIsPersist == 1 && t.push({
|
|
59
59
|
text: o.title,
|
|
@@ -63,19 +63,19 @@ const Q = z({
|
|
|
63
63
|
dbType: o.dbType
|
|
64
64
|
// -update-end--author:liaozhiyang---date:20240617---for:【TV360X-201】权限管理条件根据控件过滤
|
|
65
65
|
}));
|
|
66
|
-
}),
|
|
66
|
+
}), f("update:authFields", t), T(l.pageNo, l.pageSize, d), d;
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function N(l, e) {
|
|
70
70
|
return S(this, null, function* () {
|
|
71
|
-
yield
|
|
71
|
+
yield _({
|
|
72
72
|
cgformId: m.value,
|
|
73
73
|
code: e.code,
|
|
74
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),
|
|
75
|
+
}), e.formEditable || e.formShow || e.listShow || (e.formEditable = !0, e.formShow = !0, e.listShow = !0), e.status = Math.abs(e.status - 1), B();
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function z(l, e, n) {
|
|
79
79
|
return S(this, null, function* () {
|
|
80
80
|
let t = l.target.checked;
|
|
81
81
|
yield j({
|
|
@@ -85,7 +85,7 @@ const Q = z({
|
|
|
85
85
|
listShow: t,
|
|
86
86
|
formShow: t,
|
|
87
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),
|
|
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), B();
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
function T(l, e, n) {
|
|
@@ -97,15 +97,15 @@ const Q = z({
|
|
|
97
97
|
t.push(a);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
t.length ? (
|
|
101
|
-
|
|
102
|
-
}),
|
|
100
|
+
t.length ? (h.value = !0, r.value = !0, u.value = !0, t.forEach((d) => {
|
|
101
|
+
h.value && d.status == 0 && (h.value = !1), r.value && d.listShow == !1 && (r.value = !1), u.value && (d.formEditable == !1 || d.formShow == !1) && (u.value = !1);
|
|
102
|
+
}), r.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) : (h.value = !1, r.value = !1, u.value = !1);
|
|
103
103
|
}
|
|
104
|
-
const
|
|
105
|
-
const { current: l, pageSize: e } =
|
|
104
|
+
const B = () => {
|
|
105
|
+
const { current: l, pageSize: e } = g().value.getPaginationRef(), n = g().value.getDataSource();
|
|
106
106
|
T(l, e, n);
|
|
107
107
|
}, D = (l, e) => {
|
|
108
|
-
const n = [], t =
|
|
108
|
+
const n = [], t = g().value.getDataSource();
|
|
109
109
|
if (t != null && t.length) {
|
|
110
110
|
const d = l * e > t.length ? t.length : l * e;
|
|
111
111
|
for (let o = l * e - e; o < d; o++) {
|
|
@@ -115,83 +115,83 @@ const Q = z({
|
|
|
115
115
|
}
|
|
116
116
|
return n;
|
|
117
117
|
};
|
|
118
|
-
return { registerTable: y, onUpdateStatus:
|
|
119
|
-
c.value = !0,
|
|
120
|
-
const { current: e, pageSize: n } =
|
|
118
|
+
return { registerTable: y, onUpdateStatus: N, onCheckboxChange: z, handleChangeSwitch: (l) => S(this, null, function* () {
|
|
119
|
+
c.value = !0, h.value = l;
|
|
120
|
+
const { current: e, pageSize: n } = g().value.getPaginationRef(), t = D(e, n);
|
|
121
121
|
let d = t.map((a) => ({ cgformId: a.cgformId, code: a.code, status: l ? 1 : 0 }));
|
|
122
122
|
i.value = !0, yield G(d), t.forEach((a) => {
|
|
123
123
|
l ? a.status = 1 : a.status = 0, a.formEditable || a.formShow || a.listShow || (a.formEditable = !0, a.formShow = !0, a.listShow = !0);
|
|
124
124
|
}), i.value = !1, c.value = !1;
|
|
125
|
-
const o =
|
|
125
|
+
const o = g().value.getDataSource();
|
|
126
126
|
T(e, n, o);
|
|
127
|
-
}), allSwitch:
|
|
127
|
+
}), allSwitch: h, allFormControl: u, allListControl: r, allSloading: i, handleTableChange: (l) => {
|
|
128
128
|
}, handleChangeList: (l) => S(this, null, function* () {
|
|
129
129
|
c.value = !0;
|
|
130
130
|
const e = l.target.checked;
|
|
131
|
-
|
|
132
|
-
const { current: n, pageSize: t } =
|
|
131
|
+
r.value = e;
|
|
132
|
+
const { current: n, pageSize: t } = g().value.getPaginationRef(), d = D(n, t);
|
|
133
133
|
let o = d.map((a) => ({ cgformId: a.cgformId, code: a.code, switchFlag: 1, listShow: !!e }));
|
|
134
|
-
yield
|
|
135
|
-
a.listShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0,
|
|
134
|
+
yield A(o), d.forEach((a) => {
|
|
135
|
+
a.listShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0, h.value = !1);
|
|
136
136
|
}), e && (F.value = !1), c.value = !1;
|
|
137
137
|
}), handleChangeForm: (l) => S(this, null, function* () {
|
|
138
138
|
c.value = !0;
|
|
139
139
|
const e = l.target.checked;
|
|
140
140
|
u.value = e;
|
|
141
|
-
const { current: n, pageSize: t } =
|
|
141
|
+
const { current: n, pageSize: t } = g().value.getPaginationRef(), d = D(n, t), o = [
|
|
142
142
|
...d.map((a) => ({ cgformId: a.cgformId, code: a.code, switchFlag: 4, formShow: !!e, formEditable: !!e }))
|
|
143
143
|
];
|
|
144
|
-
yield
|
|
145
|
-
a.formEditable = !!e, a.formShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0,
|
|
144
|
+
yield A(o), d.forEach((a) => {
|
|
145
|
+
a.formEditable = !!e, a.formShow = !!e, a.listShow === !1 && a.formShow === !1 && a.formEditable === !1 && (a.status = 0, h.value = !1);
|
|
146
146
|
}), e && (I.value = !1), c.value = !1;
|
|
147
147
|
}), tableLoading: c, formIndeterminate: I, listIndeterminate: F };
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
const W = { class: "auth-field-config" };
|
|
151
|
-
function X(s,
|
|
152
|
-
const w = L("a-switch"),
|
|
151
|
+
function X(s, f, m, y, k, g) {
|
|
152
|
+
const w = L("a-switch"), h = L("a-checkbox"), r = L("BasicTable");
|
|
153
153
|
return E(), U("div", W, [
|
|
154
|
-
b(
|
|
154
|
+
b(r, {
|
|
155
155
|
onRegister: s.registerTable,
|
|
156
156
|
onChange: s.handleTableChange,
|
|
157
157
|
loading: s.tableLoading
|
|
158
158
|
}, {
|
|
159
159
|
headerCell: C(({ column: u }) => [
|
|
160
|
-
u.dataIndex === "switch" ? (E(), U(
|
|
160
|
+
u.dataIndex === "switch" ? (E(), U(P, { key: 0 }, [
|
|
161
161
|
b(w, {
|
|
162
162
|
loading: s.allSloading,
|
|
163
163
|
checked: s.allSwitch,
|
|
164
|
-
"onUpdate:checked":
|
|
164
|
+
"onUpdate:checked": f[0] || (f[0] = (i) => s.allSwitch = i),
|
|
165
165
|
size: "small",
|
|
166
166
|
onChange: s.handleChangeSwitch
|
|
167
167
|
}, null, 8, ["loading", "checked", "onChange"]),
|
|
168
|
-
v("启用 ")
|
|
169
|
-
], 64)) : u.dataIndex === "list" ? (E(),
|
|
168
|
+
f[3] || (f[3] = v("启用 "))
|
|
169
|
+
], 64)) : u.dataIndex === "list" ? (E(), x(h, {
|
|
170
170
|
key: 1,
|
|
171
171
|
indeterminate: s.listIndeterminate,
|
|
172
172
|
checked: s.allListControl,
|
|
173
|
-
"onUpdate:checked":
|
|
173
|
+
"onUpdate:checked": f[1] || (f[1] = (i) => s.allListControl = i),
|
|
174
174
|
disabled: !s.allSwitch,
|
|
175
175
|
onChange: s.handleChangeList
|
|
176
176
|
}, {
|
|
177
177
|
default: C(() => [
|
|
178
|
-
v(
|
|
178
|
+
v(R(u.customTitle), 1)
|
|
179
179
|
]),
|
|
180
180
|
_: 2
|
|
181
|
-
}, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : u.dataIndex === "form" ? (E(),
|
|
181
|
+
}, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : u.dataIndex === "form" ? (E(), x(h, {
|
|
182
182
|
key: 2,
|
|
183
183
|
indeterminate: s.formIndeterminate,
|
|
184
184
|
checked: s.allFormControl,
|
|
185
|
-
"onUpdate:checked":
|
|
185
|
+
"onUpdate:checked": f[2] || (f[2] = (i) => s.allFormControl = i),
|
|
186
186
|
disabled: !s.allSwitch,
|
|
187
187
|
onChange: s.handleChangeForm
|
|
188
188
|
}, {
|
|
189
189
|
default: C(() => [
|
|
190
|
-
v(
|
|
190
|
+
v(R(u.customTitle), 1)
|
|
191
191
|
]),
|
|
192
192
|
_: 2
|
|
193
|
-
}, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : (E(), U(
|
|
194
|
-
v(
|
|
193
|
+
}, 1032, ["indeterminate", "checked", "disabled", "onChange"])) : (E(), U(P, { key: 3 }, [
|
|
194
|
+
v(R(u.customTitle), 1)
|
|
195
195
|
], 64))
|
|
196
196
|
]),
|
|
197
197
|
switch: C(({ text: u, record: i }) => [
|
|
@@ -202,36 +202,36 @@ function X(s, g, m, y, k, r) {
|
|
|
202
202
|
}, null, 8, ["checked", "onChange"])
|
|
203
203
|
]),
|
|
204
204
|
list: C(({ text: u, record: i }) => [
|
|
205
|
-
b(
|
|
205
|
+
b(h, {
|
|
206
206
|
checked: i.listShow,
|
|
207
207
|
disabled: i.status === 0,
|
|
208
208
|
onChange: (c) => s.onCheckboxChange(c, i, 1)
|
|
209
209
|
}, {
|
|
210
|
-
default: C(() => [
|
|
210
|
+
default: C(() => f[4] || (f[4] = [
|
|
211
211
|
v(" 可见 ")
|
|
212
|
-
]),
|
|
212
|
+
])),
|
|
213
213
|
_: 2
|
|
214
214
|
}, 1032, ["checked", "disabled", "onChange"])
|
|
215
215
|
]),
|
|
216
216
|
form: C(({ text: u, record: i }) => [
|
|
217
|
-
b(
|
|
217
|
+
b(h, {
|
|
218
218
|
checked: i.formShow,
|
|
219
219
|
disabled: i.status === 0,
|
|
220
220
|
onChange: (c) => s.onCheckboxChange(c, i, 2)
|
|
221
221
|
}, {
|
|
222
|
-
default: C(() => [
|
|
222
|
+
default: C(() => f[5] || (f[5] = [
|
|
223
223
|
v(" 可见 ")
|
|
224
|
-
]),
|
|
224
|
+
])),
|
|
225
225
|
_: 2
|
|
226
226
|
}, 1032, ["checked", "disabled", "onChange"]),
|
|
227
|
-
b(
|
|
227
|
+
b(h, {
|
|
228
228
|
checked: i.formEditable,
|
|
229
229
|
disabled: i.status === 0,
|
|
230
230
|
onChange: (c) => s.onCheckboxChange(c, i, 3)
|
|
231
231
|
}, {
|
|
232
|
-
default: C(() => [
|
|
232
|
+
default: C(() => f[6] || (f[6] = [
|
|
233
233
|
v(" 可编辑 ")
|
|
234
|
-
]),
|
|
234
|
+
])),
|
|
235
235
|
_: 2
|
|
236
236
|
}, 1032, ["checked", "disabled", "onChange"])
|
|
237
237
|
]),
|
|
@@ -239,7 +239,7 @@ function X(s, g, m, y, k, r) {
|
|
|
239
239
|
}, 8, ["onRegister", "onChange", "loading"])
|
|
240
240
|
]);
|
|
241
241
|
}
|
|
242
|
-
const
|
|
242
|
+
const ce = /* @__PURE__ */ J(Q, [["render", X], ["__scopeId", "data-v-c48da65c"]]);
|
|
243
243
|
export {
|
|
244
|
-
|
|
244
|
+
ce as default
|
|
245
245
|
};
|