@jeecg/online 3.5.3-beta2 → 3.5.3-vite4

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 (154) hide show
  1. package/AuthButtonConfig-2f71787c.mjs +125 -0
  2. package/AuthButtonTree-d73bccf5.mjs +156 -0
  3. package/AuthDataConfig-32cf23d2.mjs +212 -0
  4. package/AuthDataTree-03d62d3f.mjs +139 -0
  5. package/AuthFieldConfig-b1217a0c.mjs +139 -0
  6. package/AuthFieldTree-888e04a9.mjs +232 -0
  7. package/AuthManagerDrawer-f127b8a2.mjs +114 -0
  8. package/AuthSetterModal-37da78ed.mjs +261 -0
  9. package/CgformCopyList-3adab58f.mjs +245 -0
  10. package/CgformModal-6938d8c2.mjs +613 -0
  11. package/CgreportModal-77ec8c17.mjs +12 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
  13. package/CheckDictTable-414313f2.mjs +211 -0
  14. package/CodeFileListModal-4831ce3d.mjs +158 -0
  15. package/CodeFileViewModal-5990dac4.mjs +244 -0
  16. package/CodeGeneratorModal-7df9e25d.mjs +234 -0
  17. package/CustomButtonList-1c9bd859.mjs +363 -0
  18. package/DBAttributeTable-cd1c41e5.mjs +473 -0
  19. package/DbToOnlineModal-dc5d2030.mjs +160 -0
  20. package/DetailForm-e4538e7a.mjs +446 -0
  21. package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
  22. package/EnhanceJsHistory-c30805ce.mjs +184 -0
  23. package/EnhanceJsModal-0b133341.mjs +233 -0
  24. package/EnhanceSqlModal-33a94c83.mjs +259 -0
  25. package/ExtendConfigModal-60f2cf86.mjs +111 -0
  26. package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
  27. package/FileSelectModal-64aaf623.mjs +91 -0
  28. package/ForeignKeyTable-cb1abd1d.mjs +69 -0
  29. package/IndexTable-4e94cd1f.mjs +89 -0
  30. package/JModalTip-abe1515a.mjs +46 -0
  31. package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
  32. package/LeftDepart-ca7a7375.mjs +82 -0
  33. package/LeftRole-d0fa8398.mjs +86 -0
  34. package/LeftUser-0c88c240.mjs +105 -0
  35. package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
  36. package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
  37. package/LinkTableListPiece-34266919.mjs +34 -0
  38. package/ModalFormDemo-0eeea994.mjs +78 -0
  39. package/OnlCgformErpList-7a0388d8.mjs +425 -0
  40. package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
  41. package/OnlineAutoList-85e6a30d.mjs +472 -0
  42. package/OnlineAutoModal-2a146238.mjs +206 -0
  43. package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
  44. package/OnlineCustomModal-456a85a6.mjs +227 -0
  45. package/OnlineDetailModal-f967f080.mjs +177 -0
  46. package/OnlineForm-630a22c2.mjs +778 -0
  47. package/OnlineFormDetail-1b216792.mjs +296 -0
  48. package/OnlineQueryForm-1c5949a7.mjs +378 -0
  49. package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
  50. package/OnlineSelectCascade-c7baf52b.mjs +160 -0
  51. package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
  52. package/PageAttributeTable-811185fd.mjs +404 -0
  53. package/ProcessOnlineForm-27be6f6f.mjs +177 -0
  54. package/QueryTable-4ba771ef.mjs +115 -0
  55. package/SuperQuery-3821f984.mjs +845 -0
  56. package/SuperQueryValComponent-471110b5.mjs +8 -0
  57. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  58. package/auth.api-d3a6c4b3.mjs +39 -0
  59. package/auth.data-8be5c9e3.mjs +141 -0
  60. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  61. package/constant-fe20103a.mjs +6 -0
  62. package/enhance.api-138e6826.mjs +104 -0
  63. package/enhance.data-efc7e155.mjs +175 -0
  64. package/index-074b92e5.mjs +236 -0
  65. package/index-6a09a912.mjs +58 -0
  66. package/index-9d32ae88.mjs +313 -0
  67. package/main.index.js +7 -1
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/useCgformList-2d6a5955.mjs +388 -0
  71. package/useExtendComponent-48d37d9b.mjs +3919 -0
  72. package/useListButton-cef1371a.mjs +656 -0
  73. package/useOnlinePopEvent-e9a042f8.mjs +19 -0
  74. package/useOnlineTest-0df0ae86.mjs +43 -0
  75. package/useSchemas-fc8d97ce.mjs +669 -0
  76. package/useTableSync-dc333087.mjs +83 -0
  77. package/AuthButtonConfig.js +0 -147
  78. package/AuthButtonTree.js +0 -183
  79. package/AuthDataConfig.js +0 -246
  80. package/AuthDataTree.js +0 -160
  81. package/AuthFieldConfig.js +0 -170
  82. package/AuthFieldTree.js +0 -281
  83. package/AuthManagerDrawer.js +0 -125
  84. package/AuthSetterModal.js +0 -316
  85. package/CgformCopyList.js +0 -266
  86. package/CgformModal.js +0 -780
  87. package/CgreportModal.js +0 -667
  88. package/CheckDictTable.js +0 -242
  89. package/CodeFileListModal.js +0 -175
  90. package/CodeFileViewModal.js +0 -325
  91. package/CodeGeneratorModal.js +0 -297
  92. package/CustomButtonList.js +0 -410
  93. package/DBAttributeTable.js +0 -526
  94. package/DbToOnlineModal.js +0 -192
  95. package/DetailForm.js +0 -608
  96. package/EnhanceJavaModal.js +0 -298
  97. package/EnhanceJsHistory.js +0 -229
  98. package/EnhanceJsModal.js +0 -293
  99. package/EnhanceSqlModal.js +0 -299
  100. package/ExtendConfigModal.js +0 -151
  101. package/FieldExtendJsonModal.js +0 -283
  102. package/FileSelectModal.js +0 -102
  103. package/ForeignKeyTable.js +0 -79
  104. package/IndexTable.js +0 -97
  105. package/JModalTip.js +0 -54
  106. package/JOnlineSearchSelect.js +0 -115
  107. package/LICENSE +0 -9
  108. package/LeftDepart.js +0 -96
  109. package/LeftRole.js +0 -98
  110. package/LeftUser.js +0 -117
  111. package/LinkTableConfigModal.js +0 -289
  112. package/LinkTableFieldConfigModal.js +0 -218
  113. package/LinkTableListPiece.js +0 -36
  114. package/ModalFormDemo.js +0 -85
  115. package/OnlineAutoList.js +0 -524
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -553
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1018
  121. package/OnlineFormDetail.js +0 -347
  122. package/OnlineQueryForm.js +0 -484
  123. package/OnlineSearchFormItem.js +0 -436
  124. package/OnlineSelectCascade.js +0 -228
  125. package/OnlineSubFormDetail.js +0 -166
  126. package/PageAttributeTable.js +0 -486
  127. package/ProcessOnlineForm.js +0 -208
  128. package/QueryTable.js +0 -129
  129. package/SuperQuery.js +0 -1021
  130. package/SuperQueryValComponent.js +0 -9
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
  132. package/_arrayPush.js +0 -278
  133. package/_baseClone.js +0 -471
  134. package/_baseSlice.js +0 -18
  135. package/_commonjsHelpers.js +0 -5
  136. package/_flatRest.js +0 -174
  137. package/auth.api.js +0 -43
  138. package/auth.data.js +0 -142
  139. package/clipboard.js +0 -565
  140. package/enhance.api.js +0 -129
  141. package/enhance.data.js +0 -196
  142. package/index.js +0 -87
  143. package/index2.js +0 -340
  144. package/index3.js +0 -264
  145. package/isArray.js +0 -47
  146. package/omit.js +0 -60
  147. package/pick.js +0 -68
  148. package/toString.js +0 -31
  149. package/useCgformList.js +0 -470
  150. package/useExtendComponent.js +0 -5205
  151. package/useListButton.js +0 -923
  152. package/useOnlineTest.js +0 -44
  153. package/useSchemas.js +0 -653
  154. package/useTableSync.js +0 -117
@@ -1,151 +0,0 @@
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, resolveComponent, openBlock, createBlock, withCtx, createVNode, nextTick } from "vue";
22
- import { BasicModal, useModalInner } from "/@/components/Modal";
23
- import { BasicForm, useForm } from "/@/components/Form";
24
- import { useMessage } from "/@/hooks/web/useMessage";
25
- import { a as useExtendConfigFormSchemas } from "./useSchemas.js";
26
- import { _ as _export_sfc } from "./index.js";
27
- import "ant-design-vue";
28
- import "@ant-design/icons-vue";
29
- import "/@/utils/common/compUtils";
30
- import "/@/hooks/web/usePermission";
31
- import "/@/utils/helper/validator";
32
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
33
- import "vue-router";
34
- var ExtendConfigModal_vue_vue_type_style_index_0_scoped_true_lang = "";
35
- const _sfc_main = defineComponent({
36
- name: "CgformExtConfigModel",
37
- components: { BasicModal, BasicForm },
38
- props: {
39
- parentForm: {
40
- type: Object,
41
- required: true
42
- }
43
- },
44
- emits: ["register", "ok"],
45
- setup(props, { emit }) {
46
- const { createMessage: $message } = useMessage();
47
- const { formSchemas } = useExtendConfigFormSchemas(props, {
48
- onIsDesformChange,
49
- onJoinQueryChange,
50
- onReportPrintShowChange
51
- });
52
- const [registerForm, { resetFields, setFieldsValue, getFieldsValue, clearValidate, validate }] = useForm({
53
- schemas: formSchemas,
54
- showActionButtonGroup: false,
55
- labelAlign: "right"
56
- });
57
- const [registerModal, { closeModal }] = useModalInner((data) => __async(this, null, function* () {
58
- yield resetFields();
59
- yield setFieldsValue(data.extConfigJson);
60
- }));
61
- function handleOk() {
62
- return __async(this, null, function* () {
63
- yield clearValidate();
64
- yield nextTick();
65
- try {
66
- const values = yield validate();
67
- emit("ok", values);
68
- closeModal();
69
- } catch (e) {
70
- }
71
- });
72
- }
73
- function handleCancel() {
74
- closeModal();
75
- }
76
- function onIsDesformChange(value) {
77
- if (value === "Y") {
78
- let { themeTemplate } = props.parentForm.getFieldsValue(["themeTemplate"]);
79
- if ("erp" === themeTemplate) {
80
- props.parentForm.setFieldsValue({ themeTemplate: "normal" });
81
- $message.warning("\u8BF7\u6CE8\u610F\uFF1Aerp\u98CE\u683C\u4E0D\u652F\u6301\u5BF9\u63A5\u8868\u5355\u8BBE\u8BA1\uFF0C\u5DF2\u81EA\u52A8\u6539\u4E3A\u9ED8\u8BA4\u98CE\u683C\uFF01");
82
- }
83
- } else {
84
- clearValidate("desFormCode");
85
- }
86
- }
87
- const defaultReportPrintUrl = `{{ window._CONFIG['domianURL'] }}/jmreport/view/{\u79EF\u6728\u62A5\u8868ID}`;
88
- function onReportPrintShowChange(value) {
89
- return __async(this, null, function* () {
90
- let reportPrintUrl = getFieldsValue()["reportPrintUrl"];
91
- if (value === 0) {
92
- if (reportPrintUrl === defaultReportPrintUrl) {
93
- yield setFieldsValue({ reportPrintUrl: "" });
94
- }
95
- } else if (value === 1) {
96
- if (reportPrintUrl === "") {
97
- yield setFieldsValue({ reportPrintUrl: defaultReportPrintUrl });
98
- }
99
- }
100
- clearValidate("reportPrintUrl");
101
- });
102
- }
103
- function onJoinQueryChange(value) {
104
- if (value === 1) {
105
- let { themeTemplate, isTree, tableType } = props.parentForm.getFieldsValue(["themeTemplate", "isTree", "tableType"]);
106
- if ("erp" === themeTemplate) {
107
- $message.warning("\u8BF7\u6CE8\u610F\uFF1Aerp\u98CE\u683C\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
108
- setFieldsValue({ joinQuery: 0 });
109
- }
110
- if ("innerTable" === themeTemplate) {
111
- $message.warning("\u8BF7\u6CE8\u610F\uFF1A\u5185\u5D4C\u98CE\u683C\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
112
- setFieldsValue({ joinQuery: 0 });
113
- }
114
- if (1 === tableType) {
115
- $message.warning("\u8BF7\u6CE8\u610F\uFF1A\u5355\u8868\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
116
- setFieldsValue({ joinQuery: 0 });
117
- } else if (3 === tableType) {
118
- $message.warning("\u8BF7\u6CE8\u610F\uFF1A\u5F53\u524D\u8868\u4E3A\u9644\u8868\uFF0C\u8BF7\u5728\u5BF9\u5E94\u4E3B\u8868\u914D\u7F6E!");
119
- setFieldsValue({ joinQuery: 0 });
120
- } else if ("Y" === isTree) {
121
- $message.warning("\u8BF7\u6CE8\u610F\uFF1A\u6811\u5F62\u5217\u8868\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
122
- setFieldsValue({ joinQuery: 0 });
123
- }
124
- }
125
- }
126
- return {
127
- handleOk,
128
- handleCancel,
129
- registerModal,
130
- registerForm
131
- };
132
- }
133
- });
134
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
135
- const _component_BasicForm = resolveComponent("BasicForm");
136
- const _component_BasicModal = resolveComponent("BasicModal");
137
- return openBlock(), createBlock(_component_BasicModal, {
138
- onRegister: _ctx.registerModal,
139
- title: "\u6269\u5C55\u914D\u7F6E",
140
- width: 1e3,
141
- onOk: _ctx.handleOk,
142
- onCancel: _ctx.handleCancel
143
- }, {
144
- default: withCtx(() => [
145
- createVNode(_component_BasicForm, { onRegister: _ctx.registerForm }, null, 8, ["onRegister"])
146
- ]),
147
- _: 1
148
- }, 8, ["onRegister", "onOk", "onCancel"]);
149
- }
150
- var ExtendConfigModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1eeac864"]]);
151
- export { ExtendConfigModal as default };
@@ -1,283 +0,0 @@
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
- extendConfig.labelLength = 4;
71
- }
72
- const extendConfig = reactive({
73
- uploadnum: 0,
74
- showLength: "",
75
- popupMulti: true,
76
- store: "",
77
- text: "",
78
- multiSelect: true,
79
- orderRule: "",
80
- validateError: "",
81
- labelLength: 4
82
- });
83
- const fieldShowType = ref("");
84
- const rowKey = ref("");
85
- const sortFlag = ref("0");
86
- const formSchemas = [
87
- {
88
- label: "rowKey",
89
- field: "rowKey",
90
- component: "Input",
91
- show: false
92
- },
93
- {
94
- label: "\u6587\u4EF6\u4E0A\u4F20\u6570\u91CF",
95
- field: "uploadnum",
96
- component: "InputNumber",
97
- componentProps: {
98
- style: {
99
- width: "100%"
100
- }
101
- },
102
- ifShow: () => {
103
- return fieldShowType.value === "file" || fieldShowType.value === "image";
104
- }
105
- },
106
- {
107
- label: "\u662F\u5426\u591A\u9009",
108
- field: "popupMulti",
109
- component: "RadioGroup",
110
- defaultValue: true,
111
- componentProps: {
112
- options: [
113
- { label: "\u5426", value: false },
114
- { label: "\u662F", value: true }
115
- ]
116
- },
117
- ifShow: () => {
118
- return fieldShowType.value === "popup";
119
- }
120
- },
121
- {
122
- label: "\u662F\u5426\u591A\u9009",
123
- field: "multiSelect",
124
- component: "RadioGroup",
125
- defaultValue: true,
126
- componentProps: {
127
- options: [
128
- { label: "\u5426", value: false },
129
- { label: "\u662F", value: true }
130
- ]
131
- },
132
- ifShow: () => {
133
- return fieldShowType.value === "sel_user" || fieldShowType.value === "sel_depart";
134
- }
135
- },
136
- {
137
- label: "\u5B58\u50A8\u5B57\u6BB5",
138
- field: "store",
139
- component: "Input",
140
- ifShow: () => {
141
- return fieldShowType.value === "sel_user" || fieldShowType.value === "sel_depart";
142
- }
143
- },
144
- {
145
- label: "\u5C55\u793A\u5B57\u6BB5",
146
- field: "text",
147
- component: "Input",
148
- ifShow: () => {
149
- return fieldShowType.value === "sel_user" || fieldShowType.value === "sel_depart";
150
- }
151
- },
152
- {
153
- label: "\u9ED8\u8BA4\u6392\u5E8F",
154
- field: "orderRule",
155
- component: "RadioGroup",
156
- defaultValue: "",
157
- componentProps: {
158
- options: [
159
- { label: "\u964D\u5E8F", value: "desc" },
160
- { label: "\u5347\u5E8F", value: "asc" },
161
- { label: "\u4E0D\u9ED8\u8BA4\u6392\u5E8F", value: "" }
162
- ]
163
- },
164
- ifShow: () => {
165
- return sortFlag.value === "1";
166
- }
167
- },
168
- {
169
- label: "\u6821\u9A8C\u63D0\u793A",
170
- field: "validateError",
171
- component: "Input",
172
- componentProps: {
173
- placeholder: "\u8BF7\u8F93\u5165\u6821\u9A8C\u63D0\u793A\u6587\u672C"
174
- }
175
- },
176
- {
177
- label: "label\u957F\u5EA6",
178
- field: "labelLength",
179
- component: "InputNumber",
180
- componentProps: {
181
- placeholder: "\u8BF7\u8F93\u5165label\u957F\u5EA6"
182
- }
183
- }
184
- ];
185
- const [registerForm, { validate, setFieldsValue, resetFields }] = useForm({
186
- schemas: formSchemas,
187
- showActionButtonGroup: false,
188
- labelAlign: "right",
189
- labelWidth: 100
190
- });
191
- const [registerModal, { closeModal }] = useModalInner((data) => __async(this, null, function* () {
192
- console.log("extend json", data);
193
- initExtendConfig();
194
- if (data.jsonStr) {
195
- let json = JSON.parse(data.jsonStr);
196
- Object.keys(json).map((k) => {
197
- console.log("\u6269\u5C55\u53C2\u6570:" + k + "=" + json[k]);
198
- extendConfig[k] = json[k];
199
- });
200
- }
201
- fieldShowType.value = data.fieldShowType;
202
- rowKey.value = data.id;
203
- sortFlag.value = data.sortFlag;
204
- let temp = toRaw(extendConfig);
205
- yield resetFields();
206
- yield setFieldsValue(__spreadProps(__spreadValues({}, temp), {
207
- rowKey: data.id
208
- }));
209
- }));
210
- function handleSubmit() {
211
- return __async(this, null, function* () {
212
- let data = yield validate();
213
- console.log("datga", data);
214
- let type = fieldShowType.value;
215
- let obj = {};
216
- if (type === "file" || type === "image") {
217
- if (data.uploadnum && data.uploadnum > 0) {
218
- obj.uploadnum = data.uploadnum;
219
- }
220
- } else if (type === "textarea" || type === "text") {
221
- if (data.showLength && data.showLength > 0) {
222
- obj.showLength = data.showLength;
223
- }
224
- } else if (type === "sel_user" || type === "sel_depart") {
225
- obj = pick(data, "store", "text", "multiSelect");
226
- } else if (type === "popup") {
227
- obj.popupMulti = data.popupMulti;
228
- }
229
- if (sortFlag.value === "1" && data.orderRule) {
230
- obj.orderRule = data.orderRule;
231
- }
232
- if (data.validateError) {
233
- obj.validateError = data.validateError;
234
- }
235
- if (data.labelLength) {
236
- obj.labelLength = data.labelLength;
237
- }
238
- console.log("obj....", obj);
239
- for (let key in obj) {
240
- if (obj[key] === "") {
241
- delete obj[key];
242
- }
243
- }
244
- console.log(obj);
245
- emit("success", obj, data.rowKey);
246
- closeModal();
247
- });
248
- }
249
- return __spreadValues({
250
- spinningLoading,
251
- registerModal,
252
- registerForm,
253
- fieldShowType,
254
- rowKey,
255
- handleSubmit
256
- }, toRefs(extendConfig));
257
- }
258
- });
259
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
260
- const _component_BasicForm = resolveComponent("BasicForm");
261
- const _component_a_spin = resolveComponent("a-spin");
262
- const _component_BasicModal = resolveComponent("BasicModal");
263
- return openBlock(), createBlock(_component_BasicModal, mergeProps({ wrapClassName: "field-extend-config-modal" }, _ctx.$attrs, {
264
- title: "\u6269\u5C55\u53C2\u6570\u914D\u7F6E",
265
- onRegister: _ctx.registerModal,
266
- keyboard: "",
267
- canFullscreen: false,
268
- cancelText: "\u5173\u95ED",
269
- onOk: _ctx.handleSubmit
270
- }), {
271
- default: withCtx(() => [
272
- createVNode(_component_a_spin, { spinning: _ctx.spinningLoading }, {
273
- default: withCtx(() => [
274
- createVNode(_component_BasicForm, { onRegister: _ctx.registerForm }, null, 8, ["onRegister"])
275
- ]),
276
- _: 1
277
- }, 8, ["spinning"])
278
- ]),
279
- _: 1
280
- }, 16, ["onRegister", "onOk"]);
281
- }
282
- var FieldExtendJsonModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
283
- export { FieldExtendJsonModal as default };
@@ -1,102 +0,0 @@
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 };
@@ -1,79 +0,0 @@
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, mergeProps } 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 "./_flatRest.js";
30
- import "./isArray.js";
31
- import "./toString.js";
32
- import "./_arrayPush.js";
33
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
34
- import "/@/hooks/web/useMessage";
35
- import "vue-router";
36
- const _sfc_main = defineComponent({
37
- name: "ForeignKeyTable",
38
- props: {
39
- actionButton: { type: Boolean, default: true }
40
- },
41
- setup() {
42
- const columns = ref([
43
- { title: "\u5B57\u6BB5\u540D\u79F0", key: "dbFieldName", width: 160 },
44
- { title: "\u5B57\u6BB5\u5907\u6CE8", key: "dbFieldTxt", width: 160 },
45
- {
46
- title: "\u4E3B\u8868\u540D",
47
- key: "mainTable",
48
- width: 280,
49
- type: JVxeTypes.input,
50
- defaultValue: ""
51
- },
52
- {
53
- title: "\u4E3B\u8868\u5B57\u6BB5",
54
- key: "mainField",
55
- width: 280,
56
- type: JVxeTypes.input,
57
- defaultValue: ""
58
- }
59
- ]);
60
- const setup = useTableSync(columns);
61
- return __spreadProps(__spreadValues({}, setup), { columns });
62
- }
63
- });
64
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
65
- const _component_JVxeTable = resolveComponent("JVxeTable");
66
- return openBlock(), createBlock(_component_JVxeTable, mergeProps({
67
- ref: "tableRef",
68
- rowNumber: "",
69
- keyboardEdit: "",
70
- maxHeight: _ctx.tableHeight.noToolbar,
71
- loading: _ctx.loading,
72
- columns: _ctx.columns,
73
- dataSource: _ctx.dataSource,
74
- disabled: !_ctx.actionButton,
75
- disabledRows: { dbFieldName: ["id", "has_child"] }
76
- }, _ctx.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "disabled"]);
77
- }
78
- var ForeignKeyTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
79
- export { ForeignKeyTable as default };