xyvcard-itsmsys 0.0.17 → 0.0.19
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.
- package/README.md +51 -51
- package/dist/{edit-BAH_6b13.mjs → edit-BrHOGUbU.mjs} +1 -1
- package/dist/{edit-DgxHpvC6.mjs → edit-CNEVornb.mjs} +100 -100
- package/dist/{edit-CJKLiFvj.mjs → edit-COKceKzl.mjs} +87 -87
- package/dist/{edit-a4L0fy11.mjs → edit-Czi-Vkbf.mjs} +1 -1
- package/dist/{edit-DdBemEtp.mjs → edit-DYqAdRsK.mjs} +99 -99
- package/dist/{edit-CfJWdgBx.mjs → edit-DybO5r3p.mjs} +1 -1
- package/dist/{edit-pCyaGLeW.mjs → edit-_QJnKCdq.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bs8-z-IO.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
- package/dist/{edit.vue_vue_type_script_setup_true_lang-V7Qgl4pY.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +173 -174
- package/dist/{edit.vue_vue_type_script_setup_true_lang-ygCvblxi.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CZ1mhblw.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
- package/dist/{import-upload-TERPQdeq.mjs → import-upload-BvY7RZa-.mjs} +2 -2
- package/dist/{import-upload-BISlCHWj.mjs → import-upload-DBk1lPqR.mjs} +5 -5
- package/dist/{index-BxdZzcjP.mjs → index-BHcHN6PY.mjs} +25 -25
- package/dist/{index-DRzFGqnW.mjs → index-Cow_4AlE.mjs} +22 -22
- package/dist/{index-rAUwvtcF.mjs → index-CuBZptA_.mjs} +1 -1
- package/dist/{index-ekie5iUI.mjs → index-D__UxnZG.mjs} +13 -15
- package/dist/{index-DGX9vRbo.mjs → index-IpHv0Vzi.mjs} +1 -1
- package/dist/{index-byYol6y6.mjs → index-cpyRUYdS.mjs} +57 -55
- package/dist/{index-C57850Qg.mjs → index-dIcRC4jE.mjs} +23 -29
- package/dist/{index-B8RLzH1x.mjs → index-p50UkFiJ.mjs} +28 -28
- package/dist/index.mjs +1021 -936
- package/dist/{index.vue_vue_type_script_setup_true_lang-CFepWDIx.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
- package/dist/{info-DHxVt25p.mjs → info-BUKhtcuu.mjs} +2 -2
- package/dist/{info-BqQdA6b-.mjs → info-Bn5mhJtq.mjs} +2 -2
- package/dist/{info-to4iDhQX.mjs → info-Dx5fzSIP.mjs} +2 -2
- package/dist/{info-BraECWiO.mjs → info-EodyqiPm.mjs} +2 -2
- package/dist/{info-Cjx0ceNM.mjs → info-G1z1-aeX.mjs} +2 -2
- package/dist/{info-BNw5IiGi.mjs → info-bYWisCey.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dts/api/itsm-sys-org/index.d.ts +5 -0
- package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -3
- package/dts/api/itsm-sys-user-ext/types.d.ts +9 -0
- package/dts/constant.d.ts +0 -4
- package/dts/index.d.ts +0 -1
- package/dts/lang/itsmsys/en.d.ts +130 -49
- package/dts/lang/itsmsys/zh-cn.d.ts +0 -3
- package/dts/views/itsmsys/itsm-sys-org-invoice/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +8 -2
- package/package.json +18 -20
- package/dist/import-upload-CzXWmSM6.mjs +0 -161
- package/dts/components/TMaps/index.vue.d.ts +0 -20
- package/dts/utils/TMap.d.ts +0 -1
- package/dts/utils/common.d.ts +0 -1
- package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +0 -31
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, mergeModels as q, ref as N, useModel as F, reactive as R, resolveComponent as m, openBlock as K, createBlock as A, withCtx as s, createElementVNode as G, createVNode as e, createTextVNode as $, toDisplayString as E, unref as o } from "vue";
|
|
2
2
|
import { ElMessage as j } from "element-plus";
|
|
3
|
-
import { useI18n as
|
|
3
|
+
import { useI18n as L } from "vue-i18n";
|
|
4
|
+
import { validatePhoneNumber as H, validateEmail as Q, validateIDCard as W } from "jmash-core";
|
|
5
|
+
import { D as g, C as y } from "./index-dIcRC4jE.mjs";
|
|
4
6
|
import { sysUserExtApi as b } from "./index.mjs";
|
|
5
|
-
|
|
6
|
-
const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
7
|
+
const X = { class: "dialog-footer" }, oe = /* @__PURE__ */ z({
|
|
7
8
|
__name: "edit",
|
|
8
|
-
props: /* @__PURE__ */
|
|
9
|
+
props: /* @__PURE__ */ q({
|
|
9
10
|
entityKey: {
|
|
10
11
|
type: Object,
|
|
11
12
|
default: () => {
|
|
@@ -15,11 +16,11 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
15
16
|
modelValue: { type: Boolean },
|
|
16
17
|
modelModifiers: {}
|
|
17
18
|
}),
|
|
18
|
-
emits: /* @__PURE__ */
|
|
19
|
-
setup(c, { emit:
|
|
20
|
-
const { t:
|
|
21
|
-
|
|
22
|
-
let
|
|
19
|
+
emits: /* @__PURE__ */ q(["refresh"], ["update:modelValue"]),
|
|
20
|
+
setup(c, { emit: C }) {
|
|
21
|
+
const { t: u } = L(), U = N(), p = F(c, "modelValue"), V = C;
|
|
22
|
+
g.sysOrgBizDict.useValues();
|
|
23
|
+
let r = R({
|
|
23
24
|
requestId: Math.random() * 10 + "",
|
|
24
25
|
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineerType,engineerJobMode,engineerSpecialty,engineerCertificate",
|
|
25
26
|
userType: y.userType.companyOps,
|
|
@@ -27,102 +28,104 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
27
28
|
engineerType: y.engineerType.ease_test,
|
|
28
29
|
engineerJobMode: y.engineerJobMode.resident
|
|
29
30
|
});
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
},
|
|
31
|
+
const M = (a, l, n) => {
|
|
32
|
+
l && (Q(l) || n(new Error(u("sysUserOps.emailRequireds")))), n();
|
|
33
|
+
}, S = (a, l, n) => {
|
|
34
|
+
l && (W(l) || n(new Error(u("sysUserOps.idNoLengthRequired")))), n();
|
|
35
|
+
}, I = R({
|
|
33
36
|
realName: [
|
|
34
37
|
{
|
|
35
38
|
required: !0,
|
|
36
|
-
message:
|
|
39
|
+
message: u("sysUserOps.realNameRequired"),
|
|
37
40
|
trigger: "blur"
|
|
38
41
|
}
|
|
39
42
|
],
|
|
40
43
|
mobilePhone: [
|
|
41
44
|
{
|
|
42
45
|
required: !0,
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
validator: (a, l, n) => {
|
|
47
|
+
l ? H(l) ? n() : n(new Error(u("sysUserOps.mobilePhoneRequireds"))) : n(new Error(u("sysUserOps.mobilePhoneRequired")));
|
|
48
|
+
},
|
|
49
|
+
trigger: "blur"
|
|
45
50
|
}
|
|
46
51
|
],
|
|
47
52
|
email: [
|
|
48
53
|
{
|
|
49
|
-
|
|
50
|
-
message: m("sysUserOps.emailRequireds"),
|
|
54
|
+
validator: M,
|
|
51
55
|
trigger: "blur"
|
|
52
56
|
}
|
|
53
57
|
],
|
|
54
58
|
idNo: [
|
|
55
59
|
{
|
|
56
|
-
|
|
57
|
-
message: m("sysUserOps.idNoLengthRequired"),
|
|
60
|
+
validator: S,
|
|
58
61
|
trigger: "blur"
|
|
59
62
|
}
|
|
60
63
|
],
|
|
61
64
|
engineerType: [
|
|
62
65
|
{
|
|
63
66
|
required: !0,
|
|
64
|
-
message:
|
|
67
|
+
message: u("sysUserOps.engineerTypeRequired"),
|
|
65
68
|
trigger: "change"
|
|
66
69
|
}
|
|
67
70
|
],
|
|
68
71
|
engineerJobMode: [
|
|
69
72
|
{
|
|
70
73
|
required: !0,
|
|
71
|
-
message:
|
|
74
|
+
message: u("sysUserOps.engineerJobModeRequired"),
|
|
72
75
|
trigger: "change"
|
|
73
76
|
}
|
|
74
77
|
],
|
|
75
78
|
orgId: [
|
|
76
79
|
{
|
|
77
80
|
required: !0,
|
|
78
|
-
message:
|
|
81
|
+
message: u("sysUserOps.orgIdRequired"),
|
|
79
82
|
trigger: "change"
|
|
80
83
|
}
|
|
81
84
|
]
|
|
82
|
-
}), h = c, T = Object.keys(h.entityKey), O =
|
|
83
|
-
O.value && b.findById(h.entityKey).then(({ data:
|
|
84
|
-
Object.assign(
|
|
85
|
+
}), h = c, T = Object.keys(h.entityKey), O = N(T.length >= 1);
|
|
86
|
+
O.value && b.findById(h.entityKey).then(({ data: a }) => {
|
|
87
|
+
Object.assign(r, a), r.gender === "unknown" && (r.gender = "");
|
|
85
88
|
});
|
|
86
|
-
const
|
|
87
|
-
var
|
|
88
|
-
await ((
|
|
89
|
-
|
|
89
|
+
const D = async () => {
|
|
90
|
+
var a;
|
|
91
|
+
await ((a = U.value) == null ? void 0 : a.validate((l) => {
|
|
92
|
+
l && (O.value ? b.update(r).then((n) => {
|
|
90
93
|
n.status === 200 && (j({
|
|
91
|
-
message:
|
|
94
|
+
message: u("common.submitSuccess"),
|
|
92
95
|
type: "success"
|
|
93
96
|
}), p.value && (p.value = !1), V("refresh", n.status === 200));
|
|
94
|
-
}) : b.create(
|
|
97
|
+
}) : b.create(r).then((n) => {
|
|
95
98
|
n.status === 200 && (j({
|
|
96
|
-
message:
|
|
99
|
+
message: u("common.submitSuccess"),
|
|
97
100
|
type: "success"
|
|
98
101
|
}), p.value && (p.value = !1), V("refresh", n.status === 200));
|
|
99
102
|
}));
|
|
100
103
|
}));
|
|
101
104
|
};
|
|
102
|
-
function
|
|
105
|
+
function w() {
|
|
103
106
|
p.value && (p.value = !1);
|
|
104
107
|
}
|
|
105
|
-
return (
|
|
106
|
-
const n =
|
|
107
|
-
return
|
|
108
|
+
return (a, l) => {
|
|
109
|
+
const n = m("jmash-select"), d = m("el-form-item"), i = m("el-col"), f = m("el-input"), v = m("jmash-enum-radio"), J = m("jmash-dict-select"), P = m("el-row"), k = m("el-form"), _ = m("el-button"), B = m("el-dialog");
|
|
110
|
+
return K(), A(B, {
|
|
108
111
|
modelValue: p.value,
|
|
109
|
-
"onUpdate:modelValue":
|
|
110
|
-
onClose:
|
|
112
|
+
"onUpdate:modelValue": l[11] || (l[11] = (t) => p.value = t),
|
|
113
|
+
onClose: w
|
|
111
114
|
}, {
|
|
112
115
|
footer: s(() => [
|
|
113
|
-
|
|
114
|
-
e(
|
|
116
|
+
G("div", X, [
|
|
117
|
+
e(_, { onClick: w }, {
|
|
115
118
|
default: s(() => [
|
|
116
|
-
|
|
119
|
+
$(E(a.$t("common.cancel")), 1)
|
|
117
120
|
]),
|
|
118
121
|
_: 1
|
|
119
122
|
}),
|
|
120
|
-
e(
|
|
123
|
+
e(_, {
|
|
121
124
|
type: "primary",
|
|
122
|
-
onClick:
|
|
125
|
+
onClick: D
|
|
123
126
|
}, {
|
|
124
127
|
default: s(() => [
|
|
125
|
-
|
|
128
|
+
$(E(a.$t("common.confirm")), 1)
|
|
126
129
|
]),
|
|
127
130
|
_: 1
|
|
128
131
|
})
|
|
@@ -132,9 +135,9 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
132
135
|
e(k, {
|
|
133
136
|
ref_key: "sysUserExtFormRef",
|
|
134
137
|
ref: U,
|
|
135
|
-
model: r
|
|
138
|
+
model: o(r),
|
|
136
139
|
"label-width": "100px",
|
|
137
|
-
rules:
|
|
140
|
+
rules: I
|
|
138
141
|
}, {
|
|
139
142
|
default: s(() => [
|
|
140
143
|
e(P, null, {
|
|
@@ -142,15 +145,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
142
145
|
e(i, { span: 12 }, {
|
|
143
146
|
default: s(() => [
|
|
144
147
|
e(d, {
|
|
145
|
-
label:
|
|
148
|
+
label: a.$t("sysUserOps.orgId"),
|
|
146
149
|
prop: "orgId"
|
|
147
150
|
}, {
|
|
148
151
|
default: s(() => [
|
|
149
152
|
e(n, {
|
|
150
|
-
modelValue: r
|
|
151
|
-
"onUpdate:modelValue":
|
|
152
|
-
placeholder:
|
|
153
|
-
data:
|
|
153
|
+
modelValue: o(r).orgId,
|
|
154
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => o(r).orgId = t),
|
|
155
|
+
placeholder: a.$t("sysUserOps.orgIdRequired"),
|
|
156
|
+
data: o(g).sysOrgBizDict.values,
|
|
154
157
|
clearable: "",
|
|
155
158
|
class: "w-full"
|
|
156
159
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -163,14 +166,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
163
166
|
e(i, { span: 12 }, {
|
|
164
167
|
default: s(() => [
|
|
165
168
|
e(d, {
|
|
166
|
-
label:
|
|
169
|
+
label: a.$t("sysUserOps.realName"),
|
|
167
170
|
prop: "realName"
|
|
168
171
|
}, {
|
|
169
172
|
default: s(() => [
|
|
170
|
-
e(
|
|
171
|
-
modelValue: r
|
|
172
|
-
"onUpdate:modelValue":
|
|
173
|
-
placeholder:
|
|
173
|
+
e(f, {
|
|
174
|
+
modelValue: o(r).realName,
|
|
175
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => o(r).realName = t),
|
|
176
|
+
placeholder: a.$t("sysUserOps.realNameRequired"),
|
|
174
177
|
maxlength: "8",
|
|
175
178
|
"show-word-limit": "",
|
|
176
179
|
clearable: ""
|
|
@@ -184,18 +187,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
184
187
|
e(i, { span: 12 }, {
|
|
185
188
|
default: s(() => [
|
|
186
189
|
e(d, {
|
|
187
|
-
label:
|
|
190
|
+
label: a.$t("sysUserOps.gender"),
|
|
188
191
|
prop: "gender"
|
|
189
192
|
}, {
|
|
190
193
|
default: s(() => [
|
|
191
|
-
e(
|
|
192
|
-
modelValue: r
|
|
193
|
-
"onUpdate:modelValue":
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
"enum-type": "jmash.protobuf.Gender",
|
|
197
|
-
class: "w-full"
|
|
198
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
194
|
+
e(v, {
|
|
195
|
+
modelValue: o(r).gender,
|
|
196
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => o(r).gender = t),
|
|
197
|
+
data: o(g).genderDict.values
|
|
198
|
+
}, null, 8, ["modelValue", "data"])
|
|
199
199
|
]),
|
|
200
200
|
_: 1
|
|
201
201
|
}, 8, ["label"])
|
|
@@ -205,14 +205,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
205
205
|
e(i, { span: 12 }, {
|
|
206
206
|
default: s(() => [
|
|
207
207
|
e(d, {
|
|
208
|
-
label:
|
|
208
|
+
label: a.$t("sysUserOps.mobilePhone"),
|
|
209
209
|
prop: "mobilePhone"
|
|
210
210
|
}, {
|
|
211
211
|
default: s(() => [
|
|
212
|
-
e(
|
|
213
|
-
modelValue: r
|
|
214
|
-
"onUpdate:modelValue":
|
|
215
|
-
placeholder:
|
|
212
|
+
e(f, {
|
|
213
|
+
modelValue: o(r).mobilePhone,
|
|
214
|
+
"onUpdate:modelValue": l[3] || (l[3] = (t) => o(r).mobilePhone = t),
|
|
215
|
+
placeholder: a.$t("sysUserOps.mobilePhoneRequired"),
|
|
216
216
|
maxlength: "11",
|
|
217
217
|
"show-word-limit": "",
|
|
218
218
|
clearable: ""
|
|
@@ -226,14 +226,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
226
226
|
e(i, { span: 12 }, {
|
|
227
227
|
default: s(() => [
|
|
228
228
|
e(d, {
|
|
229
|
-
label:
|
|
229
|
+
label: a.$t("sysUserOps.email"),
|
|
230
230
|
prop: "email"
|
|
231
231
|
}, {
|
|
232
232
|
default: s(() => [
|
|
233
|
-
e(
|
|
234
|
-
modelValue: r
|
|
235
|
-
"onUpdate:modelValue":
|
|
236
|
-
placeholder:
|
|
233
|
+
e(f, {
|
|
234
|
+
modelValue: o(r).email,
|
|
235
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => o(r).email = t),
|
|
236
|
+
placeholder: a.$t("sysUserOps.emailRequired"),
|
|
237
237
|
maxlength: "30",
|
|
238
238
|
"show-word-limit": "",
|
|
239
239
|
clearable: ""
|
|
@@ -247,14 +247,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
247
247
|
e(i, { span: 12 }, {
|
|
248
248
|
default: s(() => [
|
|
249
249
|
e(d, {
|
|
250
|
-
label:
|
|
250
|
+
label: a.$t("sysUserOps.idNo"),
|
|
251
251
|
prop: "idNo"
|
|
252
252
|
}, {
|
|
253
253
|
default: s(() => [
|
|
254
|
-
e(
|
|
255
|
-
modelValue: r
|
|
256
|
-
"onUpdate:modelValue":
|
|
257
|
-
placeholder:
|
|
254
|
+
e(f, {
|
|
255
|
+
modelValue: o(r).idNo,
|
|
256
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => o(r).idNo = t),
|
|
257
|
+
placeholder: a.$t("sysUserOps.idNoRequired"),
|
|
258
258
|
maxlength: "18",
|
|
259
259
|
"show-word-limit": "",
|
|
260
260
|
clearable: ""
|
|
@@ -268,15 +268,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
268
268
|
e(i, { span: 12 }, {
|
|
269
269
|
default: s(() => [
|
|
270
270
|
e(d, {
|
|
271
|
-
label:
|
|
271
|
+
label: a.$t("sysUserOps.engineerType"),
|
|
272
272
|
prop: "engineerType"
|
|
273
273
|
}, {
|
|
274
274
|
default: s(() => [
|
|
275
275
|
e(n, {
|
|
276
|
-
modelValue: r
|
|
277
|
-
"onUpdate:modelValue":
|
|
278
|
-
placeholder:
|
|
279
|
-
data:
|
|
276
|
+
modelValue: o(r).engineerType,
|
|
277
|
+
"onUpdate:modelValue": l[6] || (l[6] = (t) => o(r).engineerType = t),
|
|
278
|
+
placeholder: a.$t("sysUserOps.engineerTypeRequired"),
|
|
279
|
+
data: o(g).engineerTypeDictEnum.values,
|
|
280
280
|
clearable: "",
|
|
281
281
|
class: "w-full"
|
|
282
282
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -289,15 +289,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
289
289
|
e(i, { span: 12 }, {
|
|
290
290
|
default: s(() => [
|
|
291
291
|
e(d, {
|
|
292
|
-
label:
|
|
292
|
+
label: a.$t("sysUserOps.engineerCertificate"),
|
|
293
293
|
prop: "engineerCertificate"
|
|
294
294
|
}, {
|
|
295
295
|
default: s(() => [
|
|
296
|
-
e(
|
|
297
|
-
modelValue: r
|
|
298
|
-
"onUpdate:modelValue":
|
|
299
|
-
placeholder:
|
|
300
|
-
"type-code":
|
|
296
|
+
e(J, {
|
|
297
|
+
modelValue: o(r).engineerCertificate,
|
|
298
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => o(r).engineerCertificate = t),
|
|
299
|
+
placeholder: a.$t("sysUserOps.engineerCertificateRequired"),
|
|
300
|
+
"type-code": o(y).DICT_ENGINEER_GRADE,
|
|
301
301
|
clearable: "",
|
|
302
302
|
filterable: "",
|
|
303
303
|
class: "w-full"
|
|
@@ -311,15 +311,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
311
311
|
e(i, { span: 12 }, {
|
|
312
312
|
default: s(() => [
|
|
313
313
|
e(d, {
|
|
314
|
-
label:
|
|
314
|
+
label: a.$t("sysUserOps.engineerJobMode"),
|
|
315
315
|
prop: "engineerJobMode"
|
|
316
316
|
}, {
|
|
317
317
|
default: s(() => [
|
|
318
318
|
e(n, {
|
|
319
|
-
modelValue: r
|
|
320
|
-
"onUpdate:modelValue":
|
|
321
|
-
placeholder:
|
|
322
|
-
data:
|
|
319
|
+
modelValue: o(r).engineerJobMode,
|
|
320
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => o(r).engineerJobMode = t),
|
|
321
|
+
placeholder: a.$t("sysUserOps.engineerJobModeRequired"),
|
|
322
|
+
data: o(g).engineerJobModeDictEnum.values,
|
|
323
323
|
clearable: "",
|
|
324
324
|
class: "w-full"
|
|
325
325
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -332,14 +332,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
332
332
|
e(i, { span: 12 }, {
|
|
333
333
|
default: s(() => [
|
|
334
334
|
e(d, {
|
|
335
|
-
label:
|
|
335
|
+
label: a.$t("sysUserOps.jobStatus"),
|
|
336
336
|
prop: "jobStatus"
|
|
337
337
|
}, {
|
|
338
338
|
default: s(() => [
|
|
339
|
-
e(
|
|
340
|
-
modelValue: r
|
|
341
|
-
"onUpdate:modelValue":
|
|
342
|
-
data:
|
|
339
|
+
e(v, {
|
|
340
|
+
modelValue: o(r).jobStatus,
|
|
341
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => o(r).jobStatus = t),
|
|
342
|
+
data: o(g).jobStatusDictEnum.values
|
|
343
343
|
}, null, 8, ["modelValue", "data"])
|
|
344
344
|
]),
|
|
345
345
|
_: 1
|
|
@@ -350,14 +350,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
350
350
|
e(i, { span: 24 }, {
|
|
351
351
|
default: s(() => [
|
|
352
352
|
e(d, {
|
|
353
|
-
label:
|
|
353
|
+
label: a.$t("sysUserOps.engineerSpecialty"),
|
|
354
354
|
prop: "engineerSpecialty"
|
|
355
355
|
}, {
|
|
356
356
|
default: s(() => [
|
|
357
|
-
e(
|
|
358
|
-
modelValue: r
|
|
359
|
-
"onUpdate:modelValue":
|
|
360
|
-
placeholder:
|
|
357
|
+
e(f, {
|
|
358
|
+
modelValue: o(r).engineerSpecialty,
|
|
359
|
+
"onUpdate:modelValue": l[10] || (l[10] = (t) => o(r).engineerSpecialty = t),
|
|
360
|
+
placeholder: a.$t("sysUserOps.engineerSpecialtyRequired"),
|
|
361
361
|
type: "textarea",
|
|
362
362
|
autosize: { minRows: 2 },
|
|
363
363
|
maxlength: "200",
|
|
@@ -383,5 +383,5 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
|
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
export {
|
|
386
|
-
|
|
386
|
+
oe as _
|
|
387
387
|
};
|
|
@@ -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-
|
|
5
|
+
import { D as I } from "./index-dIcRC4jE.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",
|
|
@@ -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-
|
|
158
|
+
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-f070dd9d"]]);
|
|
159
159
|
export {
|
|
160
160
|
se as default
|
|
161
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-
|
|
5
|
+
import { D as I } from "./index-dIcRC4jE.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,7 +18,7 @@ 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(),
|
|
21
|
+
const { t: g } = L(), k = i(w.uploadUrl()), b = i(w.authHeader()), $ = C({
|
|
22
22
|
tenant: D().user.tenant
|
|
23
23
|
}), E = i(), d = C({
|
|
24
24
|
tenant: D().user.tenant,
|
|
@@ -120,8 +120,8 @@ 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:
|
|
124
|
-
headers:
|
|
123
|
+
action: k.value,
|
|
124
|
+
headers: b.value,
|
|
125
125
|
data: $,
|
|
126
126
|
limit: 1,
|
|
127
127
|
"on-success": q,
|
|
@@ -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-
|
|
158
|
+
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-402ba96e"]]);
|
|
159
159
|
export {
|
|
160
160
|
se as default
|
|
161
161
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as re, ref as U, reactive as
|
|
1
|
+
import { defineComponent as re, ref as U, reactive as B, resolveComponent as i, resolveDirective as ue, openBlock as d, createElementBlock as k, createElementVNode as b, createVNode as a, withCtx as o, withKeys as V, unref as n, createTextVNode as m, toDisplayString as s, withDirectives as c, createBlock as f, isRef as q, createCommentVNode as S, vShow as K } from "vue";
|
|
2
2
|
import { useTableHooks as ie } from "jmash-core";
|
|
3
3
|
import { useI18n as de } from "vue-i18n";
|
|
4
4
|
import { useRouter as me } from "vue-router";
|
|
5
|
-
import { D as p, C as
|
|
5
|
+
import { D as p, C as N } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { sysUserExtApi as Q } from "./index.mjs";
|
|
7
|
-
import { _ as pe } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as pe } from "./edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs";
|
|
8
8
|
import { F as ye } from "./FileSaver.min-BeKvLuyk.mjs";
|
|
9
|
-
import be from "./import-upload-
|
|
9
|
+
import be from "./import-upload-DBk1lPqR.mjs";
|
|
10
10
|
const ce = { class: "app-container" }, fe = { class: "search-container" }, ve = { key: 0 }, we = ["onClick"], ge = ["onClick"], _e = ["onClick"], De = /* @__PURE__ */ re({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(je) {
|
|
13
13
|
const { t: g } = de(), L = me();
|
|
14
14
|
p.deptBizDict.useValues(), p.jobBizDict.useValues();
|
|
15
15
|
const r = U({
|
|
16
|
-
userType:
|
|
16
|
+
userType: N.userType.companyManager
|
|
17
17
|
}), {
|
|
18
18
|
tableHooks: u,
|
|
19
19
|
multipleTableRef: x,
|
|
@@ -91,16 +91,16 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
91
91
|
isColumn: !0
|
|
92
92
|
}
|
|
93
93
|
]);
|
|
94
|
-
function
|
|
94
|
+
function T(l) {
|
|
95
95
|
l.showEncrypt = !l.showEncrypt;
|
|
96
96
|
}
|
|
97
97
|
const y = U({
|
|
98
98
|
title: g("common.edit"),
|
|
99
99
|
visible: !1
|
|
100
100
|
});
|
|
101
|
-
let E =
|
|
101
|
+
let E = B({});
|
|
102
102
|
function O() {
|
|
103
|
-
E =
|
|
103
|
+
E = B({}), y.value.title = g("common.add"), y.value.visible = !0;
|
|
104
104
|
}
|
|
105
105
|
function G(l) {
|
|
106
106
|
E.userId = l.userId, y.value.title = g("common.edit"), y.value.visible = !0;
|
|
@@ -124,7 +124,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
function Y(l) {
|
|
127
|
-
l.updateMask = "", u.importExcel(l).then(() => {
|
|
127
|
+
l.updateMask = "", l.userType = N.userType.companyManager, u.importExcel(l).then(() => {
|
|
128
128
|
j.value = !1;
|
|
129
129
|
});
|
|
130
130
|
}
|
|
@@ -138,7 +138,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
138
138
|
l && u.getList();
|
|
139
139
|
}
|
|
140
140
|
return u.getList(), (l, t) => {
|
|
141
|
-
const D = i("el-input"), h = i("el-form-item"), v = i("el-col"),
|
|
141
|
+
const D = i("el-input"), h = i("el-form-item"), v = i("el-col"), M = i("jmash-select"), C = i("el-button"), P = i("el-row"), le = i("el-form"), oe = i("jmash-column-select"), R = i("el-tag"), z = i("svg-icon"), ae = i("jmash-table"), ne = i("jmash-pagination"), se = i("el-card"), w = ue("hasPerm");
|
|
142
142
|
return d(), k("div", ce, [
|
|
143
143
|
b("div", fe, [
|
|
144
144
|
a(le, {
|
|
@@ -148,7 +148,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
148
148
|
inline: !0
|
|
149
149
|
}, {
|
|
150
150
|
default: o(() => [
|
|
151
|
-
a(
|
|
151
|
+
a(P, null, {
|
|
152
152
|
default: o(() => [
|
|
153
153
|
a(v, { span: 6 }, {
|
|
154
154
|
default: o(() => [
|
|
@@ -178,7 +178,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
178
178
|
prop: "deptId"
|
|
179
179
|
}, {
|
|
180
180
|
default: o(() => [
|
|
181
|
-
a(
|
|
181
|
+
a(M, {
|
|
182
182
|
modelValue: r.value.deptId,
|
|
183
183
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.deptId = e),
|
|
184
184
|
placeholder: l.$t("sysUserMan.deptIdRequired"),
|
|
@@ -199,7 +199,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
199
199
|
prop: "jobId"
|
|
200
200
|
}, {
|
|
201
201
|
default: o(() => [
|
|
202
|
-
a(
|
|
202
|
+
a(M, {
|
|
203
203
|
modelValue: r.value.jobId,
|
|
204
204
|
"onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.jobId = e),
|
|
205
205
|
placeholder: l.$t("sysUserMan.jobIdRequired"),
|
|
@@ -220,7 +220,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
220
220
|
prop: "jobStatus"
|
|
221
221
|
}, {
|
|
222
222
|
default: o(() => [
|
|
223
|
-
a(
|
|
223
|
+
a(M, {
|
|
224
224
|
modelValue: r.value.jobStatus,
|
|
225
225
|
"onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.jobStatus = e),
|
|
226
226
|
placeholder: l.$t("sysUserMan.jobStatusRequired"),
|
|
@@ -274,7 +274,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
274
274
|
class: "table-container"
|
|
275
275
|
}, {
|
|
276
276
|
header: o(() => [
|
|
277
|
-
a(
|
|
277
|
+
a(P, null, {
|
|
278
278
|
default: o(() => [
|
|
279
279
|
a(v, { span: 17 }, {
|
|
280
280
|
default: o(() => [
|
|
@@ -322,7 +322,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
322
322
|
]),
|
|
323
323
|
a(oe, {
|
|
324
324
|
modelValue: n(_),
|
|
325
|
-
"onUpdate:modelValue": t[12] || (t[12] = (e) =>
|
|
325
|
+
"onUpdate:modelValue": t[12] || (t[12] = (e) => q(_) ? _.value = e : _ = e),
|
|
326
326
|
"label-name": "itsmsys/itsm-sys-user-ext"
|
|
327
327
|
}, null, 8, ["modelValue"])
|
|
328
328
|
]),
|
|
@@ -336,7 +336,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
336
336
|
n(I) > 0 ? (d(), f(ne, {
|
|
337
337
|
key: 0,
|
|
338
338
|
total: n(I),
|
|
339
|
-
"onUpdate:total": t[13] || (t[13] = (e) =>
|
|
339
|
+
"onUpdate:total": t[13] || (t[13] = (e) => q(I) ? I.value = e : null),
|
|
340
340
|
"current-page": r.value.curPage,
|
|
341
341
|
"onUpdate:currentPage": t[14] || (t[14] = (e) => r.value.curPage = e),
|
|
342
342
|
"page-size": r.value.pageSize,
|
|
@@ -372,7 +372,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
372
372
|
]),
|
|
373
373
|
jobStatus: o((e) => [
|
|
374
374
|
b("span", null, [
|
|
375
|
-
e.data.row.jobStatus === n(
|
|
375
|
+
e.data.row.jobStatus === n(N).jobStatus.working ? (d(), f(R, {
|
|
376
376
|
key: 0,
|
|
377
377
|
type: "primary"
|
|
378
378
|
}, {
|
|
@@ -380,7 +380,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
380
380
|
m(s(n(p).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
|
|
381
381
|
]),
|
|
382
382
|
_: 2
|
|
383
|
-
}, 1024)) : (d(), f(
|
|
383
|
+
}, 1024)) : (d(), f(R, {
|
|
384
384
|
key: 1,
|
|
385
385
|
type: "danger"
|
|
386
386
|
}, {
|
|
@@ -393,17 +393,17 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
393
393
|
]),
|
|
394
394
|
operation: o((e) => [
|
|
395
395
|
e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), k("span", ve, [
|
|
396
|
-
c(a(
|
|
396
|
+
c(a(z, {
|
|
397
397
|
"icon-class": "close-eye",
|
|
398
|
-
onClick: ($) =>
|
|
398
|
+
onClick: ($) => T(e.data.row)
|
|
399
399
|
}, null, 8, ["onClick"]), [
|
|
400
|
-
[
|
|
400
|
+
[K, !e.data.row.showEncrypt]
|
|
401
401
|
]),
|
|
402
|
-
c(a(
|
|
402
|
+
c(a(z, {
|
|
403
403
|
"icon-class": "eye-open",
|
|
404
|
-
onClick: ($) =>
|
|
404
|
+
onClick: ($) => T(e.data.row)
|
|
405
405
|
}, null, 8, ["onClick"]), [
|
|
406
|
-
[
|
|
406
|
+
[K, e.data.row.showEncrypt]
|
|
407
407
|
])
|
|
408
408
|
])) : S("", !0),
|
|
409
409
|
c((d(), k("span", {
|