@utogether/udp-core 1.0.1-beta.5 → 1.0.1-beta.7
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/dist/{403-CP2RkkAy.js → 403-BQZ5OAKL.js} +10 -10
- package/dist/{404-DwK-0wNQ.js → 404-H55ex36i.js} +4 -4
- package/dist/{500-CLbJDqnd.js → 500-bbrspTnK.js} +1 -1
- package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-BWni4UPQ.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-7WtOL6Hs.js +100 -0
- package/dist/{Company-B--cokc6.js → Company-CuebFrQ0.js} +3 -3
- package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DxPdJs6x.js} +6 -6
- package/dist/{Department-DbKdyNzK.js → Department-D2a6Juur.js} +3 -3
- package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-C_s2R9yl.js} +24 -23
- package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CexZj3HF.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js} +25 -24
- package/dist/{DictView-B8j-EWx5.js → DictView-C0GS72rG.js} +19 -18
- package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-a1tQ2CEH.js} +8 -7
- package/dist/Org-DifvzLLy.js +35 -0
- package/dist/{Preview-yot4NBW5.js → Preview-BOv5j9i6.js} +1 -1
- package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-Dli1Q0TB.js} +1 -1
- package/dist/{ReportDesign-CBihGRth.js → ReportDesign-zSWkcL_O.js} +37 -36
- package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-D5r3bvFc.js} +1 -1
- package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-DiostHrX.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js} +1 -1
- package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-CYy4cZHQ.js} +24 -24
- package/dist/{Role-Cf7DB7uS.js → Role-BFQFxfQS.js} +6 -6
- package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BIdWSLTR.js} +8 -8
- package/dist/{RolePanel-EXL_FLvM.js → RolePanel-C7ybSknr.js} +1 -1
- package/dist/{RolePanel-BBGDGK8V.js → RolePanel-KC-UgmtF.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js} +40 -34
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js} +17 -17
- package/dist/{Staff-DYu5ZEyR.js → Staff-CY0DLsTN.js} +3 -3
- package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-DA7p265h.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js → StaffInfo.vue_vue_type_script_setup_true_lang-f29A44gS.js} +5 -5
- package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-DYP-mMp9.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js} +6 -6
- package/dist/{SysUser-BHk_szpK.js → SysUser-FqS3Ctne.js} +2 -2
- package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-C_t6F99T.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js} +93 -86
- package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-ChFrMzRg.js} +14 -13
- package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-I36LAXVj.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js} +28 -25
- package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
- package/dist/{childView-BSUWnii7.js → childView-CYpuOzRx.js} +1 -1
- package/dist/{childView-CFC3gA_U.js → childView-Csnlaqfs.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js → childView.vue_vue_type_style_index_0_lang-B8EnA03l.js} +18 -17
- package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js} +10 -9
- package/dist/{code-rule-DybjhotB.js → code-rule-DHBSC5Qp.js} +14 -13
- package/dist/core.es.js +2 -2
- package/dist/{cron-task-DGdknqaF.js → cron-task-CiI1MFla.js} +8 -7
- package/dist/{frameView-BOOZRv1S.js → frameView-ZWKlbz9p.js} +1 -1
- package/dist/index-COBMRlmJ.js +5379 -0
- package/dist/{layoutView-BWeDLY9C.js → layoutView-5OsbpP0u.js} +11 -10
- package/dist/{login-BcuCHhGE.js → login-C55sa9gN.js} +26 -25
- package/dist/{lov-view-DDgzqYSW.js → lov-view-DFfaUQ5m.js} +9 -8
- package/dist/{menuInfo-B3MOxomU.js → menuInfo-CZdLtLjN.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js} +16 -15
- package/dist/{pda-app-Dy9WMHEG.js → pda-app-fLe8mrx-.js} +213 -196
- package/dist/{resource-BoCP7-dM.js → resource-ohWKO6Fh.js} +20 -20
- package/dist/{su-welcome-DXpI1MHr.js → su-welcome-_UZTfrXX.js} +84 -84
- package/dist/{sys-config-BiUWzxGU.js → sys-config-DVuBsK7p.js} +19 -18
- package/dist/udp-core.css +1 -1
- package/dist/{utogether-DXDcsKt7.js → utogether-CxobZqGL.js} +1 -1
- package/package.json +18 -18
- package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
- package/src/components/udp/grid.vue +12 -6
- package/src/components/udp/index.ts +2 -2
- package/src/components/udp/lov.vue +1 -1
- package/src/components/udp/modal-grid.vue +288 -297
- package/src/components/udp/utils.ts +4 -11
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/main.ts +18 -10
- package/src/plugins/i18n/zh.ts +348 -338
- package/src/plugins/vxe-table/index.ts +2 -2
- package/src/plugins/vxe-table/render.tsx +95 -18
- package/src/views/login/login-view.vue +1 -1
- package/src/views/system/role/AuthorityInfo.vue +19 -15
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +5 -3
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -136
- package/src/views/system/sysUser/SysUserPanel.vue +37 -37
- package/src/views/uapp/pda/pda-app.vue +41 -10
- package/src/views/udev/dict/DictView.vue +6 -1
- package/src/views/udev/dict/childView.vue +1 -6
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/su-welcome.vue +2 -2
- package/src/views/ulogin/login.vue +8 -0
- package/src/views/urpt/design/DesignPanel.vue +10 -33
- package/src/views/urpt/design/ReportDesign.vue +12 -16
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js +0 -101
- package/dist/Org-Dg9Xkd34.js +0 -34
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js +0 -125
- package/dist/index-BDE4-ZvN.js +0 -5091
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent as le, ref as Q, createElementBlock as F, openBlock as d, unref as e, normalizeClass as ne, createElementVNode as w, onMounted as _e, watch as Re, resolveComponent as q, createBlock as N, withCtx as S, createVNode as f, TransitionGroup as en, Fragment as ke, renderList as Se, withModifiers as De, toDisplayString as J, toRaw as ze, computed as K, h as Fe, getCurrentInstance as Lt, normalizeStyle as ce, resolveDynamicComponent as Ce, createCommentVNode as te, createTextVNode as de, shallowRef as tn, nextTick as Me, isRef as nn, onBeforeMount as mt, withDirectives as he, vShow as Pe, reactive as vt, createStaticVNode as on, onBeforeUnmount as gt, Transition as yt, KeepAlive as Ct, resolveDirective as rt, renderSlot as rn, onUnmounted as ln } from "vue";
|
|
2
2
|
import "animate.css";
|
|
3
|
-
import { a as an, b as se, s as sn, g as Vt, _ as we, u as Ue, t as He, f as ot, c as At, d as ye, e as Qe, k as wt, h as ve, i as un, r as jt, j as Gt, l as cn, m as dn, n as fn, o as hn, p as pn, F as mn, I as zt, q as Ft, v as
|
|
3
|
+
import { a as an, b as se, s as sn, g as Vt, _ as we, u as Ue, t as He, f as ot, c as At, d as ye, e as Qe, k as wt, h as ve, i as un, r as jt, j as Gt, l as cn, m as dn, n as fn, o as hn, p as pn, F as mn, I as zt, q as Ft, v as Je, w as it } from "./index-COBMRlmJ.js";
|
|
4
4
|
import { iconSet as vn, useGlobal as lt, storageLocal as Ie, cookies as nt, hasClass as et, toggleClass as Te, delay as gn, useDark as Ot, useDebounce as Oe, deviceDetection as yn } from "@utogether/utils";
|
|
5
5
|
import { useI18n as at } from "vue-i18n";
|
|
6
6
|
import { useResizeObserver as bt, useDebounceFn as Wt, onKeyStroke as ut, useEventListener as An, useFullscreen as wn, onClickOutside as Qt, templateRef as ct } from "@vueuse/core";
|
|
7
|
-
import { u as st, a as Be, b as kt, c as Kt, d as bn } from "./utogether-
|
|
7
|
+
import { u as st, a as Be, b as kt, c as Kt, d as bn } from "./utogether-CxobZqGL.js";
|
|
8
8
|
import { defineStore as kn, storeToRefs as xn } from "pinia";
|
|
9
|
-
import { isEqual as Le, isArray as Pn, clone as Hn, isBoolean as
|
|
9
|
+
import { isEqual as Le, isArray as Pn, clone as Hn, isBoolean as Rt, isEmpty as dt } from "xe-utils";
|
|
10
10
|
import { useRoute as Ze, useRouter as Ye } from "vue-router";
|
|
11
|
+
import { t as qt } from "./await-to-js.es5-BtRbN2QH.js";
|
|
11
12
|
import { VxeUI as Tt } from "vxe-table";
|
|
12
13
|
const Un = {
|
|
13
14
|
width: 1024,
|
|
@@ -682,7 +683,7 @@ const Pt = /* @__PURE__ */ le({
|
|
|
682
683
|
const g = q("IconifyIconOffline");
|
|
683
684
|
return d(), F(ke, null, [
|
|
684
685
|
w("div", {
|
|
685
|
-
class: "search-container w-[40px] h-[48px] flex-
|
|
686
|
+
class: "search-container w-[40px] h-[48px] flex justify-center items-center cursor-pointer navbar-bg-hover",
|
|
686
687
|
onClick: v
|
|
687
688
|
}, [
|
|
688
689
|
f(g, { icon: "ri:search-line" })
|
|
@@ -699,11 +700,11 @@ const Pt = /* @__PURE__ */ le({
|
|
|
699
700
|
setup(a) {
|
|
700
701
|
const o = Ze(), u = Ye(), v = K(() => Qe().getOrglist), A = K(() => Qe().getOrgId), k = async (i) => {
|
|
701
702
|
var P;
|
|
702
|
-
const [z] = await Ft(
|
|
703
|
+
const [z] = await qt(Ft().post("/uums/org/toggle", { orgId: i }));
|
|
703
704
|
if (!z) {
|
|
704
705
|
Qe().setOrgId(i);
|
|
705
706
|
let b;
|
|
706
|
-
const c = { pageSize: 100, pageNum: 1 }, [y, n] = await Ft(
|
|
707
|
+
const c = { pageSize: 100, pageNum: 1 }, [y, n] = await qt(Ft().get("/uums/cusOrganization", c));
|
|
707
708
|
!y && ((P = n.list) != null && P.length) && (Qe().setInvOrgList(n.list || []), b = n.list.find((s) => s.orgId === i).id, Qe().setOrganizationId(b));
|
|
708
709
|
const t = { orgId: i, organizationId: b };
|
|
709
710
|
nt.set("kCookies_param", JSON.stringify(t)), ye().cacheOperate({ mode: "reset" }), g();
|
|
@@ -1223,11 +1224,11 @@ function Et() {
|
|
|
1223
1224
|
]);
|
|
1224
1225
|
function t(T, X, Y) {
|
|
1225
1226
|
var ae, me;
|
|
1226
|
-
return
|
|
1227
|
+
return Rt((ae = a == null ? void 0 : a.meta) == null ? void 0 : ae.showLink) && ((me = a == null ? void 0 : a.meta) == null ? void 0 : me.showLink) === !1 ? Object.keys(a.query).length > 0 ? Le(a.query, T.query) ? X : Y : Le(a.params, T.params) ? X : Y : a.path === T.path ? X : Y;
|
|
1227
1228
|
}
|
|
1228
1229
|
const l = K(() => (T) => {
|
|
1229
1230
|
var X, Y;
|
|
1230
|
-
return
|
|
1231
|
+
return Rt((X = T == null ? void 0 : T.meta) == null ? void 0 : X.fixedTag) && ((Y = T == null ? void 0 : T.meta) == null ? void 0 : Y.fixedTag) === !0;
|
|
1231
1232
|
}), s = K(() => (T, X) => {
|
|
1232
1233
|
if (X !== 0)
|
|
1233
1234
|
return t(T, !0, !1);
|
|
@@ -3316,7 +3317,7 @@ const pl = /* @__PURE__ */ il(hl), ml = {
|
|
|
3316
3317
|
], 2);
|
|
3317
3318
|
};
|
|
3318
3319
|
}
|
|
3319
|
-
}),
|
|
3320
|
+
}), Kl = /* @__PURE__ */ we(Rl, [["__scopeId", "data-v-107a39c6"]]);
|
|
3320
3321
|
export {
|
|
3321
|
-
|
|
3322
|
+
Kl as default
|
|
3322
3323
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as O, reactive as u, ref as x, onBeforeMount as T, resolveComponent as _, resolveDirective as Q, createElementBlock as Y, openBlock as
|
|
1
|
+
import { defineComponent as O, reactive as u, ref as x, onBeforeMount as T, resolveComponent as _, resolveDirective as Q, createElementBlock as Y, openBlock as m, normalizeStyle as $, createCommentVNode as tt, createElementVNode as s, unref as h, withDirectives as S, createTextVNode as C, toDisplayString as U, createVNode as R, withKeys as f, vModelText as E, normalizeClass as Lt, createStaticVNode as it } from "vue";
|
|
2
2
|
import { useRouter as at } from "vue-router";
|
|
3
3
|
import { useI18n as st } from "vue-i18n";
|
|
4
4
|
import { useFavicon as ot } from "@vueuse/core";
|
|
5
5
|
import { isEmpty as w, toDateString as Wt } from "xe-utils";
|
|
6
6
|
import { errorMessage as lt, cookies as b, storageLocal as k, delay as et, removeClass as A } from "@utogether/utils";
|
|
7
|
-
import {
|
|
8
|
-
import { d as
|
|
7
|
+
import { t as K } from "./await-to-js.es5-BtRbN2QH.js";
|
|
8
|
+
import { q as Ft, x as d, e as I, n as ct, D as nt, l as Yt, m as G, k as mt, E as St, _ as pt } from "./index-COBMRlmJ.js";
|
|
9
|
+
import { d as rt, b as yt, c as J } from "./utogether-CxobZqGL.js";
|
|
9
10
|
const xt = (t) => {
|
|
10
11
|
const W = t.indexOf("windows nt 5.1") > -1 || t.indexOf("windows xp") > -1;
|
|
11
12
|
if (t.indexOf("windows xp") > -1, W) return "WinXP";
|
|
@@ -50,11 +51,11 @@ const xt = (t) => {
|
|
|
50
51
|
}, gt = ["src"], Zt = { class: "login-box" }, ut = { class: "login-form" }, Qt = {
|
|
51
52
|
initial: { opacity: 0, y: 100 },
|
|
52
53
|
enter: { opacity: 1, y: 0, transition: { delay: 100 } }
|
|
53
|
-
},
|
|
54
|
+
}, Ct = {
|
|
54
55
|
class: "input-group user focus",
|
|
55
56
|
initial: { opacity: 0, y: 100 },
|
|
56
57
|
enter: { opacity: 1, y: 0, transition: { delay: 200 } }
|
|
57
|
-
},
|
|
58
|
+
}, Rt = { class: "icon" }, ft = {
|
|
58
59
|
class: "input-group pwd focus",
|
|
59
60
|
initial: { opacity: 0, y: 100 },
|
|
60
61
|
enter: {
|
|
@@ -100,7 +101,7 @@ const xt = (t) => {
|
|
|
100
101
|
r.value = !1;
|
|
101
102
|
return;
|
|
102
103
|
}
|
|
103
|
-
I().setSessionKey(y), D(y), b.set(ct, a), k.getItem("kLov") || nt().then((F) => I().setDict(F)), await et(100),
|
|
104
|
+
I().setSessionKey(y), D(y), b.set(ct, a), k.getItem("kLov") || nt().then((F) => I().setDict(F)), await et(100), St(), v.push("/"), H(a), r.value = !1;
|
|
104
105
|
};
|
|
105
106
|
function j() {
|
|
106
107
|
W.username.length === 0 && A(document.querySelector(".user"), "focus");
|
|
@@ -142,31 +143,31 @@ const xt = (t) => {
|
|
|
142
143
|
backgroundPosition: "center"
|
|
143
144
|
};
|
|
144
145
|
const y = ot();
|
|
145
|
-
y.value = i.favicon || J, k.setItem(
|
|
146
|
+
y.value = i.favicon || J, k.setItem(mt, i);
|
|
146
147
|
}
|
|
147
148
|
};
|
|
148
149
|
return P(X.value), T(() => {
|
|
149
150
|
N();
|
|
150
151
|
}), (a, L) => {
|
|
151
152
|
const l = _("IconifyIconOffline"), o = Q("motion"), e = Q("focus");
|
|
152
|
-
return
|
|
153
|
+
return m(), Y("div", {
|
|
153
154
|
key: p.value,
|
|
154
155
|
class: "login-container",
|
|
155
156
|
style: $(n.value)
|
|
156
157
|
}, [
|
|
157
|
-
n.value.backgroundImage ? tt("", !0) : (
|
|
158
|
+
n.value.backgroundImage ? tt("", !0) : (m(), Y("div", Vt, [
|
|
158
159
|
s("img", { src: h(Ut) }, null, 8, gt)
|
|
159
160
|
])),
|
|
160
161
|
s("div", Zt, [
|
|
161
162
|
s("div", ut, [
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
S((m(), Y("h2", Qt, [
|
|
164
|
+
C(U(Z.value.title), 1)
|
|
164
165
|
])), [
|
|
165
166
|
[o]
|
|
166
167
|
]),
|
|
167
|
-
|
|
168
|
-
s("div",
|
|
169
|
-
|
|
168
|
+
S((m(), Y("div", Ct, [
|
|
169
|
+
s("div", Rt, [
|
|
170
|
+
R(l, {
|
|
170
171
|
icon: h(Mt),
|
|
171
172
|
width: "30",
|
|
172
173
|
height: "30"
|
|
@@ -175,12 +176,12 @@ const xt = (t) => {
|
|
|
175
176
|
s("div", null, [
|
|
176
177
|
L[2] || (L[2] = s("i", { class: "ri-logout-box-line" }, null, -1)),
|
|
177
178
|
s("h5", null, U(a.$t("message.udp.userName")), 1),
|
|
178
|
-
|
|
179
|
+
S(s("input", {
|
|
179
180
|
"onUpdate:modelValue": L[0] || (L[0] = (i) => W.username = i),
|
|
180
181
|
type: "text",
|
|
181
182
|
class: "input",
|
|
182
183
|
onBlur: j,
|
|
183
|
-
onKeyup:
|
|
184
|
+
onKeyup: f(V, ["enter"])
|
|
184
185
|
}, null, 544), [
|
|
185
186
|
[
|
|
186
187
|
E,
|
|
@@ -194,9 +195,9 @@ const xt = (t) => {
|
|
|
194
195
|
])), [
|
|
195
196
|
[o]
|
|
196
197
|
]),
|
|
197
|
-
|
|
198
|
+
S((m(), Y("div", ft, [
|
|
198
199
|
s("div", Et, [
|
|
199
|
-
|
|
200
|
+
R(l, {
|
|
200
201
|
icon: h(bt),
|
|
201
202
|
width: "30",
|
|
202
203
|
height: "30"
|
|
@@ -204,12 +205,12 @@ const xt = (t) => {
|
|
|
204
205
|
]),
|
|
205
206
|
s("div", null, [
|
|
206
207
|
s("h5", null, U(a.$t("message.udp.password")), 1),
|
|
207
|
-
|
|
208
|
+
S(s("input", {
|
|
208
209
|
"onUpdate:modelValue": L[1] || (L[1] = (i) => W.passWord = i),
|
|
209
210
|
type: "password",
|
|
210
211
|
class: "input",
|
|
211
212
|
onBlur: z,
|
|
212
|
-
onKeyup:
|
|
213
|
+
onKeyup: f(V, ["enter"])
|
|
213
214
|
}, null, 544), [
|
|
214
215
|
[
|
|
215
216
|
E,
|
|
@@ -222,14 +223,14 @@ const xt = (t) => {
|
|
|
222
223
|
])), [
|
|
223
224
|
[o]
|
|
224
225
|
]),
|
|
225
|
-
|
|
226
|
+
S((m(), Y("button", {
|
|
226
227
|
class: Lt(["btn", { loading: r.value }]),
|
|
227
228
|
initial: { opacity: 0, y: 10 },
|
|
228
229
|
enter: { opacity: 1, y: 0, transition: { delay: 400 } },
|
|
229
230
|
disabled: r.value,
|
|
230
231
|
onClick: V
|
|
231
232
|
}, [
|
|
232
|
-
|
|
233
|
+
C(U(a.$t("message.udp.login")), 1)
|
|
233
234
|
], 10, wt)), [
|
|
234
235
|
[o]
|
|
235
236
|
])
|
|
@@ -241,12 +242,12 @@ const xt = (t) => {
|
|
|
241
242
|
class: "!h-10",
|
|
242
243
|
style: { height: "40px" }
|
|
243
244
|
}, null, 8, At),
|
|
244
|
-
L[3] || (L[3] = it('<span class="flex flex-row justify-center" style="width:300px;" data-v-
|
|
245
|
+
L[3] || (L[3] = it('<span class="flex flex-row justify-center" style="width:300px;" data-v-aac41c05><span style="font-size:0;text-align:center;" data-v-aac41c05><a href="http://www.u-together.cn/" target="_blank" class="!inline-block" style="margin-bottom:-5px;font-size:17px;color:#59d8d8;" data-v-aac41c05> 深圳友聚信息技术有限公司 </a><a href="http://www.u-together.cn/" target="_blank" class="!inline-block" style="font-size:12px;color:#d9d9d9;" data-v-aac41c05> SHENZHEN U-TOGETHER CO. LTD </a></span><span class="flex items-center text-white" style="width:75px;font-size:10px;" data-v-aac41c05>技术支持</span></span>', 1))
|
|
245
246
|
])
|
|
246
247
|
], 4);
|
|
247
248
|
};
|
|
248
249
|
}
|
|
249
|
-
}),
|
|
250
|
+
}), zt = /* @__PURE__ */ pt(dt, [["__scopeId", "data-v-aac41c05"]]);
|
|
250
251
|
export {
|
|
251
|
-
|
|
252
|
+
zt as default
|
|
252
253
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as k, ref as o, createVNode as u, resolveComponent as a, nextTick as g, createElementBlock as w, openBlock as s, createBlock as C, createCommentVNode as R } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
+
import { q as b } from "./index-COBMRlmJ.js";
|
|
4
|
+
import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js";
|
|
4
5
|
import { useRender as I } from "@utogether/utils";
|
|
5
|
-
const c = "/upfm/v1/lovViewHeader",
|
|
6
|
+
const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
|
|
6
7
|
name: "LovView",
|
|
7
8
|
__name: "lov-view",
|
|
8
9
|
setup(T) {
|
|
@@ -41,7 +42,7 @@ const c = "/upfm/v1/lovViewHeader", N = /* @__PURE__ */ k({
|
|
|
41
42
|
}, {
|
|
42
43
|
field: "enabled",
|
|
43
44
|
width: 80,
|
|
44
|
-
cellRender: r.renderEnabled(
|
|
45
|
+
cellRender: r.renderEnabled(v)
|
|
45
46
|
}, {
|
|
46
47
|
field: "operate",
|
|
47
48
|
width: 100,
|
|
@@ -59,10 +60,10 @@ const c = "/upfm/v1/lovViewHeader", N = /* @__PURE__ */ k({
|
|
|
59
60
|
g(() => {
|
|
60
61
|
n.value = !0, d.value = e;
|
|
61
62
|
});
|
|
62
|
-
},
|
|
63
|
+
}, p = () => {
|
|
63
64
|
t.value.refreshData(), n.value = !1;
|
|
64
65
|
};
|
|
65
|
-
async function
|
|
66
|
+
async function v(e) {
|
|
66
67
|
const [i] = await x(b().put(c, [e]));
|
|
67
68
|
!i && t.value.refreshData();
|
|
68
69
|
}
|
|
@@ -86,11 +87,11 @@ const c = "/upfm/v1/lovViewHeader", N = /* @__PURE__ */ k({
|
|
|
86
87
|
key: 0,
|
|
87
88
|
show: n.value,
|
|
88
89
|
record: d.value,
|
|
89
|
-
onOnClose:
|
|
90
|
+
onOnClose: p
|
|
90
91
|
}, null, 8, ["show", "record"])) : R("", !0)]);
|
|
91
92
|
};
|
|
92
93
|
}
|
|
93
94
|
});
|
|
94
95
|
export {
|
|
95
|
-
|
|
96
|
+
B as default
|
|
96
97
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as M, watch as Y, ref as w, resolveComponent as u, createElementBlock as I, openBlock as s, createVNode as n, withCtx as m, createBlock as i, createCommentVNode as p, Fragment as G, renderList as J, normalizeClass as K, createSlots as O, createElementVNode as Q, toDisplayString as W } from "vue";
|
|
2
2
|
import { useI18n as X } from "vue-i18n";
|
|
3
|
-
import {
|
|
4
|
-
import { templateRef as
|
|
5
|
-
|
|
3
|
+
import { t as q } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
+
import { templateRef as Z } from "@vueuse/core";
|
|
5
|
+
import { e as x, q as ee } from "./index-COBMRlmJ.js";
|
|
6
|
+
const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */ M({
|
|
6
7
|
__name: "menuInfo",
|
|
7
8
|
props: {
|
|
8
9
|
show: { type: Boolean, default: !1 },
|
|
@@ -12,14 +13,14 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", re = /* @__PURE__ */
|
|
|
12
13
|
},
|
|
13
14
|
emits: ["close"],
|
|
14
15
|
setup(F, { emit: E }) {
|
|
15
|
-
const P =
|
|
16
|
+
const P = x().getDataDict, g = F;
|
|
16
17
|
Y(
|
|
17
18
|
() => g.show,
|
|
18
19
|
() => {
|
|
19
20
|
h.value = g.show && L();
|
|
20
21
|
}
|
|
21
22
|
);
|
|
22
|
-
const
|
|
23
|
+
const v = ee(), { t } = X(), D = {
|
|
23
24
|
menuCode: [
|
|
24
25
|
{
|
|
25
26
|
required: !0,
|
|
@@ -62,7 +63,7 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", re = /* @__PURE__ */
|
|
|
62
63
|
message: `${t("message.required")}${t("message.menuType")}`
|
|
63
64
|
}
|
|
64
65
|
]
|
|
65
|
-
}, T =
|
|
66
|
+
}, T = Z("xForm", null), y = w(!1), h = w(""), C = w(["fetch"]), B = E, L = () => {
|
|
66
67
|
const { record: e, dataStatus: l } = g, { id: o, parentId: f, hasChildren: a } = e;
|
|
67
68
|
if (l !== "update")
|
|
68
69
|
return !o && !f ? "su" : ((a || l === "add") && (e.dispalyCode = ""), e.permissionCode);
|
|
@@ -74,21 +75,21 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", re = /* @__PURE__ */
|
|
|
74
75
|
const { record: o, dataStatus: f } = g;
|
|
75
76
|
if (f === "add") {
|
|
76
77
|
o.permissionCode = `${h.value}.${o.dispalyCode}`;
|
|
77
|
-
const [a, $] = await q(
|
|
78
|
+
const [a, $] = await q(v.post(N, [o]));
|
|
78
79
|
if (!a && !["0", "5"].includes(o.menuCategory) && C.value.length) {
|
|
79
|
-
const c = C.value.map((
|
|
80
|
-
permissionCode: o.permissionCode + "." +
|
|
80
|
+
const c = C.value.map((b, S) => ({
|
|
81
|
+
permissionCode: o.permissionCode + "." + b,
|
|
81
82
|
parentId: $[0].id,
|
|
82
|
-
menuName: R(
|
|
83
|
+
menuName: R(b),
|
|
83
84
|
menuType: 1,
|
|
84
85
|
enabled: "1",
|
|
85
86
|
sort: (S + 1) * 10
|
|
86
|
-
})), [V, _] = await q(
|
|
87
|
+
})), [V, _] = await q(v.post(N, c));
|
|
87
88
|
V || (l = _[0]);
|
|
88
89
|
}
|
|
89
90
|
y.value = !1;
|
|
90
91
|
} else
|
|
91
|
-
o.permissionCode = o.dispalyCode, await q(
|
|
92
|
+
o.permissionCode = o.dispalyCode, await q(v.put(N, [o])), y.value = !1;
|
|
92
93
|
k("submit", l);
|
|
93
94
|
}
|
|
94
95
|
});
|
|
@@ -106,7 +107,7 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", re = /* @__PURE__ */
|
|
|
106
107
|
B("close", e, l);
|
|
107
108
|
}
|
|
108
109
|
return (e, l) => {
|
|
109
|
-
const o = u("vxe-option"), f = u("vxe-select"), a = u("vxe-form-item"), $ = u("vxe-input"), c = u("vxe-checkbox"), V = u("vxe-checkbox-group"), _ = u("ut-icon-select"),
|
|
110
|
+
const o = u("vxe-option"), f = u("vxe-select"), a = u("vxe-form-item"), $ = u("vxe-input"), c = u("vxe-checkbox"), V = u("vxe-checkbox-group"), _ = u("ut-icon-select"), b = u("vxe-form"), S = u("el-divider"), U = u("ut-button"), j = u("el-row"), H = u("el-drawer");
|
|
110
111
|
return s(), I("div", te, [
|
|
111
112
|
n(H, {
|
|
112
113
|
"model-value": e.show,
|
|
@@ -117,7 +118,7 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", re = /* @__PURE__ */
|
|
|
117
118
|
size: "50%"
|
|
118
119
|
}, {
|
|
119
120
|
default: m(() => [
|
|
120
|
-
n(
|
|
121
|
+
n(b, {
|
|
121
122
|
ref_key: "xForm",
|
|
122
123
|
ref: T,
|
|
123
124
|
data: e.record,
|
|
@@ -336,5 +337,5 @@ const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", re = /* @__PURE__ */
|
|
|
336
337
|
}
|
|
337
338
|
});
|
|
338
339
|
export {
|
|
339
|
-
|
|
340
|
+
se as _
|
|
340
341
|
};
|