@jeecg/online 3.7.1-RC → 3.7.4-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-84cbd344.mjs +254 -0
- package/AiModal-26903538.mjs +84 -0
- package/AppForgetPassword-52443f23.mjs +310 -0
- package/AppLogin-ecf798fa.mjs +287 -0
- package/AppLoginHeader-4432c584.mjs +27 -0
- package/AppNameEmail-3303a037.mjs +180 -0
- package/AppRegister-79a62c59.mjs +303 -0
- package/AppTenant-f0bef7ca.mjs +373 -0
- package/AppThirdForm-fd8b4604.mjs +189 -0
- package/AuthButtonConfig-d5bffca0.mjs +156 -0
- package/AuthButtonTree-b0bd6c40.mjs +165 -0
- package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
- package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
- package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
- package/AuthFieldTree-5cc0da05.mjs +232 -0
- package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
- package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1131274c.mjs +260 -0
- package/CgformCopyList-5fba0810.mjs +252 -0
- package/{CgformModal-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
- package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
- package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
- package/CodeFileListModal-a924902a.mjs +159 -0
- package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
- package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
- package/CustomButtonList-c453b654.mjs +274 -0
- package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
- package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
- package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
- package/DropMenuItem-1e49abea.mjs +44 -0
- package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
- package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
- package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
- package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
- package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
- package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
- package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
- package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
- package/JModalTip-a927f85d.mjs +49 -0
- package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
- package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
- package/LeftRole-b0e0b496.mjs +86 -0
- package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
- package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
- package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
- package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
- package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
- package/OnlCgformErpList-5c5acdaa.mjs +488 -0
- package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
- package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
- package/OnlCgformInnerTableList-b283a525.mjs +474 -0
- package/OnlCgformTabList-91e3dd78.mjs +424 -0
- package/OnlineAutoList-84475f1b.mjs +513 -0
- package/OnlineAutoModal-95f46901.mjs +260 -0
- package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
- package/OnlineCustomModal-c8b1e780.mjs +232 -0
- package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
- package/OnlineForm-58282699.mjs +1012 -0
- package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
- package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
- package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
- package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
- package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
- package/OnlineQueryForm-9248341f.mjs +484 -0
- package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
- package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
- package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
- package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
- package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
- package/OnlineTabForm-1940e88b.mjs +814 -0
- package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
- package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
- package/PhoneLoginForm-86437a9d.mjs +214 -0
- package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
- package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
- package/SetSwitchOptions-f914bc17.mjs +62 -0
- package/ShareAddView-657f0f8b.mjs +86 -0
- package/ShareEditView-1b945fd3.mjs +92 -0
- package/ShareView-222ed3d8.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
- package/SingleView-23b0cb4e.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
- package/SuperQuery-46032e66.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
- package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
- package/button.data-fe45d43b.mjs +12 -0
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
- package/index-19eaef11.mjs +11 -0
- package/index-1a2e8832.mjs +135 -0
- package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-9e1e1e53.mjs +57 -0
- package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -262
- package/index-c5a79b0b.mjs +219 -0
- package/index-cce225be.mjs +110 -0
- package/index-f2c2d1cf.mjs +74 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-f3cb9156.mjs +378 -0
- package/useExtendComponent-bb98e568.mjs +4460 -0
- package/useListButton-98908683.mjs +719 -0
- package/{useSchemas-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
- package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-6de335e3.mjs +0 -84
- package/AuthButtonConfig-89763932.mjs +0 -154
- package/AuthButtonTree-2d87d0b3.mjs +0 -157
- package/AuthFieldTree-e326fc38.mjs +0 -232
- package/CgformCopyList-365b3e8f.mjs +0 -251
- package/CodeFileListModal-24601898.mjs +0 -159
- package/CodeGeneratorModal-f09fe903.mjs +0 -282
- package/CustomButtonList-f07bc695.mjs +0 -397
- package/JModalTip-b055ab60.mjs +0 -49
- package/LeftRole-2ed8a2bf.mjs +0 -86
- package/OnlCgformErpList-58acdfa0.mjs +0 -470
- package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
- package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
- package/OnlCgformTabList-019ad753.mjs +0 -408
- package/OnlineAutoList-48589d09.mjs +0 -493
- package/OnlineAutoModal-c2928847.mjs +0 -239
- package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
- package/OnlineCustomModal-9e17b6ce.mjs +0 -232
- package/OnlineForm-9f1153ba.mjs +0 -985
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
- package/OnlineQueryForm-eedb9a60.mjs +0 -466
- package/OnlineTabForm-27655c83.mjs +0 -817
- package/SetSwitchOptions-b2af757f.mjs +0 -62
- package/SuperQuery-a8592995.mjs +0 -967
- package/index-1d1a6e56.mjs +0 -57
- package/useCgformList-f41d4dc1.mjs +0 -426
- package/useExtendComponent-dcae5c78.mjs +0 -4399
- package/useListButton-bfac4ecf.mjs +0 -697
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
var C = (e, s, i) => new Promise((r, u) => {
|
|
2
|
+
var t = (n) => {
|
|
3
|
+
try {
|
|
4
|
+
o(i.next(n));
|
|
5
|
+
} catch (a) {
|
|
6
|
+
u(a);
|
|
7
|
+
}
|
|
8
|
+
}, m = (n) => {
|
|
9
|
+
try {
|
|
10
|
+
o(i.throw(n));
|
|
11
|
+
} catch (a) {
|
|
12
|
+
u(a);
|
|
13
|
+
}
|
|
14
|
+
}, o = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(t, m);
|
|
15
|
+
o((i = i.apply(e, s)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as v, defineComponent as k, computed as I, unref as R, watch as A, resolveComponent as c, openBlock as d, createElementBlock as H, createVNode as g, createBlock as _, mergeProps as b, withCtx as y, createCommentVNode as x, normalizeClass as S } from "vue";
|
|
18
|
+
import { Layout as D } from "ant-design-vue";
|
|
19
|
+
import M from "./index-cce225be.mjs";
|
|
20
|
+
import w from "./index-f2c2d1cf.mjs";
|
|
21
|
+
import { _ as U } from "./ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs";
|
|
22
|
+
import { useHeaderSetting as N } from "/@/hooks/setting/useHeaderSetting";
|
|
23
|
+
import { useMenuSetting as B } from "/@/hooks/setting/useMenuSetting";
|
|
24
|
+
import { useDesign as $ } from "/@/hooks/web/useDesign";
|
|
25
|
+
import { useLockPage as O } from "/@/hooks/web/useLockPage";
|
|
26
|
+
import { useAppInject as P } from "/@/hooks/web/useAppInject";
|
|
27
|
+
import { router as E } from "/@/router";
|
|
28
|
+
import { a as q, b as F, c as T, S as h } from "./index-5e89258d.mjs";
|
|
29
|
+
import { u as V } from "./shareStore-7de6c7a6.mjs";
|
|
30
|
+
import { useUserStore as j } from "/@/store/modules/user";
|
|
31
|
+
import { defHttp as L } from "/@/utils/http/axios";
|
|
32
|
+
import { p as z } from "./utils-9fce7606.mjs";
|
|
33
|
+
import { _ as G } from "./index-9e1e1e53.mjs";
|
|
34
|
+
import "/@/hooks/setting";
|
|
35
|
+
import "/@/utils/propTypes";
|
|
36
|
+
import "/@/components/Application";
|
|
37
|
+
import "/@/layouts/default/header/components";
|
|
38
|
+
import "/@/utils/factory/createAsyncComponent";
|
|
39
|
+
import "/@/views/sys/login/LoginSelect.vue";
|
|
40
|
+
import "/@/hooks/web/useI18n";
|
|
41
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
42
|
+
import "/@/hooks/web/useMessage";
|
|
43
|
+
import "vue-router";
|
|
44
|
+
import "/@/hooks/setting/useRootSetting";
|
|
45
|
+
import "/@/hooks/setting/useTransitionSetting";
|
|
46
|
+
import "/@/hooks/component/usePageContext";
|
|
47
|
+
import "/@/hooks/event/useWindowSizeFn";
|
|
48
|
+
import "/@/enums/pageEnum";
|
|
49
|
+
import "pinia";
|
|
50
|
+
import "/@/utils/auth";
|
|
51
|
+
import "/@/enums/cacheEnum";
|
|
52
|
+
import "/@/api/sys/user";
|
|
53
|
+
import "./cgform.data-0ca62d09.mjs";
|
|
54
|
+
import "/@/utils/dict";
|
|
55
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
56
|
+
import "/@/utils/uuid";
|
|
57
|
+
const J = (e) => L.get({
|
|
58
|
+
url: "/online/cgform/head/queryById",
|
|
59
|
+
params: { id: e }
|
|
60
|
+
}, { isTransformResponse: !1 }), K = (e, s) => L.get({
|
|
61
|
+
url: "/online/cgform/api/form/{formId}/{recordId}".replace("{formId}", e).replace("{recordId}", s),
|
|
62
|
+
params: {}
|
|
63
|
+
}, { isTransformResponse: !1 });
|
|
64
|
+
function Q() {
|
|
65
|
+
const e = j(), s = V(), i = v(!0), r = v("");
|
|
66
|
+
function u() {
|
|
67
|
+
return C(this, null, function* () {
|
|
68
|
+
try {
|
|
69
|
+
yield s.checkUrlToken();
|
|
70
|
+
const t = E.currentRoute.value;
|
|
71
|
+
if (!e.getToken) {
|
|
72
|
+
E.push({
|
|
73
|
+
name: q,
|
|
74
|
+
query: {
|
|
75
|
+
redirect: encodeURIComponent(t.path)
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const { id: m } = t.params;
|
|
81
|
+
if (!m) {
|
|
82
|
+
r.value = "参数错误";
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
let o = yield J(m);
|
|
86
|
+
if (!o.success) {
|
|
87
|
+
r.value = o.message;
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const n = o.result, a = z(n);
|
|
91
|
+
if (!(a != null && a.enableExternalLink)) {
|
|
92
|
+
r.value = "当前表单未开启外部链接";
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
let p = a.externalLinkActions.split(",");
|
|
96
|
+
if (t.name === F) {
|
|
97
|
+
if (!p.includes("add")) {
|
|
98
|
+
r.value = "当前表单不支持外部新增";
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
} else if (t.name === T) {
|
|
102
|
+
if (!p.includes("edit")) {
|
|
103
|
+
r.value = "当前表单不支持外部编辑";
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
} else if (t.name === h) {
|
|
107
|
+
if (!p.includes("detail")) {
|
|
108
|
+
r.value = "当前表单不支持外部详情";
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
} else {
|
|
112
|
+
r.value = "未知的页面";
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (n.tableType == 3) {
|
|
116
|
+
r.value = "不支持附表外部链接";
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (s.setCgformRecord(n), t.name === T || t.name === h) {
|
|
120
|
+
const { dataId: l } = t.params;
|
|
121
|
+
if (!l) {
|
|
122
|
+
r.value = "参数错误";
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (o = yield K(m, l), !o.success) {
|
|
126
|
+
r.value = o.message;
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const f = o.result;
|
|
130
|
+
if ((f == null ? void 0 : f.id) !== l) {
|
|
131
|
+
r.value = "数据不存在或已删除";
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
s.setDataRecord(f);
|
|
135
|
+
}
|
|
136
|
+
} catch (t) {
|
|
137
|
+
r.value = (t == null ? void 0 : t.message) || t;
|
|
138
|
+
} finally {
|
|
139
|
+
i.value = !1;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
pageLoading: i,
|
|
145
|
+
pageErrorTip: r,
|
|
146
|
+
initCgformShare: u
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
const W = k({
|
|
150
|
+
name: "DefaultLayout",
|
|
151
|
+
components: {
|
|
152
|
+
LayoutHeader: M,
|
|
153
|
+
LayoutContent: w,
|
|
154
|
+
ErrorTip: U,
|
|
155
|
+
Layout: D
|
|
156
|
+
},
|
|
157
|
+
setup() {
|
|
158
|
+
const { prefixCls: e } = $("default-layout"), { initCgformShare: s, pageLoading: i, pageErrorTip: r } = Q(), { getIsMobile: u } = P(), { getShowFullHeaderRef: t } = N(), { getShowSidebar: m, getIsMixSidebar: o, getShowMenu: n } = B(), a = O(), p = I(() => {
|
|
159
|
+
let l = ["ant-layout"];
|
|
160
|
+
return (R(o) || R(n)) && l.push("ant-layout-has-sider"), l;
|
|
161
|
+
});
|
|
162
|
+
return A(E.currentRoute, () => {
|
|
163
|
+
s();
|
|
164
|
+
}, { immediate: !0 }), {
|
|
165
|
+
pageLoading: i,
|
|
166
|
+
pageErrorTip: r,
|
|
167
|
+
getShowFullHeaderRef: t,
|
|
168
|
+
getShowSidebar: m,
|
|
169
|
+
prefixCls: e,
|
|
170
|
+
getIsMobile: u,
|
|
171
|
+
getIsMixSidebar: o,
|
|
172
|
+
layoutClass: p,
|
|
173
|
+
lockEvents: a
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
const X = {
|
|
178
|
+
key: 0,
|
|
179
|
+
style: { "text-align": "center", "padding-top": "120px" }
|
|
180
|
+
};
|
|
181
|
+
function Y(e, s, i, r, u, t) {
|
|
182
|
+
const m = c("a-spin"), o = c("ErrorTip"), n = c("LayoutHeader"), a = c("LayoutContent"), p = c("Layout");
|
|
183
|
+
return e.pageLoading ? (d(), H("div", X, [
|
|
184
|
+
g(m, { tip: "加载中…" })
|
|
185
|
+
])) : e.pageErrorTip ? (d(), _(o, {
|
|
186
|
+
key: 1,
|
|
187
|
+
subTitle: e.pageErrorTip
|
|
188
|
+
}, null, 8, ["subTitle"])) : (d(), _(p, b({
|
|
189
|
+
key: 2,
|
|
190
|
+
class: e.prefixCls
|
|
191
|
+
}, e.lockEvents), {
|
|
192
|
+
default: y(() => [
|
|
193
|
+
e.getIsMobile ? x("", !0) : (d(), _(n, {
|
|
194
|
+
key: 0,
|
|
195
|
+
fixed: ""
|
|
196
|
+
})),
|
|
197
|
+
g(p, {
|
|
198
|
+
class: S([e.layoutClass])
|
|
199
|
+
}, {
|
|
200
|
+
default: y(() => [
|
|
201
|
+
g(p, {
|
|
202
|
+
class: S(`${e.prefixCls}-main`)
|
|
203
|
+
}, {
|
|
204
|
+
default: y(() => [
|
|
205
|
+
g(a)
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}, 8, ["class"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["class"])
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 16, ["class"]));
|
|
215
|
+
}
|
|
216
|
+
const Pe = /* @__PURE__ */ G(W, [["render", Y]]);
|
|
217
|
+
export {
|
|
218
|
+
Pe as default
|
|
219
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { defineComponent as $, computed as _, unref as n, ref as H, onMounted as w, toRaw as D, resolveComponent as i, openBlock as y, createElementBlock as C, Fragment as I, createVNode as l, normalizeClass as r, withCtx as v, createElementVNode as u, normalizeStyle as x, toDisplayString as S, createCommentVNode as M } from "vue";
|
|
2
|
+
import { useGlobSetting as b } from "/@/hooks/setting";
|
|
3
|
+
import { propTypes as A } from "/@/utils/propTypes";
|
|
4
|
+
import { Layout as T } from "ant-design-vue";
|
|
5
|
+
import { AppLogo as F } from "/@/components/Application";
|
|
6
|
+
import { useHeaderSetting as U } from "/@/hooks/setting/useHeaderSetting";
|
|
7
|
+
import { useMenuSetting as k } from "/@/hooks/setting/useMenuSetting";
|
|
8
|
+
import { LayoutBreadcrumb as B, FullScreen as N } from "/@/layouts/default/header/components";
|
|
9
|
+
import { createAsyncComponent as R } from "/@/utils/factory/createAsyncComponent";
|
|
10
|
+
import { useAppInject as V } from "/@/hooks/web/useAppInject";
|
|
11
|
+
import { useDesign as W } from "/@/hooks/web/useDesign";
|
|
12
|
+
import z from "/@/views/sys/login/LoginSelect.vue";
|
|
13
|
+
import { useUserStore as E } from "/@/store/modules/user";
|
|
14
|
+
import { useI18n as j } from "/@/hooks/web/useI18n";
|
|
15
|
+
import { _ as G } from "./index-9e1e1e53.mjs";
|
|
16
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
17
|
+
import "/@/hooks/web/useMessage";
|
|
18
|
+
import "vue-router";
|
|
19
|
+
const q = R(() => import("./index-1a2e8832.mjs"), {
|
|
20
|
+
loading: !0
|
|
21
|
+
}), { t: J } = j(), K = $({
|
|
22
|
+
name: "LayoutHeader",
|
|
23
|
+
components: {
|
|
24
|
+
Header: T.Header,
|
|
25
|
+
AppLogo: F,
|
|
26
|
+
LayoutBreadcrumb: B,
|
|
27
|
+
UserDropDown: q,
|
|
28
|
+
FullScreen: N,
|
|
29
|
+
LoginSelect: z
|
|
30
|
+
},
|
|
31
|
+
props: {
|
|
32
|
+
fixed: A.bool
|
|
33
|
+
},
|
|
34
|
+
setup(e) {
|
|
35
|
+
const { prefixCls: o } = W("layout-header"), f = E(), {
|
|
36
|
+
getIsMixMode: g,
|
|
37
|
+
getMenuWidth: a
|
|
38
|
+
} = k(), { title: h } = b(), {
|
|
39
|
+
getHeaderTheme: m
|
|
40
|
+
} = U(), { getIsMobile: s } = V(), c = _(() => {
|
|
41
|
+
const t = n(m);
|
|
42
|
+
return [
|
|
43
|
+
o,
|
|
44
|
+
{
|
|
45
|
+
[`${o}--fixed`]: e.fixed,
|
|
46
|
+
[`${o}--mobile`]: n(s),
|
|
47
|
+
[`${o}--${t}`]: t
|
|
48
|
+
}
|
|
49
|
+
];
|
|
50
|
+
}), d = _(() => !n(g) || n(s) ? {} : { width: `${n(a) < 180 ? 180 : n(a)}px` }), p = H();
|
|
51
|
+
function L() {
|
|
52
|
+
const t = D(f.getLoginInfo) || {};
|
|
53
|
+
t.isLogin && p.value.show(t);
|
|
54
|
+
}
|
|
55
|
+
return w(() => {
|
|
56
|
+
L();
|
|
57
|
+
}), {
|
|
58
|
+
t: J,
|
|
59
|
+
title: h,
|
|
60
|
+
loginSelectRef: p,
|
|
61
|
+
prefixCls: o,
|
|
62
|
+
getHeaderClass: c,
|
|
63
|
+
getHeaderTheme: m,
|
|
64
|
+
getIsMobile: s,
|
|
65
|
+
getLogoWidth: d
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const O = {
|
|
70
|
+
key: 0,
|
|
71
|
+
style: { height: "60px" }
|
|
72
|
+
};
|
|
73
|
+
function P(e, o, f, g, a, h) {
|
|
74
|
+
const m = i("AppLogo"), s = i("FullScreen"), c = i("UserDropDown"), d = i("Header"), p = i("LoginSelect");
|
|
75
|
+
return y(), C(I, null, [
|
|
76
|
+
l(d, {
|
|
77
|
+
class: r(e.getHeaderClass)
|
|
78
|
+
}, {
|
|
79
|
+
default: v(() => [
|
|
80
|
+
u("div", {
|
|
81
|
+
class: r(`${e.prefixCls}-left`)
|
|
82
|
+
}, [
|
|
83
|
+
l(m, {
|
|
84
|
+
class: r(`${e.prefixCls}-logo`),
|
|
85
|
+
theme: e.getHeaderTheme,
|
|
86
|
+
style: x(e.getLogoWidth)
|
|
87
|
+
}, null, 8, ["class", "theme", "style"]),
|
|
88
|
+
u("span", {
|
|
89
|
+
class: r([e.prefixCls, `${e.prefixCls}--${e.getHeaderTheme}`, "headerIntroductionClass"])
|
|
90
|
+
}, S(e.t("layout.header.welcomeIn")) + " " + S(e.title), 3)
|
|
91
|
+
], 2),
|
|
92
|
+
u("div", {
|
|
93
|
+
class: r(`${e.prefixCls}-action`)
|
|
94
|
+
}, [
|
|
95
|
+
l(s, {
|
|
96
|
+
class: r(`${e.prefixCls}-action__item fullscreen-item`)
|
|
97
|
+
}, null, 8, ["class"]),
|
|
98
|
+
l(c, { theme: e.getHeaderTheme }, null, 8, ["theme"])
|
|
99
|
+
], 2)
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["class"]),
|
|
103
|
+
l(p, { ref: "loginSelectRef" }, null, 512),
|
|
104
|
+
e.fixed ? (y(), C("div", O)) : M("", !0)
|
|
105
|
+
], 64);
|
|
106
|
+
}
|
|
107
|
+
const fe = /* @__PURE__ */ G(K, [["render", P]]);
|
|
108
|
+
export {
|
|
109
|
+
fe as default
|
|
110
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var u = (e, o, t) => new Promise((i, r) => {
|
|
2
|
+
var m = (n) => {
|
|
3
|
+
try {
|
|
4
|
+
s(t.next(n));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
r(c);
|
|
7
|
+
}
|
|
8
|
+
}, g = (n) => {
|
|
9
|
+
try {
|
|
10
|
+
s(t.throw(n));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
r(c);
|
|
13
|
+
}
|
|
14
|
+
}, s = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(m, g);
|
|
15
|
+
s((t = t.apply(e, o)).next());
|
|
16
|
+
});
|
|
17
|
+
import { ref as a, computed as d, unref as p, defineComponent as f, resolveComponent as l, resolveDirective as _, withDirectives as h, openBlock as w, createElementBlock as C, normalizeClass as H, createVNode as v } from "vue";
|
|
18
|
+
import { useDesign as y } from "/@/hooks/web/useDesign";
|
|
19
|
+
import { useRootSetting as L } from "/@/hooks/setting/useRootSetting";
|
|
20
|
+
import { useTransitionSetting as P } from "/@/hooks/setting/useTransitionSetting";
|
|
21
|
+
import { createPageContext as R } from "/@/hooks/component/usePageContext";
|
|
22
|
+
import { useWindowSizeFn as V } from "/@/hooks/event/useWindowSizeFn";
|
|
23
|
+
import { _ as x } from "./index-9e1e1e53.mjs";
|
|
24
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
25
|
+
import "/@/hooks/web/useMessage";
|
|
26
|
+
import "vue-router";
|
|
27
|
+
const $ = a(0), D = a(0);
|
|
28
|
+
function S() {
|
|
29
|
+
const e = a(window.innerHeight), o = a(window.innerHeight), t = d(() => p(e) - p($) - p(D) || 0);
|
|
30
|
+
V(
|
|
31
|
+
() => {
|
|
32
|
+
e.value = window.innerHeight;
|
|
33
|
+
},
|
|
34
|
+
100,
|
|
35
|
+
{ immediate: !0 }
|
|
36
|
+
);
|
|
37
|
+
function i(r) {
|
|
38
|
+
return u(this, null, function* () {
|
|
39
|
+
o.value = r;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
R({
|
|
43
|
+
contentHeight: t,
|
|
44
|
+
setPageHeight: i,
|
|
45
|
+
pageHeight: o
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
const k = f({
|
|
49
|
+
name: "LayoutContent",
|
|
50
|
+
components: {},
|
|
51
|
+
setup() {
|
|
52
|
+
const { prefixCls: e } = y("layout-content"), { getOpenPageLoading: o } = P(), { getLayoutContentMode: t, getPageLoading: i } = L();
|
|
53
|
+
return S(), {
|
|
54
|
+
prefixCls: e,
|
|
55
|
+
getOpenPageLoading: o,
|
|
56
|
+
getLayoutContentMode: t,
|
|
57
|
+
getPageLoading: i
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
function z(e, o, t, i, r, m) {
|
|
62
|
+
const g = l("RouterView"), s = _("loading");
|
|
63
|
+
return h((w(), C("div", {
|
|
64
|
+
class: H([e.prefixCls, e.getLayoutContentMode])
|
|
65
|
+
}, [
|
|
66
|
+
v(g)
|
|
67
|
+
], 2)), [
|
|
68
|
+
[s, e.getOpenPageLoading && e.getPageLoading]
|
|
69
|
+
]);
|
|
70
|
+
}
|
|
71
|
+
const A = /* @__PURE__ */ x(k, [["render", z]]);
|
|
72
|
+
export {
|
|
73
|
+
A as default
|
|
74
|
+
};
|
package/main.index.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var i = (t, o, e) => new Promise((f, a) => {
|
|
2
|
+
var m = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
n(e.next(r));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
a(c);
|
|
7
|
+
}
|
|
8
|
+
}, l = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
n(e.throw(r));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
a(c);
|
|
13
|
+
}
|
|
14
|
+
}, n = (r) => r.done ? f(r.value) : Promise.resolve(r.value).then(m, l);
|
|
15
|
+
n((e = e.apply(t, o)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineStore as d } from "pinia";
|
|
18
|
+
import { useUserStoreWithOut as u } from "/@/store/modules/user";
|
|
19
|
+
import { removeCacheByDynKey as h } from "/@/utils/auth";
|
|
20
|
+
import { TOKEN_KEY as g } from "/@/enums/cacheEnum";
|
|
21
|
+
import { getUserInfo as R } from "/@/api/sys/user";
|
|
22
|
+
const s = u(), S = d({
|
|
23
|
+
id: "online-cgform-share",
|
|
24
|
+
state: () => ({
|
|
25
|
+
cgformRecord: null,
|
|
26
|
+
dataRecord: null
|
|
27
|
+
}),
|
|
28
|
+
getters: {
|
|
29
|
+
getCgformRecord() {
|
|
30
|
+
return this.cgformRecord;
|
|
31
|
+
},
|
|
32
|
+
getDataRecord() {
|
|
33
|
+
return this.dataRecord;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
actions: {
|
|
37
|
+
// 检查 url 参数是否携带token
|
|
38
|
+
checkUrlToken() {
|
|
39
|
+
return i(this, null, function* () {
|
|
40
|
+
const t = new URLSearchParams(window.location.search).get("token"), o = t != null && t.length > 0;
|
|
41
|
+
if (o) {
|
|
42
|
+
s.setToken(t);
|
|
43
|
+
try {
|
|
44
|
+
const e = yield R();
|
|
45
|
+
if (e != null && e.userInfo)
|
|
46
|
+
s.setUserInfo(e.userInfo), e.sysAllDictItems && s.setAllDictItems(e.sysAllDictItems);
|
|
47
|
+
else
|
|
48
|
+
throw new Error("token无效");
|
|
49
|
+
return !0;
|
|
50
|
+
} catch (e) {
|
|
51
|
+
return s.setToken(""), h(g), !1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return o;
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
setCgformRecord(t) {
|
|
58
|
+
this.cgformRecord = t;
|
|
59
|
+
},
|
|
60
|
+
setDataRecord(t) {
|
|
61
|
+
this.dataRecord = t;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
S as u
|
|
67
|
+
};
|