xyvcard-itsmsys 0.0.15 → 0.0.17

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 (36) hide show
  1. package/dist/{edit-BKRcHRhe.mjs → edit-BAH_6b13.mjs} +1 -1
  2. package/dist/{edit-mVmM-PRk.mjs → edit-CJKLiFvj.mjs} +2 -2
  3. package/dist/{edit-DzjV79y1.mjs → edit-CfJWdgBx.mjs} +1 -1
  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-BjOW2vs6.mjs → edit-a4L0fy11.mjs} +1 -1
  7. package/dist/{edit-DNMyksDd.mjs → edit-pCyaGLeW.mjs} +1 -1
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-CfUAkfJW.mjs → edit.vue_vue_type_script_setup_true_lang-Bs8-z-IO.mjs} +3 -3
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-CHEDA0A_.mjs → edit.vue_vue_type_script_setup_true_lang-CZ1mhblw.mjs} +3 -3
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-DCq50Piw.mjs → edit.vue_vue_type_script_setup_true_lang-V7Qgl4pY.mjs} +89 -89
  11. 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
  12. package/dist/{import-upload-DBaTv04c.mjs → import-upload-BISlCHWj.mjs} +25 -25
  13. package/dist/import-upload-CzXWmSM6.mjs +161 -0
  14. package/dist/{import-upload-DZJ0GptW.mjs → import-upload-TERPQdeq.mjs} +7 -7
  15. package/dist/{index-BXbOuSmq.mjs → index-B8RLzH1x.mjs} +87 -87
  16. package/dist/index-BxdZzcjP.mjs +462 -0
  17. package/dist/{index-Cz0VExll.mjs → index-C57850Qg.mjs} +16 -13
  18. package/dist/{index-qfyel9S8.mjs → index-DGX9vRbo.mjs} +1 -1
  19. package/dist/{index-D12MySRa.mjs → index-DRzFGqnW.mjs} +47 -47
  20. package/dist/{index-XoL9Os_9.mjs → index-byYol6y6.mjs} +40 -41
  21. package/dist/{index-Cy9iOhxs.mjs → index-ekie5iUI.mjs} +2 -3
  22. package/dist/{index-CvZlFuc4.mjs → index-rAUwvtcF.mjs} +2 -3
  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--MGKuszF.mjs → info-BNw5IiGi.mjs} +1 -1
  26. package/dist/{info-CIwhiTud.mjs → info-BqQdA6b-.mjs} +1 -1
  27. package/dist/{info-0NbCPcmX.mjs → info-BraECWiO.mjs} +1 -1
  28. package/dist/{info-CPTCNZK-.mjs → info-Cjx0ceNM.mjs} +1 -1
  29. package/dist/{info-CCwx_-dG.mjs → info-DHxVt25p.mjs} +1 -1
  30. package/dist/{info-D-UkVKd0.mjs → info-to4iDhQX.mjs} +46 -46
  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/dts/views/itsmsys/itsm-sys-user-man/import-upload.vue.d.ts +31 -0
  35. package/package.json +1 -1
  36. package/dist/index-Cd5F5D4a.mjs +0 -423
@@ -1,8 +1,8 @@
1
- import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComponent as l, openBlock as G, createBlock as J, unref as V, isRef as K, withCtx as o, createElementVNode as a, createVNode as t, createTextVNode as m, toDisplayString as d } from "vue";
1
+ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComponent as l, openBlock as G, createBlock as J, unref as V, isRef as K, withCtx as o, createElementVNode as a, createVNode as t, createTextVNode as m, toDisplayString as n } from "vue";
2
2
  import { useI18n as L } from "vue-i18n";
3
3
  import { ElMessage as f } from "element-plus";
4
4
  import { fileApi as w, useUserStore as D } from "jmash-core";
5
- import { D as I } from "./index-Cz0VExll.mjs";
5
+ import { D as I } from "./index-C57850Qg.mjs";
6
6
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
8
8
  __name: "import-upload",
@@ -18,9 +18,9 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
18
18
  },
19
19
  emits: ["templateDown", "importEvents", "uploadClosed"],
20
20
  setup(_, { emit: U }) {
21
- const { t: g } = L(), k = i(w.uploadUrl()), $ = i(w.authHeader()), b = C({
21
+ const { t: g } = L(), b = i(w.uploadUrl()), k = i(w.authHeader()), $ = C({
22
22
  tenant: D().user.tenant
23
- }), E = i(), s = C({
23
+ }), E = i(), d = C({
24
24
  tenant: D().user.tenant,
25
25
  requestId: Math.random() * 10 + "",
26
26
  fileNames: "",
@@ -30,15 +30,15 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
30
30
  orgId: ""
31
31
  });
32
32
  I.sysOrgBizDict.useValues();
33
- const N = _, c = U, { uploadVisible: u } = H(N), r = i();
33
+ const N = _, p = U, { uploadVisible: u } = H(N), r = i();
34
34
  function R() {
35
- c("templateDown");
35
+ p("templateDown");
36
36
  }
37
37
  function S(e) {
38
- r.value = e, s.orgId = e;
38
+ r.value = e, d.orgId = e;
39
39
  }
40
40
  function q(e) {
41
- console.log(e), s.fileNames = e.fileSrc, s.orgId = r.value, s.fileNames && f({
41
+ d.fileNames = e.fileSrc, d.orgId = r.value, d.fileNames && f({
42
42
  message: g("common.uploadSuccess"),
43
43
  type: "success"
44
44
  });
@@ -50,20 +50,20 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
50
50
  if (!r.value) {
51
51
  f({
52
52
  message: g("sysUserOps.orgIdRequired"),
53
- type: "success"
53
+ type: "warning"
54
54
  });
55
55
  return;
56
56
  }
57
- console.log(s), c("importEvents", s);
57
+ p("importEvents", d);
58
58
  }
59
59
  function v() {
60
- c("uploadClosed");
60
+ p("uploadClosed");
61
61
  }
62
- return (e, n) => {
62
+ return (e, s) => {
63
63
  const y = l("el-col"), x = l("jmash-select"), F = l("el-row"), M = l("upload-filled"), T = l("el-icon"), j = l("el-upload"), h = l("el-button"), z = l("el-dialog");
64
64
  return G(), J(z, {
65
65
  modelValue: V(u),
66
- "onUpdate:modelValue": n[1] || (n[1] = (p) => K(u) ? u.value = p : null),
66
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => K(u) ? u.value = c : null),
67
67
  title: e.$t("common.uploadFiles"),
68
68
  width: "500px",
69
69
  onClose: v
@@ -72,7 +72,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
72
72
  a("div", X, [
73
73
  t(h, { onClick: v }, {
74
74
  default: o(() => [
75
- m(d(e.$t("common.cancel")), 1)
75
+ m(n(e.$t("common.cancel")), 1)
76
76
  ]),
77
77
  _: 1
78
78
  }),
@@ -81,7 +81,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
81
81
  onClick: O
82
82
  }, {
83
83
  default: o(() => [
84
- m(d(e.$t("common.confirm")), 1)
84
+ m(n(e.$t("common.confirm")), 1)
85
85
  ]),
86
86
  _: 1
87
87
  })
@@ -92,8 +92,8 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
92
92
  default: o(() => [
93
93
  t(y, { span: 4 }, {
94
94
  default: o(() => [
95
- n[2] || (n[2] = a("span", { class: "required_red" }, "*", -1)),
96
- a("span", null, d(e.$t("sysUserOps.orgId")), 1)
95
+ s[2] || (s[2] = a("span", { class: "required_red" }, "*", -1)),
96
+ a("span", null, n(e.$t("sysUserOps.orgId")), 1)
97
97
  ]),
98
98
  _: 1
99
99
  }),
@@ -101,7 +101,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
101
101
  default: o(() => [
102
102
  t(x, {
103
103
  modelValue: r.value,
104
- "onUpdate:modelValue": n[0] || (n[0] = (p) => r.value = p),
104
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
105
105
  data: V(I).sysOrgBizDict.values,
106
106
  filterable: "",
107
107
  "check-strictly": "",
@@ -120,9 +120,9 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
120
120
  ref_key: "uploadRef",
121
121
  ref: E,
122
122
  drag: "",
123
- action: k.value,
124
- headers: $.value,
125
- data: b,
123
+ action: b.value,
124
+ headers: k.value,
125
+ data: $,
126
126
  limit: 1,
127
127
  "on-success": q,
128
128
  "on-exceed": B,
@@ -133,7 +133,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
133
133
  class: "el-upload__tip",
134
134
  onClick: R
135
135
  }, [
136
- a("a", W, d(_.templateTitle), 1)
136
+ a("a", W, n(_.templateTitle), 1)
137
137
  ])
138
138
  ]),
139
139
  default: o(() => [
@@ -144,8 +144,8 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
144
144
  _: 1
145
145
  }),
146
146
  a("div", Q, [
147
- m(d(e.$t("common.dragFiles")) + " ", 1),
148
- a("em", null, d(e.$t("common.uploadEvent")), 1)
147
+ m(n(e.$t("common.dragFiles")) + " ", 1),
148
+ a("em", null, n(e.$t("common.uploadEvent")), 1)
149
149
  ])
150
150
  ]),
151
151
  _: 1
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
155
155
  }, 8, ["modelValue", "title"]);
156
156
  };
157
157
  }
158
- }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-14761a28"]]);
158
+ }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-bbd878f7"]]);
159
159
  export {
160
160
  se as default
161
161
  };
@@ -0,0 +1,161 @@
1
+ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComponent as l, openBlock as G, createBlock as J, unref as V, isRef as K, withCtx as o, createElementVNode as a, createVNode as t, createTextVNode as m, toDisplayString as n } from "vue";
2
+ import { useI18n as L } from "vue-i18n";
3
+ import { ElMessage as f } from "element-plus";
4
+ import { fileApi as w, useUserStore as D } from "jmash-core";
5
+ import { D as I } from "./index-C57850Qg.mjs";
6
+ import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
8
+ __name: "import-upload",
9
+ props: {
10
+ uploadVisible: {
11
+ type: Boolean,
12
+ default: () => !1
13
+ },
14
+ templateTitle: {
15
+ type: String,
16
+ default: ""
17
+ }
18
+ },
19
+ emits: ["templateDown", "importEvents", "uploadClosed"],
20
+ setup(_, { emit: b }) {
21
+ const { t: g } = L(), U = i(w.uploadUrl()), k = i(w.authHeader()), $ = C({
22
+ tenant: D().user.tenant
23
+ }), E = i(), d = C({
24
+ tenant: D().user.tenant,
25
+ requestId: Math.random() * 10 + "",
26
+ fileNames: "",
27
+ updateMask: "",
28
+ addFlag: !0,
29
+ // 必填项,true新增,false修改
30
+ orgId: ""
31
+ });
32
+ I.sysOrgBizDict.useValues();
33
+ const N = _, p = b, { uploadVisible: u } = H(N), r = i();
34
+ function R() {
35
+ p("templateDown");
36
+ }
37
+ function S(e) {
38
+ r.value = e, d.orgId = e;
39
+ }
40
+ function q(e) {
41
+ d.fileNames = e.fileSrc, d.orgId = r.value, d.fileNames && f({
42
+ message: g("common.uploadSuccess"),
43
+ type: "success"
44
+ });
45
+ }
46
+ const B = () => {
47
+ f.warning("当前限制选择 1 个文件");
48
+ };
49
+ function O() {
50
+ if (!r.value) {
51
+ f({
52
+ message: g("sysUserOps.orgIdRequired"),
53
+ type: "warning"
54
+ });
55
+ return;
56
+ }
57
+ p("importEvents", d);
58
+ }
59
+ function v() {
60
+ p("uploadClosed");
61
+ }
62
+ return (e, s) => {
63
+ const y = l("el-col"), x = l("jmash-select"), F = l("el-row"), M = l("upload-filled"), T = l("el-icon"), j = l("el-upload"), h = l("el-button"), z = l("el-dialog");
64
+ return G(), J(z, {
65
+ modelValue: V(u),
66
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => K(u) ? u.value = c : null),
67
+ title: e.$t("common.uploadFiles"),
68
+ width: "500px",
69
+ onClose: v
70
+ }, {
71
+ footer: o(() => [
72
+ a("div", X, [
73
+ t(h, { onClick: v }, {
74
+ default: o(() => [
75
+ m(n(e.$t("common.cancel")), 1)
76
+ ]),
77
+ _: 1
78
+ }),
79
+ t(h, {
80
+ type: "primary",
81
+ onClick: O
82
+ }, {
83
+ default: o(() => [
84
+ m(n(e.$t("common.confirm")), 1)
85
+ ]),
86
+ _: 1
87
+ })
88
+ ])
89
+ ]),
90
+ default: o(() => [
91
+ t(F, { class: "row" }, {
92
+ default: o(() => [
93
+ t(y, { span: 4 }, {
94
+ default: o(() => [
95
+ s[2] || (s[2] = a("span", { class: "required_red" }, "*", -1)),
96
+ a("span", null, n(e.$t("sysUserOps.orgId")), 1)
97
+ ]),
98
+ _: 1
99
+ }),
100
+ t(y, { span: 20 }, {
101
+ default: o(() => [
102
+ t(x, {
103
+ modelValue: r.value,
104
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
105
+ data: V(I).sysOrgBizDict.values,
106
+ filterable: "",
107
+ "check-strictly": "",
108
+ "render-after-expand": !1,
109
+ placeholder: e.$t("sysUserOps.orgIdRequired"),
110
+ class: "w-full",
111
+ onChange: S
112
+ }, null, 8, ["modelValue", "data", "placeholder"])
113
+ ]),
114
+ _: 1
115
+ })
116
+ ]),
117
+ _: 1
118
+ }),
119
+ t(j, {
120
+ ref_key: "uploadRef",
121
+ ref: E,
122
+ drag: "",
123
+ action: U.value,
124
+ headers: k.value,
125
+ data: $,
126
+ limit: 1,
127
+ "on-success": q,
128
+ "on-exceed": B,
129
+ style: { "margin-top": "20px" }
130
+ }, {
131
+ tip: o(() => [
132
+ a("div", {
133
+ class: "el-upload__tip",
134
+ onClick: R
135
+ }, [
136
+ a("a", W, n(_.templateTitle), 1)
137
+ ])
138
+ ]),
139
+ default: o(() => [
140
+ t(T, { class: "el-icon--upload" }, {
141
+ default: o(() => [
142
+ t(M)
143
+ ]),
144
+ _: 1
145
+ }),
146
+ a("div", Q, [
147
+ m(n(e.$t("common.dragFiles")) + " ", 1),
148
+ a("em", null, n(e.$t("common.uploadEvent")), 1)
149
+ ])
150
+ ]),
151
+ _: 1
152
+ }, 8, ["action", "headers", "data"])
153
+ ]),
154
+ _: 1
155
+ }, 8, ["modelValue", "title"]);
156
+ };
157
+ }
158
+ }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-b1300bb0"]]);
159
+ export {
160
+ se as default
161
+ };
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComp
2
2
  import { useI18n as L } from "vue-i18n";
3
3
  import { ElMessage as f } from "element-plus";
4
4
  import { fileApi as w, useUserStore as D } from "jmash-core";
5
- import { D as I } from "./index-Cz0VExll.mjs";
5
+ import { D as I } from "./index-C57850Qg.mjs";
6
6
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
8
8
  __name: "import-upload",
@@ -30,7 +30,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
30
30
  orgId: ""
31
31
  });
32
32
  I.sysOutBizDict.useValues();
33
- const N = _, u = U, { uploadVisible: c } = H(N), r = i();
33
+ const N = _, u = U, { uploadVisible: p } = H(N), r = i();
34
34
  function R() {
35
35
  u("templateDown");
36
36
  }
@@ -50,7 +50,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
50
50
  if (!r.value) {
51
51
  f({
52
52
  message: g("sysUserOps.orgIdRequired"),
53
- type: "success"
53
+ type: "warning"
54
54
  });
55
55
  return;
56
56
  }
@@ -62,8 +62,8 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
62
62
  return (e, s) => {
63
63
  const y = l("el-col"), x = l("jmash-select"), F = l("el-row"), M = l("upload-filled"), T = l("el-icon"), j = l("el-upload"), h = l("el-button"), z = l("el-dialog");
64
64
  return G(), J(z, {
65
- modelValue: V(c),
66
- "onUpdate:modelValue": s[1] || (s[1] = (p) => K(c) ? c.value = p : null),
65
+ modelValue: V(p),
66
+ "onUpdate:modelValue": s[1] || (s[1] = (c) => K(p) ? p.value = c : null),
67
67
  title: e.$t("common.uploadFiles"),
68
68
  width: "500px",
69
69
  onClose: v
@@ -101,7 +101,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
101
101
  default: o(() => [
102
102
  t(x, {
103
103
  modelValue: r.value,
104
- "onUpdate:modelValue": s[0] || (s[0] = (p) => r.value = p),
104
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
105
105
  data: V(I).sysOutBizDict.values,
106
106
  filterable: "",
107
107
  "check-strictly": "",
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
155
155
  }, 8, ["modelValue", "title"]);
156
156
  };
157
157
  }
158
- }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-8543416a"]]);
158
+ }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-3072267a"]]);
159
159
  export {
160
160
  se as default
161
161
  };