xyvcard-itsmsys 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/{FileSaver.min-BeKvLuyk.mjs → FileSaver.min-5d27MsC6.mjs} +12 -12
  2. package/dist/{edit-CNEVornb.mjs → edit-3Y_XpZxY.mjs} +3 -3
  3. package/dist/{edit-CfbonHOl.mjs → edit-4Z-ZnpFy.mjs} +1 -1
  4. package/dist/{edit-BrHOGUbU.mjs → edit-8-gDtIOz.mjs} +1 -1
  5. package/dist/{edit-C82n7Lq0.mjs → edit-BlkaYTGl.mjs} +1 -1
  6. package/dist/{edit-COKceKzl.mjs → edit-BuYTlsXr.mjs} +3 -3
  7. package/dist/{edit-DybO5r3p.mjs → edit-CEYAvHd3.mjs} +1 -1
  8. package/dist/{edit-DYqAdRsK.mjs → edit-diNsokNw.mjs} +3 -3
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs → edit.vue_vue_type_script_setup_true_lang-CFG4x85k.mjs} +2 -2
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs → edit.vue_vue_type_script_setup_true_lang-DeduEUOD.mjs} +100 -96
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-BfQVspxd.mjs → edit.vue_vue_type_script_setup_true_lang-T6aiep4s.mjs} +74 -72
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-Cg1uyqed.mjs → edit.vue_vue_type_script_setup_true_lang-g81nThyI.mjs} +7 -7
  13. package/dist/{import-upload-CC1Ho43e.mjs → import-upload-BxVBkr7-.mjs} +2 -2
  14. package/dist/{import-upload-BaJGVcNb.mjs → import-upload-CtJh5u39.mjs} +2 -2
  15. package/dist/{index-igV06vtf.mjs → index-C2od41K0.mjs} +161 -153
  16. package/dist/{index-BV5uRZXE.mjs → index-CNmDTZ5s.mjs} +64 -58
  17. package/dist/{index-cpyRUYdS.mjs → index-CR3fzc4o.mjs} +79 -73
  18. package/dist/{index-Di1yx94g.mjs → index-Cgq1M4Qb.mjs} +120 -112
  19. package/dist/{index-CAzxJ_Vp.mjs → index-CuCoE8rm.mjs} +104 -98
  20. package/dist/{index-B2xwBTw-.mjs → index-RF4VErgF.mjs} +8 -8
  21. package/dist/{index-IpHv0Vzi.mjs → index-Trc70jRt.mjs} +1 -1
  22. package/dist/{index-cKI_mzoF.mjs → index-XMaINj6l.mjs} +188 -179
  23. package/dist/index.mjs +2 -2
  24. package/dist/index.vue_vue_type_script_setup_true_lang-B2_RWC8z.mjs +199 -0
  25. package/dist/{info-G1z1-aeX.mjs → info-0SKOqQd1.mjs} +2 -2
  26. package/dist/{info-DttXGxP3.mjs → info-BLmEh_qP.mjs} +2 -2
  27. package/dist/{info-BUKhtcuu.mjs → info-BVo8clC4.mjs} +2 -2
  28. package/dist/{info-AE3ch4Zw.mjs → info-Bbkgb1XC.mjs} +2 -2
  29. package/dist/{info-EodyqiPm.mjs → info-CSazWjOe.mjs} +2 -2
  30. package/dist/{info-6E3wqxd6.mjs → info-DPpTceEz.mjs} +1 -1
  31. package/dist/style.css +1 -1
  32. package/package.json +4 -4
  33. package/dist/index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs +0 -198
@@ -1,60 +1,66 @@
1
- import { defineComponent as te, ref as N, onActivated as ne, resolveComponent as s, resolveDirective as le, openBlock as y, createElementBlock as k, createElementVNode as R, createVNode as n, withCtx as l, withKeys as I, unref as _, createTextVNode as c, toDisplayString as d, withDirectives as h, createBlock as G, isRef as se } from "vue";
2
- import { useTableHooks as ae } from "jmash-core";
3
- import { ElMessageBox as j, ElMessage as T } from "element-plus";
4
- import { useI18n as re } from "vue-i18n";
5
- import { C as ie, D as me } from "./index-dIcRC4jE.mjs";
6
- import { sysOrgApi as u } from "./index.mjs";
7
- import { useRouter as ce } from "vue-router";
8
- const de = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], fe = ["onClick"], ye = ["onClick"], $e = /* @__PURE__ */ te({
1
+ import { defineComponent as ne, ref as R, onActivated as le, resolveComponent as s, resolveDirective as I, createElementBlock as k, openBlock as c, createElementVNode as se, createVNode as n, withCtx as l, withKeys as G, unref as _, createTextVNode as u, toDisplayString as d, withDirectives as b, createBlock as T, isRef as ae } from "vue";
2
+ import { useTableHooks as re } from "jmash-core";
3
+ import { ElMessageBox as j, ElMessage as P } from "element-plus";
4
+ import { useI18n as me } from "vue-i18n";
5
+ import { C as ie, D as ce } from "./index-dIcRC4jE.mjs";
6
+ import { sysOrgApi as p } from "./index.mjs";
7
+ import { useRouter as ue } from "vue-router";
8
+ const de = { class: "app-container" }, pe = { class: "search-container" }, fe = ["onClick"], ye = ["onClick"], _e = ["onClick"], Te = /* @__PURE__ */ ne({
9
9
  __name: "index",
10
- setup(_e) {
11
- const { t: a } = re(), $ = ce(), p = N({
10
+ setup(be) {
11
+ const { t: a } = me(), $ = ue(), f = R({
12
12
  orgType: ie.orgType.hall
13
- }), { tableHooks: r, multipleTableRef: P, queryFormRef: V, listLoading: M, tableData: S } = ae(a, u, p);
14
- let b = N([
13
+ }), { tableHooks: r, multipleTableRef: V, queryFormRef: B, listLoading: M, tableData: S } = re(a, p, f);
14
+ let v = R([
15
15
  {
16
16
  label: "sysGov.orgName",
17
17
  prop: "orgName",
18
- width: "270",
18
+ width: "200",
19
+ sortable: "custom",
19
20
  isColumn: !0
20
21
  },
21
22
  {
22
23
  label: "sysGov.contactPerson",
23
24
  prop: "contactPerson",
24
25
  width: "150",
26
+ sortable: "custom",
25
27
  isColumn: !0
26
28
  },
27
29
  {
28
30
  label: "sysOrg.contactPersonMobile",
29
31
  prop: "contactPersonMobile",
30
- width: "150",
32
+ width: "120",
31
33
  isColumn: !0,
34
+ sortable: "custom",
32
35
  slotName: "contactPersonMobile",
33
36
  columnType: "slot"
34
37
  },
35
38
  {
36
39
  label: "sysGov.contactPersonTel",
37
40
  prop: "contactPersonTel",
38
- width: "150",
41
+ width: "120",
42
+ sortable: "custom",
39
43
  isColumn: !0
40
44
  },
41
45
  {
42
46
  label: "sysGov.address",
43
47
  prop: "address",
44
- width: "430",
48
+ minWidth: "150",
49
+ sortable: "custom",
45
50
  isColumn: !0
46
51
  },
47
52
  {
48
53
  label: "sysGov.status",
49
54
  prop: "status",
50
55
  isColumn: !0,
56
+ width: "70",
51
57
  slotName: "status",
52
58
  columnType: "slot"
53
59
  },
54
60
  {
55
61
  label: "sysGov.orderBy",
56
62
  prop: "orderBy",
57
- width: "100",
63
+ width: "70",
58
64
  isColumn: !0,
59
65
  slotName: "orderBy",
60
66
  columnType: "slot"
@@ -92,12 +98,12 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
92
98
  function A(e) {
93
99
  r.handleSort(e.prop, e.order);
94
100
  }
95
- function B(e, t) {
96
- if (typeof u.move > "u")
101
+ function D(e, t) {
102
+ if (typeof p.move > "u")
97
103
  return;
98
- const f = u.getKey(e);
99
- u.move(f, t).then((m) => {
100
- !m || typeof m != "object" || m.status === 200 && r.findList();
104
+ const y = p.getKey(e);
105
+ p.move(y, t).then((i) => {
106
+ !i || typeof i != "object" || i.status === 200 && r.findList();
101
107
  });
102
108
  }
103
109
  function F(e) {
@@ -106,8 +112,8 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
106
112
  confirmButtonText: a("common.confirm"),
107
113
  type: "warning"
108
114
  }).then(() => {
109
- u.delete(e).then((t) => {
110
- t.status === 200 && (T({
115
+ p.delete(e).then((t) => {
116
+ t.status === 200 && (P({
111
117
  message: a("common.deleteSuccess"),
112
118
  type: "success"
113
119
  }), r.findList());
@@ -116,26 +122,26 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
116
122
  }
117
123
  function z() {
118
124
  if (r.selectionRows.value.length === 0) {
119
- T({
125
+ P({
120
126
  message: a("common.chooseDelete"),
121
127
  type: "warning"
122
128
  });
123
129
  return;
124
130
  }
125
131
  const e = r.selectionRows.value.map(
126
- (t) => u.getKey(t)
132
+ (t) => p.getKey(t)
127
133
  );
128
134
  j.confirm(a("common.confirmBatchDelete"), a("common.delete"), {
129
135
  cancelButtonText: a("common.cancel"),
130
136
  confirmButtonText: a("common.confirm"),
131
137
  type: "warning"
132
138
  }).then(() => {
133
- u.batchDelete(e).then((t) => {
134
- var f;
135
- t.status === 200 && (T({
139
+ p.batchDelete(e).then((t) => {
140
+ var y;
141
+ t.status === 200 && (P({
136
142
  message: a("common.successDelete") + t.data + a("common.stripData"),
137
143
  type: "success"
138
- }), r.findList(), (f = P.value) == null || f.clearSelection());
144
+ }), r.findList(), (y = V.value) == null || y.clearSelection());
139
145
  });
140
146
  });
141
147
  }
@@ -143,35 +149,35 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
143
149
  r.findList();
144
150
  }
145
151
  function H() {
146
- V.value.resetFields(), w();
152
+ B.value.resetFields(), w();
147
153
  }
148
- return ne(() => {
154
+ return le(() => {
149
155
  r.findList();
150
156
  }), (e, t) => {
151
- const f = s("el-input"), m = s("el-form-item"), v = s("el-col"), Q = s("jmash-select"), C = s("el-button"), D = s("el-row"), x = s("el-form"), J = s("jmash-column-select"), W = s("jmash-mobileIns-component"), X = s("Bottom"), E = s("el-icon"), Y = s("Top"), Z = s("el-switch"), ee = s("jmash-table"), oe = s("el-card"), g = le("hasPerm");
152
- return y(), k("div", de, [
153
- R("div", ue, [
157
+ const y = s("el-input"), i = s("el-form-item"), h = s("el-col"), Q = s("jmash-select"), C = s("el-button"), E = s("el-row"), x = s("el-form"), W = s("jmash-column-select"), J = s("jmash-mobileIns-component"), X = s("Bottom"), N = s("el-icon"), Y = s("Top"), Z = s("el-switch"), ee = s("jmash-table"), oe = s("el-card"), g = I("hasPerm"), te = I("loading");
158
+ return c(), k("div", de, [
159
+ se("div", pe, [
154
160
  n(x, {
155
161
  ref_key: "queryFormRef",
156
- ref: V,
157
- model: p.value,
162
+ ref: B,
163
+ model: f.value,
158
164
  inline: !0
159
165
  }, {
160
166
  default: l(() => [
161
- n(D, null, {
167
+ n(E, null, {
162
168
  default: l(() => [
163
- n(v, { span: 6 }, {
169
+ n(h, { span: 6 }, {
164
170
  default: l(() => [
165
- n(m, {
171
+ n(i, {
166
172
  label: e.$t("sysGov.orgName"),
167
173
  prop: "likeOrgName"
168
174
  }, {
169
175
  default: l(() => [
170
- n(f, {
171
- modelValue: p.value.likeOrgName,
172
- "onUpdate:modelValue": t[0] || (t[0] = (o) => p.value.likeOrgName = o),
176
+ n(y, {
177
+ modelValue: f.value.likeOrgName,
178
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => f.value.likeOrgName = o),
173
179
  placeholder: e.$t("sysGov.orgNameRequired"),
174
- onKeyup: t[1] || (t[1] = I((o) => w(), ["enter"])),
180
+ onKeyup: t[1] || (t[1] = G((o) => w(), ["enter"])),
175
181
  class: "!w-[203px]",
176
182
  clearable: ""
177
183
  }, null, 8, ["modelValue", "placeholder"])
@@ -181,20 +187,20 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
181
187
  ]),
182
188
  _: 1
183
189
  }),
184
- n(v, { span: 6 }, {
190
+ n(h, { span: 6 }, {
185
191
  default: l(() => [
186
- n(m, {
192
+ n(i, {
187
193
  label: e.$t("sysGov.status"),
188
194
  prop: "status"
189
195
  }, {
190
196
  default: l(() => [
191
197
  n(Q, {
192
- modelValue: p.value.status,
193
- "onUpdate:modelValue": t[2] || (t[2] = (o) => p.value.status = o),
198
+ modelValue: f.value.status,
199
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => f.value.status = o),
194
200
  placeholder: e.$t("sysGov.statusRequired"),
195
- data: _(me).hasStatusDict.values,
201
+ data: _(ce).hasStatusDict.values,
196
202
  clearable: "",
197
- onKeyup: t[3] || (t[3] = I((o) => w(), ["enter"]))
203
+ onKeyup: t[3] || (t[3] = G((o) => w(), ["enter"]))
198
204
  }, null, 8, ["modelValue", "placeholder", "data"])
199
205
  ]),
200
206
  _: 1
@@ -202,16 +208,16 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
202
208
  ]),
203
209
  _: 1
204
210
  }),
205
- n(v, { span: 12 }, {
211
+ n(h, { span: 12 }, {
206
212
  default: l(() => [
207
- n(m, { class: "search-btn" }, {
213
+ n(i, { class: "search-btn" }, {
208
214
  default: l(() => [
209
215
  n(C, {
210
216
  type: "primary",
211
217
  onClick: t[4] || (t[4] = (o) => w())
212
218
  }, {
213
219
  default: l(() => [
214
- c(d(e.$t("common.search")), 1)
220
+ u(d(e.$t("common.search")), 1)
215
221
  ]),
216
222
  _: 1
217
223
  }),
@@ -219,7 +225,7 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
219
225
  onClick: t[5] || (t[5] = (o) => H())
220
226
  }, {
221
227
  default: l(() => [
222
- c(d(e.$t("common.reset")), 1)
228
+ u(d(e.$t("common.reset")), 1)
223
229
  ]),
224
230
  _: 1
225
231
  })
@@ -234,35 +240,34 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
234
240
  })
235
241
  ]),
236
242
  _: 1
237
- }, 8, ["model"]),
238
- t[8] || (t[8] = R("div", { class: "clear" }, null, -1))
243
+ }, 8, ["model"])
239
244
  ]),
240
245
  n(oe, {
241
246
  shadow: "never",
242
247
  class: "table-container"
243
248
  }, {
244
249
  header: l(() => [
245
- n(D, null, {
250
+ n(E, null, {
246
251
  default: l(() => [
247
- n(v, { span: 17 }, {
252
+ n(h, { span: 17 }, {
248
253
  default: l(() => [
249
- h((y(), G(C, {
254
+ b((c(), T(C, {
250
255
  type: "primary",
251
256
  onClick: L
252
257
  }, {
253
258
  default: l(() => [
254
- c(d(e.$t("common.add")), 1)
259
+ u(d(e.$t("common.add")), 1)
255
260
  ]),
256
261
  _: 1
257
262
  })), [
258
263
  [g, ["itsmsys:sys_org_gov:add"]]
259
264
  ]),
260
- h((y(), G(C, {
265
+ b((c(), T(C, {
261
266
  type: "primary",
262
267
  onClick: t[6] || (t[6] = (o) => z())
263
268
  }, {
264
269
  default: l(() => [
265
- c(d(e.$t("common.batchDelete")), 1)
270
+ u(d(e.$t("common.batchDelete")), 1)
266
271
  ]),
267
272
  _: 1
268
273
  })), [
@@ -271,14 +276,14 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
271
276
  ]),
272
277
  _: 1
273
278
  }),
274
- n(v, {
279
+ n(h, {
275
280
  span: 7,
276
281
  class: "container-float"
277
282
  }, {
278
283
  default: l(() => [
279
- n(J, {
280
- modelValue: _(b),
281
- "onUpdate:modelValue": t[7] || (t[7] = (o) => se(b) ? b.value = o : b = o),
284
+ n(W, {
285
+ modelValue: _(v),
286
+ "onUpdate:modelValue": t[7] || (t[7] = (o) => ae(v) ? v.value = o : v = o),
282
287
  "label-name": "itsmsys/itsm-sys-org"
283
288
  }, null, 8, ["modelValue"])
284
289
  ]),
@@ -289,79 +294,80 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
289
294
  })
290
295
  ]),
291
296
  default: l(() => [
292
- n(ee, {
297
+ b((c(), T(ee, {
293
298
  ref_key: "multipleTableRef",
294
- ref: P,
299
+ ref: V,
295
300
  "row-key": "orgId",
296
- "list-loading": _(M),
297
301
  data: _(S),
298
- "table-label": _(b),
302
+ "table-label": _(v),
299
303
  onSelectionChange: U,
300
304
  onSortChange: A
301
305
  }, {
302
306
  contactPersonMobile: l((o) => [
303
- n(W, {
307
+ n(J, {
304
308
  mobilePhoneIns: o.data.row.contactPersonMobileIns,
305
309
  mobilePhone: o.data.row.contactPersonMobile,
306
310
  mobileEncrypt: o.data.row.mobileEncrypt,
307
- onToggleEncrypt: (i) => q(o.data.row)
311
+ onToggleEncrypt: (m) => q(o.data.row)
308
312
  }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
309
313
  ]),
310
314
  orderBy: l((o) => [
311
- n(E, {
315
+ n(N, {
312
316
  size: "16",
313
- onClick: (i) => B(o.data.row, !1)
317
+ onClick: (m) => D(o.data.row, !1)
314
318
  }, {
315
319
  default: l(() => [
316
320
  n(X)
317
321
  ]),
318
- _: 2
319
- }, 1032, ["onClick"]),
320
- n(E, {
322
+ _: 1
323
+ }, 8, ["onClick"]),
324
+ n(N, {
321
325
  size: "16",
322
- onClick: (i) => B(o.data.row, !0)
326
+ onClick: (m) => D(o.data.row, !0)
323
327
  }, {
324
328
  default: l(() => [
325
329
  n(Y)
326
330
  ]),
327
- _: 2
328
- }, 1032, ["onClick"])
331
+ _: 1
332
+ }, 8, ["onClick"])
329
333
  ]),
330
334
  status: l((o) => [
331
335
  n(Z, {
332
336
  modelValue: o.data.row.status,
333
- "onUpdate:modelValue": (i) => o.data.row.status = i,
334
- onChange: (i) => _(r).enableRecord(o.data.row, o.data.row.status)
337
+ "onUpdate:modelValue": (m) => o.data.row.status = m,
338
+ onChange: (m) => _(r).enableRecord(o.data.row, o.data.row.status)
335
339
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
336
340
  ]),
337
341
  operation: l((o) => [
338
- h((y(), k("span", {
342
+ b((c(), k("span", {
339
343
  class: "el-button-color",
340
- onClick: (i) => K(o.data.row)
344
+ onClick: (m) => K(o.data.row)
341
345
  }, [
342
- c(d(e.$t("common.edit")), 1)
343
- ], 8, pe)), [
346
+ u(d(e.$t("common.edit")), 1)
347
+ ], 8, fe)), [
344
348
  [g, ["itsmsys:sys_org_gov:update"]]
345
349
  ]),
346
- h((y(), k("span", {
347
- class: "el-button-color dropdown-left",
348
- onClick: (i) => F(o.data.row)
350
+ b((c(), k("span", {
351
+ class: "el-button-color",
352
+ onClick: (m) => F(o.data.row)
349
353
  }, [
350
- c(d(e.$t("common.delete")), 1)
351
- ], 8, fe)), [
354
+ u(d(e.$t("common.delete")), 1)
355
+ ], 8, ye)), [
352
356
  [g, ["itsmsys:sys_org_gov:delete"]]
353
357
  ]),
354
- h((y(), k("span", {
355
- class: "el-button-color dropdown-left",
356
- onClick: (i) => O(o.data.row)
358
+ b((c(), k("span", {
359
+ class: "el-button-color",
360
+ onClick: (m) => O(o.data.row)
357
361
  }, [
358
- c(d(e.$t("common.view")), 1)
359
- ], 8, ye)), [
362
+ u(d(e.$t("common.view")), 1)
363
+ ], 8, _e)), [
360
364
  [g, ["itsmsys:sys_org_gov:view"]]
361
365
  ])
362
366
  ]),
363
367
  _: 1
364
- }, 8, ["list-loading", "data", "table-label"])
368
+ }, 8, ["data", "table-label"])), [
369
+ [te, _(M)]
370
+ ])
365
371
  ]),
366
372
  _: 1
367
373
  })
@@ -370,5 +376,5 @@ const de = { class: "app-container" }, ue = { class: "search-container" }, pe =
370
376
  }
371
377
  });
372
378
  export {
373
- $e as default
379
+ Te as default
374
380
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as e, openBlock as r, createElementBlock as t, createElementVNode as a } from "vue";
2
- /*! Element Plus Icons Vue v2.3.1 */
3
- var _ = /* @__PURE__ */ e({
1
+ import { defineComponent as e, createElementBlock as a, openBlock as r, createElementVNode as t } from "vue";
2
+ /*! Element Plus Icons Vue v2.3.2 */
3
+ var o = /* @__PURE__ */ e({
4
4
  name: "Search",
5
5
  __name: "search",
6
- setup(o) {
7
- return (c, n) => (r(), t("svg", {
6
+ setup(c) {
7
+ return (n, m) => (r(), a("svg", {
8
8
  xmlns: "http://www.w3.org/2000/svg",
9
9
  viewBox: "0 0 1024 1024"
10
10
  }, [
11
- a("path", {
11
+ t("path", {
12
12
  fill: "currentColor",
13
13
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
14
14
  })
15
15
  ]));
16
16
  }
17
- }), s = _;
17
+ }), l = o;
18
18
  export {
19
- s
19
+ l as s
20
20
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs";
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-B2_RWC8z.mjs";
2
2
  export {
3
3
  f as default
4
4
  };