@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.21
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 -1
- package/dist/{403-BBQoJwTM.js → 403-B_l9Q9w_.js} +1 -1
- package/dist/{404-BbJPSIWM.js → 404-33KZO3Vz.js} +1 -1
- package/dist/{500-BtFL9R4M.js → 500-oI74ZkQH.js} +1 -1
- package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-CNoxrmPS.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-CO01EWKQ.js +100 -0
- package/dist/{Company-CGqmslx-.js → Company-DOCRUvUs.js} +3 -3
- package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-Do2JlJ3U.js} +26 -26
- package/dist/{Department-BZyJtacc.js → Department-BAlx8Am2.js} +3 -3
- package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-BvQUkRaM.js} +25 -25
- package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-BMr-c76z.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-COERxrYp.js} +28 -30
- package/dist/DictView-DkG5lo6m.js +109 -0
- package/dist/InvOrganization-D_PuTpPt.js +74 -0
- package/dist/Org-CtVfZAjI.js +39 -0
- package/dist/{Preview-pHD84xqI.js → Preview-Cuj_akRk.js} +2 -2
- package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-CM2aNEVp.js} +1 -1
- package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-B1y79NKM.js} +43 -43
- package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-CZEfKCWP.js} +1 -1
- package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-C_cUB8bs.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBqJnvTQ.js} +1 -1
- package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-BprAuCb1.js} +28 -28
- package/dist/{Role-eFZoTpXc.js → Role-CAaLVGNy.js} +6 -6
- package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-DuFp2Ty7.js} +9 -9
- package/dist/{RolePanel-DlFw6HSf.js → RolePanel-BRStoO0e.js} +1 -1
- package/dist/{RolePanel-CoUOc3sX.js → RolePanel-FnyN7LiS.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CNIA7zdk.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-CS7drFhn.js} +44 -38
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-CEnqhlSE.js} +23 -23
- package/dist/{Staff-DFBLCsAd.js → Staff-D493jHwR.js} +3 -3
- package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-suU_pcyD.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-DV16a2Nz.js} +16 -16
- package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-BbYWu-xZ.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-CfRIanr5.js} +2 -2
- package/dist/{SysUser-BdZvYxQH.js → SysUser-YXOsIVpJ.js} +2 -2
- package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-C1tQzih_.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BfT40pDr.js +298 -0
- package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-DzKl8RAz.js} +33 -33
- package/dist/{UserInfo-DqXCRZts.js → UserInfo-CYeYQNq8.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-DYVdi2Ck.js} +41 -39
- package/dist/{childView-B2lSsqS3.js → childView-BNYdfnMx.js} +1 -1
- package/dist/{childView-DRUNqgjI.js → childView-C6rHVrT6.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-6o00J0a7.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-O_zWFjYY.js} +43 -43
- package/dist/{code-rule-DZC9T6cl.js → code-rule-MxcRbYZR.js} +13 -15
- package/dist/core.es.js +18 -10
- package/dist/{cron-task-BJwPeA5F.js → cron-task-B0yfTtm6.js} +11 -11
- package/dist/{frameView-C6wkvok-.js → frameView-DtHY5dLd.js} +1 -1
- package/dist/img/l_img.svg +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/index-BWtOrjW2.js +4603 -0
- package/dist/{layoutView-CeJBpZb_.js → layoutView-D0Q7EG0u.js} +1564 -1559
- package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
- package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
- package/dist/login-CuO8YgN1.js +249 -0
- package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
- package/dist/{lov-view-DRF-99U4.js → lov-view-DcRVGqsD.js} +5 -5
- package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-ccOqhCC8.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-DTBPgTe_.js} +34 -32
- package/dist/{pda-app-B9tn7jdv.js → pda-app-D7n4oxyn.js} +202 -188
- package/dist/{resource-BqnxbQNe.js → resource-_h2OtsKS.js} +18 -18
- package/dist/{su-welcome-VwifUK_O.js → su-welcome-Co6e4akE.js} +118 -120
- package/dist/sys-config-C6Es9vZl.js +355 -0
- package/dist/udp-core.css +1 -9
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/index.ts +17 -5
- package/package.json +1 -1
- package/src/App.vue +2 -7
- package/src/api/http.ts +1 -4
- package/src/api/index.ts +5 -3
- package/src/api/user.ts +2 -2
- package/src/components/SuCharts/src/UserInfo.vue +3 -3
- package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
- package/src/components/udp/form/form.vue +109 -0
- package/src/components/udp/grid/index.vue +509 -0
- package/src/components/udp/index.ts +4 -4
- package/src/components/udp/utils.ts +405 -40
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +9 -7
- package/src/layout/components/lay-panel/index.vue +3 -3
- package/src/layout/components/lay-search/index.vue +1 -1
- package/src/layout/components/lay-select-org/index.vue +4 -9
- package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-sidebar/horizontal.vue +4 -5
- package/src/layout/components/lay-sidebar/mixNav.vue +6 -4
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -98
- package/src/layout/components/lay-tag/index.vue +596 -625
- package/src/layout/hooks/useTag.ts +223 -233
- package/src/layout/layoutView.vue +215 -215
- package/src/layout/types.ts +3 -2
- package/src/main.ts +39 -31
- package/src/plugins/i18n/en.ts +26 -13
- package/src/plugins/i18n/zh.ts +35 -16
- package/src/plugins/vxe-table/index.ts +65 -2
- package/src/plugins/vxe-table/render.tsx +945 -817
- package/src/router/index.ts +186 -183
- package/src/router/modules/remaining.ts +1 -26
- package/src/router/utils.ts +393 -377
- package/src/store/modules/app.ts +1 -3
- package/src/store/modules/multiTags.ts +110 -109
- package/src/store/modules/permission.ts +113 -103
- package/src/store/modules/system.ts +1 -3
- package/src/style/button.scss +10 -3
- package/src/style/login.css +1 -1
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +348 -256
- package/src/utils/authority/index.ts +1 -1
- package/src/utils/index.ts +3 -1
- package/src/utils/propTypes.ts +1 -6
- package/src/views/login/login-view.vue +6 -20
- package/src/views/organization/company/CompanyPanel.vue +2 -2
- package/src/views/organization/department/DepartmentPanel.vue +269 -283
- package/src/views/organization/inv-org/InvOrganization.vue +23 -9
- package/src/views/organization/org/Org.vue +9 -5
- package/src/views/system/menu/SystemMenu.vue +183 -197
- package/src/views/system/menu/menuInfo.vue +8 -18
- package/src/views/system/role/AuthorityInfo.vue +19 -15
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +11 -9
- package/src/views/system/role-assign/RoleAssign.vue +2 -2
- package/src/views/system/role-assign/RolePanel.vue +12 -9
- package/src/views/system/sys/sys-config.vue +66 -21
- package/src/views/system/sysUser/SysUserPanel.vue +44 -43
- package/src/views/uapp/pda/pda-app.vue +48 -16
- package/src/views/udev/coderule/code-rule.vue +120 -121
- package/src/views/udev/dict/DictView.vue +16 -4
- package/src/views/udev/dict/childView.vue +8 -8
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/components/menu-favorite.vue +314 -331
- package/src/views/uhome/su-welcome.vue +3 -3
- package/src/views/ulogin/login.vue +19 -12
- package/src/views/upms/interface/log-in.vue +100 -106
- package/src/views/upms/interface/log-out.vue +2 -8
- package/src/views/upms/user/login-log.vue +54 -60
- package/src/views/urpt/design/DesignPanel.vue +16 -35
- package/src/views/urpt/design/Preview.vue +1 -0
- package/src/views/urpt/design/ReportDesign.vue +17 -23
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/types/global.d.ts +4 -9
- package/vite.config.ts +6 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js +0 -102
- package/dist/DictView-B4a7Hs1X.js +0 -95
- package/dist/InvOrganization-q4T3y8dQ.js +0 -260
- package/dist/Org-BTGTrAVz.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js +0 -126
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js +0 -288
- package/dist/index-DZc3qRTx.js +0 -2650
- package/dist/login-BOxwzwdB.js +0 -252
- package/dist/sys-config-C0-gSBFO.js +0 -277
- package/dist/utogether-Di1byIum.js +0 -182
- package/src/components/udp/form-upload.vue +0 -183
- package/src/components/udp/modal-form.vue +0 -180
- package/src/utils/http/index.ts +0 -297
- package/src/utils/http/types.d.ts +0 -46
- package/src/utils/udp/useRender.ts +0 -420
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as R, ref as i, reactive as x, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as m, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as A, mergeProps as E, toHandlers as P } from "vue";
|
|
2
|
+
import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
+
import { w as V } from "./index-BWtOrjW2.js";
|
|
4
|
+
const q = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
|
|
5
5
|
__name: "UserInfo",
|
|
6
6
|
props: {
|
|
7
7
|
record: { default: () => ({}) },
|
|
@@ -9,17 +9,17 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
|
|
|
9
9
|
direction: { default: "rtl" }
|
|
10
10
|
},
|
|
11
11
|
emits: ["onClose"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(p, { emit: f }) {
|
|
13
|
+
const r = p, g = i(!1), o = i(!1), a = V(), h = f, b = [
|
|
14
14
|
{
|
|
15
15
|
field: "userName",
|
|
16
|
-
title: "message.userCode",
|
|
16
|
+
title: "message.udp.userCode",
|
|
17
17
|
span: 8,
|
|
18
18
|
itemRender: { name: "$input" }
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
field: "name",
|
|
22
|
-
title: "message.userName",
|
|
22
|
+
title: "message.udp.userName",
|
|
23
23
|
span: 8,
|
|
24
24
|
itemRender: { name: "$input" }
|
|
25
25
|
},
|
|
@@ -45,11 +45,11 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
|
|
|
45
45
|
{ type: "checkbox", width: 50, align: "center" },
|
|
46
46
|
{
|
|
47
47
|
field: "userName",
|
|
48
|
-
title: "message.userCode"
|
|
48
|
+
title: "message.udp.userCode"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
field: "name",
|
|
52
|
-
title: "message.userName"
|
|
52
|
+
title: "message.udp.userName"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
field: "enabled",
|
|
@@ -68,15 +68,15 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
|
|
|
68
68
|
{ code: "add", name: "message.btn.add", status: "u-cyan", icon: "ri-add-line" },
|
|
69
69
|
{ code: "delete", name: "message.btn.del", status: "danger", icon: "ri-delete-bin-5-fill" }
|
|
70
70
|
], y = [
|
|
71
|
-
{ field: "userName", title: "message.userCode" },
|
|
72
|
-
{ field: "name", title: "message.userName" }
|
|
73
|
-
],
|
|
71
|
+
{ field: "userName", title: "message.udp.userCode", span: 9 },
|
|
72
|
+
{ field: "name", title: "message.udp.userName", span: 9 }
|
|
73
|
+
], w = [
|
|
74
74
|
{ type: "checkbox", width: 40 },
|
|
75
|
-
{ field: "userName", title: "message.userCode" },
|
|
76
|
-
{ field: "name", title: "message.userName" },
|
|
75
|
+
{ field: "userName", title: "message.udp.userCode" },
|
|
76
|
+
{ field: "name", title: "message.udp.userName" },
|
|
77
77
|
{ field: "enabled", width: 70, formatter: ["formatDict", "SU.ENABLE"] }
|
|
78
|
-
],
|
|
79
|
-
height:
|
|
78
|
+
], u = i({}), n = x({
|
|
79
|
+
height: "auto",
|
|
80
80
|
border: !0,
|
|
81
81
|
pagerConfig: {},
|
|
82
82
|
toolbarConfig: { buttons: C, perfect: !0 },
|
|
@@ -88,39 +88,39 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
|
|
|
88
88
|
// 查询是需要启用表单代理
|
|
89
89
|
ajax: {
|
|
90
90
|
// 接收 Promise
|
|
91
|
-
query: ({ page: e, form:
|
|
92
|
-
const t = Object.assign({},
|
|
93
|
-
return t.id =
|
|
91
|
+
query: ({ page: e, form: s }) => {
|
|
92
|
+
const t = Object.assign({}, s);
|
|
93
|
+
return t.id = r.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
|
|
94
94
|
},
|
|
95
95
|
// body 对象: { removeRecords }
|
|
96
96
|
delete: ({ body: { removeRecords: e } }) => {
|
|
97
|
-
const
|
|
98
|
-
roleId:
|
|
97
|
+
const s = {
|
|
98
|
+
roleId: r.record.id,
|
|
99
99
|
userIds: e.map((t) => t.id).join()
|
|
100
100
|
};
|
|
101
|
-
return a.delete("/uums/role/deleteRoleUsers",
|
|
101
|
+
return a.delete("/uums/role/deleteRoleUsers", s);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
columns: v
|
|
106
|
-
}),
|
|
106
|
+
}), _ = {
|
|
107
107
|
toolbarButtonClick({ code: e }) {
|
|
108
|
-
e === "add" && (
|
|
108
|
+
e === "add" && (o.value = !0);
|
|
109
109
|
}
|
|
110
110
|
}, N = async (e) => {
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
const [t] = await
|
|
114
|
-
n.loading = !1, t || (
|
|
111
|
+
const s = { userIds: "", roleId: r.record.id };
|
|
112
|
+
s.userIds = e.map((l) => l.id).join(","), n.loading = !0;
|
|
113
|
+
const [t] = await S(a.post("/uums/role/addUserRole", s));
|
|
114
|
+
n.loading = !1, t || (u.value.commitProxy("query"), o.value = !1);
|
|
115
115
|
};
|
|
116
116
|
function I() {
|
|
117
117
|
h("onClose");
|
|
118
118
|
}
|
|
119
119
|
return B(() => {
|
|
120
120
|
g.value = !0;
|
|
121
|
-
}), (e,
|
|
121
|
+
}), (e, s) => {
|
|
122
122
|
const t = d("vxe-grid"), l = d("ut-modal-grid"), k = d("el-drawer");
|
|
123
|
-
return
|
|
123
|
+
return m(), U("div", q, [
|
|
124
124
|
c(k, {
|
|
125
125
|
"model-value": e.show,
|
|
126
126
|
title: e.$t("message.title.authUser", { role: e.record.roleName }),
|
|
@@ -130,22 +130,24 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
|
|
|
130
130
|
size: "80%"
|
|
131
131
|
}, {
|
|
132
132
|
default: $(() => [
|
|
133
|
-
c(t,
|
|
133
|
+
c(t, E({
|
|
134
134
|
ref_key: "xgrid",
|
|
135
|
-
ref:
|
|
136
|
-
}, n,
|
|
137
|
-
|
|
135
|
+
ref: u
|
|
136
|
+
}, n, P(_)), null, 16),
|
|
137
|
+
o.value ? (m(), j(l, {
|
|
138
138
|
key: 0,
|
|
139
139
|
url: "/uums/user/listUserToRole",
|
|
140
140
|
"default-params": { roleId: e.record.id },
|
|
141
141
|
items: y,
|
|
142
|
-
columns:
|
|
142
|
+
columns: w,
|
|
143
143
|
"show-footer": !0,
|
|
144
144
|
editable: !1,
|
|
145
|
+
title: e.$t("message.udp.userList"),
|
|
145
146
|
width: "60%",
|
|
146
|
-
|
|
147
|
+
height: "75%",
|
|
148
|
+
onClose: s[0] || (s[0] = (z) => o.value = !1),
|
|
147
149
|
onConfirm: N
|
|
148
|
-
}, null, 8, ["default-params"])) :
|
|
150
|
+
}, null, 8, ["default-params", "title"])) : A("", !0)
|
|
149
151
|
]),
|
|
150
152
|
_: 1
|
|
151
153
|
}, 8, ["model-value", "title"])
|
|
@@ -154,5 +156,5 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
|
|
|
154
156
|
}
|
|
155
157
|
});
|
|
156
158
|
export {
|
|
157
|
-
|
|
159
|
+
D as _
|
|
158
160
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as h, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
|
|
2
2
|
import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
3
|
import { useRender as P } from "@utogether/utils";
|
|
4
|
-
import {
|
|
4
|
+
import { i as $, w as f } from "./index-BWtOrjW2.js";
|
|
5
5
|
const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
|
|
6
6
|
__name: "childView",
|
|
7
7
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as U, ref as
|
|
1
|
+
import { defineComponent as U, ref as u, onMounted as F, resolveComponent as n, createElementBlock as j, openBlock as w, createVNode as t, withCtx as d, createElementVNode as N, createBlock as G, createCommentVNode as K, createTextVNode as P, toDisplayString as $ } from "vue";
|
|
2
2
|
import { useI18n as Q } from "vue-i18n";
|
|
3
3
|
import { t as I } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
4
|
import { VxeUI as W } from "vxe-pc-ui";
|
|
5
5
|
import { useRender as X, successMessage as k } from "@utogether/utils";
|
|
6
|
-
import {
|
|
7
|
-
const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
|
|
6
|
+
import { w as b, i as S } from "./index-BWtOrjW2.js";
|
|
7
|
+
const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } }, _ = "/upfm/v1/lov", de = /* @__PURE__ */ U({
|
|
8
8
|
__name: "childView",
|
|
9
9
|
props: {
|
|
10
10
|
record: { default: () => ({}) },
|
|
@@ -12,7 +12,7 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
|
|
|
12
12
|
},
|
|
13
13
|
emits: ["onClose"],
|
|
14
14
|
setup(V, { emit: D }) {
|
|
15
|
-
const v = V, T = X(), { t: q } = Q(),
|
|
15
|
+
const v = V, T = X(), { t: q } = Q(), h = u([]), m = u(!1), s = u(!1), a = u({}), p = u({}), i = u("add"), O = [
|
|
16
16
|
{ field: "dictCode", title: "message.udp.dictCode", required: !0 },
|
|
17
17
|
{ field: "dictName", title: "message.udp.dictName", required: !0 },
|
|
18
18
|
{ field: "dictDesc", title: "message.remark" },
|
|
@@ -23,23 +23,23 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
|
|
|
23
23
|
// formatter: ['formatDict', 'SU.ENABLE']
|
|
24
24
|
}
|
|
25
25
|
], R = () => {
|
|
26
|
-
|
|
26
|
+
s.value = !0, i.value = "add", a.value = {
|
|
27
27
|
dictCode: "",
|
|
28
28
|
dictName: "",
|
|
29
29
|
dictDesc: "",
|
|
30
30
|
enabled: "1"
|
|
31
31
|
}, p.value = v.record;
|
|
32
32
|
}, x = (e) => {
|
|
33
|
-
|
|
33
|
+
s.value = !0, i.value = "child", a.value = {
|
|
34
34
|
dictCode: "",
|
|
35
35
|
dictName: "",
|
|
36
36
|
dictDesc: "",
|
|
37
37
|
enabled: "1"
|
|
38
38
|
}, p.value = JSON.parse(JSON.stringify(e));
|
|
39
39
|
}, B = async (e) => {
|
|
40
|
-
await W.modal.confirm(q("message.
|
|
40
|
+
await W.modal.confirm(q("message.delRecord")) === "confirm" && (await b().delete(_, [e]), k(), f());
|
|
41
41
|
}, J = async (e) => {
|
|
42
|
-
|
|
42
|
+
s.value = !0, i.value = "edit", p.value = v.record, a.value = JSON.parse(JSON.stringify(e));
|
|
43
43
|
}, z = async () => {
|
|
44
44
|
const e = {
|
|
45
45
|
...a.value,
|
|
@@ -48,16 +48,16 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
|
|
|
48
48
|
parentId: a.value.parentId || p.value.id
|
|
49
49
|
};
|
|
50
50
|
let o = "post";
|
|
51
|
-
["add", "child"].includes(
|
|
52
|
-
const [
|
|
53
|
-
|
|
51
|
+
["add", "child"].includes(i.value) ? o = "post" : o = "put", m.value = !0;
|
|
52
|
+
const [r, y] = await I(b()[o](_, [e]));
|
|
53
|
+
m.value = !1, r || (i.value === "edit" ? s.value = !1 : a.value = { enabled: "1" }, k(), f());
|
|
54
54
|
}, f = async () => {
|
|
55
55
|
const e = {
|
|
56
56
|
parentId: v.record.id
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
const [o,
|
|
60
|
-
|
|
58
|
+
m.value = !0;
|
|
59
|
+
const [o, r] = await I(b().get(_ + "/children", e));
|
|
60
|
+
m.value = !1, o || (h.value = r.list);
|
|
61
61
|
}, A = D;
|
|
62
62
|
function E() {
|
|
63
63
|
A("onClose");
|
|
@@ -65,8 +65,8 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
|
|
|
65
65
|
return F(() => {
|
|
66
66
|
f();
|
|
67
67
|
}), (e, o) => {
|
|
68
|
-
const
|
|
69
|
-
return
|
|
68
|
+
const r = n("vxe-button"), y = n("vxe-toolbar"), c = n("vxe-table-column"), g = n("ut-button"), M = n("vxe-table"), H = n("ut-modal-form"), L = n("el-drawer");
|
|
69
|
+
return w(), j("div", Y, [
|
|
70
70
|
t(L, {
|
|
71
71
|
"model-value": e.show,
|
|
72
72
|
"before-close": E,
|
|
@@ -75,23 +75,23 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
|
|
|
75
75
|
"destroy-on-close": "",
|
|
76
76
|
size: "76%"
|
|
77
77
|
}, {
|
|
78
|
-
default:
|
|
79
|
-
|
|
80
|
-
t(
|
|
81
|
-
buttons:
|
|
82
|
-
t(
|
|
78
|
+
default: d(() => [
|
|
79
|
+
N("div", Z, [
|
|
80
|
+
t(y, null, {
|
|
81
|
+
buttons: d(() => [
|
|
82
|
+
t(r, {
|
|
83
83
|
status: "primary",
|
|
84
84
|
icon: "vxe-icon-add",
|
|
85
85
|
onClick: R
|
|
86
86
|
}, {
|
|
87
|
-
default:
|
|
87
|
+
default: d(() => [
|
|
88
88
|
P($(e.$t("message.btn.add")), 1)
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
91
|
})
|
|
92
92
|
]),
|
|
93
|
-
tools:
|
|
94
|
-
t(
|
|
93
|
+
tools: d(() => [
|
|
94
|
+
t(r, {
|
|
95
95
|
icon: "vxe-icon-refresh",
|
|
96
96
|
onClick: f
|
|
97
97
|
})
|
|
@@ -101,56 +101,56 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
|
|
|
101
101
|
t(M, {
|
|
102
102
|
border: "",
|
|
103
103
|
"row-id": "id",
|
|
104
|
-
data:
|
|
105
|
-
loading:
|
|
104
|
+
data: h.value,
|
|
105
|
+
loading: m.value,
|
|
106
106
|
"tree-config": { childrenField: "children", expandAll: !0 }
|
|
107
107
|
}, {
|
|
108
|
-
default:
|
|
109
|
-
t(
|
|
108
|
+
default: d(() => [
|
|
109
|
+
t(c, {
|
|
110
110
|
type: "seq",
|
|
111
111
|
width: "130",
|
|
112
112
|
title: e.$t("message.seqNo"),
|
|
113
113
|
"tree-node": ""
|
|
114
114
|
}, null, 8, ["title"]),
|
|
115
|
-
t(
|
|
115
|
+
t(c, {
|
|
116
116
|
field: "dictCode",
|
|
117
117
|
title: e.$t("message.udp.dictCode")
|
|
118
118
|
}, null, 8, ["title"]),
|
|
119
|
-
t(
|
|
119
|
+
t(c, {
|
|
120
120
|
field: "dictName",
|
|
121
121
|
title: e.$t("message.udp.dictName")
|
|
122
122
|
}, null, 8, ["title"]),
|
|
123
|
-
t(
|
|
123
|
+
t(c, {
|
|
124
124
|
field: "dictDesc",
|
|
125
125
|
title: e.$t("message.remark")
|
|
126
126
|
}, null, 8, ["title"]),
|
|
127
|
-
t(
|
|
127
|
+
t(c, {
|
|
128
128
|
field: "enabled",
|
|
129
129
|
title: e.$t("message.enabled"),
|
|
130
130
|
width: "100"
|
|
131
131
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
132
|
+
default: d(({ row: l }) => [
|
|
133
|
+
N("span", null, $(l.enabled === "1" ? e.$t("message.enabled") : e.$t("message.disabled")), 1)
|
|
134
134
|
]),
|
|
135
135
|
_: 1
|
|
136
136
|
}, 8, ["title"]),
|
|
137
|
-
t(
|
|
137
|
+
t(c, {
|
|
138
138
|
field: "",
|
|
139
139
|
title: e.$t("message.operate"),
|
|
140
140
|
width: "200"
|
|
141
141
|
}, {
|
|
142
|
-
default:
|
|
143
|
-
t(
|
|
142
|
+
default: d(({ row: l }) => [
|
|
143
|
+
t(g, {
|
|
144
144
|
status: "primary",
|
|
145
145
|
content: "edit",
|
|
146
146
|
onTap: (C) => J(l)
|
|
147
147
|
}, null, 8, ["onTap"]),
|
|
148
|
-
t(
|
|
148
|
+
t(g, {
|
|
149
149
|
status: "warning",
|
|
150
150
|
content: "delete",
|
|
151
151
|
onTap: (C) => B(l)
|
|
152
152
|
}, null, 8, ["onTap"]),
|
|
153
|
-
t(
|
|
153
|
+
t(g, {
|
|
154
154
|
status: "success",
|
|
155
155
|
content: "add",
|
|
156
156
|
disabled: l.enabled !== "1",
|
|
@@ -163,16 +163,16 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
|
|
|
163
163
|
_: 1
|
|
164
164
|
}, 8, ["data", "loading"])
|
|
165
165
|
]),
|
|
166
|
-
|
|
166
|
+
s.value ? (w(), G(H, {
|
|
167
167
|
key: 0,
|
|
168
168
|
ref: "xmodal",
|
|
169
169
|
record: a.value,
|
|
170
170
|
items: O,
|
|
171
171
|
width: "400",
|
|
172
172
|
height: "280",
|
|
173
|
-
"data-status":
|
|
173
|
+
"data-status": i.value,
|
|
174
174
|
title: e.$t("message.title.dictInfo", { name: e.record.dictName }),
|
|
175
|
-
onClose: o[0] || (o[0] = (l) =>
|
|
175
|
+
onClose: o[0] || (o[0] = (l) => s.value = !1),
|
|
176
176
|
onConfirm: z
|
|
177
177
|
}, null, 8, ["record", "data-status", "title"])) : K("", !0)
|
|
178
178
|
]),
|
|
@@ -183,5 +183,5 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
|
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
export {
|
|
186
|
-
|
|
186
|
+
de as _
|
|
187
187
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as _, ref as d, createVNode as c, resolveComponent as
|
|
1
|
+
import { defineComponent as _, ref as d, createVNode as c, resolveComponent as i, createElementBlock as k, openBlock as m, createBlock as C, createCommentVNode as E } from "vue";
|
|
2
2
|
import { t as U } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
-
import { useRender as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
3
|
+
import { useRender as b } from "@utogether/utils";
|
|
4
|
+
import { w as q } from "./index-BWtOrjW2.js";
|
|
5
|
+
const y = {
|
|
6
6
|
name: "CodeRule"
|
|
7
7
|
}, V = /* @__PURE__ */ _({
|
|
8
|
-
...
|
|
9
|
-
setup(
|
|
10
|
-
const e =
|
|
8
|
+
...y,
|
|
9
|
+
setup(B) {
|
|
10
|
+
const e = b(), s = d(null), l = d(!1), o = d(!1), n = d({}), u = "/upfm/v1/codingRule", f = [{
|
|
11
11
|
field: "ruleCode",
|
|
12
12
|
title: "message.udp.ruleCode"
|
|
13
13
|
}, {
|
|
@@ -47,7 +47,7 @@ const b = {
|
|
|
47
47
|
row: t
|
|
48
48
|
}) => {
|
|
49
49
|
const r = t.haveBeenUsed === "Y" ? "look" : "encode", a = t.haveBeenUsed === "Y" ? "info" : "primary";
|
|
50
|
-
return [c(
|
|
50
|
+
return [c(i("ut-button"), {
|
|
51
51
|
content: r,
|
|
52
52
|
status: a,
|
|
53
53
|
onTap: () => v(t)
|
|
@@ -68,7 +68,6 @@ const b = {
|
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
field: "fieldType",
|
|
71
|
-
title: "message.udp.xxx",
|
|
72
71
|
required: !0,
|
|
73
72
|
editRender: e.renderDict("SU.CODE.RULE.TYPE")
|
|
74
73
|
},
|
|
@@ -114,15 +113,14 @@ const b = {
|
|
|
114
113
|
async function h({
|
|
115
114
|
row: t
|
|
116
115
|
}) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
!r && i.value.refreshData();
|
|
116
|
+
const [r] = await U(q().put(u, t));
|
|
117
|
+
!r && s.value.refreshData();
|
|
120
118
|
}
|
|
121
119
|
return (t, r) => {
|
|
122
|
-
const a =
|
|
120
|
+
const a = i("ut-grid"), R = i("ut-modal-grid");
|
|
123
121
|
return m(), k("div", null, [c(a, {
|
|
124
122
|
ref_key: "xgrid",
|
|
125
|
-
ref:
|
|
123
|
+
ref: s,
|
|
126
124
|
items: f,
|
|
127
125
|
columns: p,
|
|
128
126
|
url: u
|
|
@@ -137,7 +135,7 @@ const b = {
|
|
|
137
135
|
"show-footer": !1,
|
|
138
136
|
width: "80%",
|
|
139
137
|
title: "编码段设置",
|
|
140
|
-
onClose: r[0] || (r[0] = (
|
|
138
|
+
onClose: r[0] || (r[0] = (I) => l.value = !1)
|
|
141
139
|
}, null, 8, ["default-value", "default-params", "url", "editable"])) : E("", !0)]);
|
|
142
140
|
};
|
|
143
141
|
}
|
package/dist/core.es.js
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as a, J as t, C as r, E as o, G as u, w as i, y as n, K as l, D as g, L as h, O as m, M as c, s as f, z as y, A as S, c as A, h as C, i as R } from "./index-BWtOrjW2.js";
|
|
2
2
|
export {
|
|
3
|
+
a as constantRoutes,
|
|
3
4
|
t as default,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
l as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
r as delCurrentRoute,
|
|
6
|
+
o as getBrower,
|
|
7
|
+
u as getPlatform,
|
|
8
|
+
i as getServiceApi,
|
|
9
|
+
n as handleAliveRoute,
|
|
10
|
+
l as hasAuthority,
|
|
11
|
+
g as initDict,
|
|
12
|
+
h as lifeCycleEvent,
|
|
13
|
+
m as remainingRouters,
|
|
14
|
+
c as routerBefore,
|
|
15
|
+
f as store,
|
|
16
|
+
y as useDataThemeChange,
|
|
17
|
+
S as useLayout,
|
|
18
|
+
A as useMultiTagsStore,
|
|
19
|
+
C as usePermissionStore,
|
|
20
|
+
R as useSystemStore
|
|
13
21
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as k, ref as d, createVNode as n, resolveComponent as o, Fragment as v, createElementBlock as T, openBlock as f, createBlock as I, createCommentVNode as R } from "vue";
|
|
2
2
|
import { VXETable as C } from "vxe-table";
|
|
3
3
|
import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
-
import {
|
|
5
|
-
import { useRender as S, successMessage as
|
|
6
|
-
const
|
|
4
|
+
import { w as y } from "./index-BWtOrjW2.js";
|
|
5
|
+
import { useRender as S, successMessage as D } from "@utogether/utils";
|
|
6
|
+
const E = {
|
|
7
7
|
name: "CronTask"
|
|
8
8
|
}, H = /* @__PURE__ */ k({
|
|
9
|
-
...
|
|
10
|
-
setup(
|
|
9
|
+
...E,
|
|
10
|
+
setup(L) {
|
|
11
11
|
const r = S(), u = d(null), i = d(!1), c = d({}), s = "/usch/v1/jobInfo", p = [{
|
|
12
12
|
field: "jobName"
|
|
13
13
|
}, {
|
|
@@ -70,7 +70,7 @@ const D = {
|
|
|
70
70
|
content: "taskLog",
|
|
71
71
|
status: "info",
|
|
72
72
|
icon: "ri-file-line",
|
|
73
|
-
onTap: () =>
|
|
73
|
+
onTap: () => j(e)
|
|
74
74
|
}, null)])];
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -83,9 +83,9 @@ const D = {
|
|
|
83
83
|
}, l = async (e, t) => {
|
|
84
84
|
if (await C.modal.confirm("您确定要继续吗?") === "confirm") {
|
|
85
85
|
const [a] = await x(y().post(e, t));
|
|
86
|
-
a || (
|
|
86
|
+
a || (D(), u.value.refreshData());
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, w = [
|
|
89
89
|
// { field: 'jobName', width: 140 },
|
|
90
90
|
{
|
|
91
91
|
field: "startTime",
|
|
@@ -102,7 +102,7 @@ const D = {
|
|
|
102
102
|
{
|
|
103
103
|
field: "errorMessage"
|
|
104
104
|
}
|
|
105
|
-
],
|
|
105
|
+
], j = (e) => {
|
|
106
106
|
c.value = {
|
|
107
107
|
jobId: e.id
|
|
108
108
|
}, i.value = !0;
|
|
@@ -119,13 +119,13 @@ const D = {
|
|
|
119
119
|
key: 0,
|
|
120
120
|
ref: "xmgrid",
|
|
121
121
|
"default-params": c.value,
|
|
122
|
-
columns:
|
|
122
|
+
columns: w,
|
|
123
123
|
url: "/usch/v1/jobLog",
|
|
124
124
|
"show-footer": !1,
|
|
125
125
|
editable: !1,
|
|
126
126
|
width: "50%",
|
|
127
127
|
title: e.$t("message.title.cronLog"),
|
|
128
|
-
onClose: t[0] || (t[0] = (
|
|
128
|
+
onClose: t[0] || (t[0] = (N) => i.value = !1)
|
|
129
129
|
}, null, 8, ["default-params", "title"])) : R("", !0)]);
|
|
130
130
|
};
|
|
131
131
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as _, ref as r, unref as a, onMounted as d, resolveDirective as p, withDirectives as v, createElementBlock as h, openBlock as g, createElementVNode as k, nextTick as x } from "vue";
|
|
2
2
|
import { useRoute as E } from "vue-router";
|
|
3
|
-
import { _ as R } from "./index-
|
|
3
|
+
import { _ as R } from "./index-BWtOrjW2.js";
|
|
4
4
|
const w = { class: "frame" }, S = ["src"], V = /* @__PURE__ */ _({
|
|
5
5
|
__name: "frameView",
|
|
6
6
|
setup(B) {
|