@utogether/udp-core 1.0.0 → 1.0.1-beta.2
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/build/plugins.ts +8 -2
- package/dist/{403-B1R-4vXw.js → 403-BBQoJwTM.js} +9 -8
- package/dist/{404-fXPl8csw.js → 404-BbJPSIWM.js} +15 -14
- package/dist/{500-eI5842YB.js → 500-BtFL9R4M.js} +11 -10
- package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-DhiwCeLN.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js} +3 -3
- package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
- package/dist/{Company-CYC9Avfz.js → Company-CGqmslx-.js} +3 -3
- package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-hlDsxD-6.js} +10 -10
- package/dist/{Department-B4BNSiYx.js → Department-BZyJtacc.js} +3 -3
- package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-D-a_EBFt.js} +23 -23
- package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-Bl4luWDV.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js} +6 -6
- package/dist/{DictView-bIS5-rK-.js → DictView-B4a7Hs1X.js} +9 -9
- package/dist/InvOrganization-q4T3y8dQ.js +260 -0
- package/dist/{Org-kXHSjsgJ.js → Org-BTGTrAVz.js} +3 -3
- package/dist/{Preview-CRyiwUIR.js → Preview-pHD84xqI.js} +1 -1
- package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-DnnCNQWS.js} +1 -1
- package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-BnI_Q4pg.js} +10 -10
- package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-Dby2MmtM.js} +5 -5
- package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-Blm1N8P1.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js} +6 -5
- package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-D65RXRY_.js} +11 -11
- package/dist/{Role-BwTV2QMH.js → Role-eFZoTpXc.js} +3 -3
- package/dist/{RoleAssign-De1JjOun.js → RoleAssign-D9-Y3UNz.js} +3 -3
- package/dist/{RolePanel-pUBXsqCM.js → RolePanel-CoUOc3sX.js} +1 -1
- package/dist/{RolePanel-E3RcdByM.js → RolePanel-DlFw6HSf.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js} +12 -12
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js → RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js} +4 -4
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js} +8 -8
- package/dist/{Staff-Czm7A8vI.js → Staff-DFBLCsAd.js} +3 -3
- package/dist/StaffInfo-d2CK0oBA.js +4 -0
- package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js} +7 -7
- package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-D6aWLKN3.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js} +46 -49
- package/dist/{SysUser-BGwbttRn.js → SysUser-BdZvYxQH.js} +2 -2
- package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-BIVa6LLr.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js} +1 -2
- package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-C-5VKlHK.js} +51 -49
- package/dist/{UserInfo-BsyAcT2d.js → UserInfo-DqXCRZts.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js} +13 -13
- package/dist/{childView-CyuLTUqC.js → childView-B2lSsqS3.js} +1 -1
- package/dist/{childView-CF83nhxb.js → childView-DRUNqgjI.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-oGriyFTv.js} +6 -6
- package/dist/{code-rule-Bz-gnktN.js → code-rule-DZC9T6cl.js} +6 -6
- package/dist/core.es.js +4 -4
- package/dist/{cron-task-CIifSUdW.js → cron-task-BJwPeA5F.js} +11 -11
- package/dist/{frameView-_d2mqjjQ.js → frameView-C6wkvok-.js} +15 -14
- package/dist/index-DZc3qRTx.js +2650 -0
- package/dist/{layoutView-DLKVepB8.js → layoutView-CeJBpZb_.js} +658 -653
- package/dist/{login-LREiDfFU.js → login-BOxwzwdB.js} +26 -25
- package/dist/{lov-view-DDrIVILB.js → lov-view-DRF-99U4.js} +5 -5
- package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-3Sjvs9nM.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js} +95 -94
- package/dist/pda-app-B9tn7jdv.js +696 -0
- package/dist/redirect-BqegffKC.js +15 -0
- package/dist/{resource-BCwx9fEv.js → resource-BqnxbQNe.js} +7 -7
- package/dist/{su-welcome-189A7N4r.js → su-welcome-VwifUK_O.js} +41 -40
- package/dist/{sys-config-BZ3sejow.js → sys-config-C0-gSBFO.js} +18 -18
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-r08LNiIZ.js → utogether-Di1byIum.js} +6 -6
- package/package.json +18 -16
- package/src/App.vue +3 -3
- package/src/components/udp/form-upload.vue +183 -0
- package/src/components/udp/index.ts +4 -0
- package/src/components/udp/modal-form.vue +180 -0
- package/src/components/udp/utils.ts +40 -0
- package/src/main.ts +109 -108
- package/src/plugins/vxe-table/index.ts +53 -46
- package/src/plugins/vxe-table/render.tsx +604 -184
- package/src/utils/udp/useRender.ts +420 -0
- package/src/views/organization/inv-org/InvOrganization.vue +2 -1
- package/src/views/organization/staff/StaffInfo.vue +0 -30
- package/src/views/organization/staff/StaffPanel.vue +4 -3
- package/src/views/system/menu/AuthorityPanel.vue +2 -2
- package/src/views/system/menu/SystemMenu.vue +197 -191
- package/src/views/system/menu/menuInfo.vue +11 -6
- package/src/views/system/role/AuthorityInfo.vue +1 -19
- package/src/views/system/sysUser/SysUserPanel.vue +1 -1
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/uhome/components/menu-favorite.vue +1 -1
- package/src/views/uhome/su-welcome.vue +1 -1
- package/src/views/ulogin/login.vue +1 -1
- package/types/global.d.ts +0 -1
- package/vite.config.ts +9 -2
- package/dist/InvOrganization-MuM2jtsG.js +0 -66
- package/dist/StaffInfo-DJzvBuxy.js +0 -4
- package/dist/core.umd.js +0 -173
- package/dist/index-BKIw8tSn.js +0 -9195
- package/dist/pda-app-CRhVGijN.js +0 -2209
- package/dist/redirect-DiaNDu8F.js +0 -15
- package/src/assets/images/empty.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/components/ReCountTo/README.md +0 -2
- package/src/components/ReCountTo/index.ts +0 -18
- package/src/components/ReCountTo/src/normal/index.tsx +0 -165
- package/src/components/ReCountTo/src/normal/props.ts +0 -37
- package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
- package/src/components/ReCountTo/src/rebound/props.ts +0 -14
- package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
- package/src/components/ReCropper/index.ts +0 -14
- package/src/components/ReCropper/src/index.tsx +0 -141
- package/src/components/ReFlicker/index.css +0 -39
- package/src/components/ReFlicker/index.ts +0 -50
- package/src/components/ReFlop/index.ts +0 -14
- package/src/components/ReFlop/src/Filpper.tsx +0 -99
- package/src/components/ReFlop/src/filpper.css +0 -184
- package/src/components/ReFlop/src/index.vue +0 -126
- package/src/components/ReFlowChart/index.ts +0 -24
- package/src/components/ReFlowChart/src/Control.vue +0 -139
- package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
- package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
- package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/components/ReFlowChart/src/config.ts +0 -62
- package/src/components/ReSplitPane/index.css +0 -49
- package/src/components/ReSplitPane/index.tsx +0 -119
- package/src/components/ReSplitPane/resizer.css +0 -45
- package/src/components/ReSplitPane/resizer.tsx +0 -30
- package/src/components/SuCommon/card/components/Card.vue +0 -148
- package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
- package/src/components/SuCommon/card/index.vue +0 -142
- package/src/components/SuCommon/icon-select/index.vue +0 -241
- package/src/components/SuCommon/table/index.vue +0 -208
- package/src/components/SuCommon/utils/index.ts +0 -103
- package/src/components/SuCommon/utils/slot.tsx +0 -50
- package/src/views/components/contextmenu/basic.vue +0 -74
- package/src/views/components/contextmenu/context-menu.vue +0 -40
- package/src/views/components/contextmenu/menuDynamic.vue +0 -99
- package/src/views/components/contextmenu/menuGroup.vue +0 -71
- package/src/views/components/count-to/index.vue +0 -43
- package/src/views/components/cropping/index.vue +0 -59
- package/src/views/components/cropping/picture.jpeg +0 -0
- package/src/views/components/split-pane/index.vue +0 -82
- package/src/views/components/video/index.vue +0 -57
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { defineComponent as O, reactive as u, ref as x, onBeforeMount as T, resolveComponent as _, resolveDirective as Q, createElementBlock as Y, openBlock as S, normalizeStyle as $, createCommentVNode as tt, createElementVNode as s, unref as h, withDirectives as m, createTextVNode as f, toDisplayString as U, createVNode as C, withKeys as R, vModelText as E, normalizeClass as Lt, createStaticVNode as it } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useFavicon as
|
|
5
|
-
import { isEmpty as
|
|
6
|
-
import { errorMessage as
|
|
7
|
-
import { t as
|
|
8
|
-
import { d as
|
|
2
|
+
import { useRouter as at } from "vue-router";
|
|
3
|
+
import { useI18n as st } from "vue-i18n";
|
|
4
|
+
import { useFavicon as ot } from "@vueuse/core";
|
|
5
|
+
import { isEmpty as w, toDateString as Wt } from "xe-utils";
|
|
6
|
+
import { errorMessage as lt, cookies as b, storageLocal as k, delay as et, removeClass as A } from "@utogether/utils";
|
|
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 St, E as mt, _ as pt } from "./index-DZc3qRTx.js";
|
|
9
|
+
import { d as rt, b as yt, c as J } from "./utogether-Di1byIum.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";
|
|
@@ -80,33 +81,33 @@ const xt = (t) => {
|
|
|
80
81
|
backgroundImage: "",
|
|
81
82
|
backgroundRepeat: "no-repeat",
|
|
82
83
|
backgroundPosition: "center"
|
|
83
|
-
}), p = x(0), Z = x({}), v = at(), { t: q } =
|
|
84
|
+
}), p = x(0), Z = x({}), v = at(), { t: q } = st(), M = Ft(), { initStorage: B } = rt(), { overallStyle: X, dataThemeChange: P } = yt();
|
|
84
85
|
B();
|
|
85
86
|
const r = x(!1), V = async () => {
|
|
86
87
|
const { username: a, passWord: L, verify: l } = W;
|
|
87
|
-
if (
|
|
88
|
-
return
|
|
88
|
+
if (w(a) || w(L))
|
|
89
|
+
return lt(q("message.tip.loginFailure"));
|
|
89
90
|
setMaxDigits(200);
|
|
90
91
|
const o = new RSAKeyPair(n.publicKeyExponent, "", n.publicKeyModulus), e = encryptedString(o, L.split("").reverse().join("")), i = {
|
|
91
92
|
username: a,
|
|
92
93
|
password: e,
|
|
93
94
|
requestKey: n.requestKey,
|
|
94
95
|
verify: l,
|
|
95
|
-
domain:
|
|
96
|
+
domain: d()
|
|
96
97
|
};
|
|
97
98
|
r.value = !0;
|
|
98
|
-
const [g, y] = await
|
|
99
|
+
const [g, y] = await K(M.post("/uath/login", i));
|
|
99
100
|
if (g) {
|
|
100
101
|
r.value = !1;
|
|
101
102
|
return;
|
|
102
103
|
}
|
|
103
|
-
|
|
104
|
+
I().setSessionKey(y), D(y), b.set(ct, a), k.getItem("kLov") || nt().then((F) => I().setDict(F)), await et(100), mt(), v.push("/"), H(a), r.value = !1;
|
|
104
105
|
};
|
|
105
106
|
function j() {
|
|
106
|
-
W.username.length === 0 &&
|
|
107
|
+
W.username.length === 0 && A(document.querySelector(".user"), "focus");
|
|
107
108
|
}
|
|
108
109
|
function z() {
|
|
109
|
-
W.passWord.length === 0 &&
|
|
110
|
+
W.passWord.length === 0 && A(document.querySelector(".pwd"), "focus");
|
|
110
111
|
}
|
|
111
112
|
const D = (a) => {
|
|
112
113
|
const { access_token: L, expires_in: l, refresh_token: o } = a, e = {
|
|
@@ -114,13 +115,13 @@ const xt = (t) => {
|
|
|
114
115
|
refreshToken: o,
|
|
115
116
|
expires: Date.now() + l * 1e3
|
|
116
117
|
};
|
|
117
|
-
b.set(
|
|
118
|
+
b.set(Yt, a.access_token);
|
|
118
119
|
const i = JSON.stringify(e);
|
|
119
|
-
l > 0 ? b.set(
|
|
120
|
+
l > 0 ? b.set(G, i) : b.set(G, i);
|
|
120
121
|
}, H = (a) => {
|
|
121
122
|
const L = navigator.userAgent.toLowerCase(), { browser: l, browserVersion: o } = ht(L), e = {
|
|
122
123
|
userName: a,
|
|
123
|
-
loginTime:
|
|
124
|
+
loginTime: Wt(/* @__PURE__ */ new Date()),
|
|
124
125
|
browser: l,
|
|
125
126
|
browserVersion: o,
|
|
126
127
|
operatingSystem: xt(L)
|
|
@@ -128,11 +129,11 @@ const xt = (t) => {
|
|
|
128
129
|
M.post("/upms/v1/userMonitor", e);
|
|
129
130
|
}, N = async () => {
|
|
130
131
|
var l, o, e;
|
|
131
|
-
const [a, L] = await
|
|
132
|
+
const [a, L] = await K(M.get("/upfm/v1/sysConfig", {}));
|
|
132
133
|
if (!a) {
|
|
133
134
|
const i = {};
|
|
134
135
|
(l = L.list) == null || l.forEach((F) => {
|
|
135
|
-
i[F.configCode] = F.configValue, F.fileName && (i[F.configCode] =
|
|
136
|
+
i[F.configCode] = F.configValue, F.fileName && (i[F.configCode] = d() + "/ufil" + F.configValue);
|
|
136
137
|
});
|
|
137
138
|
const g = (e = (o = L.list) == null ? void 0 : o.find((F) => F.configCode === "title")) == null ? void 0 : e.configValue;
|
|
138
139
|
i.title = g || "U-DP", Z.value = i, c.value = {
|
|
@@ -140,8 +141,8 @@ const xt = (t) => {
|
|
|
140
141
|
backgroundRepeat: "no-repeat",
|
|
141
142
|
backgroundPosition: "center"
|
|
142
143
|
}, console.log("bgStyle=", c);
|
|
143
|
-
const y =
|
|
144
|
-
y.value = i.favicon || J,
|
|
144
|
+
const y = ot();
|
|
145
|
+
y.value = i.favicon || J, k.setItem(St, i);
|
|
145
146
|
}
|
|
146
147
|
};
|
|
147
148
|
return P(X.value), T(() => {
|
|
@@ -240,12 +241,12 @@ const xt = (t) => {
|
|
|
240
241
|
class: "!h-10",
|
|
241
242
|
style: { height: "40px" }
|
|
242
243
|
}, null, 8, At),
|
|
243
|
-
L[3] || (L[3] = it('<span class="flex flex-row justify-center" style="width:300px;" data-v-
|
|
244
|
+
L[3] || (L[3] = it('<span class="flex flex-row justify-center" style="width:300px;" data-v-f243071a><span style="font-size:0;text-align:center;" data-v-f243071a><a href="http://www.u-together.cn/" target="_blank" class="!inline-block" style="margin-bottom:-5px;font-size:17px;color:#59d8d8;" data-v-f243071a> 深圳友聚信息技术有限公司 </a><a href="http://www.u-together.cn/" target="_blank" class="!inline-block" style="font-size:12px;color:#d9d9d9;" data-v-f243071a> SHENZHEN U-TOGETHER CO. LTD </a></span><span class="flex items-center text-white" style="width:75px;font-size:10px;" data-v-f243071a>技术支持</span></span>', 1))
|
|
244
245
|
])
|
|
245
246
|
], 4);
|
|
246
247
|
};
|
|
247
248
|
}
|
|
248
|
-
}),
|
|
249
|
+
}), zt = /* @__PURE__ */ pt(dt, [["__scopeId", "data-v-f243071a"]]);
|
|
249
250
|
export {
|
|
250
|
-
|
|
251
|
+
zt as default
|
|
251
252
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as k, ref as o, createVNode as u, resolveComponent as a, nextTick as
|
|
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
2
|
import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { q as b } from "./index-DZc3qRTx.js";
|
|
4
|
+
import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js";
|
|
5
5
|
import { useRender as I } from "@utogether/utils";
|
|
6
6
|
const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
|
|
7
7
|
name: "LovView",
|
|
@@ -57,7 +57,7 @@ const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
|
|
|
57
57
|
}, null)] : null
|
|
58
58
|
}
|
|
59
59
|
}], n = o(!1), d = o(null), m = (e) => {
|
|
60
|
-
|
|
60
|
+
g(() => {
|
|
61
61
|
n.value = !0, d.value = e;
|
|
62
62
|
});
|
|
63
63
|
}, p = () => {
|
|
@@ -76,7 +76,7 @@ const c = "/upfm/v1/lovViewHeader", B = /* @__PURE__ */ k({
|
|
|
76
76
|
};
|
|
77
77
|
return (e, i) => {
|
|
78
78
|
const _ = a("ut-grid");
|
|
79
|
-
return s(),
|
|
79
|
+
return s(), w("div", null, [u(_, {
|
|
80
80
|
ref_key: "xgrid",
|
|
81
81
|
ref: t,
|
|
82
82
|
items: f,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as M, watch as Y, ref as
|
|
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 { t as
|
|
3
|
+
import { t as q } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
4
|
import { templateRef as Z } from "@vueuse/core";
|
|
5
|
-
import {
|
|
6
|
-
const te = { class: "ut-menu-wrapper" },
|
|
5
|
+
import { e as x, q as ee } from "./index-DZc3qRTx.js";
|
|
6
|
+
const te = { class: "ut-menu-wrapper" }, N = "/uums/menu", se = /* @__PURE__ */ M({
|
|
7
7
|
__name: "menuInfo",
|
|
8
8
|
props: {
|
|
9
9
|
show: { type: Boolean, default: !1 },
|
|
@@ -11,16 +11,16 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
11
11
|
dataStatus: { default: "detail" },
|
|
12
12
|
direction: { default: "rtl" }
|
|
13
13
|
},
|
|
14
|
-
emits: ["
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
14
|
+
emits: ["close"],
|
|
15
|
+
setup(F, { emit: E }) {
|
|
16
|
+
const P = x().getDataDict, g = F;
|
|
17
17
|
Y(
|
|
18
18
|
() => g.show,
|
|
19
19
|
() => {
|
|
20
|
-
|
|
20
|
+
h.value = g.show && L();
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
const
|
|
23
|
+
const v = ee(), { t } = X(), D = {
|
|
24
24
|
menuCode: [
|
|
25
25
|
{
|
|
26
26
|
required: !0,
|
|
@@ -63,113 +63,114 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
63
63
|
message: `${t("message.required")}${t("message.menuType")}`
|
|
64
64
|
}
|
|
65
65
|
]
|
|
66
|
-
},
|
|
67
|
-
const { record: e, dataStatus: o } = g, { id:
|
|
66
|
+
}, T = Z("xForm", null), y = w(!1), h = w(""), $ = w(["fetch"]), B = E, L = () => {
|
|
67
|
+
const { record: e, dataStatus: o } = g, { id: l, parentId: f, hasChildren: a } = e;
|
|
68
68
|
if (o !== "update")
|
|
69
|
-
return !
|
|
70
|
-
},
|
|
71
|
-
|
|
69
|
+
return !l && !f ? "su" : ((a || o === "add") && (e.dispalyCode = ""), e.permissionCode);
|
|
70
|
+
}, A = () => {
|
|
71
|
+
T.value.validate(async (e) => {
|
|
72
72
|
if (!e) {
|
|
73
73
|
y.value = !0;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
let o;
|
|
75
|
+
const { record: l, dataStatus: f } = g;
|
|
76
|
+
if (f === "add") {
|
|
77
|
+
l.permissionCode = `${h.value}.${l.dispalyCode}`;
|
|
78
|
+
const [a, C] = await q(v.post(N, [l]));
|
|
79
|
+
if (!a && !["0", "5"].includes(l.menuCategory) && $.value.length) {
|
|
80
|
+
const c = $.value.map((b, S) => ({
|
|
81
|
+
permissionCode: l.permissionCode + "." + b,
|
|
82
|
+
parentId: C[0].id,
|
|
83
|
+
menuName: R(b),
|
|
83
84
|
menuType: 1,
|
|
84
85
|
enabled: "1",
|
|
85
|
-
sort: (
|
|
86
|
-
}));
|
|
87
|
-
|
|
86
|
+
sort: (S + 1) * 10
|
|
87
|
+
})), [V, _] = await q(v.post(N, c));
|
|
88
|
+
V || (o = _[0]);
|
|
88
89
|
}
|
|
89
90
|
y.value = !1;
|
|
90
91
|
} else
|
|
91
|
-
await
|
|
92
|
-
|
|
92
|
+
await q(v.put(N, [l])), y.value = !1;
|
|
93
|
+
k("submit", o);
|
|
93
94
|
}
|
|
94
95
|
});
|
|
95
|
-
},
|
|
96
|
+
}, R = (e) => ({
|
|
96
97
|
fetch: t("message.btn.fetch"),
|
|
97
98
|
add: t("message.btn.add"),
|
|
98
99
|
edit: t("message.btn.edit"),
|
|
99
100
|
del: t("message.btn.delete"),
|
|
100
101
|
export: t("message.btn.export")
|
|
101
|
-
})[e],
|
|
102
|
+
})[e], z = (e) => {
|
|
102
103
|
var o;
|
|
103
|
-
return (o =
|
|
104
|
+
return (o = P[e]) == null ? void 0 : o.children.map((l) => (l.enabled = l.dictCode === "0" && g.record.menuCategory !== "0", l));
|
|
104
105
|
};
|
|
105
|
-
function
|
|
106
|
-
|
|
106
|
+
function k(e, o) {
|
|
107
|
+
B("close", e, o);
|
|
107
108
|
}
|
|
108
109
|
return (e, o) => {
|
|
109
|
-
const
|
|
110
|
-
return
|
|
110
|
+
const l = u("vxe-option"), f = u("vxe-select"), a = u("vxe-form-item"), C = 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");
|
|
111
|
+
return s(), I("div", te, [
|
|
111
112
|
n(H, {
|
|
112
113
|
"model-value": e.show,
|
|
113
114
|
title: e.$t("message.title.memuInfo"),
|
|
114
|
-
"before-close":
|
|
115
|
+
"before-close": k,
|
|
115
116
|
direction: "rtl",
|
|
116
117
|
"destroy-on-close": "",
|
|
117
118
|
size: "50%"
|
|
118
119
|
}, {
|
|
119
|
-
default:
|
|
120
|
-
n(
|
|
120
|
+
default: m(() => [
|
|
121
|
+
n(b, {
|
|
121
122
|
ref_key: "xForm",
|
|
122
|
-
ref:
|
|
123
|
+
ref: T,
|
|
123
124
|
data: e.record,
|
|
124
|
-
rules:
|
|
125
|
+
rules: D,
|
|
125
126
|
loading: y.value,
|
|
126
127
|
"title-colon": "",
|
|
127
128
|
"title-align": "right",
|
|
128
129
|
"title-width": "110"
|
|
129
130
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
e.record.menuType === "0" ? (
|
|
131
|
+
default: m(() => [
|
|
132
|
+
e.record.menuType === "0" ? (s(), i(a, {
|
|
132
133
|
key: 0,
|
|
133
134
|
title: e.$t("message.menuType"),
|
|
134
135
|
field: "menuCategory",
|
|
135
136
|
span: "24"
|
|
136
137
|
}, {
|
|
137
|
-
default:
|
|
138
|
+
default: m(({ data: r }) => [
|
|
138
139
|
n(f, {
|
|
139
|
-
modelValue:
|
|
140
|
-
"onUpdate:modelValue": (
|
|
141
|
-
disabled:
|
|
140
|
+
modelValue: r.menuCategory,
|
|
141
|
+
"onUpdate:modelValue": (d) => r.menuCategory = d,
|
|
142
|
+
disabled: r.menuCategory === "0"
|
|
142
143
|
}, {
|
|
143
|
-
default:
|
|
144
|
-
(
|
|
145
|
-
key:
|
|
146
|
-
value:
|
|
147
|
-
label:
|
|
148
|
-
disabled:
|
|
144
|
+
default: m(() => [
|
|
145
|
+
(s(!0), I(G, null, J(z("SU.MENU.TYPE"), (d) => (s(), i(l, {
|
|
146
|
+
key: d.dictCode,
|
|
147
|
+
value: d.dictCode,
|
|
148
|
+
label: d.dictName,
|
|
149
|
+
disabled: d.enabled
|
|
149
150
|
}, null, 8, ["value", "label", "disabled"]))), 128))
|
|
150
151
|
]),
|
|
151
152
|
_: 2
|
|
152
153
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
153
154
|
]),
|
|
154
155
|
_: 1
|
|
155
|
-
}, 8, ["title"])) :
|
|
156
|
+
}, 8, ["title"])) : p("", !0),
|
|
156
157
|
n(a, {
|
|
157
158
|
title: e.$t("message.permissionCode"),
|
|
158
159
|
field: "dispalyCode",
|
|
159
160
|
span: "24"
|
|
160
161
|
}, {
|
|
161
|
-
default:
|
|
162
|
-
n(
|
|
163
|
-
modelValue:
|
|
164
|
-
"onUpdate:modelValue": (
|
|
162
|
+
default: m(({ data: r }) => [
|
|
163
|
+
n(C, {
|
|
164
|
+
modelValue: r.dispalyCode,
|
|
165
|
+
"onUpdate:modelValue": (d) => r.dispalyCode = d,
|
|
165
166
|
clearable: "",
|
|
166
167
|
class: K({ "u-menu-prefix": e.dataStatus === "add" }),
|
|
167
168
|
disabled: e.dataStatus !== "add"
|
|
168
169
|
}, O({ _: 2 }, [
|
|
169
170
|
e.dataStatus === "add" ? {
|
|
170
171
|
name: "prefix",
|
|
171
|
-
fn:
|
|
172
|
-
Q("span", null, W(
|
|
172
|
+
fn: m(() => [
|
|
173
|
+
Q("span", null, W(h.value), 1)
|
|
173
174
|
]),
|
|
174
175
|
key: "0"
|
|
175
176
|
} : void 0
|
|
@@ -177,13 +178,13 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
177
178
|
]),
|
|
178
179
|
_: 1
|
|
179
180
|
}, 8, ["title"]),
|
|
180
|
-
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (
|
|
181
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (s(), i(a, {
|
|
181
182
|
key: 1,
|
|
182
183
|
title: e.$t("message.menuCode"),
|
|
183
184
|
"item-render": { name: "$input" },
|
|
184
185
|
field: "menuCode",
|
|
185
186
|
span: "24"
|
|
186
|
-
}, null, 8, ["title"])) :
|
|
187
|
+
}, null, 8, ["title"])) : p("", !0),
|
|
187
188
|
n(a, {
|
|
188
189
|
title: e.$t("message.menuName"),
|
|
189
190
|
"item-render": { name: "$input" },
|
|
@@ -196,57 +197,57 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
196
197
|
span: "24",
|
|
197
198
|
"item-render": { name: "$input" }
|
|
198
199
|
}, null, 8, ["title"]),
|
|
199
|
-
e.record.menuType * 1 ?
|
|
200
|
+
e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
|
|
200
201
|
key: 2,
|
|
201
202
|
title: e.$t("message.menuPath"),
|
|
202
203
|
"item-render": { name: "$input" },
|
|
203
204
|
field: "menuPath",
|
|
204
205
|
span: "24"
|
|
205
206
|
}, null, 8, ["title"])),
|
|
206
|
-
e.record.menuType * 1 ?
|
|
207
|
+
e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
|
|
207
208
|
key: 3,
|
|
208
209
|
title: e.$t("message.i18nField"),
|
|
209
210
|
"item-render": { name: "$input" },
|
|
210
211
|
field: "i18nField",
|
|
211
212
|
span: "24"
|
|
212
213
|
}, null, 8, ["title"])),
|
|
213
|
-
e.record.menuCategory === "2" ? (
|
|
214
|
+
e.record.menuCategory === "2" ? (s(), i(a, {
|
|
214
215
|
key: 4,
|
|
215
216
|
title: e.$t("message.frameSrc"),
|
|
216
217
|
"item-render": { name: "$input" },
|
|
217
218
|
field: "frameSrc",
|
|
218
219
|
span: "24"
|
|
219
|
-
}, null, 8, ["title"])) :
|
|
220
|
-
e.record.menuCategory === "3" ? (
|
|
220
|
+
}, null, 8, ["title"])) : p("", !0),
|
|
221
|
+
e.record.menuCategory === "3" ? (s(), i(a, {
|
|
221
222
|
key: 5,
|
|
222
223
|
title: e.$t("message.externalURI"),
|
|
223
224
|
"item-render": { name: "$input" },
|
|
224
225
|
field: "menuCode",
|
|
225
226
|
span: "24"
|
|
226
|
-
}, null, 8, ["title"])) :
|
|
227
|
-
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (
|
|
227
|
+
}, null, 8, ["title"])) : p("", !0),
|
|
228
|
+
!(e.record.menuType * 1) && e.record.menuCategory !== "3" ? (s(), i(a, {
|
|
228
229
|
key: 6,
|
|
229
230
|
title: e.$t("message.extraIcon"),
|
|
230
231
|
"item-render": { name: "$input" },
|
|
231
232
|
field: "extraIcon",
|
|
232
233
|
span: "24"
|
|
233
|
-
}, null, 8, ["title"])) :
|
|
234
|
-
["0", "5"].includes(e.record.menuCategory) ? (
|
|
234
|
+
}, null, 8, ["title"])) : p("", !0),
|
|
235
|
+
["0", "5"].includes(e.record.menuCategory) ? (s(), i(a, {
|
|
235
236
|
key: 7,
|
|
236
237
|
title: e.$t("message.redirect"),
|
|
237
238
|
"item-render": { name: "$input" },
|
|
238
239
|
field: "redirect",
|
|
239
240
|
span: "24"
|
|
240
|
-
}, null, 8, ["title"])) :
|
|
241
|
-
e.record.menuType * 1 ?
|
|
241
|
+
}, null, 8, ["title"])) : p("", !0),
|
|
242
|
+
e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
|
|
242
243
|
key: 8,
|
|
243
244
|
title: e.$t("message.sort"),
|
|
244
245
|
span: "24"
|
|
245
246
|
}, {
|
|
246
|
-
default:
|
|
247
|
-
n(
|
|
248
|
-
modelValue:
|
|
249
|
-
"onUpdate:modelValue": (
|
|
247
|
+
default: m(({ data: r }) => [
|
|
248
|
+
n(C, {
|
|
249
|
+
modelValue: r.sort,
|
|
250
|
+
"onUpdate:modelValue": (d) => r.sort = d,
|
|
250
251
|
type: "number",
|
|
251
252
|
step: "10",
|
|
252
253
|
clearable: ""
|
|
@@ -254,16 +255,16 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
254
255
|
]),
|
|
255
256
|
_: 1
|
|
256
257
|
}, 8, ["title"])),
|
|
257
|
-
e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (
|
|
258
|
+
e.dataStatus === "add" && ["2", "1"].includes(e.record.menuCategory) ? (s(), i(a, {
|
|
258
259
|
key: 9,
|
|
259
260
|
title: e.$t("message.btn.auth")
|
|
260
261
|
}, {
|
|
261
|
-
default:
|
|
262
|
-
n(
|
|
263
|
-
modelValue:
|
|
264
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
262
|
+
default: m(() => [
|
|
263
|
+
n(V, {
|
|
264
|
+
modelValue: $.value,
|
|
265
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => $.value = r)
|
|
265
266
|
}, {
|
|
266
|
-
default:
|
|
267
|
+
default: m(() => [
|
|
267
268
|
n(c, {
|
|
268
269
|
label: "add",
|
|
269
270
|
content: e.$t("message.btn.add")
|
|
@@ -289,16 +290,16 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
289
290
|
}, 8, ["modelValue"])
|
|
290
291
|
]),
|
|
291
292
|
_: 1
|
|
292
|
-
}, 8, ["title"])) :
|
|
293
|
-
e.record.menuType * 1 ?
|
|
293
|
+
}, 8, ["title"])) : p("", !0),
|
|
294
|
+
e.record.menuType * 1 ? p("", !0) : (s(), i(a, {
|
|
294
295
|
key: 10,
|
|
295
296
|
title: e.$t("message.icon"),
|
|
296
297
|
span: "24"
|
|
297
298
|
}, {
|
|
298
|
-
default:
|
|
299
|
-
n(
|
|
300
|
-
modelValue:
|
|
301
|
-
"onUpdate:modelValue": (
|
|
299
|
+
default: m(({ data: r }) => [
|
|
300
|
+
n(_, {
|
|
301
|
+
modelValue: r.icon,
|
|
302
|
+
"onUpdate:modelValue": (d) => r.icon = d
|
|
302
303
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
303
304
|
]),
|
|
304
305
|
_: 1
|
|
@@ -306,22 +307,22 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
306
307
|
]),
|
|
307
308
|
_: 1
|
|
308
309
|
}, 8, ["data", "loading"]),
|
|
309
|
-
n(
|
|
310
|
+
n(S),
|
|
310
311
|
n(j, {
|
|
311
312
|
type: "flex",
|
|
312
313
|
justify: "end",
|
|
313
314
|
style: { "padding-right": "22px" }
|
|
314
315
|
}, {
|
|
315
|
-
default:
|
|
316
|
-
n(
|
|
316
|
+
default: m(() => [
|
|
317
|
+
n(U, {
|
|
317
318
|
content: "cancel",
|
|
318
319
|
status: "warning",
|
|
319
|
-
onTap:
|
|
320
|
+
onTap: k
|
|
320
321
|
}),
|
|
321
|
-
n(
|
|
322
|
+
n(U, {
|
|
322
323
|
content: "confirm",
|
|
323
324
|
status: "primary",
|
|
324
|
-
onTap:
|
|
325
|
+
onTap: A
|
|
325
326
|
})
|
|
326
327
|
]),
|
|
327
328
|
_: 1
|