@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.
- package/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
- package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
- package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
- package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
- package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
- package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
- package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
- package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
- package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
- package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
- package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
- package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
- package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
- package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
- package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
- package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
- package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
- package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
- package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
- package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
- package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
- package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
- package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
- package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
- package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
- package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
- package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
- package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
- package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
- package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
- package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
- package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
- package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
- package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
- package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
- package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
- package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
- package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
- package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
- package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
- package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
- package/index-1d1a6e56.mjs +57 -0
- package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
- package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
- package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-d50a0a65.mjs +0 -134
- package/AuthFieldConfig-490fc0ab.mjs +0 -139
- package/CgformModal-36faf29a.mjs +0 -621
- package/CodeGeneratorModal-b722d976.mjs +0 -238
- package/DbToOnlineModal-f49b9530.mjs +0 -166
- package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
- package/OnlineForm-018981b2.mjs +0 -924
- package/OnlineQueryForm-998c12a4.mjs +0 -444
- package/SuperQuery-cbfba908.mjs +0 -975
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/index-173949bb.mjs +0 -57
- package/useExtendComponent-bb7cca20.mjs +0 -4295
- package/useTableSync-f6089e8a.mjs +0 -87
- /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,
|
|
2
|
-
var
|
|
1
|
+
var u = (e, r, t) => new Promise((p, s) => {
|
|
2
|
+
var d = (o) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
s(
|
|
4
|
+
a(t.next(o));
|
|
5
|
+
} catch (n) {
|
|
6
|
+
s(n);
|
|
7
7
|
}
|
|
8
|
-
}, i = (
|
|
8
|
+
}, i = (o) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
s(
|
|
10
|
+
a(t.throw(o));
|
|
11
|
+
} catch (n) {
|
|
12
|
+
s(n);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
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
|
|
18
|
-
import { defineComponent as
|
|
19
|
-
import { defHttp as
|
|
20
|
-
import { g as b } from "./useExtendComponent-
|
|
21
|
-
import { _ as
|
|
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 "
|
|
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-
|
|
53
|
+
import "./LinkTableListPiece-f3a8e0d7.mjs";
|
|
54
54
|
import "/@/api/common/api";
|
|
55
55
|
import "/@/assets/images/placeholderImage.png";
|
|
56
|
-
import "./OnlineSelectCascade-
|
|
57
|
-
import "./JModalTip-
|
|
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
|
|
61
|
+
const $ = S({
|
|
62
62
|
name: "ProcessOnlineForm",
|
|
63
63
|
inheritAttrs: !1,
|
|
64
64
|
components: {
|
|
65
|
-
OnlineForm:
|
|
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 =
|
|
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 &&
|
|
90
|
+
c && a();
|
|
91
91
|
},
|
|
92
92
|
{ immediate: !0 }
|
|
93
93
|
);
|
|
94
|
-
function
|
|
94
|
+
function a() {
|
|
95
95
|
return u(this, null, function* () {
|
|
96
96
|
i.value = !0;
|
|
97
|
-
const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`,
|
|
97
|
+
const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`, k = { taskId: e.taskId };
|
|
98
98
|
try {
|
|
99
|
-
let
|
|
100
|
-
|
|
101
|
-
(yield b(r)).createRootProperties(
|
|
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 (
|
|
103
|
+
} catch (l) {
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
function
|
|
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
|
|
115
|
+
const n = m(!1);
|
|
116
116
|
function F() {
|
|
117
117
|
return u(this, null, function* () {
|
|
118
|
-
|
|
118
|
+
n.value = !0, r.value.handleSubmit();
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
function v() {
|
|
122
|
-
|
|
122
|
+
n.value = !1;
|
|
123
|
+
}
|
|
124
|
+
function I() {
|
|
125
|
+
n.value = !1;
|
|
123
126
|
}
|
|
124
127
|
return {
|
|
125
128
|
onlineFormCompRef: r,
|
|
126
|
-
formId:
|
|
127
|
-
formTemplate:
|
|
129
|
+
formId: t,
|
|
130
|
+
formTemplate: p,
|
|
128
131
|
isTreeForm: s,
|
|
129
|
-
pidFieldName:
|
|
130
|
-
renderSuccess:
|
|
132
|
+
pidFieldName: d,
|
|
133
|
+
renderSuccess: o,
|
|
131
134
|
handleSuccess: v,
|
|
135
|
+
handleClose: I,
|
|
132
136
|
handleSubmit: F,
|
|
133
|
-
buttonLoading:
|
|
137
|
+
buttonLoading: n,
|
|
134
138
|
spinLoading: i
|
|
135
139
|
};
|
|
136
140
|
}
|
|
137
|
-
}),
|
|
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
|
|
142
|
-
const i = f("a-button"),
|
|
143
|
-
return
|
|
144
|
-
|
|
145
|
-
default:
|
|
146
|
-
|
|
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:
|
|
157
|
-
!e.disabled && !e.spinLoading ? (
|
|
158
|
-
|
|
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:
|
|
171
|
+
default: h(() => [
|
|
166
172
|
N(" 提 交 ")
|
|
167
173
|
]),
|
|
168
174
|
_: 1
|
|
169
175
|
}, 8, ["onClick", "loading"])
|
|
170
|
-
])) :
|
|
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__ */
|
|
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
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
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
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var l of
|
|
10
|
-
|
|
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) =>
|
|
13
|
-
import { defineComponent as
|
|
14
|
-
import { JVxeTypes as
|
|
15
|
-
import { u as
|
|
16
|
-
import { _ as
|
|
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
|
|
25
|
+
const I = V({
|
|
26
26
|
name: "QueryTable",
|
|
27
27
|
emits: ["query"],
|
|
28
28
|
setup(e, { emit: t }) {
|
|
29
|
-
const l =
|
|
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:
|
|
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:
|
|
67
|
+
validateRules: [{ handler: n }]
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
title: "字典Table",
|
|
71
71
|
key: "queryDictTable",
|
|
72
72
|
width: 130,
|
|
73
|
-
type:
|
|
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:
|
|
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:
|
|
87
|
+
type: r.input,
|
|
88
88
|
defaultValue: ""
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
title: "默认值",
|
|
92
92
|
key: "queryDefVal",
|
|
93
93
|
width: 130,
|
|
94
|
-
type:
|
|
94
|
+
type: r.input,
|
|
95
95
|
defaultValue: ""
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
title: "是否启用",
|
|
99
99
|
key: "queryConfigFlag",
|
|
100
100
|
minWidth: 80,
|
|
101
|
-
type:
|
|
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:
|
|
108
|
-
const
|
|
109
|
-
if (["link_table"].includes(
|
|
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
|
|
112
|
-
|
|
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
|
-
]),
|
|
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
|
|
124
|
+
function n({ cellValue: a, row: o }, i) {
|
|
122
125
|
a == null && o.queryConfigFlag == "1" && i(!1, "查询启用状态下,控件类型必选~"), i(!0);
|
|
123
126
|
}
|
|
124
|
-
return h(
|
|
127
|
+
return h(b({}, d), { columns: l, handleChange: y });
|
|
125
128
|
}
|
|
126
129
|
});
|
|
127
|
-
function
|
|
128
|
-
const
|
|
129
|
-
return w(),
|
|
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
|
|
144
|
+
const L = /* @__PURE__ */ $(I, [["render", M]]);
|
|
142
145
|
export {
|
|
143
|
-
|
|
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-
|
|
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";
|