@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.
Files changed (142) hide show
  1. package/AccountLoginForm-d2fed52f.mjs +254 -0
  2. package/AiModal-fbe4b68a.mjs +84 -0
  3. package/AppForgetPassword-3b3bec82.mjs +310 -0
  4. package/AppLogin-cd2e2a87.mjs +287 -0
  5. package/AppLoginHeader-9b5be678.mjs +27 -0
  6. package/AppNameEmail-b4e32ae8.mjs +180 -0
  7. package/AppRegister-7117b66a.mjs +303 -0
  8. package/AppTenant-5817729b.mjs +373 -0
  9. package/AppThirdForm-d14fb5e5.mjs +189 -0
  10. package/AuthButtonConfig-5e3b6d72.mjs +156 -0
  11. package/AuthButtonTree-7b4ec967.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
  15. package/AuthFieldTree-2d458c0c.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.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-1b9cbe19.mjs +260 -0
  21. package/CgformCopyList-580bba0f.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
  25. package/CodeFileListModal-71752603.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
  27. package/CodeGeneratorModal-2fe1e920.mjs +281 -0
  28. package/CustomButtonList-22b5cdb3.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
  32. package/DropMenuItem-b1a8f47d.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.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-37af21a5.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
  44. package/JModalTip-192fafa1.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
  47. package/LeftRole-9d88976d.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
  53. package/OnlCgformErpList-8fd15fc1.mjs +488 -0
  54. package/OnlCgformErpSubTable-3515150b.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
  56. package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
  57. package/OnlCgformTabList-583ac15f.mjs +424 -0
  58. package/OnlineAutoList-36ec0957.mjs +513 -0
  59. package/OnlineAutoModal-c0743caf.mjs +260 -0
  60. package/OnlineAutoTreeList-1cd718be.mjs +523 -0
  61. package/OnlineCustomModal-661ee850.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
  63. package/OnlineForm-c1fb38eb.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
  69. package/OnlineQueryForm-ca6186a3.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
  75. package/OnlineTabForm-89389384.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
  78. package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
  81. package/SetSwitchOptions-cdcb22a1.mjs +62 -0
  82. package/ShareAddView-f713c0a5.mjs +86 -0
  83. package/ShareEditView-691764ad.mjs +92 -0
  84. package/ShareView-df344a8d.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
  86. package/SingleView-ad0287d6.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
  88. package/SuperQuery-2b293e3b.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/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  94. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  95. package/index-181f8344.mjs +219 -0
  96. package/index-19eaef11.mjs +11 -0
  97. package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
  98. package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-93341e02.mjs +110 -0
  101. package/index-bef7fe2d.mjs +74 -0
  102. package/index-d6f9ada7.mjs +135 -0
  103. package/index-f3683351.mjs +57 -0
  104. package/main.index.js +1 -1
  105. package/package.json +1 -1
  106. package/shareStore-7de6c7a6.mjs +67 -0
  107. package/style.css +1 -1
  108. package/useCgformList-13c8aab7.mjs +378 -0
  109. package/useExtendComponent-3f5734ca.mjs +4459 -0
  110. package/useListButton-ee23874a.mjs +719 -0
  111. package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
  112. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  113. package/utils-9fce7606.mjs +16 -0
  114. package/AiModal-6de335e3.mjs +0 -84
  115. package/AuthButtonConfig-89763932.mjs +0 -154
  116. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  117. package/AuthFieldTree-e326fc38.mjs +0 -232
  118. package/CgformCopyList-365b3e8f.mjs +0 -251
  119. package/CodeFileListModal-24601898.mjs +0 -159
  120. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  121. package/CustomButtonList-f07bc695.mjs +0 -397
  122. package/JModalTip-b055ab60.mjs +0 -49
  123. package/LeftRole-2ed8a2bf.mjs +0 -86
  124. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  125. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  126. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  127. package/OnlCgformTabList-019ad753.mjs +0 -408
  128. package/OnlineAutoList-48589d09.mjs +0 -493
  129. package/OnlineAutoModal-c2928847.mjs +0 -239
  130. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  131. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  132. package/OnlineForm-9f1153ba.mjs +0 -985
  133. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  134. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  135. package/OnlineTabForm-27655c83.mjs +0 -817
  136. package/SetSwitchOptions-b2af757f.mjs +0 -62
  137. package/SuperQuery-a8592995.mjs +0 -967
  138. package/index-1d1a6e56.mjs +0 -57
  139. package/useCgformList-f41d4dc1.mjs +0 -426
  140. package/useExtendComponent-dcae5c78.mjs +0 -4399
  141. package/useListButton-bfac4ecf.mjs +0 -697
  142. /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,4 +1,4 @@
1
- import { _ as o } from "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
1
+ import { _ as o } from "./SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs";
2
2
  import "vue";
3
3
  import "lodash-es";
4
4
  import "/@/components/Form/src/componentMap";
@@ -1,21 +1,21 @@
1
- var x = Object.defineProperty, A = Object.defineProperties;
2
- var E = Object.getOwnPropertyDescriptors;
1
+ var A = Object.defineProperty, E = Object.defineProperties;
2
+ var N = Object.getOwnPropertyDescriptors;
3
3
  var C = Object.getOwnPropertySymbols;
4
- var N = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
- var b = (e, o, n) => o in e ? x(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n, u = (e, o) => {
4
+ var O = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
+ var b = (e, o, n) => o in e ? A(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n, u = (e, o) => {
6
6
  for (var n in o || (o = {}))
7
- N.call(o, n) && b(e, n, o[n]);
7
+ O.call(o, n) && b(e, n, o[n]);
8
8
  if (C)
9
9
  for (var n of C(o))
10
10
  S.call(o, n) && b(e, n, o[n]);
11
11
  return e;
12
- }, v = (e, o) => A(e, E(o));
12
+ }, v = (e, o) => E(e, N(o));
13
13
  import { defineComponent as g, computed as M, createVNode as P, unref as f } from "vue";
14
14
  import { upperFirst as D } from "lodash-es";
15
15
  import { componentMap as I } from "/@/components/Form/src/componentMap";
16
16
  import { isFunction as K } from "/@/utils/is";
17
17
  const G = /* @__PURE__ */ g({
18
- name: "OnlineSuperQueryValComponent",
18
+ name: "SuperQueryValComponent",
19
19
  inheritAttrs: !1,
20
20
  props: {
21
21
  schema: {
@@ -70,8 +70,8 @@ const G = /* @__PURE__ */ g({
70
70
  [m]: (...a) => {
71
71
  const [d] = a;
72
72
  c[m] && c[m](...a);
73
- const i = d ? d.target : null, _ = i ? p ? i.checked : i.value : d;
74
- e.setFormModel(r, _);
73
+ const i = d ? d.target : null, x = i ? p ? i.checked : i.value : d;
74
+ e.setFormModel(r, x);
75
75
  }
76
76
  }, j = I.get(t), c = u({
77
77
  allowClear: !0,
@@ -80,13 +80,13 @@ const G = /* @__PURE__ */ g({
80
80
  !c.disabled && t !== "RangePicker" && t && (c.placeholder = ((h = f(n)) == null ? void 0 : h.placeholder) || k(t) + e.schema.label), c.codeField = r, c.formValues = f(F);
81
81
  const w = {
82
82
  [l || (p ? "checked" : "value")]: e.formModel[r]
83
- }, O = v(u(u(u({}, c), V), w), {
83
+ }, _ = v(u(u(u({}, c), V), w), {
84
84
  allowClear: !0,
85
85
  onPressEnter() {
86
86
  o("submit");
87
87
  }
88
88
  });
89
- return P(j, O, null);
89
+ return P(j, _, null);
90
90
  }
91
91
  return () => P("div", {
92
92
  style: "width:100%"
@@ -1,22 +1,22 @@
1
1
  import { defHttp as o } from "/@/utils/http/axios";
2
- const l = (t, a) => o.get({ url: `/online/cgform/api/authColumn/${t}`, params: a }), r = (t) => o.put({ url: "/online/cgform/api/authColumn", params: t }), s = (t) => o.post({ url: "/online/cgform/api/authColumn", params: t }), i = (t) => o.put({ url: "/online/cgform/api/authColumn/batch", params: t }), c = (t) => o.post({ url: "/online/cgform/api/authColumn/batch", params: t }), h = (t, a) => o.get({ url: `/online/cgform/api/authButton/${t}`, params: a }), p = (t) => o.post({ url: "/online/cgform/api/authButton", params: t }), g = (t, a) => o.put({ url: `/online/cgform/api/authButton/${t}`, params: a }), m = (t, a) => o.get({ url: `/online/cgform/api/authData/${t}`, params: a }), $ = (t) => o.put({ url: "/online/cgform/api/authData", params: t }), d = (t, a) => a ? o.put({ url: "/online/cgform/api/authData", params: t }) : o.post({ url: "/online/cgform/api/authData", params: t }), f = (t, a) => o.delete({ url: `/online/cgform/api/authData/${t}`, params: a }), D = (t, a, u) => {
3
- let e = `/online/cgform/api/authPage/${t}/${a}`;
4
- return o.get({ url: e, params: u });
2
+ const l = (t, a) => o.get({ url: `/online/cgform/api/authColumn/${t}`, params: a }), r = (t) => o.put({ url: "/online/cgform/api/authColumn", params: t }), s = (t) => o.post({ url: "/online/cgform/api/authColumn", params: t }), i = (t) => o.put({ url: "/online/cgform/api/authColumn/batch", params: t }), c = (t) => o.post({ url: "/online/cgform/api/authColumn/batch", params: t }), h = (t, a) => o.get({ url: `/online/cgform/api/authButton/${t}`, params: a }), p = (t) => o.post({ url: "/online/cgform/api/authButton", params: t }), g = (t, a) => o.put({ url: `/online/cgform/api/authButton/${t}`, params: a }), m = (t, a) => o.get({ url: `/online/cgform/api/authData/${t}`, params: a }), $ = (t) => o.put({ url: "/online/cgform/api/authData", params: t }), d = (t, a) => a ? o.put({ url: "/online/cgform/api/authData", params: t }) : o.post({ url: "/online/cgform/api/authData", params: t }), f = (t, a) => o.delete({ url: `/online/cgform/api/authData/${t}`, params: a }), D = (t, a, e) => {
3
+ let u = `/online/cgform/api/authPage/${t}/${a}`;
4
+ return o.get({ url: u, params: e });
5
5
  }, A = (t, a) => {
6
- let u = `/online/cgform/api/validAuthData/${t}`;
7
- return o.get({ url: u, params: a });
8
- }, b = (t, a, u) => {
9
- let e = `/online/cgform/api/authPage/${t}/${a}`;
10
- return o.get({ url: e, params: u });
11
- }, B = (t) => o.get({ url: "/online/cgform/api/roleAuth", params: t }), C = (t, a, u) => {
12
- let e = `/online/cgform/api/roleColumnAuth/${t}/${a}`;
13
- return o.post({ url: e, params: u });
14
- }, F = (t, a, u) => {
15
- let e = `/online/cgform/api/roleDataAuth/${t}/${a}`;
16
- return o.post({ url: e, params: u });
17
- }, L = (t, a, u) => {
18
- let e = `/online/cgform/api/roleButtonAuth/${t}/${a}`;
19
- return o.post({ url: e, params: u });
6
+ let e = `/online/cgform/api/validAuthData/${t}`;
7
+ return o.get({ url: e, params: a });
8
+ }, b = (t, a, e) => {
9
+ let u = `/online/cgform/api/authPage/${t}/${a}`;
10
+ return o.get({ url: u, params: e });
11
+ }, B = (t) => o.get({ url: "/online/cgform/api/roleAuth", params: t }), C = (t, a, e) => {
12
+ let u = `/online/cgform/api/roleColumnAuth/${t}/${a}`;
13
+ return o.post({ url: u, params: e });
14
+ }, F = (t, a, e) => {
15
+ let u = `/online/cgform/api/roleDataAuth/${t}/${a}`;
16
+ return o.post({ url: u, params: e });
17
+ }, L = (t, a, e) => {
18
+ let u = `/online/cgform/api/roleButtonAuth/${t}/${a}`;
19
+ return o.post({ url: u, params: e }, { successMessageMode: "none", isTransformResponse: !1 });
20
20
  };
21
21
  export {
22
22
  l as a,
@@ -1,6 +1,6 @@
1
1
  import { computed as p } from "vue";
2
2
  import { useConditionFilter as h } from "/@/utils/index";
3
- const f = [
3
+ const S = [
4
4
  {
5
5
  title: "启用",
6
6
  dataIndex: "switch",
@@ -30,7 +30,7 @@ const f = [
30
30
  width: 180,
31
31
  slots: { customRender: "form" }
32
32
  }
33
- ], C = [
33
+ ], y = [
34
34
  {
35
35
  title: "启用",
36
36
  dataIndex: "switch",
@@ -51,16 +51,20 @@ const f = [
51
51
  width: 180,
52
52
  slots: { customRender: "control" }
53
53
  }
54
- ], v = [
54
+ ], C = [
55
55
  { code: "add", title: "新增", status: 0 },
56
- { code: "update", title: "编辑", status: 0 },
56
+ { code: "edit", title: "编辑", status: 0 },
57
+ { code: "detail", title: "详情", status: 0 },
57
58
  { code: "delete", title: "删除", status: 0 },
58
59
  { code: "batch_delete", title: "批量删除", status: 0 },
59
60
  { code: "export", title: "导出", status: 0 },
60
61
  { code: "import", title: "导入", status: 0 },
62
+ { code: "query", title: "查询", status: 0 },
63
+ { code: "reset", title: "重置", status: 0 },
61
64
  { code: "bpm", title: "提交流程", status: 0 },
62
- { code: "super_query", title: "高级查询", status: 0 }
63
- ], n = "USE_SQL_RULES", w = [
65
+ { code: "super_query", title: "高级查询", status: 0 },
66
+ { code: "form_confirm", title: "确定", status: 0 }
67
+ ], n = "USE_SQL_RULES", v = [
64
68
  {
65
69
  title: "启用",
66
70
  dataIndex: "switch",
@@ -80,7 +84,7 @@ const f = [
80
84
  }
81
85
  }
82
86
  ];
83
- function y(o, e) {
87
+ function w(o, e) {
84
88
  return { formSchemas: p(() => [
85
89
  {
86
90
  label: "规则名称",
@@ -209,9 +213,9 @@ function y(o, e) {
209
213
  }
210
214
  export {
211
215
  n as U,
212
- f as a,
213
- C as b,
214
- v as c,
215
- w as d,
216
- y as u
216
+ S as a,
217
+ y as b,
218
+ C as c,
219
+ v as d,
220
+ w as u
217
221
  };
@@ -79,8 +79,11 @@ const r = "validate-failed", h = [
79
79
  tableFixedActionType: "right",
80
80
  // update-begin--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
81
81
  formLabelLengthShow: 0,
82
- formLabelLength: null
82
+ formLabelLength: null,
83
83
  // update-begin--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
84
+ // 是否启用外部链接
85
+ enableExternalLink: 0,
86
+ externalLinkActions: "add,edit,detail"
84
87
  };
85
88
  function y() {
86
89
  let d = [
@@ -1,5 +1,5 @@
1
1
  import { computed as n } from "vue";
2
- import { o as u } from "./cgform.data-475d4984.mjs";
2
+ import { o as u } from "./cgform.data-0ca62d09.mjs";
3
3
  function d(l) {
4
4
  return { columns: [
5
5
  {
@@ -0,0 +1,219 @@
1
+ var C = (e, s, i) => new Promise((r, u) => {
2
+ var t = (n) => {
3
+ try {
4
+ o(i.next(n));
5
+ } catch (a) {
6
+ u(a);
7
+ }
8
+ }, m = (n) => {
9
+ try {
10
+ o(i.throw(n));
11
+ } catch (a) {
12
+ u(a);
13
+ }
14
+ }, o = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(t, m);
15
+ o((i = i.apply(e, s)).next());
16
+ });
17
+ import { ref as v, defineComponent as k, computed as I, unref as R, watch as A, resolveComponent as c, openBlock as d, createElementBlock as H, createVNode as g, createBlock as _, mergeProps as b, withCtx as y, createCommentVNode as x, normalizeClass as S } from "vue";
18
+ import { Layout as D } from "ant-design-vue";
19
+ import M from "./index-93341e02.mjs";
20
+ import w from "./index-bef7fe2d.mjs";
21
+ import { _ as U } from "./ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs";
22
+ import { useHeaderSetting as N } from "/@/hooks/setting/useHeaderSetting";
23
+ import { useMenuSetting as B } from "/@/hooks/setting/useMenuSetting";
24
+ import { useDesign as $ } from "/@/hooks/web/useDesign";
25
+ import { useLockPage as O } from "/@/hooks/web/useLockPage";
26
+ import { useAppInject as P } from "/@/hooks/web/useAppInject";
27
+ import { router as E } from "/@/router";
28
+ import { a as q, b as F, c as T, S as h } from "./index-5e89258d.mjs";
29
+ import { u as V } from "./shareStore-7de6c7a6.mjs";
30
+ import { useUserStore as j } from "/@/store/modules/user";
31
+ import { defHttp as L } from "/@/utils/http/axios";
32
+ import { p as z } from "./utils-9fce7606.mjs";
33
+ import { _ as G } from "./index-f3683351.mjs";
34
+ import "/@/hooks/setting";
35
+ import "/@/utils/propTypes";
36
+ import "/@/components/Application";
37
+ import "/@/layouts/default/header/components";
38
+ import "/@/utils/factory/createAsyncComponent";
39
+ import "/@/views/sys/login/LoginSelect.vue";
40
+ import "/@/hooks/web/useI18n";
41
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
42
+ import "/@/hooks/web/useMessage";
43
+ import "vue-router";
44
+ import "/@/hooks/setting/useRootSetting";
45
+ import "/@/hooks/setting/useTransitionSetting";
46
+ import "/@/hooks/component/usePageContext";
47
+ import "/@/hooks/event/useWindowSizeFn";
48
+ import "/@/enums/pageEnum";
49
+ import "pinia";
50
+ import "/@/utils/auth";
51
+ import "/@/enums/cacheEnum";
52
+ import "/@/api/sys/user";
53
+ import "./cgform.data-0ca62d09.mjs";
54
+ import "/@/utils/dict";
55
+ import "/@/utils/dict/JDictSelectUtil";
56
+ import "/@/utils/uuid";
57
+ const J = (e) => L.get({
58
+ url: "/online/cgform/head/queryById",
59
+ params: { id: e }
60
+ }, { isTransformResponse: !1 }), K = (e, s) => L.get({
61
+ url: "/online/cgform/api/form/{formId}/{recordId}".replace("{formId}", e).replace("{recordId}", s),
62
+ params: {}
63
+ }, { isTransformResponse: !1 });
64
+ function Q() {
65
+ const e = j(), s = V(), i = v(!0), r = v("");
66
+ function u() {
67
+ return C(this, null, function* () {
68
+ try {
69
+ yield s.checkUrlToken();
70
+ const t = E.currentRoute.value;
71
+ if (!e.getToken) {
72
+ E.push({
73
+ name: q,
74
+ query: {
75
+ redirect: encodeURIComponent(t.path)
76
+ }
77
+ });
78
+ return;
79
+ }
80
+ const { id: m } = t.params;
81
+ if (!m) {
82
+ r.value = "参数错误";
83
+ return;
84
+ }
85
+ let o = yield J(m);
86
+ if (!o.success) {
87
+ r.value = o.message;
88
+ return;
89
+ }
90
+ const n = o.result, a = z(n);
91
+ if (!(a != null && a.enableExternalLink)) {
92
+ r.value = "当前表单未开启外部链接";
93
+ return;
94
+ }
95
+ let p = a.externalLinkActions.split(",");
96
+ if (t.name === F) {
97
+ if (!p.includes("add")) {
98
+ r.value = "当前表单不支持外部新增";
99
+ return;
100
+ }
101
+ } else if (t.name === T) {
102
+ if (!p.includes("edit")) {
103
+ r.value = "当前表单不支持外部编辑";
104
+ return;
105
+ }
106
+ } else if (t.name === h) {
107
+ if (!p.includes("detail")) {
108
+ r.value = "当前表单不支持外部详情";
109
+ return;
110
+ }
111
+ } else {
112
+ r.value = "未知的页面";
113
+ return;
114
+ }
115
+ if (n.tableType == 3) {
116
+ r.value = "不支持附表外部链接";
117
+ return;
118
+ }
119
+ if (s.setCgformRecord(n), t.name === T || t.name === h) {
120
+ const { dataId: l } = t.params;
121
+ if (!l) {
122
+ r.value = "参数错误";
123
+ return;
124
+ }
125
+ if (o = yield K(m, l), !o.success) {
126
+ r.value = o.message;
127
+ return;
128
+ }
129
+ const f = o.result;
130
+ if ((f == null ? void 0 : f.id) !== l) {
131
+ r.value = "数据不存在或已删除";
132
+ return;
133
+ }
134
+ s.setDataRecord(f);
135
+ }
136
+ } catch (t) {
137
+ r.value = (t == null ? void 0 : t.message) || t;
138
+ } finally {
139
+ i.value = !1;
140
+ }
141
+ });
142
+ }
143
+ return {
144
+ pageLoading: i,
145
+ pageErrorTip: r,
146
+ initCgformShare: u
147
+ };
148
+ }
149
+ const W = k({
150
+ name: "DefaultLayout",
151
+ components: {
152
+ LayoutHeader: M,
153
+ LayoutContent: w,
154
+ ErrorTip: U,
155
+ Layout: D
156
+ },
157
+ setup() {
158
+ const { prefixCls: e } = $("default-layout"), { initCgformShare: s, pageLoading: i, pageErrorTip: r } = Q(), { getIsMobile: u } = P(), { getShowFullHeaderRef: t } = N(), { getShowSidebar: m, getIsMixSidebar: o, getShowMenu: n } = B(), a = O(), p = I(() => {
159
+ let l = ["ant-layout"];
160
+ return (R(o) || R(n)) && l.push("ant-layout-has-sider"), l;
161
+ });
162
+ return A(E.currentRoute, () => {
163
+ s();
164
+ }, { immediate: !0 }), {
165
+ pageLoading: i,
166
+ pageErrorTip: r,
167
+ getShowFullHeaderRef: t,
168
+ getShowSidebar: m,
169
+ prefixCls: e,
170
+ getIsMobile: u,
171
+ getIsMixSidebar: o,
172
+ layoutClass: p,
173
+ lockEvents: a
174
+ };
175
+ }
176
+ });
177
+ const X = {
178
+ key: 0,
179
+ style: { "text-align": "center", "padding-top": "120px" }
180
+ };
181
+ function Y(e, s, i, r, u, t) {
182
+ const m = c("a-spin"), o = c("ErrorTip"), n = c("LayoutHeader"), a = c("LayoutContent"), p = c("Layout");
183
+ return e.pageLoading ? (d(), H("div", X, [
184
+ g(m, { tip: "加载中…" })
185
+ ])) : e.pageErrorTip ? (d(), _(o, {
186
+ key: 1,
187
+ subTitle: e.pageErrorTip
188
+ }, null, 8, ["subTitle"])) : (d(), _(p, b({
189
+ key: 2,
190
+ class: e.prefixCls
191
+ }, e.lockEvents), {
192
+ default: y(() => [
193
+ e.getIsMobile ? x("", !0) : (d(), _(n, {
194
+ key: 0,
195
+ fixed: ""
196
+ })),
197
+ g(p, {
198
+ class: S([e.layoutClass])
199
+ }, {
200
+ default: y(() => [
201
+ g(p, {
202
+ class: S(`${e.prefixCls}-main`)
203
+ }, {
204
+ default: y(() => [
205
+ g(a)
206
+ ]),
207
+ _: 1
208
+ }, 8, ["class"])
209
+ ]),
210
+ _: 1
211
+ }, 8, ["class"])
212
+ ]),
213
+ _: 1
214
+ }, 16, ["class"]));
215
+ }
216
+ const Pe = /* @__PURE__ */ G(W, [["render", Y]]);
217
+ export {
218
+ Pe as default
219
+ };
@@ -0,0 +1,11 @@
1
+ import { defineComponent as e, openBlock as o, createElementBlock as r } from "vue";
2
+ import { useUserStore as t } from "/@/store/modules/user";
3
+ const _ = /* @__PURE__ */ e({
4
+ __name: "index",
5
+ setup(n) {
6
+ return t().getToken, (c, m) => (o(), r("div", null, "这里是你的登录页面"));
7
+ }
8
+ });
9
+ export {
10
+ _ as default
11
+ };