@jeecg/online 3.7.4 → 3.9.0-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/{AccountLoginForm-d2fed52f.mjs → AccountLoginForm-cbc75a49.mjs} +1 -1
- package/{AiModal-fbe4b68a.mjs → AiModal-5bec5218.mjs} +1 -1
- package/{AppForgetPassword-3b3bec82.mjs → AppForgetPassword-dbc8377e.mjs} +2 -2
- package/{AppLogin-cd2e2a87.mjs → AppLogin-786949d3.mjs} +9 -9
- package/{AppLoginHeader-9b5be678.mjs → AppLoginHeader-37034b2f.mjs} +1 -1
- package/{AppNameEmail-b4e32ae8.mjs → AppNameEmail-7c6a1406.mjs} +2 -2
- package/{AppRegister-7117b66a.mjs → AppRegister-29a00a9d.mjs} +3 -3
- package/{AppTenant-5817729b.mjs → AppTenant-92890383.mjs} +2 -2
- package/{AppThirdForm-d14fb5e5.mjs → AppThirdForm-760064e5.mjs} +1 -1
- package/{AuthButtonConfig-5e3b6d72.mjs → AuthButtonConfig-78180aec.mjs} +50 -46
- package/{AuthButtonTree-7b4ec967.mjs → AuthButtonTree-62c8e70c.mjs} +2 -2
- package/{AuthDataConfig-48ee9228.mjs → AuthDataConfig-c978c469.mjs} +2 -2
- package/{AuthDataTree-02b3ba05.mjs → AuthDataTree-0647a06c.mjs} +1 -1
- package/{AuthFieldConfig-562cc6b6.mjs → AuthFieldConfig-558283bc.mjs} +2 -2
- package/{AuthFieldTree-2d458c0c.mjs → AuthFieldTree-106db4e2.mjs} +1 -1
- package/{AuthManagerDrawer-38299230.mjs → AuthManagerDrawer-ec5190d2.mjs} +5 -5
- package/{AuthSetterModal-78b06703.mjs → AuthSetterModal-90a76886.mjs} +8 -8
- package/CgformAddressModal-690b8940.mjs +263 -0
- package/CgformCopyList-af9c99a4.mjs +260 -0
- package/{CgformModal-12951453.mjs → CgformModal-b04a492a.mjs} +73 -70
- package/CgreportAigcModal-8fdcbd31.mjs +211 -0
- package/{CgreportModal-bfeb93ed.mjs → CgreportModal-da62724c.mjs} +123 -119
- package/{CheckDictTable-3c1e59e0.mjs → CheckDictTable-7320189b.mjs} +2 -2
- package/{CodeFileListModal-71752603.mjs → CodeFileListModal-e5ec210d.mjs} +2 -2
- package/CodeFileViewModal-09053f3a.mjs +269 -0
- package/CodeGeneratorModal-aba790e3.mjs +298 -0
- package/{CustomButtonList-22b5cdb3.mjs → CustomButtonList-704e6d1c.mjs} +1 -1
- package/{DBAttributeTable-eb25565c.mjs → DBAttributeTable-4a65c897.mjs} +176 -131
- package/{DbToOnlineModal-049b4bbd.mjs → DbToOnlineModal-cc398c70.mjs} +1 -1
- package/{DetailForm-c127c27f.mjs → DetailForm-a2bf8c33.mjs} +165 -153
- package/{DropMenuItem-b1a8f47d.mjs → DropMenuItem-884f9464.mjs} +1 -1
- package/{EnhanceJavaModal-1a4d696b.mjs → EnhanceJavaModal-fe8d475d.mjs} +1 -1
- package/{EnhanceJsHistory-48cf43ad.mjs → EnhanceJsHistory-95ca545c.mjs} +2 -2
- package/{EnhanceJsModal-0e1f15f8.mjs → EnhanceJsModal-742b0ee2.mjs} +17 -16
- package/{EnhanceSqlModal-6a1aa471.mjs → EnhanceSqlModal-6e36bc4f.mjs} +1 -1
- package/{ExtendConfigModal-37af21a5.mjs → ExtendConfigModal-74d657c7.mjs} +2 -2
- package/{FieldExtendJsonModal-9441e08e.mjs → FieldExtendJsonModal-fe7f7902.mjs} +2 -2
- package/{FileSelectModal-04490919.mjs → FileSelectModal-cf41604b.mjs} +1 -1
- package/{ForeignKeyTable-06300a47.mjs → ForeignKeyTable-4a59ded1.mjs} +2 -2
- package/{IndexTable-79bddd5c.mjs → IndexTable-87d67830.mjs} +2 -2
- package/{JModalTip-192fafa1.mjs → JModalTip-5401f43d.mjs} +1 -1
- package/{JOnlineSearchSelect-9abcf657.mjs → JOnlineSearchSelect-d8c57973.mjs} +1 -1
- package/{LeftDepart-35d78655.mjs → LeftDepart-463bf432.mjs} +1 -1
- package/{LeftRole-9d88976d.mjs → LeftRole-1631d3d4.mjs} +1 -1
- package/{LeftUser-04c89aea.mjs → LeftUser-5774a5db.mjs} +1 -1
- package/{LinkTableConfigModal-5f94ef13.mjs → LinkTableConfigModal-1bab1423.mjs} +1 -1
- package/{LinkTableFieldConfigModal-40753de5.mjs → LinkTableFieldConfigModal-49470140.mjs} +1 -1
- package/{LinkTableListPiece-179035c7.mjs → LinkTableListPiece-47f4286c.mjs} +1 -1
- package/{ModalFormDemo-3a85920c.mjs → ModalFormDemo-dbd0aa28.mjs} +1 -1
- package/OnlCgformErpList-35ad1d6e.mjs +528 -0
- package/{OnlCgformErpSubTable-3515150b.mjs → OnlCgformErpSubTable-5093d438.mjs} +45 -42
- package/{OnlCgformInnerSubTable-13e888c6.mjs → OnlCgformInnerSubTable-f1dc90db.mjs} +108 -103
- package/{OnlCgformInnerTableList-2e8f853c.mjs → OnlCgformInnerTableList-1b82a7da.mjs} +163 -155
- package/{OnlCgformTabList-583ac15f.mjs → OnlCgformTabList-d66d1261.mjs} +163 -155
- package/OnlineAutoList-fbba2a52.mjs +559 -0
- package/{OnlineAutoModal-c0743caf.mjs → OnlineAutoModal-68909692.mjs} +11 -10
- package/OnlineAutoTreeList-5153f09d.mjs +533 -0
- package/OnlineCustomModal-b5f8c799.mjs +247 -0
- package/{OnlineDetailModal-785e848e.mjs → OnlineDetailModal-ac078a9a.mjs} +45 -43
- package/OnlineForm-20604e4f.mjs +1080 -0
- package/OnlineFormDetail-719118b6.mjs +350 -0
- package/{OnlineFormUrlAdd-905bf251.mjs → OnlineFormUrlAdd-5b675f48.mjs} +14 -12
- package/{OnlineFormUrlDetail-a9dd2bfa.mjs → OnlineFormUrlDetail-91156bf2.mjs} +22 -19
- package/{OnlineFormUrlEdit-b8941f05.mjs → OnlineFormUrlEdit-fb810de6.mjs} +14 -12
- package/{OnlineFormUrlSuccess-ecaf6a21.mjs → OnlineFormUrlSuccess-302ecb21.mjs} +1 -1
- package/{OnlineQueryForm-ca6186a3.mjs → OnlineQueryForm-5eeceb51.mjs} +120 -120
- package/{OnlineSearchFormItem-5c503a51.mjs → OnlineSearchFormItem-5536a1a6.mjs} +2 -2
- package/{OnlineSelectCascade-a3e686b3.mjs → OnlineSelectCascade-180e8c9a.mjs} +61 -55
- package/{OnlineSubFormDetail-be1ad3b9.mjs → OnlineSubFormDetail-4d64e7be.mjs} +48 -44
- package/{OnlineTabAutoModal-fb59b573.mjs → OnlineTabAutoModal-c127ed50.mjs} +10 -9
- package/{OnlineTabDetailModal-4b9c4838.mjs → OnlineTabDetailModal-e4e9f7e3.mjs} +39 -37
- package/{OnlineTabForm-89389384.mjs → OnlineTabForm-827e7089.mjs} +26 -25
- package/OnlineTabFormDetail-0f96377e.mjs +329 -0
- package/{PageAttributeTable-345b97fe.mjs → PageAttributeTable-5703e2f1.mjs} +6 -6
- package/{PhoneLoginForm-8ca7e2d4.mjs → PhoneLoginForm-15dc68ed.mjs} +52 -52
- package/ProcessOnlineForm-1fcbe0af.mjs +219 -0
- package/{QueryTable-f0a88d78.mjs → QueryTable-26c9ee22.mjs} +2 -2
- package/{SetSwitchOptions-cdcb22a1.mjs → SetSwitchOptions-a3428177.mjs} +1 -1
- package/{ShareAddView-f713c0a5.mjs → ShareAddView-0512e884.mjs} +25 -22
- package/{ShareEditView-691764ad.mjs → ShareEditView-b89dfbd3.mjs} +25 -22
- package/{ShareView-df344a8d.mjs → ShareView-faf1a0ab.mjs} +23 -20
- package/{ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs → ShareView.vue_vue_type_script_setup_true_lang-d1597c0d.mjs} +2 -2
- package/{SingleView-ad0287d6.mjs → SingleView-21d3a558.mjs} +18 -15
- package/{SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs → SingleView.vue_vue_type_style_index_0_lang-914483d0.mjs} +4 -4
- package/{SuperQuery-2b293e3b.mjs → SuperQuery-c95f86ee.mjs} +69 -67
- package/TaskOpinionList-73ecb3c8.mjs +101 -0
- package/aiModal-b44fa135.mjs +175 -0
- package/{auth.data-626c5083.mjs → auth.data-e44c7975.mjs} +10 -9
- package/button.data-fe45d43b.mjs +12 -0
- package/dayjs.min-eea532a3.mjs +301 -0
- package/{index-d6f9ada7.mjs → index-02f6dc7d.mjs} +2 -2
- package/{index-bef7fe2d.mjs → index-22a99f2e.mjs} +1 -1
- package/{index-181f8344.mjs → index-26940246.mjs} +3 -3
- package/{index-3c7392a4.mjs → index-30da2fc0.mjs} +136 -128
- package/index-391aec04.mjs +268 -0
- package/index-94b6319e.mjs +57 -0
- package/{index-93341e02.mjs → index-abbfd327.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-aaa30c8c.mjs +410 -0
- package/{useCustomHook-acb00837.mjs → useCustomHook-3a17a690.mjs} +11 -9
- package/useExtendComponent-ad499dff.mjs +4164 -0
- package/useListButton-308458cd.mjs +765 -0
- package/{useSchemas-f1819e54.mjs → useSchemas-b074f3a1.mjs} +72 -72
- package/{useTableSync-075826a1.mjs → useTableSync-dbfba20e.mjs} +31 -31
- package/CgformAddressModal-1b9cbe19.mjs +0 -260
- package/CgformCopyList-580bba0f.mjs +0 -252
- package/CodeFileViewModal-eb803769.mjs +0 -253
- package/CodeGeneratorModal-2fe1e920.mjs +0 -281
- package/OnlCgformErpList-8fd15fc1.mjs +0 -488
- package/OnlineAutoList-36ec0957.mjs +0 -513
- package/OnlineAutoTreeList-1cd718be.mjs +0 -523
- package/OnlineCustomModal-661ee850.mjs +0 -232
- package/OnlineForm-c1fb38eb.mjs +0 -1012
- package/OnlineFormDetail-50186870.mjs +0 -342
- package/OnlineTabFormDetail-72173ae4.mjs +0 -327
- package/ProcessOnlineForm-485b5679.mjs +0 -188
- package/README.md +0 -26
- package/index-3ccda826.mjs +0 -239
- package/index-f3683351.mjs +0 -57
- package/useCgformList-13c8aab7.mjs +0 -378
- package/useExtendComponent-3f5734ca.mjs +0 -4459
- package/useListButton-ee23874a.mjs +0 -719
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs} +0 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
var ae = Object.defineProperty;
|
|
2
|
+
var j = Object.getOwnPropertySymbols;
|
|
3
|
+
var le = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var N = (i, a, r) => a in i ? ae(i, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[a] = r, V = (i, a) => {
|
|
5
|
+
for (var r in a || (a = {}))
|
|
6
|
+
le.call(a, r) && N(i, r, a[r]);
|
|
7
|
+
if (j)
|
|
8
|
+
for (var r of j(a))
|
|
9
|
+
me.call(a, r) && N(i, r, a[r]);
|
|
10
|
+
return i;
|
|
11
|
+
};
|
|
12
|
+
var k = (i, a, r) => new Promise((o, d) => {
|
|
13
|
+
var u = (m) => {
|
|
14
|
+
try {
|
|
15
|
+
b(r.next(m));
|
|
16
|
+
} catch (g) {
|
|
17
|
+
d(g);
|
|
18
|
+
}
|
|
19
|
+
}, s = (m) => {
|
|
20
|
+
try {
|
|
21
|
+
b(r.throw(m));
|
|
22
|
+
} catch (g) {
|
|
23
|
+
d(g);
|
|
24
|
+
}
|
|
25
|
+
}, b = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(u, s);
|
|
26
|
+
b((r = r.apply(i, a)).next());
|
|
27
|
+
});
|
|
28
|
+
import { useMessage as se } from "/@/hooks/web/useMessage";
|
|
29
|
+
import { nextTick as ce, ref as c, reactive as R, watch as ue, resolveComponent as h, openBlock as p, createElementBlock as x, createVNode as w, createCommentVNode as I, createBlock as F, withCtx as U, Fragment as fe, renderList as pe, normalizeStyle as de, renderSlot as he } from "vue";
|
|
30
|
+
import { Loading as be } from "/@/components/Loading";
|
|
31
|
+
import { getToken as ge } from "/@/utils/auth";
|
|
32
|
+
import { goJmReportViewPage as _e } from "/@/utils";
|
|
33
|
+
import { PrinterOutlined as ye } from "@ant-design/icons-vue";
|
|
34
|
+
import Se from "./DetailForm-a2bf8c33.mjs";
|
|
35
|
+
import Te from "./OnlineSubFormDetail-4d64e7be.mjs";
|
|
36
|
+
import { k as xe, u as Ce } from "./useExtendComponent-ad499dff.mjs";
|
|
37
|
+
import { defHttp as ke } from "/@/utils/http/axios";
|
|
38
|
+
import { E as we } from "./constant-fa63bd66.mjs";
|
|
39
|
+
import { useAppInject as Fe } from "/@/hooks/web/useAppInject";
|
|
40
|
+
import { buildShortUUID as Pe } from "/@/utils/uuid";
|
|
41
|
+
import { _ as ve } from "./index-94b6319e.mjs";
|
|
42
|
+
import "/@/utils/propTypes";
|
|
43
|
+
import "/@/utils/dict";
|
|
44
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
45
|
+
import "/@/utils/dict/index";
|
|
46
|
+
import "/@/api/common/api";
|
|
47
|
+
import "/@/components/Form/src/utils/Area";
|
|
48
|
+
import "/@/utils/common/compUtils";
|
|
49
|
+
import "/@/components/Preview/index";
|
|
50
|
+
import "/@/components/Markdown";
|
|
51
|
+
import "/@/components/Form/index";
|
|
52
|
+
import "/@/components/Form/src/componentMap";
|
|
53
|
+
import "/@/components/Modal";
|
|
54
|
+
import "lodash-es";
|
|
55
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
56
|
+
import "/@/utils/is";
|
|
57
|
+
import "/@/views/system/user/user.api";
|
|
58
|
+
import "./dayjs.min-eea532a3.mjs";
|
|
59
|
+
import "/@/store/modules/user";
|
|
60
|
+
import "/@/utils/desform/customExpression";
|
|
61
|
+
import "/@/store/modules/permission";
|
|
62
|
+
import "/@/components/Table";
|
|
63
|
+
import "/@/hooks/system/useListPage";
|
|
64
|
+
import "vue-router";
|
|
65
|
+
import "./LinkTableListPiece-47f4286c.mjs";
|
|
66
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
67
|
+
import "/@/assets/images/placeholderImage.png";
|
|
68
|
+
import "./OnlineSelectCascade-180e8c9a.mjs";
|
|
69
|
+
import "./JModalTip-5401f43d.mjs";
|
|
70
|
+
import "ant-design-vue";
|
|
71
|
+
import "@vueuse/core";
|
|
72
|
+
function De() {
|
|
73
|
+
const i = {}, a = {
|
|
74
|
+
setFieldsValue: "<m> 设置表单控件的值",
|
|
75
|
+
getFieldsValue: "<m> 获取表单控件的值",
|
|
76
|
+
sh: "<p> 表单控件的显示隐藏状态",
|
|
77
|
+
isUpdate: "<p> 判断是否为编辑模式",
|
|
78
|
+
isDetail: "<p> 判断是否为详情模式"
|
|
79
|
+
}, r = new Proxy(a, {
|
|
80
|
+
get(u, s) {
|
|
81
|
+
return Reflect.get(i, s);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
function o(u, s) {
|
|
85
|
+
i[u] = s;
|
|
86
|
+
}
|
|
87
|
+
function d(u) {
|
|
88
|
+
Object.keys(u).map((s) => {
|
|
89
|
+
i[s] = u[s];
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return o("$nextTick", ce), o("addObject2Context", o), { onlineFormDetailContext: r, addObject2Context: o, resetContext: d };
|
|
93
|
+
}
|
|
94
|
+
const Oe = {
|
|
95
|
+
name: "OnlineFormDetail",
|
|
96
|
+
components: {
|
|
97
|
+
DetailForm: Se,
|
|
98
|
+
Loading: be,
|
|
99
|
+
PrinterOutlined: ye,
|
|
100
|
+
OnlineSubFormDetail: Te
|
|
101
|
+
},
|
|
102
|
+
props: {
|
|
103
|
+
id: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: ""
|
|
106
|
+
},
|
|
107
|
+
formTemplate: {
|
|
108
|
+
type: Number,
|
|
109
|
+
default: 1
|
|
110
|
+
},
|
|
111
|
+
disabled: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: !1
|
|
114
|
+
},
|
|
115
|
+
isTree: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: !1
|
|
118
|
+
},
|
|
119
|
+
pidField: {
|
|
120
|
+
type: String,
|
|
121
|
+
default: ""
|
|
122
|
+
},
|
|
123
|
+
submitTip: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: !0
|
|
126
|
+
},
|
|
127
|
+
showSub: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: !0
|
|
130
|
+
},
|
|
131
|
+
themeTemplate: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: ""
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
emits: ["success", "rendered"],
|
|
137
|
+
setup(i, { emit: a }) {
|
|
138
|
+
const { createMessage: r } = se(), { getIsMobile: o } = Fe(), d = c(""), u = c(!0), s = c(!1), b = c(1), m = c({}), g = c(o.value ? "auto" : 300), P = c(340), v = c(!o.value);
|
|
139
|
+
let _ = {};
|
|
140
|
+
const y = R({}), l = R({
|
|
141
|
+
reportPrintShow: 0,
|
|
142
|
+
reportPrintUrl: "",
|
|
143
|
+
joinQuery: 0,
|
|
144
|
+
modelFullscreen: 0,
|
|
145
|
+
modalMinWidth: ""
|
|
146
|
+
}), { detailFormSchemas: S, hasSubTable: B, subTabInfo: M, refMap: H, showStatus: D, subDataSource: O, createFormSchemas: L, formSpan: K } = xe(i), z = c(Pe());
|
|
147
|
+
function A(e) {
|
|
148
|
+
let n = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
|
|
149
|
+
e && (n = JSON.parse(e)), Object.keys(n).map((t) => {
|
|
150
|
+
l[t] = n[t];
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
const { onlineFormDetailContext: E, resetContext: Q } = De();
|
|
154
|
+
let { EnhanceJS: C, initCgEnhanceJs: W } = Ce(E, !1);
|
|
155
|
+
function X(e) {
|
|
156
|
+
return k(this, null, function* () {
|
|
157
|
+
b.value = e.head.tableType, d.value = e.head.tableName, u.value = e.head.tableType == 1, A(e.head.extConfigJson), L(e.schema.properties), C = W(e.enhanceJs), a("rendered", l);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function q(e, n) {
|
|
161
|
+
return k(this, null, function* () {
|
|
162
|
+
yield Z(n), J(!0);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function G(e) {
|
|
166
|
+
let n = `/online/cgform/api/detail/${i.id}/${e}`;
|
|
167
|
+
return new Promise((t, f) => {
|
|
168
|
+
ke.get({ url: n }, { isTransformResponse: !1 }).then((T) => {
|
|
169
|
+
T.success ? t(T.result) : (f(), r.warning(T.message));
|
|
170
|
+
}).catch(() => {
|
|
171
|
+
f();
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function J(e) {
|
|
176
|
+
Object.keys(D).map((n) => {
|
|
177
|
+
D[n] = e;
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
function Y() {
|
|
181
|
+
J(!1), setTimeout(() => {
|
|
182
|
+
J(!0);
|
|
183
|
+
}, 300);
|
|
184
|
+
}
|
|
185
|
+
function Z(e) {
|
|
186
|
+
return k(this, null, function* () {
|
|
187
|
+
_ = yield G(e.id), S.value.filter((t) => t.hidden).forEach((t) => t.hidden = !1), Object.keys(y).forEach(function(t) {
|
|
188
|
+
delete y[t];
|
|
189
|
+
}), re({ buttonCode: "loaded" }), m.value = V({}, _), $(_);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
function $(e) {
|
|
193
|
+
e || (e = {});
|
|
194
|
+
let n = Object.keys(O.value);
|
|
195
|
+
if (n && n.length > 0) {
|
|
196
|
+
let t = {};
|
|
197
|
+
for (let f of n)
|
|
198
|
+
t[f] = e[f] || [];
|
|
199
|
+
O.value = t;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
function ee(e) {
|
|
203
|
+
return "online_" + e + ":";
|
|
204
|
+
}
|
|
205
|
+
function te() {
|
|
206
|
+
let e = l.reportPrintUrl, n = m.value;
|
|
207
|
+
if (n) {
|
|
208
|
+
let t = n.id, f = ge();
|
|
209
|
+
_e(e, t, f);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function oe(e) {
|
|
213
|
+
let n = m.value, t = ne(n, e);
|
|
214
|
+
return t && (t = t + "__" + z.value), t;
|
|
215
|
+
}
|
|
216
|
+
function ne(e, n) {
|
|
217
|
+
if (e) {
|
|
218
|
+
let t = e[n];
|
|
219
|
+
return !t && t !== 0 && (t = e[n.toLowerCase()], !t && t !== 0 && (t = e[n.toUpperCase()])), t;
|
|
220
|
+
}
|
|
221
|
+
return "";
|
|
222
|
+
}
|
|
223
|
+
function re({ buttonCode: e }) {
|
|
224
|
+
C && C[e] && C[e].call(E, E);
|
|
225
|
+
}
|
|
226
|
+
ue(y, (e) => {
|
|
227
|
+
Object.entries(e).forEach(([n, t]) => {
|
|
228
|
+
if (t == !1) {
|
|
229
|
+
const f = S.value.find((T) => T.field === n);
|
|
230
|
+
f && (f.hidden = !0);
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
const ie = {
|
|
235
|
+
setFieldsValue: (e) => {
|
|
236
|
+
Object.entries(e).forEach(([n, t]) => {
|
|
237
|
+
_[n] = t;
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
getFieldsValue: () => V({}, _),
|
|
241
|
+
sh: y,
|
|
242
|
+
isUpdate: c(!1),
|
|
243
|
+
isDetail: c(!0)
|
|
244
|
+
};
|
|
245
|
+
return Q(ie), {
|
|
246
|
+
detailFormSchemas: S,
|
|
247
|
+
formData: m,
|
|
248
|
+
formSpan: K,
|
|
249
|
+
//主表
|
|
250
|
+
tableName: d,
|
|
251
|
+
loading: s,
|
|
252
|
+
//子表
|
|
253
|
+
hasSubTable: B,
|
|
254
|
+
subTabInfo: M,
|
|
255
|
+
subFormHeight: g,
|
|
256
|
+
subTableHeight: P,
|
|
257
|
+
refMap: H,
|
|
258
|
+
onTabChange: Y,
|
|
259
|
+
//一对多子表
|
|
260
|
+
subDataSource: O,
|
|
261
|
+
getSubTableAuthPre: ee,
|
|
262
|
+
//父组件调用
|
|
263
|
+
show: q,
|
|
264
|
+
createRootProperties: X,
|
|
265
|
+
// 扩展配置
|
|
266
|
+
onOpenReportPrint: te,
|
|
267
|
+
onlineExtConfigJson: l,
|
|
268
|
+
getSubTableForeignKeyValue: oe,
|
|
269
|
+
showStatus: D,
|
|
270
|
+
ERP: we,
|
|
271
|
+
rowNumber: v
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
}, Ee = ["id"], Je = {
|
|
275
|
+
key: 0,
|
|
276
|
+
style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
|
|
277
|
+
}, Ve = { key: 1 };
|
|
278
|
+
function je(i, a, r, o, d, u) {
|
|
279
|
+
const s = h("PrinterOutlined"), b = h("detail-form"), m = h("online-sub-form-detail"), g = h("JVxeTable"), P = h("a-spin"), v = h("a-tab-pane"), _ = h("a-tabs"), y = h("Loading");
|
|
280
|
+
return p(), x("div", {
|
|
281
|
+
id: o.tableName + "_form"
|
|
282
|
+
}, [
|
|
283
|
+
o.formData.id && o.onlineExtConfigJson.reportPrintShow ? (p(), x("div", Je, [
|
|
284
|
+
w(s, {
|
|
285
|
+
title: "打印",
|
|
286
|
+
onClick: o.onOpenReportPrint,
|
|
287
|
+
style: { "font-size": "16px" }
|
|
288
|
+
}, null, 8, ["onClick"])
|
|
289
|
+
])) : I("", !0),
|
|
290
|
+
w(b, {
|
|
291
|
+
schemas: o.detailFormSchemas,
|
|
292
|
+
data: o.formData,
|
|
293
|
+
span: o.formSpan
|
|
294
|
+
}, null, 8, ["schemas", "data", "span"]),
|
|
295
|
+
r.themeTemplate !== o.ERP && o.hasSubTable && r.showSub ? (p(), F(_, {
|
|
296
|
+
key: 1,
|
|
297
|
+
onChange: o.onTabChange
|
|
298
|
+
}, {
|
|
299
|
+
default: U(() => [
|
|
300
|
+
(p(!0), x(fe, null, pe(o.subTabInfo, (l, S) => (p(), F(v, {
|
|
301
|
+
tab: l.describe,
|
|
302
|
+
key: S + "",
|
|
303
|
+
forceRender: !0
|
|
304
|
+
}, {
|
|
305
|
+
default: U(() => [
|
|
306
|
+
l.relationType == 1 ? (p(), x("div", {
|
|
307
|
+
key: 0,
|
|
308
|
+
style: de({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": o.subFormHeight + "px" })
|
|
309
|
+
}, [
|
|
310
|
+
w(m, {
|
|
311
|
+
table: l.key,
|
|
312
|
+
"form-template": r.formTemplate,
|
|
313
|
+
"main-id": o.getSubTableForeignKeyValue(l.foreignKey),
|
|
314
|
+
properties: l.properties
|
|
315
|
+
}, null, 8, ["table", "form-template", "main-id", "properties"])
|
|
316
|
+
], 4)) : (p(), x("div", Ve, [
|
|
317
|
+
o.showStatus[l.key] ? (p(), F(g, {
|
|
318
|
+
key: 0,
|
|
319
|
+
ref_for: !0,
|
|
320
|
+
ref: o.refMap[l.key],
|
|
321
|
+
"keep-source": "",
|
|
322
|
+
"row-number": o.rowNumber,
|
|
323
|
+
"row-selection": "",
|
|
324
|
+
height: o.subTableHeight,
|
|
325
|
+
disabled: !0,
|
|
326
|
+
columns: l.columns,
|
|
327
|
+
dataSource: o.subDataSource[l.key],
|
|
328
|
+
authPre: o.getSubTableAuthPre(l.key)
|
|
329
|
+
}, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (p(), F(P, {
|
|
330
|
+
key: 1,
|
|
331
|
+
spinning: !0
|
|
332
|
+
}))
|
|
333
|
+
]))
|
|
334
|
+
]),
|
|
335
|
+
_: 2
|
|
336
|
+
}, 1032, ["tab"]))), 128))
|
|
337
|
+
]),
|
|
338
|
+
_: 1
|
|
339
|
+
}, 8, ["onChange"])) : I("", !0),
|
|
340
|
+
w(y, {
|
|
341
|
+
loading: o.loading,
|
|
342
|
+
absolute: !1
|
|
343
|
+
}, null, 8, ["loading"]),
|
|
344
|
+
he(i.$slots, "bottom")
|
|
345
|
+
], 8, Ee);
|
|
346
|
+
}
|
|
347
|
+
const Ft = /* @__PURE__ */ ve(Oe, [["render", je]]);
|
|
348
|
+
export {
|
|
349
|
+
Ft as default
|
|
350
|
+
};
|
|
@@ -5,7 +5,7 @@ import "/@/components/Form/index";
|
|
|
5
5
|
import "/@/utils/http/axios";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "/@/utils";
|
|
8
|
-
import { u as U } from "./useExtendComponent-
|
|
8
|
+
import { u as U } from "./useExtendComponent-ad499dff.mjs";
|
|
9
9
|
import "/@/components/Loading";
|
|
10
10
|
import "/@/components/jeecg/JVxeTable/types";
|
|
11
11
|
import "/@/utils/auth";
|
|
@@ -18,13 +18,14 @@ import "/@/utils/common/compUtils";
|
|
|
18
18
|
import "/@/store/modules/user";
|
|
19
19
|
import "/@/hooks/web/useAppInject";
|
|
20
20
|
import "/@/utils/is";
|
|
21
|
+
import "./dayjs.min-eea532a3.mjs";
|
|
21
22
|
import "/@/store/modules/permission";
|
|
22
|
-
import "./OnlineForm.
|
|
23
|
-
import b from "./OnlineAutoModal-
|
|
24
|
-
import { u as B, a as I } from "./useListButton-
|
|
23
|
+
import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
|
|
24
|
+
import b from "./OnlineAutoModal-68909692.mjs";
|
|
25
|
+
import { u as B, a as I } from "./useListButton-308458cd.mjs";
|
|
25
26
|
import { useRouter as M } from "vue-router";
|
|
26
27
|
import { u as S } from "./useFormUrl-2ee1a82d.mjs";
|
|
27
|
-
import { _ as D } from "./index-
|
|
28
|
+
import { _ as D } from "./index-94b6319e.mjs";
|
|
28
29
|
import "/@/components/Form/src/componentMap";
|
|
29
30
|
import "/@/utils/propTypes";
|
|
30
31
|
import "./constant-fa63bd66.mjs";
|
|
@@ -36,14 +37,14 @@ import "/@/components/Table";
|
|
|
36
37
|
import "/@/hooks/system/useListPage";
|
|
37
38
|
import "/@/components/Form/src/utils/Area";
|
|
38
39
|
import "/@/components/Preview/index";
|
|
39
|
-
import "./LinkTableListPiece-
|
|
40
|
+
import "./LinkTableListPiece-47f4286c.mjs";
|
|
40
41
|
import "/@/api/common/api";
|
|
41
42
|
import "/@/assets/images/placeholderImage.png";
|
|
42
|
-
import "./OnlineSelectCascade-
|
|
43
|
-
import "./JModalTip-
|
|
43
|
+
import "./OnlineSelectCascade-180e8c9a.mjs";
|
|
44
|
+
import "./JModalTip-5401f43d.mjs";
|
|
44
45
|
import "@vueuse/core";
|
|
45
|
-
import "./OnlineForm-
|
|
46
|
-
import "./useCustomHook-
|
|
46
|
+
import "./OnlineForm-20604e4f.mjs";
|
|
47
|
+
import "./useCustomHook-3a17a690.mjs";
|
|
47
48
|
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
48
49
|
import "/@/router";
|
|
49
50
|
import "/@/hooks/core/onMountedOrActivated";
|
|
@@ -51,6 +52,7 @@ import "/@/store/modules/multipleTab";
|
|
|
51
52
|
import "./cgformState-d9f8ec42.mjs";
|
|
52
53
|
import "pinia";
|
|
53
54
|
import "/@/store";
|
|
55
|
+
import "/@/router/menus";
|
|
54
56
|
import "/@/hooks/system/useMethods";
|
|
55
57
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
56
58
|
const N = /* @__PURE__ */ x({
|
|
@@ -109,7 +111,7 @@ const N = /* @__PURE__ */ x({
|
|
|
109
111
|
]));
|
|
110
112
|
}
|
|
111
113
|
});
|
|
112
|
-
const
|
|
114
|
+
const Lo = /* @__PURE__ */ D(N, [["__scopeId", "data-v-4a0277d5"]]);
|
|
113
115
|
export {
|
|
114
|
-
|
|
116
|
+
Lo as default
|
|
115
117
|
};
|
|
@@ -5,7 +5,7 @@ import "/@/components/Form/index";
|
|
|
5
5
|
import "/@/utils/http/axios";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "/@/utils";
|
|
8
|
-
import { u as M } from "./useExtendComponent-
|
|
8
|
+
import { u as M } from "./useExtendComponent-ad499dff.mjs";
|
|
9
9
|
import "/@/components/Loading";
|
|
10
10
|
import "/@/components/jeecg/JVxeTable/types";
|
|
11
11
|
import "/@/utils/auth";
|
|
@@ -18,13 +18,14 @@ import "/@/utils/common/compUtils";
|
|
|
18
18
|
import "/@/store/modules/user";
|
|
19
19
|
import "/@/hooks/web/useAppInject";
|
|
20
20
|
import "/@/utils/is";
|
|
21
|
+
import "./dayjs.min-eea532a3.mjs";
|
|
21
22
|
import "/@/store/modules/permission";
|
|
22
|
-
import "./OnlineForm.
|
|
23
|
+
import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
|
|
23
24
|
import { useRoute as O } from "vue-router";
|
|
24
|
-
import R from "./OnlineDetailModal-
|
|
25
|
-
import { u as S, a as U } from "./useListButton-
|
|
25
|
+
import R from "./OnlineDetailModal-ac078a9a.mjs";
|
|
26
|
+
import { u as S, a as U } from "./useListButton-308458cd.mjs";
|
|
26
27
|
import { u as B } from "./useFormUrl-2ee1a82d.mjs";
|
|
27
|
-
import { _ as F } from "./index-
|
|
28
|
+
import { _ as F } from "./index-94b6319e.mjs";
|
|
28
29
|
import "/@/components/Form/src/componentMap";
|
|
29
30
|
import "/@/utils/propTypes";
|
|
30
31
|
import "./constant-fa63bd66.mjs";
|
|
@@ -36,40 +37,42 @@ import "/@/components/Table";
|
|
|
36
37
|
import "/@/hooks/system/useListPage";
|
|
37
38
|
import "/@/components/Form/src/utils/Area";
|
|
38
39
|
import "/@/components/Preview/index";
|
|
39
|
-
import "./LinkTableListPiece-
|
|
40
|
+
import "./LinkTableListPiece-47f4286c.mjs";
|
|
40
41
|
import "/@/api/common/api";
|
|
41
42
|
import "/@/assets/images/placeholderImage.png";
|
|
42
|
-
import "./OnlineSelectCascade-
|
|
43
|
-
import "./JModalTip-
|
|
43
|
+
import "./OnlineSelectCascade-180e8c9a.mjs";
|
|
44
|
+
import "./JModalTip-5401f43d.mjs";
|
|
44
45
|
import "@vueuse/core";
|
|
45
|
-
import "./OnlineFormDetail-
|
|
46
|
-
import "./DetailForm-
|
|
46
|
+
import "./OnlineFormDetail-719118b6.mjs";
|
|
47
|
+
import "./DetailForm-a2bf8c33.mjs";
|
|
47
48
|
import "/@/utils/dict";
|
|
48
49
|
import "/@/utils/dict/index";
|
|
49
50
|
import "/@/components/Markdown";
|
|
50
|
-
import "./OnlineSubFormDetail-
|
|
51
|
+
import "./OnlineSubFormDetail-4d64e7be.mjs";
|
|
52
|
+
import "/@/utils/uuid";
|
|
51
53
|
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
52
54
|
import "/@/router";
|
|
53
|
-
import "./useCustomHook-
|
|
55
|
+
import "./useCustomHook-3a17a690.mjs";
|
|
54
56
|
import "/@/hooks/core/onMountedOrActivated";
|
|
55
57
|
import "/@/store/modules/multipleTab";
|
|
56
58
|
import "./cgformState-d9f8ec42.mjs";
|
|
57
59
|
import "pinia";
|
|
58
60
|
import "/@/store";
|
|
61
|
+
import "/@/router/menus";
|
|
59
62
|
import "/@/hooks/system/useMethods";
|
|
60
63
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
61
64
|
const N = /* @__PURE__ */ C({
|
|
62
65
|
__name: "OnlineFormUrlDetail",
|
|
63
66
|
setup(T) {
|
|
64
|
-
const i = O(), { ID: e, onlineTableContext: m, onlineExtConfigJson: _ } = S(), { createMessage: g } = y(),
|
|
67
|
+
const i = O(), { ID: e, onlineTableContext: m, onlineExtConfigJson: _ } = S(), { createMessage: g } = y(), p = r(null), n = r(400), a = r(!0), { token: s } = B();
|
|
65
68
|
if (!t(s))
|
|
66
69
|
throw new Error("token不存在~");
|
|
67
70
|
if (!e.value || !i.params.dataId)
|
|
68
71
|
throw g.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
|
|
69
72
|
D(
|
|
70
|
-
() =>
|
|
73
|
+
() => p.value,
|
|
71
74
|
(o) => {
|
|
72
|
-
|
|
75
|
+
n.value = o.offsetHeight;
|
|
73
76
|
}
|
|
74
77
|
), M(m);
|
|
75
78
|
const { registerDetailModal: h, openDetailModal: v } = U(m, _), w = (o) => document.querySelector(`.online-detail-${e.value}`);
|
|
@@ -91,7 +94,7 @@ const N = /* @__PURE__ */ C({
|
|
|
91
94
|
x("div", {
|
|
92
95
|
class: u(["wrap", `online-detail-${t(e)}`]),
|
|
93
96
|
ref_key: "wrapRef",
|
|
94
|
-
ref:
|
|
97
|
+
ref: p
|
|
95
98
|
}, [
|
|
96
99
|
f("", !0),
|
|
97
100
|
t(s) ? (l(), b(R, {
|
|
@@ -101,7 +104,7 @@ const N = /* @__PURE__ */ C({
|
|
|
101
104
|
onRegister: t(h),
|
|
102
105
|
onSuccess: o.success,
|
|
103
106
|
getContainer: w,
|
|
104
|
-
height:
|
|
107
|
+
height: n.value
|
|
105
108
|
}, null, 8, ["id", "onRegister", "onSuccess", "height"])) : f("", !0)
|
|
106
109
|
], 2)
|
|
107
110
|
]),
|
|
@@ -113,7 +116,7 @@ const N = /* @__PURE__ */ C({
|
|
|
113
116
|
]));
|
|
114
117
|
}
|
|
115
118
|
});
|
|
116
|
-
const
|
|
119
|
+
const Kt = /* @__PURE__ */ F(N, [["__scopeId", "data-v-cea77271"]]);
|
|
117
120
|
export {
|
|
118
|
-
|
|
121
|
+
Kt as default
|
|
119
122
|
};
|
|
@@ -5,7 +5,7 @@ import "/@/components/Form/index";
|
|
|
5
5
|
import "/@/utils/http/axios";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "/@/utils";
|
|
8
|
-
import { u as B } from "./useExtendComponent-
|
|
8
|
+
import { u as B } from "./useExtendComponent-ad499dff.mjs";
|
|
9
9
|
import "/@/components/Loading";
|
|
10
10
|
import "/@/components/jeecg/JVxeTable/types";
|
|
11
11
|
import "/@/utils/auth";
|
|
@@ -18,13 +18,14 @@ import "/@/utils/common/compUtils";
|
|
|
18
18
|
import "/@/store/modules/user";
|
|
19
19
|
import "/@/hooks/web/useAppInject";
|
|
20
20
|
import "/@/utils/is";
|
|
21
|
+
import "./dayjs.min-eea532a3.mjs";
|
|
21
22
|
import "/@/store/modules/permission";
|
|
22
|
-
import "./OnlineForm.
|
|
23
|
+
import "./OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs";
|
|
23
24
|
import { useRoute as M, useRouter as S } from "vue-router";
|
|
24
|
-
import T from "./OnlineAutoModal-
|
|
25
|
-
import { u as D, a as N } from "./useListButton-
|
|
25
|
+
import T from "./OnlineAutoModal-68909692.mjs";
|
|
26
|
+
import { u as D, a as N } from "./useListButton-308458cd.mjs";
|
|
26
27
|
import { u as V } from "./useFormUrl-2ee1a82d.mjs";
|
|
27
|
-
import { _ as $ } from "./index-
|
|
28
|
+
import { _ as $ } from "./index-94b6319e.mjs";
|
|
28
29
|
import "/@/components/Form/src/componentMap";
|
|
29
30
|
import "/@/utils/propTypes";
|
|
30
31
|
import "./constant-fa63bd66.mjs";
|
|
@@ -36,14 +37,14 @@ import "/@/components/Table";
|
|
|
36
37
|
import "/@/hooks/system/useListPage";
|
|
37
38
|
import "/@/components/Form/src/utils/Area";
|
|
38
39
|
import "/@/components/Preview/index";
|
|
39
|
-
import "./LinkTableListPiece-
|
|
40
|
+
import "./LinkTableListPiece-47f4286c.mjs";
|
|
40
41
|
import "/@/api/common/api";
|
|
41
42
|
import "/@/assets/images/placeholderImage.png";
|
|
42
|
-
import "./OnlineSelectCascade-
|
|
43
|
-
import "./JModalTip-
|
|
43
|
+
import "./OnlineSelectCascade-180e8c9a.mjs";
|
|
44
|
+
import "./JModalTip-5401f43d.mjs";
|
|
44
45
|
import "@vueuse/core";
|
|
45
|
-
import "./OnlineForm-
|
|
46
|
-
import "./useCustomHook-
|
|
46
|
+
import "./OnlineForm-20604e4f.mjs";
|
|
47
|
+
import "./useCustomHook-3a17a690.mjs";
|
|
47
48
|
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
48
49
|
import "/@/router";
|
|
49
50
|
import "/@/hooks/core/onMountedOrActivated";
|
|
@@ -51,6 +52,7 @@ import "/@/store/modules/multipleTab";
|
|
|
51
52
|
import "./cgformState-d9f8ec42.mjs";
|
|
52
53
|
import "pinia";
|
|
53
54
|
import "/@/store";
|
|
55
|
+
import "/@/router/menus";
|
|
54
56
|
import "/@/hooks/system/useMethods";
|
|
55
57
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
56
58
|
const H = /* @__PURE__ */ x({
|
|
@@ -107,7 +109,7 @@ const H = /* @__PURE__ */ x({
|
|
|
107
109
|
]));
|
|
108
110
|
}
|
|
109
111
|
});
|
|
110
|
-
const
|
|
112
|
+
const Go = /* @__PURE__ */ $(H, [["__scopeId", "data-v-0b4f6a76"]]);
|
|
111
113
|
export {
|
|
112
|
-
|
|
114
|
+
Go as default
|
|
113
115
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, resolveComponent as p, openBlock as m, createElementBlock as _, normalizeClass as d, createElementVNode as t, createVNode as s, withCtx as r, createTextVNode as l } from "vue";
|
|
2
2
|
import { useRouter as u } from "vue-router";
|
|
3
|
-
import { _ as v } from "./index-
|
|
3
|
+
import { _ as v } from "./index-94b6319e.mjs";
|
|
4
4
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
5
5
|
import "/@/hooks/web/useMessage";
|
|
6
6
|
const f = { class: "btnArea" }, x = /* @__PURE__ */ c({
|