@utogether/udp-core 2.0.0-beta.24 → 2.0.0-beta.26
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-D6Wb3JJh.js +72 -0
- package/dist/404-B_HNbPNV.js +72 -0
- package/dist/500-BMemTTy1.js +77 -0
- package/dist/AuthorityInfo-6wHxwiFM.js +91 -0
- package/dist/AuthorityPanel-OqF_DvXA.js +98 -0
- package/dist/Company-BLXSfow0.js +21 -0
- package/dist/CompanyPanel-B4kRZ5Cg.js +199 -0
- package/dist/DataSet-CuGZcKC-.js +141 -0
- package/dist/Department-oFhsa7cd.js +21 -0
- package/dist/DepartmentPanel-B1UGpu-r.js +242 -0
- package/dist/DepartmentPanel-BL58AdoT.js +2 -0
- package/dist/DesignPanel-DmkFVw1N.js +1196 -0
- package/dist/DictView-CC5yMzOq.js +100 -0
- package/dist/File-WJXjGYxr.js +89 -0
- package/dist/InvOrganization-BwMmD8Ua.js +76 -0
- package/dist/Org-HgnOWubi.js +76 -0
- package/dist/Preview-CAzWxLmP.js +45 -0
- package/dist/ReIcon-DecitXmg.js +413 -0
- package/dist/ReportDefine-BgLM-Rjk.js +10 -0
- package/dist/ReportDesign-DwchGG2P.js +158 -0
- package/dist/ReportQuery-D5jaRJEn.js +101 -0
- package/dist/ReportQueryFrom-CNlmtYey.js +198 -0
- package/dist/ReportTemplate-CNcTmccs.js +162 -0
- package/dist/Role-Be8WfdCA.js +21 -0
- package/dist/RoleAssign-CtehGAUf.js +22 -0
- package/dist/RolePanel-CAwITg_q.js +131 -0
- package/dist/RolePanel-SN0FGFZ7.js +176 -0
- package/dist/ScrollPanel-DW30pGz1.js +88 -0
- package/dist/Staff-V2YsNKcj.js +22 -0
- package/dist/StaffInfo-CKRPW0r4.js +149 -0
- package/dist/StaffPanel-BxcgMg7u.js +143 -0
- package/dist/SysUser-Dxyj5w5m.js +12 -0
- package/dist/SysUserPanel-DI6CWcZo.js +365 -0
- package/dist/SystemMenu-BBHREM8T.js +154 -0
- package/dist/UserInfo-BMVQ0xwE.js +194 -0
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
- package/dist/api-BFNxcxSN.js +30 -0
- package/dist/authority-BJFEUdrh.js +20 -0
- package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
- package/dist/childView-BBjPEraB.js +184 -0
- package/dist/childView-DNqG2UVm.js +181 -0
- package/dist/code-rule-QFrhqFrW.js +151 -0
- package/dist/contant-Q77dU_V3.js +4 -0
- package/dist/core.es.js +6 -23
- package/dist/cron-task-BpUDKEAU.js +131 -0
- package/dist/flow-task-DAc2NrDU.js +11 -0
- package/dist/frameView-Di0zJZUR.js +39 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/layout-home-BVp7vYLR.js +239 -0
- package/dist/layoutView-B6Mx2ERA.js +2662 -0
- package/dist/log-in-BrNB0mLz.js +117 -0
- package/dist/log-out-dYfqvzy6.js +111 -0
- package/dist/login-D_Hjy3Jd.js +231 -0
- package/dist/login-log-CJak-ANA.js +79 -0
- package/dist/lov-view-DM5Nm5tW.js +95 -0
- package/dist/menuInfo-BlOY1KZW.js +346 -0
- package/dist/mitt-CQgI7DYU.js +27 -0
- package/dist/pda-app-CA7YI37u.js +589 -0
- package/dist/redirect-N0k4tImU.js +16 -0
- package/dist/resource-CfQTHFcs.js +94 -0
- package/dist/su-welcome-DVD3S_du.js +799 -0
- package/dist/sys-config-Ddb3vBpK.js +316 -0
- package/dist/system-Cm3lyBas.js +1528 -0
- package/dist/udp-core-DaQd5CF1.js +2028 -0
- package/dist/udp-core.css +2 -1
- package/dist/useDataThemeChange-DJ4K3VGp.js +226 -0
- package/dist/useNav-BhOJIdrJ.js +106 -0
- package/dist/utogether-l7JXs4Lv.js +4 -0
- package/dist/water-mark-WDQZ9YqB.js +119 -0
- package/dist/wecom-push-kWkAVRCj.js +77 -0
- package/package.json +1 -1
- package/src/App.vue +5 -0
- package/src/api/index.ts +51 -51
- package/src/components/udp/grid/index.vue +9 -11
- package/src/components/udp/index.ts +9 -8
- package/src/components/udp/lov/index.vue +430 -0
- package/src/components/udp/upload/index.vue +444 -444
- package/src/components/udp/utils.ts +420 -414
- package/src/main.ts +4 -6
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +999 -998
- package/src/router/utils.ts +2 -3
- package/src/views/login/login-view.vue +297 -301
- package/src/views/ulogin/login.vue +3 -32
- package/tsconfig.json +1 -1
- package/vite.config.ts +8 -3
- package/dist/403-DDCAPCYb.js +0 -65
- package/dist/404-BclWW4UB.js +0 -65
- package/dist/500-BAggMgTl.js +0 -67
- package/dist/AuthorityInfo-liCxYVNc.js +0 -4
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
- package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
- package/dist/Company-DjaOAaWM.js +0 -25
- package/dist/CompanyPanel-Dp_2z717.js +0 -206
- package/dist/DataSet-DT-rGICv.js +0 -147
- package/dist/Department-Bp5RGbl9.js +0 -25
- package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
- package/dist/DesignPanel-BS2ioHd_.js +0 -4
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
- package/dist/DictView-pYJXt6IS.js +0 -111
- package/dist/InvOrganization-D90gRzlN.js +0 -74
- package/dist/Org-Dk4KuIx2.js +0 -39
- package/dist/Preview-DpZR6uKs.js +0 -48
- package/dist/ReportDefine-PtJnfaLw.js +0 -10
- package/dist/ReportDesign-4HWkcTtA.js +0 -165
- package/dist/ReportQuery-BPY1lWFn.js +0 -75
- package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
- package/dist/ReportTemplate-C2F3oy8I.js +0 -161
- package/dist/Role-iTP6DYOi.js +0 -25
- package/dist/RoleAssign-DIYNHQeF.js +0 -26
- package/dist/RolePanel-0ojFIz9G.js +0 -4
- package/dist/RolePanel-B0Yr5vjo.js +0 -4
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
- package/dist/Staff-sftZ0bIV.js +0 -26
- package/dist/StaffInfo-BG2FMXzR.js +0 -4
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
- package/dist/StaffPanel-BydqiitC.js +0 -4
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
- package/dist/SysUser-qMGVHpJ_.js +0 -15
- package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
- package/dist/SystemMenu-DUbWmLip.js +0 -156
- package/dist/UserInfo-DNkiTdWm.js +0 -4
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/childView-CjUjh8Da.js +0 -4
- package/dist/childView-DT9luEEK.js +0 -4
- package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
- package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
- package/dist/code-rule-uOazxFfn.js +0 -148
- package/dist/cron-task-DEykunjo.js +0 -135
- package/dist/flow-task-B07st2aD.js +0 -10
- package/dist/frameView-FxzlbkeM.js +0 -44
- package/dist/index-BnxyUGKa.js +0 -7944
- package/dist/layout-home-C0jme8Ju.js +0 -232
- package/dist/layoutView-BqMAHIxF.js +0 -3239
- package/dist/log-in-skZaWMBY.js +0 -117
- package/dist/log-out-BiND7muW.js +0 -130
- package/dist/login-C-184YPO.js +0 -235
- package/dist/login-log-BEHYT0v0.js +0 -70
- package/dist/lov-view-Df-swRfy.js +0 -99
- package/dist/menuInfo-CpyjX4a4.js +0 -4
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
- package/dist/pda-app-DP87aTBc.js +0 -710
- package/dist/redirect-BqegffKC.js +0 -15
- package/dist/resource-CAldbnw4.js +0 -97
- package/dist/su-welcome-DoBUqadB.js +0 -42225
- package/dist/sys-config-hGuE7DUf.js +0 -385
- package/dist/useNav-Cf_e5pBY.js +0 -92
- package/dist/utogether-MlnyYtNS.js +0 -4
- package/dist/wecom-push-DR7NsNro.js +0 -70
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { http as e } from "@utogether/utils";
|
|
2
|
+
//#region src/config/index.ts
|
|
3
|
+
var t = {}, n = {}, r = (e, n) => {
|
|
4
|
+
t = Object.assign(t, n), e.config.globalProperties.$config = i();
|
|
5
|
+
}, i = () => t, a = (e = {}) => {
|
|
6
|
+
n = e;
|
|
7
|
+
}, o = () => n, s = () => i().ResponsiveStorageNameSpace, c = () => ({
|
|
8
|
+
post: (t, n, r) => e.post(`${f(t)}${t}`, n, r),
|
|
9
|
+
get: (t, n, r) => e.get(`${f(t)}${t}`, n, r),
|
|
10
|
+
put: (t, n) => e.put(`${f(t)}${t}`, n),
|
|
11
|
+
delete: (t, n) => e.delete(`${f(t)}${t}`, n)
|
|
12
|
+
}), l = (t) => {
|
|
13
|
+
e.setRouter(t);
|
|
14
|
+
}, u = (t) => {
|
|
15
|
+
e.setBaseUrl(t);
|
|
16
|
+
}, d = window.location.origin + "/gateway", f = (e) => e && o().VITE_DEBUG === "true" && ![
|
|
17
|
+
"/uath/",
|
|
18
|
+
"/uwfl/",
|
|
19
|
+
"/uums/",
|
|
20
|
+
"/upfm/",
|
|
21
|
+
"/urpt/",
|
|
22
|
+
"/usch/"
|
|
23
|
+
].some((t) => e.includes(t)) ? o().VITE_DEBUG_URL : o().VITE_BASE_URL === "origin" ? d : o().VITE_BASE_URL, p = () => ({
|
|
24
|
+
post: (t, n, r) => e.post(`${m()}${t}`, n, r),
|
|
25
|
+
get: (t, n, r) => e.get(`${m()}${t}`, n, r),
|
|
26
|
+
put: (t, n) => e.put(`${m()}${t}`, n),
|
|
27
|
+
delete: (t, n) => e.delete(`${m()}${t}`, n)
|
|
28
|
+
}), m = () => o().VITE_DEBUG_URL;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { l as a, s as c, u as i, r as l, p as n, i as o, c as r, o as s, f as t, a as u };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { m as e, n as t } from "./system-Cm3lyBas.js";
|
|
2
|
+
import { isArray as n } from "xe-utils";
|
|
3
|
+
//#region src/utils/authority/index.ts
|
|
4
|
+
var r = (r) => {
|
|
5
|
+
if (!r) return !0;
|
|
6
|
+
let i = e.currentRoute.value.meta?.permissionCode;
|
|
7
|
+
if (!i) return !0;
|
|
8
|
+
n(r) || (r = [r]);
|
|
9
|
+
let a = t().getButtonAuth;
|
|
10
|
+
if (!a) return !0;
|
|
11
|
+
let o = !1;
|
|
12
|
+
return r.forEach((e) => {
|
|
13
|
+
if (!o) {
|
|
14
|
+
let t = `${i}.${e}`;
|
|
15
|
+
o = a.includes(t);
|
|
16
|
+
}
|
|
17
|
+
}), o;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/await-to-js@3.0.0/node_modules/await-to-js/dist/await-to-js.es5.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return e.then(function(e) {
|
|
4
|
+
return [null, e];
|
|
5
|
+
}).catch(function(e) {
|
|
6
|
+
return t && Object.assign(e, t), [e, void 0];
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { e as t };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { I as e, t } from "./system-Cm3lyBas.js";
|
|
2
|
+
import { r as n } from "./api-BFNxcxSN.js";
|
|
3
|
+
import { t as r } from "./await-to-js.es5-DkWYmPXW.js";
|
|
4
|
+
import { createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, resolveComponent as l, resolveDirective as u, withCtx as d, withDirectives as f } from "vue";
|
|
5
|
+
import { useRender as p } from "@utogether/utils";
|
|
6
|
+
//#region src/views/udev/lov/childView.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var m = { class: "ut-loview-wrapper" }, h = "/upfm/v1/lovViewHeader", g = "/upfm/v1/lovViewLine", _ = /* @__PURE__ */ o({
|
|
8
|
+
__name: "childView",
|
|
9
|
+
props: {
|
|
10
|
+
record: { default: () => ({}) },
|
|
11
|
+
show: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["onClose"],
|
|
17
|
+
setup(e, { emit: o }) {
|
|
18
|
+
let _ = e, v = p(), y = t().dicts, b = c(!1), x = {
|
|
19
|
+
value: "dictCode",
|
|
20
|
+
label: "dictName"
|
|
21
|
+
}, S = c(null), C = [
|
|
22
|
+
{
|
|
23
|
+
field: "lovCode",
|
|
24
|
+
disabled: !0
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
field: "lovName",
|
|
28
|
+
required: !0
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
field: "valueField",
|
|
32
|
+
required: !0
|
|
33
|
+
},
|
|
34
|
+
{ field: "lovTitle" },
|
|
35
|
+
{
|
|
36
|
+
field: "lovType",
|
|
37
|
+
code: "SU.LOV.TYPE",
|
|
38
|
+
required: !0
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
field: "lovUrl",
|
|
42
|
+
required: !0,
|
|
43
|
+
visible: _.record.lovType === "url"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
field: "sqlStatement",
|
|
47
|
+
span: 24,
|
|
48
|
+
visible: _.record.lovType === "sql",
|
|
49
|
+
itemRender: {
|
|
50
|
+
name: "$textarea",
|
|
51
|
+
props: { rows: 5 }
|
|
52
|
+
},
|
|
53
|
+
required: !0
|
|
54
|
+
}
|
|
55
|
+
], w = [
|
|
56
|
+
{
|
|
57
|
+
type: "checkbox",
|
|
58
|
+
width: 50,
|
|
59
|
+
align: "center"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
field: "seqNo",
|
|
63
|
+
required: !0,
|
|
64
|
+
width: 100,
|
|
65
|
+
editRender: v.renderNumber()
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
field: "colField",
|
|
69
|
+
required: !0,
|
|
70
|
+
editRender: v.renderInput()
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
field: "colTitle",
|
|
74
|
+
required: !0,
|
|
75
|
+
editRender: v.renderInput()
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
field: "colWidth",
|
|
79
|
+
required: !0,
|
|
80
|
+
width: 120,
|
|
81
|
+
editRender: v.renderNumber()
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
field: "fieldType",
|
|
85
|
+
width: 120,
|
|
86
|
+
editRender: v.renderDict("SU.FIELD.TYPE", O),
|
|
87
|
+
formatter: ["formatDict", "SU.FIELD.TYPE"]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
field: "dictCode",
|
|
91
|
+
title: "message.dictName",
|
|
92
|
+
width: 120,
|
|
93
|
+
editRender: v.renderSelectLocal({
|
|
94
|
+
options: y,
|
|
95
|
+
optionProps: x
|
|
96
|
+
}),
|
|
97
|
+
formatter: ["formatSelectLocal", [
|
|
98
|
+
y,
|
|
99
|
+
"dictCode",
|
|
100
|
+
"dictName"
|
|
101
|
+
]]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
field: "isSearch",
|
|
105
|
+
width: 120,
|
|
106
|
+
required: !0,
|
|
107
|
+
editRender: v.renderDict("SU.WHETHER"),
|
|
108
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
field: "isCol",
|
|
112
|
+
width: 120,
|
|
113
|
+
required: !0,
|
|
114
|
+
editRender: v.renderDict("SU.WHETHER"),
|
|
115
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
116
|
+
}
|
|
117
|
+
], T = c(null), E = window.innerHeight - 195, D = { editActived({ row: e }) {
|
|
118
|
+
w[6].editRender.props.disabled = e.fieldType !== "dictCode";
|
|
119
|
+
} };
|
|
120
|
+
function O(e) {
|
|
121
|
+
e.row.dictName = "", w[6].editRender.props.disabled = e.row.fieldType !== "dictCode", w[6].required = e.row.fieldType !== "dictCode";
|
|
122
|
+
}
|
|
123
|
+
let k = () => {
|
|
124
|
+
S.value.validateForm(async (e) => {
|
|
125
|
+
if (!e) {
|
|
126
|
+
b.value = !0;
|
|
127
|
+
let [e] = await r(n().put(h, [_.record]));
|
|
128
|
+
if (!e) {
|
|
129
|
+
let e = T.value.getInstance().getRecordset();
|
|
130
|
+
e.insertRecords.length && await r(n().post(g, e.insertRecords)), e.updateRecords.length && await r(n().put(g, e.updateRecords));
|
|
131
|
+
}
|
|
132
|
+
b.value = !1;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}, A = o;
|
|
136
|
+
function j() {
|
|
137
|
+
A("onClose");
|
|
138
|
+
}
|
|
139
|
+
return (t, n) => {
|
|
140
|
+
let r = l("ut-button"), o = l("ut-form"), c = l("ut-divider"), p = l("ut-grid"), h = l("ut-content"), _ = l("vxe-drawer"), v = u("spinning");
|
|
141
|
+
return s(), i("div", m, [a(_, {
|
|
142
|
+
"model-value": e.show,
|
|
143
|
+
position: "right",
|
|
144
|
+
"show-header": !1,
|
|
145
|
+
width: "90%"
|
|
146
|
+
}, {
|
|
147
|
+
default: d(() => [f((s(), i("div", null, [a(h, {
|
|
148
|
+
title: t.$t("message.title.lovView"),
|
|
149
|
+
onClose: j
|
|
150
|
+
}, {
|
|
151
|
+
header: d(() => [a(r, {
|
|
152
|
+
icon: "ri-save-3-fill",
|
|
153
|
+
content: "save",
|
|
154
|
+
onTap: n[0] ||= (e) => k()
|
|
155
|
+
})]),
|
|
156
|
+
body: d(() => [
|
|
157
|
+
a(o, {
|
|
158
|
+
ref_key: "formRef",
|
|
159
|
+
ref: S,
|
|
160
|
+
record: e.record,
|
|
161
|
+
items: C,
|
|
162
|
+
"data-status": "update"
|
|
163
|
+
}, null, 8, ["record"]),
|
|
164
|
+
a(c, { title: t.$t("message.title.lovColConfig") }, null, 8, ["title"]),
|
|
165
|
+
a(p, {
|
|
166
|
+
ref_key: "xgrid",
|
|
167
|
+
ref: T,
|
|
168
|
+
columns: w,
|
|
169
|
+
url: g,
|
|
170
|
+
"default-value": { headerId: e.record.id },
|
|
171
|
+
"default-params": { headerId: e.record.id },
|
|
172
|
+
height: E,
|
|
173
|
+
events: D
|
|
174
|
+
}, null, 8, ["default-value", "default-params"])
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}, 8, ["title"])])), [[v, b.value]])]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["model-value"])]);
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
}), v = /* @__PURE__ */ e({ default: () => y }), y = _;
|
|
183
|
+
//#endregion
|
|
184
|
+
export { v as n, y as t };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { I as e, t } from "./system-Cm3lyBas.js";
|
|
2
|
+
import { r as n } from "./api-BFNxcxSN.js";
|
|
3
|
+
import { t as r } from "./await-to-js.es5-DkWYmPXW.js";
|
|
4
|
+
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, defineComponent as l, openBlock as u, ref as d, resolveComponent as f, withCtx as p } from "vue";
|
|
5
|
+
import { successMessage as m, useRender as h } from "@utogether/utils";
|
|
6
|
+
import { clone as g } from "xe-utils";
|
|
7
|
+
import { useI18n as _ } from "vue-i18n";
|
|
8
|
+
import { VxeUI as v } from "vxe-pc-ui";
|
|
9
|
+
//#region src/views/udev/dict/childView.vue?vue&type=script&setup=true&lang.tsx
|
|
10
|
+
var y = { class: "u-dict-config_wrapper" }, b = "/upfm/v1/lov", x = /* @__PURE__ */ l({
|
|
11
|
+
__name: "childView",
|
|
12
|
+
props: {
|
|
13
|
+
record: { default: () => ({}) },
|
|
14
|
+
show: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["onClose"],
|
|
20
|
+
setup(e, { emit: l }) {
|
|
21
|
+
let x = e, S = h(), { t: C } = _(), w = d(!1), T = d(null), E = d(null), D = d({}), O = d("add"), k = window.innerHeight - 70, A = [
|
|
22
|
+
{
|
|
23
|
+
field: "dictCode",
|
|
24
|
+
title: "message.udp.dictCode",
|
|
25
|
+
required: !0,
|
|
26
|
+
treeNode: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
field: "dictName",
|
|
30
|
+
title: "message.udp.dictName",
|
|
31
|
+
required: !0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
field: "dictDesc",
|
|
35
|
+
title: "message.udp.dictDesc"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
field: "remarks",
|
|
39
|
+
title: "message.remark"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
field: "enabled",
|
|
43
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
field: "operate",
|
|
47
|
+
title: "message.operate",
|
|
48
|
+
width: 200,
|
|
49
|
+
fixed: "right",
|
|
50
|
+
slots: { default: ({ row: e }) => [c(i, null, [
|
|
51
|
+
c(f("ut-button"), {
|
|
52
|
+
content: "add",
|
|
53
|
+
status: "warning",
|
|
54
|
+
auth: "edit",
|
|
55
|
+
icon: "ri-add-line",
|
|
56
|
+
onTap: () => N(e)
|
|
57
|
+
}, null),
|
|
58
|
+
c(f("ut-button"), {
|
|
59
|
+
content: "edit",
|
|
60
|
+
status: "primary",
|
|
61
|
+
auth: "edit",
|
|
62
|
+
onTap: () => F(e)
|
|
63
|
+
}, null),
|
|
64
|
+
c(f("ut-button"), {
|
|
65
|
+
content: "del",
|
|
66
|
+
status: "danger",
|
|
67
|
+
auth: "del",
|
|
68
|
+
onTap: () => P(e)
|
|
69
|
+
}, null)
|
|
70
|
+
])] }
|
|
71
|
+
}
|
|
72
|
+
], j = [
|
|
73
|
+
{
|
|
74
|
+
field: "dictCode",
|
|
75
|
+
title: "message.udp.dictCode",
|
|
76
|
+
required: !0
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
field: "dictName",
|
|
80
|
+
title: "message.udp.dictName",
|
|
81
|
+
required: !0
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
field: "dictDesc",
|
|
85
|
+
title: "message.udp.dictDesc"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
field: "remarks",
|
|
89
|
+
title: "message.remark"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
field: "enabled",
|
|
93
|
+
itemRender: S.renderSwitch({
|
|
94
|
+
openValue: "1",
|
|
95
|
+
closeValue: "0",
|
|
96
|
+
defaultValue: "1"
|
|
97
|
+
})
|
|
98
|
+
}
|
|
99
|
+
], M = () => {
|
|
100
|
+
w.value = !0, O.value = "add", D.value = {
|
|
101
|
+
enabled: "1",
|
|
102
|
+
parentId: x.record.id
|
|
103
|
+
};
|
|
104
|
+
}, N = (e) => {
|
|
105
|
+
w.value = !0, O.value = "add", D.value = {
|
|
106
|
+
enabled: "1",
|
|
107
|
+
parentId: e.id
|
|
108
|
+
};
|
|
109
|
+
}, P = async (e) => {
|
|
110
|
+
await v.modal.confirm(C("message.delRecord")) === "confirm" && (await n().delete(b, [e]), m(), T.value.refreshData());
|
|
111
|
+
}, F = async (e) => {
|
|
112
|
+
w.value = !0, O.value = "edit", D.value = g(e, !0);
|
|
113
|
+
}, I = async () => {
|
|
114
|
+
let e = {
|
|
115
|
+
...D.value,
|
|
116
|
+
orgId: t().getOrgId,
|
|
117
|
+
organizationId: t().getOrganizationId
|
|
118
|
+
};
|
|
119
|
+
E.value.showLoading();
|
|
120
|
+
let i = O.value === "add" ? "post" : "put", [a] = await r(n()[i](b, [e]));
|
|
121
|
+
E.value.hiddenLoading(), !a && (w.value = O.value !== "edit", O.value === "add" && (D.value = {
|
|
122
|
+
enabled: "1",
|
|
123
|
+
parentId: D.value.parentId
|
|
124
|
+
}), m(), T.value.refreshData());
|
|
125
|
+
}, L = (e) => {
|
|
126
|
+
e === "add" && M();
|
|
127
|
+
}, R = l;
|
|
128
|
+
function z() {
|
|
129
|
+
R("onClose");
|
|
130
|
+
}
|
|
131
|
+
return (t, n) => {
|
|
132
|
+
let r = f("ut-grid"), i = f("ut-modal-form"), l = f("vxe-drawer");
|
|
133
|
+
return u(), s("div", y, [c(l, {
|
|
134
|
+
"model-value": e.show,
|
|
135
|
+
title: t.$t("message.title.dictList", { name: e.record.dictName }),
|
|
136
|
+
position: "right",
|
|
137
|
+
"destroy-on-close": "",
|
|
138
|
+
width: "67%",
|
|
139
|
+
onClose: z
|
|
140
|
+
}, {
|
|
141
|
+
default: p(() => [c(r, {
|
|
142
|
+
ref_key: "xgrid",
|
|
143
|
+
ref: T,
|
|
144
|
+
columns: A,
|
|
145
|
+
height: k,
|
|
146
|
+
"default-params": { parentId: e.record.id },
|
|
147
|
+
buttons: [{
|
|
148
|
+
code: "del",
|
|
149
|
+
auth: "/"
|
|
150
|
+
}],
|
|
151
|
+
"tree-config": {
|
|
152
|
+
childrenField: "children",
|
|
153
|
+
expandAll: !0
|
|
154
|
+
},
|
|
155
|
+
url: "/upfm/v1/lov/children",
|
|
156
|
+
mode: "form",
|
|
157
|
+
onButtonClick: L
|
|
158
|
+
}, null, 8, ["default-params"]), w.value ? (u(), a(i, {
|
|
159
|
+
key: 0,
|
|
160
|
+
ref_key: "xmodal",
|
|
161
|
+
ref: E,
|
|
162
|
+
record: D.value,
|
|
163
|
+
items: j,
|
|
164
|
+
width: "400",
|
|
165
|
+
height: "320",
|
|
166
|
+
"data-status": O.value,
|
|
167
|
+
title: t.$t("message.title.dictInfo", { name: e.record.dictName }),
|
|
168
|
+
onClose: n[0] ||= (e) => w.value = !1,
|
|
169
|
+
onConfirm: I
|
|
170
|
+
}, null, 8, [
|
|
171
|
+
"record",
|
|
172
|
+
"data-status",
|
|
173
|
+
"title"
|
|
174
|
+
])) : o("", !0)]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["model-value", "title"])]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}), S = /* @__PURE__ */ e({ default: () => C }), C = x;
|
|
180
|
+
//#endregion
|
|
181
|
+
export { S as n, C as t };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { r as e } from "./api-BFNxcxSN.js";
|
|
2
|
+
import { t } from "./await-to-js.es5-DkWYmPXW.js";
|
|
3
|
+
import { createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, nextTick as s, openBlock as c, ref as l, resolveComponent as u } from "vue";
|
|
4
|
+
import { useRender as d } from "@utogether/utils";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/views/udev/coderule/code-rule.vue
|
|
7
|
+
var f = /* @__PURE__ */ o({
|
|
8
|
+
name: "CodeRule",
|
|
9
|
+
setup(o) {
|
|
10
|
+
let f = d(), p = l(null), m = l(null), h = l(!1), g = l(!1), _ = l({}), v = l(0), y = "/upfm/v1/codingRule", b = [{
|
|
11
|
+
field: "ruleCode",
|
|
12
|
+
title: "message.udp.ruleCode"
|
|
13
|
+
}, {
|
|
14
|
+
field: "ruleName",
|
|
15
|
+
title: "message.udp.ruleName"
|
|
16
|
+
}], x = [
|
|
17
|
+
{
|
|
18
|
+
type: "checkbox",
|
|
19
|
+
width: 40,
|
|
20
|
+
align: "center"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
field: "ruleCode",
|
|
24
|
+
title: "message.udp.ruleCode",
|
|
25
|
+
required: !0,
|
|
26
|
+
editRender: f.renderInput()
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
field: "ruleName",
|
|
30
|
+
title: "message.udp.ruleName",
|
|
31
|
+
required: !0,
|
|
32
|
+
editRender: f.renderInput()
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
field: "remark",
|
|
36
|
+
editRender: f.renderInput()
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
field: "haveBeenUsed",
|
|
40
|
+
title: "message.udp.haveBeenUsed",
|
|
41
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
field: "enabled",
|
|
45
|
+
width: 80,
|
|
46
|
+
cellRender: f.renderEnabled(T)
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
field: "operate",
|
|
50
|
+
width: 80,
|
|
51
|
+
fixed: "right",
|
|
52
|
+
slots: { default: ({ row: e }) => {
|
|
53
|
+
let t = e.haveBeenUsed === "Y" ? "look" : "encode", n = e.haveBeenUsed === "Y" ? "info" : "primary";
|
|
54
|
+
return [a(u("ut-button"), {
|
|
55
|
+
content: t,
|
|
56
|
+
status: n,
|
|
57
|
+
onTap: () => C(e)
|
|
58
|
+
}, null)];
|
|
59
|
+
} }
|
|
60
|
+
}
|
|
61
|
+
], S = [
|
|
62
|
+
{
|
|
63
|
+
type: "checkbox",
|
|
64
|
+
width: 40,
|
|
65
|
+
align: "center"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
field: "orderSeq",
|
|
69
|
+
title: "message.seqNo",
|
|
70
|
+
required: !0,
|
|
71
|
+
editRender: f.renderNumber()
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
field: "fieldType",
|
|
75
|
+
required: !0,
|
|
76
|
+
editRender: f.renderDict("SU.CODE.RULE.TYPE"),
|
|
77
|
+
formatter: ["formatDict", "SU.CODE.RULE.TYPE"]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
field: "fieldValue",
|
|
81
|
+
title: "message.udp.fieldValue",
|
|
82
|
+
editRender: f.renderInput()
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
field: "dateMask",
|
|
86
|
+
title: "message.udp.dateMask",
|
|
87
|
+
editRender: f.renderDict("SU.DATE.MASK")
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
field: "resetFrequency",
|
|
91
|
+
title: "message.udp.resetFrequency",
|
|
92
|
+
editRender: f.renderDict("SU.RESET.FREQUENCY")
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
field: "seqLength",
|
|
96
|
+
title: "message.udp.seqLength",
|
|
97
|
+
editRender: f.renderInput()
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
field: "startValue",
|
|
101
|
+
title: "message.udp.startValue",
|
|
102
|
+
editRender: f.renderInput()
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
field: "currentValue",
|
|
106
|
+
title: "message.udp.currentValue"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
field: "remark",
|
|
110
|
+
editRender: f.renderInput()
|
|
111
|
+
}
|
|
112
|
+
], C = async (e) => {
|
|
113
|
+
g.value = e.haveBeenUsed === "Y", _.value = { codingRuleId: e.id }, h.value = !0, await s(), m.value.reloadGrid(), v.value++;
|
|
114
|
+
}, w = (e) => e.haveBeenUsed !== "Y";
|
|
115
|
+
async function T({ row: n }) {
|
|
116
|
+
let [r] = await t(e().put(y, [n]));
|
|
117
|
+
!r && p.value.refreshData();
|
|
118
|
+
}
|
|
119
|
+
return (e, t) => {
|
|
120
|
+
let o = u("ut-grid"), s = u("ut-modal-grid");
|
|
121
|
+
return c(), i("div", null, [a(o, {
|
|
122
|
+
ref_key: "xgrid",
|
|
123
|
+
ref: p,
|
|
124
|
+
items: b,
|
|
125
|
+
columns: x,
|
|
126
|
+
url: y,
|
|
127
|
+
"check-method": w
|
|
128
|
+
}, null, 512), h.value ? (c(), n(s, {
|
|
129
|
+
ref_key: "xmgrid",
|
|
130
|
+
ref: m,
|
|
131
|
+
key: v.value,
|
|
132
|
+
"default-value": _.value,
|
|
133
|
+
"default-params": _.value,
|
|
134
|
+
columns: S,
|
|
135
|
+
url: y + "Detail",
|
|
136
|
+
editable: !g.value,
|
|
137
|
+
"show-footer": !1,
|
|
138
|
+
width: "80%",
|
|
139
|
+
title: "编码段设置",
|
|
140
|
+
onClose: t[0] ||= (e) => h.value = !1
|
|
141
|
+
}, null, 8, [
|
|
142
|
+
"default-value",
|
|
143
|
+
"default-params",
|
|
144
|
+
"url",
|
|
145
|
+
"editable"
|
|
146
|
+
])) : r("", !0)]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
//#endregion
|
|
151
|
+
export { f as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/contant/index.ts
|
|
2
|
+
var e = "menu_zh", t = "menu_en", n = "authorized-token", r = "kCookies_token", i = "kSysConfig", a = "loginer", o = "k-UTOGETHER-Q66!", s = "UDP_PWSD";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as a, n as c, t as i, o as n, s as o, a as r, i as s, r as t };
|
package/dist/core.es.js
CHANGED
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
u as getPlatform,
|
|
8
|
-
i as getProcessMenu,
|
|
9
|
-
n as getServiceApi,
|
|
10
|
-
l as handleAliveRoute,
|
|
11
|
-
g as hasAuthority,
|
|
12
|
-
c as initDict,
|
|
13
|
-
h as lifeCycleEvent,
|
|
14
|
-
m as remainingRouters,
|
|
15
|
-
S as routerBefore,
|
|
16
|
-
f as store,
|
|
17
|
-
y as useDataThemeChange,
|
|
18
|
-
P as useLayout,
|
|
19
|
-
R as useMultiTagsStore,
|
|
20
|
-
d as usePermissionStore,
|
|
21
|
-
v as useSystemStore,
|
|
22
|
-
A as userMonitor
|
|
23
|
-
};
|
|
1
|
+
import { A as e, D as t, M as n, N as r, P as i, S as a, _ as o, a as s, b as c, f as l, h as u, j as d, n as f, t as p, u as m } from "./system-Cm3lyBas.js";
|
|
2
|
+
import { t as h } from "./udp-core-DaQd5CF1.js";
|
|
3
|
+
import { r as g } from "./api-BFNxcxSN.js";
|
|
4
|
+
import { i as _, t as v } from "./useDataThemeChange-DJ4K3VGp.js";
|
|
5
|
+
import { t as y } from "./authority-BJFEUdrh.js";
|
|
6
|
+
export { m as constantRoutes, h as default, o as delCurrentRoute, r as getBrower, i as getPlatform, c as getProcessMenu, g as getServiceApi, a as handleAliveRoute, y as hasAuthority, d as initDict, s as lifeCycleEvent, l as remainingRouters, u as routerBefore, e as store, v as useDataThemeChange, _ as useLayout, t as useMultiTagsStore, f as usePermissionStore, p as useSystemStore, n as userMonitor };
|