@jeecg/online 1.0.1 → 3.4.3-GA
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/AuthButtonConfig.js +14 -7
- package/AuthButtonTree.js +3 -5
- package/AuthDataConfig.js +9 -6
- package/AuthDataTree.js +3 -5
- package/AuthFieldConfig.js +15 -12
- package/AuthFieldTree.js +24 -18
- package/AuthManagerDrawer.js +1 -1
- package/AuthSetterModal.js +1 -0
- package/CgformCopyList.js +34 -22
- package/CgformModal.js +57 -50
- package/CgreportModal.js +32 -39
- package/CheckDictTable.js +144 -24
- package/CodeFileListModal.js +175 -0
- package/CodeFileViewModal.js +325 -0
- package/CodeGeneratorModal.js +41 -38
- package/CustomButtonList.js +19 -22
- package/DBAttributeTable.js +248 -12
- package/DbToOnlineModal.js +27 -25
- package/DetailForm.js +609 -0
- package/EnhanceJavaModal.js +11 -17
- package/EnhanceJsHistory.js +6 -8
- package/EnhanceJsModal.js +16 -16
- package/EnhanceSqlModal.js +11 -17
- package/ExtendConfigModal.js +24 -15
- package/ForeignKeyTable.js +4 -3
- package/FormSchemaFactory.js +163 -30
- package/IndexTable.js +6 -5
- package/JModalTip.js +54 -0
- package/JOnlineSearchSelect.js +18 -10
- package/LeftDepart.js +1 -1
- package/LeftRole.js +7 -4
- package/LeftUser.js +7 -4
- package/LinkTableConfigModal.js +289 -0
- package/LinkTableFieldConfigModal.js +218 -0
- package/LinkTableListPiece.js +36 -0
- package/ModalFormDemo.js +3 -2
- package/OnlineAutoList.js +154 -55
- package/OnlineAutoModal.js +92 -131
- package/OnlineAutoTreeList.js +93 -53
- package/OnlineCustomModal.js +30 -14
- package/OnlineDetailModal.js +184 -0
- package/OnlineForm.js +274 -141
- package/OnlineFormDetail.js +326 -0
- package/OnlineQueryForm.js +72 -40
- package/OnlineSearchFormItem.js +26 -18
- package/OnlineSelectCascade.js +37 -26
- package/OnlineSubFormDetail.js +167 -0
- package/OnlineSuperQuery.js +70 -75
- package/OnlineSuperQueryValComponent.js +1 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
- package/PageAttributeTable.js +233 -30
- package/ProcessOnlineForm.js +41 -16
- package/QueryTable.js +4 -3
- package/README.md +3 -8
- package/_arrayPush.js +5 -3
- package/{cloneDeep.js → _baseClone.js} +5 -9
- package/_baseSlice.js +18 -0
- package/_commonjsHelpers.js +5 -0
- package/_flatRest.js +174 -0
- package/auth.data.js +1 -3
- package/cgform.data.js +18 -9
- package/enhance.api.js +27 -18
- package/index.js +27 -8
- package/index2.js +48 -45
- package/index3.js +29 -26
- package/isArray.js +1 -1
- package/main.index.js +2 -2
- package/omit.js +60 -0
- package/package.json +1 -1
- package/pick.js +3 -173
- package/style.css +1 -1
- package/toString.js +2 -2
- package/useAutoForm.js +3457 -3791
- package/useCgformList.js +44 -31
- package/{useTableColumns.js → useListButton.js} +218 -409
- package/useOnlineTest.js +5 -26827
- package/useSchemas.js +382 -234
- package/useTableSync.js +19 -7
- package/ChartAutoRender.js +0 -69
- package/ChartDoubleRender.js +0 -154
- package/ChartSingleRender.js +0 -132
- package/ChartTabsRender.js +0 -218
- package/ErrorTip.js +0 -21
- package/FieldTable.js +0 -185
- package/GraphreportAutoChart.js +0 -352
- package/GraphreportList.js +0 -239
- package/GraphreportModal.js +0 -559
- package/LICENSE +0 -7
- package/OnlineSubForm.js +0 -200
- package/ParamsTable.js +0 -71
- package/graphreport.api.js +0 -23
- package/useChartRender.js +0 -405
- package/useMessageOnline.js +0 -71
package/OnlineCustomModal.js
CHANGED
|
@@ -18,30 +18,51 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import { defineComponent, ref, nextTick, watch, reactive, markRaw, defineAsyncComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode,
|
|
21
|
+
import { defineComponent, ref, nextTick, watch, reactive, markRaw, defineAsyncComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createTextVNode, resolveDynamicComponent } from "vue";
|
|
22
22
|
import { BasicModal, useModalInner } from "/@/components/Modal";
|
|
23
23
|
import { g as getRefPromise } from "./useAutoForm.js";
|
|
24
24
|
import { defHttp } from "/@/utils/http/axios";
|
|
25
|
-
import
|
|
25
|
+
import OnlineForm from "./OnlineForm.js";
|
|
26
|
+
import { importViewsFile } from "/@/utils";
|
|
26
27
|
import { _ as _export_sfc } from "./index.js";
|
|
27
28
|
import "./FormSchemaFactory.js";
|
|
28
29
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
29
30
|
import "/@/views/system/user/user.api";
|
|
31
|
+
import "./_commonjsHelpers.js";
|
|
30
32
|
import "/@/store/modules/user";
|
|
31
|
-
import "/@/utils";
|
|
32
33
|
import "/@/utils/desform/customExpression";
|
|
33
34
|
import "/@/components/Form/src/componentMap";
|
|
34
35
|
import "./OnlineSelectCascade.js";
|
|
35
36
|
import "/@/hooks/web/useMessage";
|
|
36
37
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
37
38
|
import "vue-router";
|
|
39
|
+
import "/@/store/modules/permission";
|
|
40
|
+
import "/@/utils/propTypes";
|
|
41
|
+
import "@ant-design/icons-vue";
|
|
38
42
|
import "/@/components/Form/index";
|
|
39
|
-
import "/@/
|
|
40
|
-
import "
|
|
43
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
44
|
+
import "/@/utils/common/compUtils";
|
|
41
45
|
import "./pick.js";
|
|
46
|
+
import "./_flatRest.js";
|
|
42
47
|
import "./isArray.js";
|
|
43
48
|
import "./toString.js";
|
|
44
49
|
import "./_arrayPush.js";
|
|
50
|
+
import "/@/components/Table";
|
|
51
|
+
import "/@/hooks/system/useListPage";
|
|
52
|
+
import "/@/components/Form/src/utils/Area";
|
|
53
|
+
import "/@/components/Preview/index";
|
|
54
|
+
import "./LinkTableListPiece.js";
|
|
55
|
+
import "/@/components/Loading";
|
|
56
|
+
import "/@/utils/auth";
|
|
57
|
+
import "./JModalTip.js";
|
|
58
|
+
import "ant-design-vue";
|
|
59
|
+
import "@vueuse/core";
|
|
60
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
61
|
+
import "/@/hooks/core/useContext";
|
|
62
|
+
import "/@/utils/mitt";
|
|
63
|
+
import "./omit.js";
|
|
64
|
+
import "./_baseClone.js";
|
|
65
|
+
import "./_baseSlice.js";
|
|
45
66
|
const DEF_CONFIG = {
|
|
46
67
|
code: "",
|
|
47
68
|
title: "\u81EA\u5B9A\u4E49\u5F39\u6846",
|
|
@@ -73,7 +94,7 @@ const _sfc_main = defineComponent({
|
|
|
73
94
|
loadFormItems: "/online/cgform/api/getFormItem/",
|
|
74
95
|
optPre: "/online/cgform/api/form/"
|
|
75
96
|
};
|
|
76
|
-
const modalStyle = {
|
|
97
|
+
const modalStyle = { position: "relative" };
|
|
77
98
|
const confirmLoading = ref(false);
|
|
78
99
|
const formRendered = ref(false);
|
|
79
100
|
function renderSuccess() {
|
|
@@ -178,10 +199,7 @@ const _sfc_main = defineComponent({
|
|
|
178
199
|
isOnlineForm.value = false;
|
|
179
200
|
customFormComponent.url = onlineFormEditUrl;
|
|
180
201
|
customFormComponent.row = currentRowData;
|
|
181
|
-
customFormComponent.is = markRaw(defineAsyncComponent(() =>
|
|
182
|
-
/* @vite-ignore */
|
|
183
|
-
"/@/views/" + formComponent
|
|
184
|
-
)));
|
|
202
|
+
customFormComponent.is = markRaw(defineAsyncComponent(() => importViewsFile(formComponent)));
|
|
185
203
|
}
|
|
186
204
|
return {
|
|
187
205
|
registerModal,
|
|
@@ -204,8 +222,6 @@ const _sfc_main = defineComponent({
|
|
|
204
222
|
};
|
|
205
223
|
}
|
|
206
224
|
});
|
|
207
|
-
const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
208
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
209
225
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
210
226
|
const _component_a_button = resolveComponent("a-button");
|
|
211
227
|
const _component_online_form = resolveComponent("online-form");
|
|
@@ -227,7 +243,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
227
243
|
onClick: _ctx.handleSubmit
|
|
228
244
|
}, {
|
|
229
245
|
default: withCtx(() => [
|
|
230
|
-
|
|
246
|
+
createTextVNode("\u786E\u5B9A")
|
|
231
247
|
]),
|
|
232
248
|
_: 1
|
|
233
249
|
}, 8, ["onClick"]),
|
|
@@ -236,7 +252,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
236
252
|
onClick: _ctx.handleCancel
|
|
237
253
|
}, {
|
|
238
254
|
default: withCtx(() => [
|
|
239
|
-
|
|
255
|
+
createTextVNode("\u5173\u95ED")
|
|
240
256
|
]),
|
|
241
257
|
_: 1
|
|
242
258
|
}, 8, ["onClick"])
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
var __async = (__this, __arguments, generator) => {
|
|
2
|
+
return new Promise((resolve, reject) => {
|
|
3
|
+
var fulfilled = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
step(generator.next(value));
|
|
6
|
+
} catch (e) {
|
|
7
|
+
reject(e);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var rejected = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.throw(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
import { defineComponent, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createTextVNode } from "vue";
|
|
22
|
+
import { BasicModal } from "/@/components/Modal";
|
|
23
|
+
import OnlineFormDetail from "./OnlineFormDetail.js";
|
|
24
|
+
import { k as useAutoModal } from "./useAutoForm.js";
|
|
25
|
+
import CommentPanel from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
26
|
+
import { _ as _export_sfc } from "./index.js";
|
|
27
|
+
import "/@/hooks/web/useMessage";
|
|
28
|
+
import "/@/components/Loading";
|
|
29
|
+
import "/@/utils/auth";
|
|
30
|
+
import "/@/utils";
|
|
31
|
+
import "@ant-design/icons-vue";
|
|
32
|
+
import "./DetailForm.js";
|
|
33
|
+
import "/@/utils/propTypes";
|
|
34
|
+
import "/@/utils/dict";
|
|
35
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
36
|
+
import "/@/utils/dict/index";
|
|
37
|
+
import "/@/api/common/api";
|
|
38
|
+
import "/@/utils/http/axios";
|
|
39
|
+
import "/@/components/Form/src/utils/Area";
|
|
40
|
+
import "/@/utils/common/compUtils";
|
|
41
|
+
import "/@/components/Preview/index";
|
|
42
|
+
import "./FormSchemaFactory.js";
|
|
43
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
44
|
+
import "/@/views/system/user/user.api";
|
|
45
|
+
import "./_commonjsHelpers.js";
|
|
46
|
+
import "/@/store/modules/user";
|
|
47
|
+
import "/@/utils/desform/customExpression";
|
|
48
|
+
import "/@/components/Form/src/componentMap";
|
|
49
|
+
import "./OnlineSelectCascade.js";
|
|
50
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
51
|
+
import "vue-router";
|
|
52
|
+
import "/@/store/modules/permission";
|
|
53
|
+
import "/@/components/Form/index";
|
|
54
|
+
import "./pick.js";
|
|
55
|
+
import "./_flatRest.js";
|
|
56
|
+
import "./isArray.js";
|
|
57
|
+
import "./toString.js";
|
|
58
|
+
import "./_arrayPush.js";
|
|
59
|
+
import "/@/components/Table";
|
|
60
|
+
import "/@/hooks/system/useListPage";
|
|
61
|
+
import "./LinkTableListPiece.js";
|
|
62
|
+
import "./JModalTip.js";
|
|
63
|
+
import "ant-design-vue";
|
|
64
|
+
import "@vueuse/core";
|
|
65
|
+
import "./OnlineSubFormDetail.js";
|
|
66
|
+
const _sfc_main = defineComponent({
|
|
67
|
+
name: "OnlineDetailModal",
|
|
68
|
+
props: {
|
|
69
|
+
id: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: false,
|
|
72
|
+
default: ""
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
components: {
|
|
76
|
+
BasicModal,
|
|
77
|
+
OnlineFormDetail,
|
|
78
|
+
CommentPanel
|
|
79
|
+
},
|
|
80
|
+
emits: ["success", "register"],
|
|
81
|
+
setup(props) {
|
|
82
|
+
console.log("\u8FDB\u5165\u8868\u5355\u5F39\u6846\u300B\u300B\u300B\u300Bmodal");
|
|
83
|
+
const {
|
|
84
|
+
title,
|
|
85
|
+
modalWidth,
|
|
86
|
+
registerModal,
|
|
87
|
+
cgButtonList,
|
|
88
|
+
handleCgButtonClick,
|
|
89
|
+
disableSubmit,
|
|
90
|
+
handleSubmit,
|
|
91
|
+
submitLoading,
|
|
92
|
+
handleCancel,
|
|
93
|
+
handleFormConfig,
|
|
94
|
+
onlineFormCompRef,
|
|
95
|
+
formTemplate,
|
|
96
|
+
isTreeForm,
|
|
97
|
+
pidFieldName,
|
|
98
|
+
renderSuccess,
|
|
99
|
+
formRendered,
|
|
100
|
+
showSub,
|
|
101
|
+
tableName,
|
|
102
|
+
formDataId,
|
|
103
|
+
enableComment
|
|
104
|
+
} = useAutoModal();
|
|
105
|
+
watch(() => props.id, renderFormItems, { immediate: true });
|
|
106
|
+
function renderFormItems() {
|
|
107
|
+
return __async(this, null, function* () {
|
|
108
|
+
formRendered.value = false;
|
|
109
|
+
if (!props.id) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
console.log("\u91CD\u65B0\u6E32\u67D3\u8868\u5355\u300B\u300B\u300B\u300Bmodal");
|
|
113
|
+
yield handleFormConfig(props.id, {});
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
const that = {
|
|
117
|
+
title,
|
|
118
|
+
onlineFormCompRef,
|
|
119
|
+
renderSuccess,
|
|
120
|
+
registerModal,
|
|
121
|
+
handleSubmit,
|
|
122
|
+
handleCancel,
|
|
123
|
+
modalWidth,
|
|
124
|
+
formTemplate,
|
|
125
|
+
disableSubmit,
|
|
126
|
+
cgButtonList,
|
|
127
|
+
handleCgButtonClick,
|
|
128
|
+
isTreeForm,
|
|
129
|
+
pidFieldName,
|
|
130
|
+
submitLoading,
|
|
131
|
+
showSub,
|
|
132
|
+
tableName,
|
|
133
|
+
formDataId,
|
|
134
|
+
enableComment
|
|
135
|
+
};
|
|
136
|
+
return that;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
140
|
+
const _component_a_button = resolveComponent("a-button");
|
|
141
|
+
const _component_online_form_detail = resolveComponent("online-form-detail");
|
|
142
|
+
const _component_comment_panel = resolveComponent("comment-panel");
|
|
143
|
+
const _component_BasicModal = resolveComponent("BasicModal");
|
|
144
|
+
return openBlock(), createBlock(_component_BasicModal, mergeProps({
|
|
145
|
+
title: _ctx.title,
|
|
146
|
+
width: _ctx.modalWidth,
|
|
147
|
+
height: 600,
|
|
148
|
+
enableComment: _ctx.enableComment,
|
|
149
|
+
defaultFullscreen: false
|
|
150
|
+
}, _ctx.$attrs, {
|
|
151
|
+
onRegister: _ctx.registerModal,
|
|
152
|
+
wrapClassName: "jeecg-online-modal"
|
|
153
|
+
}), {
|
|
154
|
+
footer: withCtx(() => [
|
|
155
|
+
createVNode(_component_a_button, {
|
|
156
|
+
key: "back",
|
|
157
|
+
onClick: _ctx.handleCancel
|
|
158
|
+
}, {
|
|
159
|
+
default: withCtx(() => [
|
|
160
|
+
createTextVNode("\u5173\u95ED")
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}, 8, ["onClick"])
|
|
164
|
+
]),
|
|
165
|
+
comment: withCtx(() => [
|
|
166
|
+
createVNode(_component_comment_panel, {
|
|
167
|
+
tableName: _ctx.tableName,
|
|
168
|
+
dataId: _ctx.formDataId
|
|
169
|
+
}, null, 8, ["tableName", "dataId"])
|
|
170
|
+
]),
|
|
171
|
+
default: withCtx(() => [
|
|
172
|
+
createVNode(_component_online_form_detail, {
|
|
173
|
+
ref: "onlineFormCompRef",
|
|
174
|
+
id: _ctx.id,
|
|
175
|
+
"form-template": _ctx.formTemplate,
|
|
176
|
+
"show-sub": _ctx.showSub,
|
|
177
|
+
onRendered: _ctx.renderSuccess
|
|
178
|
+
}, null, 8, ["id", "form-template", "show-sub", "onRendered"])
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 16, ["title", "width", "enableComment", "onRegister"]);
|
|
182
|
+
}
|
|
183
|
+
var OnlineDetailModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
184
|
+
export { OnlineDetailModal as default };
|