@jeecg/online 3.7.0-beta → 3.7.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 (95) hide show
  1. package/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
  5. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
  9. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
  10. package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
  13. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
  14. package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
  18. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
  21. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
  22. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
  23. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
  24. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
  25. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
  26. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
  27. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
  29. package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
  30. package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
  35. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
  36. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
  37. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
  40. package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
  41. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
  42. package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
  43. package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
  44. package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
  45. package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
  46. package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
  47. package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
  48. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
  51. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
  52. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
  53. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
  54. package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
  55. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  56. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  57. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  58. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
  59. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
  60. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
  61. package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
  62. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
  63. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
  64. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
  65. package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
  66. package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
  67. package/SuperQuery-a8592995.mjs +967 -0
  68. package/auth.api-ea1d33d4.mjs +41 -0
  69. package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
  70. package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
  71. package/index-1d1a6e56.mjs +57 -0
  72. package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
  73. package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
  74. package/main.index.js +1 -1
  75. package/package.json +1 -1
  76. package/style.css +1 -1
  77. package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
  78. package/useExtendComponent-dcae5c78.mjs +4399 -0
  79. package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
  80. package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
  81. package/useTableSync-d7e9f18d.mjs +89 -0
  82. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  83. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  84. package/CgformModal-36faf29a.mjs +0 -621
  85. package/CodeGeneratorModal-b722d976.mjs +0 -238
  86. package/DbToOnlineModal-f49b9530.mjs +0 -166
  87. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  88. package/OnlineForm-018981b2.mjs +0 -924
  89. package/OnlineQueryForm-998c12a4.mjs +0 -444
  90. package/SuperQuery-cbfba908.mjs +0 -975
  91. package/auth.api-d3a6c4b3.mjs +0 -39
  92. package/index-173949bb.mjs +0 -57
  93. package/useExtendComponent-bb7cca20.mjs +0 -4295
  94. package/useTableSync-f6089e8a.mjs +0 -87
  95. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
@@ -0,0 +1,169 @@
1
+ import { defineComponent as D, ref as i, resolveComponent as d, openBlock as H, createBlock as I, withCtx as l, createVNode as m, createTextVNode as g, createElementVNode as _ } from "vue";
2
+ import { defHttp as T } 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-1d1a6e56.mjs";
9
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
10
+ import "vue-router";
11
+ const x = D({
12
+ name: "TransDb2Online",
13
+ components: { BasicModal: A, BasicTable: $ },
14
+ emits: ["success", "register"],
15
+ setup(o, { emit: h }) {
16
+ const { createMessage: f } = O(), t = i("暂无数据"), u = i(!1), s = i(!1), n = i([]), a = i([]), { prefixCls: c } = V("online-db-import-form-modal"), p = c, C = document.documentElement.clientHeight, b = C - 180, M = b > 690 ? 690 : b, [L, { setPagination: y, getForm: B }, { rowSelection: F, selectedRowKeys: r }] = q({
17
+ bordered: !0,
18
+ columns: [{ title: "表名", align: "left", dataIndex: "id" }],
19
+ dataSource: a,
20
+ maxHeight: C - 400,
21
+ locale: { emptyText: t },
22
+ pagination: {
23
+ showQuickJumper: !1,
24
+ showSizeChanger: !1
25
+ },
26
+ clickToRowSelect: !0,
27
+ showIndexColumn: !0,
28
+ showActionColumn: !1,
29
+ formConfig: {
30
+ schemas: [
31
+ {
32
+ label: "表名",
33
+ field: "tableName",
34
+ component: "Input",
35
+ componentProps: {
36
+ style: { width: "100%" },
37
+ placeholder: "请输入表名以模糊筛选",
38
+ onChange: (e) => N(e.target.value)
39
+ },
40
+ disabledLabelWidth: !0,
41
+ itemProps: {
42
+ labelCol: { sm: 0, md: 0 },
43
+ wrapperCol: { sm: 24, md: 20 }
44
+ }
45
+ }
46
+ ],
47
+ baseColProps: { xs: 24, sm: 24, md: 24, lg: 24, xl: 24, xxl: 24 },
48
+ showActionButtonGroup: !1
49
+ }
50
+ }), [E, { closeModal: v }] = P(() => {
51
+ var e;
52
+ (e = B()) == null || e.resetFields(), s.value = !1, t.value = "暂无数据", r.value = [], w();
53
+ });
54
+ function w() {
55
+ return u.value = !0, T.get(
56
+ {
57
+ url: "/online/cgform/head/queryTables"
58
+ /* query */
59
+ },
60
+ {
61
+ errorMessageMode: "none"
62
+ }
63
+ ).then(
64
+ (e) => (a.value = e, n.value = [...e], e),
65
+ (e) => {
66
+ e.message == "noadminauth" && (t.value = "非admin用户无权限操作!", f.warn(t.value)), a.value = [], n.value = [];
67
+ }
68
+ ).finally(() => {
69
+ u.value = !1;
70
+ });
71
+ }
72
+ function N(e) {
73
+ n.value.length !== 0 && (e ? (a.value = n.value.filter((S) => S.id.toLowerCase().includes(e.toLowerCase())), t.value = a.value.length === 0 ? "无筛选结果" : "暂无数据") : a.value = [...n.value], y({ current: 1 }));
74
+ }
75
+ function k() {
76
+ v();
77
+ }
78
+ function R() {
79
+ if (!r.value || r.value.length == 0) {
80
+ f.warning("请选择一张表");
81
+ return;
82
+ } else {
83
+ s.value = !0;
84
+ let e = r.value.join(",");
85
+ T.post({ url: "/online/cgform/head/transTables/" + e }, { errorMessageMode: "modal" }).then(() => {
86
+ v();
87
+ }).finally(() => {
88
+ s.value = !1, h("success");
89
+ });
90
+ }
91
+ }
92
+ return {
93
+ emptyText: t,
94
+ confirmLoading: u,
95
+ btnLoading: s,
96
+ metaSource: n,
97
+ handleTrans: R,
98
+ handleCancel: k,
99
+ queryTables: w,
100
+ registerModal: E,
101
+ registerTable: L,
102
+ rowSelection: F,
103
+ selectedRowKeys: r,
104
+ wrapClassName: p,
105
+ modalHeight: M
106
+ };
107
+ }
108
+ });
109
+ const z = /* @__PURE__ */ _("div", null, [
110
+ /* @__PURE__ */ g(" 注:导入表会排除配置前缀表 "),
111
+ /* @__PURE__ */ _("a", {
112
+ href: "http://doc.jeecg.com/2043924",
113
+ target: "_blank"
114
+ }, " 参考文档")
115
+ ], -1);
116
+ function G(o, h, f, t, u, s) {
117
+ const n = d("BasicTable"), a = d("a-spin"), c = d("a-button"), p = d("BasicModal");
118
+ return H(), I(p, {
119
+ onRegister: o.registerModal,
120
+ height: o.modalHeight,
121
+ width: 500,
122
+ title: "从数据库导入表单",
123
+ confirmLoading: o.confirmLoading,
124
+ onCancel: o.handleCancel,
125
+ wrapClassName: o.wrapClassName
126
+ }, {
127
+ footer: l(() => [
128
+ m(c, { onClick: o.handleCancel }, {
129
+ default: l(() => [
130
+ g("关闭")
131
+ ]),
132
+ _: 1
133
+ }, 8, ["onClick"]),
134
+ m(c, {
135
+ onClick: o.handleTrans,
136
+ type: "primary",
137
+ preIcon: "ant-design:swap",
138
+ loading: o.confirmLoading || o.btnLoading
139
+ }, {
140
+ default: l(() => [
141
+ g(" 生成表单 ")
142
+ ]),
143
+ _: 1
144
+ }, 8, ["onClick", "loading"])
145
+ ]),
146
+ default: l(() => [
147
+ m(a, { spinning: o.confirmLoading }, {
148
+ default: l(() => [
149
+ m(n, {
150
+ onRegister: o.registerTable,
151
+ rowSelection: o.rowSelection,
152
+ onTableRedo: o.queryTables
153
+ }, {
154
+ tableTitle: l(() => [
155
+ z
156
+ ]),
157
+ _: 1
158
+ }, 8, ["onRegister", "rowSelection", "onTableRedo"])
159
+ ]),
160
+ _: 1
161
+ }, 8, ["spinning"])
162
+ ]),
163
+ _: 1
164
+ }, 8, ["onRegister", "height", "confirmLoading", "onCancel", "wrapClassName"]);
165
+ }
166
+ const ne = /* @__PURE__ */ j(x, [["render", G]]);
167
+ export {
168
+ ne as default
169
+ };
@@ -9,26 +9,26 @@ var W = (a, s, d) => s in a ? ie(a, s, { enumerable: !0, configurable: !0, writa
9
9
  ne.call(s, d) && W(a, d, s[d]);
10
10
  return a;
11
11
  };
12
- var _ = (a, s, d) => new Promise((k, C) => {
12
+ var _ = (a, s, d) => new Promise((k, b) => {
13
13
  var L = (m) => {
14
14
  try {
15
15
  w(d.next(m));
16
16
  } catch (D) {
17
- C(D);
17
+ b(D);
18
18
  }
19
19
  }, x = (m) => {
20
20
  try {
21
21
  w(d.throw(m));
22
22
  } catch (D) {
23
- C(D);
23
+ b(D);
24
24
  }
25
25
  }, w = (m) => m.done ? k(m.value) : Promise.resolve(m.value).then(L, x);
26
26
  w((d = d.apply(a, s)).next());
27
27
  });
28
- import { ref as ae, computed as re, watch as oe, defineComponent as se, resolveComponent as T, openBlock as f, createElementBlock as u, normalizeClass as j, createVNode as $, withCtx as q, Fragment as S, renderList as B, createBlock as K, createElementVNode as p, toDisplayString as V } from "vue";
28
+ import { ref as ae, computed as re, watch as oe, defineComponent as se, resolveComponent as T, openBlock as f, createElementBlock as u, normalizeClass as j, createVNode as $, withCtx as q, Fragment as S, renderList as V, createBlock as K, createElementVNode as p, toDisplayString as B } from "vue";
29
29
  import { propTypes as J } from "/@/utils/propTypes";
30
30
  import { getDictItemsByCode as de } from "/@/utils/dict";
31
- import { filterMultiDictText as I, filterDictText as ce } from "/@/utils/dict/JDictSelectUtil";
31
+ import { filterMultiDictText as O, filterDictText as ce } from "/@/utils/dict/JDictSelectUtil";
32
32
  import { initDictOptions as H } from "/@/utils/dict/index";
33
33
  import { loadDictItem as fe, queryDepartTreeSync as ue, getUserList as pe } from "/@/api/common/api";
34
34
  import { defHttp as me } from "/@/utils/http/axios";
@@ -37,10 +37,10 @@ import { getFileAccessHttpUrl as he } from "/@/utils/common/compUtils";
37
37
  import { createImgPreview as ge } from "/@/components/Preview/index";
38
38
  import { useMessage as ve } from "/@/hooks/web/useMessage";
39
39
  import { DownloadOutlined as we, EyeOutlined as ye, PaperClipOutlined as ke } from "@ant-design/icons-vue";
40
- import { L as De } from "./useExtendComponent-bb7cca20.mjs";
40
+ import { L as De } from "./useExtendComponent-dcae5c78.mjs";
41
41
  import { MarkdownViewer as Fe } from "/@/components/Markdown";
42
- import { getWeekMonthQuarterYear as be } from "/@/utils";
43
- import { _ as Ce } from "./index-173949bb.mjs";
42
+ import { getWeekMonthQuarterYear as Ce } from "/@/utils";
43
+ import { _ as be } from "./index-1d1a6e56.mjs";
44
44
  import "/@/components/Form/src/componentMap";
45
45
  import "/@/components/Modal";
46
46
  import "/@/components/Form/index";
@@ -55,18 +55,18 @@ import "/@/store/modules/permission";
55
55
  import "/@/components/Table";
56
56
  import "/@/hooks/system/useListPage";
57
57
  import "vue-router";
58
- import "./LinkTableListPiece-2660d709.mjs";
58
+ import "./LinkTableListPiece-f3a8e0d7.mjs";
59
59
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
60
60
  import "/@/utils/auth";
61
61
  import "/@/hooks/web/useAppInject";
62
62
  import "/@/assets/images/placeholderImage.png";
63
- import "./OnlineSelectCascade-471fcc76.mjs";
63
+ import "./OnlineSelectCascade-05c40fef.mjs";
64
64
  import "/@/components/Loading";
65
- import "./JModalTip-4a83aaed.mjs";
65
+ import "./JModalTip-b055ab60.mjs";
66
66
  import "ant-design-vue";
67
67
  import "@vueuse/core";
68
68
  function xe(a) {
69
- const s = {}, d = [], k = ae({}), { createMessage: C } = ve(), L = re(() => a.containerClass ? `jeecg-detail-form ${a.containerClass}` : "jeecg-detail-form");
69
+ const s = {}, d = [], k = ae({}), { createMessage: b } = ve(), L = re(() => a.containerClass ? `jeecg-detail-form ${a.containerClass}` : "jeecg-detail-form");
70
70
  oe(
71
71
  () => a.data,
72
72
  (e) => _(this, null, function* () {
@@ -98,7 +98,7 @@ function xe(a) {
98
98
  else if (t == "sel_search")
99
99
  i = yield D(e, n);
100
100
  else if (t == "cat_tree")
101
- i = yield O(e, n);
101
+ i = yield E(e, n);
102
102
  else if (t == "link_table")
103
103
  i = yield ee(e, n);
104
104
  else if (t == "sel_depart")
@@ -112,7 +112,7 @@ function xe(a) {
112
112
  else if (t == "sel_tree")
113
113
  i = yield h(e, n);
114
114
  else if (t == "switch")
115
- i = yield E(e, n);
115
+ i = yield I(e, n);
116
116
  else if (t == "image" || t == "file")
117
117
  i = Y(e, n);
118
118
  else if (t == "popup_dict") {
@@ -120,7 +120,7 @@ function xe(a) {
120
120
  o !== void 0 && (i = o);
121
121
  } else if (d.indexOf(e.field) >= 0) {
122
122
  let o = s[e.field];
123
- o && o.length > 0 && (i = I(o, l));
123
+ o && o.length > 0 && (i = O(o, l));
124
124
  }
125
125
  return i;
126
126
  }
@@ -134,11 +134,11 @@ function xe(a) {
134
134
  return i;
135
135
  let t = de(l);
136
136
  if (t && t.length > 0)
137
- return I(t, i);
137
+ return O(t, i);
138
138
  {
139
139
  let o = [];
140
140
  if (s[l] ? o = s[l] : o = (yield H(l)) || [], o && o.length > 0)
141
- return s[l] = o, I(o, i);
141
+ return s[l] = o, O(o, i);
142
142
  }
143
143
  return "";
144
144
  });
@@ -156,7 +156,7 @@ function xe(a) {
156
156
  return s[l + i] ? t = s[l + i] : t = (yield me.get({ url: `/sys/dict/loadDictItem/${l}`, params: { key: i } })) || [], t && t.length > 0 ? (s[l + i] = t, t.join(",")) : "";
157
157
  });
158
158
  }
159
- function O(e, n) {
159
+ function E(e, n) {
160
160
  return _(this, null, function* () {
161
161
  let l = n[e.field];
162
162
  if (!l)
@@ -173,8 +173,8 @@ function xe(a) {
173
173
  let i = r(e), t = i.store || "id", o = i.text || "departName", g = (yield ue({ ids: l, primaryKey: t })) || [];
174
174
  if (g && g.length > 0) {
175
175
  let y = [];
176
- for (let b of g)
177
- b[o] ? y.push(b[o]) : y.push(b.title);
176
+ for (let C of g)
177
+ C[o] ? y.push(C[o]) : y.push(C.title);
178
178
  return y.join(",");
179
179
  }
180
180
  return "";
@@ -189,10 +189,10 @@ function xe(a) {
189
189
  [i.store || "username"]: l
190
190
  }, y = ((yield pe(o)) || {}).records || [];
191
191
  if (y && y.length > 0) {
192
- let b = [], M = i.text || "realname";
192
+ let C = [], M = i.text || "realname";
193
193
  for (let N of y)
194
- b.push(N[M]);
195
- return b.join(",");
194
+ C.push(N[M]);
195
+ return C.join(",");
196
196
  }
197
197
  return "";
198
198
  });
@@ -215,7 +215,7 @@ function xe(a) {
215
215
  else if (l) {
216
216
  let o = JSON.parse(l);
217
217
  if (o) {
218
- let { table: g, txt: y, key: b, linkField: M } = o, N = `${g},${y},${b}`;
218
+ let { table: g, txt: y, key: C, linkField: M } = o, N = `${g},${y},${C}`;
219
219
  if (t = [...(yield H(N)) || []], t && t.length > 0 && (s[i] = t, M)) {
220
220
  let te = M.split(",");
221
221
  for (let U of te)
@@ -225,7 +225,7 @@ function xe(a) {
225
225
  }
226
226
  if (t && t.length > 0) {
227
227
  let o = n[i];
228
- return I(t, o);
228
+ return O(t, o);
229
229
  }
230
230
  return "";
231
231
  });
@@ -235,12 +235,12 @@ function xe(a) {
235
235
  let { dict: l, field: i } = e, t = [];
236
236
  if (s[i] ? t = s[i] : l && (t = yield H(l)), t && t.length > 0) {
237
237
  let o = n[i];
238
- return I(t, o);
238
+ return O(t, o);
239
239
  }
240
240
  return "";
241
241
  });
242
242
  }
243
- function E(e, n) {
243
+ function I(e, n) {
244
244
  return _(this, null, function* () {
245
245
  let { fieldExtendJson: l, field: i } = e, t = ["Y", "N"];
246
246
  l && (t = JSON.parse(l));
@@ -273,7 +273,7 @@ function xe(a) {
273
273
  function Q(e) {
274
274
  let n = k.value[e];
275
275
  if (!n || n.length == 0) {
276
- C.warning("无图片!");
276
+ b.warning("无图片!");
277
277
  return;
278
278
  }
279
279
  ge({ imageList: n });
@@ -319,12 +319,12 @@ const Te = se({
319
319
  containerClass: J.string.def("")
320
320
  },
321
321
  setup(a) {
322
- const { formContainerClass: s, detailFormData: d, getItemSpan: k, handleDownloadFile: C, handleViewImage: L, getFilename: x, getLabelWidthClass: w } = xe(a);
322
+ const { formContainerClass: s, detailFormData: d, getItemSpan: k, handleDownloadFile: b, handleViewImage: L, getFilename: x, getLabelWidthClass: w } = xe(a);
323
323
  return {
324
324
  formContainerClass: s,
325
325
  detailFormData: d,
326
326
  getItemSpan: k,
327
- handleDownloadFile: C,
327
+ handleDownloadFile: b,
328
328
  handleViewImage: L,
329
329
  getFilename: x,
330
330
  getLabelWidthClass: w,
@@ -341,7 +341,7 @@ const Te = se({
341
341
  if (!c)
342
342
  return "";
343
343
  let v = r.fieldExtendJson;
344
- return v && (v = JSON.parse(v), v.picker && v.picker != "default") ? be(c)[v.picker] : c.split(" ").shift();
344
+ return v && (v = JSON.parse(v), v.picker && v.picker != "default") ? Ce(c)[v.picker] : c.split(" ").shift();
345
345
  } else
346
346
  return c;
347
347
  },
@@ -366,24 +366,24 @@ const Le = {
366
366
  }, Ne = { class: "ant-upload-list ant-upload-list-picture-card" }, je = {
367
367
  class: "ant-upload-list-picture-card-container",
368
368
  style: { "margin-top": "8px" }
369
- }, Be = {
369
+ }, Ve = {
370
370
  class: "ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-picture-card",
371
371
  "data-has-actions": "true"
372
- }, Ve = { class: "ant-upload-list-item-info" }, He = ["src"], Ue = { class: "ant-upload-list-item-actions" }, Ae = {
372
+ }, Be = { class: "ant-upload-list-item-info" }, He = ["src", "onClick"], Ue = { class: "ant-upload-list-item-actions" }, Ae = {
373
373
  key: 5,
374
374
  class: "item-content"
375
375
  }, 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 = {
376
376
  key: 6,
377
377
  class: "item-content"
378
378
  };
379
- function Xe(a, s, d, k, C, L) {
380
- const x = T("MarkdownViewer"), w = T("link-table-card"), m = T("download-outlined"), D = T("eye-outlined"), O = T("paper-clip-outlined"), c = T("a-col"), F = T("a-row");
379
+ function Xe(a, s, d, k, b, L) {
380
+ const x = T("MarkdownViewer"), w = T("link-table-card"), m = T("download-outlined"), D = T("eye-outlined"), E = T("paper-clip-outlined"), c = T("a-col"), F = T("a-row");
381
381
  return f(), u("div", {
382
382
  class: j(a.formContainerClass)
383
383
  }, [
384
384
  $(F, null, {
385
385
  default: q(() => [
386
- (f(!0), u(S, null, B(a.schemas, (r, v) => (f(), K(c, {
386
+ (f(!0), u(S, null, V(a.schemas, (r, v) => (f(), K(c, {
387
387
  key: v,
388
388
  span: a.getItemSpan(r)
389
389
  }, {
@@ -392,7 +392,7 @@ function Xe(a, s, d, k, C, L) {
392
392
  p("div", {
393
393
  class: j(["item-title", a.getLabelWidthClass(r)]),
394
394
  title: r.label
395
- }, V(a.filterLable(r)) + ": ", 11, $e),
395
+ }, B(a.filterLable(r)) + ": ", 11, $e),
396
396
  r.view === "markdown" ? (f(), u("div", Ie, [
397
397
  $(x, {
398
398
  value: a.detailFormData[r.field],
@@ -420,22 +420,23 @@ function Xe(a, s, d, k, C, L) {
420
420
  }, null, 8, ["value", "valueField", "textField", "tableName", "multi"])) : (f(), u("span", Se))
421
421
  ])) : r.isImage ? (f(), u("div", Je, [
422
422
  p("div", Ne, [
423
- (f(!0), u(S, null, B(a.detailFormData[r.field], (h) => (f(), u("div", je, [
423
+ (f(!0), u(S, null, V(a.detailFormData[r.field], (h) => (f(), u("div", je, [
424
424
  p("span", null, [
425
- p("div", Be, [
426
- p("div", Ve, [
425
+ p("div", Ve, [
426
+ p("div", Be, [
427
427
  p("img", {
428
428
  src: h,
429
429
  alt: "图片不存在",
430
- class: "ant-upload-list-item-image"
430
+ class: "ant-upload-list-item-image",
431
+ onClick: (I) => a.handleViewImage(r.field)
431
432
  }, null, 8, He)
432
433
  ]),
433
434
  p("span", Ue, [
434
435
  $(m, {
435
- onClick: (E) => a.handleDownloadFile(h)
436
+ onClick: (I) => a.handleDownloadFile(h)
436
437
  }, null, 8, ["onClick"]),
437
438
  $(D, {
438
- onClick: (E) => a.handleViewImage(r.field)
439
+ onClick: (I) => a.handleViewImage(r.field)
439
440
  }, null, 8, ["onClick"])
440
441
  ])
441
442
  ])
@@ -444,23 +445,23 @@ function Xe(a, s, d, k, C, L) {
444
445
  ])
445
446
  ])) : r.isFile ? (f(), u("div", Ae, [
446
447
  p("div", We, [
447
- (f(!0), u(S, null, B(a.detailFormData[r.field], (h) => (f(), u("div", Re, [
448
+ (f(!0), u(S, null, V(a.detailFormData[r.field], (h) => (f(), u("div", Re, [
448
449
  p("span", null, [
449
450
  p("div", qe, [
450
451
  p("div", Ke, [
451
452
  p("span", Pe, [
452
453
  p("div", Ye, [
453
- $(O)
454
+ $(E)
454
455
  ]),
455
456
  p("a", {
456
457
  href: h,
457
458
  target: "_blank",
458
459
  rel: "noopener noreferrer",
459
460
  class: "ant-upload-list-item-name"
460
- }, V(a.getFilename(h)), 9, ze),
461
+ }, B(a.getFilename(h)), 9, ze),
461
462
  p("span", Qe, [
462
463
  $(m, {
463
- onClick: (E) => a.handleDownloadFile(h)
464
+ onClick: (I) => a.handleDownloadFile(h)
464
465
  }, null, 8, ["onClick"])
465
466
  ])
466
467
  ])
@@ -469,7 +470,7 @@ function Xe(a, s, d, k, C, L) {
469
470
  ])
470
471
  ]))), 256))
471
472
  ])
472
- ])) : (f(), u("div", Ge, V(a.filter(a.detailFormData[r.field], r.view, r)), 1))
473
+ ])) : (f(), u("div", Ge, B(a.filter(a.detailFormData[r.field], r.view, r)), 1))
473
474
  ]))
474
475
  ]),
475
476
  _: 2
@@ -479,7 +480,7 @@ function Xe(a, s, d, k, C, L) {
479
480
  })
480
481
  ], 2);
481
482
  }
482
- const Ut = /* @__PURE__ */ Ce(Te, [["render", Xe], ["__scopeId", "data-v-176992bf"]]);
483
+ const Ut = /* @__PURE__ */ be(Te, [["render", Xe], ["__scopeId", "data-v-05ca0a61"]]);
483
484
  export {
484
485
  Ut as default
485
486
  };
@@ -31,9 +31,9 @@ import { BasicForm as le, useForm as ce } from "/@/components/Form";
31
31
  import { BasicTable as ue, TableAction as me } from "/@/components/Table";
32
32
  import { useListPage as de } from "/@/hooks/system/useListPage";
33
33
  import { u as pe } from "./useOnlineTest-e4bd8be3.mjs";
34
- import { u as fe, a as ge } from "./enhance.data-3304d553.mjs";
34
+ import { u as fe, a as ge } from "./enhance.data-a67572e1.mjs";
35
35
  import { a as _e, b as he, d as L } from "./enhance.api-138e6826.mjs";
36
- import { _ as be } from "./index-173949bb.mjs";
36
+ import { _ as be } from "./index-1d1a6e56.mjs";
37
37
  import "./cgform.data-475d4984.mjs";
38
38
  import "/@/utils/dict";
39
39
  import "/@/utils/dict/JDictSelectUtil";
@@ -32,7 +32,7 @@ import { JCodeEditor as z } from "/@/components/Form";
32
32
  import "/@/store";
33
33
  import { defineStore as P } from "pinia";
34
34
  import { createLocalStorage as q } from "/@/utils/cache";
35
- import { _ as G } from "./index-173949bb.mjs";
35
+ import { _ as G } from "./index-1d1a6e56.mjs";
36
36
  const B = q(), H = "enhance_", K = P({
37
37
  id: "online-cgform-enhance",
38
38
  state: () => ({