@utogether/udp-core 1.0.0 → 1.0.1-beta.1
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-Dp617CWX.js} +9 -8
- package/dist/{404-fXPl8csw.js → 404-Cz_Axb6Y.js} +15 -14
- package/dist/{500-eI5842YB.js → 500-BGCtRNse.js} +11 -10
- package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-DGGfm7IS.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.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-IV3GTnzY.js} +3 -3
- package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-qV-_VtoL.js} +10 -10
- package/dist/{Department-B4BNSiYx.js → Department-B3W-OxW8.js} +3 -3
- package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-Cw3OWxE7.js} +23 -23
- package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-BFxR2fHJ.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js} +6 -6
- package/dist/{DictView-bIS5-rK-.js → DictView-C-i7e4hZ.js} +9 -9
- package/dist/InvOrganization-cfT6riGU.js +260 -0
- package/dist/{Org-kXHSjsgJ.js → Org-CA7vTDIF.js} +3 -3
- package/dist/{Preview-CRyiwUIR.js → Preview-BlDMmpdR.js} +1 -1
- package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-Cub_85LA.js} +1 -1
- package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-hFhq5UVE.js} +10 -10
- package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-ChkWEyxT.js} +5 -5
- package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-KVyD_8Dj.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js} +6 -5
- package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-ag9NDvh2.js} +11 -11
- package/dist/{Role-BwTV2QMH.js → Role-_q3lQ8CZ.js} +3 -3
- package/dist/{RoleAssign-De1JjOun.js → RoleAssign-DZb9IRsm.js} +3 -3
- package/dist/{RolePanel-pUBXsqCM.js → RolePanel-BQb1LlhD.js} +1 -1
- package/dist/{RolePanel-E3RcdByM.js → RolePanel-CsLsz-Ds.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js} +12 -12
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js → RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js} +4 -4
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js} +8 -8
- package/dist/{Staff-Czm7A8vI.js → Staff-BSf9Ypbk.js} +3 -3
- package/dist/StaffInfo-BNKasyMF.js +4 -0
- package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js} +7 -7
- package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-Bpq0WVlH.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js} +46 -49
- package/dist/{SysUser-BGwbttRn.js → SysUser-FAABuNti.js} +2 -2
- package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-PxJeOgHm.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js} +1 -2
- package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-C-7NAGon.js} +47 -45
- package/dist/{UserInfo-BsyAcT2d.js → UserInfo-ClXKtyGo.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js} +13 -13
- package/dist/{childView-CyuLTUqC.js → childView-C_HmDQNd.js} +1 -1
- package/dist/{childView-CF83nhxb.js → childView-uUlBcTza.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js} +6 -6
- package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js} +1 -1
- package/dist/{code-rule-Bz-gnktN.js → code-rule-AgCVDKFy.js} +6 -6
- package/dist/core.es.js +4 -4
- package/dist/{cron-task-CIifSUdW.js → cron-task-C6FgQxTi.js} +11 -11
- package/dist/{frameView-_d2mqjjQ.js → frameView-BDgISK7N.js} +15 -14
- package/dist/index-DzOzUkf6.js +3388 -0
- package/dist/{layoutView-DLKVepB8.js → layoutView-yb3DV2DQ.js} +658 -653
- package/dist/{login-LREiDfFU.js → login-RRpljbkm.js} +26 -25
- package/dist/{lov-view-DDrIVILB.js → lov-view-C9-rjzZR.js} +5 -5
- package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-CzPQyFhp.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js} +17 -17
- package/dist/pda-app-Dvy3U-b6.js +696 -0
- package/dist/redirect-BqegffKC.js +15 -0
- package/dist/{resource-BCwx9fEv.js → resource-Fy0lFkSV.js} +7 -7
- package/dist/{su-welcome-189A7N4r.js → su-welcome-DYvSCUST.js} +41 -40
- package/dist/{sys-config-BZ3sejow.js → sys-config-DJ1vNQTy.js} +18 -18
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-r08LNiIZ.js → utogether-CjmJiHoE.js} +6 -6
- package/package.json +4 -2
- package/src/App.vue +3 -3
- package/src/components/udp/form-upload.vue +132 -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 +5 -4
- package/src/plugins/vxe-table/index.ts +3 -3
- 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 +9 -3
- package/src/views/system/menu/menuInfo.vue +6 -3
- 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-DzOzUkf6.js";
|
|
9
|
+
import { d as rt, b as yt, c as J } from "./utogether-CjmJiHoE.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-DzOzUkf6.js";
|
|
4
|
+
import { _ as D } from "./childView.vue_vue_type_style_index_0_lang-y0sDvYx5.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,
|
|
@@ -2,8 +2,8 @@ import { defineComponent as M, watch as Y, ref as V, resolveComponent as d, crea
|
|
|
2
2
|
import { useI18n as X } from "vue-i18n";
|
|
3
3
|
import { t as _ } 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-DzOzUkf6.js";
|
|
6
|
+
const te = { class: "ut-menu-wrapper" }, S = "/uums/menu", se = /* @__PURE__ */ M({
|
|
7
7
|
__name: "menuInfo",
|
|
8
8
|
props: {
|
|
9
9
|
show: { type: Boolean, default: !1 },
|
|
@@ -11,7 +11,7 @@ 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: ["
|
|
14
|
+
emits: ["close"],
|
|
15
15
|
setup(T, { emit: U }) {
|
|
16
16
|
const I = x().getDataDict, g = T;
|
|
17
17
|
Y(
|
|
@@ -63,20 +63,20 @@ 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
|
-
},
|
|
66
|
+
}, w = Z("xForm", null), y = V(!1), v = V(""), $ = V(["fetch"]), E = U, P = () => {
|
|
67
67
|
const { record: e, dataStatus: o } = g, { id: p, parentId: f, hasChildren: a } = e;
|
|
68
68
|
if (o !== "update")
|
|
69
69
|
return !p && !f ? "su" : ((a || o === "add") && (e.dispalyCode = ""), e.permissionCode);
|
|
70
70
|
}, B = () => {
|
|
71
|
-
|
|
71
|
+
w.value.validate(async (e) => {
|
|
72
72
|
if (!e) {
|
|
73
73
|
y.value = !0;
|
|
74
74
|
const { record: o, dataStatus: p } = g;
|
|
75
75
|
if (p === "add") {
|
|
76
76
|
o.permissionCode = `${v.value}.${o.dispalyCode}`;
|
|
77
|
-
const [f, a] = await _(b.post(
|
|
78
|
-
if (!f && !["0", "5"].includes(o.menuCategory) &&
|
|
79
|
-
const
|
|
77
|
+
const [f, a] = await _(b.post(S, [o]));
|
|
78
|
+
if (!f && !["0", "5"].includes(o.menuCategory) && $.value.length) {
|
|
79
|
+
const C = $.value.map((c, k) => ({
|
|
80
80
|
permissionCode: o.permissionCode + "." + c,
|
|
81
81
|
parentId: a[0].id,
|
|
82
82
|
menuName: D(c),
|
|
@@ -84,11 +84,11 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
84
84
|
enabled: "1",
|
|
85
85
|
sort: (k + 1) * 10
|
|
86
86
|
}));
|
|
87
|
-
await _(b.post(
|
|
87
|
+
await _(b.post(S, C));
|
|
88
88
|
}
|
|
89
89
|
y.value = !1;
|
|
90
90
|
} else
|
|
91
|
-
await _(b.put(
|
|
91
|
+
await _(b.put(S, [o])), y.value = !1;
|
|
92
92
|
h("submit");
|
|
93
93
|
}
|
|
94
94
|
});
|
|
@@ -103,10 +103,10 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
103
103
|
return (o = I[e]) == null ? void 0 : o.children.map((p) => (p.enabled = p.dictCode === "0" && g.record.menuCategory !== "0", p));
|
|
104
104
|
};
|
|
105
105
|
function h(e) {
|
|
106
|
-
E("
|
|
106
|
+
E("close", e);
|
|
107
107
|
}
|
|
108
108
|
return (e, o) => {
|
|
109
|
-
const p = d("vxe-option"), f = d("vxe-select"), a = d("vxe-form-item"),
|
|
109
|
+
const p = d("vxe-option"), f = d("vxe-select"), a = d("vxe-form-item"), C = d("vxe-input"), c = d("vxe-checkbox"), k = d("vxe-checkbox-group"), A = d("ut-icon-select"), R = d("vxe-form"), z = d("el-divider"), q = d("ut-button"), j = d("el-row"), H = d("el-drawer");
|
|
110
110
|
return r(), N("div", te, [
|
|
111
111
|
n(H, {
|
|
112
112
|
"model-value": e.show,
|
|
@@ -119,7 +119,7 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
119
119
|
default: i(() => [
|
|
120
120
|
n(R, {
|
|
121
121
|
ref_key: "xForm",
|
|
122
|
-
ref:
|
|
122
|
+
ref: w,
|
|
123
123
|
data: e.record,
|
|
124
124
|
rules: F,
|
|
125
125
|
loading: y.value,
|
|
@@ -159,7 +159,7 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
159
159
|
span: "24"
|
|
160
160
|
}, {
|
|
161
161
|
default: i(({ data: l }) => [
|
|
162
|
-
n(
|
|
162
|
+
n(C, {
|
|
163
163
|
modelValue: l.dispalyCode,
|
|
164
164
|
"onUpdate:modelValue": (s) => l.dispalyCode = s,
|
|
165
165
|
clearable: "",
|
|
@@ -244,7 +244,7 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
244
244
|
span: "24"
|
|
245
245
|
}, {
|
|
246
246
|
default: i(({ data: l }) => [
|
|
247
|
-
n(
|
|
247
|
+
n(C, {
|
|
248
248
|
modelValue: l.sort,
|
|
249
249
|
"onUpdate:modelValue": (s) => l.sort = s,
|
|
250
250
|
type: "number",
|
|
@@ -260,8 +260,8 @@ const te = { class: "ut-menu-wrapper" }, w = "/uums/menu", se = /* @__PURE__ */
|
|
|
260
260
|
}, {
|
|
261
261
|
default: i(() => [
|
|
262
262
|
n(k, {
|
|
263
|
-
modelValue:
|
|
264
|
-
"onUpdate:modelValue": o[0] || (o[0] = (l) =>
|
|
263
|
+
modelValue: $.value,
|
|
264
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => $.value = l)
|
|
265
265
|
}, {
|
|
266
266
|
default: i(() => [
|
|
267
267
|
n(c, {
|