@jeecg/online 3.9.0-beta2 → 3.9.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.
Files changed (170) hide show
  1. package/{AccountLoginForm-634a76b1.mjs → AccountLoginForm-BXyvcSds.mjs} +50 -53
  2. package/{AiModal-204a2146.mjs → AiModal-BgVzn074.mjs} +18 -20
  3. package/{AppForgetPassword-f9a6258a.mjs → AppForgetPassword-B-2CvL62.mjs} +59 -63
  4. package/AppLogin-BMBmx2oq.mjs +272 -0
  5. package/AppLoginHeader-BtKXOMRR.mjs +23 -0
  6. package/{AppNameEmail-54026ea8.mjs → AppNameEmail-DCqMNjaK.mjs} +20 -24
  7. package/{AppRegister-043efc45.mjs → AppRegister-C5iH-245.mjs} +33 -37
  8. package/{AppTenant-c7bb8700.mjs → AppTenant-etPXeUcW.mjs} +49 -55
  9. package/AppThirdForm-NMob-JaS.mjs +185 -0
  10. package/AuthButtonConfig-zUioaGwn.mjs +155 -0
  11. package/AuthButtonTree-DYZwphe6.mjs +159 -0
  12. package/{AuthDataConfig-3cd10ca2.mjs → AuthDataConfig-uQ5WT7rx.mjs} +57 -62
  13. package/AuthDataTree-Cr28_YKx.mjs +134 -0
  14. package/{AuthFieldConfig-bb65f78b.mjs → AuthFieldConfig-DjdaPIXF.mjs} +95 -101
  15. package/{AuthFieldTree-3e38b12b.mjs → AuthFieldTree-DHmnDQ0I.mjs} +94 -99
  16. package/AuthManagerDrawer-DUb6QylS.mjs +108 -0
  17. package/{AuthSetterModal-f176c221.mjs → AuthSetterModal-BBFdNv1M.mjs} +89 -100
  18. package/BuiltInButtonList-Cgg5maxI.mjs +4 -0
  19. package/{BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs → BuiltInButtonList.vue_vue_type_script_setup_true_lang-5-4hU0bi.mjs} +8 -8
  20. package/{CgformAddressModal-a3903b24.mjs → CgformAddressModal-BVoww1fk.mjs} +57 -63
  21. package/CgformCopyList-7e96RMbJ.mjs +176 -0
  22. package/{CgformModal-115710a6.mjs → CgformModal-RH-Tr08S.mjs} +240 -241
  23. package/{CgreportAigcModal-3bef8abe.mjs → CgreportAigcModal-rEfIpPF9.mjs} +35 -38
  24. package/{CgreportModal-0cc48587.mjs → CgreportModal-Bajb_3ku.mjs} +49 -50
  25. package/{CheckDictTable-65157c48.mjs → CheckDictTable-BxJFrctQ.mjs} +44 -52
  26. package/{CodeFileListModal-305c1a62.mjs → CodeFileListModal-C3uqsFvi.mjs} +32 -36
  27. package/{CodeFileViewModal-320d7acf.mjs → CodeFileViewModal-bEtZDbAY.mjs} +78 -81
  28. package/CodeGeneratorModal-ZWEIXRbY.mjs +291 -0
  29. package/{CustomButtonList-98db8fd2.mjs → CustomButtonList-7wjonhtu.mjs} +82 -85
  30. package/{DBAttributeTable-56701599.mjs → DBAttributeTable-DA2XttIQ.mjs} +50 -60
  31. package/{DbToOnlineModal-a82cdeb5.mjs → DbToOnlineModal-CDVqmEJH.mjs} +43 -45
  32. package/DetailForm-CnfJBMys.mjs +472 -0
  33. package/{DropMenuItem-b3a9cd6a.mjs → DropMenuItem-D8YWMle-.mjs} +8 -11
  34. package/EnhanceJavaModal-W8_oGY-U.mjs +255 -0
  35. package/{EnhanceJsHistory-bb6ba865.mjs → EnhanceJsHistory-ZzXedCNI.mjs} +48 -49
  36. package/{EnhanceJsModal-b0527cbf.mjs → EnhanceJsModal-Djb5ItH4.mjs} +95 -104
  37. package/EnhanceSqlModal-DxPdRcQc.mjs +258 -0
  38. package/ErrorTip-BDS1uxkW.mjs +4 -0
  39. package/{ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs → ErrorTip.vue_vue_type_script_setup_true_lang-Bl9zMjvW.mjs} +11 -11
  40. package/ExtendConfigModal-CxJIWvV4.mjs +102 -0
  41. package/{FieldExtendJsonModal-536e6d5b.mjs → FieldExtendJsonModal-Bvmbb6yd.mjs} +27 -30
  42. package/{FileSelectModal-eb026170.mjs → FileSelectModal-DXqL5msQ.mjs} +27 -31
  43. package/{ForeignKeyTable-97a5827f.mjs → ForeignKeyTable-D6AlLbfd.mjs} +17 -25
  44. package/{IndexTable-4d350e4e.mjs → IndexTable-B7ef6Aox.mjs} +9 -17
  45. package/JModalTip-DHrn6ksJ.mjs +46 -0
  46. package/{JOnlineSearchSelect-ffeac61d.mjs → JOnlineSearchSelect-CAv2Dm9V.mjs} +21 -23
  47. package/{LeftDepart-a727aab7.mjs → LeftDepart-BC1jpYJP.mjs} +8 -11
  48. package/{LeftRole-b533dcf6.mjs → LeftRole-sq_2p6Qk.mjs} +16 -19
  49. package/{LeftUser-aaac52cb.mjs → LeftUser-CYh4PBgd.mjs} +7 -10
  50. package/{LinkTableConfigModal-4053b62d.mjs → LinkTableConfigModal-BOWs0A5-.mjs} +38 -40
  51. package/{LinkTableFieldConfigModal-93552099.mjs → LinkTableFieldConfigModal-D7FTBP3E.mjs} +50 -52
  52. package/LinkTableListPiece-Bfu6vfo0.mjs +31 -0
  53. package/{ModalFormDemo-b8478356.mjs → ModalFormDemo-C1qQT6lj.mjs} +13 -16
  54. package/{OnlCgformErpList-b0605798.mjs → OnlCgformErpList-CavWG8GK.mjs} +139 -199
  55. package/OnlCgformErpSubTable-D3QM8oWi.mjs +382 -0
  56. package/OnlCgformInnerSubTable-BqmooFqy.mjs +213 -0
  57. package/OnlCgformInnerTableList-Dr1KdoSC.mjs +421 -0
  58. package/OnlCgformTabList-DCy3oudh.mjs +371 -0
  59. package/OnlineAutoList-C4pkORGb.mjs +500 -0
  60. package/OnlineAutoModal-Cuf_wcbU.mjs +222 -0
  61. package/{OnlineAutoTreeList-624106c1.mjs → OnlineAutoTreeList-LDE9Sm7X.mjs} +124 -181
  62. package/OnlineCustomModal-Jz4MxkH0.mjs +209 -0
  63. package/OnlineDetailModal-So0YEah1.mjs +160 -0
  64. package/{OnlineForm-86b5966d.mjs → OnlineForm-CvcbzRIZ.mjs} +47 -73
  65. package/OnlineFormDetail-KaD6cV31.mjs +321 -0
  66. package/OnlineFormUrlAdd-CktstdFD.mjs +86 -0
  67. package/OnlineFormUrlDetail-C4qptuTQ.mjs +85 -0
  68. package/OnlineFormUrlEdit-C06vTiM_.mjs +84 -0
  69. package/{OnlineFormUrlSuccess-0c2431a4.mjs → OnlineFormUrlSuccess-Cvbte2lW.mjs} +27 -30
  70. package/{OnlineQueryForm-3017a4ca.mjs → OnlineQueryForm-6E1IRi95.mjs} +139 -167
  71. package/{OnlineSearchFormItem-1b54585f.mjs → OnlineSearchFormItem-CdRuXQPu.mjs} +112 -118
  72. package/{OnlineSelectCascade-fab4426d.mjs → OnlineSelectCascade-O7iXAgdH.mjs} +31 -33
  73. package/OnlineSubFormDetail-DcMpAk8Z.mjs +109 -0
  74. package/OnlineTabAutoModal-DSOVDlOz.mjs +285 -0
  75. package/OnlineTabDetailModal-OXQ_2VLI.mjs +187 -0
  76. package/{OnlineTabForm-5c04cbc5.mjs → OnlineTabForm-Cg3_IX2H.mjs} +228 -253
  77. package/OnlineTabFormDetail-BgFkUkva.mjs +299 -0
  78. package/{PageAttributeTable-18aabf81.mjs → PageAttributeTable-C803SekP.mjs} +46 -59
  79. package/{PhoneLoginForm-4a9d7869.mjs → PhoneLoginForm-8a0Uehov.mjs} +40 -43
  80. package/ProcessOnlineForm-COeEaGc8.mjs +182 -0
  81. package/{QueryTable-342fd89a.mjs → QueryTable-DHYaYbKC.mjs} +23 -31
  82. package/SetSwitchOptions-B4Q6l-54.mjs +58 -0
  83. package/ShareAddView-CxZuNTQB.mjs +11 -0
  84. package/ShareEditView-Dqdzjmpc.mjs +17 -0
  85. package/ShareView-B9TiMmkR.mjs +4 -0
  86. package/{ShareView.vue_vue_type_script_setup_true_lang-9ea579c2.mjs → ShareView.vue_vue_type_script_setup_true_lang-BCdP9KMD.mjs} +21 -21
  87. package/SingleView-BDXeMLV-.mjs +4 -0
  88. package/{SingleView.vue_vue_type_style_index_0_lang-24d417dc.mjs → SingleView.vue_vue_type_style_index_0_lang-D3QcMcYT.mjs} +27 -27
  89. package/{SuperQuery-270b0968.mjs → SuperQuery-CgkajEWI.mjs} +342 -370
  90. package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
  91. package/TaskOpinionList-C8rcU6ee.mjs +10 -0
  92. package/{aiModal-e7362c3f.mjs → aiModal-DTU-w5Xx.mjs} +33 -36
  93. package/{enhance.data-6601ff44.mjs → enhance.data-DRCzy5Bx.mjs} +5 -5
  94. package/index-0kQBIHx0.mjs +58 -0
  95. package/{index-b811abb9.mjs → index-B1H394jP.mjs} +35 -38
  96. package/index-CXD6__bJ.mjs +195 -0
  97. package/{index-6d1a78e2.mjs → index-DIjQbz6A.mjs} +37 -41
  98. package/{index-e2c3e6f3.mjs → index-Dbr1qL3H.mjs} +474 -608
  99. package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
  100. package/{index-d95bb7c2.mjs → index-pGbTziKP.mjs} +32 -44
  101. package/{index-b5fe9bd4.mjs → index-siZ6JDIW.mjs} +17 -20
  102. package/main.index.js +8 -9
  103. package/online.css +1 -0
  104. package/package.json +1 -1
  105. package/{useCgformList-6d5547ff.mjs → useCgformList-_o9GP7ca.mjs} +3 -3
  106. package/useExtendComponent-P9wrWQwT.mjs +4479 -0
  107. package/{useListButton-73071548.mjs → useListButton-DyOAscwT.mjs} +7 -9
  108. package/{useSchemas-b074f3a1.mjs → useSchemas-svH7q1tm.mjs} +69 -42
  109. package/{useTableSync-dbfba20e.mjs → useTableSync-BAWujyoc.mjs} +1 -1
  110. package/{utils-9fce7606.mjs → utils-DcQ65Qmw.mjs} +1 -1
  111. package/AppLogin-bf783eab.mjs +0 -287
  112. package/AppLoginHeader-55594326.mjs +0 -27
  113. package/AppThirdForm-5e7e1144.mjs +0 -189
  114. package/AuthButtonConfig-4887be0d.mjs +0 -160
  115. package/AuthButtonTree-7e47b44b.mjs +0 -165
  116. package/AuthDataTree-714c259c.mjs +0 -139
  117. package/AuthManagerDrawer-dee39b07.mjs +0 -119
  118. package/BuiltInButtonList-bb6cf95c.mjs +0 -10
  119. package/CgformCopyList-4be1000f.mjs +0 -259
  120. package/CodeGeneratorModal-2ba18bd1.mjs +0 -298
  121. package/DetailForm-7d4f630e.mjs +0 -497
  122. package/EnhanceJavaModal-469e645e.mjs +0 -264
  123. package/EnhanceSqlModal-c6e8bce1.mjs +0 -268
  124. package/ErrorTip-bb616e32.mjs +0 -7
  125. package/ExtendConfigModal-7b00b49a.mjs +0 -117
  126. package/JModalTip-c3e6726c.mjs +0 -49
  127. package/LinkTableListPiece-0f4ca559.mjs +0 -34
  128. package/OnlCgformErpSubTable-89699bc9.mjs +0 -443
  129. package/OnlCgformInnerSubTable-f2722f77.mjs +0 -269
  130. package/OnlCgformInnerTableList-992aa7e9.mjs +0 -481
  131. package/OnlCgformTabList-882a0e0c.mjs +0 -431
  132. package/OnlineAutoList-caedb54a.mjs +0 -558
  133. package/OnlineAutoModal-a0d1a6b8.mjs +0 -260
  134. package/OnlineCustomModal-f4e17bed.mjs +0 -246
  135. package/OnlineDetailModal-35394778.mjs +0 -198
  136. package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
  137. package/OnlineFormDetail-4b3ad130.mjs +0 -349
  138. package/OnlineFormUrlAdd-708c91fb.mjs +0 -116
  139. package/OnlineFormUrlDetail-5c8efaeb.mjs +0 -121
  140. package/OnlineFormUrlEdit-8f08474e.mjs +0 -114
  141. package/OnlineSubFormDetail-bbc48c3e.mjs +0 -147
  142. package/OnlineTabAutoModal-b0f9fce8.mjs +0 -319
  143. package/OnlineTabDetailModal-401a26ad.mjs +0 -226
  144. package/OnlineTabFormDetail-2a28febf.mjs +0 -328
  145. package/ProcessOnlineForm-0ddce4fb.mjs +0 -218
  146. package/SetSwitchOptions-e1d5a6b4.mjs +0 -62
  147. package/ShareAddView-a5154da3.mjs +0 -88
  148. package/ShareEditView-cf761cf3.mjs +0 -94
  149. package/ShareView-3b2f5457.mjs +0 -82
  150. package/SingleView-3cab20a9.mjs +0 -70
  151. package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
  152. package/TaskOpinionList-60cf4080.mjs +0 -13
  153. package/index-740b2c4a.mjs +0 -57
  154. package/index-8fd12d0f.mjs +0 -219
  155. package/style.css +0 -1
  156. package/useExtendComponent-95ce0719.mjs +0 -4460
  157. /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
  158. /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
  159. /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
  160. /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
  161. /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
  162. /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
  163. /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
  164. /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
  165. /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
  166. /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
  167. /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
  168. /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
  169. /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
  170. /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
@@ -1,27 +0,0 @@
1
- import { defineComponent as t, openBlock as i, createElementBlock as r, createElementVNode as o, unref as s } from "vue";
2
- import p from "/@/assets/images/logo.png";
3
- import { _ } from "./index-740b2c4a.mjs";
4
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
- import "/@/hooks/web/useMessage";
6
- import "vue-router";
7
- const a = { class: "login-header" }, l = ["src"], c = /* @__PURE__ */ t({
8
- __name: "AppLoginHeader",
9
- setup(m) {
10
- function n() {
11
- window.open("https://www.qiaoqiaoyun.com/", "_target");
12
- }
13
- return (d, e) => (i(), r("div", a, [
14
- o("img", {
15
- src: s(p),
16
- alt: "敲敲云",
17
- class: "login-image",
18
- onClick: n
19
- }, null, 8, l),
20
- e[0] || (e[0] = o("span", { class: "login-header-name" }, null, -1))
21
- ]));
22
- }
23
- });
24
- const v = /* @__PURE__ */ _(c, [["__scopeId", "data-v-6df6e301"]]);
25
- export {
26
- v as default
27
- };
@@ -1,189 +0,0 @@
1
- var O = Object.defineProperty;
2
- var F = Object.getOwnPropertySymbols;
3
- var R = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
4
- var E = (t, e, n) => e in t ? O(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, _ = (t, e) => {
5
- for (var n in e || (e = {}))
6
- R.call(e, n) && E(t, n, e[n]);
7
- if (F)
8
- for (var n of F(e))
9
- q.call(e, n) && E(t, n, e[n]);
10
- return t;
11
- };
12
- var B = (t, e, n) => new Promise((m, g) => {
13
- var h = (s) => {
14
- try {
15
- f(n.next(s));
16
- } catch (r) {
17
- g(r);
18
- }
19
- }, d = (s) => {
20
- try {
21
- f(n.throw(s));
22
- } catch (r) {
23
- g(r);
24
- }
25
- }, f = (s) => s.done ? m(s.value) : Promise.resolve(s.value).then(h, d);
26
- f((n = n.apply(t, e)).next());
27
- });
28
- import { ref as c, unref as a, defineComponent as z, resolveComponent as G, withDirectives as Q, openBlock as J, createElementBlock as K, createElementVNode as p, createVNode as k, withCtx as L, createTextVNode as I, vShow as W } from "vue";
29
- import { Form as $, Input as X } from "ant-design-vue";
30
- import { CountdownInput as Y } from "/@/components/CountDown";
31
- import { defHttp as D } from "/@/utils/http/axios";
32
- import { useGlobSetting as Z } from "/@/hooks/setting";
33
- import { useMessage as ee } from "/@/hooks/web/useMessage";
34
- import { useUserStore as ne } from "/@/store/modules/user";
35
- import { useI18n as te } from "/@/hooks/web/useI18n";
36
- import { QuestionCircleFilled as oe } from "@ant-design/icons-vue";
37
- import { _ as ie } from "./index-740b2c4a.mjs";
38
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
39
- import "vue-router";
40
- function se(t) {
41
- const { createMessage: e, notification: n } = ee(), { t: m } = te(), g = Z(), h = ne(), d = c(""), f = c({}), s = c(!1), r = c(!1), b = c(""), T = c(!1), v = c(""), y = c("");
42
- function S(o) {
43
- let i = `${g.uploadUrl}/sys/thirdLogin/render/${o}`;
44
- window.open(
45
- i,
46
- `login ${o}`,
47
- "height=500, width=500, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no"
48
- ), d.value = o, f.value = {}, s.value = !1;
49
- let l = function(j) {
50
- let u = j.data;
51
- if (typeof u == "string")
52
- if (u === "登录失败")
53
- e.warning(u);
54
- else if (u.includes("绑定手机号")) {
55
- r.value = !0;
56
- let H = u.split(",");
57
- b.value = H[1], t("type", { loginType: "thirdLogin" });
58
- } else
59
- w(u);
60
- else
61
- typeof u == "object" ? u.isObj === !0 && (T.value = !0, f.value = _({}, u)) : e.warning("不识别的信息传递");
62
- window.removeEventListener("message", a(l), !1);
63
- };
64
- window.addEventListener("message", l, !1);
65
- }
66
- function w(o) {
67
- a(s) === !1 && (s.value = !0, h.ThirdLogin({ token: o, thirdType: a(d) }).then((i) => {
68
- i && i.userInfo ? n.success({
69
- message: m("sys.login.loginSuccessTitle"),
70
- description: `${m("sys.login.loginSuccessDesc")}: ${i.userInfo.realname}`,
71
- duration: 3
72
- }) : U(i);
73
- }));
74
- }
75
- function U(o) {
76
- n.error({
77
- message: "登录失败",
78
- description: ((o.response || {}).data || {}).message || o.message || "请求出现错误,请稍后再试",
79
- duration: 4
80
- });
81
- }
82
- function A() {
83
- a(v) || C("请输入手机号"), a(y) || C("请输入验证码");
84
- let o = {
85
- mobile: a(v),
86
- captcha: a(y),
87
- thirdUserUuid: a(b)
88
- };
89
- D.post({ url: "/sys/thirdLogin/bindingThirdPhone", params: o }, { isTransformResponse: !1 }).then((i) => {
90
- i.success ? (r.value = !1, w(i.result)) : e.warning(i.message);
91
- }).catch((i) => {
92
- e.warning(i.message);
93
- });
94
- }
95
- function C(o) {
96
- n.error({
97
- message: "登录失败",
98
- description: o,
99
- duration: 4
100
- });
101
- }
102
- function x() {
103
- t("type", { loginType: "login" });
104
- }
105
- function P() {
106
- t("type", { loginType: "register" });
107
- }
108
- function M() {
109
- r.value = !1;
110
- }
111
- function N(o) {
112
- return B(this, null, function* () {
113
- let i = _({}, o);
114
- i.thirdUserUuid = a(b), yield D.put({ url: "/sys/thirdLogin/registerBindThirdAccount", params: i }, { isTransformResponse: !1 }).then((l) => {
115
- l.success ? (r.value = !1, w(l.result)) : e.warning(l.message);
116
- }).catch((l) => {
117
- e.warning(l.message);
118
- });
119
- });
120
- }
121
- function V(o) {
122
- v.value = o.mobile, y.value = o.sms, A();
123
- }
124
- return {
125
- thirdConfirmShow: T,
126
- bindingAccount: r,
127
- thirdHandleOk: A,
128
- thirdPhone: v,
129
- thirdCaptcha: y,
130
- onThirdLogin: S,
131
- loginAccountClick: x,
132
- registerAccountClick: P,
133
- hideBindThirdAccount: M,
134
- bindThirdAccount: V,
135
- createAccountBindThird: N
136
- };
137
- }
138
- const re = $.Item, ue = X.Password, ae = z({
139
- name: "AppThirdForm",
140
- components: { FormItem: re, Form: $, InputPassword: ue, CountdownInput: Y, QuestionCircleFilled: oe },
141
- setup(t, { emit: e }) {
142
- return _({}, se(e));
143
- }
144
- });
145
- const le = { class: "third-account" }, ce = { class: "content" }, de = { class: "enter-x bind-btn" }, pe = {
146
- class: "enter-x bind-btn",
147
- style: { "margin-top": "20px" }
148
- };
149
- function fe(t, e, n, m, g, h) {
150
- const d = G("a-button");
151
- return Q((J(), K("div", le, [
152
- p("div", ce, [
153
- e[2] || (e[2] = p("div", { class: "bind-title" }, [
154
- p("span", null, "还未绑定敲敲云账号")
155
- ], -1)),
156
- e[3] || (e[3] = p("div", { class: "bind-title-desc" }, [
157
- p("span", null, "请选择绑定已有帐户,或创建新帐号")
158
- ], -1)),
159
- p("div", de, [
160
- k(d, {
161
- type: "primary",
162
- onClick: t.loginAccountClick
163
- }, {
164
- default: L(() => e[0] || (e[0] = [
165
- I("登录并绑定")
166
- ])),
167
- _: 1
168
- }, 8, ["onClick"])
169
- ]),
170
- p("div", pe, [
171
- k(d, {
172
- type: "primary",
173
- onClick: t.registerAccountClick
174
- }, {
175
- default: L(() => e[1] || (e[1] = [
176
- I("注册新账号")
177
- ])),
178
- _: 1
179
- }, 8, ["onClick"])
180
- ])
181
- ])
182
- ], 512)), [
183
- [W, t.bindingAccount]
184
- ]);
185
- }
186
- const Be = /* @__PURE__ */ ie(ae, [["render", fe], ["__scopeId", "data-v-c98a927f"]]);
187
- export {
188
- Be as default
189
- };
@@ -1,160 +0,0 @@
1
- var h = (s, u, d) => new Promise((f, m) => {
2
- var g = (a) => {
3
- try {
4
- r(d.next(a));
5
- } catch (l) {
6
- m(l);
7
- }
8
- }, b = (a) => {
9
- try {
10
- r(d.throw(a));
11
- } catch (l) {
12
- m(l);
13
- }
14
- }, r = (a) => a.done ? f(a.value) : Promise.resolve(a.value).then(g, b);
15
- r((d = d.apply(s, u)).next());
16
- });
17
- import { defineComponent as S, ref as T, watch as A, resolveComponent as x, openBlock as E, createElementBlock as $, createVNode as w, withCtx as I, createTextVNode as q } from "vue";
18
- import { cloneDeep as F } from "lodash-es";
19
- import { BasicTable as j, useTable as z } from "/@/components/Table";
20
- import { f as O, g as U, h as V } from "./auth.api-53df4c33.mjs";
21
- import { b as K, c as P } from "./auth.data-e44c7975.mjs";
22
- import { _ as G } from "./index-740b2c4a.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 H = S({
29
- name: "AuthButtonConfig",
30
- components: { BasicTable: j },
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 u = T(""), d = T(2), f = T(3), m = T(5), [g, { reload: b, getTableRef: r, setPagination: a }] = z({
45
- api: y,
46
- rowKey: "code",
47
- bordered: !0,
48
- columns: K,
49
- showIndexColumn: !1
50
- });
51
- A(
52
- () => s.headId,
53
- (t) => {
54
- u.value = t.split("?")[0], r().value && a({ current: 1, pageSize: 10 }), b().catch(() => null);
55
- },
56
- { immediate: !0 }
57
- );
58
- const l = (t) => {
59
- const e = F(P);
60
- if (t.mainRelationType != null && t.mainThemeTemplate != null && s.tableType == 3) {
61
- let i = [];
62
- switch (t.mainThemeTemplate) {
63
- case "normal":
64
- case "innerTable":
65
- case "tab":
66
- t.mainRelationType == 1 ? i = [] : i = e.filter((n) => ["add", "update", "batch_delete"].includes(n.code));
67
- break;
68
- case "erp":
69
- i = e.filter((n) => !["super_query"].includes(n.code));
70
- break;
71
- }
72
- return i;
73
- } else
74
- return e;
75
- };
76
- function y(t) {
77
- return h(this, null, function* () {
78
- let e = yield O(u.value, t), { authList: i, buttonList: n } = e, c = [];
79
- const B = l(e);
80
- for (let o of B) {
81
- const p = n.findIndex((_) => _.buttonCode === o.code), C = {};
82
- p !== -1 && (C.title = n[p].buttonName, n.splice(p, 1));
83
- let N = {
84
- status: 0,
85
- page: f.value
86
- }, R = i.find((_) => _.code == o.code);
87
- Object.assign(o, N, R, C), c.push(o);
88
- }
89
- if (s.tableType == 3) {
90
- const o = c.findIndex((p) => p.code === "super_query");
91
- o != -1 && c.splice(o, 1);
92
- }
93
- if ([2, 3].includes(+s.tableType)) {
94
- const o = c.findIndex((p) => p.code == "aigc_mock_data");
95
- o != -1 && c.splice(o, 1);
96
- }
97
- return v(i, n, c);
98
- });
99
- }
100
- function v(t, e, i) {
101
- for (let n of e) {
102
- let c = t.find((o) => o.code == n.buttonCode), B = {
103
- code: n.buttonCode,
104
- title: n.buttonName,
105
- status: 0,
106
- page: n.buttonStyle == "form" ? m.value : f.value
107
- };
108
- i.push(Object.assign(B, c));
109
- }
110
- return i;
111
- }
112
- function k(t, e) {
113
- return h(this, null, function* () {
114
- t ? L(e) : D(e);
115
- });
116
- }
117
- function L(t) {
118
- return h(this, null, function* () {
119
- let e = yield U({
120
- id: t.id,
121
- code: t.code,
122
- page: t.page,
123
- cgformId: u.value,
124
- type: d.value,
125
- control: 5,
126
- status: 1
127
- });
128
- t.id = e.id, t.status = 1;
129
- });
130
- }
131
- function D(t) {
132
- return h(this, null, function* () {
133
- yield V(t.id), t.status = 0;
134
- });
135
- }
136
- return { registerTable: g, onUpdateStatus: k };
137
- }
138
- }), J = { class: "auth-field-config" };
139
- function M(s, u, d, f, m, g) {
140
- const b = x("a-switch"), r = x("BasicTable");
141
- return E(), $("div", J, [
142
- w(r, { onRegister: s.registerTable }, {
143
- switch: I(({ text: a, record: l }) => [
144
- w(b, {
145
- size: "small",
146
- checked: l.status === 1,
147
- onChange: (y) => s.onUpdateStatus(y, l)
148
- }, null, 8, ["checked", "onChange"])
149
- ]),
150
- control: I(() => u[0] || (u[0] = [
151
- q(" 可见 ")
152
- ])),
153
- _: 1
154
- }, 8, ["onRegister"])
155
- ]);
156
- }
157
- const ut = /* @__PURE__ */ G(H, [["render", M]]);
158
- export {
159
- ut as default
160
- };
@@ -1,165 +0,0 @@
1
- var h = (e, o, c) => new Promise((u, p) => {
2
- var m = (r) => {
3
- try {
4
- n(c.next(r));
5
- } catch (d) {
6
- p(d);
7
- }
8
- }, l = (r) => {
9
- try {
10
- n(c.throw(r));
11
- } catch (d) {
12
- p(d);
13
- }
14
- }, n = (r) => r.done ? u(r.value) : Promise.resolve(r.value).then(m, l);
15
- n((c = c.apply(e, o)).next());
16
- });
17
- import { defineComponent as N, ref as i, computed as w, watch as M, resolveComponent as g, openBlock as v, createElementBlock as b, createBlock as E, Fragment as S, createElementVNode as P, createVNode as k, withCtx as I, createTextVNode as B } from "vue";
18
- import { useMessage as $ } from "/@/hooks/web/useMessage";
19
- import { c as R } from "./auth.data-e44c7975.mjs";
20
- import { o as V, n as z, p as L } from "./auth.api-53df4c33.mjs";
21
- import { _ as j } from "./index-740b2c4a.mjs";
22
- import "/@/utils/index";
23
- import "/@/utils/http/axios";
24
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
25
- import "vue-router";
26
- const q = N({
27
- name: "AuthButtonTree",
28
- props: {
29
- cgformId: { type: String, required: !0 }
30
- },
31
- setup(e) {
32
- const { createMessage: o, createSuccessModal: c } = $(), u = i(""), p = i(2), m = i(!0), l = i([]), n = i([]), r = i([]), d = i(""), C = w(() => !u.value);
33
- M(() => e.cgformId, y, { immediate: !0 });
34
- function y() {
35
- return h(this, null, function* () {
36
- if (!e.cgformId)
37
- return;
38
- let t = yield V(e.cgformId, p.value);
39
- t.forEach((a) => {
40
- for (const f of R)
41
- if (a.code == f.code) {
42
- a.title || (a.title = f.title);
43
- break;
44
- }
45
- });
46
- let s = [];
47
- for (let a of t) {
48
- let f = T(a);
49
- s.push({ key: a.id, title: f });
50
- }
51
- r.value = s;
52
- });
53
- }
54
- function D() {
55
- y(), _(u.value, d.value);
56
- }
57
- function _(t, s) {
58
- return h(this, null, function* () {
59
- u.value = t, d.value = s, n.value = [], yield y();
60
- let a = yield z({
61
- roleId: t,
62
- cgformId: e.cgformId,
63
- type: p.value,
64
- authMode: s
65
- });
66
- n.value = a.map((f) => f.authId);
67
- });
68
- }
69
- function K() {
70
- u.value = "", y();
71
- }
72
- function x() {
73
- return h(this, null, function* () {
74
- try {
75
- const { success: t, message: s, result: a } = yield L(u.value, e.cgformId, {
76
- authId: JSON.stringify(n.value),
77
- authMode: d.value
78
- });
79
- t ? Array.isArray(a == null ? void 0 : a.disabledNames) ? c({
80
- title: "保存成功",
81
- content: `由于以下按钮未激活,所以权限未生效。<br>${a.disabledNames.join("<br>")}`
82
- }) : o.success("保存成功") : o.error(s);
83
- } catch (t) {
84
- o.error("保存出现异常");
85
- }
86
- });
87
- }
88
- function T(t) {
89
- let s = t.title + "-";
90
- return t.code && t.code.includes("form_sub") ? s += "表单可见(附表)" : t.page == 3 ? s += "列表可见" : t.page == 5 && (s += "表单可见"), s;
91
- }
92
- function A(t) {
93
- l.value = t, m.value = !1;
94
- }
95
- function F() {
96
- u.value = "", n.value = [];
97
- }
98
- return {
99
- loadChecked: _,
100
- clear: F,
101
- expandedKeys: l,
102
- autoExpandParent: m,
103
- checkedKeys: n,
104
- treeData: r,
105
- disabled: C,
106
- onSave: x,
107
- onExpand: A,
108
- onRefresh: D,
109
- clearChecked: K
110
- };
111
- }
112
- });
113
- const J = { class: "onl-auth-tree-btns" };
114
- function O(e, o, c, u, p, m) {
115
- const l = g("a-empty"), n = g("a-button"), r = g("a-tree");
116
- return v(), b("div", null, [
117
- e.disabled ? (v(), E(l, {
118
- key: 0,
119
- description: "请先选中左侧角色/部门/用户"
120
- })) : e.treeData.length === 0 ? (v(), E(l, {
121
- key: 1,
122
- description: "无权限信息"
123
- })) : (v(), b(S, { key: 2 }, [
124
- P("div", J, [
125
- k(n, {
126
- onClick: e.onRefresh,
127
- size: "small",
128
- type: "primary",
129
- preIcon: "ant-design:redo",
130
- ghost: ""
131
- }, {
132
- default: I(() => o[1] || (o[1] = [
133
- B("刷新")
134
- ])),
135
- _: 1
136
- }, 8, ["onClick"]),
137
- k(n, {
138
- onClick: e.onSave,
139
- size: "small",
140
- type: "primary",
141
- preIcon: "ant-design:save",
142
- ghost: ""
143
- }, {
144
- default: I(() => o[2] || (o[2] = [
145
- B("保存")
146
- ])),
147
- _: 1
148
- }, 8, ["onClick"])
149
- ]),
150
- k(r, {
151
- checkable: "",
152
- checkedKeys: e.checkedKeys,
153
- "onUpdate:checkedKeys": o[0] || (o[0] = (d) => e.checkedKeys = d),
154
- expandedKeys: e.expandedKeys,
155
- autoExpandParent: e.autoExpandParent,
156
- treeData: e.treeData,
157
- onExpand: e.onExpand
158
- }, null, 8, ["checkedKeys", "expandedKeys", "autoExpandParent", "treeData", "onExpand"])
159
- ], 64))
160
- ]);
161
- }
162
- const ae = /* @__PURE__ */ j(q, [["render", O], ["__scopeId", "data-v-b62449eb"]]);
163
- export {
164
- ae as default
165
- };
@@ -1,139 +0,0 @@
1
- var f = (e, n, t) => new Promise((l, d) => {
2
- var i = (a) => {
3
- try {
4
- u(t.next(a));
5
- } catch (r) {
6
- d(r);
7
- }
8
- }, o = (a) => {
9
- try {
10
- u(t.throw(a));
11
- } catch (r) {
12
- d(r);
13
- }
14
- }, u = (a) => a.done ? l(a.value) : Promise.resolve(a.value).then(i, o);
15
- u((t = t.apply(e, n)).next());
16
- });
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
- import { useMessage as P } from "/@/hooks/web/useMessage";
19
- import { q as S, n as R, r as V } from "./auth.api-53df4c33.mjs";
20
- import { _ as $ } from "./index-740b2c4a.mjs";
21
- import "/@/utils/http/axios";
22
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
- import "vue-router";
24
- const q = A({
25
- name: "AuthDataTree",
26
- props: {
27
- cgformId: { type: String, required: !0 }
28
- },
29
- setup(e) {
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
- F(() => e.cgformId, m, { immediate: !0 });
32
- function m() {
33
- return f(this, null, function* () {
34
- if (!e.cgformId)
35
- return;
36
- let c = yield S(e.cgformId, l.value);
37
- u.value = c.map((p) => ({ key: p.id, title: p.ruleName }));
38
- });
39
- }
40
- function k(c, p) {
41
- return f(this, null, function* () {
42
- t.value = c, a.value = p, o.value = [], yield m();
43
- let T = yield R({
44
- roleId: c,
45
- cgformId: e.cgformId,
46
- type: l.value,
47
- authMode: p
48
- });
49
- o.value = T.map((w) => w.authId);
50
- });
51
- }
52
- function I() {
53
- t.value = "", m();
54
- }
55
- function C() {
56
- m(), k(t.value, a.value);
57
- }
58
- function K() {
59
- return f(this, null, function* () {
60
- yield V(t.value, e.cgformId, {
61
- authId: JSON.stringify(o.value),
62
- authMode: a.value
63
- }), n.success("保存成功");
64
- });
65
- }
66
- function b(c) {
67
- i.value = c, d.value = !1;
68
- }
69
- function x() {
70
- t.value = "", o.value = [];
71
- }
72
- return {
73
- loadChecked: k,
74
- clear: x,
75
- expandedKeys: i,
76
- autoExpandParent: d,
77
- checkedKeys: o,
78
- treeData: u,
79
- disabled: r,
80
- onSave: K,
81
- onExpand: b,
82
- onRefresh: C,
83
- clearChecked: I
84
- };
85
- }
86
- });
87
- const z = { class: "onl-auth-tree-btns" };
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
- key: 0,
93
- description: "请先选中左侧角色/部门/用户"
94
- })) : e.treeData.length === 0 ? (y(), _(o, {
95
- key: 1,
96
- description: "无权限信息"
97
- })) : (y(), g(N, { key: 2 }, [
98
- M("div", z, [
99
- h(u, {
100
- onClick: e.onRefresh,
101
- size: "small",
102
- type: "primary",
103
- preIcon: "ant-design:redo",
104
- ghost: ""
105
- }, {
106
- default: E(() => n[1] || (n[1] = [
107
- D("刷新")
108
- ])),
109
- _: 1
110
- }, 8, ["onClick"]),
111
- h(u, {
112
- onClick: e.onSave,
113
- size: "small",
114
- type: "primary",
115
- preIcon: "ant-design:save",
116
- ghost: ""
117
- }, {
118
- default: E(() => n[2] || (n[2] = [
119
- D("保存")
120
- ])),
121
- _: 1
122
- }, 8, ["onClick"])
123
- ]),
124
- h(a, {
125
- checkable: "",
126
- checkedKeys: e.checkedKeys,
127
- "onUpdate:checkedKeys": n[0] || (n[0] = (r) => e.checkedKeys = r),
128
- expandedKeys: e.expandedKeys,
129
- autoExpandParent: e.autoExpandParent,
130
- treeData: e.treeData,
131
- onExpand: e.onExpand
132
- }, null, 8, ["checkedKeys", "expandedKeys", "autoExpandParent", "treeData", "onExpand"])
133
- ], 64))
134
- ]);
135
- }
136
- const X = /* @__PURE__ */ $(q, [["render", J], ["__scopeId", "data-v-c6be2157"]]);
137
- export {
138
- X as default
139
- };