xyvcard-itsmsys 0.0.14 → 0.0.16

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 (38) hide show
  1. package/dist/avatar-DFToerb2.mjs +4 -0
  2. package/dist/{edit-BKRcHRhe.mjs → edit-C3NG4LWK.mjs} +1 -1
  3. package/dist/{edit-mVmM-PRk.mjs → edit-CJKLiFvj.mjs} +2 -2
  4. package/dist/{edit-b2ih9M1u.mjs → edit-DdBemEtp.mjs} +2 -2
  5. package/dist/{edit-BOYD0hK4.mjs → edit-DgxHpvC6.mjs} +2 -2
  6. package/dist/{edit-W7Cqo-_d.mjs → edit-Dxc1CH37.mjs} +1 -1
  7. package/dist/{edit-CHMLN0tR.mjs → edit-_PobHvyR.mjs} +1 -1
  8. package/dist/{edit-DNMyksDd.mjs → edit-pCyaGLeW.mjs} +1 -1
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-hotcXxq3.mjs → edit.vue_vue_type_script_setup_true_lang-BlMypmar.mjs} +86 -162
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-DCq50Piw.mjs → edit.vue_vue_type_script_setup_true_lang-BnfSGJv_.mjs} +1 -1
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-D31iEutB.mjs → edit.vue_vue_type_script_setup_true_lang-CtIAGnDl.mjs} +86 -162
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-CAq_h6E3.mjs → edit.vue_vue_type_script_setup_true_lang-ygCvblxi.mjs} +1 -1
  13. package/dist/{import-upload-DBaTv04c.mjs → import-upload-Dn6fqub8.mjs} +1 -1
  14. package/dist/{import-upload-DZJ0GptW.mjs → import-upload-r5sF-dob.mjs} +1 -1
  15. package/dist/{index-Cz0VExll.mjs → index-C57850Qg.mjs} +16 -13
  16. package/dist/{index-D8h0lcNy.mjs → index-Clqts1Tf.mjs} +47 -47
  17. package/dist/{index-uqlBd_1I.mjs → index-D-y6OhBi.mjs} +87 -87
  18. package/dist/{index-qfyel9S8.mjs → index-DGX9vRbo.mjs} +1 -1
  19. package/dist/{index-XoL9Os_9.mjs → index-byYol6y6.mjs} +40 -41
  20. package/dist/{index-Cy9iOhxs.mjs → index-ekie5iUI.mjs} +2 -3
  21. package/dist/{index-CvZlFuc4.mjs → index-rAUwvtcF.mjs} +2 -3
  22. package/dist/{index-Cd5F5D4a.mjs → index-uAbzEnZH.mjs} +38 -38
  23. package/dist/index.mjs +10 -9
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-MCS-o6Sy.mjs → index.vue_vue_type_script_setup_true_lang-CFepWDIx.mjs} +2 -2
  25. package/dist/info-BNw5IiGi.mjs +194 -0
  26. package/dist/{info-DcUASS45.mjs → info-BqQdA6b-.mjs} +54 -50
  27. package/dist/info-BraECWiO.mjs +223 -0
  28. package/dist/info-Cjx0ceNM.mjs +223 -0
  29. package/dist/info-DHxVt25p.mjs +223 -0
  30. package/dist/{info-CU4nIMVM.mjs → info-to4iDhQX.mjs} +64 -63
  31. package/dist/style.css +1 -1
  32. package/dts/api/itsm-sys-user-ext/types.d.ts +1 -1
  33. package/dts/constant.d.ts +1 -0
  34. package/package.json +1 -1
  35. package/dist/info-C821AMSV.mjs +0 -190
  36. package/dist/info-CXCnXNu4.mjs +0 -209
  37. package/dist/info-CYDV3va6.mjs +0 -209
  38. package/dist/info-DPIIgRG8.mjs +0 -209
@@ -1,12 +1,12 @@
1
- import { defineComponent as re, ref as V, reactive as I, resolveComponent as u, resolveDirective as ie, openBlock as d, createElementBlock as U, createElementVNode as m, createVNode as a, withCtx as o, withKeys as E, unref as n, createTextVNode as p, toDisplayString as s, withDirectives as c, createBlock as f, isRef as J, createCommentVNode as S, vShow as q } from "vue";
1
+ import { defineComponent as re, ref as V, reactive as I, resolveComponent as u, resolveDirective as ie, openBlock as d, createElementBlock as $, createElementVNode as m, createVNode as a, withCtx as l, withKeys as E, unref as n, createTextVNode as p, toDisplayString as s, withDirectives as c, createBlock as f, isRef as J, createCommentVNode as S, vShow as q } from "vue";
2
2
  import { useTableHooks as ue } from "jmash-core";
3
3
  import { useI18n as de } from "vue-i18n";
4
4
  import { useRouter as pe } from "vue-router";
5
- import { C as K, D as y } from "./index-Cz0VExll.mjs";
5
+ import { C as K, D as y } from "./index-C57850Qg.mjs";
6
6
  import { sysUserExtApi as Q } from "./index.mjs";
7
- import { _ as me } from "./edit.vue_vue_type_script_setup_true_lang-hotcXxq3.mjs";
7
+ import { _ as me } from "./edit.vue_vue_type_script_setup_true_lang-BlMypmar.mjs";
8
8
  import { F as ye } from "./FileSaver.min-BeKvLuyk.mjs";
9
- import be from "./import-upload-DBaTv04c.mjs";
9
+ import be from "./import-upload-Dn6fqub8.mjs";
10
10
  const ce = { class: "app-container" }, fe = { class: "search-container" }, ge = { key: 0 }, ve = ["onClick"], we = ["onClick"], _e = ["onClick"], De = /* @__PURE__ */ re({
11
11
  __name: "index",
12
12
  setup(Ce) {
@@ -18,7 +18,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
18
18
  queryFormRef: x,
19
19
  listLoading: B,
20
20
  tableData: F,
21
- total: $
21
+ total: U
22
22
  } = ue(w, Q, r);
23
23
  let _ = V([
24
24
  {
@@ -63,7 +63,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
63
63
  prop: "engineerCertificate",
64
64
  width: "130",
65
65
  isColumn: !0,
66
- slotName: "engineeCertificate",
66
+ slotName: "engineerCertificate",
67
67
  columnType: "slot"
68
68
  },
69
69
  {
@@ -91,8 +91,8 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
91
91
  isColumn: !0
92
92
  }
93
93
  ]);
94
- function O(l) {
95
- l.showEncrypt = !l.showEncrypt;
94
+ function O(o) {
95
+ o.showEncrypt = !o.showEncrypt;
96
96
  }
97
97
  const b = V({
98
98
  title: w("common.edit"),
@@ -102,65 +102,65 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
102
102
  function A() {
103
103
  j = I({}), b.value.title = w("common.add"), b.value.visible = !0;
104
104
  }
105
- function H(l) {
106
- j.userId = l.userId, b.value.title = w("common.edit"), b.value.visible = !0;
105
+ function H(o) {
106
+ j.userId = o.userId, b.value.title = w("common.edit"), b.value.visible = !0;
107
107
  }
108
- function G(l) {
108
+ function G(o) {
109
109
  z.push({
110
110
  path: "/rawitsmsys/itsm-sys-user-ops/userOpsInfo",
111
- query: { userId: l.userId }
111
+ query: { userId: o.userId }
112
112
  });
113
113
  }
114
114
  const C = V(!1);
115
115
  function W() {
116
116
  C.value = !1;
117
117
  }
118
- function X(l) {
118
+ function X(o) {
119
119
  Q.downloadTemplate().then((t) => {
120
120
  const D = new Blob([t.data], {
121
121
  type: "application/octet-stream"
122
122
  });
123
- ye.saveAs(D, l + ".xlsx");
123
+ ye.saveAs(D, o + ".xlsx");
124
124
  });
125
125
  }
126
- function Y(l) {
127
- console.log(l), l.updateMask = "", i.importExcel(l).then(() => {
126
+ function Y(o) {
127
+ console.log(o), o.updateMask = "", i.importExcel(o).then(() => {
128
128
  C.value = !1;
129
129
  });
130
130
  }
131
- function Z(l) {
132
- i.selectionRows.value = l;
131
+ function Z(o) {
132
+ i.selectionRows.value = o;
133
133
  }
134
- function ee(l) {
135
- i.handleSort(l.prop, l.order);
134
+ function ee(o) {
135
+ i.handleSort(o.prop, o.order);
136
136
  }
137
- function te(l) {
138
- l && i.getList();
137
+ function te(o) {
138
+ o && i.getList();
139
139
  }
140
- return i.getList(), (l, t) => {
141
- const D = u("el-input"), h = u("el-form-item"), g = u("el-col"), N = u("jmash-select"), k = u("el-button"), M = u("el-row"), le = u("el-form"), oe = u("jmash-column-select"), P = u("el-tag"), R = u("svg-icon"), ne = u("jmash-table"), ae = u("jmash-pagination"), se = u("el-card"), v = ie("hasPerm");
142
- return d(), U("div", ce, [
140
+ return i.getList(), (o, t) => {
141
+ const D = u("el-input"), h = u("el-form-item"), g = u("el-col"), N = u("jmash-select"), k = u("el-button"), M = u("el-row"), oe = u("el-form"), le = u("jmash-column-select"), P = u("el-tag"), R = u("svg-icon"), ne = u("jmash-table"), ae = u("jmash-pagination"), se = u("el-card"), v = ie("hasPerm");
142
+ return d(), $("div", ce, [
143
143
  m("div", fe, [
144
- a(le, {
144
+ a(oe, {
145
145
  ref_key: "queryFormRef",
146
146
  ref: x,
147
147
  model: r.value,
148
148
  inline: !0
149
149
  }, {
150
- default: o(() => [
150
+ default: l(() => [
151
151
  a(M, null, {
152
- default: o(() => [
152
+ default: l(() => [
153
153
  a(g, { span: 6 }, {
154
- default: o(() => [
154
+ default: l(() => [
155
155
  a(h, {
156
- label: l.$t("sysUserOps.realName"),
157
- prop: "likeUserName"
156
+ label: o.$t("sysUserOps.loginName"),
157
+ prop: "loginName"
158
158
  }, {
159
- default: o(() => [
159
+ default: l(() => [
160
160
  a(D, {
161
- modelValue: r.value.likeUserName,
162
- "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.likeUserName = e),
163
- placeholder: l.$t("sysUserOps.realNameRequired"),
161
+ modelValue: r.value.loginName,
162
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.loginName = e),
163
+ placeholder: o.$t("sysUserOps.loginNameRequired"),
164
164
  onKeyup: t[1] || (t[1] = E((e) => n(i).handleQuery(), ["enter"])),
165
165
  class: "!w-[203px]"
166
166
  }, null, 8, ["modelValue", "placeholder"])
@@ -171,16 +171,16 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
171
171
  _: 1
172
172
  }),
173
173
  a(g, { span: 6 }, {
174
- default: o(() => [
174
+ default: l(() => [
175
175
  a(h, {
176
- label: l.$t("sysUserOps.engineerType"),
176
+ label: o.$t("sysUserOps.engineerType"),
177
177
  prop: "engineerType"
178
178
  }, {
179
- default: o(() => [
179
+ default: l(() => [
180
180
  a(N, {
181
181
  modelValue: r.value.engineerType,
182
182
  "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.engineerType = e),
183
- placeholder: l.$t("sysUserOps.engineerTypeRequired"),
183
+ placeholder: o.$t("sysUserOps.engineerTypeRequired"),
184
184
  data: n(y).engineerTypeDictEnum.values,
185
185
  onKeyup: t[3] || (t[3] = E((e) => n(i).handleQuery(), ["enter"])),
186
186
  clearable: ""
@@ -192,16 +192,16 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
192
192
  _: 1
193
193
  }),
194
194
  a(g, { span: 6 }, {
195
- default: o(() => [
195
+ default: l(() => [
196
196
  a(h, {
197
- label: l.$t("sysUserOps.engineerJobMode"),
197
+ label: o.$t("sysUserOps.engineerJobMode"),
198
198
  prop: "engineerJobMode"
199
199
  }, {
200
- default: o(() => [
200
+ default: l(() => [
201
201
  a(N, {
202
202
  modelValue: r.value.engineerJobMode,
203
203
  "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.engineerJobMode = e),
204
- placeholder: l.$t("sysUserOps.engineerJobModeRequired"),
204
+ placeholder: o.$t("sysUserOps.engineerJobModeRequired"),
205
205
  data: n(y).engineerJobModeDictEnum.values,
206
206
  onKeyup: t[5] || (t[5] = E((e) => n(i).handleQuery(), ["enter"])),
207
207
  clearable: ""
@@ -213,16 +213,16 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
213
213
  _: 1
214
214
  }),
215
215
  a(g, { span: 6 }, {
216
- default: o(() => [
216
+ default: l(() => [
217
217
  a(h, {
218
- label: l.$t("sysUserOps.jobStatus"),
218
+ label: o.$t("sysUserOps.jobStatus"),
219
219
  prop: "jobStatus"
220
220
  }, {
221
- default: o(() => [
221
+ default: l(() => [
222
222
  a(N, {
223
223
  modelValue: r.value.jobStatus,
224
224
  "onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.jobStatus = e),
225
- placeholder: l.$t("sysUserOps.jobStatusRequired"),
225
+ placeholder: o.$t("sysUserOps.jobStatusRequired"),
226
226
  data: n(y).jobStatusDictEnum.values,
227
227
  onKeyup: t[7] || (t[7] = E((e) => n(i).handleQuery(), ["enter"])),
228
228
  clearable: ""
@@ -234,23 +234,23 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
234
234
  _: 1
235
235
  }),
236
236
  a(g, { span: 24 }, {
237
- default: o(() => [
237
+ default: l(() => [
238
238
  a(h, { class: "search-btn" }, {
239
- default: o(() => [
239
+ default: l(() => [
240
240
  a(k, {
241
241
  type: "primary",
242
242
  onClick: t[8] || (t[8] = (e) => n(i).handleQuery())
243
243
  }, {
244
- default: o(() => [
245
- p(s(l.$t("common.search")), 1)
244
+ default: l(() => [
245
+ p(s(o.$t("common.search")), 1)
246
246
  ]),
247
247
  _: 1
248
248
  }),
249
249
  a(k, {
250
250
  onClick: t[9] || (t[9] = (e) => n(i).resetQuery())
251
251
  }, {
252
- default: o(() => [
253
- p(s(l.$t("common.reset")), 1)
252
+ default: l(() => [
253
+ p(s(o.$t("common.reset")), 1)
254
254
  ]),
255
255
  _: 1
256
256
  })
@@ -272,17 +272,17 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
272
272
  shadow: "never",
273
273
  class: "table-container"
274
274
  }, {
275
- header: o(() => [
275
+ header: l(() => [
276
276
  a(M, null, {
277
- default: o(() => [
277
+ default: l(() => [
278
278
  a(g, { span: 17 }, {
279
- default: o(() => [
279
+ default: l(() => [
280
280
  c((d(), f(k, {
281
281
  type: "primary",
282
282
  onClick: A
283
283
  }, {
284
- default: o(() => [
285
- p(s(l.$t("common.add")), 1)
284
+ default: l(() => [
285
+ p(s(o.$t("common.add")), 1)
286
286
  ]),
287
287
  _: 1
288
288
  })), [
@@ -292,8 +292,8 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
292
292
  type: "primary",
293
293
  onClick: t[10] || (t[10] = (e) => n(i).deleteRecords())
294
294
  }, {
295
- default: o(() => [
296
- p(s(l.$t("common.batchDelete")), 1)
295
+ default: l(() => [
296
+ p(s(o.$t("common.batchDelete")), 1)
297
297
  ]),
298
298
  _: 1
299
299
  })), [
@@ -306,20 +306,20 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
306
306
  span: 7,
307
307
  class: "container-float"
308
308
  }, {
309
- default: o(() => [
309
+ default: l(() => [
310
310
  c((d(), f(k, {
311
311
  plain: "",
312
312
  type: "primary",
313
313
  onClick: t[11] || (t[11] = (e) => C.value = !0)
314
314
  }, {
315
- default: o(() => [
316
- p(s(l.$t("common.import")), 1)
315
+ default: l(() => [
316
+ p(s(o.$t("common.import")), 1)
317
317
  ]),
318
318
  _: 1
319
319
  })), [
320
320
  [v, ["itsmsys:sys_user_ext_ops:import"]]
321
321
  ]),
322
- a(oe, {
322
+ a(le, {
323
323
  modelValue: n(_),
324
324
  "onUpdate:modelValue": t[12] || (t[12] = (e) => J(_) ? _.value = e : _ = e),
325
325
  "label-name": "itsmsys/itsm-sys-user-ext"
@@ -331,11 +331,11 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
331
331
  _: 1
332
332
  })
333
333
  ]),
334
- footer: o(() => [
335
- n($) > 0 ? (d(), f(ae, {
334
+ footer: l(() => [
335
+ n(U) > 0 ? (d(), f(ae, {
336
336
  key: 0,
337
- total: n($),
338
- "onUpdate:total": t[13] || (t[13] = (e) => J($) ? $.value = e : null),
337
+ total: n(U),
338
+ "onUpdate:total": t[13] || (t[13] = (e) => J(U) ? U.value = e : null),
339
339
  "current-page": r.value.curPage,
340
340
  "onUpdate:currentPage": t[14] || (t[14] = (e) => r.value.curPage = e),
341
341
  "page-size": r.value.pageSize,
@@ -343,7 +343,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
343
343
  onPagination: t[16] || (t[16] = (e) => n(i).getList())
344
344
  }, null, 8, ["total", "current-page", "page-size"])) : S("", !0)
345
345
  ]),
346
- default: o(() => [
346
+ default: l(() => [
347
347
  a(ne, {
348
348
  ref_key: "multipleTableRef",
349
349
  ref: L,
@@ -354,22 +354,22 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
354
354
  onSelectionChange: Z,
355
355
  onSortChange: ee
356
356
  }, {
357
- gender: o((e) => [
357
+ gender: l((e) => [
358
358
  m("span", null, s(n(y).genderDict.getEnumValue(e.data.row.gender)), 1)
359
359
  ]),
360
- mobilePhone: o((e) => [
360
+ mobilePhone: l((e) => [
361
361
  m("span", null, s(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
362
362
  ]),
363
- email: o((e) => [
363
+ email: l((e) => [
364
364
  m("span", null, s(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
365
365
  ]),
366
- jobStatus: o((e) => [
366
+ jobStatus: l((e) => [
367
367
  m("span", null, [
368
368
  e.data.row.jobStatus === n(K).jobStatus.working ? (d(), f(P, {
369
369
  key: 0,
370
370
  type: "primary"
371
371
  }, {
372
- default: o(() => [
372
+ default: l(() => [
373
373
  p(s(n(y).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
374
374
  ]),
375
375
  _: 2
@@ -377,30 +377,30 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
377
377
  key: 1,
378
378
  type: "danger"
379
379
  }, {
380
- default: o(() => [
380
+ default: l(() => [
381
381
  p(s(n(y).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
382
382
  ]),
383
383
  _: 2
384
384
  }, 1024))
385
385
  ])
386
386
  ]),
387
- engineerType: o((e) => [
387
+ engineerType: l((e) => [
388
388
  m("span", null, s(n(y).engineerTypeDictEnum.getEnumValue(
389
389
  e.data.row.engineerType
390
390
  )), 1)
391
391
  ]),
392
- engineerCertificate: o((e) => [
392
+ engineerCertificate: l((e) => [
393
393
  m("span", null, s(n(y).engineerCertificateDict.getDictValue(
394
394
  e.data.row.engineerCertificate
395
395
  )), 1)
396
396
  ]),
397
- engineerJobMode: o((e) => [
397
+ engineerJobMode: l((e) => [
398
398
  m("span", null, s(n(y).engineerJobModeDictEnum.getEnumValue(
399
399
  e.data.row.engineerJobMode
400
400
  )), 1)
401
401
  ]),
402
- operation: o((e) => [
403
- e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), U("span", ge, [
402
+ operation: l((e) => [
403
+ e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), $("span", ge, [
404
404
  c(a(R, {
405
405
  "icon-class": "close-eye",
406
406
  onClick: (T) => O(e.data.row)
@@ -414,27 +414,27 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
414
414
  [q, e.data.row.showEncrypt]
415
415
  ])
416
416
  ])) : S("", !0),
417
- c((d(), U("span", {
417
+ c((d(), $("span", {
418
418
  class: "el-button-color dropdown-left",
419
419
  onClick: (T) => H(e.data.row)
420
420
  }, [
421
- p(s(l.$t("common.edit")), 1)
421
+ p(s(o.$t("common.edit")), 1)
422
422
  ], 8, ve)), [
423
423
  [v, ["itsmsys:sys_user_ext_ops:update"]]
424
424
  ]),
425
- c((d(), U("span", {
425
+ c((d(), $("span", {
426
426
  class: "el-button-color dropdown-left",
427
427
  onClick: (T) => n(i).deleteRecord(e.data.row)
428
428
  }, [
429
- p(s(l.$t("common.delete")), 1)
429
+ p(s(o.$t("common.delete")), 1)
430
430
  ], 8, we)), [
431
431
  [v, ["itsmsys:sys_user_ext_ops:delete"]]
432
432
  ]),
433
- c((d(), U("span", {
433
+ c((d(), $("span", {
434
434
  class: "el-button-color dropdown-left",
435
435
  onClick: (T) => G(e.data.row)
436
436
  }, [
437
- p(s(l.$t("common.view")), 1)
437
+ p(s(o.$t("common.view")), 1)
438
438
  ], 8, _e)), [
439
439
  [v, ["itsmsys:sys_user_ext_ops:view"]]
440
440
  ])
@@ -456,7 +456,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
456
456
  C.value ? (d(), f(be, {
457
457
  key: 1,
458
458
  "upload-visible": C.value,
459
- "template-title": l.$t("sysUser.templateDownload"),
459
+ "template-title": o.$t("sysUser.templateDownload"),
460
460
  onTemplateDown: t[18] || (t[18] = (e) => X(n(w)("sysUserOps.name"))),
461
461
  onImportEvents: Y,
462
462
  onUploadClosed: W
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-MCS-o6Sy.mjs";
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-CFepWDIx.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as W, ref as $, resolveComponent as s, resolveDirective as X, openBlock as m, createElementBlock as h, createElementVNode as V, createVNode as n, withCtx as l, withKeys as N, unref as a, createTextVNode as d, toDisplayString as u, withDirectives as b, createBlock as C, isRef as O, createCommentVNode as Y } from "vue";
2
2
  import { useTableHooks as Z } from "jmash-core";
3
3
  import { useI18n as x } from "vue-i18n";
4
- import { C as k, D as ee } from "./index-Cz0VExll.mjs";
5
- import { sysOrgApi as te } from "./index.mjs";
6
- import { useRouter as oe } from "vue-router";
4
+ import { C as k, D as ee } from "./index-C57850Qg.mjs";
5
+ import { sysOrgApi as oe } from "./index.mjs";
6
+ import { useRouter as te } from "vue-router";
7
7
  const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], ge = /* @__PURE__ */ W({
8
8
  __name: "index",
9
9
  setup(ie) {
10
- const { t: T } = x(), v = oe(), i = $({
10
+ const { t: T } = x(), v = te(), i = $({
11
11
  orgType: k.orgType.cloud,
12
12
  orderName: k.orderBy.orderName,
13
13
  orderAsc: k.orderBy.orderAsc
@@ -18,7 +18,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
18
18
  listLoading: R,
19
19
  tableData: j,
20
20
  total: f
21
- } = Z(T, te, i);
21
+ } = Z(T, oe, i);
22
22
  let c = $([
23
23
  {
24
24
  label: "sysOrg.orgName",
@@ -55,7 +55,6 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
55
55
  {
56
56
  label: "sysOrg.status",
57
57
  prop: "status",
58
- width: "150",
59
58
  isColumn: !0,
60
59
  slotName: "status",
61
60
  columnType: "slot"
@@ -69,31 +68,31 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
69
68
  isColumn: !0
70
69
  }
71
70
  ]);
72
- function S(o) {
73
- o.mobileEncrypt = !o.mobileEncrypt;
71
+ function S(t) {
72
+ t.mobileEncrypt = !t.mobileEncrypt;
74
73
  }
75
74
  function D() {
76
75
  v.push({ path: "/rawitsmsys/itsm-sys-org/edit" });
77
76
  }
78
- function U(o) {
77
+ function U(t) {
79
78
  v.push({
80
79
  path: "/rawitsmsys/itsm-sys-org/edit",
81
- query: { entityKey: o.orgId }
80
+ query: { entityKey: t.orgId }
82
81
  });
83
82
  }
84
- function q(o) {
83
+ function q(t) {
85
84
  v.push({
86
85
  path: "/rawitsmsys/itsm-sys-org/orgInfo",
87
- query: { orgId: o.orgId }
86
+ query: { orgId: t.orgId }
88
87
  });
89
88
  }
90
- function M(o) {
91
- r.selectionRows.value = o;
89
+ function M(t) {
90
+ r.selectionRows.value = t;
92
91
  }
93
- function z(o) {
94
- r.handleSort(o.prop, o.order);
92
+ function z(t) {
93
+ r.handleSort(t.prop, t.order);
95
94
  }
96
- return r.getList(), (o, t) => {
95
+ return r.getList(), (t, o) => {
97
96
  const B = s("el-input"), w = s("el-form-item"), y = s("el-col"), A = s("jmash-select"), _ = s("el-button"), P = s("el-row"), K = s("el-form"), L = s("jmash-column-select"), Q = s("jmash-mobileIns-component"), F = s("el-switch"), H = s("jmash-table"), G = s("jmash-pagination"), J = s("el-card"), g = X("hasPerm");
98
97
  return m(), h("div", le, [
99
98
  V("div", ne, [
@@ -109,15 +108,15 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
109
108
  n(y, { span: 6 }, {
110
109
  default: l(() => [
111
110
  n(w, {
112
- label: o.$t("sysOrg.orgName"),
111
+ label: t.$t("sysOrg.orgName"),
113
112
  prop: "likeOrgName"
114
113
  }, {
115
114
  default: l(() => [
116
115
  n(B, {
117
116
  modelValue: i.value.likeOrgName,
118
- "onUpdate:modelValue": t[0] || (t[0] = (e) => i.value.likeOrgName = e),
119
- placeholder: o.$t("sysOrg.orgNameRequired"),
120
- onKeyup: t[1] || (t[1] = N((e) => a(r).handleQuery(), ["enter"])),
117
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.likeOrgName = e),
118
+ placeholder: t.$t("sysOrg.orgNameRequired"),
119
+ onKeyup: o[1] || (o[1] = N((e) => a(r).handleQuery(), ["enter"])),
121
120
  class: "!w-[203px]",
122
121
  clearable: ""
123
122
  }, null, 8, ["modelValue", "placeholder"])
@@ -130,17 +129,17 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
130
129
  n(y, { span: 6 }, {
131
130
  default: l(() => [
132
131
  n(w, {
133
- label: o.$t("sysOrg.status"),
132
+ label: t.$t("sysOrg.status"),
134
133
  prop: "status"
135
134
  }, {
136
135
  default: l(() => [
137
136
  n(A, {
138
137
  modelValue: i.value.status,
139
- "onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.status = e),
140
- placeholder: o.$t("sysOrg.statusRequired"),
138
+ "onUpdate:modelValue": o[2] || (o[2] = (e) => i.value.status = e),
139
+ placeholder: t.$t("sysOrg.statusRequired"),
141
140
  data: a(ee).hasStatusDict.values,
142
141
  clearable: "",
143
- onKeyup: t[3] || (t[3] = N((e) => a(r).handleQuery(), ["enter"]))
142
+ onKeyup: o[3] || (o[3] = N((e) => a(r).handleQuery(), ["enter"]))
144
143
  }, null, 8, ["modelValue", "placeholder", "data"])
145
144
  ]),
146
145
  _: 1
@@ -154,18 +153,18 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
154
153
  default: l(() => [
155
154
  n(_, {
156
155
  type: "primary",
157
- onClick: t[4] || (t[4] = (e) => a(r).handleQuery())
156
+ onClick: o[4] || (o[4] = (e) => a(r).handleQuery())
158
157
  }, {
159
158
  default: l(() => [
160
- d(u(o.$t("common.search")), 1)
159
+ d(u(t.$t("common.search")), 1)
161
160
  ]),
162
161
  _: 1
163
162
  }),
164
163
  n(_, {
165
- onClick: t[5] || (t[5] = (e) => a(r).resetQuery())
164
+ onClick: o[5] || (o[5] = (e) => a(r).resetQuery())
166
165
  }, {
167
166
  default: l(() => [
168
- d(u(o.$t("common.reset")), 1)
167
+ d(u(t.$t("common.reset")), 1)
169
168
  ]),
170
169
  _: 1
171
170
  })
@@ -181,7 +180,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
181
180
  ]),
182
181
  _: 1
183
182
  }, 8, ["model"]),
184
- t[12] || (t[12] = V("div", { class: "clear" }, null, -1))
183
+ o[12] || (o[12] = V("div", { class: "clear" }, null, -1))
185
184
  ]),
186
185
  n(J, {
187
186
  shadow: "never",
@@ -197,7 +196,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
197
196
  onClick: D
198
197
  }, {
199
198
  default: l(() => [
200
- d(u(o.$t("common.add")), 1)
199
+ d(u(t.$t("common.add")), 1)
201
200
  ]),
202
201
  _: 1
203
202
  })), [
@@ -205,10 +204,10 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
205
204
  ]),
206
205
  b((m(), C(_, {
207
206
  type: "primary",
208
- onClick: t[6] || (t[6] = (e) => a(r).deleteRecords())
207
+ onClick: o[6] || (o[6] = (e) => a(r).deleteRecords())
209
208
  }, {
210
209
  default: l(() => [
211
- d(u(o.$t("common.batchDelete")), 1)
210
+ d(u(t.$t("common.batchDelete")), 1)
212
211
  ]),
213
212
  _: 1
214
213
  })), [
@@ -224,7 +223,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
224
223
  default: l(() => [
225
224
  n(L, {
226
225
  modelValue: a(c),
227
- "onUpdate:modelValue": t[7] || (t[7] = (e) => O(c) ? c.value = e : c = e),
226
+ "onUpdate:modelValue": o[7] || (o[7] = (e) => O(c) ? c.value = e : c = e),
228
227
  "label-name": "itsmsys/itsm-sys-org"
229
228
  }, null, 8, ["modelValue"])
230
229
  ]),
@@ -238,12 +237,12 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
238
237
  a(f) > 0 ? (m(), C(G, {
239
238
  key: 0,
240
239
  total: a(f),
241
- "onUpdate:total": t[8] || (t[8] = (e) => O(f) ? f.value = e : null),
240
+ "onUpdate:total": o[8] || (o[8] = (e) => O(f) ? f.value = e : null),
242
241
  "current-page": i.value.curPage,
243
- "onUpdate:currentPage": t[9] || (t[9] = (e) => i.value.curPage = e),
242
+ "onUpdate:currentPage": o[9] || (o[9] = (e) => i.value.curPage = e),
244
243
  "page-size": i.value.pageSize,
245
- "onUpdate:pageSize": t[10] || (t[10] = (e) => i.value.pageSize = e),
246
- onPagination: t[11] || (t[11] = (e) => a(r).getList())
244
+ "onUpdate:pageSize": o[10] || (o[10] = (e) => i.value.pageSize = e),
245
+ onPagination: o[11] || (o[11] = (e) => a(r).getList())
247
246
  }, null, 8, ["total", "current-page", "page-size"])) : Y("", !0)
248
247
  ]),
249
248
  default: l(() => [
@@ -277,7 +276,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
277
276
  class: "el-button-color",
278
277
  onClick: (p) => U(e.data.row)
279
278
  }, [
280
- d(u(o.$t("common.edit")), 1)
279
+ d(u(t.$t("common.edit")), 1)
281
280
  ], 8, ae)), [
282
281
  [g, ["itsmsys:sys_org:update"]]
283
282
  ]),
@@ -285,7 +284,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
285
284
  class: "el-button-color dropdown-left",
286
285
  onClick: (p) => a(r).deleteRecord(e.data.row)
287
286
  }, [
288
- d(u(o.$t("common.delete")), 1)
287
+ d(u(t.$t("common.delete")), 1)
289
288
  ], 8, se)), [
290
289
  [g, ["itsmsys:sys_org:delete"]]
291
290
  ]),
@@ -293,7 +292,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
293
292
  class: "el-button-color dropdown-left",
294
293
  onClick: (p) => q(e.data.row)
295
294
  }, [
296
- d(u(o.$t("common.view")), 1)
295
+ d(u(t.$t("common.view")), 1)
297
296
  ], 8, re)), [
298
297
  [g, ["itsmsys:sys_org:view"]]
299
298
  ])