@utogether/udp-core 2.0.0-beta.25 → 2.0.0-beta.27
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-gdcH0-Bo.js +65 -0
- package/dist/404-Se2SF97M.js +65 -0
- package/dist/500-B6j9AqLo.js +67 -0
- package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -0
- package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
- package/dist/Company-BzSVBSC4.js +25 -0
- package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
- package/dist/DataSet-iBHzs75s.js +147 -0
- package/dist/Department-BkgseHo8.js +25 -0
- package/dist/DepartmentPanel-Sen93_2M.js +249 -0
- package/dist/DesignPanel-pqDcwaFC.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
- package/dist/DictView-CJLG4LlE.js +110 -0
- package/dist/InvOrganization-D0Jq1IAa.js +74 -0
- package/dist/Org-CO_1WT39.js +39 -0
- package/dist/Preview-DLI4Bwel.js +48 -0
- package/dist/ReportDefine-Cw46OnJ_.js +10 -0
- package/dist/ReportDesign-D4sHTXT7.js +165 -0
- package/dist/ReportQuery-DtOCvQSN.js +74 -0
- package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
- package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
- package/dist/Role-Df77BBD-.js +25 -0
- package/dist/RoleAssign-BrunouML.js +26 -0
- package/dist/RolePanel-DSVwqhiD.js +4 -0
- package/dist/RolePanel-HLA7XBlN.js +4 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
- package/dist/Staff-BeL1xcRf.js +26 -0
- package/dist/StaffInfo-CIfnltyX.js +4 -0
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
- package/dist/StaffPanel-BV2CHWac.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
- package/dist/SysUser-DPfNvthk.js +15 -0
- package/dist/SysUserPanel-CoLKYlQE.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
- package/dist/SystemMenu-sdj1dRDA.js +156 -0
- package/dist/UserInfo-CTX4hhFl.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-BDmWwJO5.js +4 -0
- package/dist/childView-Dx3ACtHa.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
- package/dist/code-rule-cvN4gYC_.js +148 -0
- package/dist/core.es.js +24 -6
- package/dist/cron-task-B0TkxFdp.js +135 -0
- package/dist/flow-task-PoDnE_kE.js +10 -0
- package/dist/frameView-5cy5BSgS.js +43 -0
- package/dist/img/minicolors.png +0 -0
- package/dist/index-C5WRTwvI.js +3006 -0
- package/dist/layout-home-DrARg-3o.js +232 -0
- package/dist/layoutView-25v_ngk5.js +3191 -0
- package/dist/log-in-Bmz5Uhbt.js +116 -0
- package/dist/log-out-B-8m3oNj.js +130 -0
- package/dist/login-Cmp2RvvW.js +217 -0
- package/dist/login-log-CVvRgZSu.js +70 -0
- package/dist/lov-view-BATtzw2X.js +99 -0
- package/dist/menuInfo-BIvrE7nm.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
- package/dist/pda-app-CzHVyeEa.js +707 -0
- package/dist/redirect-DTz8GSnv.js +15 -0
- package/dist/resource-Y5lGB38n.js +97 -0
- package/dist/su-welcome-CXA6OzBw.js +878 -0
- package/dist/sys-config-CqO03LeC.js +385 -0
- package/dist/udp-core.css +1 -2
- package/dist/useNav-C-rCgubt.js +84 -0
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/dist/wecom-push-B75FLee5.js +70 -0
- package/index.ts +3 -2
- package/package.json +1 -1
- package/src/App.vue +79 -73
- package/src/api/index.ts +1 -1
- package/src/components/SuQrcode/src/index.tsx +231 -236
- package/src/components/udp/grid/index.vue +9 -11
- package/src/components/udp/utils.ts +420 -414
- package/src/layout/components/lay-panel/index.vue +2 -6
- package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
- package/src/main.ts +111 -110
- package/src/router/index.ts +156 -187
- package/src/router/utils.ts +2 -3
- package/src/store/modules/system.ts +7 -0
- package/src/style/vxetable.scss +372 -364
- package/src/utils/authority/index.ts +46 -29
- package/src/utils/udp/http/index.ts +115 -64
- package/src/utils/udp/http/types.d.ts +15 -14
- package/src/views/login/login-view.vue +280 -301
- package/src/views/organization/department/DepartmentPanel.vue +3 -4
- package/src/views/system/sys/sys-config.vue +344 -344
- package/src/views/uhome/components/home-todo.vue +179 -178
- package/src/views/ulogin/login.vue +8 -41
- package/tsconfig.json +2 -3
- package/types/global.d.ts +234 -234
- package/vite.config.ts +2 -1
- package/dist/403-QwBKrRZE.js +0 -72
- package/dist/404-Cr7MbzNV.js +0 -72
- package/dist/500-B7kCOeIA.js +0 -77
- package/dist/AuthorityInfo-Dwml2K4S.js +0 -91
- package/dist/AuthorityPanel-DzPhsPpa.js +0 -98
- package/dist/Company-BhOlvl7Q.js +0 -21
- package/dist/CompanyPanel-ByhY5-Sq.js +0 -199
- package/dist/DataSet-CuGZcKC-.js +0 -141
- package/dist/Department-QvngN63N.js +0 -21
- package/dist/DepartmentPanel-BCXqC39J.js +0 -2
- package/dist/DepartmentPanel-DntGycxr.js +0 -242
- package/dist/DesignPanel-BMN4DZ0R.js +0 -1196
- package/dist/DictView-ERFqZ5VD.js +0 -100
- package/dist/File-WJXjGYxr.js +0 -89
- package/dist/InvOrganization-BwMmD8Ua.js +0 -76
- package/dist/Org-HgnOWubi.js +0 -76
- package/dist/Preview-CVZdnHB1.js +0 -45
- package/dist/ReIcon-DecitXmg.js +0 -413
- package/dist/ReportDefine-BgLM-Rjk.js +0 -10
- package/dist/ReportDesign-CjfTyyy_.js +0 -158
- package/dist/ReportQuery-CP-E0Puv.js +0 -101
- package/dist/ReportQueryFrom-D7SPPAps.js +0 -198
- package/dist/ReportTemplate-DE25zc1f.js +0 -162
- package/dist/Role-K7v_ZhFE.js +0 -21
- package/dist/RoleAssign-C16fjLaX.js +0 -22
- package/dist/RolePanel-CV-xPlYJ.js +0 -176
- package/dist/RolePanel-DPCe9k8f.js +0 -131
- package/dist/ScrollPanel-DW30pGz1.js +0 -88
- package/dist/Staff-w2ly4qd0.js +0 -22
- package/dist/StaffInfo-DPDRpz6F.js +0 -149
- package/dist/StaffPanel-DI1eTTp9.js +0 -143
- package/dist/SysUser-BMTX1cJM.js +0 -12
- package/dist/SysUserPanel-xwZdVjdp.js +0 -365
- package/dist/SystemMenu-TXhiQZVm.js +0 -154
- package/dist/UserInfo-JQqw8FMT.js +0 -194
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
- package/dist/api-BFNxcxSN.js +0 -30
- package/dist/authority-Bi6BGB5B.js +0 -20
- package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
- package/dist/childView-Bk8OD9bV.js +0 -181
- package/dist/childView-CyrcwshT.js +0 -184
- package/dist/code-rule-QFrhqFrW.js +0 -151
- package/dist/contant-Q77dU_V3.js +0 -4
- package/dist/cron-task-BpUDKEAU.js +0 -131
- package/dist/flow-task-DAc2NrDU.js +0 -11
- package/dist/frameView-Di0zJZUR.js +0 -39
- package/dist/layout-home-BVp7vYLR.js +0 -239
- package/dist/layoutView-DFUjrqAS.js +0 -2662
- package/dist/log-in-BrNB0mLz.js +0 -117
- package/dist/log-out-dYfqvzy6.js +0 -111
- package/dist/login-BdCDnuXL.js +0 -233
- package/dist/login-log-CJak-ANA.js +0 -79
- package/dist/lov-view-DkmG4K57.js +0 -95
- package/dist/menuInfo-kp2wNYOp.js +0 -346
- package/dist/mitt-CQgI7DYU.js +0 -27
- package/dist/pda-app-CA7YI37u.js +0 -589
- package/dist/redirect-N0k4tImU.js +0 -16
- package/dist/resource-CfQTHFcs.js +0 -94
- package/dist/router-CeluSGiD.js +0 -1531
- package/dist/su-welcome-JeiovGpe.js +0 -799
- package/dist/sys-config-Ddb3vBpK.js +0 -316
- package/dist/udp-core-Dhm-BlAs.js +0 -2032
- package/dist/useDataThemeChange-BCy8JBG7.js +0 -226
- package/dist/useNav-DY8FkltH.js +0 -106
- package/dist/utogether-l7JXs4Lv.js +0 -4
- package/dist/water-mark-WDQZ9YqB.js +0 -119
- package/dist/wecom-push-kWkAVRCj.js +0 -77
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { defineComponent as S, ref as i, resolveComponent as a, openBlock as f, createElementBlock as E, createVNode as n, withCtx as T, createBlock as H, createCommentVNode as U, Fragment as $ } from "vue";
|
|
2
|
+
import { useI18n as z } from "vue-i18n";
|
|
3
|
+
import { t as F } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
4
|
+
import { VxeUI as M } from "vxe-pc-ui";
|
|
5
|
+
import { useRender as O, successMessage as p } from "@utogether/utils";
|
|
6
|
+
import { n as g, X as h } from "./index-C5WRTwvI.js";
|
|
7
|
+
import { clone as X } from "xe-utils";
|
|
8
|
+
const j = {
|
|
9
|
+
class: "u-dict-config_wrapper"
|
|
10
|
+
}, v = "/upfm/v1/lov", ee = /* @__PURE__ */ S({
|
|
11
|
+
__name: "childView",
|
|
12
|
+
props: {
|
|
13
|
+
record: {
|
|
14
|
+
default: () => ({})
|
|
15
|
+
},
|
|
16
|
+
show: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["onClose"],
|
|
22
|
+
setup(l, {
|
|
23
|
+
emit: C
|
|
24
|
+
}) {
|
|
25
|
+
const w = l, k = O(), {
|
|
26
|
+
t: y
|
|
27
|
+
} = z(), o = i(!1), s = i(null), u = i(null), t = i({}), d = i("add"), I = window.innerHeight - 70, b = [{
|
|
28
|
+
field: "dictCode",
|
|
29
|
+
title: "message.udp.dictCode",
|
|
30
|
+
required: !0,
|
|
31
|
+
treeNode: !0
|
|
32
|
+
}, {
|
|
33
|
+
field: "dictName",
|
|
34
|
+
title: "message.udp.dictName",
|
|
35
|
+
required: !0
|
|
36
|
+
}, {
|
|
37
|
+
field: "dictDesc",
|
|
38
|
+
title: "message.udp.dictDesc"
|
|
39
|
+
}, {
|
|
40
|
+
field: "remarks",
|
|
41
|
+
title: "message.remark"
|
|
42
|
+
}, {
|
|
43
|
+
field: "enabled",
|
|
44
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
45
|
+
}, {
|
|
46
|
+
field: "operate",
|
|
47
|
+
title: "message.operate",
|
|
48
|
+
width: 200,
|
|
49
|
+
fixed: "right",
|
|
50
|
+
slots: {
|
|
51
|
+
default: ({
|
|
52
|
+
row: e
|
|
53
|
+
}) => [n($, null, [n(a("ut-button"), {
|
|
54
|
+
content: "add",
|
|
55
|
+
status: "warning",
|
|
56
|
+
auth: "edit",
|
|
57
|
+
icon: "ri-add-line",
|
|
58
|
+
onTap: () => N(e)
|
|
59
|
+
}, null), n(a("ut-button"), {
|
|
60
|
+
content: "edit",
|
|
61
|
+
status: "primary",
|
|
62
|
+
auth: "edit",
|
|
63
|
+
onTap: () => B(e)
|
|
64
|
+
}, null), n(a("ut-button"), {
|
|
65
|
+
content: "del",
|
|
66
|
+
status: "danger",
|
|
67
|
+
auth: "del",
|
|
68
|
+
onTap: () => D(e)
|
|
69
|
+
}, null)])]
|
|
70
|
+
}
|
|
71
|
+
}], _ = [{
|
|
72
|
+
field: "dictCode",
|
|
73
|
+
title: "message.udp.dictCode",
|
|
74
|
+
required: !0
|
|
75
|
+
}, {
|
|
76
|
+
field: "dictName",
|
|
77
|
+
title: "message.udp.dictName",
|
|
78
|
+
required: !0
|
|
79
|
+
}, {
|
|
80
|
+
field: "dictDesc",
|
|
81
|
+
title: "message.udp.dictDesc"
|
|
82
|
+
}, {
|
|
83
|
+
field: "remarks",
|
|
84
|
+
title: "message.remark"
|
|
85
|
+
}, {
|
|
86
|
+
field: "enabled",
|
|
87
|
+
itemRender: k.renderSwitch({
|
|
88
|
+
openValue: "1",
|
|
89
|
+
closeValue: "0",
|
|
90
|
+
defaultValue: "1"
|
|
91
|
+
})
|
|
92
|
+
}], x = () => {
|
|
93
|
+
o.value = !0, d.value = "add", t.value = {
|
|
94
|
+
enabled: "1",
|
|
95
|
+
parentId: w.record.id
|
|
96
|
+
};
|
|
97
|
+
}, N = (e) => {
|
|
98
|
+
o.value = !0, d.value = "add", t.value = {
|
|
99
|
+
enabled: "1",
|
|
100
|
+
parentId: e.id
|
|
101
|
+
};
|
|
102
|
+
}, D = async (e) => {
|
|
103
|
+
await M.modal.confirm(y("message.delRecord")) === "confirm" && (await g().delete(v, [e]), p(), s.value.refreshData());
|
|
104
|
+
}, B = async (e) => {
|
|
105
|
+
o.value = !0, d.value = "edit", t.value = X(e, !0);
|
|
106
|
+
}, V = async () => {
|
|
107
|
+
const e = {
|
|
108
|
+
...t.value,
|
|
109
|
+
orgId: h().getOrgId,
|
|
110
|
+
organizationId: h().getOrganizationId
|
|
111
|
+
};
|
|
112
|
+
u.value.showLoading();
|
|
113
|
+
const r = d.value === "add" ? "post" : "put", [c] = await F(g()[r](v, [e]));
|
|
114
|
+
if (u.value.hiddenLoading(), !c) {
|
|
115
|
+
if (o.value = d.value !== "edit", d.value === "add") {
|
|
116
|
+
const m = t.value.parentId;
|
|
117
|
+
t.value = {
|
|
118
|
+
enabled: "1",
|
|
119
|
+
parentId: m
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
p(), s.value.refreshData();
|
|
123
|
+
}
|
|
124
|
+
}, q = (e) => {
|
|
125
|
+
e === "add" && x();
|
|
126
|
+
}, A = C;
|
|
127
|
+
function L() {
|
|
128
|
+
A("onClose");
|
|
129
|
+
}
|
|
130
|
+
return (e, r) => {
|
|
131
|
+
const c = a("ut-grid"), m = a("ut-modal-form"), R = a("vxe-drawer");
|
|
132
|
+
return f(), E("div", j, [n(R, {
|
|
133
|
+
"model-value": l.show,
|
|
134
|
+
title: e.$t("message.title.dictList", {
|
|
135
|
+
name: l.record.dictName
|
|
136
|
+
}),
|
|
137
|
+
position: "right",
|
|
138
|
+
"destroy-on-close": "",
|
|
139
|
+
width: "67%",
|
|
140
|
+
onClose: L
|
|
141
|
+
}, {
|
|
142
|
+
default: T(() => [n(c, {
|
|
143
|
+
ref_key: "xgrid",
|
|
144
|
+
ref: s,
|
|
145
|
+
columns: b,
|
|
146
|
+
height: I,
|
|
147
|
+
"default-params": {
|
|
148
|
+
parentId: l.record.id
|
|
149
|
+
},
|
|
150
|
+
buttons: [{
|
|
151
|
+
code: "del",
|
|
152
|
+
auth: "/"
|
|
153
|
+
}],
|
|
154
|
+
"tree-config": {
|
|
155
|
+
childrenField: "children",
|
|
156
|
+
expandAll: !0
|
|
157
|
+
},
|
|
158
|
+
url: "/upfm/v1/lov/children",
|
|
159
|
+
mode: "form",
|
|
160
|
+
onButtonClick: q
|
|
161
|
+
}, null, 8, ["default-params"]), o.value ? (f(), H(m, {
|
|
162
|
+
key: 0,
|
|
163
|
+
ref_key: "xmodal",
|
|
164
|
+
ref: u,
|
|
165
|
+
record: t.value,
|
|
166
|
+
items: _,
|
|
167
|
+
width: "400",
|
|
168
|
+
height: "320",
|
|
169
|
+
"data-status": d.value,
|
|
170
|
+
title: e.$t("message.title.dictInfo", {
|
|
171
|
+
name: l.record.dictName
|
|
172
|
+
}),
|
|
173
|
+
onClose: r[0] || (r[0] = (G) => o.value = !1),
|
|
174
|
+
onConfirm: V
|
|
175
|
+
}, null, 8, ["record", "data-status", "title"])) : U("", !0)]),
|
|
176
|
+
_: 1
|
|
177
|
+
}, 8, ["model-value", "title"])]);
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
export {
|
|
182
|
+
ee as _
|
|
183
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as L, ref as c, resolveComponent as o, resolveDirective as V, openBlock as R, createElementBlock as g, createVNode as d, withCtx as u, withDirectives as F } from "vue";
|
|
2
|
+
import { t as f } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
3
|
+
import { useRender as W } from "@utogether/utils";
|
|
4
|
+
import { X as P, n as m } from "./index-C5WRTwvI.js";
|
|
5
|
+
const $ = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/upfm/v1/lovViewLine", z = /* @__PURE__ */ L({
|
|
6
|
+
__name: "childView",
|
|
7
|
+
props: {
|
|
8
|
+
record: { default: () => ({}) },
|
|
9
|
+
show: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
emits: ["onClose"],
|
|
12
|
+
setup(i, { emit: _ }) {
|
|
13
|
+
const a = i, t = W(), v = P().dicts, s = c(!1), C = { value: "dictCode", label: "dictName" }, h = c(null), T = [
|
|
14
|
+
{ field: "lovCode", disabled: !0 },
|
|
15
|
+
{ field: "lovName", required: !0 },
|
|
16
|
+
{ field: "valueField", required: !0 },
|
|
17
|
+
// { field: 'displayField', required: true },
|
|
18
|
+
{ field: "lovTitle" },
|
|
19
|
+
{ field: "lovType", code: "SU.LOV.TYPE", required: !0 },
|
|
20
|
+
{ field: "lovUrl", required: !0, visible: a.record.lovType === "url" },
|
|
21
|
+
{
|
|
22
|
+
field: "sqlStatement",
|
|
23
|
+
span: 24,
|
|
24
|
+
visible: a.record.lovType === "sql",
|
|
25
|
+
itemRender: { name: "$textarea", props: { rows: 5 } },
|
|
26
|
+
required: !0
|
|
27
|
+
}
|
|
28
|
+
], n = [
|
|
29
|
+
{ type: "checkbox", width: 50, align: "center" },
|
|
30
|
+
{ field: "seqNo", required: !0, width: 100, editRender: t.renderNumber() },
|
|
31
|
+
{ field: "colField", required: !0, editRender: t.renderInput() },
|
|
32
|
+
{ field: "colTitle", required: !0, editRender: t.renderInput() },
|
|
33
|
+
{ field: "colWidth", required: !0, width: 120, editRender: t.renderNumber() },
|
|
34
|
+
{
|
|
35
|
+
field: "fieldType",
|
|
36
|
+
width: 120,
|
|
37
|
+
editRender: t.renderDict("SU.FIELD.TYPE", S),
|
|
38
|
+
formatter: ["formatDict", "SU.FIELD.TYPE"]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
field: "dictCode",
|
|
42
|
+
title: "message.dictName",
|
|
43
|
+
width: 120,
|
|
44
|
+
editRender: t.renderSelectLocal({ options: v, optionProps: C }),
|
|
45
|
+
formatter: ["formatSelectLocal", [v, "dictCode", "dictName"]]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
field: "isSearch",
|
|
49
|
+
width: 120,
|
|
50
|
+
required: !0,
|
|
51
|
+
editRender: t.renderDict("SU.WHETHER"),
|
|
52
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
field: "isCol",
|
|
56
|
+
width: 120,
|
|
57
|
+
required: !0,
|
|
58
|
+
editRender: t.renderDict("SU.WHETHER"),
|
|
59
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
60
|
+
}
|
|
61
|
+
], w = c(null), q = window.innerHeight - 195, E = {
|
|
62
|
+
editActived({ row: e }) {
|
|
63
|
+
n[6].editRender.props.disabled = e.fieldType !== "dictCode";
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
function S(e) {
|
|
67
|
+
e.row.dictName = "", n[6].editRender.props.disabled = e.row.fieldType !== "dictCode", n[6].required = e.row.fieldType !== "dictCode";
|
|
68
|
+
}
|
|
69
|
+
const y = () => {
|
|
70
|
+
h.value.validateForm(async (e) => {
|
|
71
|
+
if (!e) {
|
|
72
|
+
s.value = !0;
|
|
73
|
+
const [l] = await f(m().put(B, [a.record]));
|
|
74
|
+
if (!l) {
|
|
75
|
+
const r = w.value.getInstance().getRecordset();
|
|
76
|
+
r.insertRecords.length && await f(m().post(p, r.insertRecords)), r.updateRecords.length && await f(m().put(p, r.updateRecords));
|
|
77
|
+
}
|
|
78
|
+
s.value = !1;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}, b = _;
|
|
82
|
+
function H() {
|
|
83
|
+
b("onClose");
|
|
84
|
+
}
|
|
85
|
+
return (e, l) => {
|
|
86
|
+
const r = o("ut-button"), D = o("ut-form"), N = o("ut-divider"), U = o("ut-grid"), k = o("ut-content"), x = o("vxe-drawer"), I = V("spinning");
|
|
87
|
+
return R(), g("div", $, [
|
|
88
|
+
d(x, {
|
|
89
|
+
"model-value": i.show,
|
|
90
|
+
position: "right",
|
|
91
|
+
"show-header": !1,
|
|
92
|
+
width: "90%"
|
|
93
|
+
}, {
|
|
94
|
+
default: u(() => [
|
|
95
|
+
F((R(), g("div", null, [
|
|
96
|
+
d(k, {
|
|
97
|
+
title: e.$t("message.title.lovView"),
|
|
98
|
+
onClose: H
|
|
99
|
+
}, {
|
|
100
|
+
header: u(() => [
|
|
101
|
+
d(r, {
|
|
102
|
+
icon: "ri-save-3-fill",
|
|
103
|
+
content: "save",
|
|
104
|
+
onTap: l[0] || (l[0] = (Y) => y())
|
|
105
|
+
})
|
|
106
|
+
]),
|
|
107
|
+
body: u(() => [
|
|
108
|
+
d(D, {
|
|
109
|
+
ref_key: "formRef",
|
|
110
|
+
ref: h,
|
|
111
|
+
record: i.record,
|
|
112
|
+
items: T,
|
|
113
|
+
"data-status": "update"
|
|
114
|
+
}, null, 8, ["record"]),
|
|
115
|
+
d(N, {
|
|
116
|
+
title: e.$t("message.title.lovColConfig")
|
|
117
|
+
}, null, 8, ["title"]),
|
|
118
|
+
d(U, {
|
|
119
|
+
ref_key: "xgrid",
|
|
120
|
+
ref: w,
|
|
121
|
+
columns: n,
|
|
122
|
+
url: p,
|
|
123
|
+
"default-value": { headerId: i.record.id },
|
|
124
|
+
"default-params": { headerId: i.record.id },
|
|
125
|
+
height: q,
|
|
126
|
+
events: E
|
|
127
|
+
}, null, 8, ["default-value", "default-params"])
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["title"])
|
|
131
|
+
])), [
|
|
132
|
+
[I, s.value]
|
|
133
|
+
])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["model-value"])
|
|
137
|
+
]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
export {
|
|
142
|
+
z as _
|
|
143
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { defineComponent as U, ref as d, createVNode as f, resolveComponent as i, nextTick as C, openBlock as p, createElementBlock as y, createBlock as b, createCommentVNode as q } from "vue";
|
|
2
|
+
import { t as x } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
3
|
+
import { useRender as B } from "@utogether/utils";
|
|
4
|
+
import { n as D } from "./index-C5WRTwvI.js";
|
|
5
|
+
const I = {
|
|
6
|
+
name: "CodeRule"
|
|
7
|
+
}, M = /* @__PURE__ */ U({
|
|
8
|
+
...I,
|
|
9
|
+
setup(N) {
|
|
10
|
+
const e = B(), s = d(null), o = d(null), n = d(!1), c = d(!1), l = d({}), m = d(0), a = "/upfm/v1/codingRule", g = [{
|
|
11
|
+
field: "ruleCode",
|
|
12
|
+
title: "message.udp.ruleCode"
|
|
13
|
+
}, {
|
|
14
|
+
field: "ruleName",
|
|
15
|
+
title: "message.udp.ruleName"
|
|
16
|
+
}], h = [{
|
|
17
|
+
type: "checkbox",
|
|
18
|
+
width: 40,
|
|
19
|
+
align: "center"
|
|
20
|
+
}, {
|
|
21
|
+
field: "ruleCode",
|
|
22
|
+
title: "message.udp.ruleCode",
|
|
23
|
+
required: !0,
|
|
24
|
+
editRender: e.renderInput()
|
|
25
|
+
}, {
|
|
26
|
+
field: "ruleName",
|
|
27
|
+
title: "message.udp.ruleName",
|
|
28
|
+
required: !0,
|
|
29
|
+
editRender: e.renderInput()
|
|
30
|
+
}, {
|
|
31
|
+
field: "remark",
|
|
32
|
+
editRender: e.renderInput()
|
|
33
|
+
}, {
|
|
34
|
+
field: "haveBeenUsed",
|
|
35
|
+
title: "message.udp.haveBeenUsed",
|
|
36
|
+
formatter: ["formatDict", "SU.WHETHER"]
|
|
37
|
+
}, {
|
|
38
|
+
field: "enabled",
|
|
39
|
+
width: 80,
|
|
40
|
+
cellRender: e.renderEnabled(_)
|
|
41
|
+
}, {
|
|
42
|
+
field: "operate",
|
|
43
|
+
width: 80,
|
|
44
|
+
fixed: "right",
|
|
45
|
+
slots: {
|
|
46
|
+
default: ({
|
|
47
|
+
row: t
|
|
48
|
+
}) => {
|
|
49
|
+
const r = t.haveBeenUsed === "Y" ? "look" : "encode", u = t.haveBeenUsed === "Y" ? "info" : "primary";
|
|
50
|
+
return [f(i("ut-button"), {
|
|
51
|
+
content: r,
|
|
52
|
+
status: u,
|
|
53
|
+
onTap: () => R(t)
|
|
54
|
+
}, null)];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}], v = [
|
|
58
|
+
{
|
|
59
|
+
type: "checkbox",
|
|
60
|
+
width: 40,
|
|
61
|
+
align: "center"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
field: "orderSeq",
|
|
65
|
+
title: "message.seqNo",
|
|
66
|
+
required: !0,
|
|
67
|
+
editRender: e.renderNumber()
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
field: "fieldType",
|
|
71
|
+
required: !0,
|
|
72
|
+
editRender: e.renderDict("SU.CODE.RULE.TYPE"),
|
|
73
|
+
formatter: ["formatDict", "SU.CODE.RULE.TYPE"]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
field: "fieldValue",
|
|
77
|
+
title: "message.udp.fieldValue",
|
|
78
|
+
editRender: e.renderInput()
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
field: "dateMask",
|
|
82
|
+
title: "message.udp.dateMask",
|
|
83
|
+
editRender: e.renderDict("SU.DATE.MASK")
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
field: "resetFrequency",
|
|
87
|
+
title: "message.udp.resetFrequency",
|
|
88
|
+
editRender: e.renderDict("SU.RESET.FREQUENCY")
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
field: "seqLength",
|
|
92
|
+
title: "message.udp.seqLength",
|
|
93
|
+
editRender: e.renderInput()
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
field: "startValue",
|
|
97
|
+
title: "message.udp.startValue",
|
|
98
|
+
editRender: e.renderInput()
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
field: "currentValue",
|
|
102
|
+
title: "message.udp.currentValue"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
field: "remark",
|
|
106
|
+
editRender: e.renderInput()
|
|
107
|
+
}
|
|
108
|
+
// { field: 'enabled', width: 80, cellRender: renderHook.renderEnabled(handleClick) }
|
|
109
|
+
], R = async (t) => {
|
|
110
|
+
c.value = t.haveBeenUsed === "Y", l.value = {
|
|
111
|
+
codingRuleId: t.id
|
|
112
|
+
}, n.value = !0, await C(), o.value.reloadGrid(), m.value++;
|
|
113
|
+
}, k = (t) => t.haveBeenUsed !== "Y";
|
|
114
|
+
async function _({
|
|
115
|
+
row: t
|
|
116
|
+
}) {
|
|
117
|
+
const [r] = await x(D().put(a, [t]));
|
|
118
|
+
!r && s.value.refreshData();
|
|
119
|
+
}
|
|
120
|
+
return (t, r) => {
|
|
121
|
+
const u = i("ut-grid"), E = i("ut-modal-grid");
|
|
122
|
+
return p(), y("div", null, [f(u, {
|
|
123
|
+
ref_key: "xgrid",
|
|
124
|
+
ref: s,
|
|
125
|
+
items: g,
|
|
126
|
+
columns: h,
|
|
127
|
+
url: a,
|
|
128
|
+
"check-method": k
|
|
129
|
+
}, null, 512), n.value ? (p(), b(E, {
|
|
130
|
+
ref_key: "xmgrid",
|
|
131
|
+
ref: o,
|
|
132
|
+
key: m.value,
|
|
133
|
+
"default-value": l.value,
|
|
134
|
+
"default-params": l.value,
|
|
135
|
+
columns: v,
|
|
136
|
+
url: a + "Detail",
|
|
137
|
+
editable: !c.value,
|
|
138
|
+
"show-footer": !1,
|
|
139
|
+
width: "80%",
|
|
140
|
+
title: "编码段设置",
|
|
141
|
+
onClose: r[0] || (r[0] = (S) => n.value = !1)
|
|
142
|
+
}, null, 8, ["default-value", "default-params", "url", "editable"])) : q("", !0)]);
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
export {
|
|
147
|
+
M as default
|
|
148
|
+
};
|
package/dist/core.es.js
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { c as a, r as t, d as r, h as o, l as u, m as i, n, p as l, q as g, s as m, t as c, A as h, H as S, N as f, O as y, S as d, U as A, V as R, W as p, X as v, Y as C } from "./index-C5WRTwvI.js";
|
|
2
|
+
export {
|
|
3
|
+
a as constantRoutes,
|
|
4
|
+
t as default,
|
|
5
|
+
r as delCurrentRoute,
|
|
6
|
+
o as getBrower,
|
|
7
|
+
u as getPlatform,
|
|
8
|
+
i as getProcessMenu,
|
|
9
|
+
n as getServiceApi,
|
|
10
|
+
l as handleAliveRoute,
|
|
11
|
+
g as hasAuthority,
|
|
12
|
+
m as initDict,
|
|
13
|
+
c as isViewonly,
|
|
14
|
+
h as lifeCycleEvent,
|
|
15
|
+
S as remainingRouters,
|
|
16
|
+
f as routerBefore,
|
|
17
|
+
y as store,
|
|
18
|
+
d as useDataThemeChange,
|
|
19
|
+
A as useLayout,
|
|
20
|
+
R as useMultiTagsStore,
|
|
21
|
+
p as usePermissionStore,
|
|
22
|
+
v as useSystemStore,
|
|
23
|
+
C as userMonitor
|
|
24
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent as k, ref as d, createVNode as n, resolveComponent as o, Fragment as v, openBlock as f, createElementBlock as T, createBlock as I, createCommentVNode as R } from "vue";
|
|
2
|
+
import { VXETable as C } from "vxe-table";
|
|
3
|
+
import { t as x } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
4
|
+
import { n as y } from "./index-C5WRTwvI.js";
|
|
5
|
+
import { useRender as S, successMessage as D } from "@utogether/utils";
|
|
6
|
+
const E = {
|
|
7
|
+
name: "CronTask"
|
|
8
|
+
}, H = /* @__PURE__ */ k({
|
|
9
|
+
...E,
|
|
10
|
+
setup(L) {
|
|
11
|
+
const r = S(), u = d(null), i = d(!1), c = d({}), s = "/usch/v1/jobInfo", p = [{
|
|
12
|
+
field: "jobName"
|
|
13
|
+
}, {
|
|
14
|
+
field: "jobDescription"
|
|
15
|
+
}], h = [{
|
|
16
|
+
type: "checkbox",
|
|
17
|
+
width: 40,
|
|
18
|
+
align: "center"
|
|
19
|
+
}, {
|
|
20
|
+
field: "jobName",
|
|
21
|
+
width: 140,
|
|
22
|
+
required: !0,
|
|
23
|
+
editRender: r.renderInput()
|
|
24
|
+
}, {
|
|
25
|
+
field: "jobCron",
|
|
26
|
+
width: 140,
|
|
27
|
+
required: !0,
|
|
28
|
+
editRender: r.renderInput()
|
|
29
|
+
}, {
|
|
30
|
+
field: "jobHandler",
|
|
31
|
+
miwWidth: 200,
|
|
32
|
+
required: !0,
|
|
33
|
+
editRender: r.renderInput()
|
|
34
|
+
}, {
|
|
35
|
+
field: "jobParam",
|
|
36
|
+
width: 140,
|
|
37
|
+
editRender: r.renderInput()
|
|
38
|
+
}, {
|
|
39
|
+
field: "jobDescription",
|
|
40
|
+
width: 120,
|
|
41
|
+
editRender: r.renderInput()
|
|
42
|
+
}, {
|
|
43
|
+
field: "jobStatus",
|
|
44
|
+
width: 100
|
|
45
|
+
}, {
|
|
46
|
+
field: "operate",
|
|
47
|
+
width: 180,
|
|
48
|
+
fixed: "right",
|
|
49
|
+
slots: {
|
|
50
|
+
default: ({
|
|
51
|
+
row: e
|
|
52
|
+
}) => {
|
|
53
|
+
const t = e.jobStatus === "ACQUIRED" ? n(o("ut-button"), {
|
|
54
|
+
content: "suspendTask",
|
|
55
|
+
status: "warning",
|
|
56
|
+
icon: "ri-search-line-plus",
|
|
57
|
+
onTap: () => b(e)
|
|
58
|
+
}, null) : n(o("ut-button"), {
|
|
59
|
+
content: "resumeTask",
|
|
60
|
+
status: "success",
|
|
61
|
+
icon: "ri-search-line-plus",
|
|
62
|
+
onTap: () => g(e)
|
|
63
|
+
}, null);
|
|
64
|
+
return [n(v, null, [t, n(o("ut-button"), {
|
|
65
|
+
content: "stopTask",
|
|
66
|
+
status: "danger",
|
|
67
|
+
icon: "ri-close-line",
|
|
68
|
+
onTap: () => _(e)
|
|
69
|
+
}, null), n(o("ut-button"), {
|
|
70
|
+
content: "taskLog",
|
|
71
|
+
status: "info",
|
|
72
|
+
icon: "ri-file-line",
|
|
73
|
+
onTap: () => w(e)
|
|
74
|
+
}, null)])];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}], b = (e) => {
|
|
78
|
+
l(s + "/pause", [e]);
|
|
79
|
+
}, g = (e) => {
|
|
80
|
+
l(s + "/resume", [e]);
|
|
81
|
+
}, _ = (e) => {
|
|
82
|
+
l(s + "/terminate", [e]);
|
|
83
|
+
}, l = async (e, t) => {
|
|
84
|
+
if (await C.modal.confirm("您确定要继续吗?") === "confirm") {
|
|
85
|
+
const [a] = await x(y().post(e, t));
|
|
86
|
+
a || (D(), u.value.refreshData());
|
|
87
|
+
}
|
|
88
|
+
}, j = [
|
|
89
|
+
// { field: 'jobName', width: 140 },
|
|
90
|
+
{
|
|
91
|
+
field: "startTime",
|
|
92
|
+
width: 160
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
field: "endTime",
|
|
96
|
+
width: 160
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
field: "jobResult",
|
|
100
|
+
width: 120
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
field: "errorMessage"
|
|
104
|
+
}
|
|
105
|
+
], w = (e) => {
|
|
106
|
+
c.value = {
|
|
107
|
+
jobId: e.id
|
|
108
|
+
}, i.value = !0;
|
|
109
|
+
};
|
|
110
|
+
return (e, t) => {
|
|
111
|
+
const m = o("ut-grid"), a = o("ut-modal-grid");
|
|
112
|
+
return f(), T("div", null, [n(m, {
|
|
113
|
+
ref_key: "xgrid",
|
|
114
|
+
ref: u,
|
|
115
|
+
items: p,
|
|
116
|
+
columns: h,
|
|
117
|
+
url: s
|
|
118
|
+
}, null, 512), i.value ? (f(), I(a, {
|
|
119
|
+
key: 0,
|
|
120
|
+
ref: "xmgrid",
|
|
121
|
+
"default-params": c.value,
|
|
122
|
+
columns: j,
|
|
123
|
+
url: "/usch/v1/jobLog",
|
|
124
|
+
"show-footer": !1,
|
|
125
|
+
editable: !1,
|
|
126
|
+
width: "50%",
|
|
127
|
+
title: e.$t("message.title.cronLog"),
|
|
128
|
+
onClose: t[0] || (t[0] = (N) => i.value = !1)
|
|
129
|
+
}, null, 8, ["default-params", "title"])) : R("", !0)]);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
H as default
|
|
135
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineComponent as e, openBlock as t, createElementBlock as a } from "vue";
|
|
2
|
+
const n = { name: "FlowTask" }, c = /* @__PURE__ */ e({
|
|
3
|
+
...n,
|
|
4
|
+
setup(o) {
|
|
5
|
+
return (s, d) => (t(), a("div", null, " dhasdhkasd kasdAsdasjldj打死了电话卡手机号多久啊是的 "));
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
c as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as l, ref as r, unref as a, onMounted as u, resolveDirective as _, withDirectives as d, openBlock as p, createElementBlock as v, createElementVNode as h, nextTick as g } from "vue";
|
|
2
|
+
import { useRoute as k } from "vue-router";
|
|
3
|
+
import { _ as x } from "./index-C5WRTwvI.js";
|
|
4
|
+
const E = { class: "frame" }, R = ["src"], w = /* @__PURE__ */ l({
|
|
5
|
+
__name: "frameView",
|
|
6
|
+
setup(S) {
|
|
7
|
+
const t = r(!1), o = k(), c = r(""), i = r(null);
|
|
8
|
+
a(o.meta)?.frameSrc && (c.value = a(o.meta)?.frameSrc);
|
|
9
|
+
function f() {
|
|
10
|
+
t.value = !1;
|
|
11
|
+
}
|
|
12
|
+
function s() {
|
|
13
|
+
g(() => {
|
|
14
|
+
const e = a(i);
|
|
15
|
+
if (!e) return;
|
|
16
|
+
const n = e;
|
|
17
|
+
n.attachEvent ? n.attachEvent("onload", () => {
|
|
18
|
+
f();
|
|
19
|
+
}) : e.onload = () => {
|
|
20
|
+
f();
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return u(() => {
|
|
25
|
+
t.value = !0, s();
|
|
26
|
+
}), (e, n) => {
|
|
27
|
+
const m = _("spinning");
|
|
28
|
+
return d((p(), v("div", E, [
|
|
29
|
+
h("iframe", {
|
|
30
|
+
ref_key: "frameRef",
|
|
31
|
+
ref: i,
|
|
32
|
+
src: c.value,
|
|
33
|
+
class: "frame-iframe"
|
|
34
|
+
}, null, 8, R)
|
|
35
|
+
])), [
|
|
36
|
+
[m, t.value]
|
|
37
|
+
]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}), y = /* @__PURE__ */ x(w, [["__scopeId", "data-v-c2f5c865"]]);
|
|
41
|
+
export {
|
|
42
|
+
y as default
|
|
43
|
+
};
|
package/dist/img/minicolors.png
CHANGED
|
Binary file
|