@utogether/udp-core 1.0.1-beta.5 → 1.0.1-beta.6

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 (85) hide show
  1. package/dist/{403-CP2RkkAy.js → 403-Co4hnzlW.js} +10 -10
  2. package/dist/{404-DwK-0wNQ.js → 404-BsseeBQQ.js} +4 -4
  3. package/dist/{500-CLbJDqnd.js → 500-DtKz7MA4.js} +1 -1
  4. package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-iWYEWOmC.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BWp7PKyH.js} +9 -8
  6. package/dist/{Company-B--cokc6.js → Company-CK8Zkcv3.js} +3 -3
  7. package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DL4UrYYG.js} +6 -6
  8. package/dist/{Department-DbKdyNzK.js → Department-BPHn8to4.js} +3 -3
  9. package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-Bqraa_NB.js} +24 -23
  10. package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CFOIOZme.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js} +9 -8
  12. package/dist/{DictView-B8j-EWx5.js → DictView-CaD1yHQS.js} +1 -1
  13. package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-CoO0_wsY.js} +8 -7
  14. package/dist/Org-BU3oaFx3.js +35 -0
  15. package/dist/{Preview-yot4NBW5.js → Preview-B-K_bxDG.js} +1 -1
  16. package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-DElbukSL.js} +1 -1
  17. package/dist/{ReportDesign-CBihGRth.js → ReportDesign-DvUHOKDK.js} +23 -22
  18. package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-BcSYRNT3.js} +1 -1
  19. package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-BGEA4Pqk.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-B-KEPnfY.js} +1 -1
  21. package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-DnPtEoxn.js} +24 -24
  22. package/dist/{Role-Cf7DB7uS.js → Role-CMKkWZil.js} +3 -3
  23. package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BToNzG9a.js} +8 -8
  24. package/dist/{RolePanel-EXL_FLvM.js → RolePanel-BNqd7-M6.js} +1 -1
  25. package/dist/{RolePanel-BBGDGK8V.js → RolePanel-BikZ-D2u.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js → RolePanel.vue_vue_type_script_setup_true_lang-DYP3u1Nv.js} +9 -8
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-Nngq860f.js} +9 -9
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js} +17 -17
  29. package/dist/{Staff-DYu5ZEyR.js → Staff-DBFATgM_.js} +3 -3
  30. package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-CrfwZcEL.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js → StaffInfo.vue_vue_type_script_setup_true_lang-CE3_NJF_.js} +5 -5
  32. package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-D54Rl_Bg.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js} +6 -6
  34. package/dist/{SysUser-BHk_szpK.js → SysUser-CsuovBei.js} +2 -2
  35. package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-DNUwWEVp.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js} +47 -44
  37. package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-oLmwvaqT.js} +14 -13
  38. package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-LyrDwBG1.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js} +13 -12
  40. package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
  41. package/dist/{childView-BSUWnii7.js → childView-DGKp87fT.js} +1 -1
  42. package/dist/{childView-CFC3gA_U.js → childView-SmYl4G6c.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js → childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js} +18 -17
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js} +10 -9
  45. package/dist/{code-rule-DybjhotB.js → code-rule-CfbGjmOs.js} +14 -13
  46. package/dist/core.es.js +2 -2
  47. package/dist/{cron-task-DGdknqaF.js → cron-task-DMfwGfms.js} +8 -7
  48. package/dist/{frameView-BOOZRv1S.js → frameView-D-hu_pqQ.js} +1 -1
  49. package/dist/index-ADANSV-q.js +4278 -0
  50. package/dist/{layoutView-BWeDLY9C.js → layoutView-D3SikBPr.js} +11 -10
  51. package/dist/{login-BcuCHhGE.js → login-CQ1yBBdY.js} +26 -25
  52. package/dist/{lov-view-DDgzqYSW.js → lov-view-CSobDBH7.js} +9 -8
  53. package/dist/{menuInfo-B3MOxomU.js → menuInfo-mFuM30f1.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js} +16 -15
  55. package/dist/{pda-app-Dy9WMHEG.js → pda-app-CIGFsvrX.js} +66 -61
  56. package/dist/{resource-BoCP7-dM.js → resource-mbd4LPi-.js} +20 -20
  57. package/dist/{su-welcome-DXpI1MHr.js → su-welcome-DruLsVvu.js} +84 -84
  58. package/dist/{sys-config-BiUWzxGU.js → sys-config-TXb5cJM4.js} +19 -18
  59. package/dist/udp-core.css +1 -1
  60. package/dist/{utogether-DXDcsKt7.js → utogether-Cv0UXnEX.js} +1 -1
  61. package/package.json +18 -18
  62. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  63. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  64. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  65. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  66. package/src/components/udp/grid.vue +12 -6
  67. package/src/components/udp/index.ts +1 -1
  68. package/src/components/udp/lov.vue +1 -1
  69. package/src/layout/components/lay-search/index.vue +25 -25
  70. package/src/main.ts +10 -10
  71. package/src/plugins/i18n/zh.ts +342 -338
  72. package/src/plugins/vxe-table/render.tsx +5 -3
  73. package/src/views/login/login-view.vue +1 -1
  74. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  75. package/src/views/system/sysUser/SysUserPanel.vue +9 -5
  76. package/src/views/uapp/pda/pda-app.vue +9 -3
  77. package/src/views/ufile/aggregation/File.vue +5 -5
  78. package/src/views/ufile/file/water-mark.vue +14 -14
  79. package/src/views/uhome/su-welcome.vue +2 -2
  80. package/src/views/ulogin/login.vue +8 -0
  81. package/src/views/urpt/design/ReportDesign.vue +5 -5
  82. package/src/views/urpt/static-resource/resource.vue +3 -3
  83. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  84. package/dist/Org-Dg9Xkd34.js +0 -34
  85. package/dist/index-BDE4-ZvN.js +0 -5091
@@ -1,14 +1,15 @@
1
- import { defineComponent as z, reactive as G, ref as v, inject as H, createVNode as t, Fragment as R, resolveComponent as l, nextTick as Q, onMounted as Y, createElementBlock as U, openBlock as g, withCtx as i, createBlock as k, createCommentVNode as J, renderList as K, unref as O } from "vue";
1
+ import { defineComponent as z, reactive as G, ref as N, inject as H, createVNode as t, Fragment as R, resolveComponent as l, nextTick as Q, onMounted as Y, createElementBlock as U, openBlock as g, withCtx as i, createBlock as k, createCommentVNode as J, renderList as K, unref as O } from "vue";
2
2
  import { useI18n as W } from "vue-i18n";
3
- import { q as $, v as X } from "./index-BDE4-ZvN.js";
4
- import { useRender as Z, warnMessage as ee, errorMessage as te } from "@utogether/utils";
3
+ import { t as $ } from "./await-to-js.es5-BtRbN2QH.js";
4
+ import { useRender as X, warnMessage as Z, delay as ee, errorMessage as te } from "@utogether/utils";
5
5
  import { VxeUI as se } from "vxe-pc-ui";
6
6
  import { isEmpty as ae } from "xe-utils";
7
- const le = {
7
+ import { q as le } from "./index-ADANSV-q.js";
8
+ const re = {
8
9
  class: "page"
9
- }, u = "/uums/user", ce = /* @__PURE__ */ z({
10
+ }, u = "/uums/user", fe = /* @__PURE__ */ z({
10
11
  __name: "SysUserPanel",
11
- setup(re) {
12
+ setup(ne) {
12
13
  const s = G({
13
14
  record: {},
14
15
  listQuery: {},
@@ -19,7 +20,7 @@ const le = {
19
20
  showUserRole: !1,
20
21
  showAuth: !1,
21
22
  dataStatus: ""
22
- }), d = X(), {
23
+ }), d = le(), {
23
24
  t: r
24
25
  } = W(), q = {
25
26
  userName: [{
@@ -38,13 +39,13 @@ const le = {
38
39
  required: !0,
39
40
  message: `${r("message.required")}${r("message.userPwd")}`
40
41
  }]
41
- }, m = Z(), y = v({}), C = H("treeList"), N = v(null), I = [{
42
+ }, m = X(), h = N({}), C = H("treeList"), w = N(null), I = [{
42
43
  field: "name",
43
44
  title: "message.userName"
44
45
  }, {
45
46
  field: "userName",
46
47
  title: "message.userCode"
47
- }], h = [{
48
+ }], _ = [{
48
49
  type: "checkbox",
49
50
  width: 40,
50
51
  align: "center"
@@ -83,26 +84,26 @@ const le = {
83
84
  }) => [t(R, null, [t(l("ut-button"), {
84
85
  icon: "ri-user-fill",
85
86
  content: "role",
86
- onTap: () => S(e)
87
+ onTap: () => P(e)
87
88
  }, null), t(l("ut-button"), {
88
89
  icon: "ri-lock-fill",
89
90
  content: "auth",
90
91
  status: "success",
91
- onTap: () => E(e)
92
+ onTap: () => A(e)
92
93
  }, null), t(l("ut-button"), {
93
94
  icon: "ri-lock-fill",
94
95
  content: "passwordReset",
95
96
  status: "warning",
96
- onTap: () => A(e)
97
+ onTap: () => S(e)
97
98
  }, null)])]
98
99
  }
99
100
  }];
100
101
  async function L({
101
102
  row: e
102
103
  }) {
103
- await $(d.put(u, [e])), N.value.refreshData();
104
+ await $(d.put(u, [e])), w.value.refreshData();
104
105
  }
105
- const S = async (e) => {
106
+ const P = async (e) => {
106
107
  var n;
107
108
  const a = await d.get(u + "/getUserRole", {
108
109
  userName: e.userName
@@ -110,57 +111,59 @@ const le = {
110
111
  s.roleList = (n = a[0]) == null ? void 0 : n.sysRoles, Q(() => {
111
112
  s.showUserRole = !0;
112
113
  });
113
- }, A = async (e) => {
114
+ }, S = async (e) => {
114
115
  await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
115
- }, E = async (e) => {
116
+ }, A = async (e) => {
116
117
  var f;
117
118
  const [a, n] = await $(d.get(u + "/getUserRole", {
118
119
  userName: e.userName
119
120
  }));
120
- a || (ae(n) ? ee(r("message.tip.emptyAuth")) : (s.roleList = (f = n[0]) == null ? void 0 : f.sysMenuExts, s.showAuth = !0));
121
- }, P = {
121
+ a || (ae(n) ? Z(r("message.tip.emptyAuth")) : (s.roleList = (f = n[0]) == null ? void 0 : f.sysMenuExts, s.showAuth = !0));
122
+ }, E = {
122
123
  editActived({
123
124
  row: e
124
125
  }) {
125
- h[1].editRender.props.disabled = !!e.id, h[4].editRender.props.disabled = !!e.id;
126
+ _[1].editRender.props.disabled = !!e.id, _[4].editRender.props.disabled = !!e.id;
126
127
  }
127
- }, b = v(null), M = () => {
128
+ }, b = N(null), M = () => {
128
129
  b.value.validate(async (e) => {
129
130
  if (!e) {
130
131
  const {
131
132
  record: a,
132
133
  dataStatus: n
133
134
  } = s;
134
- n === "add" ? await d.post(u, a) : await d.put(u, a), x();
135
+ n === "add" ? await d.post(u, a) : await d.put(u, a), V();
135
136
  }
136
137
  });
137
- }, x = () => {
138
+ }, V = () => {
138
139
  s.showModelView = !1;
139
- }, T = () => {
140
+ }, D = () => {
140
141
  d.get("/uums/unit", {
141
142
  pageSize: 10
142
- }).then((e) => {
143
- y.value = {
143
+ }).then(async (e) => {
144
+ h.value = {
144
145
  unitId: e[0].id,
145
146
  enabled: "1"
146
- };
147
+ }, await ee(100), w.value.refreshData();
147
148
  }).catch(() => {
148
149
  te("获取租户失败,刷新后重试");
149
150
  });
150
151
  };
151
152
  return Y(() => {
152
- T();
153
+ D();
153
154
  }), (e, a) => {
154
- const n = l("ut-grid"), f = l("vxe-option"), D = l("vxe-select"), c = l("vxe-form-item"), V = l("ut-button"), B = l("vxe-form"), w = l("vxe-modal"), _ = l("vxe-column"), F = l("vxe-table"), j = l("el-tree-v2");
155
- return g(), U("div", le, [t(n, {
155
+ const n = l("ut-grid"), f = l("vxe-option"), T = l("vxe-select"), c = l("vxe-form-item"), x = l("ut-button"), B = l("vxe-form"), v = l("vxe-modal"), y = l("vxe-column"), F = l("vxe-table"), j = l("el-tree-v2");
156
+ return g(), U("div", re, [t(n, {
156
157
  ref_key: "xgrid",
157
- ref: N,
158
- columns: h,
158
+ ref: w,
159
+ columns: _,
159
160
  items: I,
160
161
  url: u,
161
- "default-params": y.value,
162
- events: P
163
- }, null, 8, ["default-params"]), t(w, {
162
+ "auto-load": !1,
163
+ "default-params": h.value,
164
+ "default-value": h.value,
165
+ events: E
166
+ }, null, 8, ["default-params", "default-value"]), t(v, {
164
167
  modelValue: s.showModelView,
165
168
  "onUpdate:modelValue": a[0] || (a[0] = (o) => s.showModelView = o),
166
169
  title: "用户信息",
@@ -180,7 +183,7 @@ const le = {
180
183
  }, {
181
184
  default: i(({
182
185
  data: o
183
- }) => [t(D, {
186
+ }) => [t(T, {
184
187
  modelValue: o.unitId,
185
188
  "onUpdate:modelValue": (p) => o.unitId = p
186
189
  }, {
@@ -221,11 +224,11 @@ const le = {
221
224
  align: "right",
222
225
  span: "24"
223
226
  }, {
224
- default: i(() => [t(V, {
227
+ default: i(() => [t(x, {
225
228
  content: "cancel",
226
229
  icon: "ri-close-fill",
227
- onClick: x
228
- }), t(V, {
230
+ onClick: V
231
+ }), t(x, {
229
232
  content: "confirm",
230
233
  icon: "ri-save-3-fill",
231
234
  status: "u-cyan",
@@ -236,7 +239,7 @@ const le = {
236
239
  _: 1
237
240
  }, 8, ["data"])]),
238
241
  _: 1
239
- }, 8, ["modelValue"]), t(w, {
242
+ }, 8, ["modelValue"]), t(v, {
240
243
  modelValue: s.showUserRole,
241
244
  "onUpdate:modelValue": a[1] || (a[1] = (o) => s.showUserRole = o),
242
245
  title: e.$t("message.title.roleInfo"),
@@ -247,20 +250,20 @@ const le = {
247
250
  data: s.roleList,
248
251
  border: ""
249
252
  }, {
250
- default: i(() => [t(_, {
253
+ default: i(() => [t(y, {
251
254
  type: "seq",
252
255
  width: "60"
253
- }), t(_, {
256
+ }), t(y, {
254
257
  field: "roleName",
255
258
  title: e.$t("message.udp.roleName")
256
- }, null, 8, ["title"]), t(_, {
259
+ }, null, 8, ["title"]), t(y, {
257
260
  field: "roleDesc",
258
261
  title: e.$t("message.udp.roleDesc")
259
262
  }, null, 8, ["title"])]),
260
263
  _: 1
261
264
  }, 8, ["data"])]),
262
265
  _: 1
263
- }, 8, ["modelValue", "title"]), t(w, {
266
+ }, 8, ["modelValue", "title"]), t(v, {
264
267
  modelValue: s.showAuth,
265
268
  "onUpdate:modelValue": a[2] || (a[2] = (o) => s.showAuth = o),
266
269
  title: e.$t("message.title.authority"),
@@ -283,5 +286,5 @@ const le = {
283
286
  }
284
287
  });
285
288
  export {
286
- ce as _
289
+ fe as _
287
290
  };
@@ -1,16 +1,17 @@
1
1
  import { defineComponent as S, reactive as k, ref as v, createVNode as o, resolveComponent as r, Fragment as m, createElementBlock as D, openBlock as A } from "vue";
2
2
  import { useI18n as E } from "vue-i18n";
3
- import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js";
3
+ import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js";
4
4
  import { _ as N } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
5
- import { clone as h } from "xe-utils";
6
- import { v as M, q as R } from "./index-BDE4-ZvN.js";
7
- import { VxeUI as U } from "vxe-pc-ui";
8
- import { useRender as B } from "@utogether/utils";
5
+ import { clone as p } from "xe-utils";
6
+ import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
7
+ import { VxeUI as R } from "vxe-pc-ui";
8
+ import { useRender as U } from "@utogether/utils";
9
+ import { q as B } from "./index-ADANSV-q.js";
9
10
  const P = {
10
11
  class: "page-content"
11
12
  }, z = {
12
13
  name: "SystemMenu"
13
- }, Y = /* @__PURE__ */ S({
14
+ }, j = /* @__PURE__ */ S({
14
15
  ...z,
15
16
  setup(F) {
16
17
  const t = k({
@@ -25,8 +26,8 @@ const P = {
25
26
  pageNum: 1
26
27
  }
27
28
  }), {
28
- t: p
29
- } = E(), f = B(), d = M(), s = v(null), i = "/uums/menu";
29
+ t: h
30
+ } = E(), f = U(), d = B(), s = v(null), i = "/uums/menu";
30
31
  let l;
31
32
  const C = [{
32
33
  type: "checkbox",
@@ -99,7 +100,7 @@ const P = {
99
100
  }, u = (e) => {
100
101
  t.showDrawer = !0, t.dataStatus = "add", t.record.dispalyCode = e == null ? void 0 : e.permissionCode, t.record.permissionCode = e == null ? void 0 : e.permissionCode, t.record.menuType = "0", t.record.menuCategory = e ? "" : "0", t.record.parentId = e == null ? void 0 : e.id, t.record.hasChildren = e == null ? void 0 : e.hasChildren, t.record.children = t.record.children || [], l = e;
101
102
  }, w = (e) => {
102
- t.showDrawer = !0, t.dataStatus = "update", t.record = h(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
103
+ t.showDrawer = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
103
104
  };
104
105
  async function _({
105
106
  row: e
@@ -107,12 +108,12 @@ const P = {
107
108
  await d.put(i, [e]), s.value.refreshData();
108
109
  }
109
110
  const T = async () => {
110
- const e = await U.modal.confirm(p("message.delRecord")), n = s.value.getInstance().getCheckboxRecords();
111
+ const e = await R.modal.confirm(h("message.delRecord")), n = s.value.getInstance().getCheckboxRecords();
111
112
  if (e === "confirm") {
112
- const [a] = await R(d.delete(i, n));
113
+ const [a] = await M(d.delete(i, n));
113
114
  }
114
115
  }, b = (e) => {
115
- t.showAuthority = !0, t.dataStatus = "update", t.record = h(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
116
+ t.showAuthority = !0, t.dataStatus = "update", t.record = p(e, !0), t.record.menuType = t.record.menuType.toString(), t.record.dispalyCode = e.permissionCode;
116
117
  }, c = (e, n) => {
117
118
  e === "submit" && (l || n) && s.value.getInstance().reloadTreeExpand(l || n), t.record = {}, t.showDrawer = !1, t.showAuthority = !1;
118
119
  };
@@ -148,5 +149,5 @@ const P = {
148
149
  }
149
150
  });
150
151
  export {
151
- Y as default
152
+ j as default
152
153
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,7 @@
1
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 { v as P, q as S } from "./index-BDE4-ZvN.js";
3
- const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
2
+ import { t as P } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { q as S } from "./index-ADANSV-q.js";
4
+ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
4
5
  __name: "UserInfo",
5
6
  props: {
6
7
  record: { default: () => ({}) },
@@ -9,7 +10,7 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
9
10
  },
10
11
  emits: ["onClose"],
11
12
  setup(f, { emit: p }) {
12
- const r = f, g = i(!1), s = i(!1), a = P(), h = p, b = [
13
+ const s = f, g = i(!1), r = i(!1), a = S(), h = p, b = [
13
14
  {
14
15
  field: "userName",
15
16
  title: "message.userCode",
@@ -89,12 +90,12 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
89
90
  // 接收 Promise
90
91
  query: ({ page: e, form: o }) => {
91
92
  const t = Object.assign({}, o);
92
- return t.id = r.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
93
+ return t.id = s.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
93
94
  },
94
95
  // body 对象: { removeRecords }
95
96
  delete: ({ body: { removeRecords: e } }) => {
96
97
  const o = {
97
- roleId: r.record.id,
98
+ roleId: s.record.id,
98
99
  userIds: e.map((t) => t.id).join()
99
100
  };
100
101
  return a.delete("/uums/role/deleteRoleUsers", o);
@@ -104,13 +105,13 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
104
105
  columns: v
105
106
  }), w = {
106
107
  toolbarButtonClick({ code: e }) {
107
- e === "add" && (s.value = !0);
108
+ e === "add" && (r.value = !0);
108
109
  }
109
110
  }, N = async (e) => {
110
- const o = { userIds: "", roleId: r.record.id };
111
+ const o = { userIds: "", roleId: s.record.id };
111
112
  o.userIds = e.map((l) => l.id).join(","), n.loading = !0;
112
- const [t] = await S(a.post("/uums/role/addUserRole", o));
113
- n.loading = !1, t || (m.value.commitProxy("query"), s.value = !1);
113
+ const [t] = await P(a.post("/uums/role/addUserRole", o));
114
+ n.loading = !1, t || (m.value.commitProxy("query"), r.value = !1);
114
115
  };
115
116
  function I() {
116
117
  h("onClose");
@@ -133,7 +134,7 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
133
134
  ref_key: "xgrid",
134
135
  ref: m
135
136
  }, n, E(w)), null, 16),
136
- s.value ? (u(), j(l, {
137
+ r.value ? (u(), j(l, {
137
138
  key: 0,
138
139
  url: "/uums/user/listUserToRole",
139
140
  "default-params": { roleId: e.record.id },
@@ -142,7 +143,7 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
142
143
  "show-footer": !0,
143
144
  editable: !1,
144
145
  width: "60%",
145
- onClose: o[0] || (o[0] = (z) => s.value = !1),
146
+ onClose: o[0] || (o[0] = (z) => r.value = !1),
146
147
  onConfirm: N
147
148
  }, null, 8, ["default-params"])) : q("", !0)
148
149
  ]),
@@ -153,5 +154,5 @@ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ x({
153
154
  }
154
155
  });
155
156
  export {
156
- D as _
157
+ F as _
157
158
  };
@@ -0,0 +1,10 @@
1
+ function e(t, r) {
2
+ return t.then(function(n) {
3
+ return [null, n];
4
+ }).catch(function(n) {
5
+ return [n, void 0];
6
+ });
7
+ }
8
+ export {
9
+ e as t
10
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-DU-Uun5d.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-WQVLSJR8.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,9 +1,10 @@
1
1
  import { defineComponent as U, ref as u, onMounted as F, resolveComponent as n, createElementBlock as j, openBlock as N, createVNode as t, withCtx as d, createElementVNode as w, createBlock as G, createCommentVNode as K, createTextVNode as P, toDisplayString as $ } from "vue";
2
2
  import { useI18n as Q } from "vue-i18n";
3
- import { v as b, e as I, q as k } from "./index-BDE4-ZvN.js";
3
+ import { t as I } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { VxeUI as W } from "vxe-pc-ui";
5
- import { useRender as X, successMessage as S } from "@utogether/utils";
6
- const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } }, _ = "/upfm/v1/lov", ne = /* @__PURE__ */ U({
5
+ import { useRender as X, successMessage as k } from "@utogether/utils";
6
+ import { q as b, e as S } from "./index-ADANSV-q.js";
7
+ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } }, _ = "/upfm/v1/lov", de = /* @__PURE__ */ U({
7
8
  __name: "childView",
8
9
  props: {
9
10
  record: { default: () => ({}) },
@@ -11,7 +12,7 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
11
12
  },
12
13
  emits: ["onClose"],
13
14
  setup(V, { emit: D }) {
14
- const f = V, T = X(), { t: q } = Q(), h = u([]), m = u(!1), s = u(!1), a = u({}), p = u({}), i = u("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 = [
15
16
  { field: "dictCode", title: "message.udp.dictCode", required: !0 },
16
17
  { field: "dictName", title: "message.udp.dictName", required: !0 },
17
18
  { field: "dictDesc", title: "message.remark" },
@@ -27,7 +28,7 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
27
28
  dictName: "",
28
29
  dictDesc: "",
29
30
  enabled: "1"
30
- }, p.value = f.record;
31
+ }, p.value = v.record;
31
32
  }, x = (e) => {
32
33
  s.value = !0, i.value = "child", a.value = {
33
34
  dictCode: "",
@@ -36,33 +37,33 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
36
37
  enabled: "1"
37
38
  }, p.value = JSON.parse(JSON.stringify(e));
38
39
  }, B = async (e) => {
39
- await W.modal.confirm(q("message.deleteRecord")) === "confirm" && (await b().delete(_, [e]), S(), v());
40
+ await W.modal.confirm(q("message.deleteRecord")) === "confirm" && (await b().delete(_, [e]), k(), f());
40
41
  }, J = async (e) => {
41
- s.value = !0, i.value = "edit", p.value = f.record, a.value = JSON.parse(JSON.stringify(e));
42
+ s.value = !0, i.value = "edit", p.value = v.record, a.value = JSON.parse(JSON.stringify(e));
42
43
  }, z = async () => {
43
44
  const e = {
44
45
  ...a.value,
45
- orgId: I().getOrgId,
46
- organizationId: I().getOrganizationId,
46
+ orgId: S().getOrgId,
47
+ organizationId: S().getOrganizationId,
47
48
  parentId: a.value.parentId || p.value.id
48
49
  };
49
50
  let o = "post";
50
51
  ["add", "child"].includes(i.value) ? o = "post" : o = "put", m.value = !0;
51
- const [r, y] = await k(b()[o](_, [e]));
52
- m.value = !1, r || (i.value === "edit" ? s.value = !1 : a.value = { enabled: "1" }, S(), v());
53
- }, v = async () => {
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
+ }, f = async () => {
54
55
  const e = {
55
- parentId: f.record.id
56
+ parentId: v.record.id
56
57
  };
57
58
  m.value = !0;
58
- const [o, r] = await k(b().get(_ + "/children", e));
59
+ const [o, r] = await I(b().get(_ + "/children", e));
59
60
  m.value = !1, o || (h.value = r.list);
60
61
  }, A = D;
61
62
  function E() {
62
63
  A("onClose");
63
64
  }
64
65
  return F(() => {
65
- v();
66
+ f();
66
67
  }), (e, o) => {
67
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");
68
69
  return N(), j("div", Y, [
@@ -92,7 +93,7 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
92
93
  tools: d(() => [
93
94
  t(r, {
94
95
  icon: "vxe-icon-refresh",
95
- onClick: v
96
+ onClick: f
96
97
  })
97
98
  ]),
98
99
  _: 1
@@ -182,5 +183,5 @@ const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } },
182
183
  }
183
184
  });
184
185
  export {
185
- ne as _
186
+ de as _
186
187
  };
@@ -1,7 +1,8 @@
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
- import { e as P, q as u, v as f } from "./index-BDE4-ZvN.js";
3
- import { useRender as $ } from "@utogether/utils";
4
- const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", p = "/upfm/v1/lovViewLine", j = /* @__PURE__ */ V({
2
+ import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { useRender as P } from "@utogether/utils";
4
+ import { e as $, q as f } from "./index-ADANSV-q.js";
5
+ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
5
6
  __name: "childView",
6
7
  props: {
7
8
  record: { default: () => ({}) },
@@ -9,7 +10,7 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", p = "/up
9
10
  },
10
11
  emits: ["onClose"],
11
12
  setup(R, { emit: g }) {
12
- const l = R, t = $(), m = P().dicts, s = a(!1), C = { value: "dictCode", label: "dictName" }, v = a(null), T = [
13
+ const l = R, t = P(), p = $().dicts, s = a(!1), C = { value: "dictCode", label: "dictName" }, v = a(null), T = [
13
14
  { field: "lovCode", disabled: !0 },
14
15
  { field: "lovName", required: !0 },
15
16
  { field: "valueField", required: !0 },
@@ -40,8 +41,8 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", p = "/up
40
41
  field: "dictCode",
41
42
  title: "message.dictName",
42
43
  width: 120,
43
- editRender: t.renderSelectLocal({ options: m, optionProps: C }),
44
- formatter: ["formatSelectLocal", [m, "dictCode", "dictName"]]
44
+ editRender: t.renderSelectLocal({ options: p, optionProps: C }),
45
+ formatter: ["formatSelectLocal", [p, "dictCode", "dictName"]]
45
46
  },
46
47
  {
47
48
  field: "isSearch",
@@ -72,7 +73,7 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", p = "/up
72
73
  const [n] = await u(f().put(Y, [l.record]));
73
74
  if (!n) {
74
75
  const r = w.value.getInstance().getRecordset();
75
- r.insertRecords.length && await u(f().post(p, r.insertRecords)), r.updateRecords.length && await u(f().put(p, r.updateRecords));
76
+ r.insertRecords.length && await u(f().post(m, r.insertRecords)), r.updateRecords.length && await u(f().put(m, r.updateRecords));
76
77
  }
77
78
  s.value = !1;
78
79
  }
@@ -119,7 +120,7 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", p = "/up
119
120
  ref_key: "xgrid",
120
121
  ref: w,
121
122
  columns: i,
122
- url: p,
123
+ url: m,
123
124
  "default-value": { headerId: e.record.id },
124
125
  "default-params": { headerId: e.record.id },
125
126
  height: q,
@@ -139,5 +140,5 @@ const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", p = "/up
139
140
  }
140
141
  });
141
142
  export {
142
- j as _
143
+ G as _
143
144
  };
@@ -1,12 +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";
2
- import { q as U, v as q } from "./index-BDE4-ZvN.js";
3
- import { useRender as x } from "@utogether/utils";
1
+ import { defineComponent as _, ref as d, createVNode as m, resolveComponent as i, createElementBlock as k, openBlock as c, createBlock as C, createCommentVNode as E } from "vue";
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-ADANSV-q.js";
4
5
  const b = {
5
6
  name: "CodeRule"
6
- }, S = /* @__PURE__ */ _({
7
+ }, V = /* @__PURE__ */ _({
7
8
  ...b,
8
9
  setup(y) {
9
- const e = x(), i = d(null), l = d(!1), o = d(!1), n = d({}), u = "/upfm/v1/codingRule", f = [{
10
+ const e = q(), s = d(null), l = d(!1), o = d(!1), n = d({}), u = "/upfm/v1/codingRule", f = [{
10
11
  field: "ruleCode",
11
12
  title: "message.udp.ruleCode"
12
13
  }, {
@@ -46,7 +47,7 @@ const b = {
46
47
  row: t
47
48
  }) => {
48
49
  const r = t.haveBeenUsed === "Y" ? "look" : "encode", a = t.haveBeenUsed === "Y" ? "info" : "primary";
49
- return [c(s("ut-button"), {
50
+ return [m(i("ut-button"), {
50
51
  content: r,
51
52
  status: a,
52
53
  onTap: () => v(t)
@@ -113,18 +114,18 @@ const b = {
113
114
  async function h({
114
115
  row: t
115
116
  }) {
116
- const [r] = await U(q().put(u, t));
117
- !r && i.value.refreshData();
117
+ const [r] = await U(x().put(u, t));
118
+ !r && s.value.refreshData();
118
119
  }
119
120
  return (t, r) => {
120
- const a = s("ut-grid"), R = s("ut-modal-grid");
121
- return m(), k("div", null, [c(a, {
121
+ const a = i("ut-grid"), R = i("ut-modal-grid");
122
+ return c(), k("div", null, [m(a, {
122
123
  ref_key: "xgrid",
123
- ref: i,
124
+ ref: s,
124
125
  items: f,
125
126
  columns: p,
126
127
  url: u
127
- }, null, 512), l.value ? (m(), C(R, {
128
+ }, null, 512), l.value ? (c(), C(R, {
128
129
  key: 0,
129
130
  ref: "xmgrid",
130
131
  "default-value": n.value,
@@ -141,5 +142,5 @@ const b = {
141
142
  }
142
143
  });
143
144
  export {
144
- S as default
145
+ V as default
145
146
  };
package/dist/core.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as t, H as a, D as r, v as o, x as u, J as i, K as n, N as l, L as S, s as d, u as f, d as m, e as v } from "./index-BDE4-ZvN.js";
1
+ import { L as t, G as a, C as r, q as o, w as u, H as i, J as n, M as l, K as S, s as d, u as f, d as m, e as R } from "./index-ADANSV-q.js";
2
2
  export {
3
3
  t as constantRoutes,
4
4
  a as default,
@@ -12,5 +12,5 @@ export {
12
12
  d as store,
13
13
  f as useMultiTagsStore,
14
14
  m as usePermissionStore,
15
- v as useSystemStore
15
+ R as useSystemStore
16
16
  };