@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
|
@@ -31,13 +31,13 @@ import { Loading as le } from "/@/components/Loading";
|
|
|
31
31
|
import { getToken as me } from "/@/utils/auth";
|
|
32
32
|
import { goJmReportViewPage as se } from "/@/utils";
|
|
33
33
|
import { PrinterOutlined as pe } from "@ant-design/icons-vue";
|
|
34
|
-
import ue from "./DetailForm-
|
|
35
|
-
import ce from "./OnlineSubFormDetail-
|
|
36
|
-
import { k as fe } from "./useExtendComponent-
|
|
34
|
+
import ue from "./DetailForm-deecbf3d.mjs";
|
|
35
|
+
import ce from "./OnlineSubFormDetail-58e896ce.mjs";
|
|
36
|
+
import { k as fe } from "./useExtendComponent-dcae5c78.mjs";
|
|
37
37
|
import { defHttp as de } from "/@/utils/http/axios";
|
|
38
38
|
import { E as be, T as ge } from "./constant-fa63bd66.mjs";
|
|
39
39
|
import { useAppInject as he } from "/@/hooks/web/useAppInject";
|
|
40
|
-
import { _ as _e } from "./index-
|
|
40
|
+
import { _ as _e } from "./index-1d1a6e56.mjs";
|
|
41
41
|
import "/@/utils/propTypes";
|
|
42
42
|
import "/@/utils/dict";
|
|
43
43
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -60,11 +60,11 @@ import "/@/store/modules/permission";
|
|
|
60
60
|
import "/@/components/Table";
|
|
61
61
|
import "/@/hooks/system/useListPage";
|
|
62
62
|
import "vue-router";
|
|
63
|
-
import "./LinkTableListPiece-
|
|
63
|
+
import "./LinkTableListPiece-f3a8e0d7.mjs";
|
|
64
64
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
65
65
|
import "/@/assets/images/placeholderImage.png";
|
|
66
|
-
import "./OnlineSelectCascade-
|
|
67
|
-
import "./JModalTip-
|
|
66
|
+
import "./OnlineSelectCascade-05c40fef.mjs";
|
|
67
|
+
import "./JModalTip-b055ab60.mjs";
|
|
68
68
|
import "ant-design-vue";
|
|
69
69
|
import "@vueuse/core";
|
|
70
70
|
const ye = {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Y = Object.defineProperty, Z = Object.defineProperties;
|
|
2
|
+
var ee = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var R = Object.getOwnPropertySymbols;
|
|
4
|
+
var te = Object.prototype.hasOwnProperty, le = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var N = (i, u, s) => u in i ? Y(i, u, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[u] = s, E = (i, u) => {
|
|
6
6
|
for (var s in u || (u = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var s of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
import { defineComponent as
|
|
7
|
+
te.call(u, s) && N(i, s, u[s]);
|
|
8
|
+
if (R)
|
|
9
|
+
for (var s of R(u))
|
|
10
|
+
le.call(u, s) && N(i, s, u[s]);
|
|
11
|
+
return i;
|
|
12
|
+
}, I = (i, u) => Z(i, ee(u));
|
|
13
|
+
import { defineComponent as ie, ref as ae, resolveComponent as h, openBlock as P, createElementBlock as oe, Fragment as se, createVNode as w, mergeProps as de, withCtx as H, createBlock as ne, createTextVNode as ue, createCommentVNode as re } from "vue";
|
|
14
14
|
import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
-
import { u as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { useModal as
|
|
20
|
-
import { _ as pe } from "./index-
|
|
15
|
+
import { u as fe } from "./useTableSync-d7e9f18d.mjs";
|
|
16
|
+
import ce from "./LinkTableConfigModal-9242d750.mjs";
|
|
17
|
+
import me from "./LinkTableFieldConfigModal-24adc50c.mjs";
|
|
18
|
+
import be from "./FieldExtendJsonModal-32135634.mjs";
|
|
19
|
+
import { useModal as S } from "/@/components/Modal";
|
|
20
|
+
import { _ as pe } from "./index-1d1a6e56.mjs";
|
|
21
21
|
import "./cgform.data-475d4984.mjs";
|
|
22
22
|
import "/@/utils/dict";
|
|
23
23
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -26,12 +26,12 @@ import "lodash-es";
|
|
|
26
26
|
import "/@/components/Form/index";
|
|
27
27
|
import "/@/utils/http/axios";
|
|
28
28
|
import "/@/hooks/web/useMessage";
|
|
29
|
-
import "./SetSwitchOptions-
|
|
29
|
+
import "./SetSwitchOptions-b2af757f.mjs";
|
|
30
30
|
import "/@/utils/is";
|
|
31
31
|
import "./constant-fa63bd66.mjs";
|
|
32
32
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
33
33
|
import "vue-router";
|
|
34
|
-
const
|
|
34
|
+
const K = [
|
|
35
35
|
{ title: "文本框", value: "text" },
|
|
36
36
|
{ title: "密码", value: "password" },
|
|
37
37
|
{ title: "下拉框", value: "list" },
|
|
@@ -60,7 +60,7 @@ const H = [
|
|
|
60
60
|
{ title: "分类字典树", value: "cat_tree" },
|
|
61
61
|
{ title: "自定义树控件", value: "sel_tree" },
|
|
62
62
|
{ title: "联动组件", value: "link_down" }
|
|
63
|
-
],
|
|
63
|
+
], ge = [
|
|
64
64
|
{ title: "文本框", value: "text" },
|
|
65
65
|
{ title: "单选框", value: "radio" },
|
|
66
66
|
{ title: "开关", value: "switch" },
|
|
@@ -74,21 +74,21 @@ const H = [
|
|
|
74
74
|
{ title: "下拉搜索框", value: "sel_search" },
|
|
75
75
|
{ title: "popup弹出框", value: "popup" },
|
|
76
76
|
// update-begin--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
|
|
77
|
-
{ title:
|
|
77
|
+
// { title: 'Popup字典', value: 'popup_dict' },
|
|
78
78
|
// update-end--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
|
|
79
79
|
{ title: "部门选择", value: "sel_depart" },
|
|
80
80
|
{ title: "用户选择", value: "sel_user" },
|
|
81
81
|
{ title: "省市区组件", value: "pca" },
|
|
82
82
|
{ title: "多行文本", value: "textarea" }
|
|
83
|
-
],
|
|
83
|
+
], ye = ie({
|
|
84
84
|
name: "PageAttributeTable",
|
|
85
85
|
components: {
|
|
86
|
-
LinkTableConfigModal:
|
|
87
|
-
LinkTableFieldConfigModal:
|
|
88
|
-
FieldExtendJsonModal:
|
|
86
|
+
LinkTableConfigModal: ce,
|
|
87
|
+
LinkTableFieldConfigModal: me,
|
|
88
|
+
FieldExtendJsonModal: be
|
|
89
89
|
},
|
|
90
90
|
setup() {
|
|
91
|
-
const
|
|
91
|
+
const i = ae([
|
|
92
92
|
{ title: "字段名称", key: "dbFieldName", width: 100 },
|
|
93
93
|
{ title: "字段备注", key: "dbFieldTxt", width: 150 },
|
|
94
94
|
{
|
|
@@ -120,8 +120,8 @@ const H = [
|
|
|
120
120
|
// update-begin--author:liaozhiyang---date:20240528---for:【TV360X-291】没勾选同步数据库禁用排序功能
|
|
121
121
|
props: {
|
|
122
122
|
isDisabledCell({ row: e, column: t }) {
|
|
123
|
-
let { dbTable:
|
|
124
|
-
const a =
|
|
123
|
+
let { dbTable: l } = c;
|
|
124
|
+
const a = l.value.tableRef.getTableData({ rowIds: [e.id] })[0];
|
|
125
125
|
return (a == null ? void 0 : a.dbIsPersist) == "0";
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -141,10 +141,10 @@ const H = [
|
|
|
141
141
|
key: "fieldShowType",
|
|
142
142
|
width: 170,
|
|
143
143
|
type: r.select,
|
|
144
|
-
options:
|
|
144
|
+
options: K,
|
|
145
145
|
defaultValue: "text",
|
|
146
146
|
placeholder: "请选择${title}",
|
|
147
|
-
validateRules: [{ required: !0, message: "请选择${title}" }, { handler:
|
|
147
|
+
validateRules: [{ required: !0, message: "请选择${title}" }, { handler: V }]
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
title: "控件长度",
|
|
@@ -166,8 +166,8 @@ const H = [
|
|
|
166
166
|
// update-begin--author:liaozhiyang---date:20240528---for:【TV360X-423】未勾选同步数据库禁用查询
|
|
167
167
|
props: {
|
|
168
168
|
isDisabledCell({ row: e, column: t }) {
|
|
169
|
-
let { dbTable:
|
|
170
|
-
const a =
|
|
169
|
+
let { dbTable: l } = c;
|
|
170
|
+
const a = l.value.tableRef.getTableData({ rowIds: [e.id] })[0];
|
|
171
171
|
return (a == null ? void 0 : a.dbIsPersist) == "0";
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -180,10 +180,16 @@ const H = [
|
|
|
180
180
|
type: r.select,
|
|
181
181
|
options: [
|
|
182
182
|
{ title: "普通查询", value: "single" },
|
|
183
|
+
{ title: "模糊查询", value: "like" },
|
|
183
184
|
{ title: "范围查询", value: "group" }
|
|
184
185
|
],
|
|
185
186
|
defaultValue: "single",
|
|
186
|
-
placeholder: "请选择${title}"
|
|
187
|
+
placeholder: "请选择${title}",
|
|
188
|
+
validateRules: [{ handler: U }],
|
|
189
|
+
props: {
|
|
190
|
+
isDisabledCell({ row: e, column: t }) {
|
|
191
|
+
}
|
|
192
|
+
}
|
|
187
193
|
},
|
|
188
194
|
{
|
|
189
195
|
title: "控件默认值",
|
|
@@ -216,14 +222,14 @@ const H = [
|
|
|
216
222
|
type: r.slot,
|
|
217
223
|
slotName: "fieldConfig"
|
|
218
224
|
}
|
|
219
|
-
]), u =
|
|
220
|
-
function
|
|
221
|
-
let { dbTable: a } =
|
|
222
|
-
e === "time" && o !== "string" ?
|
|
225
|
+
]), u = fe(i), { tableRef: s, tables: c } = u;
|
|
226
|
+
function V({ cellValue: e, row: t }, l) {
|
|
227
|
+
let { dbTable: a } = c, o = a.value.tableRef.getTableData({ rowIds: [t.id] })[0].dbType;
|
|
228
|
+
e === "time" && o !== "string" ? l(!1, "当控件类型为时间时,数据库属性里的字段类型必须是String!") : e === "date" && o !== "Date" && o !== "Datetime" ? l(!1, "当控件类型为日期时,数据库属性里的字段类型必须是Date或Datetime!") : e === "datetime" && o !== "Datetime" ? l(!1, "当控件类型为datetime时,数据库属性里的字段类型必须是Datetime!") : l(!0);
|
|
223
229
|
}
|
|
224
|
-
function
|
|
225
|
-
let t = "
|
|
226
|
-
e.dbType === "Datetime"
|
|
230
|
+
function C(e) {
|
|
231
|
+
let t = "text";
|
|
232
|
+
e.dbType === "Datetime" ? t = "datetime" : e.dbType === "Date" && (t = "date"), s.value.setValues([
|
|
227
233
|
{
|
|
228
234
|
rowKey: e.id,
|
|
229
235
|
values: { fieldShowType: t }
|
|
@@ -239,9 +245,9 @@ const H = [
|
|
|
239
245
|
]);
|
|
240
246
|
}
|
|
241
247
|
function F(e) {
|
|
242
|
-
for (let t of
|
|
248
|
+
for (let t of i.value)
|
|
243
249
|
if (t.key == "fieldShowType") {
|
|
244
|
-
t.options = e ?
|
|
250
|
+
t.options = e ? ge : K;
|
|
245
251
|
break;
|
|
246
252
|
}
|
|
247
253
|
}
|
|
@@ -253,37 +259,37 @@ const H = [
|
|
|
253
259
|
}
|
|
254
260
|
]);
|
|
255
261
|
}
|
|
256
|
-
const [x, { openModal:
|
|
257
|
-
function
|
|
262
|
+
const [x, { openModal: D }] = S(), [v, { openModal: M }] = S(), [O, { openModal: $ }] = S();
|
|
263
|
+
function B(e) {
|
|
258
264
|
return e.row.dbFieldName != "id";
|
|
259
265
|
}
|
|
260
|
-
function
|
|
266
|
+
function Q(e) {
|
|
261
267
|
e.row.fieldShowType.indexOf("link_table") >= 0 ? J(e) : z(e);
|
|
262
268
|
}
|
|
263
269
|
function J(e) {
|
|
264
|
-
let { row: t } = e, { checkTable:
|
|
265
|
-
if (
|
|
266
|
-
let a =
|
|
270
|
+
let { row: t } = e, { checkTable: l } = c;
|
|
271
|
+
if (l) {
|
|
272
|
+
let a = l.value.tableRef.getTableData({ rowIds: [t.id] })[0];
|
|
267
273
|
if (e.row.fieldShowType == "link_table") {
|
|
268
|
-
let o =
|
|
269
|
-
|
|
274
|
+
let o = L(t, a);
|
|
275
|
+
D(!0, {
|
|
270
276
|
record: o,
|
|
271
277
|
fieldName: t.dbFieldName
|
|
272
278
|
});
|
|
273
279
|
} else if (e.row.fieldShowType == "link_table_field") {
|
|
274
|
-
let o =
|
|
280
|
+
let o = A(t, a);
|
|
275
281
|
M(!0, o);
|
|
276
282
|
}
|
|
277
283
|
}
|
|
278
284
|
}
|
|
279
|
-
function
|
|
285
|
+
function A(e, t) {
|
|
280
286
|
let a = s.value.getTableData().filter((g) => g.fieldShowType == "link_table"), o = {};
|
|
281
287
|
if (a && a.length > 0) {
|
|
282
|
-
let g =
|
|
288
|
+
let g = c.checkTable.value.tableRef.getTableData();
|
|
283
289
|
for (let T of a) {
|
|
284
|
-
let
|
|
285
|
-
if (
|
|
286
|
-
let b =
|
|
290
|
+
let y = g.filter((b) => b.dbFieldName == T.dbFieldName);
|
|
291
|
+
if (y && y.length > 0) {
|
|
292
|
+
let b = y[0];
|
|
287
293
|
o[b.dbFieldName] = {
|
|
288
294
|
title: T.dbFieldTxt,
|
|
289
295
|
table: b.dictTable,
|
|
@@ -292,155 +298,169 @@ const H = [
|
|
|
292
298
|
}
|
|
293
299
|
}
|
|
294
300
|
}
|
|
295
|
-
const { dictTable:
|
|
301
|
+
const { dictTable: m, dictText: f } = t, { id: d, dbFieldTxt: n } = e;
|
|
296
302
|
return {
|
|
297
303
|
record: {
|
|
298
|
-
rowKey:
|
|
299
|
-
dbFieldTxt:
|
|
304
|
+
rowKey: d,
|
|
305
|
+
dbFieldTxt: n,
|
|
300
306
|
dictText: f,
|
|
301
|
-
dictTable:
|
|
307
|
+
dictTable: m
|
|
302
308
|
},
|
|
303
309
|
tableAndFieldsMap: o
|
|
304
310
|
};
|
|
305
311
|
}
|
|
306
|
-
function
|
|
307
|
-
const { id:
|
|
308
|
-
let
|
|
309
|
-
rowKey:
|
|
312
|
+
function L(e, t) {
|
|
313
|
+
const { id: l, dbFieldTxt: a, fieldExtendJson: o } = e, { dictTable: m, dictText: f } = t;
|
|
314
|
+
let d = {
|
|
315
|
+
rowKey: l,
|
|
310
316
|
dbFieldTxt: a,
|
|
311
|
-
dictTable:
|
|
317
|
+
dictTable: m
|
|
312
318
|
};
|
|
313
319
|
if (f) {
|
|
314
|
-
let
|
|
315
|
-
|
|
320
|
+
let n = f.split(",");
|
|
321
|
+
d.titleField = n[0], n.length > 1 && (d.otherFields = f.substring(f.indexOf(",") + 1));
|
|
316
322
|
} else
|
|
317
|
-
|
|
323
|
+
d.titleField = "", d.otherFields = "";
|
|
318
324
|
if (o)
|
|
319
325
|
try {
|
|
320
|
-
let
|
|
321
|
-
|
|
322
|
-
} catch (
|
|
326
|
+
let n = JSON.parse(o);
|
|
327
|
+
n.multiSelect ? d.multiSelect = n.multiSelect : d.multiSelect = !1, n.showType ? d.showType = n.showType : d.showType = "card", n.imageField ? d.imageField = n.imageField : d.imageField = "";
|
|
328
|
+
} catch (n) {
|
|
323
329
|
}
|
|
324
|
-
return
|
|
330
|
+
return d;
|
|
325
331
|
}
|
|
326
|
-
function
|
|
327
|
-
const { multiSelect: t, showType:
|
|
328
|
-
let
|
|
332
|
+
function q(e) {
|
|
333
|
+
const { multiSelect: t, showType: l, imageField: a, fieldName: o } = e;
|
|
334
|
+
let m = { showType: l, multiSelect: t, imageField: a }, f = [{ rowKey: e.rowKey, values: { fieldExtendJson: JSON.stringify(m), dbFieldTxt: e.dbFieldTxt } }];
|
|
329
335
|
s.value.setValues(f);
|
|
330
|
-
let { checkTable:
|
|
331
|
-
if (d) {
|
|
332
|
-
let m = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
|
|
333
|
-
d.value.tableRef.setValues(m);
|
|
334
|
-
}
|
|
336
|
+
let { checkTable: d, dbTable: n } = c;
|
|
335
337
|
if (n) {
|
|
336
|
-
let
|
|
337
|
-
|
|
338
|
+
let p = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
|
|
339
|
+
n.value.tableRef.setValues(p);
|
|
340
|
+
}
|
|
341
|
+
if (d) {
|
|
342
|
+
let p = e.titleField;
|
|
343
|
+
e.otherFields && (p += "," + e.otherFields);
|
|
338
344
|
const { dictTable: g, dictField: T } = e;
|
|
339
|
-
let
|
|
345
|
+
let y = {
|
|
340
346
|
dictTable: g,
|
|
341
347
|
dictField: T,
|
|
342
|
-
dictText:
|
|
348
|
+
dictText: p,
|
|
343
349
|
dbFieldName: o
|
|
344
|
-
}, b = [{ rowKey: e.rowKey, values:
|
|
345
|
-
|
|
350
|
+
}, b = [{ rowKey: e.rowKey, values: y }];
|
|
351
|
+
d.value.tableRef.setValues(b);
|
|
346
352
|
}
|
|
347
353
|
}
|
|
348
|
-
function
|
|
349
|
-
const { dbFieldTxt: t, dictTable:
|
|
350
|
-
let
|
|
351
|
-
s.value.setValues(
|
|
352
|
-
let { checkTable: f, dbTable:
|
|
353
|
-
if (
|
|
354
|
-
let
|
|
355
|
-
|
|
354
|
+
function j(e) {
|
|
355
|
+
const { dbFieldTxt: t, dictTable: l, dictText: a, rowKey: o } = e;
|
|
356
|
+
let m = [{ rowKey: o, values: { dbFieldTxt: t } }];
|
|
357
|
+
s.value.setValues(m);
|
|
358
|
+
let { checkTable: f, dbTable: d } = c;
|
|
359
|
+
if (d) {
|
|
360
|
+
let n = [{ rowKey: o, values: { dbFieldTxt: t, dbIsPersist: "0" } }];
|
|
361
|
+
d.value.tableRef.setValues(n);
|
|
356
362
|
}
|
|
357
363
|
if (f) {
|
|
358
|
-
let
|
|
359
|
-
f.value.tableRef.setValues(
|
|
364
|
+
let n = [{ rowKey: o, values: { dictTable: l, dictText: a } }];
|
|
365
|
+
f.value.tableRef.setValues(n);
|
|
360
366
|
}
|
|
361
367
|
}
|
|
362
368
|
function z(e) {
|
|
363
|
-
let t = e.row.fieldExtendJson || "",
|
|
364
|
-
const
|
|
369
|
+
let t = e.row.fieldExtendJson || "", l = e.rowId, a = e.row.fieldShowType || "", o = e.row.sortFlag || "0";
|
|
370
|
+
const m = e.row.dbType;
|
|
365
371
|
$(!0, {
|
|
366
372
|
jsonStr: t,
|
|
367
373
|
fieldShowType: a,
|
|
368
374
|
sortFlag: o,
|
|
369
|
-
id:
|
|
370
|
-
dbType:
|
|
375
|
+
id: l,
|
|
376
|
+
dbType: m
|
|
371
377
|
});
|
|
372
378
|
}
|
|
373
379
|
function W(e, t) {
|
|
374
|
-
let
|
|
375
|
-
e && Object.keys(e).length > 0 ?
|
|
380
|
+
let l;
|
|
381
|
+
e && Object.keys(e).length > 0 ? l = [{ rowKey: t, values: { fieldExtendJson: JSON.stringify(e) } }] : l = [{ rowKey: t, values: { fieldExtendJson: "" } }], s.value.setValues(l);
|
|
376
382
|
}
|
|
377
383
|
const G = (e) => {
|
|
378
384
|
};
|
|
379
|
-
|
|
380
|
-
|
|
385
|
+
function U({ cellValue: e, row: t }, l) {
|
|
386
|
+
let { dbTable: a } = c;
|
|
387
|
+
const o = a.value.tableRef.getTableData({ rowIds: [t.id] })[0].dbType;
|
|
388
|
+
e === "group" ? ["double", "int", "BigDecimal", "Date", "Datetime"].includes(o) || t.fieldShowType === "time" ? l(!0) : l(!1, "范围查询,只支持数据库属里的字段类型为:Integer、Double、BigDecimal及Date、Datetime 或 控件类型是时间(HH:mm:ss)") : e === "like" ? ["string"].includes(o) && t.fieldShowType === "text" ? l(!0) : l(!1, "模糊查询,只支持控件类型是文本框且数据库属里的字段类型是String") : l(!0);
|
|
389
|
+
}
|
|
390
|
+
const X = ({ oldValue: e, row: t }) => {
|
|
391
|
+
t.dbType != "string" && e == "string" && s.value.getTableData({ rowIds: [t.id] })[0].queryMode == "like" && s.value.setValues([
|
|
392
|
+
{
|
|
393
|
+
rowKey: t.id,
|
|
394
|
+
values: { queryMode: "single" }
|
|
395
|
+
}
|
|
396
|
+
]);
|
|
397
|
+
};
|
|
398
|
+
return I(E({}, u), {
|
|
399
|
+
columns: i,
|
|
381
400
|
enableQuery: _,
|
|
382
|
-
syncFieldShowType:
|
|
401
|
+
syncFieldShowType: C,
|
|
383
402
|
changePageType: F,
|
|
384
|
-
showConfigButton:
|
|
403
|
+
showConfigButton: B,
|
|
385
404
|
showFieldConfig: J,
|
|
386
405
|
registerExtJsonModal: O,
|
|
387
406
|
handleExtJson: W,
|
|
388
|
-
openConfig:
|
|
407
|
+
openConfig: Q,
|
|
389
408
|
registerModal: x,
|
|
390
|
-
handleConfigData:
|
|
409
|
+
handleConfigData: q,
|
|
391
410
|
registerFieldModal: v,
|
|
392
|
-
handleFieldConfigData:
|
|
411
|
+
handleFieldConfigData: j,
|
|
393
412
|
syncIsQuery: k,
|
|
394
|
-
handleValueChange: G
|
|
413
|
+
handleValueChange: G,
|
|
414
|
+
syncQueryMode: X
|
|
395
415
|
});
|
|
396
416
|
}
|
|
397
417
|
});
|
|
398
|
-
function
|
|
399
|
-
const k =
|
|
400
|
-
return
|
|
401
|
-
w(F,
|
|
418
|
+
function he(i, u, s, c, V, C) {
|
|
419
|
+
const k = h("a-button"), F = h("JVxeTable"), _ = h("link-table-config-modal"), x = h("link-table-field-config-modal"), D = h("FieldExtendJsonModal");
|
|
420
|
+
return P(), oe(se, null, [
|
|
421
|
+
w(F, de({
|
|
402
422
|
ref: "tableRef",
|
|
403
423
|
"row-class-name": "online-config-page",
|
|
404
424
|
rowNumber: "",
|
|
405
425
|
keyboardEdit: "",
|
|
406
|
-
maxHeight:
|
|
407
|
-
loading:
|
|
408
|
-
columns:
|
|
409
|
-
dataSource:
|
|
426
|
+
maxHeight: i.tableHeight.noToolbar,
|
|
427
|
+
loading: i.loading,
|
|
428
|
+
columns: i.columns,
|
|
429
|
+
dataSource: i.dataSource,
|
|
410
430
|
disabledRows: { dbFieldName: ["id", "has_child"] },
|
|
411
|
-
onValueChange:
|
|
412
|
-
},
|
|
413
|
-
fieldConfig:
|
|
414
|
-
|
|
431
|
+
onValueChange: i.handleValueChange
|
|
432
|
+
}, i.tableProps), {
|
|
433
|
+
fieldConfig: H((v) => [
|
|
434
|
+
i.showConfigButton(v) ? (P(), ne(k, {
|
|
415
435
|
key: 0,
|
|
416
436
|
type: "primary",
|
|
417
437
|
size: "small",
|
|
418
438
|
ghost: "",
|
|
419
|
-
onClick: (M) =>
|
|
439
|
+
onClick: (M) => i.openConfig(v)
|
|
420
440
|
}, {
|
|
421
|
-
default:
|
|
422
|
-
|
|
441
|
+
default: H(() => [
|
|
442
|
+
ue("更多配置")
|
|
423
443
|
]),
|
|
424
444
|
_: 2
|
|
425
|
-
}, 1032, ["onClick"])) :
|
|
445
|
+
}, 1032, ["onClick"])) : re("", !0)
|
|
426
446
|
]),
|
|
427
447
|
_: 1
|
|
428
448
|
}, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]),
|
|
429
449
|
w(_, {
|
|
430
|
-
onRegister:
|
|
431
|
-
onSuccess:
|
|
450
|
+
onRegister: i.registerModal,
|
|
451
|
+
onSuccess: i.handleConfigData
|
|
432
452
|
}, null, 8, ["onRegister", "onSuccess"]),
|
|
433
453
|
w(x, {
|
|
434
|
-
onRegister:
|
|
435
|
-
onSuccess:
|
|
454
|
+
onRegister: i.registerFieldModal,
|
|
455
|
+
onSuccess: i.handleFieldConfigData
|
|
436
456
|
}, null, 8, ["onRegister", "onSuccess"]),
|
|
437
|
-
w(
|
|
438
|
-
onRegister:
|
|
439
|
-
onSuccess:
|
|
457
|
+
w(D, {
|
|
458
|
+
onRegister: i.registerExtJsonModal,
|
|
459
|
+
onSuccess: i.handleExtJson
|
|
440
460
|
}, null, 8, ["onRegister", "onSuccess"])
|
|
441
461
|
], 64);
|
|
442
462
|
}
|
|
443
|
-
const
|
|
463
|
+
const Be = /* @__PURE__ */ pe(ye, [["render", he], ["__scopeId", "data-v-e34da524"]]);
|
|
444
464
|
export {
|
|
445
|
-
|
|
465
|
+
Be as default
|
|
446
466
|
};
|