@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
@@ -1,24 +1,24 @@
1
- var u = (e, r, o) => new Promise((d, s) => {
2
- var l = (t) => {
1
+ var u = (e, r, t) => new Promise((p, s) => {
2
+ var d = (o) => {
3
3
  try {
4
- n(o.next(t));
5
- } catch (m) {
6
- s(m);
4
+ a(t.next(o));
5
+ } catch (n) {
6
+ s(n);
7
7
  }
8
- }, i = (t) => {
8
+ }, i = (o) => {
9
9
  try {
10
- n(o.throw(t));
11
- } catch (m) {
12
- s(m);
10
+ a(t.throw(o));
11
+ } catch (n) {
12
+ s(n);
13
13
  }
14
- }, n = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(l, i);
15
- n((o = o.apply(e, r)).next());
14
+ }, a = (o) => o.done ? p(o.value) : Promise.resolve(o.value).then(d, i);
15
+ a((t = t.apply(e, r)).next());
16
16
  });
17
- import S from "./OnlineForm-018981b2.mjs";
18
- import { defineComponent as k, ref as a, watch as T, nextTick as w, resolveComponent as f, openBlock as h, createElementBlock as y, createVNode as _, withCtx as g, createTextVNode as N, createCommentVNode as C } from "vue";
19
- import { defHttp as P } from "/@/utils/http/axios";
20
- import { g as b } from "./useExtendComponent-bb7cca20.mjs";
21
- import { _ as R } from "./index-173949bb.mjs";
17
+ import C from "./OnlineForm-9f1153ba.mjs";
18
+ import { defineComponent as S, ref as m, watch as T, nextTick as w, resolveComponent as f, openBlock as _, createElementBlock as y, createVNode as g, withCtx as h, createTextVNode as N, createCommentVNode as P } from "vue";
19
+ import { defHttp as R } from "/@/utils/http/axios";
20
+ import { g as b } from "./useExtendComponent-dcae5c78.mjs";
21
+ import { _ as L } from "./index-1d1a6e56.mjs";
22
22
  import "/@/hooks/web/useMessage";
23
23
  import "/@/components/Form/index";
24
24
  import "lodash-es";
@@ -37,32 +37,32 @@ import "/@/store/modules/user";
37
37
  import "./constant-fa63bd66.mjs";
38
38
  import "/@/hooks/web/useAppInject";
39
39
  import "/@/utils/is";
40
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
40
+ import "/@/store/modules/permission";
41
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
41
42
  import "/@/components/Form/src/componentMap";
42
43
  import "/@/utils/propTypes";
43
44
  import "/@/components/Form/src/jeecg/components/JUpload";
44
45
  import "/@/views/system/user/user.api";
45
46
  import "/@/utils/desform/customExpression";
46
- import "/@/store/modules/permission";
47
47
  import "/@/utils/dict/JDictSelectUtil";
48
48
  import "/@/components/Table";
49
49
  import "/@/hooks/system/useListPage";
50
50
  import "vue-router";
51
51
  import "/@/components/Form/src/utils/Area";
52
52
  import "/@/components/Preview/index";
53
- import "./LinkTableListPiece-2660d709.mjs";
53
+ import "./LinkTableListPiece-f3a8e0d7.mjs";
54
54
  import "/@/api/common/api";
55
55
  import "/@/assets/images/placeholderImage.png";
56
- import "./OnlineSelectCascade-471fcc76.mjs";
57
- import "./JModalTip-4a83aaed.mjs";
56
+ import "./OnlineSelectCascade-05c40fef.mjs";
57
+ import "./JModalTip-b055ab60.mjs";
58
58
  import "ant-design-vue";
59
59
  import "@vueuse/core";
60
60
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
61
- const L = k({
61
+ const $ = S({
62
62
  name: "ProcessOnlineForm",
63
63
  inheritAttrs: !1,
64
64
  components: {
65
- OnlineForm: S
65
+ OnlineForm: C
66
66
  },
67
67
  props: {
68
68
  dataId: {
@@ -83,28 +83,28 @@ const L = k({
83
83
  }
84
84
  },
85
85
  setup(e) {
86
- const r = a(), o = a(""), d = a(1), s = a(!1), l = a(""), i = a(!1);
86
+ const r = m(), t = m(""), p = m(1), s = m(!1), d = m(""), i = m(!1);
87
87
  T(
88
88
  () => e.tableName,
89
89
  (c) => {
90
- c && n();
90
+ c && a();
91
91
  },
92
92
  { immediate: !0 }
93
93
  );
94
- function n() {
94
+ function a() {
95
95
  return u(this, null, function* () {
96
96
  i.value = !0;
97
- const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`, I = { taskId: e.taskId };
97
+ const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`, k = { taskId: e.taskId };
98
98
  try {
99
- let p = yield P.get({ url: c, params: I });
100
- o.value = p.head.id, d.value = Number(p.head.formTemplate || 1), s.value = p.head.isTree === "Y", l.value = p.head.treeParentIdField || "", yield w(() => u(this, null, function* () {
101
- (yield b(r)).createRootProperties(p);
99
+ let l = yield R.get({ url: c, params: k });
100
+ t.value = l.head.id, p.value = Number(l.head.formTemplate || 1), s.value = l.head.isTree === "Y", d.value = l.head.treeParentIdField || "", yield w(() => u(this, null, function* () {
101
+ (yield b(r)).createRootProperties(l);
102
102
  }));
103
- } catch (p) {
103
+ } catch (l) {
104
104
  }
105
105
  });
106
106
  }
107
- function t() {
107
+ function o() {
108
108
  return u(this, null, function* () {
109
109
  let c = yield b(r);
110
110
  i.value = !1, c.show(!0, {
@@ -112,71 +112,77 @@ const L = k({
112
112
  });
113
113
  });
114
114
  }
115
- const m = a(!1);
115
+ const n = m(!1);
116
116
  function F() {
117
117
  return u(this, null, function* () {
118
- m.value = !0, r.value.handleSubmit();
118
+ n.value = !0, r.value.handleSubmit();
119
119
  });
120
120
  }
121
121
  function v() {
122
- m.value = !1;
122
+ n.value = !1;
123
+ }
124
+ function I() {
125
+ n.value = !1;
123
126
  }
124
127
  return {
125
128
  onlineFormCompRef: r,
126
- formId: o,
127
- formTemplate: d,
129
+ formId: t,
130
+ formTemplate: p,
128
131
  isTreeForm: s,
129
- pidFieldName: l,
130
- renderSuccess: t,
132
+ pidFieldName: d,
133
+ renderSuccess: o,
131
134
  handleSuccess: v,
135
+ handleClose: I,
132
136
  handleSubmit: F,
133
- buttonLoading: m,
137
+ buttonLoading: n,
134
138
  spinLoading: i
135
139
  };
136
140
  }
137
- }), $ = { class: "cust-onl-form" }, B = {
141
+ }), B = { class: "cust-onl-form" }, O = {
138
142
  key: 0,
139
143
  style: { width: "100%", "text-align": "center", "margin-top": "5px" }
140
144
  };
141
- function O(e, r, o, d, s, l) {
142
- const i = f("a-button"), n = f("online-form"), t = f("a-spin");
143
- return h(), y("div", $, [
144
- _(t, { spinning: e.spinLoading }, {
145
- default: g(() => [
146
- _(n, {
145
+ function V(e, r, t, p, s, d) {
146
+ const i = f("a-button"), a = f("online-form"), o = f("a-spin");
147
+ return _(), y("div", B, [
148
+ g(o, { spinning: e.spinLoading }, {
149
+ default: h(() => [
150
+ g(a, {
147
151
  ref: "onlineFormCompRef",
148
152
  id: e.formId,
149
153
  disabled: e.disabled,
150
154
  "form-template": e.formTemplate,
151
155
  isTree: e.isTreeForm,
152
156
  pidField: e.pidFieldName,
157
+ taskId: e.taskId,
153
158
  onRendered: e.renderSuccess,
154
- onSuccess: e.handleSuccess
159
+ onSuccess: e.handleSuccess,
160
+ onClose: e.handleClose
155
161
  }, {
156
- bottom: g(() => [
157
- !e.disabled && !e.spinLoading ? (h(), y("div", B, [
158
- _(i, {
162
+ bottom: h(() => [
163
+ !e.disabled && !e.spinLoading ? (_(), y("div", O, [
164
+ g(i, {
159
165
  preIcon: "ant-design:check",
160
166
  style: { width: "126px" },
161
167
  type: "primary",
162
168
  onClick: e.handleSubmit,
163
169
  loading: e.buttonLoading
164
170
  }, {
165
- default: g(() => [
171
+ default: h(() => [
166
172
  N(" 提 交 ")
167
173
  ]),
168
174
  _: 1
169
175
  }, 8, ["onClick", "loading"])
170
- ])) : C("", !0)
176
+ ])) : P("", !0)
171
177
  ]),
172
178
  _: 1
173
- }, 8, ["id", "disabled", "form-template", "isTree", "pidField", "onRendered", "onSuccess"])
179
+ }, 8, ["id", "disabled", "form-template", "isTree", "pidField", "taskId", "onRendered", "onSuccess", "onClose"])
174
180
  ]),
175
181
  _: 1
176
182
  }, 8, ["spinning"])
177
183
  ]);
178
184
  }
179
- const Ne = /* @__PURE__ */ R(L, [["render", O], ["__scopeId", "data-v-530d8f91"]]);
185
+ const Ne = /* @__PURE__ */ L($, [["render", V], ["__scopeId", "data-v-a4356798"]]);
180
186
  export {
181
187
  Ne as default
182
188
  };
@@ -1,19 +1,19 @@
1
- var v = Object.defineProperty, g = Object.defineProperties;
2
- var T = Object.getOwnPropertyDescriptors;
3
- var m = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
5
- var c = (e, t, l) => t in e ? v(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, f = (e, t) => {
1
+ var T = Object.defineProperty, _ = Object.defineProperties;
2
+ var C = Object.getOwnPropertyDescriptors;
3
+ var c = Object.getOwnPropertySymbols;
4
+ var k = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
+ var f = (e, t, l) => t in e ? T(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, b = (e, t) => {
6
6
  for (var l in t || (t = {}))
7
- _.call(t, l) && c(e, l, t[l]);
8
- if (m)
9
- for (var l of m(t))
10
- k.call(t, l) && c(e, l, t[l]);
7
+ k.call(t, l) && f(e, l, t[l]);
8
+ if (c)
9
+ for (var l of c(t))
10
+ q.call(t, l) && f(e, l, t[l]);
11
11
  return e;
12
- }, h = (e, t) => g(e, T(t));
13
- import { defineComponent as C, ref as q, resolveComponent as V, openBlock as w, createBlock as x, mergeProps as F } from "vue";
14
- import { JVxeTypes as u } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as H } from "./useTableSync-f6089e8a.mjs";
16
- import { _ as S } from "./index-173949bb.mjs";
12
+ }, h = (e, t) => _(e, C(t));
13
+ import { defineComponent as V, ref as F, resolveComponent as x, openBlock as w, createBlock as H, mergeProps as S } from "vue";
14
+ import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
15
+ import { u as P } from "./useTableSync-d7e9f18d.mjs";
16
+ import { _ as $ } from "./index-1d1a6e56.mjs";
17
17
  import "./cgform.data-475d4984.mjs";
18
18
  import "/@/utils/dict";
19
19
  import "/@/utils/dict/JDictSelectUtil";
@@ -22,18 +22,18 @@ import "lodash-es";
22
22
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
23
  import "/@/hooks/web/useMessage";
24
24
  import "vue-router";
25
- const D = C({
25
+ const I = V({
26
26
  name: "QueryTable",
27
27
  emits: ["query"],
28
28
  setup(e, { emit: t }) {
29
- const l = q([
29
+ const l = F([
30
30
  { title: "字段名称", key: "dbFieldName", width: 130 },
31
31
  { title: "字段备注", key: "dbFieldTxt", width: 130 },
32
32
  {
33
33
  title: "控件类型",
34
34
  key: "queryShowType",
35
35
  width: 170,
36
- type: u.select,
36
+ type: r.select,
37
37
  options: [
38
38
  { title: "文本框", value: "text" },
39
39
  { title: "日期(yyyy-MM-dd)", value: "date" },
@@ -64,69 +64,72 @@ const D = C({
64
64
  ],
65
65
  defaultValue: "text",
66
66
  placeholder: "请选择${title}",
67
- validateRules: [{ handler: d }]
67
+ validateRules: [{ handler: n }]
68
68
  },
69
69
  {
70
70
  title: "字典Table",
71
71
  key: "queryDictTable",
72
72
  width: 130,
73
- type: u.textarea,
73
+ type: r.textarea,
74
74
  defaultValue: ""
75
75
  },
76
76
  {
77
77
  title: "字典Code",
78
78
  key: "queryDictField",
79
79
  width: 130,
80
- type: u.input,
80
+ type: r.input,
81
81
  defaultValue: ""
82
82
  },
83
83
  {
84
84
  title: "字典Text",
85
85
  key: "queryDictText",
86
86
  width: 130,
87
- type: u.input,
87
+ type: r.input,
88
88
  defaultValue: ""
89
89
  },
90
90
  {
91
91
  title: "默认值",
92
92
  key: "queryDefVal",
93
93
  width: 130,
94
- type: u.input,
94
+ type: r.input,
95
95
  defaultValue: ""
96
96
  },
97
97
  {
98
98
  title: "是否启用",
99
99
  key: "queryConfigFlag",
100
100
  minWidth: 80,
101
- type: u.checkbox,
101
+ type: r.checkbox,
102
102
  customValue: ["1", "0"],
103
103
  defaultChecked: !1,
104
104
  // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-816】如果是关联记录或者没勾选数据库字段个性化查询checkbox禁用
105
105
  props: {
106
106
  isDisabledCell({ row: a, column: o }) {
107
- let { pageTable: i, dbTable: b } = p;
108
- const n = i.value.tableRef.getTableData({ rowIds: [a.id] })[0];
109
- if (["link_table"].includes(n == null ? void 0 : n.fieldShowType))
107
+ let { pageTable: i, dbTable: v, fkTable: g } = m;
108
+ const s = i.value.tableRef.getTableData({ rowIds: [a.id] })[0];
109
+ if (["link_table"].includes(s == null ? void 0 : s.fieldShowType))
110
110
  return a.queryConfigFlag = "0", !0;
111
- const s = b.value.tableRef.getTableData({ rowIds: [a.id] })[0];
112
- return (s == null ? void 0 : s.dbIsPersist) == "0" ? (a.queryConfigFlag = "0", !0) : !1;
111
+ const p = v.value.tableRef.getTableData({ rowIds: [a.id] })[0];
112
+ if ((p == null ? void 0 : p.dbIsPersist) == "0")
113
+ return a.queryConfigFlag = "0", !0;
114
+ const u = g.value.tableRef.getTableData({ rowIds: [a.id] })[0];
115
+ return !!(u != null && u.mainTable && (u != null && u.mainField));
113
116
  }
114
117
  }
115
118
  // update-end--author:liaozhiyang---date:20240603---for:【TV360X-816】如果是关联记录或者没勾选数据库字段个性化查询checkbox禁用
116
119
  }
117
- ]), r = H(l), { tables: p } = r;
120
+ ]), d = P(l), { tables: m } = d;
118
121
  function y({ row: a, column: o, value: i }) {
119
122
  o.key === "queryConfigFlag" && i === "1" && t("query", a.id);
120
123
  }
121
- function d({ cellValue: a, row: o }, i) {
124
+ function n({ cellValue: a, row: o }, i) {
122
125
  a == null && o.queryConfigFlag == "1" && i(!1, "查询启用状态下,控件类型必选~"), i(!0);
123
126
  }
124
- return h(f({}, r), { columns: l, handleChange: y });
127
+ return h(b({}, d), { columns: l, handleChange: y });
125
128
  }
126
129
  });
127
- function P(e, t, l, r, p, y) {
128
- const d = V("JVxeTable");
129
- return w(), x(d, F({
130
+ function M(e, t, l, d, m, y) {
131
+ const n = x("JVxeTable");
132
+ return w(), H(n, S({
130
133
  ref: "tableRef",
131
134
  rowNumber: "",
132
135
  keyboardEdit: "",
@@ -138,7 +141,7 @@ function P(e, t, l, r, p, y) {
138
141
  onValueChange: e.handleChange
139
142
  }, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]);
140
143
  }
141
- const G = /* @__PURE__ */ S(D, [["render", P]]);
144
+ const L = /* @__PURE__ */ $(I, [["render", M]]);
142
145
  export {
143
- G as default
146
+ L as default
144
147
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as c, watch as m, onMounted as f, resolveComponent as N, openBlock as h, createElementBlock as S, createElementVNode as l, createVNode as v, pushScopeId as g, popScopeId as b } from "vue";
2
2
  import { isArray as w } from "/@/utils/is";
3
- import { _ as y } from "./index-173949bb.mjs";
3
+ import { _ as y } from "./index-1d1a6e56.mjs";
4
4
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
5
  import "/@/hooks/web/useMessage";
6
6
  import "vue-router";