@jeecg/online 3.7.1-RC → 3.7.4-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.
Files changed (143) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
  113. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-6de335e3.mjs +0 -84
  116. package/AuthButtonConfig-89763932.mjs +0 -154
  117. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  118. package/AuthFieldTree-e326fc38.mjs +0 -232
  119. package/CgformCopyList-365b3e8f.mjs +0 -251
  120. package/CodeFileListModal-24601898.mjs +0 -159
  121. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  122. package/CustomButtonList-f07bc695.mjs +0 -397
  123. package/JModalTip-b055ab60.mjs +0 -49
  124. package/LeftRole-2ed8a2bf.mjs +0 -86
  125. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  126. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  127. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  128. package/OnlCgformTabList-019ad753.mjs +0 -408
  129. package/OnlineAutoList-48589d09.mjs +0 -493
  130. package/OnlineAutoModal-c2928847.mjs +0 -239
  131. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  132. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  133. package/OnlineForm-9f1153ba.mjs +0 -985
  134. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  135. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  136. package/OnlineTabForm-27655c83.mjs +0 -817
  137. package/SetSwitchOptions-b2af757f.mjs +0 -62
  138. package/SuperQuery-a8592995.mjs +0 -967
  139. package/index-1d1a6e56.mjs +0 -57
  140. package/useCgformList-f41d4dc1.mjs +0 -426
  141. package/useExtendComponent-dcae5c78.mjs +0 -4399
  142. package/useListButton-bfac4ecf.mjs +0 -697
  143. /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
@@ -602,6 +602,39 @@ function R(d, n) {
602
602
  "right"
603
603
  )
604
604
  // update-end--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
605
+ // mapFormSchema(
606
+ // {
607
+ // label: '启用外部链接',
608
+ // field: 'enableExternalLink',
609
+ // component: 'RadioButtonGroup',
610
+ // componentProps: {
611
+ // options: [
612
+ // {label: '开启', value: 1},
613
+ // {label: '关闭', value: 0},
614
+ // ],
615
+ // buttonStyle: 'solid',
616
+ // defaultValue: 0,
617
+ // // onChange: handlers.onFormLabelLengthShow,
618
+ // },
619
+ // },
620
+ // 'left'
621
+ // ),
622
+ // mapFormSchema(
623
+ // {
624
+ // label: '允许的操作',
625
+ // field: 'externalLinkActions',
626
+ // component: 'JCheckbox',
627
+ // componentProps: {
628
+ // options: [
629
+ // {label: '新增', value: 'add'},
630
+ // {label: '编辑', value: 'edit'},
631
+ // {label: '详情', value: 'detail'},
632
+ // ],
633
+ // },
634
+ // dynamicDisabled: ({model}) => !model.enableExternalLink,
635
+ // },
636
+ // 'right'
637
+ // ),
605
638
  ] };
606
639
  }
607
640
  function N(d, n, t) {
@@ -15,7 +15,7 @@ var w = (f, m, e) => new Promise((d, u) => {
15
15
  s((e = e.apply(f, m)).next());
16
16
  });
17
17
  import { inject as h, ref as y, computed as g, nextTick as v } from "vue";
18
- import { V as N } from "./cgform.data-475d4984.mjs";
18
+ import { V as N } from "./cgform.data-0ca62d09.mjs";
19
19
  import { pick as R } from "lodash-es";
20
20
  function L(f) {
21
21
  const m = h("tables"), e = h("fullScreenRef"), d = y(), u = y(!1), n = y([]), T = g(() => ({
@@ -0,0 +1,16 @@
1
+ import { E as e } from "./cgform.data-0ca62d09.mjs";
2
+ function i(s) {
3
+ let o = {};
4
+ if (s.extConfigJson)
5
+ try {
6
+ o = JSON.parse(s.extConfigJson);
7
+ } catch (t) {
8
+ }
9
+ return Object.assign({}, e, o, {
10
+ isDesForm: s.isDesForm || "N",
11
+ desFormCode: s.desFormCode || ""
12
+ });
13
+ }
14
+ export {
15
+ i as p
16
+ };
@@ -1,84 +0,0 @@
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-1d1a6e56.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
- };
@@ -1,154 +0,0 @@
1
- var h = (s, r, l) => new Promise((p, m) => {
2
- var b = (a) => {
3
- try {
4
- c(l.next(a));
5
- } catch (u) {
6
- m(u);
7
- }
8
- }, f = (a) => {
9
- try {
10
- c(l.throw(a));
11
- } catch (u) {
12
- m(u);
13
- }
14
- }, c = (a) => a.done ? p(a.value) : Promise.resolve(a.value).then(b, f);
15
- c((l = l.apply(s, r)).next());
16
- });
17
- import { defineComponent as R, ref as g, watch as S, resolveComponent as B, openBlock as A, createElementBlock as E, createVNode as C, withCtx as w, createTextVNode as N } from "vue";
18
- import { cloneDeep as $ } from "lodash-es";
19
- import { BasicTable as q, useTable as F } from "/@/components/Table";
20
- import { f as j, g as z, h as O } from "./auth.api-ea1d33d4.mjs";
21
- import { b as U, c as V } from "./auth.data-511e5197.mjs";
22
- import { _ as K } from "./index-1d1a6e56.mjs";
23
- import "/@/utils/http/axios";
24
- import "/@/utils/index";
25
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
26
- import "/@/hooks/web/useMessage";
27
- import "vue-router";
28
- const P = R({
29
- name: "AuthButtonConfig",
30
- components: { BasicTable: q },
31
- props: {
32
- headId: {
33
- type: String,
34
- default: "",
35
- required: !0
36
- },
37
- // 1单表 2主表 3附表
38
- tableType: {
39
- type: Number,
40
- default: 1
41
- }
42
- },
43
- setup(s) {
44
- const r = g(""), l = g(2), p = g(3), m = g(5), [b, { reload: f, getTableRef: c, setPagination: a }] = F({
45
- api: T,
46
- rowKey: "code",
47
- bordered: !0,
48
- columns: U,
49
- showIndexColumn: !1
50
- });
51
- S(
52
- () => s.headId,
53
- (t) => {
54
- r.value = t.split("?")[0], c().value && a({ current: 1, pageSize: 10 }), f().catch(() => null);
55
- },
56
- { immediate: !0 }
57
- );
58
- const u = (t) => {
59
- const e = $(V);
60
- if (t.mainRelationType != null && t.mainThemeTemplate != null && s.tableType == 3) {
61
- let n = [];
62
- switch (t.mainThemeTemplate) {
63
- case "normal":
64
- case "innerTable":
65
- case "tab":
66
- t.mainRelationType == 1 ? n = [] : n = e.filter((o) => ["add", "update", "batch_delete"].includes(o.code));
67
- break;
68
- case "erp":
69
- n = e.filter((o) => !["super_query"].includes(o.code));
70
- break;
71
- }
72
- return n;
73
- } else
74
- return e;
75
- };
76
- function T(t) {
77
- return h(this, null, function* () {
78
- let e = yield j(r.value, t), { authList: n, buttonList: o } = e, d = [];
79
- const _ = u(e);
80
- for (let i of _) {
81
- let y = {
82
- status: 0,
83
- page: p.value
84
- }, L = n.find((D) => D.code == i.code);
85
- Object.assign(i, y, L), d.push(i);
86
- }
87
- if (s.tableType == 3) {
88
- const i = d.findIndex((y) => y.code === "super_query");
89
- i != -1 && d.splice(i, 1);
90
- }
91
- return v(n, o, d);
92
- });
93
- }
94
- function v(t, e, n) {
95
- for (let o of e) {
96
- let d = t.find((i) => i.code == o.buttonCode), _ = {
97
- code: o.buttonCode,
98
- title: o.buttonName,
99
- status: 0,
100
- page: o.buttonStyle == "form" ? m.value : p.value
101
- };
102
- n.push(Object.assign(_, d));
103
- }
104
- return n;
105
- }
106
- function x(t, e) {
107
- return h(this, null, function* () {
108
- t ? I(e) : k(e);
109
- });
110
- }
111
- function I(t) {
112
- return h(this, null, function* () {
113
- let e = yield z({
114
- id: t.id,
115
- code: t.code,
116
- page: t.page,
117
- cgformId: r.value,
118
- type: l.value,
119
- control: 5,
120
- status: 1
121
- });
122
- t.id = e.id, t.status = 1;
123
- });
124
- }
125
- function k(t) {
126
- return h(this, null, function* () {
127
- yield O(t.id), t.status = 0;
128
- });
129
- }
130
- return { registerTable: b, onUpdateStatus: x };
131
- }
132
- }), G = { class: "auth-field-config" };
133
- function H(s, r, l, p, m, b) {
134
- const f = B("a-switch"), c = B("BasicTable");
135
- return A(), E("div", G, [
136
- C(c, { onRegister: s.registerTable }, {
137
- switch: w(({ text: a, record: u }) => [
138
- C(f, {
139
- size: "small",
140
- checked: u.status === 1,
141
- onChange: (T) => s.onUpdateStatus(T, u)
142
- }, null, 8, ["checked", "onChange"])
143
- ]),
144
- control: w(() => [
145
- N(" 可见 ")
146
- ]),
147
- _: 1
148
- }, 8, ["onRegister"])
149
- ]);
150
- }
151
- const st = /* @__PURE__ */ K(P, [["render", H]]);
152
- export {
153
- st as default
154
- };
@@ -1,157 +0,0 @@
1
- var y = (e, l, a) => new Promise((f, i) => {
2
- var m = (t) => {
3
- try {
4
- u(a.next(t));
5
- } catch (s) {
6
- i(s);
7
- }
8
- }, n = (t) => {
9
- try {
10
- u(a.throw(t));
11
- } catch (s) {
12
- i(s);
13
- }
14
- }, u = (t) => t.done ? f(t.value) : Promise.resolve(t.value).then(m, n);
15
- u((a = a.apply(e, l)).next());
16
- });
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
- import { useMessage as S } from "/@/hooks/web/useMessage";
19
- import { c as R } from "./auth.data-511e5197.mjs";
20
- import { o as V, n as $, p as z } from "./auth.api-ea1d33d4.mjs";
21
- import { _ as L } from "./index-1d1a6e56.mjs";
22
- import "/@/utils/index";
23
- import "/@/utils/http/axios";
24
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
25
- import "vue-router";
26
- const q = w({
27
- name: "AuthButtonTree",
28
- props: {
29
- cgformId: { type: String, required: !0 }
30
- },
31
- setup(e) {
32
- const { createMessage: l } = S(), a = d(""), f = d(2), i = d(!0), m = d([]), n = d([]), u = d([]), t = d(""), s = A(() => !a.value);
33
- N(() => e.cgformId, h, { immediate: !0 });
34
- function h() {
35
- return y(this, null, function* () {
36
- if (!e.cgformId)
37
- return;
38
- let o = yield V(e.cgformId, f.value);
39
- o.forEach((c) => {
40
- for (const p of R)
41
- if (c.code == p.code) {
42
- c.title = p.title;
43
- break;
44
- }
45
- });
46
- let r = [];
47
- for (let c of o) {
48
- let p = T(c);
49
- r.push({ key: c.id, title: p });
50
- }
51
- u.value = r;
52
- });
53
- }
54
- function D() {
55
- h(), _(a.value, t.value);
56
- }
57
- function _(o, r) {
58
- return y(this, null, function* () {
59
- a.value = o, t.value = r, n.value = [], yield h();
60
- let c = yield $({
61
- roleId: o,
62
- cgformId: e.cgformId,
63
- type: f.value,
64
- authMode: r
65
- });
66
- n.value = c.map((p) => p.authId);
67
- });
68
- }
69
- function K() {
70
- a.value = "", h();
71
- }
72
- function x() {
73
- return y(this, null, function* () {
74
- yield z(a.value, e.cgformId, {
75
- authId: JSON.stringify(n.value),
76
- authMode: t.value
77
- }), l.success("保存成功");
78
- });
79
- }
80
- function T(o) {
81
- let r = o.title + "-";
82
- return o.page == 3 ? r += "列表可见" : o.page == 5 && (r += "表单可见"), r;
83
- }
84
- function b(o) {
85
- m.value = o, i.value = !1;
86
- }
87
- function F() {
88
- a.value = "", n.value = [];
89
- }
90
- return {
91
- loadChecked: _,
92
- clear: F,
93
- expandedKeys: m,
94
- autoExpandParent: i,
95
- checkedKeys: n,
96
- treeData: u,
97
- disabled: s,
98
- onSave: x,
99
- onExpand: b,
100
- onRefresh: D,
101
- clearChecked: K
102
- };
103
- }
104
- });
105
- const J = { class: "onl-auth-tree-btns" };
106
- function O(e, l, a, f, i, m) {
107
- const n = g("a-empty"), u = g("a-button"), t = g("a-tree");
108
- return v(), E("div", null, [
109
- e.disabled ? (v(), I(n, {
110
- key: 0,
111
- description: "请先选中左侧角色/部门/用户"
112
- })) : e.treeData.length === 0 ? (v(), I(n, {
113
- key: 1,
114
- description: "无权限信息"
115
- })) : (v(), E(M, { key: 2 }, [
116
- P("div", J, [
117
- k(u, {
118
- onClick: e.onRefresh,
119
- size: "small",
120
- type: "primary",
121
- preIcon: "ant-design:redo",
122
- ghost: ""
123
- }, {
124
- default: B(() => [
125
- C("刷新")
126
- ]),
127
- _: 1
128
- }, 8, ["onClick"]),
129
- k(u, {
130
- onClick: e.onSave,
131
- size: "small",
132
- type: "primary",
133
- preIcon: "ant-design:save",
134
- ghost: ""
135
- }, {
136
- default: B(() => [
137
- C("保存")
138
- ]),
139
- _: 1
140
- }, 8, ["onClick"])
141
- ]),
142
- k(t, {
143
- checkable: "",
144
- checkedKeys: e.checkedKeys,
145
- "onUpdate:checkedKeys": l[0] || (l[0] = (s) => e.checkedKeys = s),
146
- expandedKeys: e.expandedKeys,
147
- autoExpandParent: e.autoExpandParent,
148
- treeData: e.treeData,
149
- onExpand: e.onExpand
150
- }, null, 8, ["checkedKeys", "expandedKeys", "autoExpandParent", "treeData", "onExpand"])
151
- ], 64))
152
- ]);
153
- }
154
- const te = /* @__PURE__ */ L(q, [["render", O], ["__scopeId", "data-v-d165a23e"]]);
155
- export {
156
- te as default
157
- };
@@ -1,232 +0,0 @@
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 { m as L, n as j, s as G } from "./auth.api-ea1d33d4.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-1d1a6e56.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
- };