@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,23 +1,21 @@
1
- import { defineComponent as D, ref as u, resolveComponent as c, openBlock as H, createBlock as I, withCtx as s, createVNode as f, createTextVNode as h, createElementVNode as T } from "vue";
1
+ import { defineComponent as $, ref as m, resolveComponent as u, createBlock as P, openBlock as q, withCtx as s, createVNode as f, createElementVNode as T, createTextVNode as h } from "vue";
2
2
  import { defHttp as M } from "/@/utils/http/axios";
3
- import { BasicTable as $ } from "/@/components/Table";
4
- import { BasicModal as A, useModalInner as P } from "/@/components/Modal";
5
- import { useListTable as q } from "/@/hooks/system/useListPage";
6
- import { useMessage as O } from "/@/hooks/web/useMessage";
7
- import { useDesign as V } from "/@/hooks/web/useDesign";
8
- import { _ as j } from "./index-740b2c4a.mjs";
9
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
10
- import "vue-router";
11
- const x = D({
3
+ import { BasicTable as D } from "/@/components/Table";
4
+ import { BasicModal as F, useModalInner as V } from "/@/components/Modal";
5
+ import { useListTable as j } from "/@/hooks/system/useListPage";
6
+ import { useMessage as A } from "/@/hooks/web/useMessage";
7
+ import { useDesign as E } from "/@/hooks/web/useDesign";
8
+ import { _ as O } from "./index-0kQBIHx0.mjs";
9
+ const x = $({
12
10
  name: "TransDb2Online",
13
- components: { BasicModal: A, BasicTable: $ },
11
+ components: { BasicModal: F, BasicTable: D },
14
12
  emits: ["success", "register"],
15
13
  setup(o, { emit: n }) {
16
- const { createMessage: p } = O(), l = u("暂无数据"), m = u(!1), r = u(!1), a = u([]), t = u([]), { prefixCls: d } = V("online-db-import-form-modal"), g = d, C = document.documentElement.clientHeight, b = C - 180, _ = b > 690 ? 690 : b, [L, { setPagination: y, getForm: B }, { rowSelection: F, selectedRowKeys: i }] = q({
14
+ const { createMessage: g } = A(), l = m("暂无数据"), c = m(!1), r = m(!1), a = m([]), t = m([]), { prefixCls: d } = E("online-db-import-form-modal"), p = d, b = document.documentElement.clientHeight, C = b - 180, L = C > 690 ? 690 : C, [y, { setPagination: B, getForm: N }, { rowSelection: k, selectedRowKeys: i }] = j({
17
15
  bordered: !0,
18
16
  columns: [{ title: "表名", align: "left", dataIndex: "id" }],
19
17
  dataSource: t,
20
- maxHeight: C - 400,
18
+ maxHeight: b - 400,
21
19
  locale: { emptyText: l },
22
20
  pagination: {
23
21
  showQuickJumper: !1,
@@ -35,7 +33,7 @@ const x = D({
35
33
  componentProps: {
36
34
  style: { width: "100%" },
37
35
  placeholder: "请输入表名以模糊筛选",
38
- onChange: (e) => N(e.target.value)
36
+ onChange: (e) => S(e.target.value)
39
37
  },
40
38
  disabledLabelWidth: !0,
41
39
  itemProps: {
@@ -47,12 +45,12 @@ const x = D({
47
45
  baseColProps: { xs: 24, sm: 24, md: 24, lg: 24, xl: 24, xxl: 24 },
48
46
  showActionButtonGroup: !1
49
47
  }
50
- }), [E, { closeModal: v }] = P(() => {
48
+ }), [R, { closeModal: v }] = V(() => {
51
49
  var e;
52
- (e = B()) == null || e.resetFields(), r.value = !1, l.value = "暂无数据", i.value = [], w();
50
+ (e = N()) == null || e.resetFields(), r.value = !1, l.value = "暂无数据", i.value = [], w();
53
51
  });
54
52
  function w() {
55
- return m.value = !0, M.get(
53
+ return c.value = !0, M.get(
56
54
  {
57
55
  url: "/online/cgform/head/queryTables"
58
56
  /* query */
@@ -63,21 +61,21 @@ const x = D({
63
61
  ).then(
64
62
  (e) => (t.value = e, a.value = [...e], e),
65
63
  (e) => {
66
- e.message == "noadminauth" && (l.value = "非admin用户无权限操作!", p.warn(l.value)), t.value = [], a.value = [];
64
+ e.message == "noadminauth" && (l.value = "非admin用户无权限操作!", g.warn(l.value)), t.value = [], a.value = [];
67
65
  }
68
66
  ).finally(() => {
69
- m.value = !1;
67
+ c.value = !1;
70
68
  });
71
69
  }
72
- function N(e) {
73
- a.value.length !== 0 && (e ? (t.value = a.value.filter((S) => S.id.toLowerCase().includes(e.toLowerCase())), l.value = t.value.length === 0 ? "无筛选结果" : "暂无数据") : t.value = [...a.value], y({ current: 1 }));
70
+ function S(e) {
71
+ a.value.length !== 0 && (e ? (t.value = a.value.filter((I) => I.id.toLowerCase().includes(e.toLowerCase())), l.value = t.value.length === 0 ? "无筛选结果" : "暂无数据") : t.value = [...a.value], B({ current: 1 }));
74
72
  }
75
- function k() {
73
+ function H() {
76
74
  v();
77
75
  }
78
- function R() {
76
+ function _() {
79
77
  if (!i.value || i.value.length == 0) {
80
- p.warning("请选择一张表");
78
+ g.warning("请选择一张表");
81
79
  return;
82
80
  } else {
83
81
  r.value = !0;
@@ -91,24 +89,24 @@ const x = D({
91
89
  }
92
90
  return {
93
91
  emptyText: l,
94
- confirmLoading: m,
92
+ confirmLoading: c,
95
93
  btnLoading: r,
96
94
  metaSource: a,
97
- handleTrans: R,
98
- handleCancel: k,
95
+ handleTrans: _,
96
+ handleCancel: H,
99
97
  queryTables: w,
100
- registerModal: E,
101
- registerTable: L,
102
- rowSelection: F,
98
+ registerModal: R,
99
+ registerTable: y,
100
+ rowSelection: k,
103
101
  selectedRowKeys: i,
104
- wrapClassName: g,
105
- modalHeight: _
102
+ wrapClassName: p,
103
+ modalHeight: L
106
104
  };
107
105
  }
108
106
  });
109
- function z(o, n, p, l, m, r) {
110
- const a = c("BasicTable"), t = c("a-spin"), d = c("a-button"), g = c("BasicModal");
111
- return H(), I(g, {
107
+ function z(o, n, g, l, c, r) {
108
+ const a = u("BasicTable"), t = u("a-spin"), d = u("a-button"), p = u("BasicModal");
109
+ return q(), P(p, {
112
110
  onRegister: o.registerModal,
113
111
  height: o.modalHeight,
114
112
  width: 500,
@@ -119,9 +117,9 @@ function z(o, n, p, l, m, r) {
119
117
  }, {
120
118
  footer: s(() => [
121
119
  f(d, { onClick: o.handleCancel }, {
122
- default: s(() => n[1] || (n[1] = [
123
- h("关闭")
124
- ])),
120
+ default: s(() => [...n[1] || (n[1] = [
121
+ h("关闭", -1)
122
+ ])]),
125
123
  _: 1
126
124
  }, 8, ["onClick"]),
127
125
  f(d, {
@@ -130,9 +128,9 @@ function z(o, n, p, l, m, r) {
130
128
  preIcon: "ant-design:swap",
131
129
  loading: o.confirmLoading || o.btnLoading
132
130
  }, {
133
- default: s(() => n[2] || (n[2] = [
134
- h(" 生成表单 ")
135
- ])),
131
+ default: s(() => [...n[2] || (n[2] = [
132
+ h(" 生成表单 ", -1)
133
+ ])]),
136
134
  _: 1
137
135
  }, 8, ["onClick", "loading"])
138
136
  ]),
@@ -144,7 +142,7 @@ function z(o, n, p, l, m, r) {
144
142
  rowSelection: o.rowSelection,
145
143
  onTableRedo: o.queryTables
146
144
  }, {
147
- tableTitle: s(() => n[0] || (n[0] = [
145
+ tableTitle: s(() => [...n[0] || (n[0] = [
148
146
  T("div", null, [
149
147
  h(" 注:导入表会排除配置前缀表 "),
150
148
  T("a", {
@@ -152,7 +150,7 @@ function z(o, n, p, l, m, r) {
152
150
  target: "_blank"
153
151
  }, " 参考文档")
154
152
  ], -1)
155
- ])),
153
+ ])]),
156
154
  _: 1
157
155
  }, 8, ["onRegister", "rowSelection", "onTableRedo"])
158
156
  ]),
@@ -162,7 +160,7 @@ function z(o, n, p, l, m, r) {
162
160
  _: 1
163
161
  }, 8, ["onRegister", "height", "confirmLoading", "onCancel", "wrapClassName"]);
164
162
  }
165
- const oe = /* @__PURE__ */ j(x, [["render", z]]);
163
+ const Z = /* @__PURE__ */ O(x, [["render", z]]);
166
164
  export {
167
- oe as default
165
+ Z as default
168
166
  };
@@ -0,0 +1,472 @@
1
+ var le = Object.defineProperty;
2
+ var A = Object.getOwnPropertySymbols;
3
+ var ae = Object.prototype.hasOwnProperty, ne = Object.prototype.propertyIsEnumerable;
4
+ var W = (i, o, d) => o in i ? le(i, o, { enumerable: !0, configurable: !0, writable: !0, value: d }) : i[o] = d, R = (i, o) => {
5
+ for (var d in o || (o = {}))
6
+ ae.call(o, d) && W(i, d, o[d]);
7
+ if (A)
8
+ for (var d of A(o))
9
+ ne.call(o, d) && W(i, d, o[d]);
10
+ return i;
11
+ };
12
+ var g = (i, o, d) => new Promise((k, x) => {
13
+ var L = (h) => {
14
+ try {
15
+ y(d.next(h));
16
+ } catch (C) {
17
+ x(C);
18
+ }
19
+ }, F = (h) => {
20
+ try {
21
+ y(d.throw(h));
22
+ } catch (C) {
23
+ x(C);
24
+ }
25
+ }, y = (h) => h.done ? k(h.value) : Promise.resolve(h.value).then(L, F);
26
+ y((d = d.apply(i, o)).next());
27
+ });
28
+ import { ref as ie, computed as re, watch as se, defineComponent as oe, resolveComponent as T, createElementBlock as u, openBlock as f, normalizeClass as V, createVNode as $, withCtx as q, Fragment as E, renderList as B, createBlock as K, createElementVNode as m, toDisplayString as H } from "vue";
29
+ import { propTypes as J } from "/@/utils/propTypes";
30
+ import { getDictItemsByCode as de } from "/@/utils/dict";
31
+ import { filterMultiDictText as O, filterDictText as ce } from "/@/utils/dict/JDictSelectUtil";
32
+ import { initDictOptions as N } from "/@/utils/dict/index";
33
+ import { loadDictItem as fe, queryDepartTreeSync as ue, getUserList as pe } from "/@/api/common/api";
34
+ import { defHttp as me } from "/@/utils/http/axios";
35
+ import { getAreaTextByCode as he } from "/@/components/Form/src/utils/Area";
36
+ import { getFileAccessHttpUrl as _e } from "/@/utils/common/compUtils";
37
+ import { createImgPreview as ge } from "/@/components/Preview/index";
38
+ import { useMessage as we } from "/@/hooks/web/useMessage";
39
+ import { PaperClipOutlined as ve, EyeOutlined as ye, DownloadOutlined as ke } from "@ant-design/icons-vue";
40
+ import { L as Ce } from "./useExtendComponent-P9wrWQwT.mjs";
41
+ import { MarkdownViewer as be } from "/@/components/Markdown";
42
+ import { getWeekMonthQuarterYear as De } from "/@/utils";
43
+ import { _ as xe } from "./index-0kQBIHx0.mjs";
44
+ function Fe(i) {
45
+ const o = {}, d = [], k = ie({}), { createMessage: x } = we(), L = re(() => i.containerClass ? `jeecg-detail-form ${i.containerClass}` : "jeecg-detail-form");
46
+ se(
47
+ () => i.data,
48
+ (e) => g(null, null, function* () {
49
+ if (e) {
50
+ let n = i.schemas, a = {};
51
+ if (n && n.length > 0)
52
+ for (let l of n) {
53
+ let t = l.field;
54
+ try {
55
+ a[t] = yield F(l);
56
+ } catch (s) {
57
+ }
58
+ }
59
+ k.value = a;
60
+ }
61
+ }),
62
+ { deep: !0, immediate: !0 }
63
+ );
64
+ function F(e) {
65
+ return g(this, null, function* () {
66
+ let n = i.data;
67
+ if (n) {
68
+ let a = n[e.field];
69
+ if (!a && a !== "0" && a !== 0)
70
+ return "";
71
+ let l = a, t = e.view;
72
+ if (t == "list" || t == "radio" || t == "checkbox" || t == "list_multi")
73
+ l = yield y(e, n);
74
+ else if (t == "sel_search")
75
+ l = yield C(e, n);
76
+ else if (t == "cat_tree")
77
+ l = yield M(e, n);
78
+ else if (t == "link_table")
79
+ l = yield ee(e, n);
80
+ else if (t == "sel_depart")
81
+ l = yield c(e, n);
82
+ else if (t == "sel_user")
83
+ l = yield b(e, n);
84
+ else if (t == "pca")
85
+ l = he(a);
86
+ else if (t == "link_down")
87
+ l = yield v(e, n);
88
+ else if (t == "sel_tree")
89
+ l = yield w(e, n);
90
+ else if (t == "switch")
91
+ l = yield I(e, n);
92
+ else if (t == "image" || t == "file")
93
+ l = Y(e, n);
94
+ else if (t == "popup_dict") {
95
+ const s = n[`${e.field}_dictText`];
96
+ s !== void 0 && (l = s);
97
+ } else if (d.indexOf(e.field) >= 0) {
98
+ let s = o[e.field];
99
+ s && s.length > 0 && (l = O(s, a));
100
+ }
101
+ return l;
102
+ }
103
+ return "";
104
+ });
105
+ }
106
+ function y(e, n) {
107
+ return g(this, null, function* () {
108
+ let a = h(e), l = n[e.field];
109
+ if (!a)
110
+ return l;
111
+ let t = de(a);
112
+ if (t && t.length > 0)
113
+ return O(t, l);
114
+ {
115
+ let s = [];
116
+ if (o[a] ? s = o[a] : s = (yield N(a)) || [], s && s.length > 0)
117
+ return o[a] = s, O(s, l);
118
+ }
119
+ return "";
120
+ });
121
+ }
122
+ function h(e) {
123
+ let n = "", { dictCode: a, dictTable: l, dictText: t } = e;
124
+ return l ? n = encodeURI(`${l},${t},${a}`) : n = a, n;
125
+ }
126
+ function C(e, n) {
127
+ return g(this, null, function* () {
128
+ let a = h(e), l = n[e.field];
129
+ if (!l)
130
+ return "";
131
+ let t = [];
132
+ if (a.indexOf(",") === -1) {
133
+ const s = yield N(a);
134
+ s && s.length > 0 && s.forEach((p) => {
135
+ p.value === l && t.push(p.text || p.label);
136
+ });
137
+ } else
138
+ o[a + l] ? t = o[a + l] : t = (yield me.get({ url: `/sys/dict/loadDictItem/${a}`, params: { key: l } })) || [];
139
+ return t && t.length > 0 ? (o[a + l] = t, t.join(",")) : "";
140
+ });
141
+ }
142
+ function M(e, n) {
143
+ return g(this, null, function* () {
144
+ let a = n[e.field];
145
+ if (!a)
146
+ return "";
147
+ let l = (yield fe({ ids: a })) || [];
148
+ return l && l.length > 0 ? l.join(",") : "";
149
+ });
150
+ }
151
+ function c(e, n) {
152
+ return g(this, null, function* () {
153
+ let a = n[e.field];
154
+ if (!a)
155
+ return "";
156
+ let l = r(e), t = l.store || "id", s = l.text || "departName", p = (yield ue({ ids: a, primaryKey: t })) || [];
157
+ if (p && p.length > 0) {
158
+ let _ = [];
159
+ for (let D of p)
160
+ D[s] ? _.push(D[s]) : _.push(D.title);
161
+ return _.join(",");
162
+ }
163
+ return "";
164
+ });
165
+ }
166
+ function b(e, n) {
167
+ return g(this, null, function* () {
168
+ let a = n[e.field];
169
+ if (!a)
170
+ return "";
171
+ let l = r(e), s = {
172
+ [l.store || "username"]: a
173
+ }, _ = ((yield pe(s)) || {}).records || [];
174
+ if (_ && _.length > 0) {
175
+ let D = [], S = l.text || "realname";
176
+ for (let j of _)
177
+ D.push(j[S]);
178
+ return D.join(",");
179
+ }
180
+ return "";
181
+ });
182
+ }
183
+ function r(e) {
184
+ let n = {}, { fieldExtendJson: a } = e;
185
+ if (a && typeof a == "string")
186
+ try {
187
+ let l = JSON.parse(a);
188
+ n = R({}, l);
189
+ } catch (l) {
190
+ }
191
+ return n;
192
+ }
193
+ function v(e, n) {
194
+ return g(this, null, function* () {
195
+ let { dictTable: a, field: l } = e, t = [];
196
+ if (o[l])
197
+ t = o[l];
198
+ else if (a) {
199
+ let s = JSON.parse(a);
200
+ if (s) {
201
+ let { table: p, txt: _, key: D, linkField: S } = s, j = `${p},${_},${D}`;
202
+ if (t = [...(yield N(j)) || []], t && t.length > 0 && (o[l] = t, S)) {
203
+ let te = S.split(",");
204
+ for (let U of te)
205
+ o[U] = t, d.push(U);
206
+ }
207
+ }
208
+ }
209
+ if (t && t.length > 0) {
210
+ let s = n[l];
211
+ return O(t, s);
212
+ }
213
+ return "";
214
+ });
215
+ }
216
+ function w(e, n) {
217
+ return g(this, null, function* () {
218
+ let { dict: a, field: l } = e, t = [];
219
+ if (o[l] ? t = o[l] : a && (t = yield N(a)), t && t.length > 0) {
220
+ let s = n[l];
221
+ return O(t, s);
222
+ }
223
+ return "";
224
+ });
225
+ }
226
+ function I(e, n) {
227
+ return g(this, null, function* () {
228
+ var _;
229
+ let { fieldExtendJson: a, field: l } = e, t = ["Y", "N"];
230
+ a && (t = (_ = JSON.parse(a)) == null ? void 0 : _.switchOptions);
231
+ let s = [
232
+ { value: t[0], text: "是" },
233
+ { value: t[1], text: "否" },
234
+ { value: t[0] + "", text: "是" },
235
+ { value: t[1] + "", text: "否" }
236
+ ], p = n[l];
237
+ return ce(s, p);
238
+ });
239
+ }
240
+ function P(e) {
241
+ return e.span ? e.span : i.span;
242
+ }
243
+ function Y(e, n) {
244
+ let a = n[e.field];
245
+ if (!a)
246
+ return [];
247
+ let l = a.split(","), t = [];
248
+ for (let s of l) {
249
+ let p = _e(s) || "";
250
+ p && t.push(p);
251
+ }
252
+ return t;
253
+ }
254
+ function z(e) {
255
+ e && window.open(e);
256
+ }
257
+ function Q(e) {
258
+ let n = k.value[e];
259
+ if (!n || n.length == 0) {
260
+ x.warning("无图片!");
261
+ return;
262
+ }
263
+ ge({ imageList: n });
264
+ }
265
+ function G(e) {
266
+ return e ? e.substring(e.lastIndexOf("/") + 1) : "";
267
+ }
268
+ const X = ["file", "image", "markdown", "umeditor"];
269
+ function Z(e) {
270
+ return X.indexOf(e.view) >= 0 ? i.span == 12 ? "span12" : i.span == 8 ? "span8" : i.span == 6 ? "span6" : "span24" : "";
271
+ }
272
+ function ee(e, n) {
273
+ return g(this, null, function* () {
274
+ let a = n[e.field];
275
+ return r(e).showType == "select" ? a ? n[e.field + "_dictText"] : "" : a ? n[e.field] : "";
276
+ });
277
+ }
278
+ return {
279
+ formContainerClass: L,
280
+ detailFormData: k,
281
+ getItemSpan: P,
282
+ handleDownloadFile: z,
283
+ handleViewImage: Q,
284
+ getFilename: G,
285
+ getLabelWidthClass: Z
286
+ };
287
+ }
288
+ const Te = oe({
289
+ name: "DetailForm",
290
+ components: {
291
+ DownloadOutlined: ke,
292
+ EyeOutlined: ye,
293
+ PaperClipOutlined: ve,
294
+ LinkTableCard: Ce,
295
+ MarkdownViewer: be
296
+ },
297
+ props: {
298
+ span: J.number.def(24),
299
+ //表单配置
300
+ schemas: J.array.def([]),
301
+ //表单数据
302
+ data: J.object.def({}),
303
+ containerClass: J.string.def("")
304
+ },
305
+ setup(i) {
306
+ const { formContainerClass: o, detailFormData: d, getItemSpan: k, handleDownloadFile: x, handleViewImage: L, getFilename: F, getLabelWidthClass: y } = Fe(i);
307
+ return {
308
+ formContainerClass: o,
309
+ detailFormData: d,
310
+ getItemSpan: k,
311
+ handleDownloadFile: x,
312
+ handleViewImage: L,
313
+ getFilename: F,
314
+ getLabelWidthClass: y,
315
+ filterLable: (c) => {
316
+ if (c.fieldExtendJson) {
317
+ const b = JSON.parse(c.fieldExtendJson);
318
+ if (b.labelLength && c.label.length > 4)
319
+ return c.label.substr(0, b.labelLength);
320
+ }
321
+ return c.label;
322
+ },
323
+ filter: (c, b, r) => {
324
+ if (b == "date" && typeof c == "string") {
325
+ if (!c)
326
+ return "";
327
+ let v = r.fieldExtendJson;
328
+ return v && (v = JSON.parse(v), v.picker && v.picker != "default") ? De(c)[v.picker] : c.split(" ").shift();
329
+ } else
330
+ return c;
331
+ },
332
+ textareaLineBreak: (c) => (c && c.includes(`
333
+ `) && (c = c.replace(/\n/g, "<br>")), c)
334
+ };
335
+ }
336
+ }), Le = {
337
+ key: 1,
338
+ class: "detail-item"
339
+ }, $e = ["title"], Ie = {
340
+ key: 0,
341
+ class: "item-content"
342
+ }, Oe = ["innerHTML"], Me = ["innerHTML"], Se = {
343
+ key: 3,
344
+ class: "item-content",
345
+ style: { display: "block", "padding-top": "10px" }
346
+ }, Ee = { key: 0 }, Je = {
347
+ key: 4,
348
+ class: "item-content"
349
+ }, Ne = {
350
+ class: "ant-upload-list ant-upload-list-picture-card",
351
+ style: { display: "flex" }
352
+ }, je = {
353
+ class: "ant-upload-list-picture-card-container",
354
+ style: { "margin-top": "8px" }
355
+ }, Ve = {
356
+ class: "ant-upload-list-width ant-upload-list-picture-border ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-picture-card",
357
+ "data-has-actions": "true"
358
+ }, Be = { class: "ant-upload-list-item-thumbnail ant-upload-list-item-info" }, He = ["src", "onClick"], Ue = { class: "ant-upload-list-item-actions" }, Ae = {
359
+ key: 5,
360
+ class: "item-content"
361
+ }, We = { class: "ant-upload-list ant-upload-list-text" }, Re = { class: "" }, qe = { class: "ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-text" }, Ke = { class: "ant-upload-list-item-info" }, Pe = { class: "ant-upload-span" }, Ye = { class: "ant-upload-text-icon" }, ze = ["href"], Qe = { class: "ant-upload-list-item-card-actions" }, Ge = {
362
+ key: 6,
363
+ class: "item-content"
364
+ };
365
+ function Xe(i, o, d, k, x, L) {
366
+ const F = T("MarkdownViewer"), y = T("link-table-card"), h = T("download-outlined"), C = T("eye-outlined"), M = T("paper-clip-outlined"), c = T("a-col"), b = T("a-row");
367
+ return f(), u("div", {
368
+ class: V(i.formContainerClass)
369
+ }, [
370
+ $(b, null, {
371
+ default: q(() => [
372
+ (f(!0), u(E, null, B(i.schemas, (r, v) => (f(), K(c, {
373
+ key: v,
374
+ span: i.getItemSpan(r)
375
+ }, {
376
+ default: q(() => [
377
+ r.hidden ? (f(), u(E, { key: 0 }, [], 64)) : (f(), u("div", Le, [
378
+ m("div", {
379
+ class: V(["item-title", i.getLabelWidthClass(r)]),
380
+ title: r.label
381
+ }, H(i.filterLable(r)) + ": ", 11, $e),
382
+ r.view === "markdown" ? (f(), u("div", Ie, [
383
+ $(F, {
384
+ value: i.detailFormData[r.field],
385
+ "onUpdate:value": (w) => i.detailFormData[r.field] = w,
386
+ placeholder: ""
387
+ }, null, 8, ["value", "onUpdate:value"])
388
+ ])) : r.isHtml ? (f(), u("div", {
389
+ key: 1,
390
+ class: V(["item-content", r.view]),
391
+ innerHTML: i.detailFormData[r.field]
392
+ }, null, 10, Oe)) : r.view == "textarea" ? (f(), u("div", {
393
+ key: 2,
394
+ class: "item-content",
395
+ innerHTML: i.textareaLineBreak(i.detailFormData[r.field])
396
+ }, null, 8, Me)) : r.isCard ? (f(), u("div", Se, [
397
+ i.detailFormData[r.field] ? (f(), K(y, {
398
+ key: 1,
399
+ disabled: "",
400
+ detail: "",
401
+ value: i.detailFormData[r.field],
402
+ valueField: r.dictCode,
403
+ textField: r.dictText,
404
+ tableName: r.dictTable,
405
+ multi: r.multi
406
+ }, null, 8, ["value", "valueField", "textField", "tableName", "multi"])) : (f(), u("span", Ee))
407
+ ])) : r.isImage ? (f(), u("div", Je, [
408
+ m("div", Ne, [
409
+ (f(!0), u(E, null, B(i.detailFormData[r.field], (w) => (f(), u("div", je, [
410
+ m("span", null, [
411
+ m("div", Ve, [
412
+ m("div", Be, [
413
+ m("img", {
414
+ src: w,
415
+ alt: "图片不存在",
416
+ class: "ant-upload-list-item-image",
417
+ onClick: (I) => i.handleViewImage(r.field)
418
+ }, null, 8, He)
419
+ ]),
420
+ m("span", Ue, [
421
+ $(h, {
422
+ onClick: (I) => i.handleDownloadFile(w)
423
+ }, null, 8, ["onClick"]),
424
+ $(C, {
425
+ onClick: (I) => i.handleViewImage(r.field)
426
+ }, null, 8, ["onClick"])
427
+ ])
428
+ ])
429
+ ])
430
+ ]))), 256))
431
+ ])
432
+ ])) : r.isFile ? (f(), u("div", Ae, [
433
+ m("div", We, [
434
+ (f(!0), u(E, null, B(i.detailFormData[r.field], (w) => (f(), u("div", Re, [
435
+ m("span", null, [
436
+ m("div", qe, [
437
+ m("div", Ke, [
438
+ m("span", Pe, [
439
+ m("div", Ye, [
440
+ $(M)
441
+ ]),
442
+ m("a", {
443
+ href: w,
444
+ target: "_blank",
445
+ rel: "noopener noreferrer",
446
+ class: "ant-upload-list-item-name"
447
+ }, H(i.getFilename(w)), 9, ze),
448
+ m("span", Qe, [
449
+ $(h, {
450
+ onClick: (I) => i.handleDownloadFile(w)
451
+ }, null, 8, ["onClick"])
452
+ ])
453
+ ])
454
+ ])
455
+ ])
456
+ ])
457
+ ]))), 256))
458
+ ])
459
+ ])) : (f(), u("div", Ge, H(i.filter(i.detailFormData[r.field], r.view, r)), 1))
460
+ ]))
461
+ ]),
462
+ _: 2
463
+ }, 1032, ["span"]))), 128))
464
+ ]),
465
+ _: 1
466
+ })
467
+ ], 2);
468
+ }
469
+ const gt = /* @__PURE__ */ xe(Te, [["render", Xe], ["__scopeId", "data-v-afa27d62"]]);
470
+ export {
471
+ gt as default
472
+ };
@@ -1,11 +1,8 @@
1
1
  import { Menu as a } from "ant-design-vue";
2
- import { defineComponent as u, getCurrentInstance as l, computed as f, resolveComponent as m, openBlock as _, createBlock as d, withCtx as I, createElementVNode as p, createVNode as y, toDisplayString as K } from "vue";
2
+ import { defineComponent as u, getCurrentInstance as l, computed as f, resolveComponent as m, createBlock as _, openBlock as d, withCtx as I, createElementVNode as s, createVNode as y, toDisplayString as K } from "vue";
3
3
  import M from "/@/components/Icon/index";
4
4
  import { propTypes as r } from "/@/utils/propTypes";
5
- import { _ as g } from "./index-740b2c4a.mjs";
6
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
- import "/@/hooks/web/useMessage";
8
- import "vue-router";
5
+ import { _ as g } from "./index-0kQBIHx0.mjs";
9
6
  const x = u({
10
7
  name: "DropdownMenuItem",
11
8
  components: { MenuItem: a.Item, Icon: M },
@@ -23,22 +20,22 @@ const x = u({
23
20
  }) };
24
21
  }
25
22
  }), C = { class: "flex items-center" };
26
- function $(e, t, s, o, n, h) {
23
+ function $(e, t, p, o, n, h) {
27
24
  const c = m("Icon"), i = m("MenuItem");
28
- return _(), d(i, { key: e.itemKey }, {
25
+ return d(), _(i, { key: e.itemKey }, {
29
26
  default: I(() => [
30
- p("span", C, [
27
+ s("span", C, [
31
28
  y(c, {
32
29
  icon: e.icon,
33
30
  class: "mr-1"
34
31
  }, null, 8, ["icon"]),
35
- p("span", null, K(e.text), 1)
32
+ s("span", null, K(e.text), 1)
36
33
  ])
37
34
  ]),
38
35
  _: 1
39
36
  });
40
37
  }
41
- const S = /* @__PURE__ */ g(x, [["render", $]]);
38
+ const N = /* @__PURE__ */ g(x, [["render", $]]);
42
39
  export {
43
- S as default
40
+ N as default
44
41
  };