@jeecg/online 3.9.0-beta → 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 (171) hide show
  1. package/{AccountLoginForm-cbc75a49.mjs → AccountLoginForm-BXyvcSds.mjs} +50 -53
  2. package/{AiModal-5bec5218.mjs → AiModal-BgVzn074.mjs} +18 -20
  3. package/{AppForgetPassword-dbc8377e.mjs → AppForgetPassword-B-2CvL62.mjs} +59 -63
  4. package/AppLogin-BMBmx2oq.mjs +272 -0
  5. package/AppLoginHeader-BtKXOMRR.mjs +23 -0
  6. package/{AppNameEmail-7c6a1406.mjs → AppNameEmail-DCqMNjaK.mjs} +20 -24
  7. package/{AppRegister-29a00a9d.mjs → AppRegister-C5iH-245.mjs} +33 -37
  8. package/{AppTenant-92890383.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-c978c469.mjs → AuthDataConfig-uQ5WT7rx.mjs} +57 -62
  13. package/AuthDataTree-Cr28_YKx.mjs +134 -0
  14. package/{AuthFieldConfig-558283bc.mjs → AuthFieldConfig-DjdaPIXF.mjs} +95 -101
  15. package/{AuthFieldTree-106db4e2.mjs → AuthFieldTree-DHmnDQ0I.mjs} +94 -99
  16. package/AuthManagerDrawer-DUb6QylS.mjs +108 -0
  17. package/{AuthSetterModal-90a76886.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-690b8940.mjs → CgformAddressModal-BVoww1fk.mjs} +57 -63
  21. package/CgformCopyList-7e96RMbJ.mjs +176 -0
  22. package/{CgformModal-b04a492a.mjs → CgformModal-RH-Tr08S.mjs} +240 -241
  23. package/{CgreportAigcModal-8fdcbd31.mjs → CgreportAigcModal-rEfIpPF9.mjs} +35 -38
  24. package/{CgreportModal-da62724c.mjs → CgreportModal-Bajb_3ku.mjs} +49 -50
  25. package/{CheckDictTable-7320189b.mjs → CheckDictTable-BxJFrctQ.mjs} +44 -52
  26. package/{CodeFileListModal-e5ec210d.mjs → CodeFileListModal-C3uqsFvi.mjs} +32 -36
  27. package/{CodeFileViewModal-09053f3a.mjs → CodeFileViewModal-bEtZDbAY.mjs} +78 -81
  28. package/CodeGeneratorModal-ZWEIXRbY.mjs +291 -0
  29. package/{CustomButtonList-704e6d1c.mjs → CustomButtonList-7wjonhtu.mjs} +82 -85
  30. package/{DBAttributeTable-4a65c897.mjs → DBAttributeTable-DA2XttIQ.mjs} +50 -60
  31. package/{DbToOnlineModal-cc398c70.mjs → DbToOnlineModal-CDVqmEJH.mjs} +43 -45
  32. package/DetailForm-CnfJBMys.mjs +472 -0
  33. package/{DropMenuItem-884f9464.mjs → DropMenuItem-D8YWMle-.mjs} +8 -11
  34. package/EnhanceJavaModal-W8_oGY-U.mjs +255 -0
  35. package/{EnhanceJsHistory-95ca545c.mjs → EnhanceJsHistory-ZzXedCNI.mjs} +48 -49
  36. package/{EnhanceJsModal-742b0ee2.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-fe7f7902.mjs → FieldExtendJsonModal-Bvmbb6yd.mjs} +27 -30
  42. package/{FileSelectModal-cf41604b.mjs → FileSelectModal-DXqL5msQ.mjs} +27 -31
  43. package/{ForeignKeyTable-4a59ded1.mjs → ForeignKeyTable-D6AlLbfd.mjs} +17 -25
  44. package/{IndexTable-87d67830.mjs → IndexTable-B7ef6Aox.mjs} +9 -17
  45. package/JModalTip-DHrn6ksJ.mjs +46 -0
  46. package/{JOnlineSearchSelect-d8c57973.mjs → JOnlineSearchSelect-CAv2Dm9V.mjs} +21 -23
  47. package/{LeftDepart-463bf432.mjs → LeftDepart-BC1jpYJP.mjs} +8 -11
  48. package/{LeftRole-1631d3d4.mjs → LeftRole-sq_2p6Qk.mjs} +16 -19
  49. package/{LeftUser-5774a5db.mjs → LeftUser-CYh4PBgd.mjs} +7 -10
  50. package/{LinkTableConfigModal-1bab1423.mjs → LinkTableConfigModal-BOWs0A5-.mjs} +38 -40
  51. package/{LinkTableFieldConfigModal-49470140.mjs → LinkTableFieldConfigModal-D7FTBP3E.mjs} +50 -52
  52. package/LinkTableListPiece-Bfu6vfo0.mjs +31 -0
  53. package/{ModalFormDemo-dbd0aa28.mjs → ModalFormDemo-C1qQT6lj.mjs} +13 -16
  54. package/{OnlCgformErpList-35ad1d6e.mjs → OnlCgformErpList-CavWG8GK.mjs} +139 -200
  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-5153f09d.mjs → OnlineAutoTreeList-LDE9Sm7X.mjs} +124 -182
  62. package/OnlineCustomModal-Jz4MxkH0.mjs +209 -0
  63. package/OnlineDetailModal-So0YEah1.mjs +160 -0
  64. package/{OnlineForm-20604e4f.mjs → OnlineForm-CvcbzRIZ.mjs} +47 -74
  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-302ecb21.mjs → OnlineFormUrlSuccess-Cvbte2lW.mjs} +27 -30
  70. package/{OnlineQueryForm-5eeceb51.mjs → OnlineQueryForm-6E1IRi95.mjs} +139 -168
  71. package/{OnlineSearchFormItem-5536a1a6.mjs → OnlineSearchFormItem-CdRuXQPu.mjs} +112 -118
  72. package/{OnlineSelectCascade-180e8c9a.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-827e7089.mjs → OnlineTabForm-Cg3_IX2H.mjs} +228 -254
  77. package/OnlineTabFormDetail-BgFkUkva.mjs +299 -0
  78. package/{PageAttributeTable-5703e2f1.mjs → PageAttributeTable-C803SekP.mjs} +46 -59
  79. package/{PhoneLoginForm-15dc68ed.mjs → PhoneLoginForm-8a0Uehov.mjs} +40 -43
  80. package/ProcessOnlineForm-COeEaGc8.mjs +182 -0
  81. package/{QueryTable-26c9ee22.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-d1597c0d.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-914483d0.mjs → SingleView.vue_vue_type_style_index_0_lang-D3QcMcYT.mjs} +27 -27
  89. package/{SuperQuery-c95f86ee.mjs → SuperQuery-CgkajEWI.mjs} +342 -371
  90. package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
  91. package/TaskOpinionList-C8rcU6ee.mjs +10 -0
  92. package/{aiModal-b44fa135.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-02f6dc7d.mjs → index-B1H394jP.mjs} +35 -38
  96. package/index-CXD6__bJ.mjs +195 -0
  97. package/{index-abbfd327.mjs → index-DIjQbz6A.mjs} +37 -41
  98. package/{index-30da2fc0.mjs → index-Dbr1qL3H.mjs} +474 -609
  99. package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
  100. package/{index-391aec04.mjs → index-pGbTziKP.mjs} +32 -44
  101. package/{index-22a99f2e.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-aaa30c8c.mjs → useCgformList-_o9GP7ca.mjs} +3 -3
  106. package/useExtendComponent-P9wrWQwT.mjs +4479 -0
  107. package/{useListButton-308458cd.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-786949d3.mjs +0 -287
  112. package/AppLoginHeader-37034b2f.mjs +0 -27
  113. package/AppThirdForm-760064e5.mjs +0 -189
  114. package/AuthButtonConfig-78180aec.mjs +0 -160
  115. package/AuthButtonTree-62c8e70c.mjs +0 -165
  116. package/AuthDataTree-0647a06c.mjs +0 -139
  117. package/AuthManagerDrawer-ec5190d2.mjs +0 -119
  118. package/BuiltInButtonList-bb6cf95c.mjs +0 -10
  119. package/CgformCopyList-af9c99a4.mjs +0 -260
  120. package/CodeGeneratorModal-aba790e3.mjs +0 -298
  121. package/DetailForm-a2bf8c33.mjs +0 -498
  122. package/EnhanceJavaModal-fe8d475d.mjs +0 -264
  123. package/EnhanceSqlModal-6e36bc4f.mjs +0 -268
  124. package/ErrorTip-bb616e32.mjs +0 -7
  125. package/ExtendConfigModal-74d657c7.mjs +0 -117
  126. package/JModalTip-5401f43d.mjs +0 -49
  127. package/LinkTableListPiece-47f4286c.mjs +0 -34
  128. package/OnlCgformErpSubTable-5093d438.mjs +0 -444
  129. package/OnlCgformInnerSubTable-f1dc90db.mjs +0 -270
  130. package/OnlCgformInnerTableList-1b82a7da.mjs +0 -482
  131. package/OnlCgformTabList-d66d1261.mjs +0 -432
  132. package/OnlineAutoList-fbba2a52.mjs +0 -559
  133. package/OnlineAutoModal-68909692.mjs +0 -261
  134. package/OnlineCustomModal-b5f8c799.mjs +0 -247
  135. package/OnlineDetailModal-ac078a9a.mjs +0 -199
  136. package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
  137. package/OnlineFormDetail-719118b6.mjs +0 -350
  138. package/OnlineFormUrlAdd-5b675f48.mjs +0 -117
  139. package/OnlineFormUrlDetail-91156bf2.mjs +0 -122
  140. package/OnlineFormUrlEdit-fb810de6.mjs +0 -115
  141. package/OnlineSubFormDetail-4d64e7be.mjs +0 -148
  142. package/OnlineTabAutoModal-c127ed50.mjs +0 -320
  143. package/OnlineTabDetailModal-e4e9f7e3.mjs +0 -227
  144. package/OnlineTabFormDetail-0f96377e.mjs +0 -329
  145. package/ProcessOnlineForm-1fcbe0af.mjs +0 -219
  146. package/SetSwitchOptions-a3428177.mjs +0 -62
  147. package/ShareAddView-0512e884.mjs +0 -89
  148. package/ShareEditView-b89dfbd3.mjs +0 -95
  149. package/ShareView-faf1a0ab.mjs +0 -83
  150. package/SingleView-21d3a558.mjs +0 -71
  151. package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
  152. package/TaskOpinionList-73ecb3c8.mjs +0 -101
  153. package/dayjs.min-eea532a3.mjs +0 -301
  154. package/index-26940246.mjs +0 -219
  155. package/index-94b6319e.mjs +0 -57
  156. package/style.css +0 -1
  157. package/useExtendComponent-ad499dff.mjs +0 -4164
  158. /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
  159. /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
  160. /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
  161. /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
  162. /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
  163. /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
  164. /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
  165. /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
  166. /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
  167. /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
  168. /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
  169. /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
  170. /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
  171. /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
@@ -1,350 +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-a2bf8c33.mjs";
35
- import Te from "./OnlineSubFormDetail-4d64e7be.mjs";
36
- import { k as xe, u as Ce } from "./useExtendComponent-ad499dff.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-94b6319e.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 "./dayjs.min-eea532a3.mjs";
59
- import "/@/store/modules/user";
60
- import "/@/utils/desform/customExpression";
61
- import "/@/store/modules/permission";
62
- import "/@/components/Table";
63
- import "/@/hooks/system/useListPage";
64
- import "vue-router";
65
- import "./LinkTableListPiece-47f4286c.mjs";
66
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
67
- import "/@/assets/images/placeholderImage.png";
68
- import "./OnlineSelectCascade-180e8c9a.mjs";
69
- import "./JModalTip-5401f43d.mjs";
70
- import "ant-design-vue";
71
- import "@vueuse/core";
72
- function De() {
73
- const i = {}, a = {
74
- setFieldsValue: "<m> 设置表单控件的值",
75
- getFieldsValue: "<m> 获取表单控件的值",
76
- sh: "<p> 表单控件的显示隐藏状态",
77
- isUpdate: "<p> 判断是否为编辑模式",
78
- isDetail: "<p> 判断是否为详情模式"
79
- }, r = new Proxy(a, {
80
- get(u, s) {
81
- return Reflect.get(i, s);
82
- }
83
- });
84
- function o(u, s) {
85
- i[u] = s;
86
- }
87
- function d(u) {
88
- Object.keys(u).map((s) => {
89
- i[s] = u[s];
90
- });
91
- }
92
- return o("$nextTick", ce), o("addObject2Context", o), { onlineFormDetailContext: r, addObject2Context: o, resetContext: d };
93
- }
94
- const Oe = {
95
- name: "OnlineFormDetail",
96
- components: {
97
- DetailForm: Se,
98
- Loading: be,
99
- PrinterOutlined: ye,
100
- OnlineSubFormDetail: Te
101
- },
102
- props: {
103
- id: {
104
- type: String,
105
- default: ""
106
- },
107
- formTemplate: {
108
- type: Number,
109
- default: 1
110
- },
111
- disabled: {
112
- type: Boolean,
113
- default: !1
114
- },
115
- isTree: {
116
- type: Boolean,
117
- default: !1
118
- },
119
- pidField: {
120
- type: String,
121
- default: ""
122
- },
123
- submitTip: {
124
- type: Boolean,
125
- default: !0
126
- },
127
- showSub: {
128
- type: Boolean,
129
- default: !0
130
- },
131
- themeTemplate: {
132
- type: String,
133
- default: ""
134
- }
135
- },
136
- emits: ["success", "rendered"],
137
- setup(i, { emit: a }) {
138
- 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);
139
- let _ = {};
140
- const y = R({}), l = R({
141
- reportPrintShow: 0,
142
- reportPrintUrl: "",
143
- joinQuery: 0,
144
- modelFullscreen: 0,
145
- modalMinWidth: ""
146
- }), { detailFormSchemas: S, hasSubTable: B, subTabInfo: M, refMap: H, showStatus: D, subDataSource: O, createFormSchemas: L, formSpan: K } = xe(i), z = c(Pe());
147
- function A(e) {
148
- let n = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
149
- e && (n = JSON.parse(e)), Object.keys(n).map((t) => {
150
- l[t] = n[t];
151
- });
152
- }
153
- const { onlineFormDetailContext: E, resetContext: Q } = De();
154
- let { EnhanceJS: C, initCgEnhanceJs: W } = Ce(E, !1);
155
- function X(e) {
156
- return k(this, null, function* () {
157
- 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);
158
- });
159
- }
160
- function q(e, n) {
161
- return k(this, null, function* () {
162
- yield Z(n), J(!0);
163
- });
164
- }
165
- function G(e) {
166
- let n = `/online/cgform/api/detail/${i.id}/${e}`;
167
- return new Promise((t, f) => {
168
- ke.get({ url: n }, { isTransformResponse: !1 }).then((T) => {
169
- T.success ? t(T.result) : (f(), r.warning(T.message));
170
- }).catch(() => {
171
- f();
172
- });
173
- });
174
- }
175
- function J(e) {
176
- Object.keys(D).map((n) => {
177
- D[n] = e;
178
- });
179
- }
180
- function Y() {
181
- J(!1), setTimeout(() => {
182
- J(!0);
183
- }, 300);
184
- }
185
- function Z(e) {
186
- return k(this, null, function* () {
187
- _ = yield G(e.id), S.value.filter((t) => t.hidden).forEach((t) => t.hidden = !1), Object.keys(y).forEach(function(t) {
188
- delete y[t];
189
- }), re({ buttonCode: "loaded" }), m.value = V({}, _), $(_);
190
- });
191
- }
192
- function $(e) {
193
- e || (e = {});
194
- let n = Object.keys(O.value);
195
- if (n && n.length > 0) {
196
- let t = {};
197
- for (let f of n)
198
- t[f] = e[f] || [];
199
- O.value = t;
200
- }
201
- }
202
- function ee(e) {
203
- return "online_" + e + ":";
204
- }
205
- function te() {
206
- let e = l.reportPrintUrl, n = m.value;
207
- if (n) {
208
- let t = n.id, f = ge();
209
- _e(e, t, f);
210
- }
211
- }
212
- function oe(e) {
213
- let n = m.value, t = ne(n, e);
214
- return t && (t = t + "__" + z.value), t;
215
- }
216
- function ne(e, n) {
217
- if (e) {
218
- let t = e[n];
219
- return !t && t !== 0 && (t = e[n.toLowerCase()], !t && t !== 0 && (t = e[n.toUpperCase()])), t;
220
- }
221
- return "";
222
- }
223
- function re({ buttonCode: e }) {
224
- C && C[e] && C[e].call(E, E);
225
- }
226
- ue(y, (e) => {
227
- Object.entries(e).forEach(([n, t]) => {
228
- if (t == !1) {
229
- const f = S.value.find((T) => T.field === n);
230
- f && (f.hidden = !0);
231
- }
232
- });
233
- });
234
- const ie = {
235
- setFieldsValue: (e) => {
236
- Object.entries(e).forEach(([n, t]) => {
237
- _[n] = t;
238
- });
239
- },
240
- getFieldsValue: () => V({}, _),
241
- sh: y,
242
- isUpdate: c(!1),
243
- isDetail: c(!0)
244
- };
245
- return Q(ie), {
246
- detailFormSchemas: S,
247
- formData: m,
248
- formSpan: K,
249
- //主表
250
- tableName: d,
251
- loading: s,
252
- //子表
253
- hasSubTable: B,
254
- subTabInfo: M,
255
- subFormHeight: g,
256
- subTableHeight: P,
257
- refMap: H,
258
- onTabChange: Y,
259
- //一对多子表
260
- subDataSource: O,
261
- getSubTableAuthPre: ee,
262
- //父组件调用
263
- show: q,
264
- createRootProperties: X,
265
- // 扩展配置
266
- onOpenReportPrint: te,
267
- onlineExtConfigJson: l,
268
- getSubTableForeignKeyValue: oe,
269
- showStatus: D,
270
- ERP: we,
271
- rowNumber: v
272
- };
273
- }
274
- }, Ee = ["id"], Je = {
275
- key: 0,
276
- style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
277
- }, Ve = { key: 1 };
278
- function je(i, a, r, o, d, u) {
279
- 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");
280
- return p(), x("div", {
281
- id: o.tableName + "_form"
282
- }, [
283
- o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (p(), x("div", Je, [
284
- w(s, {
285
- title: "打印",
286
- onClick: o.onOpenReportPrint,
287
- style: { "font-size": "16px" }
288
- }, null, 8, ["onClick"])
289
- ])) : I("", !0),
290
- w(b, {
291
- schemas: o.detailFormSchemas,
292
- data: o.formData,
293
- span: o.formSpan
294
- }, null, 8, ["schemas", "data", "span"]),
295
- r.themeTemplate !== o.ERP && o.hasSubTable && r.showSub ? (p(), F(_, {
296
- key: 1,
297
- onChange: o.onTabChange
298
- }, {
299
- default: U(() => [
300
- (p(!0), x(fe, null, pe(o.subTabInfo, (l, S) => (p(), F(v, {
301
- tab: l.describe,
302
- key: S + "",
303
- forceRender: !0
304
- }, {
305
- default: U(() => [
306
- l.relationType == 1 ? (p(), x("div", {
307
- key: 0,
308
- style: de({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
309
- }, [
310
- w(m, {
311
- table: l.key,
312
- "form-template": r.formTemplate,
313
- "main-id": o.getSubTableForeignKeyValue(l.foreignKey),
314
- properties: l.properties
315
- }, null, 8, ["table", "form-template", "main-id", "properties"])
316
- ], 4)) : (p(), x("div", Ve, [
317
- o.showStatus[l.key] ? (p(), F(g, {
318
- key: 0,
319
- ref_for: !0,
320
- ref: o.refMap[l.key],
321
- "keep-source": "",
322
- "row-number": o.rowNumber,
323
- "row-selection": "",
324
- height: o.subTableHeight,
325
- disabled: !0,
326
- columns: l.columns,
327
- dataSource: o.subDataSource[l.key],
328
- authPre: o.getSubTableAuthPre(l.key)
329
- }, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (p(), F(P, {
330
- key: 1,
331
- spinning: !0
332
- }))
333
- ]))
334
- ]),
335
- _: 2
336
- }, 1032, ["tab"]))), 128))
337
- ]),
338
- _: 1
339
- }, 8, ["onChange"])) : I("", !0),
340
- w(y, {
341
- loading: o.loading,
342
- absolute: !1
343
- }, null, 8, ["loading"]),
344
- he(i.$slots, "bottom")
345
- ], 8, Ee);
346
- }
347
- const Ft = /* @__PURE__ */ ve(Oe, [["render", je]]);
348
- export {
349
- Ft as default
350
- };
@@ -1,117 +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-ad499dff.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 "./dayjs.min-eea532a3.mjs";
22
- import "/@/store/modules/permission";
23
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
24
- import b from "./OnlineAutoModal-68909692.mjs";
25
- import { u as B, a as I } from "./useListButton-308458cd.mjs";
26
- import { useRouter as M } from "vue-router";
27
- import { u as S } from "./useFormUrl-2ee1a82d.mjs";
28
- import { _ as D } from "./index-94b6319e.mjs";
29
- import "/@/components/Form/src/componentMap";
30
- import "/@/utils/propTypes";
31
- import "./constant-fa63bd66.mjs";
32
- import "/@/components/Form/src/jeecg/components/JUpload";
33
- import "/@/views/system/user/user.api";
34
- import "/@/utils/desform/customExpression";
35
- import "/@/utils/dict/JDictSelectUtil";
36
- import "/@/components/Table";
37
- import "/@/hooks/system/useListPage";
38
- import "/@/components/Form/src/utils/Area";
39
- import "/@/components/Preview/index";
40
- import "./LinkTableListPiece-47f4286c.mjs";
41
- import "/@/api/common/api";
42
- import "/@/assets/images/placeholderImage.png";
43
- import "./OnlineSelectCascade-180e8c9a.mjs";
44
- import "./JModalTip-5401f43d.mjs";
45
- import "@vueuse/core";
46
- import "./OnlineForm-20604e4f.mjs";
47
- import "./useCustomHook-3a17a690.mjs";
48
- import "/@/components/jeecg/comment/CommentPanel.vue";
49
- import "/@/router";
50
- import "/@/hooks/core/onMountedOrActivated";
51
- import "/@/store/modules/multipleTab";
52
- import "./cgformState-d9f8ec42.mjs";
53
- import "pinia";
54
- import "/@/store";
55
- import "/@/router/menus";
56
- import "/@/hooks/system/useMethods";
57
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
58
- const N = /* @__PURE__ */ x({
59
- __name: "OnlineFormUrlAdd",
60
- setup(V) {
61
- 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();
62
- if (!o(s))
63
- throw new Error("token不存在~");
64
- if (!e.value)
65
- throw h.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
66
- U(i), F(
67
- () => n.value,
68
- (t) => {
69
- m.value = t.offsetHeight - 60;
70
- }
71
- );
72
- const { registerModal: v, handleAdd: a } = I(i, _), w = (t) => document.querySelector(`.online-add-${e.value}`), k = () => {
73
- setTimeout(() => {
74
- a(!1), setTimeout(() => {
75
- C.push({ path: "/online/formUrlSuccess" });
76
- }, 1e3);
77
- }, 0);
78
- };
79
- return setTimeout(() => {
80
- a(!1), p.value = !1;
81
- }, 1e3), (t, $) => (l(), E("div", {
82
- class: u([["p-2"], "online-wrap"])
83
- }, [
84
- c(o(O), { bordered: !1 }, {
85
- default: d(() => [
86
- c(o(R), { spinning: p.value }, {
87
- default: d(() => [
88
- y("div", {
89
- class: u(["wrap", `online-add-${o(e)}`]),
90
- ref_key: "wrapRef",
91
- ref: n
92
- }, [
93
- f("", !0),
94
- o(s) ? (l(), A(b, {
95
- key: 1,
96
- id: o(e),
97
- maskClosable: !1,
98
- onRegister: o(v),
99
- getContainer: w,
100
- onFormConfig: o(g),
101
- onSuccess: k,
102
- height: m.value
103
- }, null, 8, ["id", "onRegister", "onFormConfig", "height"])) : f("", !0)
104
- ], 2)
105
- ]),
106
- _: 1
107
- }, 8, ["spinning"])
108
- ]),
109
- _: 1
110
- })
111
- ]));
112
- }
113
- });
114
- const Lo = /* @__PURE__ */ D(N, [["__scopeId", "data-v-4a0277d5"]]);
115
- export {
116
- Lo as default
117
- };
@@ -1,122 +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-ad499dff.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 "./dayjs.min-eea532a3.mjs";
22
- import "/@/store/modules/permission";
23
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
24
- import { useRoute as O } from "vue-router";
25
- import R from "./OnlineDetailModal-ac078a9a.mjs";
26
- import { u as S, a as U } from "./useListButton-308458cd.mjs";
27
- import { u as B } from "./useFormUrl-2ee1a82d.mjs";
28
- import { _ as F } from "./index-94b6319e.mjs";
29
- import "/@/components/Form/src/componentMap";
30
- import "/@/utils/propTypes";
31
- import "./constant-fa63bd66.mjs";
32
- import "/@/components/Form/src/jeecg/components/JUpload";
33
- import "/@/views/system/user/user.api";
34
- import "/@/utils/desform/customExpression";
35
- import "/@/utils/dict/JDictSelectUtil";
36
- import "/@/components/Table";
37
- import "/@/hooks/system/useListPage";
38
- import "/@/components/Form/src/utils/Area";
39
- import "/@/components/Preview/index";
40
- import "./LinkTableListPiece-47f4286c.mjs";
41
- import "/@/api/common/api";
42
- import "/@/assets/images/placeholderImage.png";
43
- import "./OnlineSelectCascade-180e8c9a.mjs";
44
- import "./JModalTip-5401f43d.mjs";
45
- import "@vueuse/core";
46
- import "./OnlineFormDetail-719118b6.mjs";
47
- import "./DetailForm-a2bf8c33.mjs";
48
- import "/@/utils/dict";
49
- import "/@/utils/dict/index";
50
- import "/@/components/Markdown";
51
- import "./OnlineSubFormDetail-4d64e7be.mjs";
52
- import "/@/utils/uuid";
53
- import "/@/components/jeecg/comment/CommentPanel.vue";
54
- import "/@/router";
55
- import "./useCustomHook-3a17a690.mjs";
56
- import "/@/hooks/core/onMountedOrActivated";
57
- import "/@/store/modules/multipleTab";
58
- import "./cgformState-d9f8ec42.mjs";
59
- import "pinia";
60
- import "/@/store";
61
- import "/@/router/menus";
62
- import "/@/hooks/system/useMethods";
63
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
64
- const N = /* @__PURE__ */ C({
65
- __name: "OnlineFormUrlDetail",
66
- setup(T) {
67
- const i = O(), { ID: e, onlineTableContext: m, onlineExtConfigJson: _ } = S(), { createMessage: g } = y(), p = r(null), n = r(400), a = r(!0), { token: s } = B();
68
- if (!t(s))
69
- throw new Error("token不存在~");
70
- if (!e.value || !i.params.dataId)
71
- throw g.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
72
- D(
73
- () => p.value,
74
- (o) => {
75
- n.value = o.offsetHeight;
76
- }
77
- ), M(m);
78
- const { registerDetailModal: h, openDetailModal: v } = U(m, _), w = (o) => document.querySelector(`.online-detail-${e.value}`);
79
- return setTimeout(() => {
80
- v(!0, {
81
- isUpdate: !0,
82
- disableSubmit: !0,
83
- record: {
84
- id: i.params.dataId
85
- }
86
- }), a.value = !1;
87
- }, 1e3), (o, V) => (l(), k("div", {
88
- class: u([["p-2"], "online-wrap"])
89
- }, [
90
- c(t(E), { bordered: !1 }, {
91
- default: d(() => [
92
- c(t(I), { spinning: a.value }, {
93
- default: d(() => [
94
- x("div", {
95
- class: u(["wrap", `online-detail-${t(e)}`]),
96
- ref_key: "wrapRef",
97
- ref: p
98
- }, [
99
- f("", !0),
100
- t(s) ? (l(), b(R, {
101
- key: 1,
102
- id: t(e),
103
- maskClosable: !1,
104
- onRegister: t(h),
105
- onSuccess: o.success,
106
- getContainer: w,
107
- height: n.value
108
- }, null, 8, ["id", "onRegister", "onSuccess", "height"])) : f("", !0)
109
- ], 2)
110
- ]),
111
- _: 1
112
- }, 8, ["spinning"])
113
- ]),
114
- _: 1
115
- })
116
- ]));
117
- }
118
- });
119
- const Kt = /* @__PURE__ */ F(N, [["__scopeId", "data-v-cea77271"]]);
120
- export {
121
- Kt as default
122
- };