@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.
Files changed (159) hide show
  1. package/build/plugins.ts +8 -1
  2. package/dist/{403-BBQoJwTM.js → 403-B_l9Q9w_.js} +1 -1
  3. package/dist/{404-BbJPSIWM.js → 404-33KZO3Vz.js} +1 -1
  4. package/dist/{500-BtFL9R4M.js → 500-oI74ZkQH.js} +1 -1
  5. package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-CNoxrmPS.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-CO01EWKQ.js +100 -0
  7. package/dist/{Company-CGqmslx-.js → Company-DOCRUvUs.js} +3 -3
  8. package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-Do2JlJ3U.js} +26 -26
  9. package/dist/{Department-BZyJtacc.js → Department-BAlx8Am2.js} +3 -3
  10. package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-BvQUkRaM.js} +25 -25
  11. package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-BMr-c76z.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-COERxrYp.js} +28 -30
  13. package/dist/DictView-DkG5lo6m.js +109 -0
  14. package/dist/InvOrganization-D_PuTpPt.js +74 -0
  15. package/dist/Org-CtVfZAjI.js +39 -0
  16. package/dist/{Preview-pHD84xqI.js → Preview-Cuj_akRk.js} +2 -2
  17. package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-CM2aNEVp.js} +1 -1
  18. package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-B1y79NKM.js} +43 -43
  19. package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-CZEfKCWP.js} +1 -1
  20. package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-C_cUB8bs.js} +1 -1
  21. 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
  22. package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-BprAuCb1.js} +28 -28
  23. package/dist/{Role-eFZoTpXc.js → Role-CAaLVGNy.js} +6 -6
  24. package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-DuFp2Ty7.js} +9 -9
  25. package/dist/{RolePanel-DlFw6HSf.js → RolePanel-BRStoO0e.js} +1 -1
  26. package/dist/{RolePanel-CoUOc3sX.js → RolePanel-FnyN7LiS.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CNIA7zdk.js +132 -0
  28. 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
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-CEnqhlSE.js} +23 -23
  30. package/dist/{Staff-DFBLCsAd.js → Staff-D493jHwR.js} +3 -3
  31. package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-suU_pcyD.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-DV16a2Nz.js} +16 -16
  33. package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-BbYWu-xZ.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-CfRIanr5.js} +2 -2
  35. package/dist/{SysUser-BdZvYxQH.js → SysUser-YXOsIVpJ.js} +2 -2
  36. package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-C1tQzih_.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BfT40pDr.js +298 -0
  38. package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-DzKl8RAz.js} +33 -33
  39. package/dist/{UserInfo-DqXCRZts.js → UserInfo-CYeYQNq8.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-DYVdi2Ck.js} +41 -39
  41. package/dist/{childView-B2lSsqS3.js → childView-BNYdfnMx.js} +1 -1
  42. package/dist/{childView-DRUNqgjI.js → childView-C6rHVrT6.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-6o00J0a7.js} +1 -1
  44. 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
  45. package/dist/{code-rule-DZC9T6cl.js → code-rule-MxcRbYZR.js} +13 -15
  46. package/dist/core.es.js +18 -10
  47. package/dist/{cron-task-BJwPeA5F.js → cron-task-B0yfTtm6.js} +11 -11
  48. package/dist/{frameView-C6wkvok-.js → frameView-DtHY5dLd.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/index-BWtOrjW2.js +4603 -0
  53. package/dist/{layoutView-CeJBpZb_.js → layoutView-D0Q7EG0u.js} +1564 -1559
  54. package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
  55. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  56. package/dist/login-CuO8YgN1.js +249 -0
  57. package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
  58. package/dist/{lov-view-DRF-99U4.js → lov-view-DcRVGqsD.js} +5 -5
  59. package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-ccOqhCC8.js} +1 -1
  60. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-DTBPgTe_.js} +34 -32
  61. package/dist/{pda-app-B9tn7jdv.js → pda-app-D7n4oxyn.js} +202 -188
  62. package/dist/{resource-BqnxbQNe.js → resource-_h2OtsKS.js} +18 -18
  63. package/dist/{su-welcome-VwifUK_O.js → su-welcome-Co6e4akE.js} +118 -120
  64. package/dist/sys-config-C6Es9vZl.js +355 -0
  65. package/dist/udp-core.css +1 -9
  66. package/dist/utogether-MlnyYtNS.js +4 -0
  67. package/index.ts +17 -5
  68. package/package.json +1 -1
  69. package/src/App.vue +2 -7
  70. package/src/api/http.ts +1 -4
  71. package/src/api/index.ts +5 -3
  72. package/src/api/user.ts +2 -2
  73. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  74. package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
  75. package/src/components/udp/form/form.vue +109 -0
  76. package/src/components/udp/grid/index.vue +509 -0
  77. package/src/components/udp/index.ts +4 -4
  78. package/src/components/udp/utils.ts +405 -40
  79. package/src/directives/permission/index.ts +1 -1
  80. package/src/layout/components/lay-navbar/index.vue +9 -7
  81. package/src/layout/components/lay-panel/index.vue +3 -3
  82. package/src/layout/components/lay-search/index.vue +1 -1
  83. package/src/layout/components/lay-select-org/index.vue +4 -9
  84. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  85. package/src/layout/components/lay-sidebar/horizontal.vue +4 -5
  86. package/src/layout/components/lay-sidebar/mixNav.vue +6 -4
  87. package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -98
  88. package/src/layout/components/lay-tag/index.vue +596 -625
  89. package/src/layout/hooks/useTag.ts +223 -233
  90. package/src/layout/layoutView.vue +215 -215
  91. package/src/layout/types.ts +3 -2
  92. package/src/main.ts +39 -31
  93. package/src/plugins/i18n/en.ts +26 -13
  94. package/src/plugins/i18n/zh.ts +35 -16
  95. package/src/plugins/vxe-table/index.ts +65 -2
  96. package/src/plugins/vxe-table/render.tsx +945 -817
  97. package/src/router/index.ts +186 -183
  98. package/src/router/modules/remaining.ts +1 -26
  99. package/src/router/utils.ts +393 -377
  100. package/src/store/modules/app.ts +1 -3
  101. package/src/store/modules/multiTags.ts +110 -109
  102. package/src/store/modules/permission.ts +113 -103
  103. package/src/store/modules/system.ts +1 -3
  104. package/src/style/button.scss +10 -3
  105. package/src/style/login.css +1 -1
  106. package/src/style/tailwind.css +1 -68
  107. package/src/style/vxetable.scss +348 -256
  108. package/src/utils/authority/index.ts +1 -1
  109. package/src/utils/index.ts +3 -1
  110. package/src/utils/propTypes.ts +1 -6
  111. package/src/views/login/login-view.vue +6 -20
  112. package/src/views/organization/company/CompanyPanel.vue +2 -2
  113. package/src/views/organization/department/DepartmentPanel.vue +269 -283
  114. package/src/views/organization/inv-org/InvOrganization.vue +23 -9
  115. package/src/views/organization/org/Org.vue +9 -5
  116. package/src/views/system/menu/SystemMenu.vue +183 -197
  117. package/src/views/system/menu/menuInfo.vue +8 -18
  118. package/src/views/system/role/AuthorityInfo.vue +19 -15
  119. package/src/views/system/role/Role.vue +1 -5
  120. package/src/views/system/role/RolePanel.vue +11 -2
  121. package/src/views/system/role/UserInfo.vue +11 -9
  122. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  123. package/src/views/system/role-assign/RolePanel.vue +12 -9
  124. package/src/views/system/sys/sys-config.vue +66 -21
  125. package/src/views/system/sysUser/SysUserPanel.vue +44 -43
  126. package/src/views/uapp/pda/pda-app.vue +48 -16
  127. package/src/views/udev/coderule/code-rule.vue +120 -121
  128. package/src/views/udev/dict/DictView.vue +16 -4
  129. package/src/views/udev/dict/childView.vue +8 -8
  130. package/src/views/ufile/aggregation/File.vue +5 -5
  131. package/src/views/ufile/file/water-mark.vue +14 -14
  132. package/src/views/uhome/components/menu-favorite.vue +314 -331
  133. package/src/views/uhome/su-welcome.vue +3 -3
  134. package/src/views/ulogin/login.vue +19 -12
  135. package/src/views/upms/interface/log-in.vue +100 -106
  136. package/src/views/upms/interface/log-out.vue +2 -8
  137. package/src/views/upms/user/login-log.vue +54 -60
  138. package/src/views/urpt/design/DesignPanel.vue +16 -35
  139. package/src/views/urpt/design/Preview.vue +1 -0
  140. package/src/views/urpt/design/ReportDesign.vue +17 -23
  141. package/src/views/urpt/static-resource/resource.vue +3 -3
  142. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  143. package/types/global.d.ts +4 -9
  144. package/vite.config.ts +6 -2
  145. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js +0 -102
  146. package/dist/DictView-B4a7Hs1X.js +0 -95
  147. package/dist/InvOrganization-q4T3y8dQ.js +0 -260
  148. package/dist/Org-BTGTrAVz.js +0 -35
  149. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js +0 -126
  150. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js +0 -288
  151. package/dist/index-DZc3qRTx.js +0 -2650
  152. package/dist/login-BOxwzwdB.js +0 -252
  153. package/dist/sys-config-C0-gSBFO.js +0 -277
  154. package/dist/utogether-Di1byIum.js +0 -182
  155. package/src/components/udp/form-upload.vue +0 -183
  156. package/src/components/udp/modal-form.vue +0 -180
  157. package/src/utils/http/index.ts +0 -297
  158. package/src/utils/http/types.d.ts +0 -46
  159. package/src/utils/udp/useRender.ts +0 -420
@@ -1,7 +1,7 @@
1
- import { defineComponent as x, ref as i, reactive as R, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as u, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as q, mergeProps as A, toHandlers as E } from "vue";
2
- import { t as P } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { q as S } from "./index-DZc3qRTx.js";
4
- const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
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(f, { emit: p }) {
13
- const s = f, g = i(!1), r = i(!1), a = S(), h = p, b = [
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
- ], m = i({}), n = R({
79
- height: 560,
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: o }) => {
92
- const t = Object.assign({}, o);
93
- return t.id = s.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
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 o = {
98
- roleId: s.record.id,
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", o);
101
+ return a.delete("/uums/role/deleteRoleUsers", s);
102
102
  }
103
103
  }
104
104
  },
105
105
  columns: v
106
- }), w = {
106
+ }), _ = {
107
107
  toolbarButtonClick({ code: e }) {
108
- e === "add" && (r.value = !0);
108
+ e === "add" && (o.value = !0);
109
109
  }
110
110
  }, N = async (e) => {
111
- const o = { userIds: "", roleId: s.record.id };
112
- o.userIds = e.map((l) => l.id).join(","), n.loading = !0;
113
- const [t] = await P(a.post("/uums/role/addUserRole", o));
114
- n.loading = !1, t || (m.value.commitProxy("query"), r.value = !1);
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, o) => {
121
+ }), (e, s) => {
122
122
  const t = d("vxe-grid"), l = d("ut-modal-grid"), k = d("el-drawer");
123
- return u(), U("div", V, [
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, A({
133
+ c(t, E({
134
134
  ref_key: "xgrid",
135
- ref: m
136
- }, n, E(w)), null, 16),
137
- r.value ? (u(), j(l, {
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
- onClose: o[0] || (o[0] = (z) => r.value = !1),
147
+ height: "75%",
148
+ onClose: s[0] || (s[0] = (z) => o.value = !1),
147
149
  onConfirm: N
148
- }, null, 8, ["default-params"])) : q("", !0)
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
- F as _
159
+ D as _
158
160
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-6o00J0a7.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-oGriyFTv.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-O_zWFjYY.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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 { e as $, q as f } from "./index-DZc3qRTx.js";
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 c, onMounted as F, resolveComponent as n, createElementBlock as j, openBlock as N, createVNode as t, withCtx as s, createElementVNode as w, createBlock as G, createCommentVNode as K, createTextVNode as P, toDisplayString as $ } from "vue";
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 { q as _, e as S } from "./index-DZc3qRTx.js";
7
- const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } }, h = "/upfm/v1/lov", se = /* @__PURE__ */ U({
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(), y = c([]), u = c(!1), d = c(!1), a = c({}), p = c({}), m = c("add"), O = [
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
- d.value = !0, m.value = "add", a.value = {
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
- d.value = !0, m.value = "child", a.value = {
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.deleteRecord")) === "confirm" && (await _().delete(h, [e]), k(), f());
40
+ await W.modal.confirm(q("message.delRecord")) === "confirm" && (await b().delete(_, [e]), k(), f());
41
41
  }, J = async (e) => {
42
- d.value = !0, m.value = "edit", p.value = v.record, a.value = JSON.parse(JSON.stringify(e)), console.log({ subRecord: a });
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(m.value) ? o = "post" : o = "put", u.value = !0;
52
- const [i, g] = await I(_()[o](h, [e]));
53
- u.value = !1, i || (console.log({ res: g }), d.value = !1, k(), f());
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
- u.value = !0;
59
- const [o, i] = await I(_().get(h + "/children", e));
60
- u.value = !1, o || (y.value = i.list);
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 i = n("vxe-button"), g = n("vxe-toolbar"), r = n("vxe-table-column"), b = n("ut-button"), M = n("vxe-table"), H = n("ut-modal-form"), L = n("el-drawer");
69
- return N(), j("div", Y, [
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: s(() => [
79
- w("div", Z, [
80
- t(g, null, {
81
- buttons: s(() => [
82
- t(i, {
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: s(() => [
87
+ default: d(() => [
88
88
  P($(e.$t("message.btn.add")), 1)
89
89
  ]),
90
90
  _: 1
91
91
  })
92
92
  ]),
93
- tools: s(() => [
94
- t(i, {
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: y.value,
105
- loading: u.value,
104
+ data: h.value,
105
+ loading: m.value,
106
106
  "tree-config": { childrenField: "children", expandAll: !0 }
107
107
  }, {
108
- default: s(() => [
109
- t(r, {
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(r, {
115
+ t(c, {
116
116
  field: "dictCode",
117
117
  title: e.$t("message.udp.dictCode")
118
118
  }, null, 8, ["title"]),
119
- t(r, {
119
+ t(c, {
120
120
  field: "dictName",
121
121
  title: e.$t("message.udp.dictName")
122
122
  }, null, 8, ["title"]),
123
- t(r, {
123
+ t(c, {
124
124
  field: "dictDesc",
125
125
  title: e.$t("message.remark")
126
126
  }, null, 8, ["title"]),
127
- t(r, {
127
+ t(c, {
128
128
  field: "enabled",
129
129
  title: e.$t("message.enabled"),
130
130
  width: "100"
131
131
  }, {
132
- default: s(({ row: l }) => [
133
- w("span", null, $(l.enabled === "1" ? e.$t("message.enabled") : e.$t("message.disabled")), 1)
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(r, {
137
+ t(c, {
138
138
  field: "",
139
139
  title: e.$t("message.operate"),
140
140
  width: "200"
141
141
  }, {
142
- default: s(({ row: l }) => [
143
- t(b, {
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(b, {
148
+ t(g, {
149
149
  status: "warning",
150
150
  content: "delete",
151
151
  onTap: (C) => B(l)
152
152
  }, null, 8, ["onTap"]),
153
- t(b, {
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
- d.value ? (N(), G(H, {
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": m.value,
173
+ "data-status": i.value,
174
174
  title: e.$t("message.title.dictInfo", { name: e.record.dictName }),
175
- onClose: o[0] || (o[0] = (l) => d.value = !1),
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
- se as _
186
+ de as _
187
187
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as _, ref as d, createVNode as c, resolveComponent as s, createElementBlock as k, openBlock as m, createBlock as C, createCommentVNode as E } from "vue";
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 q } from "@utogether/utils";
4
- import { q as x } from "./index-DZc3qRTx.js";
5
- const b = {
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
- ...b,
9
- setup(y) {
10
- const e = q(), i = d(null), l = d(!1), o = d(!1), n = d({}), u = "/upfm/v1/codingRule", f = [{
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(s("ut-button"), {
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
- console.log(t);
118
- const [r] = await U(x().put(u, t));
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 = s("ut-grid"), R = s("ut-modal-grid");
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: i,
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] = (B) => l.value = !1)
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 { G as t, C as a, q as r, w as o, H as u, J as i, s as l, u as S, d, e as n } from "./index-DZc3qRTx.js";
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
- a as delCurrentRoute,
5
- r as getServiceApi,
6
- o as handleAliveRoute,
7
- u as hasAuthority,
8
- i as lifeCycleEvent,
9
- l as store,
10
- S as useMultiTagsStore,
11
- d as usePermissionStore,
12
- n as useSystemStore
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 { q as y } from "./index-DZc3qRTx.js";
5
- import { useRender as S, successMessage as q } from "@utogether/utils";
6
- const D = {
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
- ...D,
10
- setup(E) {
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: () => w(e)
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 || (q(), u.value.refreshData());
86
+ a || (D(), u.value.refreshData());
87
87
  }
88
- }, j = [
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
- ], w = (e) => {
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: j,
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] = (L) => i.value = !1)
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-DZc3qRTx.js";
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) {