@jeecg/online 3.5.3-vite4 → 3.6.2-beta
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 → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
- package/CgformModal-eccfc38e.mjs +611 -0
- package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
- package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
- package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
- package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
- package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
- package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
- package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
- package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
- package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
- package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/EnhanceJsModal-05c73a59.mjs +311 -0
- package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
- package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
- package/FileSelectModal-9a02560b.mjs +103 -0
- package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
- package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
- package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
- package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
- package/LinkTableListPiece-8499a318.mjs +34 -0
- package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/OnlCgformErpList-db45e22b.mjs +454 -0
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
- package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
- package/OnlCgformTabList-a9e1e36a.mjs +395 -0
- package/OnlineAutoList-0583a910.mjs +479 -0
- package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
- package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
- package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
- package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
- package/OnlineForm-1fa2d893.mjs +750 -0
- package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
- package/OnlineQueryForm-1bfc8320.mjs +386 -0
- package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
- package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
- package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
- package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
- package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
- package/OnlineTabForm-512d3951.mjs +766 -0
- package/OnlineTabFormDetail-5a70219d.mjs +324 -0
- package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
- package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
- package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
- package/README.md +5 -2
- package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/constant-754f1a9d.mjs +9 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
- package/index-b7a05eef.mjs +1496 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-423282b7.mjs +400 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-325fe3f1.mjs +3926 -0
- package/useListButton-cdbab702.mjs +676 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
- package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
- package/CgformModal-6938d8c2.mjs +0 -613
- package/EnhanceJsModal-0b133341.mjs +0 -233
- package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
- package/FileSelectModal-64aaf623.mjs +0 -91
- package/JModalTip-abe1515a.mjs +0 -46
- package/LinkTableListPiece-34266919.mjs +0 -34
- package/OnlCgformErpList-7a0388d8.mjs +0 -425
- package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
- package/OnlineAutoList-85e6a30d.mjs +0 -472
- package/OnlineForm-630a22c2.mjs +0 -778
- package/OnlineQueryForm-1c5949a7.mjs +0 -378
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/constant-fe20103a.mjs +0 -6
- package/index-6a09a912.mjs +0 -58
- package/index-9d32ae88.mjs +0 -313
- package/useCgformList-2d6a5955.mjs +0 -388
- package/useExtendComponent-48d37d9b.mjs +0 -3919
- package/useListButton-cef1371a.mjs +0 -656
- package/useOnlinePopEvent-e9a042f8.mjs +0 -19
- package/useOnlineTest-0df0ae86.mjs +0 -43
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var g = (t, i, r) => new Promise((o, m) => {
|
|
2
|
+
var c = (e) => {
|
|
3
3
|
try {
|
|
4
|
-
n(
|
|
4
|
+
n(r.next(e));
|
|
5
5
|
} catch (s) {
|
|
6
6
|
m(s);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, a = (e) => {
|
|
9
9
|
try {
|
|
10
|
-
n(
|
|
10
|
+
n(r.throw(e));
|
|
11
11
|
} catch (s) {
|
|
12
12
|
m(s);
|
|
13
13
|
}
|
|
14
|
-
}, n = (
|
|
15
|
-
n((
|
|
14
|
+
}, n = (e) => e.done ? o(e.value) : Promise.resolve(e.value).then(c, a);
|
|
15
|
+
n((r = r.apply(t, i)).next());
|
|
16
16
|
});
|
|
17
17
|
import { useMessage as F } from "/@/hooks/web/useMessage";
|
|
18
|
-
import { ref as
|
|
18
|
+
import { ref as u, watch as d, resolveComponent as S, openBlock as v, createBlock as D } from "vue";
|
|
19
19
|
import { BasicForm as w } from "/@/components/Form/index";
|
|
20
20
|
import { defHttp as y } from "/@/utils/http/axios";
|
|
21
|
-
import {
|
|
22
|
-
import { Loading as
|
|
23
|
-
import
|
|
24
|
-
import { _ as O } from "./index-
|
|
21
|
+
import { i as $, g as x } from "./useExtendComponent-325fe3f1.mjs";
|
|
22
|
+
import { Loading as B } from "/@/components/Loading";
|
|
23
|
+
import I from "./DetailForm-424638eb.mjs";
|
|
24
|
+
import { _ as O } from "./index-0e3ab3af.mjs";
|
|
25
25
|
import "/@/components/Form/src/componentMap";
|
|
26
26
|
import "/@/utils/propTypes";
|
|
27
27
|
import "@ant-design/icons-vue";
|
|
28
28
|
import "/@/components/Modal";
|
|
29
29
|
import "lodash-es";
|
|
30
|
+
import "./constant-754f1a9d.mjs";
|
|
30
31
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
31
32
|
import "/@/views/system/user/user.api";
|
|
32
33
|
import "/@/store/modules/user";
|
|
@@ -40,22 +41,24 @@ import "/@/hooks/system/useListPage";
|
|
|
40
41
|
import "vue-router";
|
|
41
42
|
import "/@/components/Form/src/utils/Area";
|
|
42
43
|
import "/@/components/Preview/index";
|
|
43
|
-
import "./LinkTableListPiece-
|
|
44
|
-
import "./OnlineSelectCascade-
|
|
44
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
45
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
45
46
|
import "/@/utils/auth";
|
|
46
|
-
import "./JModalTip-
|
|
47
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
48
|
+
import "/@/hooks/web/useAppInject";
|
|
47
49
|
import "ant-design-vue";
|
|
48
50
|
import "@vueuse/core";
|
|
49
51
|
import "/@/utils/dict";
|
|
50
52
|
import "/@/utils/dict/index";
|
|
51
53
|
import "/@/api/common/api";
|
|
54
|
+
import "/@/components/Markdown";
|
|
52
55
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
53
56
|
const R = "/online/cgform/api/subform", T = {
|
|
54
57
|
name: "OnlineSubFormDetail",
|
|
55
58
|
components: {
|
|
56
59
|
BasicForm: w,
|
|
57
|
-
Loading:
|
|
58
|
-
DetailForm:
|
|
60
|
+
Loading: B,
|
|
61
|
+
DetailForm: I
|
|
59
62
|
},
|
|
60
63
|
props: {
|
|
61
64
|
properties: {
|
|
@@ -76,65 +79,65 @@ const R = "/online/cgform/api/subform", T = {
|
|
|
76
79
|
}
|
|
77
80
|
},
|
|
78
81
|
emits: ["formChange"],
|
|
79
|
-
setup(
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
() =>
|
|
82
|
+
setup(t) {
|
|
83
|
+
const i = u(!1), { createMessage: r } = F(), o = u(""), m = u({}), { detailFormSchemas: c, createFormSchemas: a, formSpan: n } = $(t);
|
|
84
|
+
d(
|
|
85
|
+
() => t.table,
|
|
83
86
|
() => {
|
|
84
|
-
|
|
87
|
+
o.value = t.table;
|
|
85
88
|
},
|
|
86
89
|
{ immediate: !0 }
|
|
87
|
-
),
|
|
88
|
-
() =>
|
|
90
|
+
), d(
|
|
91
|
+
() => t.properties,
|
|
89
92
|
() => {
|
|
90
|
-
|
|
93
|
+
i.value = !1, a(t.properties), i.value = !0;
|
|
91
94
|
},
|
|
92
95
|
{ deep: !0, immediate: !0 }
|
|
93
|
-
),
|
|
94
|
-
() =>
|
|
96
|
+
), d(
|
|
97
|
+
() => t.mainId,
|
|
95
98
|
() => {
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
setTimeout(() => {
|
|
100
|
+
e();
|
|
98
101
|
}, 100);
|
|
99
102
|
},
|
|
100
103
|
{ immediate: !0 }
|
|
101
104
|
);
|
|
102
|
-
function
|
|
103
|
-
return
|
|
104
|
-
yield
|
|
105
|
-
const { table: p, mainId:
|
|
106
|
-
if (!p || !
|
|
105
|
+
function e() {
|
|
106
|
+
return g(this, null, function* () {
|
|
107
|
+
yield x(i), m.value = {};
|
|
108
|
+
const { table: p, mainId: l } = t;
|
|
109
|
+
if (!p || !l)
|
|
107
110
|
return;
|
|
108
|
-
let
|
|
109
|
-
m.value =
|
|
111
|
+
let f = (yield s(p, l)) || {};
|
|
112
|
+
m.value = f;
|
|
110
113
|
});
|
|
111
114
|
}
|
|
112
|
-
function s(p,
|
|
113
|
-
let
|
|
115
|
+
function s(p, l) {
|
|
116
|
+
let f = `${R}/${p}/${l}`;
|
|
114
117
|
return new Promise((_, h) => {
|
|
115
|
-
y.get({ url:
|
|
116
|
-
|
|
118
|
+
y.get({ url: f }, { isTransformResponse: !1 }).then((b) => {
|
|
119
|
+
b.success ? _(b.result) : h();
|
|
117
120
|
});
|
|
118
121
|
}).catch(() => {
|
|
119
|
-
|
|
122
|
+
r.warning("子表获取数据失败:" + p);
|
|
120
123
|
});
|
|
121
124
|
}
|
|
122
125
|
return {
|
|
123
|
-
detailFormSchemas:
|
|
126
|
+
detailFormSchemas: c,
|
|
124
127
|
subFormData: m,
|
|
125
128
|
formSpan: n
|
|
126
129
|
};
|
|
127
130
|
}
|
|
128
131
|
};
|
|
129
|
-
function k(
|
|
130
|
-
const
|
|
131
|
-
return
|
|
132
|
-
schemas:
|
|
133
|
-
data:
|
|
134
|
-
span:
|
|
132
|
+
function k(t, i, r, o, m, c) {
|
|
133
|
+
const a = S("detail-form");
|
|
134
|
+
return v(), D(a, {
|
|
135
|
+
schemas: o.detailFormSchemas,
|
|
136
|
+
data: o.subFormData,
|
|
137
|
+
span: o.formSpan
|
|
135
138
|
}, null, 8, ["schemas", "data", "span"]);
|
|
136
139
|
}
|
|
137
|
-
const
|
|
140
|
+
const Ft = /* @__PURE__ */ O(T, [["render", k]]);
|
|
138
141
|
export {
|
|
139
|
-
|
|
142
|
+
Ft as default
|
|
140
143
|
};
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
var A = (e, n, a) => new Promise((p, l) => {
|
|
2
|
+
var b = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
r(a.next(t));
|
|
5
|
+
} catch (m) {
|
|
6
|
+
l(m);
|
|
7
|
+
}
|
|
8
|
+
}, u = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
r(a.throw(t));
|
|
11
|
+
} catch (m) {
|
|
12
|
+
l(m);
|
|
13
|
+
}
|
|
14
|
+
}, r = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(b, u);
|
|
15
|
+
r((a = a.apply(e, n)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as x, ref as S, watch as ee, resolveComponent as d, openBlock as s, createBlock as h, mergeProps as te, createSlots as oe, withCtx as i, createElementBlock as w, Fragment as E, renderList as O, createTextVNode as g, toDisplayString as y, createCommentVNode as ne, createVNode as T, createElementVNode as B } from "vue";
|
|
18
|
+
import { BasicModal as ae } from "/@/components/Modal";
|
|
19
|
+
import ie from "./OnlineTabForm-512d3951.mjs";
|
|
20
|
+
import { b as re } from "./useExtendComponent-325fe3f1.mjs";
|
|
21
|
+
import me from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
22
|
+
import { T as le } from "./constant-754f1a9d.mjs";
|
|
23
|
+
import { _ as de } from "./index-0e3ab3af.mjs";
|
|
24
|
+
import "/@/hooks/web/useMessage";
|
|
25
|
+
import "/@/components/Form/index";
|
|
26
|
+
import "/@/utils/http/axios";
|
|
27
|
+
import "lodash-es";
|
|
28
|
+
import "/@/utils";
|
|
29
|
+
import "/@/components/Loading";
|
|
30
|
+
import "/@/utils/auth";
|
|
31
|
+
import "@ant-design/icons-vue";
|
|
32
|
+
import "./useCustomHook-acb00837.mjs";
|
|
33
|
+
import "/@/utils/cache";
|
|
34
|
+
import "/@/utils/common/compUtils";
|
|
35
|
+
import "/@/store/modules/user";
|
|
36
|
+
import "/@/components/Form/src/componentMap";
|
|
37
|
+
import "/@/utils/propTypes";
|
|
38
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
39
|
+
import "/@/views/system/user/user.api";
|
|
40
|
+
import "/@/utils/desform/customExpression";
|
|
41
|
+
import "/@/store/modules/permission";
|
|
42
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
43
|
+
import "/@/components/Table";
|
|
44
|
+
import "/@/hooks/system/useListPage";
|
|
45
|
+
import "vue-router";
|
|
46
|
+
import "/@/components/Form/src/utils/Area";
|
|
47
|
+
import "/@/components/Preview/index";
|
|
48
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
49
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
50
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
51
|
+
import "/@/hooks/web/useAppInject";
|
|
52
|
+
import "ant-design-vue";
|
|
53
|
+
import "@vueuse/core";
|
|
54
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
55
|
+
const se = x({
|
|
56
|
+
name: "OnlineTabAutoModal",
|
|
57
|
+
props: {
|
|
58
|
+
id: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ""
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
components: {
|
|
64
|
+
BasicModal: ae,
|
|
65
|
+
OnlineForm: ie,
|
|
66
|
+
CommentPanel: me
|
|
67
|
+
},
|
|
68
|
+
emits: ["success", "register", "formConfig"],
|
|
69
|
+
setup(e, { emit: n }) {
|
|
70
|
+
const a = S(), p = S([]), l = S("-1");
|
|
71
|
+
function b() {
|
|
72
|
+
a.value && a.value.reload();
|
|
73
|
+
}
|
|
74
|
+
const {
|
|
75
|
+
title: u,
|
|
76
|
+
modalWidth: r,
|
|
77
|
+
registerModal: t,
|
|
78
|
+
closeModal: m,
|
|
79
|
+
cgButtonList: v,
|
|
80
|
+
handleCgButtonClick: I,
|
|
81
|
+
disableSubmit: o,
|
|
82
|
+
handleSubmit: f,
|
|
83
|
+
submitLoading: V,
|
|
84
|
+
handleCancel: $,
|
|
85
|
+
handleFormConfig: L,
|
|
86
|
+
onlineFormCompRef: D,
|
|
87
|
+
formTemplate: P,
|
|
88
|
+
isTreeForm: j,
|
|
89
|
+
pidFieldName: W,
|
|
90
|
+
renderSuccess: H,
|
|
91
|
+
formRendered: U,
|
|
92
|
+
tableName: q,
|
|
93
|
+
formDataId: z,
|
|
94
|
+
enableComment: G,
|
|
95
|
+
onCloseEvent: F,
|
|
96
|
+
themeTemplate: J
|
|
97
|
+
} = re(!1, { emit: n }, b);
|
|
98
|
+
function K(c) {
|
|
99
|
+
n("success", c), m(), F(), _();
|
|
100
|
+
}
|
|
101
|
+
ee(() => e.id, Q, { immediate: !0 });
|
|
102
|
+
function Q() {
|
|
103
|
+
return A(this, null, function* () {
|
|
104
|
+
U.value = !1, e.id && (yield L(e.id, {}, (c) => {
|
|
105
|
+
const M = [], k = [], { head: R, schema: Y } = c, { properties: Z } = Y;
|
|
106
|
+
M.push({ tableName: R.tableName, tableTxt: R.tableTxt }), Object.entries(Z).forEach(([N, C]) => {
|
|
107
|
+
C.view == "tab" && k.push({ tableName: N, tableTxt: C.describe });
|
|
108
|
+
}), k.sort((N, C) => N.order - C.order), p.value = [...M, ...k];
|
|
109
|
+
}));
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
const X = (c) => String(c - 1), _ = () => {
|
|
113
|
+
setTimeout(() => {
|
|
114
|
+
l.value = "-1";
|
|
115
|
+
}, 500);
|
|
116
|
+
};
|
|
117
|
+
return {
|
|
118
|
+
title: u,
|
|
119
|
+
onlineFormCompRef: D,
|
|
120
|
+
renderSuccess: H,
|
|
121
|
+
registerModal: t,
|
|
122
|
+
handleSubmit: f,
|
|
123
|
+
handleSuccess: K,
|
|
124
|
+
handleCancel: $,
|
|
125
|
+
modalWidth: r,
|
|
126
|
+
formTemplate: P,
|
|
127
|
+
disableSubmit: o,
|
|
128
|
+
cgButtonList: v,
|
|
129
|
+
handleCgButtonClick: I,
|
|
130
|
+
isTreeForm: j,
|
|
131
|
+
pidFieldName: W,
|
|
132
|
+
submitLoading: V,
|
|
133
|
+
tableName: q,
|
|
134
|
+
formDataId: z,
|
|
135
|
+
enableComment: G,
|
|
136
|
+
commentPanelRef: a,
|
|
137
|
+
onCloseEvent: F,
|
|
138
|
+
themeTemplate: J,
|
|
139
|
+
tabNav: p,
|
|
140
|
+
tabValue: X,
|
|
141
|
+
tabIndex: l,
|
|
142
|
+
TAB: le,
|
|
143
|
+
restTabIndex: _
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
const pe = { class: "titleArea" }, ue = { class: "title" }, ce = { class: "right" };
|
|
148
|
+
function be(e, n, a, p, l, b) {
|
|
149
|
+
const u = d("a-radio-button"), r = d("a-radio-group"), t = d("a-button"), m = d("online-form"), v = d("comment-panel"), I = d("BasicModal");
|
|
150
|
+
return s(), h(I, te({
|
|
151
|
+
title: e.title,
|
|
152
|
+
onCancel: n[2] || (n[2] = () => {
|
|
153
|
+
e.onCloseEvent(), e.restTabIndex();
|
|
154
|
+
}),
|
|
155
|
+
enableComment: e.enableComment,
|
|
156
|
+
width: e.modalWidth
|
|
157
|
+
}, e.$attrs, {
|
|
158
|
+
maxHeight: 600,
|
|
159
|
+
onRegister: e.registerModal,
|
|
160
|
+
wrapClassName: "jeecg-online-modal",
|
|
161
|
+
onOk: e.handleSubmit
|
|
162
|
+
}), oe({
|
|
163
|
+
footer: i(() => [
|
|
164
|
+
(s(!0), w(E, null, O(e.cgButtonList, (o) => (s(), h(t, {
|
|
165
|
+
key: o.id,
|
|
166
|
+
type: "primary",
|
|
167
|
+
onClick: (f) => e.handleCgButtonClick(o.optType, o.buttonCode),
|
|
168
|
+
preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
|
|
169
|
+
}, {
|
|
170
|
+
default: i(() => [
|
|
171
|
+
g(y(o.buttonName), 1)
|
|
172
|
+
]),
|
|
173
|
+
_: 2
|
|
174
|
+
}, 1032, ["onClick", "preIcon"]))), 128)),
|
|
175
|
+
e.disableSubmit ? ne("", !0) : (s(), h(t, {
|
|
176
|
+
key: "submit",
|
|
177
|
+
type: "primary",
|
|
178
|
+
onClick: e.handleSubmit,
|
|
179
|
+
loading: e.submitLoading
|
|
180
|
+
}, {
|
|
181
|
+
default: i(() => [
|
|
182
|
+
g("确定")
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["onClick", "loading"])),
|
|
186
|
+
T(t, {
|
|
187
|
+
key: "back",
|
|
188
|
+
onClick: n[1] || (n[1] = () => {
|
|
189
|
+
e.handleCancel(), e.restTabIndex();
|
|
190
|
+
})
|
|
191
|
+
}, {
|
|
192
|
+
default: i(() => [
|
|
193
|
+
g("关闭")
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
})
|
|
197
|
+
]),
|
|
198
|
+
comment: i(() => [
|
|
199
|
+
T(v, {
|
|
200
|
+
ref: "commentPanelRef",
|
|
201
|
+
tableName: e.tableName,
|
|
202
|
+
dataId: e.formDataId
|
|
203
|
+
}, null, 8, ["tableName", "dataId"])
|
|
204
|
+
]),
|
|
205
|
+
default: i(() => [
|
|
206
|
+
T(m, {
|
|
207
|
+
ref: "onlineFormCompRef",
|
|
208
|
+
id: e.id,
|
|
209
|
+
disabled: e.disableSubmit,
|
|
210
|
+
"form-template": e.formTemplate,
|
|
211
|
+
isTree: e.isTreeForm,
|
|
212
|
+
pidField: e.pidFieldName,
|
|
213
|
+
themeTemplate: e.themeTemplate,
|
|
214
|
+
tabIndex: e.tabIndex,
|
|
215
|
+
onRendered: e.renderSuccess,
|
|
216
|
+
onSuccess: e.handleSuccess
|
|
217
|
+
}, null, 8, ["id", "disabled", "form-template", "isTree", "pidField", "themeTemplate", "tabIndex", "onRendered", "onSuccess"])
|
|
218
|
+
]),
|
|
219
|
+
_: 2
|
|
220
|
+
}, [
|
|
221
|
+
e.themeTemplate === e.TAB ? {
|
|
222
|
+
name: "title",
|
|
223
|
+
fn: i(() => [
|
|
224
|
+
B("div", pe, [
|
|
225
|
+
B("div", ue, y(e.title), 1),
|
|
226
|
+
B("div", ce, [
|
|
227
|
+
T(r, {
|
|
228
|
+
value: e.tabIndex,
|
|
229
|
+
"onUpdate:value": n[0] || (n[0] = (o) => e.tabIndex = o)
|
|
230
|
+
}, {
|
|
231
|
+
default: i(() => [
|
|
232
|
+
(s(!0), w(E, null, O(e.tabNav, (o, f) => (s(), h(u, {
|
|
233
|
+
value: e.tabValue(f),
|
|
234
|
+
key: o.tableName
|
|
235
|
+
}, {
|
|
236
|
+
default: i(() => [
|
|
237
|
+
g(y(o.tableTxt), 1)
|
|
238
|
+
]),
|
|
239
|
+
_: 2
|
|
240
|
+
}, 1032, ["value"]))), 128))
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["value"])
|
|
244
|
+
])
|
|
245
|
+
])
|
|
246
|
+
]),
|
|
247
|
+
key: "0"
|
|
248
|
+
} : void 0
|
|
249
|
+
]), 1040, ["title", "enableComment", "width", "onRegister", "onOk"]);
|
|
250
|
+
}
|
|
251
|
+
const tt = /* @__PURE__ */ de(se, [["render", be], ["__scopeId", "data-v-1b8f2c75"]]);
|
|
252
|
+
export {
|
|
253
|
+
tt as default
|
|
254
|
+
};
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
var F = (e, o, a) => new Promise((s, i) => {
|
|
2
|
+
var u = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
n(a.next(t));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
i(r);
|
|
7
|
+
}
|
|
8
|
+
}, p = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
n(a.throw(t));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
i(r);
|
|
13
|
+
}
|
|
14
|
+
}, n = (t) => t.done ? s(t.value) : Promise.resolve(t.value).then(u, p);
|
|
15
|
+
n((a = a.apply(e, o)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as z, ref as C, watch as G, resolveComponent as d, openBlock as I, createBlock as M, mergeProps as J, withCtx as m, createElementVNode as N, toDisplayString as R, createVNode as c, createElementBlock as K, Fragment as Q, renderList as X, createTextVNode as S } from "vue";
|
|
18
|
+
import { BasicModal as Y } from "/@/components/Modal";
|
|
19
|
+
import Z from "./OnlineTabFormDetail-5a70219d.mjs";
|
|
20
|
+
import { b as ee } from "./useExtendComponent-325fe3f1.mjs";
|
|
21
|
+
import te from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
22
|
+
import { T as oe } from "./constant-754f1a9d.mjs";
|
|
23
|
+
import { _ as ae } from "./index-0e3ab3af.mjs";
|
|
24
|
+
import "/@/hooks/web/useMessage";
|
|
25
|
+
import "/@/components/Loading";
|
|
26
|
+
import "/@/utils/auth";
|
|
27
|
+
import "/@/utils";
|
|
28
|
+
import "@ant-design/icons-vue";
|
|
29
|
+
import "./DetailForm-424638eb.mjs";
|
|
30
|
+
import "/@/utils/propTypes";
|
|
31
|
+
import "/@/utils/dict";
|
|
32
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
33
|
+
import "/@/utils/dict/index";
|
|
34
|
+
import "/@/api/common/api";
|
|
35
|
+
import "/@/utils/http/axios";
|
|
36
|
+
import "/@/components/Form/src/utils/Area";
|
|
37
|
+
import "/@/utils/common/compUtils";
|
|
38
|
+
import "/@/components/Preview/index";
|
|
39
|
+
import "/@/components/Markdown";
|
|
40
|
+
import "./OnlineSubFormDetail-f0d2c016.mjs";
|
|
41
|
+
import "/@/components/Form/index";
|
|
42
|
+
import "/@/components/Form/src/componentMap";
|
|
43
|
+
import "lodash-es";
|
|
44
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
45
|
+
import "/@/views/system/user/user.api";
|
|
46
|
+
import "/@/store/modules/user";
|
|
47
|
+
import "/@/utils/desform/customExpression";
|
|
48
|
+
import "/@/store/modules/permission";
|
|
49
|
+
import "/@/components/Table";
|
|
50
|
+
import "/@/hooks/system/useListPage";
|
|
51
|
+
import "vue-router";
|
|
52
|
+
import "./LinkTableListPiece-8499a318.mjs";
|
|
53
|
+
import "./OnlineSelectCascade-4265c95d.mjs";
|
|
54
|
+
import "./JModalTip-33c7dc44.mjs";
|
|
55
|
+
import "/@/hooks/web/useAppInject";
|
|
56
|
+
import "ant-design-vue";
|
|
57
|
+
import "@vueuse/core";
|
|
58
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
59
|
+
const ne = z({
|
|
60
|
+
name: "OnlineTabDetailModal",
|
|
61
|
+
props: {
|
|
62
|
+
id: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: !1,
|
|
65
|
+
default: ""
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
components: {
|
|
69
|
+
BasicModal: Y,
|
|
70
|
+
OnlineFormDetail: Z,
|
|
71
|
+
CommentPanel: te
|
|
72
|
+
},
|
|
73
|
+
emits: ["success", "register", "formConfig"],
|
|
74
|
+
setup(e, { emit: o }) {
|
|
75
|
+
const a = C(), s = C([]), i = C("-1");
|
|
76
|
+
function u() {
|
|
77
|
+
a.value && a.value.reload();
|
|
78
|
+
}
|
|
79
|
+
const {
|
|
80
|
+
title: p,
|
|
81
|
+
modalWidth: n,
|
|
82
|
+
registerModal: t,
|
|
83
|
+
cgButtonList: r,
|
|
84
|
+
handleCgButtonClick: f,
|
|
85
|
+
disableSubmit: h,
|
|
86
|
+
handleSubmit: l,
|
|
87
|
+
submitLoading: _,
|
|
88
|
+
handleCancel: k,
|
|
89
|
+
handleFormConfig: D,
|
|
90
|
+
onlineFormCompRef: y,
|
|
91
|
+
formTemplate: V,
|
|
92
|
+
isTreeForm: O,
|
|
93
|
+
pidFieldName: $,
|
|
94
|
+
renderSuccess: E,
|
|
95
|
+
formRendered: P,
|
|
96
|
+
showSub: A,
|
|
97
|
+
tableName: L,
|
|
98
|
+
formDataId: j,
|
|
99
|
+
enableComment: W,
|
|
100
|
+
themeTemplate: q
|
|
101
|
+
} = ee(!1, { emit: o }, u);
|
|
102
|
+
G(() => e.id, H, { immediate: !0 });
|
|
103
|
+
function H() {
|
|
104
|
+
return F(this, null, function* () {
|
|
105
|
+
P.value = !1, e.id && (yield D(e.id, {}, (g) => {
|
|
106
|
+
const w = [], T = [], { head: B, schema: U } = g, { properties: x } = U;
|
|
107
|
+
w.push({ tableName: B.tableName, tableTxt: B.tableTxt }), Object.entries(x).forEach(([v, b]) => {
|
|
108
|
+
b.view == "tab" && T.push({ tableName: v, tableTxt: b.describe });
|
|
109
|
+
}), T.sort((v, b) => v.order - b.order), s.value = [...w, ...T];
|
|
110
|
+
}));
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
title: p,
|
|
115
|
+
onlineFormCompRef: y,
|
|
116
|
+
renderSuccess: E,
|
|
117
|
+
registerModal: t,
|
|
118
|
+
handleSubmit: l,
|
|
119
|
+
handleCancel: k,
|
|
120
|
+
modalWidth: n,
|
|
121
|
+
formTemplate: V,
|
|
122
|
+
disableSubmit: h,
|
|
123
|
+
cgButtonList: r,
|
|
124
|
+
handleCgButtonClick: f,
|
|
125
|
+
isTreeForm: O,
|
|
126
|
+
pidFieldName: $,
|
|
127
|
+
submitLoading: _,
|
|
128
|
+
showSub: A,
|
|
129
|
+
tableName: L,
|
|
130
|
+
formDataId: j,
|
|
131
|
+
enableComment: W,
|
|
132
|
+
commentPanelRef: a,
|
|
133
|
+
themeTemplate: q,
|
|
134
|
+
tabNav: s,
|
|
135
|
+
tabValue: (g) => String(g - 1),
|
|
136
|
+
tabIndex: i,
|
|
137
|
+
TAB: oe,
|
|
138
|
+
restTabIndex: () => {
|
|
139
|
+
setTimeout(() => {
|
|
140
|
+
i.value = "-1";
|
|
141
|
+
}, 500);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
const re = { class: "titleArea" }, me = { class: "title" }, ie = { class: "right" };
|
|
147
|
+
function le(e, o, a, s, i, u) {
|
|
148
|
+
const p = d("a-radio-button"), n = d("a-radio-group"), t = d("a-button"), r = d("online-form-detail"), f = d("comment-panel"), h = d("BasicModal");
|
|
149
|
+
return I(), M(h, J({
|
|
150
|
+
title: e.title,
|
|
151
|
+
onCancel: o[2] || (o[2] = () => {
|
|
152
|
+
e.restTabIndex();
|
|
153
|
+
}),
|
|
154
|
+
width: e.modalWidth,
|
|
155
|
+
maxHeight: 600,
|
|
156
|
+
enableComment: e.enableComment,
|
|
157
|
+
defaultFullscreen: !1
|
|
158
|
+
}, e.$attrs, {
|
|
159
|
+
onRegister: e.registerModal,
|
|
160
|
+
wrapClassName: "jeecg-online-detail-modal"
|
|
161
|
+
}), {
|
|
162
|
+
title: m(() => [
|
|
163
|
+
N("div", re, [
|
|
164
|
+
N("div", me, R(e.title), 1),
|
|
165
|
+
N("div", ie, [
|
|
166
|
+
c(n, {
|
|
167
|
+
value: e.tabIndex,
|
|
168
|
+
"onUpdate:value": o[0] || (o[0] = (l) => e.tabIndex = l)
|
|
169
|
+
}, {
|
|
170
|
+
default: m(() => [
|
|
171
|
+
(I(!0), K(Q, null, X(e.tabNav, (l, _) => (I(), M(p, {
|
|
172
|
+
value: e.tabValue(_),
|
|
173
|
+
key: l.tableName
|
|
174
|
+
}, {
|
|
175
|
+
default: m(() => [
|
|
176
|
+
S(R(l.tableTxt), 1)
|
|
177
|
+
]),
|
|
178
|
+
_: 2
|
|
179
|
+
}, 1032, ["value"]))), 128))
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["value"])
|
|
183
|
+
])
|
|
184
|
+
])
|
|
185
|
+
]),
|
|
186
|
+
footer: m(() => [
|
|
187
|
+
c(t, {
|
|
188
|
+
key: "back",
|
|
189
|
+
onClick: o[1] || (o[1] = () => {
|
|
190
|
+
e.handleCancel(), e.restTabIndex();
|
|
191
|
+
})
|
|
192
|
+
}, {
|
|
193
|
+
default: m(() => [
|
|
194
|
+
S("关闭")
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
})
|
|
198
|
+
]),
|
|
199
|
+
comment: m(() => [
|
|
200
|
+
c(f, {
|
|
201
|
+
ref: "commentPanelRef",
|
|
202
|
+
tableName: e.tableName,
|
|
203
|
+
dataId: e.formDataId
|
|
204
|
+
}, null, 8, ["tableName", "dataId"])
|
|
205
|
+
]),
|
|
206
|
+
default: m(() => [
|
|
207
|
+
c(r, {
|
|
208
|
+
ref: "onlineFormCompRef",
|
|
209
|
+
id: e.id,
|
|
210
|
+
"form-template": e.formTemplate,
|
|
211
|
+
"show-sub": e.showSub,
|
|
212
|
+
themeTemplate: e.themeTemplate,
|
|
213
|
+
tabIndex: e.tabIndex,
|
|
214
|
+
onRendered: e.renderSuccess
|
|
215
|
+
}, null, 8, ["id", "form-template", "show-sub", "themeTemplate", "tabIndex", "onRendered"])
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 16, ["title", "width", "enableComment", "onRegister"]);
|
|
219
|
+
}
|
|
220
|
+
const tt = /* @__PURE__ */ ae(ne, [["render", le], ["__scopeId", "data-v-341d8c57"]]);
|
|
221
|
+
export {
|
|
222
|
+
tt as default
|
|
223
|
+
};
|