@jeecg/online 1.0.1

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.
Files changed (82) hide show
  1. package/AuthButtonConfig.js +140 -0
  2. package/AuthButtonTree.js +183 -0
  3. package/AuthDataConfig.js +243 -0
  4. package/AuthDataTree.js +160 -0
  5. package/AuthFieldConfig.js +167 -0
  6. package/AuthFieldTree.js +273 -0
  7. package/AuthManagerDrawer.js +125 -0
  8. package/AuthSetterModal.js +317 -0
  9. package/CgformCopyList.js +253 -0
  10. package/CgformModal.js +748 -0
  11. package/CgreportModal.js +673 -0
  12. package/ChartAutoRender.js +69 -0
  13. package/ChartDoubleRender.js +154 -0
  14. package/ChartSingleRender.js +132 -0
  15. package/ChartTabsRender.js +218 -0
  16. package/CheckDictTable.js +121 -0
  17. package/CodeGeneratorModal.js +293 -0
  18. package/CustomButtonList.js +413 -0
  19. package/DBAttributeTable.js +278 -0
  20. package/DbToOnlineModal.js +190 -0
  21. package/EnhanceJavaModal.js +304 -0
  22. package/EnhanceJsHistory.js +231 -0
  23. package/EnhanceJsModal.js +293 -0
  24. package/EnhanceSqlModal.js +305 -0
  25. package/ErrorTip.js +21 -0
  26. package/ExtendConfigModal.js +142 -0
  27. package/FieldTable.js +185 -0
  28. package/FileSelectModal.js +102 -0
  29. package/ForeignKeyTable.js +78 -0
  30. package/FormSchemaFactory.js +938 -0
  31. package/GraphreportAutoChart.js +352 -0
  32. package/GraphreportList.js +239 -0
  33. package/GraphreportModal.js +559 -0
  34. package/IndexTable.js +96 -0
  35. package/JOnlineSearchSelect.js +107 -0
  36. package/LICENSE +7 -0
  37. package/LeftDepart.js +96 -0
  38. package/LeftRole.js +95 -0
  39. package/LeftUser.js +114 -0
  40. package/ModalFormDemo.js +84 -0
  41. package/OnlineAutoList.js +410 -0
  42. package/OnlineAutoModal.js +265 -0
  43. package/OnlineAutoTreeList.js +513 -0
  44. package/OnlineCustomModal.js +269 -0
  45. package/OnlineForm.js +809 -0
  46. package/OnlineQueryForm.js +442 -0
  47. package/OnlineSearchFormItem.js +428 -0
  48. package/OnlineSelectCascade.js +217 -0
  49. package/OnlineSubForm.js +200 -0
  50. package/OnlineSuperQuery.js +912 -0
  51. package/OnlineSuperQueryValComponent.js +8 -0
  52. package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +172 -0
  53. package/PageAttributeTable.js +242 -0
  54. package/ParamsTable.js +71 -0
  55. package/ProcessOnlineForm.js +183 -0
  56. package/QueryTable.js +128 -0
  57. package/README.md +23 -0
  58. package/_arrayPush.js +276 -0
  59. package/auth.api.js +43 -0
  60. package/auth.data.js +144 -0
  61. package/cgform.data.js +235 -0
  62. package/cloneDeep.js +475 -0
  63. package/enhance.api.js +120 -0
  64. package/enhance.data.js +196 -0
  65. package/graphreport.api.js +23 -0
  66. package/index.js +64 -0
  67. package/index2.js +336 -0
  68. package/index3.js +799 -0
  69. package/isArray.js +47 -0
  70. package/main.index.js +6 -0
  71. package/package.json +6 -0
  72. package/pick.js +238 -0
  73. package/style.css +1 -0
  74. package/toString.js +31 -0
  75. package/useAutoForm.js +4274 -0
  76. package/useCgformList.js +353 -0
  77. package/useChartRender.js +405 -0
  78. package/useMessageOnline.js +71 -0
  79. package/useOnlineTest.js +26866 -0
  80. package/useSchemas.js +505 -0
  81. package/useTableColumns.js +1154 -0
  82. package/useTableSync.js +105 -0
@@ -0,0 +1,102 @@
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, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode } from "vue";
22
+ import { defHttp } from "/@/utils/http/axios";
23
+ import { BasicModal, useModalInner } from "/@/components/Modal";
24
+ import { _ as _export_sfc } from "./index.js";
25
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
26
+ import "/@/hooks/web/useMessage";
27
+ import "vue-router";
28
+ const _sfc_main = defineComponent({
29
+ name: "FileSelectModal",
30
+ components: { BasicModal },
31
+ emits: ["select", "register"],
32
+ setup(_, { emit }) {
33
+ const loading = ref(true);
34
+ const treeData = ref([]);
35
+ const selectedKey = ref("");
36
+ const [registerModal, { closeModal }] = useModalInner(() => __async(this, null, function* () {
37
+ selectedKey.value = "";
38
+ if (treeData.value.length === 0) {
39
+ loadRoot();
40
+ }
41
+ }));
42
+ function onSubmit() {
43
+ emit("select", selectedKey.value);
44
+ closeModal();
45
+ }
46
+ function onCancel() {
47
+ closeModal();
48
+ }
49
+ function loadRoot() {
50
+ return __async(this, null, function* () {
51
+ loading.value = true;
52
+ treeData.value = yield defHttp.get({ url: "/online/cgform/head/rootFile" }).finally(() => {
53
+ loading.value = false;
54
+ });
55
+ });
56
+ }
57
+ function onLoadData(treeNode) {
58
+ return __async(this, null, function* () {
59
+ if (treeNode.dataRef.children) {
60
+ return;
61
+ }
62
+ let params = {
63
+ parentPath: treeNode.dataRef.key
64
+ };
65
+ treeNode.dataRef.children = yield defHttp.get({ url: "/online/cgform/head/fileTree", params });
66
+ treeData.value = [...treeData.value];
67
+ });
68
+ }
69
+ function onSelect(selectedKeys) {
70
+ selectedKey.value = selectedKeys[0];
71
+ }
72
+ return { loading, treeData, onLoadData, onSelect, onSubmit, onCancel, registerModal };
73
+ }
74
+ });
75
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
76
+ const _component_a_directory_tree = resolveComponent("a-directory-tree");
77
+ const _component_a_spin = resolveComponent("a-spin");
78
+ const _component_BasicModal = resolveComponent("BasicModal");
79
+ return openBlock(), createBlock(_component_BasicModal, {
80
+ onRegister: _ctx.registerModal,
81
+ title: "\u9009\u62E9\u76EE\u5F55",
82
+ width: 500,
83
+ onOk: _ctx.onSubmit,
84
+ onCancel: _ctx.onCancel
85
+ }, {
86
+ default: withCtx(() => [
87
+ createVNode(_component_a_spin, { spinning: _ctx.loading }, {
88
+ default: withCtx(() => [
89
+ createVNode(_component_a_directory_tree, {
90
+ treeData: _ctx.treeData,
91
+ loadData: _ctx.onLoadData,
92
+ onSelect: _ctx.onSelect
93
+ }, null, 8, ["treeData", "loadData", "onSelect"])
94
+ ]),
95
+ _: 1
96
+ }, 8, ["spinning"])
97
+ ]),
98
+ _: 1
99
+ }, 8, ["onRegister", "onOk", "onCancel"]);
100
+ }
101
+ var FileSelectModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
102
+ export { FileSelectModal as default };
@@ -0,0 +1,78 @@
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
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock } from "vue";
21
+ import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
22
+ import { u as useTableSync } from "./useTableSync.js";
23
+ import { _ as _export_sfc } from "./index.js";
24
+ import "./cgform.data.js";
25
+ import "/@/utils/dict";
26
+ import "/@/utils/dict/JDictSelectUtil";
27
+ import "/@/utils/uuid";
28
+ import "./pick.js";
29
+ import "./isArray.js";
30
+ import "./toString.js";
31
+ import "./_arrayPush.js";
32
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
33
+ import "/@/hooks/web/useMessage";
34
+ import "vue-router";
35
+ const _sfc_main = defineComponent({
36
+ name: "ForeignKeyTable",
37
+ props: {
38
+ actionButton: { type: Boolean, default: true }
39
+ },
40
+ setup() {
41
+ const columns = ref([
42
+ { title: "\u5B57\u6BB5\u540D\u79F0", key: "dbFieldName", width: 160 },
43
+ { title: "\u5B57\u6BB5\u5907\u6CE8", key: "dbFieldTxt", width: 160 },
44
+ {
45
+ title: "\u4E3B\u8868\u540D",
46
+ key: "mainTable",
47
+ width: 280,
48
+ type: JVxeTypes.input,
49
+ defaultValue: ""
50
+ },
51
+ {
52
+ title: "\u4E3B\u8868\u5B57\u6BB5",
53
+ key: "mainField",
54
+ width: 280,
55
+ type: JVxeTypes.input,
56
+ defaultValue: ""
57
+ }
58
+ ]);
59
+ const setup = useTableSync(columns);
60
+ return __spreadProps(__spreadValues({}, setup), { columns });
61
+ }
62
+ });
63
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
64
+ const _component_JVxeTable = resolveComponent("JVxeTable");
65
+ return openBlock(), createBlock(_component_JVxeTable, {
66
+ ref: "tableRef",
67
+ rowNumber: "",
68
+ keyboardEdit: "",
69
+ maxHeight: _ctx.tableHeight.noToolbar,
70
+ loading: _ctx.loading,
71
+ columns: _ctx.columns,
72
+ dataSource: _ctx.dataSource,
73
+ disabled: !_ctx.actionButton,
74
+ disabledRows: { dbFieldName: ["id", "has_child"] }
75
+ }, null, 8, ["maxHeight", "loading", "columns", "dataSource", "disabled"]);
76
+ }
77
+ var ForeignKeyTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
78
+ export { ForeignKeyTable as default };