xyvcard-itsmsys 0.0.6 → 0.0.7

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 (30) hide show
  1. package/dist/{edit-DG_Iw1-J.mjs → edit-B2gR_6I8.mjs} +1 -1
  2. package/dist/{edit-BNe0hNw4.mjs → edit-BbJa_Nfr.mjs} +8 -9
  3. package/dist/{edit-BqPZHwxi.mjs → edit-C42Omp9z.mjs} +1 -1
  4. package/dist/{edit-CwV1OVfe.mjs → edit-Dfay8i1B.mjs} +1 -1
  5. package/dist/{edit-RSO388mB.mjs → edit-Dm9CXMA6.mjs} +3 -3
  6. package/dist/{edit-DdUUCXSa.mjs → edit-Fi1_QjAr.mjs} +1 -1
  7. package/dist/{edit-CyM6IuLb.mjs → edit-GlkC3kLR.mjs} +28 -29
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs → edit.vue_vue_type_script_setup_true_lang-C26lz_HM.mjs} +5 -5
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs → edit.vue_vue_type_script_setup_true_lang-Cj-FgUgJ.mjs} +39 -39
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs → edit.vue_vue_type_script_setup_true_lang-CoB3CDY2.mjs} +12 -12
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs → edit.vue_vue_type_script_setup_true_lang-r4tQk9wV.mjs} +1 -1
  12. package/dist/index-B6FMyHxQ.mjs +99 -0
  13. package/dist/{index-CMBtB1kH.mjs → index-BHLCtDlx.mjs} +3 -3
  14. package/dist/{index-DirPUdCN.mjs → index-BV8SsW14.mjs} +1 -1
  15. package/dist/{index-w2SWNZRB.mjs → index-CSMVzE7h.mjs} +3 -3
  16. package/dist/{index-CNGaGeE7.mjs → index-Ce07ACPH.mjs} +3 -3
  17. package/dist/{index-CI8Z4rNf.mjs → index-DTjJvEfz.mjs} +4 -4
  18. package/dist/{index-DxILUznW.mjs → index-N57BEkTO.mjs} +6 -6
  19. package/dist/{index-NugT80P7.mjs → index-Up4lAJrU.mjs} +2 -2
  20. package/dist/index.mjs +1082 -1041
  21. package/dist/{index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs → index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs} +2 -2
  22. package/dist/{info-C0OHjgoS.mjs → info-BVrtvDle.mjs} +1 -1
  23. package/dist/{info-Dilg-bji.mjs → info-Bc3bycK1.mjs} +1 -1
  24. package/dist/{info-DvYUiSRY.mjs → info-Bz6yHt3N.mjs} +1 -1
  25. package/dist/{info-CXx2899k.mjs → info-D-ykgDrJ.mjs} +1 -1
  26. package/dist/{info-BFZTqoY3.mjs → info-D7YAHptq.mjs} +1 -1
  27. package/dist/{info-DReeRuaA.mjs → info-DO3PSaAZ.mjs} +1 -1
  28. package/dts/src/index.d.ts +1 -0
  29. package/package.json +1 -1
  30. package/dist/index-CQ5Bo5a2.mjs +0 -135
@@ -0,0 +1,99 @@
1
+ var E = Object.defineProperty;
2
+ var p = (i, t, e) => t in i ? E(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var r = (i, t, e) => p(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { sysOrgApi as l, Constant as s } from "./index.mjs";
5
+ import { BizLayDict as g, BizDict as y, EnumDict as a } from "jmash-core";
6
+ import { reactive as T } from "vue";
7
+ class m {
8
+ constructor(t, e) {
9
+ r(this, "values", T([]));
10
+ // 查询条件
11
+ r(this, "query");
12
+ this.values.length = 0, this.values.push(...t.value), this.query = e;
13
+ }
14
+ // 根据给定键获取业务数据项的值的方法
15
+ getValue(t) {
16
+ for (const e of this.values)
17
+ if (e.key == t)
18
+ return e.value;
19
+ return "";
20
+ }
21
+ }
22
+ class v extends g {
23
+ // 实现 useValues 方法
24
+ useValues() {
25
+ return new Promise((t, e) => {
26
+ if (typeof l.findList > "u") {
27
+ t(this.values);
28
+ return;
29
+ }
30
+ const o = { ...this.query };
31
+ l.findList(o).then(({ data: c }) => {
32
+ const u = c.results;
33
+ this.values.length = 0, this.values.push(...this.convertToLayEntryArray(u)), t(this.values);
34
+ }).catch(e);
35
+ });
36
+ }
37
+ convertToLayEntryArray(t) {
38
+ return t.map((e) => ({
39
+ value: e.orgId,
40
+ label: e.orgName,
41
+ parentId: e.parentId || "",
42
+ children: e.children ? this.convertToLayEntryArray(e.children) : []
43
+ }));
44
+ }
45
+ }
46
+ class h extends y {
47
+ // 实现 useValues 方法
48
+ useValues() {
49
+ return new Promise((t, e) => {
50
+ l.findPage(this.query).then(({ data: o }) => {
51
+ const c = o.results;
52
+ this.values.length = 0, this.values.push(
53
+ ...c.map(
54
+ (u) => ({
55
+ key: u.orgId,
56
+ value: u.orgName
57
+ })
58
+ )
59
+ ), t(this.values);
60
+ }).catch(e);
61
+ });
62
+ }
63
+ }
64
+ class n {
65
+ }
66
+ // 公司管理状态
67
+ r(n, "hasStatusDict", new m(s.HAS_STATUS, {})), // 公司发票类型
68
+ r(n, "invoiceTypeDictEnum", new a(
69
+ s.MODULE_ITSMSYS,
70
+ s.ENUM_INVOICE_TYPE
71
+ )), // 厅局管理父厅级单位
72
+ r(n, "parentIdBizDict", new v({
73
+ orgType: s.orgType.hall
74
+ })), // 管理人员工作状态
75
+ r(n, "jobStatusDictEnum", new a(
76
+ s.MODULE_ITSMSYS,
77
+ s.ENUM_JOB_ATATUS
78
+ )), // 运维人员工作模式
79
+ r(n, "engineeJobModeDictEnum", new a(
80
+ s.MODULE_ITSMSYS,
81
+ s.ENUM_ENGINEE_JOB_MODE
82
+ )), // 性别
83
+ r(n, "genderDict", new a(
84
+ s.MODULE_RBAC,
85
+ s.ENUM_GENDER
86
+ )), // 运维人员工程师类型
87
+ r(n, "engineeTypeDictEnum", new a(
88
+ s.MODULE_ITSMSYS,
89
+ s.ENUM_ENGINEE_TYPE
90
+ )), // 公司人员选择公司名称
91
+ r(n, "sysOrgBizDict", new h({
92
+ orgType: s.orgType.cloud
93
+ })), // 外协运维人员选择公司名称
94
+ r(n, "sysOutBizDict", new h({
95
+ orgType: s.orgType.outsource
96
+ }));
97
+ export {
98
+ n as D
99
+ };
@@ -2,9 +2,9 @@ import { defineComponent as oe, ref as E, reactive as P, resolveComponent as i,
2
2
  import { useTableHooks as ne } from "jmash-core";
3
3
  import { useI18n as ae } from "vue-i18n";
4
4
  import { useRouter as se } from "vue-router";
5
- import { D as m, C as M } from "./index-CQ5Bo5a2.mjs";
6
- import { sysUserExtApi as re } from "./index.mjs";
7
- import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs";
5
+ import { Constant as M, sysUserExtApi as re } from "./index.mjs";
6
+ import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-Cj-FgUgJ.mjs";
7
+ import { D as m } from "./index-B6FMyHxQ.mjs";
8
8
  const ie = { class: "app-container" }, de = { class: "search-container" }, me = { key: 0 }, pe = ["onClick"], ye = ["onClick"], be = ["onClick"], Ce = /* @__PURE__ */ oe({
9
9
  __name: "index",
10
10
  setup(ce) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs";
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,9 +2,9 @@ import { defineComponent as oe, ref as j, reactive as M, resolveComponent as r,
2
2
  import { useTableHooks as ne } from "jmash-core";
3
3
  import { useI18n as ae } from "vue-i18n";
4
4
  import { useRouter as se } from "vue-router";
5
- import { C as J, D as c } from "./index-CQ5Bo5a2.mjs";
6
- import { sysUserExtApi as re } from "./index.mjs";
7
- import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs";
5
+ import { Constant as J, sysUserExtApi as re } from "./index.mjs";
6
+ import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-C26lz_HM.mjs";
7
+ import { D as c } from "./index-B6FMyHxQ.mjs";
8
8
  const ue = { class: "app-container" }, de = { class: "search-container" }, me = { key: 0 }, pe = ["onClick"], ye = ["onClick"], be = ["onClick"], Ce = /* @__PURE__ */ oe({
9
9
  __name: "index",
10
10
  setup(ce) {
@@ -2,9 +2,9 @@ import { defineComponent as oe, ref as U, reactive as I, resolveComponent as s,
2
2
  import { useTableHooks as ae } from "jmash-core";
3
3
  import { useI18n as ne } from "vue-i18n";
4
4
  import { useRouter as se } from "vue-router";
5
- import { C as q, D as S } from "./index-CQ5Bo5a2.mjs";
6
- import { sysUserExtApi as re } from "./index.mjs";
7
- import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs";
5
+ import { Constant as q, sysUserExtApi as re } from "./index.mjs";
6
+ import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-CoB3CDY2.mjs";
7
+ import { D as S } from "./index-B6FMyHxQ.mjs";
8
8
  const ue = { class: "app-container" }, me = { class: "search-container" }, de = { key: 0 }, pe = ["onClick"], ce = ["onClick"], ye = ["onClick"], Ce = /* @__PURE__ */ oe({
9
9
  __name: "index",
10
10
  setup(be) {
@@ -2,8 +2,8 @@ import { defineComponent as J, ref as P, resolveComponent as s, resolveDirective
2
2
  import { useTableHooks as Y } from "jmash-core";
3
3
  import { useI18n as Z } from "vue-i18n";
4
4
  import { useRouter as x } from "vue-router";
5
- import { C as ee, D as te } from "./index-CQ5Bo5a2.mjs";
6
- import { sysOrgApi as oe } from "./index.mjs";
5
+ import { Constant as ee, sysOrgApi as te } from "./index.mjs";
6
+ import { D as oe } from "./index-B6FMyHxQ.mjs";
7
7
  const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], be = /* @__PURE__ */ J({
8
8
  __name: "index",
9
9
  setup(ue) {
@@ -16,7 +16,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
16
16
  listLoading: I,
17
17
  tableData: R,
18
18
  total: _
19
- } = Y(O, oe, u);
19
+ } = Y(O, te, u);
20
20
  let c = P([
21
21
  {
22
22
  label: "sysOut.orgName",
@@ -136,7 +136,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
136
136
  modelValue: u.value.status,
137
137
  "onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.status = e),
138
138
  placeholder: o.$t("sysOut.statusRequired"),
139
- data: a(te).hasStatusDict.values,
139
+ data: a(oe).hasStatusDict.values,
140
140
  clearable: "",
141
141
  onKeyup: t[3] || (t[3] = V((e) => a(r).handleQuery(), ["enter"]))
142
142
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as J, ref as P, resolveComponent as s, resolveDirective as W, openBlock as m, createElementBlock as h, createElementVNode as $, createVNode as n, withCtx as l, withKeys as V, unref as a, createTextVNode as u, toDisplayString as d, withDirectives as b, createBlock as C, isRef as N, createCommentVNode as X } from "vue";
2
2
  import { useTableHooks as Y } from "jmash-core";
3
3
  import { useI18n as Z } from "vue-i18n";
4
- import { C as x, D as ee } from "./index-CQ5Bo5a2.mjs";
5
- import { sysOrgApi as te } from "./index.mjs";
6
- import { useRouter as oe } from "vue-router";
4
+ import { Constant as x, sysOrgApi as ee } from "./index.mjs";
5
+ import { useRouter as te } from "vue-router";
6
+ import { D as oe } from "./index-B6FMyHxQ.mjs";
7
7
  const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], ge = /* @__PURE__ */ J({
8
8
  __name: "index",
9
9
  setup(ie) {
10
- const { t: O } = Z(), v = oe(), i = P({
10
+ const { t: O } = Z(), v = te(), i = P({
11
11
  orgType: x.orgType.cloud
12
12
  }), {
13
13
  tableHooks: r,
@@ -16,7 +16,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
16
16
  listLoading: I,
17
17
  tableData: R,
18
18
  total: f
19
- } = Y(O, te, i);
19
+ } = Y(O, ee, i);
20
20
  let c = P([
21
21
  {
22
22
  label: "sysOrg.orgName",
@@ -136,7 +136,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
136
136
  modelValue: i.value.status,
137
137
  "onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.status = e),
138
138
  placeholder: o.$t("sysOrg.statusRequired"),
139
- data: a(ee).hasStatusDict.values,
139
+ data: a(oe).hasStatusDict.values,
140
140
  clearable: "",
141
141
  onKeyup: t[3] || (t[3] = V((e) => a(r).handleQuery(), ["enter"]))
142
142
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -2,8 +2,8 @@ import { defineComponent as ee, ref as D, resolveComponent as s, resolveDirectiv
2
2
  import { useTableHooks as ne } from "jmash-core";
3
3
  import { ElMessageBox as I, ElMessage as T } from "element-plus";
4
4
  import { useI18n as le } from "vue-i18n";
5
- import { C as se, D as ae } from "./index-CQ5Bo5a2.mjs";
6
- import { sysOrgApi as w } from "./index.mjs";
5
+ import { Constant as se, sysOrgApi as w } from "./index.mjs";
6
+ import { D as ae } from "./index-B6FMyHxQ.mjs";
7
7
  import { useRouter as re } from "vue-router";
8
8
  const me = { class: "app-container" }, ie = { class: "search-container" }, ce = ["onClick"], de = ["onClick"], ue = ["onClick"], we = /* @__PURE__ */ ee({
9
9
  __name: "index",