@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,349 +0,0 @@
1
- var ae = Object.defineProperty;
2
- var j = Object.getOwnPropertySymbols;
3
- var le = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
4
- var N = (i, a, r) => a in i ? ae(i, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[a] = r, V = (i, a) => {
5
- for (var r in a || (a = {}))
6
- le.call(a, r) && N(i, r, a[r]);
7
- if (j)
8
- for (var r of j(a))
9
- me.call(a, r) && N(i, r, a[r]);
10
- return i;
11
- };
12
- var k = (i, a, r) => new Promise((o, d) => {
13
- var u = (m) => {
14
- try {
15
- b(r.next(m));
16
- } catch (g) {
17
- d(g);
18
- }
19
- }, s = (m) => {
20
- try {
21
- b(r.throw(m));
22
- } catch (g) {
23
- d(g);
24
- }
25
- }, b = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(u, s);
26
- b((r = r.apply(i, a)).next());
27
- });
28
- import { useMessage as se } from "/@/hooks/web/useMessage";
29
- import { nextTick as ce, ref as c, reactive as R, watch as ue, resolveComponent as h, openBlock as p, createElementBlock as x, createVNode as w, createCommentVNode as I, createBlock as F, withCtx as U, Fragment as fe, renderList as pe, normalizeStyle as de, renderSlot as he } from "vue";
30
- import { Loading as be } from "/@/components/Loading";
31
- import { getToken as ge } from "/@/utils/auth";
32
- import { goJmReportViewPage as _e } from "/@/utils";
33
- import { PrinterOutlined as ye } from "@ant-design/icons-vue";
34
- import Se from "./DetailForm-7d4f630e.mjs";
35
- import Te from "./OnlineSubFormDetail-bbc48c3e.mjs";
36
- import { m as xe, u as Ce } from "./useExtendComponent-95ce0719.mjs";
37
- import { defHttp as ke } from "/@/utils/http/axios";
38
- import { E as we } from "./constant-fa63bd66.mjs";
39
- import { useAppInject as Fe } from "/@/hooks/web/useAppInject";
40
- import { buildShortUUID as Pe } from "/@/utils/uuid";
41
- import { _ as ve } from "./index-740b2c4a.mjs";
42
- import "/@/utils/propTypes";
43
- import "/@/utils/dict";
44
- import "/@/utils/dict/JDictSelectUtil";
45
- import "/@/utils/dict/index";
46
- import "/@/api/common/api";
47
- import "/@/components/Form/src/utils/Area";
48
- import "/@/utils/common/compUtils";
49
- import "/@/components/Preview/index";
50
- import "/@/components/Markdown";
51
- import "/@/components/Form/index";
52
- import "/@/components/Form/src/componentMap";
53
- import "/@/components/Modal";
54
- import "lodash-es";
55
- import "/@/components/Form/src/jeecg/components/JUpload";
56
- import "/@/utils/is";
57
- import "/@/views/system/user/user.api";
58
- import "/@/store/modules/user";
59
- import "/@/utils/desform/customExpression";
60
- import "/@/store/modules/permission";
61
- import "/@/components/Table";
62
- import "/@/hooks/system/useListPage";
63
- import "vue-router";
64
- import "./LinkTableListPiece-0f4ca559.mjs";
65
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
66
- import "/@/assets/images/placeholderImage.png";
67
- import "./OnlineSelectCascade-fab4426d.mjs";
68
- import "./JModalTip-c3e6726c.mjs";
69
- import "ant-design-vue";
70
- import "@vueuse/core";
71
- function De() {
72
- const i = {}, a = {
73
- setFieldsValue: "<m> 设置表单控件的值",
74
- getFieldsValue: "<m> 获取表单控件的值",
75
- sh: "<p> 表单控件的显示隐藏状态",
76
- isUpdate: "<p> 判断是否为编辑模式",
77
- isDetail: "<p> 判断是否为详情模式"
78
- }, r = new Proxy(a, {
79
- get(u, s) {
80
- return Reflect.get(i, s);
81
- }
82
- });
83
- function o(u, s) {
84
- i[u] = s;
85
- }
86
- function d(u) {
87
- Object.keys(u).map((s) => {
88
- i[s] = u[s];
89
- });
90
- }
91
- return o("$nextTick", ce), o("addObject2Context", o), { onlineFormDetailContext: r, addObject2Context: o, resetContext: d };
92
- }
93
- const Oe = {
94
- name: "OnlineFormDetail",
95
- components: {
96
- DetailForm: Se,
97
- Loading: be,
98
- PrinterOutlined: ye,
99
- OnlineSubFormDetail: Te
100
- },
101
- props: {
102
- id: {
103
- type: String,
104
- default: ""
105
- },
106
- formTemplate: {
107
- type: Number,
108
- default: 1
109
- },
110
- disabled: {
111
- type: Boolean,
112
- default: !1
113
- },
114
- isTree: {
115
- type: Boolean,
116
- default: !1
117
- },
118
- pidField: {
119
- type: String,
120
- default: ""
121
- },
122
- submitTip: {
123
- type: Boolean,
124
- default: !0
125
- },
126
- showSub: {
127
- type: Boolean,
128
- default: !0
129
- },
130
- themeTemplate: {
131
- type: String,
132
- default: ""
133
- }
134
- },
135
- emits: ["success", "rendered"],
136
- setup(i, { emit: a }) {
137
- const { createMessage: r } = se(), { getIsMobile: o } = Fe(), d = c(""), u = c(!0), s = c(!1), b = c(1), m = c({}), g = c(o.value ? "auto" : 300), P = c(340), v = c(!o.value);
138
- let _ = {};
139
- const y = R({}), l = R({
140
- reportPrintShow: 0,
141
- reportPrintUrl: "",
142
- joinQuery: 0,
143
- modelFullscreen: 0,
144
- modalMinWidth: ""
145
- }), { detailFormSchemas: S, hasSubTable: B, subTabInfo: M, refMap: H, showStatus: D, subDataSource: O, createFormSchemas: L, formSpan: K } = xe(i), z = c(Pe());
146
- function A(e) {
147
- let n = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
148
- e && (n = JSON.parse(e)), Object.keys(n).map((t) => {
149
- l[t] = n[t];
150
- });
151
- }
152
- const { onlineFormDetailContext: E, resetContext: Q } = De();
153
- let { EnhanceJS: C, initCgEnhanceJs: W } = Ce(E, !1);
154
- function X(e) {
155
- return k(this, null, function* () {
156
- b.value = e.head.tableType, d.value = e.head.tableName, u.value = e.head.tableType == 1, A(e.head.extConfigJson), L(e.schema.properties), C = W(e.enhanceJs), a("rendered", l);
157
- });
158
- }
159
- function q(e, n) {
160
- return k(this, null, function* () {
161
- yield Z(n), J(!0);
162
- });
163
- }
164
- function G(e) {
165
- let n = `/online/cgform/api/detail/${i.id}/${e}`;
166
- return new Promise((t, f) => {
167
- ke.get({ url: n }, { isTransformResponse: !1 }).then((T) => {
168
- T.success ? t(T.result) : (f(), r.warning(T.message));
169
- }).catch(() => {
170
- f();
171
- });
172
- });
173
- }
174
- function J(e) {
175
- Object.keys(D).map((n) => {
176
- D[n] = e;
177
- });
178
- }
179
- function Y() {
180
- J(!1), setTimeout(() => {
181
- J(!0);
182
- }, 300);
183
- }
184
- function Z(e) {
185
- return k(this, null, function* () {
186
- _ = yield G(e.id), S.value.filter((t) => t.hidden).forEach((t) => t.hidden = !1), Object.keys(y).forEach(function(t) {
187
- delete y[t];
188
- }), re({ buttonCode: "loaded" }), m.value = V({}, _), $(_);
189
- });
190
- }
191
- function $(e) {
192
- e || (e = {});
193
- let n = Object.keys(O.value);
194
- if (n && n.length > 0) {
195
- let t = {};
196
- for (let f of n)
197
- t[f] = e[f] || [];
198
- O.value = t;
199
- }
200
- }
201
- function ee(e) {
202
- return "online_" + e + ":";
203
- }
204
- function te() {
205
- let e = l.reportPrintUrl, n = m.value;
206
- if (n) {
207
- let t = n.id, f = ge();
208
- _e(e, t, f);
209
- }
210
- }
211
- function oe(e) {
212
- let n = m.value, t = ne(n, e);
213
- return t && (t = t + "__" + z.value), t;
214
- }
215
- function ne(e, n) {
216
- if (e) {
217
- let t = e[n];
218
- return !t && t !== 0 && (t = e[n.toLowerCase()], !t && t !== 0 && (t = e[n.toUpperCase()])), t;
219
- }
220
- return "";
221
- }
222
- function re({ buttonCode: e }) {
223
- C && C[e] && C[e].call(E, E);
224
- }
225
- ue(y, (e) => {
226
- Object.entries(e).forEach(([n, t]) => {
227
- if (t == !1) {
228
- const f = S.value.find((T) => T.field === n);
229
- f && (f.hidden = !0);
230
- }
231
- });
232
- });
233
- const ie = {
234
- setFieldsValue: (e) => {
235
- Object.entries(e).forEach(([n, t]) => {
236
- _[n] = t;
237
- });
238
- },
239
- getFieldsValue: () => V({}, _),
240
- sh: y,
241
- isUpdate: c(!1),
242
- isDetail: c(!0)
243
- };
244
- return Q(ie), {
245
- detailFormSchemas: S,
246
- formData: m,
247
- formSpan: K,
248
- //主表
249
- tableName: d,
250
- loading: s,
251
- //子表
252
- hasSubTable: B,
253
- subTabInfo: M,
254
- subFormHeight: g,
255
- subTableHeight: P,
256
- refMap: H,
257
- onTabChange: Y,
258
- //一对多子表
259
- subDataSource: O,
260
- getSubTableAuthPre: ee,
261
- //父组件调用
262
- show: q,
263
- createRootProperties: X,
264
- // 扩展配置
265
- onOpenReportPrint: te,
266
- onlineExtConfigJson: l,
267
- getSubTableForeignKeyValue: oe,
268
- showStatus: D,
269
- ERP: we,
270
- rowNumber: v
271
- };
272
- }
273
- }, Ee = ["id"], Je = {
274
- key: 0,
275
- style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
276
- }, Ve = { key: 1 };
277
- function je(i, a, r, o, d, u) {
278
- const s = h("PrinterOutlined"), b = h("detail-form"), m = h("online-sub-form-detail"), g = h("JVxeTable"), P = h("a-spin"), v = h("a-tab-pane"), _ = h("a-tabs"), y = h("Loading");
279
- return p(), x("div", {
280
- id: o.tableName + "_form"
281
- }, [
282
- o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (p(), x("div", Je, [
283
- w(s, {
284
- title: "打印",
285
- onClick: o.onOpenReportPrint,
286
- style: { "font-size": "16px" }
287
- }, null, 8, ["onClick"])
288
- ])) : I("", !0),
289
- w(b, {
290
- schemas: o.detailFormSchemas,
291
- data: o.formData,
292
- span: o.formSpan
293
- }, null, 8, ["schemas", "data", "span"]),
294
- r.themeTemplate !== o.ERP && o.hasSubTable && r.showSub ? (p(), F(_, {
295
- key: 1,
296
- onChange: o.onTabChange
297
- }, {
298
- default: U(() => [
299
- (p(!0), x(fe, null, pe(o.subTabInfo, (l, S) => (p(), F(v, {
300
- tab: l.describe,
301
- key: S + "",
302
- forceRender: !0
303
- }, {
304
- default: U(() => [
305
- l.relationType == 1 ? (p(), x("div", {
306
- key: 0,
307
- style: de({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
308
- }, [
309
- w(m, {
310
- table: l.key,
311
- "form-template": r.formTemplate,
312
- "main-id": o.getSubTableForeignKeyValue(l.foreignKey),
313
- properties: l.properties
314
- }, null, 8, ["table", "form-template", "main-id", "properties"])
315
- ], 4)) : (p(), x("div", Ve, [
316
- o.showStatus[l.key] ? (p(), F(g, {
317
- key: 0,
318
- ref_for: !0,
319
- ref: o.refMap[l.key],
320
- "keep-source": "",
321
- "row-number": o.rowNumber,
322
- "row-selection": "",
323
- height: o.subTableHeight,
324
- disabled: !0,
325
- columns: l.columns,
326
- dataSource: o.subDataSource[l.key],
327
- authPre: o.getSubTableAuthPre(l.key)
328
- }, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (p(), F(P, {
329
- key: 1,
330
- spinning: !0
331
- }))
332
- ]))
333
- ]),
334
- _: 2
335
- }, 1032, ["tab"]))), 128))
336
- ]),
337
- _: 1
338
- }, 8, ["onChange"])) : I("", !0),
339
- w(y, {
340
- loading: o.loading,
341
- absolute: !1
342
- }, null, 8, ["loading"]),
343
- he(i.$slots, "bottom")
344
- ], 8, Ee);
345
- }
346
- const wt = /* @__PURE__ */ ve(Oe, [["render", je]]);
347
- export {
348
- wt as default
349
- };
@@ -1,116 +0,0 @@
1
- import { defineComponent as x, ref as r, unref as o, watch as F, openBlock as l, createElementBlock as E, normalizeClass as u, createVNode as c, withCtx as d, createElementVNode as y, createCommentVNode as f, createBlock as A } from "vue";
2
- import { Card as O, Spin as R } from "ant-design-vue";
3
- import { useMessage as T } from "/@/hooks/web/useMessage";
4
- import "/@/components/Form/index";
5
- import "/@/utils/http/axios";
6
- import "lodash-es";
7
- import "/@/utils";
8
- import { u as U } from "./useExtendComponent-95ce0719.mjs";
9
- import "/@/components/Loading";
10
- import "/@/components/jeecg/JVxeTable/types";
11
- import "/@/utils/auth";
12
- import "@ant-design/icons-vue";
13
- import "/@/hooks/core/useContext";
14
- import "/@/utils/mitt";
15
- import "/@/components/Modal";
16
- import "/@/utils/cache";
17
- import "/@/utils/common/compUtils";
18
- import "/@/store/modules/user";
19
- import "/@/hooks/web/useAppInject";
20
- import "/@/utils/is";
21
- import "/@/store/modules/permission";
22
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
23
- import b from "./OnlineAutoModal-a0d1a6b8.mjs";
24
- import { u as B, a as I } from "./useListButton-73071548.mjs";
25
- import { useRouter as M } from "vue-router";
26
- import { u as S } from "./useFormUrl-2ee1a82d.mjs";
27
- import { _ as D } from "./index-740b2c4a.mjs";
28
- import "/@/components/Form/src/componentMap";
29
- import "/@/utils/propTypes";
30
- import "./constant-fa63bd66.mjs";
31
- import "/@/components/Form/src/jeecg/components/JUpload";
32
- import "/@/views/system/user/user.api";
33
- import "/@/utils/desform/customExpression";
34
- import "/@/utils/dict/JDictSelectUtil";
35
- import "/@/components/Table";
36
- import "/@/hooks/system/useListPage";
37
- import "/@/components/Form/src/utils/Area";
38
- import "/@/components/Preview/index";
39
- import "./LinkTableListPiece-0f4ca559.mjs";
40
- import "/@/api/common/api";
41
- import "/@/assets/images/placeholderImage.png";
42
- import "./OnlineSelectCascade-fab4426d.mjs";
43
- import "./JModalTip-c3e6726c.mjs";
44
- import "@vueuse/core";
45
- import "./OnlineForm-86b5966d.mjs";
46
- import "./useCustomHook-3a17a690.mjs";
47
- import "/@/components/jeecg/comment/CommentPanel.vue";
48
- import "/@/router";
49
- import "/@/hooks/core/onMountedOrActivated";
50
- import "/@/store/modules/multipleTab";
51
- import "./cgformState-d9f8ec42.mjs";
52
- import "pinia";
53
- import "/@/store";
54
- import "/@/router/menus";
55
- import "/@/hooks/system/useMethods";
56
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
57
- const N = /* @__PURE__ */ x({
58
- __name: "OnlineFormUrlAdd",
59
- setup(V) {
60
- const { ID: e, onlineTableContext: i, onlineExtConfigJson: _, handleFormConfig: g } = B(), { createMessage: h } = T(), n = r(null), m = r(400), p = r(!0), C = M(), { token: s } = S();
61
- if (!o(s))
62
- throw new Error("token不存在~");
63
- if (!e.value)
64
- throw h.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
65
- U(i), F(
66
- () => n.value,
67
- (t) => {
68
- m.value = t.offsetHeight - 60;
69
- }
70
- );
71
- const { registerModal: v, handleAdd: a } = I(i, _), w = (t) => document.querySelector(`.online-add-${e.value}`), k = () => {
72
- setTimeout(() => {
73
- a(!1), setTimeout(() => {
74
- C.push({ path: "/online/formUrlSuccess" });
75
- }, 1e3);
76
- }, 0);
77
- };
78
- return setTimeout(() => {
79
- a(!1), p.value = !1;
80
- }, 1e3), (t, $) => (l(), E("div", {
81
- class: u([["p-2"], "online-wrap"])
82
- }, [
83
- c(o(O), { bordered: !1 }, {
84
- default: d(() => [
85
- c(o(R), { spinning: p.value }, {
86
- default: d(() => [
87
- y("div", {
88
- class: u(["wrap", `online-add-${o(e)}`]),
89
- ref_key: "wrapRef",
90
- ref: n
91
- }, [
92
- f("", !0),
93
- o(s) ? (l(), A(b, {
94
- key: 1,
95
- id: o(e),
96
- maskClosable: !1,
97
- onRegister: o(v),
98
- getContainer: w,
99
- onFormConfig: o(g),
100
- onSuccess: k,
101
- height: m.value
102
- }, null, 8, ["id", "onRegister", "onFormConfig", "height"])) : f("", !0)
103
- ], 2)
104
- ]),
105
- _: 1
106
- }, 8, ["spinning"])
107
- ]),
108
- _: 1
109
- })
110
- ]));
111
- }
112
- });
113
- const Jo = /* @__PURE__ */ D(N, [["__scopeId", "data-v-4a0277d5"]]);
114
- export {
115
- Jo as default
116
- };
@@ -1,121 +0,0 @@
1
- import { defineComponent as C, ref as r, unref as t, watch as D, openBlock as l, createElementBlock as k, normalizeClass as u, createVNode as c, withCtx as d, createElementVNode as x, createCommentVNode as f, createBlock as b } from "vue";
2
- import { Card as E, Spin as I } from "ant-design-vue";
3
- import { useMessage as y } from "/@/hooks/web/useMessage";
4
- import "/@/components/Form/index";
5
- import "/@/utils/http/axios";
6
- import "lodash-es";
7
- import "/@/utils";
8
- import { u as M } from "./useExtendComponent-95ce0719.mjs";
9
- import "/@/components/Loading";
10
- import "/@/components/jeecg/JVxeTable/types";
11
- import "/@/utils/auth";
12
- import "@ant-design/icons-vue";
13
- import "/@/hooks/core/useContext";
14
- import "/@/utils/mitt";
15
- import "/@/components/Modal";
16
- import "/@/utils/cache";
17
- import "/@/utils/common/compUtils";
18
- import "/@/store/modules/user";
19
- import "/@/hooks/web/useAppInject";
20
- import "/@/utils/is";
21
- import "/@/store/modules/permission";
22
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
23
- import { useRoute as O } from "vue-router";
24
- import R from "./OnlineDetailModal-35394778.mjs";
25
- import { u as S, a as U } from "./useListButton-73071548.mjs";
26
- import { u as B } from "./useFormUrl-2ee1a82d.mjs";
27
- import { _ as F } from "./index-740b2c4a.mjs";
28
- import "/@/components/Form/src/componentMap";
29
- import "/@/utils/propTypes";
30
- import "./constant-fa63bd66.mjs";
31
- import "/@/components/Form/src/jeecg/components/JUpload";
32
- import "/@/views/system/user/user.api";
33
- import "/@/utils/desform/customExpression";
34
- import "/@/utils/dict/JDictSelectUtil";
35
- import "/@/components/Table";
36
- import "/@/hooks/system/useListPage";
37
- import "/@/components/Form/src/utils/Area";
38
- import "/@/components/Preview/index";
39
- import "./LinkTableListPiece-0f4ca559.mjs";
40
- import "/@/api/common/api";
41
- import "/@/assets/images/placeholderImage.png";
42
- import "./OnlineSelectCascade-fab4426d.mjs";
43
- import "./JModalTip-c3e6726c.mjs";
44
- import "@vueuse/core";
45
- import "./OnlineFormDetail-4b3ad130.mjs";
46
- import "./DetailForm-7d4f630e.mjs";
47
- import "/@/utils/dict";
48
- import "/@/utils/dict/index";
49
- import "/@/components/Markdown";
50
- import "./OnlineSubFormDetail-bbc48c3e.mjs";
51
- import "/@/utils/uuid";
52
- import "/@/components/jeecg/comment/CommentPanel.vue";
53
- import "/@/router";
54
- import "./useCustomHook-3a17a690.mjs";
55
- import "/@/hooks/core/onMountedOrActivated";
56
- import "/@/store/modules/multipleTab";
57
- import "./cgformState-d9f8ec42.mjs";
58
- import "pinia";
59
- import "/@/store";
60
- import "/@/router/menus";
61
- import "/@/hooks/system/useMethods";
62
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
63
- const N = /* @__PURE__ */ C({
64
- __name: "OnlineFormUrlDetail",
65
- setup(T) {
66
- const i = O(), { ID: e, onlineTableContext: m, onlineExtConfigJson: _ } = S(), { createMessage: g } = y(), p = r(null), n = r(400), a = r(!0), { token: s } = B();
67
- if (!t(s))
68
- throw new Error("token不存在~");
69
- if (!e.value || !i.params.dataId)
70
- throw g.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
71
- D(
72
- () => p.value,
73
- (o) => {
74
- n.value = o.offsetHeight;
75
- }
76
- ), M(m);
77
- const { registerDetailModal: h, openDetailModal: v } = U(m, _), w = (o) => document.querySelector(`.online-detail-${e.value}`);
78
- return setTimeout(() => {
79
- v(!0, {
80
- isUpdate: !0,
81
- disableSubmit: !0,
82
- record: {
83
- id: i.params.dataId
84
- }
85
- }), a.value = !1;
86
- }, 1e3), (o, V) => (l(), k("div", {
87
- class: u([["p-2"], "online-wrap"])
88
- }, [
89
- c(t(E), { bordered: !1 }, {
90
- default: d(() => [
91
- c(t(I), { spinning: a.value }, {
92
- default: d(() => [
93
- x("div", {
94
- class: u(["wrap", `online-detail-${t(e)}`]),
95
- ref_key: "wrapRef",
96
- ref: p
97
- }, [
98
- f("", !0),
99
- t(s) ? (l(), b(R, {
100
- key: 1,
101
- id: t(e),
102
- maskClosable: !1,
103
- onRegister: t(h),
104
- onSuccess: o.success,
105
- getContainer: w,
106
- height: n.value
107
- }, null, 8, ["id", "onRegister", "onSuccess", "height"])) : f("", !0)
108
- ], 2)
109
- ]),
110
- _: 1
111
- }, 8, ["spinning"])
112
- ]),
113
- _: 1
114
- })
115
- ]));
116
- }
117
- });
118
- const Gt = /* @__PURE__ */ F(N, [["__scopeId", "data-v-cea77271"]]);
119
- export {
120
- Gt as default
121
- };