@jeecg/online 3.4.3 → 3.4.4-beta2
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 +2 -1
- package/AuthButtonTree.js +2 -1
- package/AuthDataConfig.js +2 -1
- package/AuthDataTree.js +2 -1
- package/AuthFieldConfig.js +3 -2
- package/AuthFieldTree.js +2 -1
- package/AuthManagerDrawer.js +2 -1
- package/AuthSetterModal.js +2 -1
- package/CgformCopyList.js +5 -1
- package/CgformModal.js +19 -2
- package/CgreportModal.js +1 -0
- package/CheckDictTable.js +2 -2
- package/CodeFileListModal.js +2 -1
- package/CodeFileViewModal.js +2 -1
- package/CodeGeneratorModal.js +2 -1
- package/CustomButtonList.js +2 -1
- package/DBAttributeTable.js +2 -2
- package/DbToOnlineModal.js +2 -1
- package/DetailForm.js +4 -2
- package/EnhanceJavaModal.js +2 -1
- package/EnhanceJsHistory.js +1 -1
- package/EnhanceJsModal.js +2 -1
- package/EnhanceSqlModal.js +2 -1
- package/ExtendConfigModal.js +3 -3
- package/FieldExtendJsonModal.js +270 -0
- package/FileSelectModal.js +2 -1
- package/ForeignKeyTable.js +2 -2
- package/FormSchemaFactory.js +150 -10
- package/IndexTable.js +2 -2
- package/JModalTip.js +2 -2
- package/JOnlineSearchSelect.js +115 -0
- package/LICENSE +7 -0
- package/LeftDepart.js +2 -2
- package/LeftRole.js +2 -1
- package/LeftUser.js +2 -1
- package/LinkTableConfigModal.js +2 -1
- package/LinkTableFieldConfigModal.js +2 -1
- package/LinkTableListPiece.js +2 -2
- package/ModalFormDemo.js +2 -1
- package/OnlineAutoList.js +7 -4
- package/OnlineAutoModal.js +4 -2
- package/OnlineAutoTreeList.js +7 -4
- package/OnlineCustomModal.js +5 -3
- package/OnlineDetailModal.js +5 -3
- package/OnlineForm.js +49 -39
- package/OnlineFormDetail.js +4 -2
- package/OnlineQueryForm.js +12 -6
- package/OnlineSearchFormItem.js +8 -5
- package/OnlineSelectCascade.js +228 -0
- package/OnlineSubFormDetail.js +4 -2
- package/PageAttributeTable.js +70 -28
- package/ProcessOnlineForm.js +4 -2
- package/QueryTable.js +2 -2
- package/README.md +6 -1
- package/{OnlineSuperQuery.js → SuperQuery.js} +216 -128
- package/{OnlineSuperQueryValComponent.js → SuperQueryValComponent.js} +2 -2
- package/{OnlineSuperQueryValComponent.vue_vue_type_script_lang.js → SuperQueryValComponent.vue_vue_type_script_lang.js} +8 -2
- package/_arrayPush.js +1 -1
- package/_baseClone.js +1 -1
- package/_flatRest.js +1 -1
- package/cgform.data.js +8 -8
- package/clipboard.js +565 -0
- package/index.js +37 -340
- package/index2.js +8 -4
- package/index3.js +33 -571
- package/isArray.js +1 -1
- package/main.index.js +3 -3
- package/omit.js +1 -1
- package/package.json +1 -1
- package/pick.js +1 -1
- package/style.css +1 -1
- package/toString.js +1 -1
- package/useAutoForm.js +22 -5
- package/useCgformList.js +97 -5
- package/OnlCgReportList.js +0 -34
package/AuthButtonConfig.js
CHANGED
|
@@ -25,8 +25,9 @@ import { b as authButtonColumns, c as authButtonFixedList } from "./auth.data.js
|
|
|
25
25
|
import { _ as _export_sfc } from "./index.js";
|
|
26
26
|
import { b as baseClone } from "./_baseClone.js";
|
|
27
27
|
import "/@/utils/http/axios";
|
|
28
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
28
29
|
import "/@/hooks/web/useMessage";
|
|
29
|
-
import "
|
|
30
|
+
import "vue-router";
|
|
30
31
|
import "./_arrayPush.js";
|
|
31
32
|
import "./isArray.js";
|
|
32
33
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
package/AuthButtonTree.js
CHANGED
|
@@ -24,7 +24,8 @@ import { c as authButtonFixedList } from "./auth.data.js";
|
|
|
24
24
|
import { m as authButtonLoadTree, l as loadRoleAuthChecked, n as saveAuthButton } from "./auth.api.js";
|
|
25
25
|
import { _ as _export_sfc } from "./index.js";
|
|
26
26
|
import "/@/utils/http/axios";
|
|
27
|
-
import "
|
|
27
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
28
|
+
import "vue-router";
|
|
28
29
|
var AuthButtonTree_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
29
30
|
const _sfc_main = defineComponent({
|
|
30
31
|
name: "AuthButtonTree",
|
package/AuthDataConfig.js
CHANGED
|
@@ -45,8 +45,9 @@ import { g as authDataLoadData, h as authDataSaveOrUpdate, i as authDataUpdateSt
|
|
|
45
45
|
import { d as authDataColumns, u as useAuthDataFormSchemas, U as USE_SQL_RULES } from "./auth.data.js";
|
|
46
46
|
import { _ as _export_sfc } from "./index.js";
|
|
47
47
|
import "/@/utils/http/axios";
|
|
48
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
48
49
|
import "/@/hooks/web/useMessage";
|
|
49
|
-
import "
|
|
50
|
+
import "vue-router";
|
|
50
51
|
const _sfc_main = defineComponent({
|
|
51
52
|
name: "AuthDataConfig",
|
|
52
53
|
components: { BasicTable, TableAction, BasicModal, BasicForm },
|
package/AuthDataTree.js
CHANGED
|
@@ -23,7 +23,8 @@ import { useMessage } from "/@/hooks/web/useMessage";
|
|
|
23
23
|
import { o as authDataLoadTree, l as loadRoleAuthChecked, p as saveAuthData } from "./auth.api.js";
|
|
24
24
|
import { _ as _export_sfc } from "./index.js";
|
|
25
25
|
import "/@/utils/http/axios";
|
|
26
|
-
import "
|
|
26
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
27
|
+
import "vue-router";
|
|
27
28
|
var AuthDataTree_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
28
29
|
const _sfc_main = defineComponent({
|
|
29
30
|
name: "AuthDataTree",
|
package/AuthFieldConfig.js
CHANGED
|
@@ -24,8 +24,9 @@ import { a as authFieldLoadData, b as authFieldUpdateStatus, c as authFieldUpdat
|
|
|
24
24
|
import { a as authFieldColumns } from "./auth.data.js";
|
|
25
25
|
import { _ as _export_sfc } from "./index.js";
|
|
26
26
|
import "/@/utils/http/axios";
|
|
27
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
27
28
|
import "/@/hooks/web/useMessage";
|
|
28
|
-
import "
|
|
29
|
+
import "vue-router";
|
|
29
30
|
var AuthFieldConfig_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
30
31
|
const _sfc_main = defineComponent({
|
|
31
32
|
name: "AuthFieldConfig",
|
|
@@ -165,5 +166,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165
166
|
}, 8, ["onRegister"])
|
|
166
167
|
]);
|
|
167
168
|
}
|
|
168
|
-
var AuthFieldConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
169
|
+
var AuthFieldConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-63e05357"]]);
|
|
169
170
|
export { AuthFieldConfig as default };
|
package/AuthFieldTree.js
CHANGED
|
@@ -24,7 +24,8 @@ import { k as authFieldLoadTree, l as loadRoleAuthChecked, s as saveAuthField }
|
|
|
24
24
|
import { DownCircleOutlined, HomeOutlined, UpCircleOutlined, UndoOutlined, CheckOutlined } from "@ant-design/icons-vue";
|
|
25
25
|
import { _ as _export_sfc } from "./index.js";
|
|
26
26
|
import "/@/utils/http/axios";
|
|
27
|
-
import "
|
|
27
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
28
|
+
import "vue-router";
|
|
28
29
|
var AuthFieldTree_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
29
30
|
const _sfc_main = defineComponent({
|
|
30
31
|
name: "AuthFieldTree",
|
package/AuthManagerDrawer.js
CHANGED
|
@@ -13,8 +13,9 @@ import "./_arrayPush.js";
|
|
|
13
13
|
import "./isArray.js";
|
|
14
14
|
import "/@/components/Modal";
|
|
15
15
|
import "/@/components/Form";
|
|
16
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
16
17
|
import "/@/hooks/web/useMessage";
|
|
17
|
-
import "
|
|
18
|
+
import "vue-router";
|
|
18
19
|
const _sfc_main = defineComponent({
|
|
19
20
|
name: "AuthManagerDrawer",
|
|
20
21
|
components: {
|
package/AuthSetterModal.js
CHANGED
|
@@ -54,7 +54,8 @@ import "/@/hooks/web/useMessage";
|
|
|
54
54
|
import "./auth.api.js";
|
|
55
55
|
import "@ant-design/icons-vue";
|
|
56
56
|
import "./auth.data.js";
|
|
57
|
-
import "
|
|
57
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
58
|
+
import "vue-router";
|
|
58
59
|
const _sfc_main = defineComponent({
|
|
59
60
|
name: "AuthSetterModal",
|
|
60
61
|
components: {
|
package/CgformCopyList.js
CHANGED
|
@@ -10,6 +10,7 @@ import AuthManagerDrawer from "./AuthManagerDrawer.js";
|
|
|
10
10
|
import AuthSetterModal from "./AuthSetterModal.js";
|
|
11
11
|
import { C as CgformPageType, u as useCgformList } from "./useCgformList.js";
|
|
12
12
|
import { _ as _export_sfc } from "./index.js";
|
|
13
|
+
import "/@/components/Icon";
|
|
13
14
|
import "/@/components/Modal";
|
|
14
15
|
import "/@/components/Form/index";
|
|
15
16
|
import "/@/hooks/web/useMessage";
|
|
@@ -38,6 +39,7 @@ import "./omit.js";
|
|
|
38
39
|
import "./_baseClone.js";
|
|
39
40
|
import "./_baseSlice.js";
|
|
40
41
|
import "./LinkTableFieldConfigModal.js";
|
|
42
|
+
import "./FieldExtendJsonModal.js";
|
|
41
43
|
import "./CheckDictTable.js";
|
|
42
44
|
import "/@/components/jeecg/JPrompt";
|
|
43
45
|
import "/@/hooks/web/useDesign";
|
|
@@ -56,6 +58,7 @@ import "./_commonjsHelpers.js";
|
|
|
56
58
|
import "/@/store/modules/user";
|
|
57
59
|
import "/@/utils/desform/customExpression";
|
|
58
60
|
import "/@/components/Form/src/componentMap";
|
|
61
|
+
import "./OnlineSelectCascade.js";
|
|
59
62
|
import "/@/store/modules/permission";
|
|
60
63
|
import "/@/utils/propTypes";
|
|
61
64
|
import "/@/hooks/system/useListPage";
|
|
@@ -88,7 +91,8 @@ import "./LeftUser.js";
|
|
|
88
91
|
import "./AuthFieldTree.js";
|
|
89
92
|
import "./AuthButtonTree.js";
|
|
90
93
|
import "./AuthDataTree.js";
|
|
91
|
-
import "
|
|
94
|
+
import "./clipboard.js";
|
|
95
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
92
96
|
const _sfc_main = defineComponent({
|
|
93
97
|
name: "CgformCopyList",
|
|
94
98
|
components: {
|
package/CgformModal.js
CHANGED
|
@@ -38,6 +38,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
import { defineComponent, ref, computed, provide, reactive, nextTick, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList, toDisplayString, createCommentVNode, createElementVNode, toRaw } from "vue";
|
|
41
|
+
import { Icon } from "/@/components/Icon";
|
|
41
42
|
import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
|
|
42
43
|
import { BasicForm, useForm } from "/@/components/Form/index";
|
|
43
44
|
import { useMessage } from "/@/hooks/web/useMessage";
|
|
@@ -100,7 +101,8 @@ const _sfc_main = defineComponent({
|
|
|
100
101
|
ForeignKeyTable,
|
|
101
102
|
IndexTable,
|
|
102
103
|
QueryTable,
|
|
103
|
-
ExtendConfigModal
|
|
104
|
+
ExtendConfigModal,
|
|
105
|
+
Icon
|
|
104
106
|
},
|
|
105
107
|
emits: ["success", "register"],
|
|
106
108
|
props: {
|
|
@@ -547,6 +549,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
547
549
|
const _component_CheckDictTable = resolveComponent("CheckDictTable");
|
|
548
550
|
const _component_ForeignKeyTable = resolveComponent("ForeignKeyTable");
|
|
549
551
|
const _component_IndexTable = resolveComponent("IndexTable");
|
|
552
|
+
const _component_Icon = resolveComponent("Icon");
|
|
553
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
550
554
|
const _component_QueryTable = resolveComponent("QueryTable");
|
|
551
555
|
const _component_a_tabs = resolveComponent("a-tabs");
|
|
552
556
|
const _component_a_spin = resolveComponent("a-spin");
|
|
@@ -717,10 +721,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
717
721
|
_: 1
|
|
718
722
|
}),
|
|
719
723
|
createVNode(_component_a_tab_pane, {
|
|
720
|
-
tab: "\u67E5\u8BE2\u914D\u7F6E",
|
|
721
724
|
key: "queryTable",
|
|
722
725
|
forceRender: ""
|
|
723
726
|
}, {
|
|
727
|
+
tab: withCtx(() => [
|
|
728
|
+
createElementVNode("span", null, [
|
|
729
|
+
createTextVNode(" \u4E2A\u6027\u67E5\u8BE2\u914D\u7F6E "),
|
|
730
|
+
createVNode(_component_a_tooltip, null, {
|
|
731
|
+
title: withCtx(() => [
|
|
732
|
+
createTextVNode("\u5141\u8BB8\u81EA\u5B9A\u4E49\uFF0C\u67E5\u8BE2\u8868\u5355\u5B57\u6BB5\u63A7\u4EF6\u7C7B\u578B\uFF01")
|
|
733
|
+
]),
|
|
734
|
+
default: withCtx(() => [
|
|
735
|
+
createVNode(_component_Icon, { icon: "bx:help-circle" })
|
|
736
|
+
]),
|
|
737
|
+
_: 1
|
|
738
|
+
})
|
|
739
|
+
])
|
|
740
|
+
]),
|
|
724
741
|
default: withCtx(() => [
|
|
725
742
|
createVNode(_component_QueryTable, {
|
|
726
743
|
ref: "queryTable",
|
package/CgreportModal.js
CHANGED
|
@@ -601,6 +601,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
601
601
|
createVNode(_component_a_tabs, {
|
|
602
602
|
activeKey: activeKey.value,
|
|
603
603
|
"onUpdate:activeKey": _cache[0] || (_cache[0] = ($event) => activeKey.value = $event),
|
|
604
|
+
animated: "",
|
|
604
605
|
onChange: unref(handleChangeTabs)
|
|
605
606
|
}, {
|
|
606
607
|
default: withCtx(() => [
|
package/CheckDictTable.js
CHANGED
|
@@ -33,8 +33,8 @@ import "./_flatRest.js";
|
|
|
33
33
|
import "./isArray.js";
|
|
34
34
|
import "./toString.js";
|
|
35
35
|
import "./_arrayPush.js";
|
|
36
|
-
import "/@/
|
|
37
|
-
import "
|
|
36
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
37
|
+
import "vue-router";
|
|
38
38
|
var CheckDictTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
39
39
|
const _sfc_main = defineComponent({
|
|
40
40
|
name: "CheckDictTable",
|
package/CodeFileListModal.js
CHANGED
|
@@ -28,7 +28,8 @@ import { useMessage } from "/@/hooks/web/useMessage";
|
|
|
28
28
|
import { downloadByData } from "/@/utils/file/download";
|
|
29
29
|
import { _ as _export_sfc } from "./index.js";
|
|
30
30
|
import "ant-design-vue";
|
|
31
|
-
import "
|
|
31
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
32
|
+
import "vue-router";
|
|
32
33
|
const _sfc_main = {
|
|
33
34
|
name: "CodeFileListModal",
|
|
34
35
|
components: {
|
package/CodeFileViewModal.js
CHANGED
|
@@ -25,8 +25,9 @@ import { InfoCircleTwoTone } from "@ant-design/icons-vue";
|
|
|
25
25
|
import { message } from "ant-design-vue";
|
|
26
26
|
import { JCodeEditor } from "/@/components/Form";
|
|
27
27
|
import { _ as _export_sfc } from "./index.js";
|
|
28
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
28
29
|
import "/@/hooks/web/useMessage";
|
|
29
|
-
import "
|
|
30
|
+
import "vue-router";
|
|
30
31
|
const _sfc_main = defineComponent({
|
|
31
32
|
name: "CodeFileViewModal",
|
|
32
33
|
components: {
|
package/CodeGeneratorModal.js
CHANGED
|
@@ -35,7 +35,8 @@ import "/@/utils/helper/validator";
|
|
|
35
35
|
import "./CodeFileViewModal.js";
|
|
36
36
|
import "/@/hooks/web/useMessage";
|
|
37
37
|
import "/@/utils/file/download";
|
|
38
|
-
import "
|
|
38
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
39
|
+
import "vue-router";
|
|
39
40
|
const _sfc_main = defineComponent({
|
|
40
41
|
name: "CodeGenerator",
|
|
41
42
|
components: { BasicForm, BasicModal, FileSelectModal, CodeFileListModal },
|
package/CustomButtonList.js
CHANGED
|
@@ -42,8 +42,9 @@ import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
|
|
|
42
42
|
import { BasicForm, useForm } from "/@/components/Form";
|
|
43
43
|
import { defHttp } from "/@/utils/http/axios";
|
|
44
44
|
import { _ as _export_sfc } from "./index.js";
|
|
45
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
45
46
|
import "/@/hooks/web/useMessage";
|
|
46
|
-
import "
|
|
47
|
+
import "vue-router";
|
|
47
48
|
const list = (code, params) => defHttp.get({ url: "/online/cgform/button/list/" + code, params });
|
|
48
49
|
function doBatchDelete(idList) {
|
|
49
50
|
return defHttp.delete(
|
package/DBAttributeTable.js
CHANGED
|
@@ -30,9 +30,9 @@ import "./_flatRest.js";
|
|
|
30
30
|
import "./isArray.js";
|
|
31
31
|
import "./toString.js";
|
|
32
32
|
import "./_arrayPush.js";
|
|
33
|
-
import "/@/
|
|
33
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
34
34
|
import "/@/hooks/web/useMessage";
|
|
35
|
-
import "
|
|
35
|
+
import "vue-router";
|
|
36
36
|
const MySQLKeywords = [
|
|
37
37
|
"ADD",
|
|
38
38
|
"ALL",
|
package/DbToOnlineModal.js
CHANGED
|
@@ -5,7 +5,8 @@ import { BasicModal, useModalInner } from "/@/components/Modal";
|
|
|
5
5
|
import { useListTable } from "/@/hooks/system/useListPage";
|
|
6
6
|
import { useMessage } from "/@/hooks/web/useMessage";
|
|
7
7
|
import { _ as _export_sfc } from "./index.js";
|
|
8
|
-
import "
|
|
8
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
9
|
+
import "vue-router";
|
|
9
10
|
const _sfc_main = defineComponent({
|
|
10
11
|
name: "TransDb2Online",
|
|
11
12
|
components: { BasicModal, BasicTable },
|
package/DetailForm.js
CHANGED
|
@@ -56,6 +56,9 @@ import "/@/store/modules/user";
|
|
|
56
56
|
import "/@/utils";
|
|
57
57
|
import "/@/utils/desform/customExpression";
|
|
58
58
|
import "/@/components/Form/src/componentMap";
|
|
59
|
+
import "./OnlineSelectCascade.js";
|
|
60
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
61
|
+
import "vue-router";
|
|
59
62
|
import "/@/store/modules/permission";
|
|
60
63
|
import "/@/components/Modal";
|
|
61
64
|
import "/@/components/Form/index";
|
|
@@ -66,13 +69,12 @@ import "./toString.js";
|
|
|
66
69
|
import "./_arrayPush.js";
|
|
67
70
|
import "/@/components/Table";
|
|
68
71
|
import "/@/hooks/system/useListPage";
|
|
69
|
-
import "vue-router";
|
|
70
72
|
import "./LinkTableListPiece.js";
|
|
71
|
-
import "@vueuse/core";
|
|
72
73
|
import "/@/components/Loading";
|
|
73
74
|
import "/@/utils/auth";
|
|
74
75
|
import "./JModalTip.js";
|
|
75
76
|
import "ant-design-vue";
|
|
77
|
+
import "@vueuse/core";
|
|
76
78
|
function useDetailForm(props) {
|
|
77
79
|
console.log(props);
|
|
78
80
|
const dictOptionsMap = {};
|
package/EnhanceJavaModal.js
CHANGED
|
@@ -49,8 +49,9 @@ import "/@/utils/dict/JDictSelectUtil";
|
|
|
49
49
|
import "/@/utils/uuid";
|
|
50
50
|
import "/@/utils/http/axios";
|
|
51
51
|
import "/@/utils/is";
|
|
52
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
52
53
|
import "/@/hooks/web/useMessage";
|
|
53
|
-
import "
|
|
54
|
+
import "vue-router";
|
|
54
55
|
const _sfc_main = defineComponent({
|
|
55
56
|
name: "EnhanceJavaModal",
|
|
56
57
|
components: { BasicModal, BasicTable, BasicForm, TableAction },
|
package/EnhanceJsHistory.js
CHANGED
|
@@ -221,7 +221,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
221
221
|
_: 1
|
|
222
222
|
}, 8, ["onRegister", "confirmLoading", "onCancel"]);
|
|
223
223
|
}
|
|
224
|
-
var EnhanceJsHistory = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
224
|
+
var EnhanceJsHistory = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0e8e9411"]]);
|
|
225
225
|
var EnhanceJsHistory$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
226
226
|
__proto__: null,
|
|
227
227
|
"default": EnhanceJsHistory
|
package/EnhanceJsModal.js
CHANGED
|
@@ -32,7 +32,8 @@ import "pinia";
|
|
|
32
32
|
import "/@/utils/cache";
|
|
33
33
|
import "/@/utils/http/axios";
|
|
34
34
|
import "/@/utils/is";
|
|
35
|
-
import "
|
|
35
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
36
|
+
import "vue-router";
|
|
36
37
|
const _sfc_main = defineComponent({
|
|
37
38
|
name: "EnhanceJs",
|
|
38
39
|
components: { BasicModal, JCodeEditor, EnhanceJsHistory },
|
package/EnhanceSqlModal.js
CHANGED
|
@@ -49,8 +49,9 @@ import "/@/utils/dict/JDictSelectUtil";
|
|
|
49
49
|
import "/@/utils/uuid";
|
|
50
50
|
import "/@/utils/http/axios";
|
|
51
51
|
import "/@/utils/is";
|
|
52
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
52
53
|
import "/@/hooks/web/useMessage";
|
|
53
|
-
import "
|
|
54
|
+
import "vue-router";
|
|
54
55
|
const _sfc_main = defineComponent({
|
|
55
56
|
name: "EnhanceSqlModal",
|
|
56
57
|
components: { BasicModal, BasicTable, BasicForm, TableAction },
|
package/ExtendConfigModal.js
CHANGED
|
@@ -29,8 +29,8 @@ import "@ant-design/icons-vue";
|
|
|
29
29
|
import "/@/utils/common/compUtils";
|
|
30
30
|
import "/@/hooks/web/usePermission";
|
|
31
31
|
import "/@/utils/helper/validator";
|
|
32
|
-
import "/@/
|
|
33
|
-
import "
|
|
32
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
33
|
+
import "vue-router";
|
|
34
34
|
var ExtendConfigModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
35
35
|
const _sfc_main = defineComponent({
|
|
36
36
|
name: "CgformExtConfigModel",
|
|
@@ -147,5 +147,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
147
147
|
_: 1
|
|
148
148
|
}, 8, ["onRegister", "onOk", "onCancel"]);
|
|
149
149
|
}
|
|
150
|
-
var ExtendConfigModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
150
|
+
var ExtendConfigModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1eeac864"]]);
|
|
151
151
|
export { ExtendConfigModal as default };
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __async = (__this, __arguments, generator) => {
|
|
21
|
+
return new Promise((resolve, reject) => {
|
|
22
|
+
var fulfilled = (value) => {
|
|
23
|
+
try {
|
|
24
|
+
step(generator.next(value));
|
|
25
|
+
} catch (e) {
|
|
26
|
+
reject(e);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var rejected = (value) => {
|
|
30
|
+
try {
|
|
31
|
+
step(generator.throw(value));
|
|
32
|
+
} catch (e) {
|
|
33
|
+
reject(e);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
import { defineComponent, ref, reactive, toRaw, toRefs, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode } from "vue";
|
|
41
|
+
import { BasicModal, useModalInner } from "/@/components/Modal";
|
|
42
|
+
import { BasicForm, useForm } from "/@/components/Form/index";
|
|
43
|
+
import { _ as _export_sfc } from "./index.js";
|
|
44
|
+
import { p as pick } from "./pick.js";
|
|
45
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
46
|
+
import "/@/hooks/web/useMessage";
|
|
47
|
+
import "vue-router";
|
|
48
|
+
import "./_flatRest.js";
|
|
49
|
+
import "./isArray.js";
|
|
50
|
+
import "./toString.js";
|
|
51
|
+
import "./_arrayPush.js";
|
|
52
|
+
const _sfc_main = defineComponent({
|
|
53
|
+
name: "FieldExtendJsonModal",
|
|
54
|
+
components: {
|
|
55
|
+
BasicModal,
|
|
56
|
+
BasicForm
|
|
57
|
+
},
|
|
58
|
+
emits: ["success", "register"],
|
|
59
|
+
setup(_p, { emit }) {
|
|
60
|
+
const spinningLoading = ref(false);
|
|
61
|
+
function initExtendConfig() {
|
|
62
|
+
extendConfig.uploadnum = 0;
|
|
63
|
+
extendConfig.showLength = "";
|
|
64
|
+
extendConfig.popupMulti = true;
|
|
65
|
+
extendConfig.multiSelect = true;
|
|
66
|
+
extendConfig.store = "";
|
|
67
|
+
extendConfig.text = "";
|
|
68
|
+
extendConfig.orderRule = "";
|
|
69
|
+
extendConfig.validateError = "";
|
|
70
|
+
}
|
|
71
|
+
const extendConfig = reactive({
|
|
72
|
+
uploadnum: 0,
|
|
73
|
+
showLength: "",
|
|
74
|
+
popupMulti: true,
|
|
75
|
+
store: "",
|
|
76
|
+
text: "",
|
|
77
|
+
multiSelect: true,
|
|
78
|
+
orderRule: "",
|
|
79
|
+
validateError: ""
|
|
80
|
+
});
|
|
81
|
+
const fieldShowType = ref("");
|
|
82
|
+
const rowKey = ref("");
|
|
83
|
+
const sortFlag = ref("0");
|
|
84
|
+
const formSchemas = [
|
|
85
|
+
{
|
|
86
|
+
label: "rowKey",
|
|
87
|
+
field: "rowKey",
|
|
88
|
+
component: "Input",
|
|
89
|
+
show: false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: "\u6587\u4EF6\u4E0A\u4F20\u6570\u91CF",
|
|
93
|
+
field: "uploadnum",
|
|
94
|
+
component: "InputNumber",
|
|
95
|
+
componentProps: {
|
|
96
|
+
style: {
|
|
97
|
+
width: "100%"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
ifShow: () => {
|
|
101
|
+
return fieldShowType.value === "file" || fieldShowType.value === "image";
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: "\u662F\u5426\u591A\u9009",
|
|
106
|
+
field: "popupMulti",
|
|
107
|
+
component: "RadioGroup",
|
|
108
|
+
defaultValue: true,
|
|
109
|
+
componentProps: {
|
|
110
|
+
options: [
|
|
111
|
+
{ label: "\u5426", value: false },
|
|
112
|
+
{ label: "\u662F", value: true }
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
ifShow: () => {
|
|
116
|
+
return fieldShowType.value === "popup";
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: "\u662F\u5426\u591A\u9009",
|
|
121
|
+
field: "multiSelect",
|
|
122
|
+
component: "RadioGroup",
|
|
123
|
+
defaultValue: true,
|
|
124
|
+
componentProps: {
|
|
125
|
+
options: [
|
|
126
|
+
{ label: "\u5426", value: false },
|
|
127
|
+
{ label: "\u662F", value: true }
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
ifShow: () => {
|
|
131
|
+
return fieldShowType.value === "sel_user" || fieldShowType.value === "sel_depart";
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
label: "\u5B58\u50A8\u5B57\u6BB5",
|
|
136
|
+
field: "store",
|
|
137
|
+
component: "Input",
|
|
138
|
+
ifShow: () => {
|
|
139
|
+
return fieldShowType.value === "sel_user" || fieldShowType.value === "sel_depart";
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: "\u5C55\u793A\u5B57\u6BB5",
|
|
144
|
+
field: "text",
|
|
145
|
+
component: "Input",
|
|
146
|
+
ifShow: () => {
|
|
147
|
+
return fieldShowType.value === "sel_user" || fieldShowType.value === "sel_depart";
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
label: "\u9ED8\u8BA4\u6392\u5E8F",
|
|
152
|
+
field: "orderRule",
|
|
153
|
+
component: "RadioGroup",
|
|
154
|
+
defaultValue: "",
|
|
155
|
+
componentProps: {
|
|
156
|
+
options: [
|
|
157
|
+
{ label: "\u964D\u5E8F", value: "desc" },
|
|
158
|
+
{ label: "\u5347\u5E8F", value: "asc" },
|
|
159
|
+
{ label: "\u4E0D\u9ED8\u8BA4\u6392\u5E8F", value: "" }
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
ifShow: () => {
|
|
163
|
+
return sortFlag.value === "1";
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: "\u6821\u9A8C\u63D0\u793A",
|
|
168
|
+
field: "validateError",
|
|
169
|
+
component: "Input",
|
|
170
|
+
componentProps: {
|
|
171
|
+
placeholder: "\u8BF7\u8F93\u5165\u6821\u9A8C\u63D0\u793A\u6587\u672C"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
];
|
|
175
|
+
const [registerForm, { validate, setFieldsValue, resetFields }] = useForm({
|
|
176
|
+
schemas: formSchemas,
|
|
177
|
+
showActionButtonGroup: false,
|
|
178
|
+
labelAlign: "right",
|
|
179
|
+
labelWidth: 100
|
|
180
|
+
});
|
|
181
|
+
const [registerModal, { closeModal }] = useModalInner((data) => __async(this, null, function* () {
|
|
182
|
+
console.log("extend json", data);
|
|
183
|
+
initExtendConfig();
|
|
184
|
+
if (data.jsonStr) {
|
|
185
|
+
let json = JSON.parse(data.jsonStr);
|
|
186
|
+
Object.keys(json).map((k) => {
|
|
187
|
+
console.log("\u6269\u5C55\u53C2\u6570:" + k + "=" + json[k]);
|
|
188
|
+
extendConfig[k] = json[k];
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
fieldShowType.value = data.fieldShowType;
|
|
192
|
+
rowKey.value = data.id;
|
|
193
|
+
sortFlag.value = data.sortFlag;
|
|
194
|
+
let temp = toRaw(extendConfig);
|
|
195
|
+
yield resetFields();
|
|
196
|
+
yield setFieldsValue(__spreadProps(__spreadValues({}, temp), {
|
|
197
|
+
rowKey: data.id
|
|
198
|
+
}));
|
|
199
|
+
}));
|
|
200
|
+
function handleSubmit() {
|
|
201
|
+
return __async(this, null, function* () {
|
|
202
|
+
let data = yield validate();
|
|
203
|
+
console.log("datga", data);
|
|
204
|
+
let type = fieldShowType.value;
|
|
205
|
+
let obj = {};
|
|
206
|
+
if (type === "file" || type === "image") {
|
|
207
|
+
if (data.uploadnum && data.uploadnum > 0) {
|
|
208
|
+
obj.uploadnum = data.uploadnum;
|
|
209
|
+
}
|
|
210
|
+
} else if (type === "textarea" || type === "text") {
|
|
211
|
+
if (data.showLength && data.showLength > 0) {
|
|
212
|
+
obj.showLength = data.showLength;
|
|
213
|
+
}
|
|
214
|
+
} else if (type === "sel_user" || type === "sel_depart") {
|
|
215
|
+
obj = pick(data, "store", "text", "multiSelect");
|
|
216
|
+
} else if (type === "popup") {
|
|
217
|
+
obj.popupMulti = data.popupMulti;
|
|
218
|
+
}
|
|
219
|
+
if (sortFlag.value === "1" && data.orderRule) {
|
|
220
|
+
obj.orderRule = data.orderRule;
|
|
221
|
+
}
|
|
222
|
+
if (data.validateError) {
|
|
223
|
+
obj.validateError = data.validateError;
|
|
224
|
+
}
|
|
225
|
+
console.log("obj....", obj);
|
|
226
|
+
for (let key in obj) {
|
|
227
|
+
if (obj[key] === "") {
|
|
228
|
+
delete obj[key];
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
console.log(obj);
|
|
232
|
+
emit("success", obj, data.rowKey);
|
|
233
|
+
closeModal();
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
return __spreadValues({
|
|
237
|
+
spinningLoading,
|
|
238
|
+
registerModal,
|
|
239
|
+
registerForm,
|
|
240
|
+
fieldShowType,
|
|
241
|
+
rowKey,
|
|
242
|
+
handleSubmit
|
|
243
|
+
}, toRefs(extendConfig));
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
247
|
+
const _component_BasicForm = resolveComponent("BasicForm");
|
|
248
|
+
const _component_a_spin = resolveComponent("a-spin");
|
|
249
|
+
const _component_BasicModal = resolveComponent("BasicModal");
|
|
250
|
+
return openBlock(), createBlock(_component_BasicModal, mergeProps({ wrapClassName: "field-extend-config-modal" }, _ctx.$attrs, {
|
|
251
|
+
title: "\u6269\u5C55\u53C2\u6570\u914D\u7F6E",
|
|
252
|
+
onRegister: _ctx.registerModal,
|
|
253
|
+
keyboard: "",
|
|
254
|
+
canFullscreen: false,
|
|
255
|
+
cancelText: "\u5173\u95ED",
|
|
256
|
+
onOk: _ctx.handleSubmit
|
|
257
|
+
}), {
|
|
258
|
+
default: withCtx(() => [
|
|
259
|
+
createVNode(_component_a_spin, { spinning: _ctx.spinningLoading }, {
|
|
260
|
+
default: withCtx(() => [
|
|
261
|
+
createVNode(_component_BasicForm, { onRegister: _ctx.registerForm }, null, 8, ["onRegister"])
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
}, 8, ["spinning"])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
}, 16, ["onRegister", "onOk"]);
|
|
268
|
+
}
|
|
269
|
+
var FieldExtendJsonModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
270
|
+
export { FieldExtendJsonModal as default };
|
package/FileSelectModal.js
CHANGED
|
@@ -22,8 +22,9 @@ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx
|
|
|
22
22
|
import { defHttp } from "/@/utils/http/axios";
|
|
23
23
|
import { BasicModal, useModalInner } from "/@/components/Modal";
|
|
24
24
|
import { _ as _export_sfc } from "./index.js";
|
|
25
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
25
26
|
import "/@/hooks/web/useMessage";
|
|
26
|
-
import "
|
|
27
|
+
import "vue-router";
|
|
27
28
|
const _sfc_main = defineComponent({
|
|
28
29
|
name: "FileSelectModal",
|
|
29
30
|
components: { BasicModal },
|