@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.
- package/AuthButtonConfig-2f71787c.mjs +125 -0
- package/AuthButtonTree-d73bccf5.mjs +156 -0
- package/AuthDataConfig-32cf23d2.mjs +212 -0
- package/AuthDataTree-03d62d3f.mjs +139 -0
- package/AuthFieldConfig-b1217a0c.mjs +139 -0
- package/AuthFieldTree-888e04a9.mjs +232 -0
- package/AuthManagerDrawer-f127b8a2.mjs +114 -0
- package/AuthSetterModal-37da78ed.mjs +261 -0
- package/CgformCopyList-3adab58f.mjs +245 -0
- package/CgformModal-6938d8c2.mjs +613 -0
- package/CgreportModal-77ec8c17.mjs +12 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
- package/CheckDictTable-414313f2.mjs +211 -0
- package/CodeFileListModal-4831ce3d.mjs +158 -0
- package/CodeFileViewModal-5990dac4.mjs +244 -0
- package/CodeGeneratorModal-7df9e25d.mjs +234 -0
- package/CustomButtonList-1c9bd859.mjs +363 -0
- package/DBAttributeTable-cd1c41e5.mjs +473 -0
- package/DbToOnlineModal-dc5d2030.mjs +160 -0
- package/DetailForm-e4538e7a.mjs +446 -0
- package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
- package/EnhanceJsHistory-c30805ce.mjs +184 -0
- package/EnhanceJsModal-0b133341.mjs +233 -0
- package/EnhanceSqlModal-33a94c83.mjs +259 -0
- package/ExtendConfigModal-60f2cf86.mjs +111 -0
- package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
- package/FileSelectModal-64aaf623.mjs +91 -0
- package/ForeignKeyTable-cb1abd1d.mjs +69 -0
- package/IndexTable-4e94cd1f.mjs +89 -0
- package/JModalTip-abe1515a.mjs +46 -0
- package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
- package/LeftDepart-ca7a7375.mjs +82 -0
- package/LeftRole-d0fa8398.mjs +86 -0
- package/LeftUser-0c88c240.mjs +105 -0
- package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
- package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
- package/LinkTableListPiece-34266919.mjs +34 -0
- package/ModalFormDemo-0eeea994.mjs +78 -0
- package/OnlCgformErpList-7a0388d8.mjs +425 -0
- package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
- package/OnlineAutoList-85e6a30d.mjs +472 -0
- package/OnlineAutoModal-2a146238.mjs +206 -0
- package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
- package/OnlineCustomModal-456a85a6.mjs +227 -0
- package/OnlineDetailModal-f967f080.mjs +177 -0
- package/OnlineForm-630a22c2.mjs +778 -0
- package/OnlineFormDetail-1b216792.mjs +296 -0
- package/OnlineQueryForm-1c5949a7.mjs +378 -0
- package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
- package/OnlineSelectCascade-c7baf52b.mjs +160 -0
- package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
- package/PageAttributeTable-811185fd.mjs +404 -0
- package/ProcessOnlineForm-27be6f6f.mjs +177 -0
- package/QueryTable-4ba771ef.mjs +115 -0
- package/SuperQuery-3821f984.mjs +845 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-fe20103a.mjs +6 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-074b92e5.mjs +236 -0
- package/index-6a09a912.mjs +58 -0
- package/index-9d32ae88.mjs +313 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-2d6a5955.mjs +388 -0
- package/useExtendComponent-48d37d9b.mjs +3919 -0
- package/useListButton-cef1371a.mjs +656 -0
- package/useOnlinePopEvent-e9a042f8.mjs +19 -0
- package/useOnlineTest-0df0ae86.mjs +43 -0
- package/useSchemas-fc8d97ce.mjs +669 -0
- package/useTableSync-dc333087.mjs +83 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -524
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -553
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1018
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1021
- package/SuperQueryValComponent.js +0 -9
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
var d = (o, m, e) => new Promise((c, s) => {
|
|
2
|
+
var p = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
i(e.next(r));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
s(l);
|
|
7
|
+
}
|
|
8
|
+
}, t = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
i(e.throw(r));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
s(l);
|
|
13
|
+
}
|
|
14
|
+
}, i = (r) => r.done ? c(r.value) : Promise.resolve(r.value).then(p, t);
|
|
15
|
+
i((e = e.apply(o, m)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as k, nextTick as B, resolveComponent as h, openBlock as j, createBlock as x, withCtx as P, createVNode as R } from "vue";
|
|
18
|
+
import { BasicModal as U, useModalInner as V } from "/@/components/Modal";
|
|
19
|
+
import { BasicForm as v, useForm as O } from "/@/components/Form";
|
|
20
|
+
import { useMessage as Q } from "/@/hooks/web/useMessage";
|
|
21
|
+
import { a as b } from "./useSchemas-fc8d97ce.mjs";
|
|
22
|
+
import { _ as E } from "./index-6a09a912.mjs";
|
|
23
|
+
import "ant-design-vue";
|
|
24
|
+
import "@ant-design/icons-vue";
|
|
25
|
+
import "/@/utils/common/compUtils";
|
|
26
|
+
import "/@/hooks/web/usePermission";
|
|
27
|
+
import "/@/utils/helper/validator";
|
|
28
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
29
|
+
import "vue-router";
|
|
30
|
+
const I = k({
|
|
31
|
+
name: "CgformExtConfigModel",
|
|
32
|
+
components: { BasicModal: U, BasicForm: v },
|
|
33
|
+
props: {
|
|
34
|
+
parentForm: {
|
|
35
|
+
type: Object,
|
|
36
|
+
required: !0
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
emits: ["register", "ok"],
|
|
40
|
+
setup(o, { emit: m }) {
|
|
41
|
+
const { createMessage: e } = Q(), { formSchemas: c } = b(o, {
|
|
42
|
+
onIsDesformChange: C,
|
|
43
|
+
onJoinQueryChange: M,
|
|
44
|
+
onReportPrintShowChange: y
|
|
45
|
+
}), [s, { resetFields: p, setFieldsValue: t, getFieldsValue: i, clearValidate: r, validate: l }] = O({
|
|
46
|
+
schemas: c,
|
|
47
|
+
showActionButtonGroup: !1,
|
|
48
|
+
labelAlign: "right"
|
|
49
|
+
}), [_, { closeModal: f }] = V((n) => d(this, null, function* () {
|
|
50
|
+
yield p(), yield t(n.extConfigJson);
|
|
51
|
+
}));
|
|
52
|
+
function w() {
|
|
53
|
+
return d(this, null, function* () {
|
|
54
|
+
yield r(), yield B();
|
|
55
|
+
try {
|
|
56
|
+
const n = yield l();
|
|
57
|
+
m("ok", n), f();
|
|
58
|
+
} catch (n) {
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function F() {
|
|
63
|
+
f();
|
|
64
|
+
}
|
|
65
|
+
function C(n) {
|
|
66
|
+
if (n === "Y") {
|
|
67
|
+
let { themeTemplate: a } = o.parentForm.getFieldsValue(["themeTemplate"]);
|
|
68
|
+
a === "erp" && (o.parentForm.setFieldsValue({ themeTemplate: "normal" }), e.warning("请注意:erp风格不支持对接表单设计,已自动改为默认风格!"));
|
|
69
|
+
} else
|
|
70
|
+
r("desFormCode");
|
|
71
|
+
}
|
|
72
|
+
const u = "{{ window._CONFIG['domianURL'] }}/jmreport/view/{积木报表ID}";
|
|
73
|
+
function y(n) {
|
|
74
|
+
return d(this, null, function* () {
|
|
75
|
+
let a = i().reportPrintUrl;
|
|
76
|
+
n === 0 ? a === u && (yield t({ reportPrintUrl: "" })) : n === 1 && a === "" && (yield t({ reportPrintUrl: u })), r("reportPrintUrl");
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function M(n) {
|
|
80
|
+
if (n === 1) {
|
|
81
|
+
let { themeTemplate: a, isTree: T, tableType: g } = o.parentForm.getFieldsValue(["themeTemplate", "isTree", "tableType"]);
|
|
82
|
+
a === "erp" && (e.warning("请注意:erp风格不支持联合查询,配置无效!"), t({ joinQuery: 0 })), a === "innerTable" && (e.warning("请注意:内嵌风格不支持联合查询,配置无效!"), t({ joinQuery: 0 })), g === 1 ? (e.warning("请注意:单表不支持联合查询,配置无效!"), t({ joinQuery: 0 })) : g === 3 ? (e.warning("请注意:当前表为附表,请在对应主表配置!"), t({ joinQuery: 0 })) : T === "Y" && (e.warning("请注意:树形列表不支持联合查询,配置无效!"), t({ joinQuery: 0 }));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
handleOk: w,
|
|
87
|
+
handleCancel: F,
|
|
88
|
+
registerModal: _,
|
|
89
|
+
registerForm: s
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
function $(o, m, e, c, s, p) {
|
|
94
|
+
const t = h("BasicForm"), i = h("BasicModal");
|
|
95
|
+
return j(), x(i, {
|
|
96
|
+
onRegister: o.registerModal,
|
|
97
|
+
title: "扩展配置",
|
|
98
|
+
width: 1e3,
|
|
99
|
+
onOk: o.handleOk,
|
|
100
|
+
onCancel: o.handleCancel
|
|
101
|
+
}, {
|
|
102
|
+
default: P(() => [
|
|
103
|
+
R(t, { onRegister: o.registerForm }, null, 8, ["onRegister"])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["onRegister", "onOk", "onCancel"]);
|
|
107
|
+
}
|
|
108
|
+
const Z = /* @__PURE__ */ E(I, [["render", $], ["__scopeId", "data-v-07f7580c"]]);
|
|
109
|
+
export {
|
|
110
|
+
Z as default
|
|
111
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
var B = Object.defineProperty, C = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
|
+
var j = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var w = (o, n, l) => n in o ? B(o, n, { enumerable: !0, configurable: !0, writable: !0, value: l }) : o[n] = l, g = (o, n) => {
|
|
6
|
+
for (var l in n || (n = {}))
|
|
7
|
+
j.call(n, l) && w(o, l, n[l]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var l of v(n))
|
|
10
|
+
I.call(n, l) && w(o, l, n[l]);
|
|
11
|
+
return o;
|
|
12
|
+
}, _ = (o, n) => C(o, P(n));
|
|
13
|
+
var h = (o, n, l) => new Promise((m, a) => {
|
|
14
|
+
var r = (s) => {
|
|
15
|
+
try {
|
|
16
|
+
i(l.next(s));
|
|
17
|
+
} catch (c) {
|
|
18
|
+
a(c);
|
|
19
|
+
}
|
|
20
|
+
}, d = (s) => {
|
|
21
|
+
try {
|
|
22
|
+
i(l.throw(s));
|
|
23
|
+
} catch (c) {
|
|
24
|
+
a(c);
|
|
25
|
+
}
|
|
26
|
+
}, i = (s) => s.done ? m(s.value) : Promise.resolve(s.value).then(r, d);
|
|
27
|
+
i((l = l.apply(o, n)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as V, ref as f, reactive as k, toRaw as G, toRefs as K, resolveComponent as b, openBlock as N, createBlock as $, mergeProps as O, withCtx as F, createVNode as S } from "vue";
|
|
30
|
+
import { BasicModal as J, useModalInner as T } from "/@/components/Modal";
|
|
31
|
+
import { BasicForm as A, useForm as D } from "/@/components/Form/index";
|
|
32
|
+
import { pick as W } from "lodash-es";
|
|
33
|
+
import { _ as q } from "./index-6a09a912.mjs";
|
|
34
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
35
|
+
import "/@/hooks/web/useMessage";
|
|
36
|
+
import "vue-router";
|
|
37
|
+
const z = V({
|
|
38
|
+
name: "FieldExtendJsonModal",
|
|
39
|
+
components: {
|
|
40
|
+
BasicModal: J,
|
|
41
|
+
BasicForm: A
|
|
42
|
+
},
|
|
43
|
+
emits: ["success", "register"],
|
|
44
|
+
setup(o, { emit: n }) {
|
|
45
|
+
const l = f(!1);
|
|
46
|
+
function m() {
|
|
47
|
+
a.uploadnum = 0, a.showLength = "", a.popupMulti = !0, a.multiSelect = !0, a.store = "", a.text = "", a.orderRule = "", a.validateError = "", a.labelLength = 4;
|
|
48
|
+
}
|
|
49
|
+
const a = k({
|
|
50
|
+
uploadnum: 0,
|
|
51
|
+
showLength: "",
|
|
52
|
+
popupMulti: !0,
|
|
53
|
+
store: "",
|
|
54
|
+
text: "",
|
|
55
|
+
multiSelect: !0,
|
|
56
|
+
orderRule: "",
|
|
57
|
+
validateError: "",
|
|
58
|
+
labelLength: 4
|
|
59
|
+
}), r = f(""), d = f(""), i = f("0"), s = [
|
|
60
|
+
{
|
|
61
|
+
label: "rowKey",
|
|
62
|
+
field: "rowKey",
|
|
63
|
+
component: "Input",
|
|
64
|
+
show: !1
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: "文件上传数量",
|
|
68
|
+
field: "uploadnum",
|
|
69
|
+
component: "InputNumber",
|
|
70
|
+
componentProps: {
|
|
71
|
+
style: {
|
|
72
|
+
width: "100%"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
ifShow: () => r.value === "file" || r.value === "image"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: "是否多选",
|
|
79
|
+
field: "popupMulti",
|
|
80
|
+
component: "RadioGroup",
|
|
81
|
+
defaultValue: !0,
|
|
82
|
+
componentProps: {
|
|
83
|
+
options: [
|
|
84
|
+
{ label: "否", value: !1 },
|
|
85
|
+
{ label: "是", value: !0 }
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
ifShow: () => r.value === "popup"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: "是否多选",
|
|
92
|
+
field: "multiSelect",
|
|
93
|
+
component: "RadioGroup",
|
|
94
|
+
defaultValue: !0,
|
|
95
|
+
componentProps: {
|
|
96
|
+
options: [
|
|
97
|
+
{ label: "否", value: !1 },
|
|
98
|
+
{ label: "是", value: !0 }
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
ifShow: () => r.value === "sel_user" || r.value === "sel_depart"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: "存储字段",
|
|
105
|
+
field: "store",
|
|
106
|
+
component: "Input",
|
|
107
|
+
ifShow: () => r.value === "sel_user" || r.value === "sel_depart"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
label: "展示字段",
|
|
111
|
+
field: "text",
|
|
112
|
+
component: "Input",
|
|
113
|
+
ifShow: () => r.value === "sel_user" || r.value === "sel_depart"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: "默认排序",
|
|
117
|
+
field: "orderRule",
|
|
118
|
+
component: "RadioGroup",
|
|
119
|
+
defaultValue: "",
|
|
120
|
+
componentProps: {
|
|
121
|
+
options: [
|
|
122
|
+
{ label: "降序", value: "desc" },
|
|
123
|
+
{ label: "升序", value: "asc" },
|
|
124
|
+
{ label: "不默认排序", value: "" }
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
ifShow: () => i.value === "1"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: "校验提示",
|
|
131
|
+
field: "validateError",
|
|
132
|
+
component: "Input",
|
|
133
|
+
componentProps: {
|
|
134
|
+
placeholder: "请输入校验提示文本"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
label: "label长度",
|
|
139
|
+
field: "labelLength",
|
|
140
|
+
component: "InputNumber",
|
|
141
|
+
componentProps: {
|
|
142
|
+
placeholder: "请输入label长度"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
label: "是否固定",
|
|
147
|
+
field: "isFixed",
|
|
148
|
+
component: "RadioGroup",
|
|
149
|
+
defaultValue: 0,
|
|
150
|
+
componentProps: {
|
|
151
|
+
options: [
|
|
152
|
+
{ label: "是", value: 1 },
|
|
153
|
+
{ label: "否", value: 0 }
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
], [c, { validate: x, setFieldsValue: R, resetFields: y }] = D({
|
|
158
|
+
schemas: s,
|
|
159
|
+
showActionButtonGroup: !1,
|
|
160
|
+
labelAlign: "right",
|
|
161
|
+
labelWidth: 100
|
|
162
|
+
}), [L, { closeModal: M }] = T((e) => h(this, null, function* () {
|
|
163
|
+
if (console.log("extend json", e), m(), e.jsonStr) {
|
|
164
|
+
let t = JSON.parse(e.jsonStr);
|
|
165
|
+
Object.keys(t).map((p) => {
|
|
166
|
+
console.log("扩展参数:" + p + "=" + t[p]), a[p] = t[p];
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
r.value = e.fieldShowType, d.value = e.id, i.value = e.sortFlag;
|
|
170
|
+
let u = G(a);
|
|
171
|
+
yield y(), yield R(_(g({}, u), {
|
|
172
|
+
rowKey: e.id
|
|
173
|
+
}));
|
|
174
|
+
}));
|
|
175
|
+
function E() {
|
|
176
|
+
return h(this, null, function* () {
|
|
177
|
+
let e = yield x();
|
|
178
|
+
console.log("datga", e);
|
|
179
|
+
let u = r.value, t = {};
|
|
180
|
+
u === "file" || u === "image" ? e.uploadnum && e.uploadnum > 0 && (t.uploadnum = e.uploadnum) : u === "textarea" || u === "text" ? e.showLength && e.showLength > 0 && (t.showLength = e.showLength) : u === "sel_user" || u === "sel_depart" ? t = W(e, "store", "text", "multiSelect") : u === "popup" && (t.popupMulti = e.popupMulti), i.value === "1" && e.orderRule && (t.orderRule = e.orderRule), e.validateError && (t.validateError = e.validateError), e.labelLength && (t.labelLength = e.labelLength), e.isFixed && (t.isFixed = e.isFixed), console.log("obj....", t);
|
|
181
|
+
for (let p in t)
|
|
182
|
+
t[p] === "" && delete t[p];
|
|
183
|
+
console.log(t), n("success", t, e.rowKey), M();
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
return g({
|
|
187
|
+
spinningLoading: l,
|
|
188
|
+
registerModal: L,
|
|
189
|
+
registerForm: c,
|
|
190
|
+
fieldShowType: r,
|
|
191
|
+
rowKey: d,
|
|
192
|
+
handleSubmit: E
|
|
193
|
+
}, K(a));
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
function H(o, n, l, m, a, r) {
|
|
197
|
+
const d = b("BasicForm"), i = b("a-spin"), s = b("BasicModal");
|
|
198
|
+
return N(), $(s, O({ wrapClassName: "field-extend-config-modal" }, o.$attrs, {
|
|
199
|
+
title: "扩展参数配置",
|
|
200
|
+
onRegister: o.registerModal,
|
|
201
|
+
keyboard: "",
|
|
202
|
+
canFullscreen: !1,
|
|
203
|
+
cancelText: "关闭",
|
|
204
|
+
onOk: o.handleSubmit
|
|
205
|
+
}), {
|
|
206
|
+
default: F(() => [
|
|
207
|
+
S(i, { spinning: o.spinningLoading }, {
|
|
208
|
+
default: F(() => [
|
|
209
|
+
S(d, { onRegister: o.registerForm }, null, 8, ["onRegister"])
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["spinning"])
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}, 16, ["onRegister", "onOk"]);
|
|
216
|
+
}
|
|
217
|
+
const ne = /* @__PURE__ */ q(z, [["render", H]]);
|
|
218
|
+
export {
|
|
219
|
+
ne as default
|
|
220
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
var d = (o, s, t) => new Promise((n, a) => {
|
|
2
|
+
var u = (e) => {
|
|
3
|
+
try {
|
|
4
|
+
l(t.next(e));
|
|
5
|
+
} catch (i) {
|
|
6
|
+
a(i);
|
|
7
|
+
}
|
|
8
|
+
}, r = (e) => {
|
|
9
|
+
try {
|
|
10
|
+
l(t.throw(e));
|
|
11
|
+
} catch (i) {
|
|
12
|
+
a(i);
|
|
13
|
+
}
|
|
14
|
+
}, l = (e) => e.done ? n(e.value) : Promise.resolve(e.value).then(u, r);
|
|
15
|
+
l((t = t.apply(o, s)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as y, ref as f, resolveComponent as p, openBlock as D, createBlock as S, withCtx as m, createVNode as g } from "vue";
|
|
18
|
+
import { defHttp as _ } from "/@/utils/http/axios";
|
|
19
|
+
import { BasicModal as C, useModalInner as R } from "/@/components/Modal";
|
|
20
|
+
import { _ as k } from "./index-6a09a912.mjs";
|
|
21
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
22
|
+
import "/@/hooks/web/useMessage";
|
|
23
|
+
import "vue-router";
|
|
24
|
+
const B = y({
|
|
25
|
+
name: "FileSelectModal",
|
|
26
|
+
components: { BasicModal: C },
|
|
27
|
+
emits: ["select", "register"],
|
|
28
|
+
setup(o, { emit: s }) {
|
|
29
|
+
const t = f(!0), n = f([]), a = f(""), [u, { closeModal: r }] = R(() => d(this, null, function* () {
|
|
30
|
+
a.value = "", n.value.length === 0 && i();
|
|
31
|
+
}));
|
|
32
|
+
function l() {
|
|
33
|
+
s("select", a.value), r();
|
|
34
|
+
}
|
|
35
|
+
function e() {
|
|
36
|
+
r();
|
|
37
|
+
}
|
|
38
|
+
function i() {
|
|
39
|
+
return d(this, null, function* () {
|
|
40
|
+
t.value = !0, n.value = yield _.get({
|
|
41
|
+
url: "/online/cgform/head/rootFile"
|
|
42
|
+
/* rootFileUrl */
|
|
43
|
+
}).finally(() => {
|
|
44
|
+
t.value = !1;
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function v(c) {
|
|
49
|
+
return d(this, null, function* () {
|
|
50
|
+
if (c.dataRef.children)
|
|
51
|
+
return;
|
|
52
|
+
let M = {
|
|
53
|
+
parentPath: c.dataRef.key
|
|
54
|
+
};
|
|
55
|
+
c.dataRef.children = yield _.get({ url: "/online/cgform/head/fileTree", params: M }), n.value = [...n.value];
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function h(c) {
|
|
59
|
+
a.value = c[0];
|
|
60
|
+
}
|
|
61
|
+
return { loading: t, treeData: n, onLoadData: v, onSelect: h, onSubmit: l, onCancel: e, registerModal: u };
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
function w(o, s, t, n, a, u) {
|
|
65
|
+
const r = p("a-directory-tree"), l = p("a-spin"), e = p("BasicModal");
|
|
66
|
+
return D(), S(e, {
|
|
67
|
+
onRegister: o.registerModal,
|
|
68
|
+
title: "选择目录",
|
|
69
|
+
width: 500,
|
|
70
|
+
onOk: o.onSubmit,
|
|
71
|
+
onCancel: o.onCancel
|
|
72
|
+
}, {
|
|
73
|
+
default: m(() => [
|
|
74
|
+
g(l, { spinning: o.loading }, {
|
|
75
|
+
default: m(() => [
|
|
76
|
+
g(r, {
|
|
77
|
+
treeData: o.treeData,
|
|
78
|
+
loadData: o.onLoadData,
|
|
79
|
+
onSelect: o.onSelect
|
|
80
|
+
}, null, 8, ["treeData", "loadData", "onSelect"])
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["spinning"])
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["onRegister", "onOk", "onCancel"]);
|
|
87
|
+
}
|
|
88
|
+
const K = /* @__PURE__ */ k(B, [["render", w]]);
|
|
89
|
+
export {
|
|
90
|
+
K as default
|
|
91
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var p = Object.defineProperty, m = Object.defineProperties;
|
|
2
|
+
var s = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var a = Object.getOwnPropertySymbols;
|
|
4
|
+
var u = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var i = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, r = (e, t) => {
|
|
6
|
+
for (var o in t || (t = {}))
|
|
7
|
+
u.call(t, o) && i(e, o, t[o]);
|
|
8
|
+
if (a)
|
|
9
|
+
for (var o of a(t))
|
|
10
|
+
c.call(t, o) && i(e, o, t[o]);
|
|
11
|
+
return e;
|
|
12
|
+
}, n = (e, t) => m(e, s(t));
|
|
13
|
+
import { defineComponent as b, ref as f, resolveComponent as y, openBlock as h, createBlock as g, mergeProps as T } from "vue";
|
|
14
|
+
import { JVxeTypes as l } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
+
import { u as k } from "./useTableSync-dc333087.mjs";
|
|
16
|
+
import { _ as w } from "./index-6a09a912.mjs";
|
|
17
|
+
import "./cgform.data-cbdd88c3.mjs";
|
|
18
|
+
import "/@/utils/dict";
|
|
19
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
20
|
+
import "/@/utils/uuid";
|
|
21
|
+
import "lodash-es";
|
|
22
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
|
+
import "/@/hooks/web/useMessage";
|
|
24
|
+
import "vue-router";
|
|
25
|
+
const F = b({
|
|
26
|
+
name: "ForeignKeyTable",
|
|
27
|
+
props: {
|
|
28
|
+
actionButton: { type: Boolean, default: !0 }
|
|
29
|
+
},
|
|
30
|
+
setup() {
|
|
31
|
+
const e = f([
|
|
32
|
+
{ title: "字段名称", key: "dbFieldName", width: 160 },
|
|
33
|
+
{ title: "字段备注", key: "dbFieldTxt", width: 160 },
|
|
34
|
+
{
|
|
35
|
+
title: "主表名",
|
|
36
|
+
key: "mainTable",
|
|
37
|
+
width: 280,
|
|
38
|
+
type: l.input,
|
|
39
|
+
defaultValue: ""
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: "主表字段",
|
|
43
|
+
key: "mainField",
|
|
44
|
+
width: 280,
|
|
45
|
+
type: l.input,
|
|
46
|
+
defaultValue: ""
|
|
47
|
+
}
|
|
48
|
+
]), t = k(e);
|
|
49
|
+
return n(r({}, t), { columns: e });
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
function _(e, t, o, B, V, S) {
|
|
53
|
+
const d = y("JVxeTable");
|
|
54
|
+
return h(), g(d, T({
|
|
55
|
+
ref: "tableRef",
|
|
56
|
+
rowNumber: "",
|
|
57
|
+
keyboardEdit: "",
|
|
58
|
+
maxHeight: e.tableHeight.noToolbar,
|
|
59
|
+
loading: e.loading,
|
|
60
|
+
columns: e.columns,
|
|
61
|
+
dataSource: e.dataSource,
|
|
62
|
+
disabled: !e.actionButton,
|
|
63
|
+
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
64
|
+
}, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "disabled"]);
|
|
65
|
+
}
|
|
66
|
+
const z = /* @__PURE__ */ w(F, [["render", _]]);
|
|
67
|
+
export {
|
|
68
|
+
z as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as f, ref as b, resolveComponent as g, openBlock as h, createBlock as y, mergeProps as $ } from "vue";
|
|
2
|
+
import { JVxeTypes as a } from "/@/components/jeecg/JVxeTable/types";
|
|
3
|
+
import { u as T } from "./useTableSync-dc333087.mjs";
|
|
4
|
+
import { _ as v } from "./index-6a09a912.mjs";
|
|
5
|
+
import "./cgform.data-cbdd88c3.mjs";
|
|
6
|
+
import "/@/utils/dict";
|
|
7
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
8
|
+
import "/@/utils/uuid";
|
|
9
|
+
import "lodash-es";
|
|
10
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
11
|
+
import "/@/hooks/web/useMessage";
|
|
12
|
+
import "vue-router";
|
|
13
|
+
const S = f({
|
|
14
|
+
name: "IndexTable",
|
|
15
|
+
components: {},
|
|
16
|
+
props: {
|
|
17
|
+
actionButton: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0,
|
|
20
|
+
required: !1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup() {
|
|
24
|
+
const e = b([
|
|
25
|
+
{
|
|
26
|
+
title: "索引名称",
|
|
27
|
+
key: "indexName",
|
|
28
|
+
width: 330,
|
|
29
|
+
type: a.input,
|
|
30
|
+
defaultValue: "",
|
|
31
|
+
placeholder: "请输入${title}",
|
|
32
|
+
validateRules: [{ required: !0, message: "${title}不能为空" }]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: "索引栏位",
|
|
36
|
+
key: "indexField",
|
|
37
|
+
width: 330,
|
|
38
|
+
type: a.selectMultiple,
|
|
39
|
+
options: [],
|
|
40
|
+
defaultValue: "",
|
|
41
|
+
placeholder: "请选择${title}",
|
|
42
|
+
validateRules: [{ required: !0, message: "请选择${title}" }]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: "索引类型",
|
|
46
|
+
key: "indexType",
|
|
47
|
+
width: 330,
|
|
48
|
+
type: a.select,
|
|
49
|
+
options: [
|
|
50
|
+
{ title: "normal", value: "normal" },
|
|
51
|
+
{ title: "unique", value: "unique" }
|
|
52
|
+
],
|
|
53
|
+
defaultValue: "normal",
|
|
54
|
+
placeholder: "请选择${title}",
|
|
55
|
+
validateRules: [{ required: !0, message: "请选择${title}" }]
|
|
56
|
+
}
|
|
57
|
+
]), l = T(e), { tableRef: r, loading: i, dataSource: n, tableHeight: u, tableProps: t, setDataSource: s, validateData: p } = l;
|
|
58
|
+
function m(c) {
|
|
59
|
+
let d = [];
|
|
60
|
+
c.value.tableRef.getTableData().forEach((o) => {
|
|
61
|
+
o.dbFieldName && d.push({
|
|
62
|
+
title: o.dbFieldName,
|
|
63
|
+
value: o.dbFieldName
|
|
64
|
+
});
|
|
65
|
+
}), e.value[1].options = d;
|
|
66
|
+
}
|
|
67
|
+
return { tableRef: r, loading: i, dataSource: n, columns: e, tableHeight: u, tableProps: t, syncTable: m, setDataSource: s, validateData: p };
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
function x(e, l, r, i, n, u) {
|
|
71
|
+
const t = g("JVxeTable");
|
|
72
|
+
return h(), y(t, $({
|
|
73
|
+
ref: "tableRef",
|
|
74
|
+
rowNumber: "",
|
|
75
|
+
rowSelection: "",
|
|
76
|
+
dragSort: "",
|
|
77
|
+
keyboardEdit: "",
|
|
78
|
+
sortKey: "orderNum",
|
|
79
|
+
maxHeight: e.tableHeight.normal,
|
|
80
|
+
loading: e.loading,
|
|
81
|
+
columns: e.columns,
|
|
82
|
+
dataSource: e.dataSource,
|
|
83
|
+
toolbar: e.actionButton
|
|
84
|
+
}, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "toolbar"]);
|
|
85
|
+
}
|
|
86
|
+
const C = /* @__PURE__ */ v(S, [["render", x]]);
|
|
87
|
+
export {
|
|
88
|
+
C as default
|
|
89
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { computed as i, openBlock as n, createElementBlock as c, createElementVNode as t, createCommentVNode as d, pushScopeId as p, popScopeId as l } from "vue";
|
|
2
|
+
import { _ as r } from "./index-6a09a912.mjs";
|
|
3
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
4
|
+
import "/@/hooks/web/useMessage";
|
|
5
|
+
import "vue-router";
|
|
6
|
+
const _ = {
|
|
7
|
+
name: "JModalTip",
|
|
8
|
+
props: {
|
|
9
|
+
visible: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
emits: ["save", "cancel"],
|
|
15
|
+
setup(e) {
|
|
16
|
+
return {
|
|
17
|
+
flag: i(() => e.visible)
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}, m = (e) => (p("data-v-812981d3"), e = e(), l(), e), v = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "jeecg-update-tip-bar"
|
|
23
|
+
}, u = { class: "container" }, f = { class: "outer" }, $ = { class: "inner" }, g = /* @__PURE__ */ m(() => /* @__PURE__ */ t("span", { class: "tip" }, "正在修改表单数据 ···", -1));
|
|
24
|
+
function k(e, o, h, s, y, I) {
|
|
25
|
+
return s.flag ? (n(), c("div", v, [
|
|
26
|
+
t("div", u, [
|
|
27
|
+
t("div", f, [
|
|
28
|
+
t("div", $, [
|
|
29
|
+
g,
|
|
30
|
+
t("div", {
|
|
31
|
+
class: "cancel",
|
|
32
|
+
onClick: o[0] || (o[0] = (a) => e.$emit("cancel"))
|
|
33
|
+
}, "取消"),
|
|
34
|
+
t("div", {
|
|
35
|
+
class: "save",
|
|
36
|
+
onClick: o[1] || (o[1] = (a) => e.$emit("save"))
|
|
37
|
+
}, "保存")
|
|
38
|
+
])
|
|
39
|
+
])
|
|
40
|
+
])
|
|
41
|
+
])) : d("", !0);
|
|
42
|
+
}
|
|
43
|
+
const S = /* @__PURE__ */ r(_, [["render", k], ["__scopeId", "data-v-812981d3"]]);
|
|
44
|
+
export {
|
|
45
|
+
S as default
|
|
46
|
+
};
|