@jeecg/online 3.6.2-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-6de335e3.mjs +84 -0
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/AuthDataConfig-5c3a8e6b.mjs +238 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/AuthManagerDrawer-76f15e8d.mjs +119 -0
- package/AuthSetterModal-f5d2e87f.mjs +274 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
- package/CheckDictTable-1bc8322d.mjs +229 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/CodeFileViewModal-2fe911f4.mjs +253 -0
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/CustomButtonList-f07bc695.mjs +397 -0
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/DetailForm-deecbf3d.mjs +486 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
- package/EnhanceJsModal-175357a1.mjs +548 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
- package/ExtendConfigModal-a89ae052.mjs +117 -0
- package/FieldExtendJsonModal-32135634.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
- package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
- package/LinkTableConfigModal-9242d750.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/OnlCgformErpList-58acdfa0.mjs +470 -0
- package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
- package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
- package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
- package/OnlCgformTabList-019ad753.mjs +408 -0
- package/OnlineAutoList-48589d09.mjs +493 -0
- package/OnlineAutoModal-c2928847.mjs +239 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-022ca117.mjs +342 -0
- package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
- package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
- package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
- package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
- package/OnlineTabForm-27655c83.mjs +817 -0
- package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
- package/PageAttributeTable-25e3b7da.mjs +466 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
- package/QueryTable-f7bfca7f.mjs +147 -0
- package/SetSwitchOptions-b2af757f.mjs +62 -0
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/auth.data-511e5197.mjs +217 -0
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
- package/index-1d1a6e56.mjs +57 -0
- package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
- package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-f41d4dc1.mjs +426 -0
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-bfac4ecf.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgformModal-eccfc38e.mjs +0 -611
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeFileViewModal-373e8058.mjs +0 -244
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/CustomButtonList-02e3d897.mjs +0 -363
- package/DbToOnlineModal-9f13956f.mjs +0 -160
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/JOnlineSearchSelect-c287af12.mjs +0 -95
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/auth.data-8be5c9e3.mjs +0 -141
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- package/useListButton-cdbab702.mjs +0 -676
- package/useTableSync-774c3774.mjs +0 -87
|
@@ -0,0 +1,466 @@
|
|
|
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
|
+
for (var s in u || (u = {}))
|
|
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
|
+
import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
|
|
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
|
+
import "./cgform.data-475d4984.mjs";
|
|
22
|
+
import "/@/utils/dict";
|
|
23
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
24
|
+
import "/@/utils/uuid";
|
|
25
|
+
import "lodash-es";
|
|
26
|
+
import "/@/components/Form/index";
|
|
27
|
+
import "/@/utils/http/axios";
|
|
28
|
+
import "/@/hooks/web/useMessage";
|
|
29
|
+
import "./SetSwitchOptions-b2af757f.mjs";
|
|
30
|
+
import "/@/utils/is";
|
|
31
|
+
import "./constant-fa63bd66.mjs";
|
|
32
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
33
|
+
import "vue-router";
|
|
34
|
+
const K = [
|
|
35
|
+
{ title: "文本框", value: "text" },
|
|
36
|
+
{ title: "密码", value: "password" },
|
|
37
|
+
{ title: "下拉框", value: "list" },
|
|
38
|
+
{ title: "单选框", value: "radio" },
|
|
39
|
+
{ title: "多选框", value: "checkbox" },
|
|
40
|
+
{ title: "开关", value: "switch" },
|
|
41
|
+
{ title: "日期(年月日)", value: "date" },
|
|
42
|
+
{ title: "日期(年月日时分秒)", value: "datetime" },
|
|
43
|
+
{ title: "时间(HH:mm:ss)", value: "time" },
|
|
44
|
+
{ title: "文件", value: "file" },
|
|
45
|
+
{ title: "图片", value: "image" },
|
|
46
|
+
{ title: "多行文本", value: "textarea" },
|
|
47
|
+
{ title: "富文本", value: "umeditor" },
|
|
48
|
+
{ title: "MarkDown", value: "markdown" },
|
|
49
|
+
{ title: "用户选择", value: "sel_user" },
|
|
50
|
+
{ title: "部门选择", value: "sel_depart" },
|
|
51
|
+
{ title: "关联记录", value: "link_table" },
|
|
52
|
+
{ title: "他表字段", value: "link_table_field" },
|
|
53
|
+
{ title: "省市区组件", value: "pca" },
|
|
54
|
+
{ title: "Popup弹框", value: "popup" },
|
|
55
|
+
// update-begin--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
|
|
56
|
+
{ title: "Popup字典", value: "popup_dict" },
|
|
57
|
+
// update-end--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
|
|
58
|
+
{ title: "下拉多选框", value: "list_multi" },
|
|
59
|
+
{ title: "下拉搜索框", value: "sel_search" },
|
|
60
|
+
{ title: "分类字典树", value: "cat_tree" },
|
|
61
|
+
{ title: "自定义树控件", value: "sel_tree" },
|
|
62
|
+
{ title: "联动组件", value: "link_down" }
|
|
63
|
+
], ge = [
|
|
64
|
+
{ title: "文本框", value: "text" },
|
|
65
|
+
{ title: "单选框", value: "radio" },
|
|
66
|
+
{ title: "开关", value: "switch" },
|
|
67
|
+
{ title: "日期(yyyy-MM-dd)", value: "date" },
|
|
68
|
+
{ title: "日期(yyyy-MM-dd HH:mm:ss)", value: "datetime" },
|
|
69
|
+
{ title: "时间(HH:mm:ss)", value: "time" },
|
|
70
|
+
{ title: "文件", value: "file" },
|
|
71
|
+
{ title: "图片", value: "image" },
|
|
72
|
+
{ title: "下拉框", value: "list" },
|
|
73
|
+
{ title: "下拉多选框", value: "list_multi" },
|
|
74
|
+
{ title: "下拉搜索框", value: "sel_search" },
|
|
75
|
+
{ title: "popup弹出框", value: "popup" },
|
|
76
|
+
// update-begin--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
|
|
77
|
+
// { title: 'Popup字典', value: 'popup_dict' },
|
|
78
|
+
// update-end--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
|
|
79
|
+
{ title: "部门选择", value: "sel_depart" },
|
|
80
|
+
{ title: "用户选择", value: "sel_user" },
|
|
81
|
+
{ title: "省市区组件", value: "pca" },
|
|
82
|
+
{ title: "多行文本", value: "textarea" }
|
|
83
|
+
], ye = ie({
|
|
84
|
+
name: "PageAttributeTable",
|
|
85
|
+
components: {
|
|
86
|
+
LinkTableConfigModal: ce,
|
|
87
|
+
LinkTableFieldConfigModal: me,
|
|
88
|
+
FieldExtendJsonModal: be
|
|
89
|
+
},
|
|
90
|
+
setup() {
|
|
91
|
+
const i = ae([
|
|
92
|
+
{ title: "字段名称", key: "dbFieldName", width: 100 },
|
|
93
|
+
{ title: "字段备注", key: "dbFieldTxt", width: 150 },
|
|
94
|
+
{
|
|
95
|
+
title: "表单显示",
|
|
96
|
+
key: "isShowForm",
|
|
97
|
+
width: 80,
|
|
98
|
+
type: r.checkbox,
|
|
99
|
+
align: "center",
|
|
100
|
+
customValue: ["1", "0"],
|
|
101
|
+
defaultChecked: !0
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: "列表显示",
|
|
105
|
+
key: "isShowList",
|
|
106
|
+
width: 80,
|
|
107
|
+
type: r.checkbox,
|
|
108
|
+
align: "center",
|
|
109
|
+
customValue: ["1", "0"],
|
|
110
|
+
defaultChecked: !0
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: "是否排序",
|
|
114
|
+
key: "sortFlag",
|
|
115
|
+
width: 80,
|
|
116
|
+
type: r.checkbox,
|
|
117
|
+
align: "center",
|
|
118
|
+
customValue: ["1", "0"],
|
|
119
|
+
defaultChecked: !1,
|
|
120
|
+
// update-begin--author:liaozhiyang---date:20240528---for:【TV360X-291】没勾选同步数据库禁用排序功能
|
|
121
|
+
props: {
|
|
122
|
+
isDisabledCell({ row: e, column: t }) {
|
|
123
|
+
let { dbTable: l } = c;
|
|
124
|
+
const a = l.value.tableRef.getTableData({ rowIds: [e.id] })[0];
|
|
125
|
+
return (a == null ? void 0 : a.dbIsPersist) == "0";
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// update-end--author:liaozhiyang---date:20240528---for:【TV360X-291】没勾选同步数据库禁用排序功能
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
title: "是否只读",
|
|
132
|
+
key: "isReadOnly",
|
|
133
|
+
width: 80,
|
|
134
|
+
type: r.checkbox,
|
|
135
|
+
align: "center",
|
|
136
|
+
customValue: ["1", "0"],
|
|
137
|
+
defaultChecked: !1
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
title: "控件类型",
|
|
141
|
+
key: "fieldShowType",
|
|
142
|
+
width: 170,
|
|
143
|
+
type: r.select,
|
|
144
|
+
options: K,
|
|
145
|
+
defaultValue: "text",
|
|
146
|
+
placeholder: "请选择${title}",
|
|
147
|
+
validateRules: [{ required: !0, message: "请选择${title}" }, { handler: V }]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
title: "控件长度",
|
|
151
|
+
key: "fieldLength",
|
|
152
|
+
width: 100,
|
|
153
|
+
titleHelp: { message: "此长度只对子表列字段宽度有效!" },
|
|
154
|
+
type: r.inputNumber,
|
|
155
|
+
defaultValue: 120,
|
|
156
|
+
placeholder: "请输入控件长度"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
title: "是否查询",
|
|
160
|
+
key: "isQuery",
|
|
161
|
+
width: 80,
|
|
162
|
+
type: r.checkbox,
|
|
163
|
+
align: "center",
|
|
164
|
+
customValue: ["1", "0"],
|
|
165
|
+
defaultChecked: !1,
|
|
166
|
+
// update-begin--author:liaozhiyang---date:20240528---for:【TV360X-423】未勾选同步数据库禁用查询
|
|
167
|
+
props: {
|
|
168
|
+
isDisabledCell({ row: e, column: t }) {
|
|
169
|
+
let { dbTable: l } = c;
|
|
170
|
+
const a = l.value.tableRef.getTableData({ rowIds: [e.id] })[0];
|
|
171
|
+
return (a == null ? void 0 : a.dbIsPersist) == "0";
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
// update-end--author:liaozhiyang---date:20240528---for:【TV360X-423】未勾选同步数据库禁用查询
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
title: "查询类型",
|
|
178
|
+
key: "queryMode",
|
|
179
|
+
width: 120,
|
|
180
|
+
type: r.select,
|
|
181
|
+
options: [
|
|
182
|
+
{ title: "普通查询", value: "single" },
|
|
183
|
+
{ title: "模糊查询", value: "like" },
|
|
184
|
+
{ title: "范围查询", value: "group" }
|
|
185
|
+
],
|
|
186
|
+
defaultValue: "single",
|
|
187
|
+
placeholder: "请选择${title}",
|
|
188
|
+
validateRules: [{ handler: U }],
|
|
189
|
+
props: {
|
|
190
|
+
isDisabledCell({ row: e, column: t }) {
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
title: "控件默认值",
|
|
196
|
+
key: "fieldDefaultValue",
|
|
197
|
+
width: 140,
|
|
198
|
+
type: r.input,
|
|
199
|
+
props: {
|
|
200
|
+
allowClear: !0
|
|
201
|
+
},
|
|
202
|
+
defaultValue: ""
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
title: "定义转换器",
|
|
206
|
+
key: "converter",
|
|
207
|
+
width: 150,
|
|
208
|
+
type: r.input,
|
|
209
|
+
defaultValue: ""
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
title: "扩展参数",
|
|
213
|
+
key: "fieldExtendJson",
|
|
214
|
+
width: 120,
|
|
215
|
+
type: r.textarea,
|
|
216
|
+
defaultValue: ""
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
title: "更多配置",
|
|
220
|
+
minWidth: 100,
|
|
221
|
+
key: "fieldConfig",
|
|
222
|
+
type: r.slot,
|
|
223
|
+
slotName: "fieldConfig"
|
|
224
|
+
}
|
|
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);
|
|
229
|
+
}
|
|
230
|
+
function C(e) {
|
|
231
|
+
let t = "text";
|
|
232
|
+
e.dbType === "Datetime" ? t = "datetime" : e.dbType === "Date" && (t = "date"), s.value.setValues([
|
|
233
|
+
{
|
|
234
|
+
rowKey: e.id,
|
|
235
|
+
values: { fieldShowType: t }
|
|
236
|
+
}
|
|
237
|
+
]);
|
|
238
|
+
}
|
|
239
|
+
function k(e) {
|
|
240
|
+
e.dbIsPersist === "0" && s.value.setValues([
|
|
241
|
+
{
|
|
242
|
+
rowKey: e.id,
|
|
243
|
+
values: { isQuery: "0", sortFlag: "0" }
|
|
244
|
+
}
|
|
245
|
+
]);
|
|
246
|
+
}
|
|
247
|
+
function F(e) {
|
|
248
|
+
for (let t of i.value)
|
|
249
|
+
if (t.key == "fieldShowType") {
|
|
250
|
+
t.options = e ? ge : K;
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
function _(e) {
|
|
255
|
+
s.value.setValues([
|
|
256
|
+
{
|
|
257
|
+
rowKey: e,
|
|
258
|
+
values: { isQuery: "1" }
|
|
259
|
+
}
|
|
260
|
+
]);
|
|
261
|
+
}
|
|
262
|
+
const [x, { openModal: D }] = S(), [v, { openModal: M }] = S(), [O, { openModal: $ }] = S();
|
|
263
|
+
function B(e) {
|
|
264
|
+
return e.row.dbFieldName != "id";
|
|
265
|
+
}
|
|
266
|
+
function Q(e) {
|
|
267
|
+
e.row.fieldShowType.indexOf("link_table") >= 0 ? J(e) : z(e);
|
|
268
|
+
}
|
|
269
|
+
function J(e) {
|
|
270
|
+
let { row: t } = e, { checkTable: l } = c;
|
|
271
|
+
if (l) {
|
|
272
|
+
let a = l.value.tableRef.getTableData({ rowIds: [t.id] })[0];
|
|
273
|
+
if (e.row.fieldShowType == "link_table") {
|
|
274
|
+
let o = L(t, a);
|
|
275
|
+
D(!0, {
|
|
276
|
+
record: o,
|
|
277
|
+
fieldName: t.dbFieldName
|
|
278
|
+
});
|
|
279
|
+
} else if (e.row.fieldShowType == "link_table_field") {
|
|
280
|
+
let o = A(t, a);
|
|
281
|
+
M(!0, o);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
function A(e, t) {
|
|
286
|
+
let a = s.value.getTableData().filter((g) => g.fieldShowType == "link_table"), o = {};
|
|
287
|
+
if (a && a.length > 0) {
|
|
288
|
+
let g = c.checkTable.value.tableRef.getTableData();
|
|
289
|
+
for (let T of a) {
|
|
290
|
+
let y = g.filter((b) => b.dbFieldName == T.dbFieldName);
|
|
291
|
+
if (y && y.length > 0) {
|
|
292
|
+
let b = y[0];
|
|
293
|
+
o[b.dbFieldName] = {
|
|
294
|
+
title: T.dbFieldTxt,
|
|
295
|
+
table: b.dictTable,
|
|
296
|
+
fields: b.dictText
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
const { dictTable: m, dictText: f } = t, { id: d, dbFieldTxt: n } = e;
|
|
302
|
+
return {
|
|
303
|
+
record: {
|
|
304
|
+
rowKey: d,
|
|
305
|
+
dbFieldTxt: n,
|
|
306
|
+
dictText: f,
|
|
307
|
+
dictTable: m
|
|
308
|
+
},
|
|
309
|
+
tableAndFieldsMap: o
|
|
310
|
+
};
|
|
311
|
+
}
|
|
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,
|
|
316
|
+
dbFieldTxt: a,
|
|
317
|
+
dictTable: m
|
|
318
|
+
};
|
|
319
|
+
if (f) {
|
|
320
|
+
let n = f.split(",");
|
|
321
|
+
d.titleField = n[0], n.length > 1 && (d.otherFields = f.substring(f.indexOf(",") + 1));
|
|
322
|
+
} else
|
|
323
|
+
d.titleField = "", d.otherFields = "";
|
|
324
|
+
if (o)
|
|
325
|
+
try {
|
|
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) {
|
|
329
|
+
}
|
|
330
|
+
return d;
|
|
331
|
+
}
|
|
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 } }];
|
|
335
|
+
s.value.setValues(f);
|
|
336
|
+
let { checkTable: d, dbTable: n } = c;
|
|
337
|
+
if (n) {
|
|
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);
|
|
344
|
+
const { dictTable: g, dictField: T } = e;
|
|
345
|
+
let y = {
|
|
346
|
+
dictTable: g,
|
|
347
|
+
dictField: T,
|
|
348
|
+
dictText: p,
|
|
349
|
+
dbFieldName: o
|
|
350
|
+
}, b = [{ rowKey: e.rowKey, values: y }];
|
|
351
|
+
d.value.tableRef.setValues(b);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
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);
|
|
362
|
+
}
|
|
363
|
+
if (f) {
|
|
364
|
+
let n = [{ rowKey: o, values: { dictTable: l, dictText: a } }];
|
|
365
|
+
f.value.tableRef.setValues(n);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
function z(e) {
|
|
369
|
+
let t = e.row.fieldExtendJson || "", l = e.rowId, a = e.row.fieldShowType || "", o = e.row.sortFlag || "0";
|
|
370
|
+
const m = e.row.dbType;
|
|
371
|
+
$(!0, {
|
|
372
|
+
jsonStr: t,
|
|
373
|
+
fieldShowType: a,
|
|
374
|
+
sortFlag: o,
|
|
375
|
+
id: l,
|
|
376
|
+
dbType: m
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
function W(e, t) {
|
|
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);
|
|
382
|
+
}
|
|
383
|
+
const G = (e) => {
|
|
384
|
+
};
|
|
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,
|
|
400
|
+
enableQuery: _,
|
|
401
|
+
syncFieldShowType: C,
|
|
402
|
+
changePageType: F,
|
|
403
|
+
showConfigButton: B,
|
|
404
|
+
showFieldConfig: J,
|
|
405
|
+
registerExtJsonModal: O,
|
|
406
|
+
handleExtJson: W,
|
|
407
|
+
openConfig: Q,
|
|
408
|
+
registerModal: x,
|
|
409
|
+
handleConfigData: q,
|
|
410
|
+
registerFieldModal: v,
|
|
411
|
+
handleFieldConfigData: j,
|
|
412
|
+
syncIsQuery: k,
|
|
413
|
+
handleValueChange: G,
|
|
414
|
+
syncQueryMode: X
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
});
|
|
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({
|
|
422
|
+
ref: "tableRef",
|
|
423
|
+
"row-class-name": "online-config-page",
|
|
424
|
+
rowNumber: "",
|
|
425
|
+
keyboardEdit: "",
|
|
426
|
+
maxHeight: i.tableHeight.noToolbar,
|
|
427
|
+
loading: i.loading,
|
|
428
|
+
columns: i.columns,
|
|
429
|
+
dataSource: i.dataSource,
|
|
430
|
+
disabledRows: { dbFieldName: ["id", "has_child"] },
|
|
431
|
+
onValueChange: i.handleValueChange
|
|
432
|
+
}, i.tableProps), {
|
|
433
|
+
fieldConfig: H((v) => [
|
|
434
|
+
i.showConfigButton(v) ? (P(), ne(k, {
|
|
435
|
+
key: 0,
|
|
436
|
+
type: "primary",
|
|
437
|
+
size: "small",
|
|
438
|
+
ghost: "",
|
|
439
|
+
onClick: (M) => i.openConfig(v)
|
|
440
|
+
}, {
|
|
441
|
+
default: H(() => [
|
|
442
|
+
ue("更多配置")
|
|
443
|
+
]),
|
|
444
|
+
_: 2
|
|
445
|
+
}, 1032, ["onClick"])) : re("", !0)
|
|
446
|
+
]),
|
|
447
|
+
_: 1
|
|
448
|
+
}, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]),
|
|
449
|
+
w(_, {
|
|
450
|
+
onRegister: i.registerModal,
|
|
451
|
+
onSuccess: i.handleConfigData
|
|
452
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
453
|
+
w(x, {
|
|
454
|
+
onRegister: i.registerFieldModal,
|
|
455
|
+
onSuccess: i.handleFieldConfigData
|
|
456
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
457
|
+
w(D, {
|
|
458
|
+
onRegister: i.registerExtJsonModal,
|
|
459
|
+
onSuccess: i.handleExtJson
|
|
460
|
+
}, null, 8, ["onRegister", "onSuccess"])
|
|
461
|
+
], 64);
|
|
462
|
+
}
|
|
463
|
+
const Be = /* @__PURE__ */ pe(ye, [["render", he], ["__scopeId", "data-v-e34da524"]]);
|
|
464
|
+
export {
|
|
465
|
+
Be as default
|
|
466
|
+
};
|
|
@@ -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";
|
|
@@ -34,31 +34,35 @@ import "./useCustomHook-acb00837.mjs";
|
|
|
34
34
|
import "/@/utils/cache";
|
|
35
35
|
import "/@/utils/common/compUtils";
|
|
36
36
|
import "/@/store/modules/user";
|
|
37
|
-
import "./constant-
|
|
37
|
+
import "./constant-fa63bd66.mjs";
|
|
38
|
+
import "/@/hooks/web/useAppInject";
|
|
39
|
+
import "/@/utils/is";
|
|
40
|
+
import "/@/store/modules/permission";
|
|
41
|
+
import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
|
|
38
42
|
import "/@/components/Form/src/componentMap";
|
|
39
43
|
import "/@/utils/propTypes";
|
|
40
44
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
41
45
|
import "/@/views/system/user/user.api";
|
|
42
46
|
import "/@/utils/desform/customExpression";
|
|
43
|
-
import "/@/store/modules/permission";
|
|
44
47
|
import "/@/utils/dict/JDictSelectUtil";
|
|
45
48
|
import "/@/components/Table";
|
|
46
49
|
import "/@/hooks/system/useListPage";
|
|
47
50
|
import "vue-router";
|
|
48
51
|
import "/@/components/Form/src/utils/Area";
|
|
49
52
|
import "/@/components/Preview/index";
|
|
50
|
-
import "./LinkTableListPiece-
|
|
51
|
-
import "
|
|
52
|
-
import "
|
|
53
|
-
import "
|
|
53
|
+
import "./LinkTableListPiece-f3a8e0d7.mjs";
|
|
54
|
+
import "/@/api/common/api";
|
|
55
|
+
import "/@/assets/images/placeholderImage.png";
|
|
56
|
+
import "./OnlineSelectCascade-05c40fef.mjs";
|
|
57
|
+
import "./JModalTip-b055ab60.mjs";
|
|
54
58
|
import "ant-design-vue";
|
|
55
59
|
import "@vueuse/core";
|
|
56
60
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
57
|
-
const
|
|
61
|
+
const $ = S({
|
|
58
62
|
name: "ProcessOnlineForm",
|
|
59
63
|
inheritAttrs: !1,
|
|
60
64
|
components: {
|
|
61
|
-
OnlineForm:
|
|
65
|
+
OnlineForm: C
|
|
62
66
|
},
|
|
63
67
|
props: {
|
|
64
68
|
dataId: {
|
|
@@ -79,28 +83,28 @@ const L = k({
|
|
|
79
83
|
}
|
|
80
84
|
},
|
|
81
85
|
setup(e) {
|
|
82
|
-
const r = m(),
|
|
86
|
+
const r = m(), t = m(""), p = m(1), s = m(!1), d = m(""), i = m(!1);
|
|
83
87
|
T(
|
|
84
88
|
() => e.tableName,
|
|
85
89
|
(c) => {
|
|
86
|
-
c &&
|
|
90
|
+
c && a();
|
|
87
91
|
},
|
|
88
92
|
{ immediate: !0 }
|
|
89
93
|
);
|
|
90
|
-
function
|
|
94
|
+
function a() {
|
|
91
95
|
return u(this, null, function* () {
|
|
92
96
|
i.value = !0;
|
|
93
|
-
const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`,
|
|
97
|
+
const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`, k = { taskId: e.taskId };
|
|
94
98
|
try {
|
|
95
|
-
let
|
|
96
|
-
|
|
97
|
-
(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);
|
|
98
102
|
}));
|
|
99
|
-
} catch (
|
|
103
|
+
} catch (l) {
|
|
100
104
|
}
|
|
101
105
|
});
|
|
102
106
|
}
|
|
103
|
-
function
|
|
107
|
+
function o() {
|
|
104
108
|
return u(this, null, function* () {
|
|
105
109
|
let c = yield b(r);
|
|
106
110
|
i.value = !1, c.show(!0, {
|
|
@@ -108,71 +112,77 @@ const L = k({
|
|
|
108
112
|
});
|
|
109
113
|
});
|
|
110
114
|
}
|
|
111
|
-
const
|
|
115
|
+
const n = m(!1);
|
|
112
116
|
function F() {
|
|
113
117
|
return u(this, null, function* () {
|
|
114
|
-
|
|
118
|
+
n.value = !0, r.value.handleSubmit();
|
|
115
119
|
});
|
|
116
120
|
}
|
|
117
121
|
function v() {
|
|
118
|
-
|
|
122
|
+
n.value = !1;
|
|
123
|
+
}
|
|
124
|
+
function I() {
|
|
125
|
+
n.value = !1;
|
|
119
126
|
}
|
|
120
127
|
return {
|
|
121
128
|
onlineFormCompRef: r,
|
|
122
|
-
formId:
|
|
129
|
+
formId: t,
|
|
123
130
|
formTemplate: p,
|
|
124
131
|
isTreeForm: s,
|
|
125
|
-
pidFieldName:
|
|
126
|
-
renderSuccess:
|
|
132
|
+
pidFieldName: d,
|
|
133
|
+
renderSuccess: o,
|
|
127
134
|
handleSuccess: v,
|
|
135
|
+
handleClose: I,
|
|
128
136
|
handleSubmit: F,
|
|
129
|
-
buttonLoading:
|
|
137
|
+
buttonLoading: n,
|
|
130
138
|
spinLoading: i
|
|
131
139
|
};
|
|
132
140
|
}
|
|
133
|
-
}),
|
|
141
|
+
}), B = { class: "cust-onl-form" }, O = {
|
|
134
142
|
key: 0,
|
|
135
143
|
style: { width: "100%", "text-align": "center", "margin-top": "5px" }
|
|
136
144
|
};
|
|
137
|
-
function
|
|
138
|
-
const i = f("a-button"),
|
|
139
|
-
return
|
|
140
|
-
|
|
141
|
-
default:
|
|
142
|
-
|
|
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, {
|
|
143
151
|
ref: "onlineFormCompRef",
|
|
144
152
|
id: e.formId,
|
|
145
153
|
disabled: e.disabled,
|
|
146
154
|
"form-template": e.formTemplate,
|
|
147
155
|
isTree: e.isTreeForm,
|
|
148
156
|
pidField: e.pidFieldName,
|
|
157
|
+
taskId: e.taskId,
|
|
149
158
|
onRendered: e.renderSuccess,
|
|
150
|
-
onSuccess: e.handleSuccess
|
|
159
|
+
onSuccess: e.handleSuccess,
|
|
160
|
+
onClose: e.handleClose
|
|
151
161
|
}, {
|
|
152
|
-
bottom:
|
|
153
|
-
!e.disabled && !e.spinLoading ? (
|
|
154
|
-
|
|
162
|
+
bottom: h(() => [
|
|
163
|
+
!e.disabled && !e.spinLoading ? (_(), y("div", O, [
|
|
164
|
+
g(i, {
|
|
155
165
|
preIcon: "ant-design:check",
|
|
156
166
|
style: { width: "126px" },
|
|
157
167
|
type: "primary",
|
|
158
168
|
onClick: e.handleSubmit,
|
|
159
169
|
loading: e.buttonLoading
|
|
160
170
|
}, {
|
|
161
|
-
default:
|
|
171
|
+
default: h(() => [
|
|
162
172
|
N(" 提 交 ")
|
|
163
173
|
]),
|
|
164
174
|
_: 1
|
|
165
175
|
}, 8, ["onClick", "loading"])
|
|
166
|
-
])) :
|
|
176
|
+
])) : P("", !0)
|
|
167
177
|
]),
|
|
168
178
|
_: 1
|
|
169
|
-
}, 8, ["id", "disabled", "form-template", "isTree", "pidField", "onRendered", "onSuccess"])
|
|
179
|
+
}, 8, ["id", "disabled", "form-template", "isTree", "pidField", "taskId", "onRendered", "onSuccess", "onClose"])
|
|
170
180
|
]),
|
|
171
181
|
_: 1
|
|
172
182
|
}, 8, ["spinning"])
|
|
173
183
|
]);
|
|
174
184
|
}
|
|
175
|
-
const
|
|
185
|
+
const Ne = /* @__PURE__ */ L($, [["render", V], ["__scopeId", "data-v-a4356798"]]);
|
|
176
186
|
export {
|
|
177
|
-
|
|
187
|
+
Ne as default
|
|
178
188
|
};
|