@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/EnhanceJavaModal.js
CHANGED
|
@@ -34,7 +34,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
34
34
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps,
|
|
37
|
+
import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
38
38
|
import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
|
|
39
39
|
import { BasicForm, useForm } from "/@/components/Form";
|
|
40
40
|
import { BasicTable, TableAction } from "/@/components/Table";
|
|
@@ -43,15 +43,14 @@ import { u as useOnlineTest } from "./useOnlineTest.js";
|
|
|
43
43
|
import { u as useJavaFormSchemas, a as useJavaColumns } from "./enhance.data.js";
|
|
44
44
|
import { a as getEnhanceJavaByCode, b as saveEnhanceJava, d as doEnhanceJavaBatchDelete } from "./enhance.api.js";
|
|
45
45
|
import { _ as _export_sfc } from "./index.js";
|
|
46
|
-
import "/@/utils/http/axios";
|
|
47
|
-
import "/@/hooks/web/useMessage";
|
|
48
|
-
import "/@/utils/cache";
|
|
49
46
|
import "./cgform.data.js";
|
|
50
47
|
import "/@/utils/dict";
|
|
51
48
|
import "/@/utils/dict/JDictSelectUtil";
|
|
52
49
|
import "/@/utils/uuid";
|
|
50
|
+
import "/@/utils/http/axios";
|
|
53
51
|
import "/@/utils/is";
|
|
54
52
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
53
|
+
import "/@/hooks/web/useMessage";
|
|
55
54
|
import "vue-router";
|
|
56
55
|
const _sfc_main = defineComponent({
|
|
57
56
|
name: "EnhanceJavaModal",
|
|
@@ -81,7 +80,7 @@ const _sfc_main = defineComponent({
|
|
|
81
80
|
code.value = data.row.id;
|
|
82
81
|
reload();
|
|
83
82
|
}));
|
|
84
|
-
const { aiTestMode, genEnhanceJavaData } = useOnlineTest(
|
|
83
|
+
const { aiTestMode, genEnhanceJavaData } = useOnlineTest();
|
|
85
84
|
const [registerFormModal, formModal] = useModal();
|
|
86
85
|
const isUpdate = ref(false);
|
|
87
86
|
const formModalProps = reactive({
|
|
@@ -186,15 +185,10 @@ const _sfc_main = defineComponent({
|
|
|
186
185
|
}
|
|
187
186
|
}
|
|
188
187
|
});
|
|
189
|
-
const _hoisted_1 =
|
|
190
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u5220\u9664 ");
|
|
191
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u64CD\u4F5C ");
|
|
192
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
193
|
-
const _hoisted_5 = {
|
|
188
|
+
const _hoisted_1 = {
|
|
194
189
|
key: 0,
|
|
195
190
|
style: { "float": "left" }
|
|
196
191
|
};
|
|
197
|
-
const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E");
|
|
198
192
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
199
193
|
const _component_a_button = resolveComponent("a-button");
|
|
200
194
|
const _component_a_icon = resolveComponent("a-icon");
|
|
@@ -216,14 +210,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
216
210
|
footer: withCtx(() => [
|
|
217
211
|
createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
|
|
218
212
|
default: withCtx(() => [
|
|
219
|
-
|
|
213
|
+
createTextVNode("\u5173\u95ED")
|
|
220
214
|
]),
|
|
221
215
|
_: 1
|
|
222
216
|
}, 8, ["onClick"]),
|
|
223
|
-
_ctx.aiTestMode ? (openBlock(), createElementBlock("div",
|
|
217
|
+
_ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
224
218
|
createVNode(_component_a_button, { onClick: _ctx.onGenEnhanceJavaData }, {
|
|
225
219
|
default: withCtx(() => [
|
|
226
|
-
|
|
220
|
+
createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E")
|
|
227
221
|
]),
|
|
228
222
|
_: 1
|
|
229
223
|
}, 8, ["onClick"])
|
|
@@ -241,7 +235,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
241
235
|
preIcon: "ant-design:plus"
|
|
242
236
|
}, {
|
|
243
237
|
default: withCtx(() => [
|
|
244
|
-
|
|
238
|
+
createTextVNode("\u65B0\u589E")
|
|
245
239
|
]),
|
|
246
240
|
_: 1
|
|
247
241
|
}, 8, ["onClick"]),
|
|
@@ -255,7 +249,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
255
249
|
}, {
|
|
256
250
|
default: withCtx(() => [
|
|
257
251
|
createVNode(_component_a_icon, { type: "delete" }),
|
|
258
|
-
|
|
252
|
+
createTextVNode(" \u5220\u9664 ")
|
|
259
253
|
]),
|
|
260
254
|
_: 1
|
|
261
255
|
}, 8, ["onClick"])
|
|
@@ -266,7 +260,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
266
260
|
default: withCtx(() => [
|
|
267
261
|
createVNode(_component_a_button, { style: { "margin-left": "8px" } }, {
|
|
268
262
|
default: withCtx(() => [
|
|
269
|
-
|
|
263
|
+
createTextVNode(" \u6279\u91CF\u64CD\u4F5C "),
|
|
270
264
|
createVNode(_component_a_icon, { type: "down" })
|
|
271
265
|
]),
|
|
272
266
|
_: 1
|
package/EnhanceJsHistory.js
CHANGED
|
@@ -35,7 +35,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
import { formatToDate } from "/@/utils/dateUtil";
|
|
38
|
-
import { defineComponent, ref, nextTick, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeClass, createElementVNode, toDisplayString
|
|
38
|
+
import { defineComponent, ref, nextTick, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, normalizeClass, createElementVNode, toDisplayString } from "vue";
|
|
39
39
|
import { BasicModal, useModalInner } from "/@/components/Modal";
|
|
40
40
|
import { JCodeEditor } from "/@/components/Form";
|
|
41
41
|
import "/@/store";
|
|
@@ -126,9 +126,7 @@ const _sfc_main = defineComponent({
|
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
|
-
const _hoisted_1 =
|
|
130
|
-
const _hoisted_2 = ["onClick"];
|
|
131
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
129
|
+
const _hoisted_1 = ["onClick"];
|
|
132
130
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
133
131
|
const _component_a_divider = resolveComponent("a-divider");
|
|
134
132
|
const _component_a_list_item = resolveComponent("a-list-item");
|
|
@@ -152,7 +150,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152
150
|
footer: withCtx(() => [
|
|
153
151
|
createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
|
|
154
152
|
default: withCtx(() => [
|
|
155
|
-
|
|
153
|
+
createTextVNode("\u5173\u95ED")
|
|
156
154
|
]),
|
|
157
155
|
_: 1
|
|
158
156
|
}, 8, ["onClick"])
|
|
@@ -173,7 +171,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
173
171
|
createElementVNode("div", null, [
|
|
174
172
|
createVNode(_component_a_divider, { style: { "margin": "0" } }, {
|
|
175
173
|
default: withCtx(() => [
|
|
176
|
-
|
|
174
|
+
createTextVNode("\u4FDD\u5B58\u65F6\u95F4")
|
|
177
175
|
]),
|
|
178
176
|
_: 1
|
|
179
177
|
})
|
|
@@ -186,7 +184,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
186
184
|
default: withCtx(() => [
|
|
187
185
|
createElementVNode("a", {
|
|
188
186
|
onClick: ($event) => _ctx.fullCode(item)
|
|
189
|
-
}, toDisplayString(_ctx.getFormatDate(item.date)), 9,
|
|
187
|
+
}, toDisplayString(_ctx.getFormatDate(item.date)), 9, _hoisted_1)
|
|
190
188
|
]),
|
|
191
189
|
_: 2
|
|
192
190
|
}, 1032, ["class"])
|
|
@@ -223,7 +221,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
223
221
|
_: 1
|
|
224
222
|
}, 8, ["onRegister", "confirmLoading", "onCancel"]);
|
|
225
223
|
}
|
|
226
|
-
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-3e3ee46a"]]);
|
|
227
225
|
var EnhanceJsHistory$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
228
226
|
__proto__: null,
|
|
229
227
|
"default": EnhanceJsHistory
|
package/EnhanceJsModal.js
CHANGED
|
@@ -18,7 +18,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import { defineComponent, ref, reactive, resolveComponent, openBlock, createBlock, withCtx, createVNode,
|
|
21
|
+
import { defineComponent, ref, reactive, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createCommentVNode } from "vue";
|
|
22
22
|
import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
|
|
23
23
|
import { JCodeEditor } from "/@/components/Form";
|
|
24
24
|
import { u as useOnlineTest } from "./useOnlineTest.js";
|
|
@@ -26,11 +26,11 @@ import { E as EnhanceJsHistory, u as useEnhanceStore } from "./EnhanceJsHistory.
|
|
|
26
26
|
import { g as getEnhanceJsByCode, s as saveEnhanceJs } from "./enhance.api.js";
|
|
27
27
|
import { useMessage } from "/@/hooks/web/useMessage";
|
|
28
28
|
import { _ as _export_sfc } from "./index.js";
|
|
29
|
-
import "/@/utils/http/axios";
|
|
30
|
-
import "/@/utils/cache";
|
|
31
29
|
import "/@/utils/dateUtil";
|
|
32
30
|
import "/@/store";
|
|
33
31
|
import "pinia";
|
|
32
|
+
import "/@/utils/cache";
|
|
33
|
+
import "/@/utils/http/axios";
|
|
34
34
|
import "/@/utils/is";
|
|
35
35
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
36
36
|
import "vue-router";
|
|
@@ -56,7 +56,7 @@ const _sfc_main = defineComponent({
|
|
|
56
56
|
show(data.row);
|
|
57
57
|
}));
|
|
58
58
|
const [registerEnhanceJsHistory, enhanceJsHistory] = useModal();
|
|
59
|
-
const { aiTestMode, genEnhanceJsData } = useOnlineTest(
|
|
59
|
+
const { aiTestMode, genEnhanceJsData } = useOnlineTest();
|
|
60
60
|
function show(row) {
|
|
61
61
|
code.value = row.id;
|
|
62
62
|
codeChange.value = false;
|
|
@@ -80,10 +80,7 @@ const _sfc_main = defineComponent({
|
|
|
80
80
|
}
|
|
81
81
|
function onSubmit() {
|
|
82
82
|
return __async(this, null, function* () {
|
|
83
|
-
yield Promise.all([
|
|
84
|
-
saveEnhanceJsByType("form"),
|
|
85
|
-
saveEnhanceJsByType("list")
|
|
86
|
-
]);
|
|
83
|
+
yield Promise.all([saveEnhanceJsByType("form"), saveEnhanceJsByType("list")]);
|
|
87
84
|
closeModal();
|
|
88
85
|
$message.success("\u4FDD\u5B58\u6210\u529F");
|
|
89
86
|
});
|
|
@@ -127,6 +124,13 @@ const _sfc_main = defineComponent({
|
|
|
127
124
|
} catch (e) {
|
|
128
125
|
console.error(e);
|
|
129
126
|
}
|
|
127
|
+
setTimeout(() => {
|
|
128
|
+
if (type == "list") {
|
|
129
|
+
listEditorRef.value.refresh();
|
|
130
|
+
} else {
|
|
131
|
+
formEditorRef.value.refresh();
|
|
132
|
+
}
|
|
133
|
+
}, 150);
|
|
130
134
|
});
|
|
131
135
|
}
|
|
132
136
|
function onShowHistory() {
|
|
@@ -169,10 +173,6 @@ const _sfc_main = defineComponent({
|
|
|
169
173
|
};
|
|
170
174
|
}
|
|
171
175
|
});
|
|
172
|
-
const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
173
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
174
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u67E5\u770B\u5386\u53F2\u7248\u672C");
|
|
175
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E");
|
|
176
176
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
177
177
|
const _component_JCodeEditor = resolveComponent("JCodeEditor");
|
|
178
178
|
const _component_a_tab_pane = resolveComponent("a-tab-pane");
|
|
@@ -192,7 +192,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
192
|
default: withCtx(() => [
|
|
193
193
|
createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
|
|
194
194
|
default: withCtx(() => [
|
|
195
|
-
|
|
195
|
+
createTextVNode("\u5173\u95ED")
|
|
196
196
|
]),
|
|
197
197
|
_: 1
|
|
198
198
|
}, 8, ["onClick"]),
|
|
@@ -201,7 +201,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
201
201
|
onClick: _ctx.onSubmit
|
|
202
202
|
}, {
|
|
203
203
|
default: withCtx(() => [
|
|
204
|
-
|
|
204
|
+
createTextVNode("\u786E\u5B9A")
|
|
205
205
|
]),
|
|
206
206
|
_: 1
|
|
207
207
|
}, 8, ["onClick"])
|
|
@@ -215,7 +215,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
215
|
onClick: _ctx.onShowHistory
|
|
216
216
|
}, {
|
|
217
217
|
default: withCtx(() => [
|
|
218
|
-
|
|
218
|
+
createTextVNode("\u67E5\u770B\u5386\u53F2\u7248\u672C")
|
|
219
219
|
]),
|
|
220
220
|
_: 1
|
|
221
221
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
@@ -224,7 +224,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
224
224
|
onClick: _ctx.onGenTestData
|
|
225
225
|
}, {
|
|
226
226
|
default: withCtx(() => [
|
|
227
|
-
|
|
227
|
+
createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E")
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
230
230
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
package/EnhanceSqlModal.js
CHANGED
|
@@ -34,7 +34,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
34
34
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps,
|
|
37
|
+
import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
38
38
|
import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
|
|
39
39
|
import { BasicForm, useForm } from "/@/components/Form";
|
|
40
40
|
import { BasicTable, TableAction } from "/@/components/Table";
|
|
@@ -43,15 +43,14 @@ import { u as useOnlineTest } from "./useOnlineTest.js";
|
|
|
43
43
|
import { b as useSqlFormSchemas, c as useSqlColumns } from "./enhance.data.js";
|
|
44
44
|
import { c as getEnhanceSqlByCode, e as saveEnhanceSql, f as doEnhanceSqlBatchDelete } from "./enhance.api.js";
|
|
45
45
|
import { _ as _export_sfc } from "./index.js";
|
|
46
|
-
import "/@/utils/http/axios";
|
|
47
|
-
import "/@/hooks/web/useMessage";
|
|
48
|
-
import "/@/utils/cache";
|
|
49
46
|
import "./cgform.data.js";
|
|
50
47
|
import "/@/utils/dict";
|
|
51
48
|
import "/@/utils/dict/JDictSelectUtil";
|
|
52
49
|
import "/@/utils/uuid";
|
|
50
|
+
import "/@/utils/http/axios";
|
|
53
51
|
import "/@/utils/is";
|
|
54
52
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
53
|
+
import "/@/hooks/web/useMessage";
|
|
55
54
|
import "vue-router";
|
|
56
55
|
const _sfc_main = defineComponent({
|
|
57
56
|
name: "EnhanceSqlModal",
|
|
@@ -83,7 +82,7 @@ const _sfc_main = defineComponent({
|
|
|
83
82
|
tableName.value = data.row.tableName;
|
|
84
83
|
reload();
|
|
85
84
|
}));
|
|
86
|
-
const { aiTestMode, genEnhanceSqlData } = useOnlineTest(
|
|
85
|
+
const { aiTestMode, genEnhanceSqlData } = useOnlineTest();
|
|
87
86
|
const [registerFormModal, formModal] = useModal();
|
|
88
87
|
const isUpdate = ref(false);
|
|
89
88
|
const formModalProps = reactive({
|
|
@@ -187,15 +186,10 @@ const _sfc_main = defineComponent({
|
|
|
187
186
|
}
|
|
188
187
|
}
|
|
189
188
|
});
|
|
190
|
-
const _hoisted_1 =
|
|
191
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u5220\u9664 ");
|
|
192
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u64CD\u4F5C ");
|
|
193
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
194
|
-
const _hoisted_5 = {
|
|
189
|
+
const _hoisted_1 = {
|
|
195
190
|
key: 0,
|
|
196
191
|
style: { "float": "left" }
|
|
197
192
|
};
|
|
198
|
-
const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E");
|
|
199
193
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
200
194
|
const _component_a_button = resolveComponent("a-button");
|
|
201
195
|
const _component_a_icon = resolveComponent("a-icon");
|
|
@@ -217,14 +211,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
217
211
|
footer: withCtx(() => [
|
|
218
212
|
createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
|
|
219
213
|
default: withCtx(() => [
|
|
220
|
-
|
|
214
|
+
createTextVNode("\u5173\u95ED")
|
|
221
215
|
]),
|
|
222
216
|
_: 1
|
|
223
217
|
}, 8, ["onClick"]),
|
|
224
|
-
_ctx.aiTestMode ? (openBlock(), createElementBlock("div",
|
|
218
|
+
_ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
225
219
|
createVNode(_component_a_button, { onClick: _ctx.onGenEnhanceSqlData }, {
|
|
226
220
|
default: withCtx(() => [
|
|
227
|
-
|
|
221
|
+
createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E")
|
|
228
222
|
]),
|
|
229
223
|
_: 1
|
|
230
224
|
}, 8, ["onClick"])
|
|
@@ -242,7 +236,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
242
236
|
preIcon: "ant-design:plus"
|
|
243
237
|
}, {
|
|
244
238
|
default: withCtx(() => [
|
|
245
|
-
|
|
239
|
+
createTextVNode("\u65B0\u589E")
|
|
246
240
|
]),
|
|
247
241
|
_: 1
|
|
248
242
|
}, 8, ["onClick"]),
|
|
@@ -256,7 +250,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
256
250
|
}, {
|
|
257
251
|
default: withCtx(() => [
|
|
258
252
|
createVNode(_component_a_icon, { type: "delete" }),
|
|
259
|
-
|
|
253
|
+
createTextVNode(" \u5220\u9664 ")
|
|
260
254
|
]),
|
|
261
255
|
_: 1
|
|
262
256
|
}, 8, ["onClick"])
|
|
@@ -267,7 +261,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
267
261
|
default: withCtx(() => [
|
|
268
262
|
createVNode(_component_a_button, { style: { "margin-left": "8px" } }, {
|
|
269
263
|
default: withCtx(() => [
|
|
270
|
-
|
|
264
|
+
createTextVNode(" \u6279\u91CF\u64CD\u4F5C "),
|
|
271
265
|
createVNode(_component_a_icon, { type: "down" })
|
|
272
266
|
]),
|
|
273
267
|
_: 1
|
package/ExtendConfigModal.js
CHANGED
|
@@ -27,6 +27,8 @@ import { _ as _export_sfc } from "./index.js";
|
|
|
27
27
|
import "ant-design-vue";
|
|
28
28
|
import "@ant-design/icons-vue";
|
|
29
29
|
import "/@/utils/common/compUtils";
|
|
30
|
+
import "/@/hooks/web/usePermission";
|
|
31
|
+
import "/@/utils/helper/validator";
|
|
30
32
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
31
33
|
import "vue-router";
|
|
32
34
|
var ExtendConfigModal_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -47,7 +49,7 @@ const _sfc_main = defineComponent({
|
|
|
47
49
|
onJoinQueryChange,
|
|
48
50
|
onReportPrintShowChange
|
|
49
51
|
});
|
|
50
|
-
const [registerForm, { resetFields, setFieldsValue, clearValidate, validate }] = useForm({
|
|
52
|
+
const [registerForm, { resetFields, setFieldsValue, getFieldsValue, clearValidate, validate }] = useForm({
|
|
51
53
|
schemas: formSchemas,
|
|
52
54
|
showActionButtonGroup: false,
|
|
53
55
|
labelAlign: "right"
|
|
@@ -74,7 +76,7 @@ const _sfc_main = defineComponent({
|
|
|
74
76
|
function onIsDesformChange(value) {
|
|
75
77
|
if (value === "Y") {
|
|
76
78
|
let { themeTemplate } = props.parentForm.getFieldsValue(["themeTemplate"]);
|
|
77
|
-
if (
|
|
79
|
+
if ("erp" === themeTemplate) {
|
|
78
80
|
props.parentForm.setFieldsValue({ themeTemplate: "normal" });
|
|
79
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");
|
|
80
82
|
}
|
|
@@ -82,33 +84,40 @@ const _sfc_main = defineComponent({
|
|
|
82
84
|
clearValidate("desFormCode");
|
|
83
85
|
}
|
|
84
86
|
}
|
|
87
|
+
const defaultReportPrintUrl = `{{ window._CONFIG['domianURL'] }}/jmreport/view/{\u79EF\u6728\u62A5\u8868ID}`;
|
|
85
88
|
function onReportPrintShowChange(value) {
|
|
86
|
-
|
|
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
|
+
}
|
|
87
100
|
clearValidate("reportPrintUrl");
|
|
88
|
-
}
|
|
101
|
+
});
|
|
89
102
|
}
|
|
90
103
|
function onJoinQueryChange(value) {
|
|
91
104
|
if (value === 1) {
|
|
92
|
-
let {
|
|
93
|
-
|
|
94
|
-
isTree,
|
|
95
|
-
tableType
|
|
96
|
-
} = props.parentForm.getFieldsValue(["themeTemplate", "isTree", "tableType"]);
|
|
97
|
-
if (themeTemplate === "erp") {
|
|
105
|
+
let { themeTemplate, isTree, tableType } = props.parentForm.getFieldsValue(["themeTemplate", "isTree", "tableType"]);
|
|
106
|
+
if ("erp" === themeTemplate) {
|
|
98
107
|
$message.warning("\u8BF7\u6CE8\u610F\uFF1Aerp\u98CE\u683C\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
|
|
99
108
|
setFieldsValue({ joinQuery: 0 });
|
|
100
109
|
}
|
|
101
|
-
if (
|
|
110
|
+
if ("innerTable" === themeTemplate) {
|
|
102
111
|
$message.warning("\u8BF7\u6CE8\u610F\uFF1A\u5185\u5D4C\u98CE\u683C\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
|
|
103
112
|
setFieldsValue({ joinQuery: 0 });
|
|
104
113
|
}
|
|
105
|
-
if (
|
|
114
|
+
if (1 === tableType) {
|
|
106
115
|
$message.warning("\u8BF7\u6CE8\u610F\uFF1A\u5355\u8868\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
|
|
107
116
|
setFieldsValue({ joinQuery: 0 });
|
|
108
|
-
} else if (
|
|
117
|
+
} else if (3 === tableType) {
|
|
109
118
|
$message.warning("\u8BF7\u6CE8\u610F\uFF1A\u5F53\u524D\u8868\u4E3A\u9644\u8868\uFF0C\u8BF7\u5728\u5BF9\u5E94\u4E3B\u8868\u914D\u7F6E!");
|
|
110
119
|
setFieldsValue({ joinQuery: 0 });
|
|
111
|
-
} else if (
|
|
120
|
+
} else if ("Y" === isTree) {
|
|
112
121
|
$message.warning("\u8BF7\u6CE8\u610F\uFF1A\u6811\u5F62\u5217\u8868\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
|
|
113
122
|
setFieldsValue({ joinQuery: 0 });
|
|
114
123
|
}
|
|
@@ -138,5 +147,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
147
|
_: 1
|
|
139
148
|
}, 8, ["onRegister", "onOk", "onCancel"]);
|
|
140
149
|
}
|
|
141
|
-
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-63fff65e"]]);
|
|
142
151
|
export { ExtendConfigModal as default };
|
package/ForeignKeyTable.js
CHANGED
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock } from "vue";
|
|
20
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, mergeProps } from "vue";
|
|
21
21
|
import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
|
|
22
22
|
import { u as useTableSync } from "./useTableSync.js";
|
|
23
23
|
import { _ as _export_sfc } from "./index.js";
|
|
@@ -26,6 +26,7 @@ import "/@/utils/dict";
|
|
|
26
26
|
import "/@/utils/dict/JDictSelectUtil";
|
|
27
27
|
import "/@/utils/uuid";
|
|
28
28
|
import "./pick.js";
|
|
29
|
+
import "./_flatRest.js";
|
|
29
30
|
import "./isArray.js";
|
|
30
31
|
import "./toString.js";
|
|
31
32
|
import "./_arrayPush.js";
|
|
@@ -62,7 +63,7 @@ const _sfc_main = defineComponent({
|
|
|
62
63
|
});
|
|
63
64
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
64
65
|
const _component_JVxeTable = resolveComponent("JVxeTable");
|
|
65
|
-
return openBlock(), createBlock(_component_JVxeTable, {
|
|
66
|
+
return openBlock(), createBlock(_component_JVxeTable, mergeProps({
|
|
66
67
|
ref: "tableRef",
|
|
67
68
|
rowNumber: "",
|
|
68
69
|
keyboardEdit: "",
|
|
@@ -72,7 +73,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
72
73
|
dataSource: _ctx.dataSource,
|
|
73
74
|
disabled: !_ctx.actionButton,
|
|
74
75
|
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
75
|
-
}, null,
|
|
76
|
+
}, _ctx.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "disabled"]);
|
|
76
77
|
}
|
|
77
78
|
var ForeignKeyTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
78
79
|
export { ForeignKeyTable as default };
|