xyvcard-itsmsys 0.0.18 → 0.0.20

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 (44) hide show
  1. package/README.md +51 -51
  2. package/dist/{edit-C1zg8B0y.mjs → edit-BrHOGUbU.mjs} +1 -1
  3. package/dist/{edit-Cs3KIwaz.mjs → edit-CNEVornb.mjs} +100 -100
  4. package/dist/{edit-CxRGbAP_.mjs → edit-COKceKzl.mjs} +87 -87
  5. package/dist/{edit-DLN1WFrt.mjs → edit-Czi-Vkbf.mjs} +1 -1
  6. package/dist/{edit-CNFS8ehW.mjs → edit-DYqAdRsK.mjs} +99 -99
  7. package/dist/{edit-DlEW6lB8.mjs → edit-DybO5r3p.mjs} +1 -1
  8. package/dist/{edit-Dmxyf_Gp.mjs → edit-_QJnKCdq.mjs} +1 -1
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-jsZCbrsm.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-MQ4ZtR6S.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +172 -173
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-eMXMvSnV.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-BKQkhngP.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
  13. package/dist/{import-upload-BvBtwEbI.mjs → import-upload-BaJGVcNb.mjs} +6 -6
  14. package/dist/{import-upload-BM5kcXdg.mjs → import-upload-CC1Ho43e.mjs} +2 -2
  15. package/dist/{index-D2e-NU3E.mjs → index-BV5uRZXE.mjs} +24 -22
  16. package/dist/{index-nhzVBt2y.mjs → index-CAzxJ_Vp.mjs} +38 -38
  17. package/dist/{index-D2BUGsak.mjs → index-Di1yx94g.mjs} +32 -30
  18. package/dist/{index-Dsf1qOUx.mjs → index-IpHv0Vzi.mjs} +1 -1
  19. package/dist/{index-Bxg8G8aA.mjs → index-WHNNztBg.mjs} +30 -28
  20. package/dist/{index-BzqZLipq.mjs → index-cpyRUYdS.mjs} +57 -55
  21. package/dist/{index-EhejgmO6.mjs → index-dIcRC4jE.mjs} +7 -13
  22. package/dist/{index-CdQGs3Vu.mjs → index-q_wZjCJN.mjs} +30 -28
  23. package/dist/index.mjs +1021 -936
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-DhcyCvVN.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
  25. package/dist/{info-rnc-sgQt.mjs → info-BUKhtcuu.mjs} +2 -2
  26. package/dist/{info-DBObKyIh.mjs → info-Bn5mhJtq.mjs} +2 -2
  27. package/dist/{info-BZ7IZet8.mjs → info-Dx5fzSIP.mjs} +2 -2
  28. package/dist/{info-B2d8xPwW.mjs → info-EodyqiPm.mjs} +2 -2
  29. package/dist/{info-CoizfoOq.mjs → info-G1z1-aeX.mjs} +2 -2
  30. package/dist/{info-CCfX-q4c.mjs → info-bYWisCey.mjs} +2 -2
  31. package/dist/style.css +1 -1
  32. package/dts/api/itsm-sys-org/index.d.ts +5 -0
  33. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -3
  34. package/dts/api/itsm-sys-user-ext/types.d.ts +8 -0
  35. package/dts/constant.d.ts +0 -4
  36. package/dts/index.d.ts +0 -1
  37. package/dts/lang/itsmsys/en.d.ts +130 -49
  38. package/dts/lang/itsmsys/zh-cn.d.ts +0 -3
  39. package/dts/views/itsmsys/itsm-sys-org-invoice/edit.vue.d.ts +8 -2
  40. package/dts/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +8 -2
  41. package/dts/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +8 -2
  42. package/dts/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +8 -2
  43. package/package.json +58 -60
  44. package/dist/import-upload-CjeTCQBx.mjs +0 -161
@@ -1,161 +0,0 @@
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-EhejgmO6.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
- };