xyvcard-itsmsys 0.0.10 → 0.0.12
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/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
- package/dist/{edit-DG_Iw1-J.mjs → edit-BSgQ7aTw.mjs} +1 -1
- package/dist/{edit-DdUUCXSa.mjs → edit-BSllWdRO.mjs} +1 -1
- package/dist/{edit-RSO388mB.mjs → edit-C-Ddf0UV.mjs} +115 -115
- package/dist/{edit-BNe0hNw4.mjs → edit-CNw8JPUb.mjs} +108 -108
- package/dist/{edit-BqPZHwxi.mjs → edit-Cd4dWFsH.mjs} +1 -1
- package/dist/{edit-CyM6IuLb.mjs → edit-aqBMKpoJ.mjs} +118 -118
- package/dist/{edit-CwV1OVfe.mjs → edit-q5TFAMBm.mjs} +1 -1
- package/dist/edit.vue_vue_type_script_setup_true_lang-BA39WCu3.mjs +463 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BJcLgzvH.mjs +463 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs +482 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs → edit.vue_vue_type_script_setup_true_lang-D1lAHFeM.mjs} +79 -56
- package/dist/import-upload-BIT504-g.mjs +4 -0
- package/dist/import-upload-pZG8yku3.mjs +4 -0
- package/dist/import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs +162 -0
- package/dist/import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs +162 -0
- package/dist/index-B2xwBTw-.mjs +20 -0
- package/dist/{index-NugT80P7.mjs → index-BY5Djw_C.mjs} +7 -7
- package/dist/{index-CI8Z4rNf.mjs → index-BaixQptZ.mjs} +7 -7
- package/dist/index-CoMhbtrg.mjs +449 -0
- package/dist/{index-DirPUdCN.mjs → index-Cz9Xj4Mn.mjs} +1 -1
- package/dist/{index-CNGaGeE7.mjs → index-DPz8be3T.mjs} +32 -32
- package/dist/index-Dno_3GpX.mjs +145 -0
- package/dist/{index-CMBtB1kH.mjs → index-DrBtW9Aj.mjs} +185 -134
- package/dist/{index-DxILUznW.mjs → index-LOMCvxtf.mjs} +1 -1
- package/dist/index.mjs +654 -623
- package/dist/{index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs → index.vue_vue_type_script_setup_true_lang-C67sXgs5.mjs} +41 -34
- package/dist/{info-BFZTqoY3.mjs → info-BUDmirQy.mjs} +1 -1
- package/dist/{info-DReeRuaA.mjs → info-BivxW-qV.mjs} +1 -1
- package/dist/{info-Dilg-bji.mjs → info-Bn-BseIm.mjs} +1 -1
- package/dist/{info-C0OHjgoS.mjs → info-C-ga_8K9.mjs} +11 -11
- package/dist/{info-DvYUiSRY.mjs → info-C3knY6l_.mjs} +58 -47
- package/dist/{info-CXx2899k.mjs → info-D0Pwnmsu.mjs} +71 -60
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +0 -6
- package/dts/api/index.d.ts +4 -2
- package/dts/api/itsm-sys-org/types.d.ts +0 -2
- package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -1
- package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
- package/dts/api/itsm-sys-user-ext/types.d.ts +15 -2
- package/dts/constant.d.ts +14 -0
- package/dts/index.d.ts +1 -1
- package/dts/lang/itsmsys/zh-cn.d.ts +22 -11
- package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
- package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
- package/package.json +4 -4
- package/dist/common-B2PCBCJ2.mjs +0 -13
- package/dist/edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs +0 -440
- package/dist/edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs +0 -438
- package/dist/edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs +0 -440
- package/dist/index-BRupqW34.mjs +0 -96
- package/dist/index-CQ5Bo5a2.mjs +0 -135
- package/dist/index-w2SWNZRB.mjs +0 -397
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
import { defineComponent as H, mergeModels as M, ref as V, useModel as G, reactive as S, resolveComponent as i, openBlock as b, createBlock as c, withCtx as l, createElementVNode as j, createVNode as e, createTextVNode as h, toDisplayString as O, unref as r, createCommentVNode as L } from "vue";
|
|
2
|
-
import { ElMessage as I } from "element-plus";
|
|
3
|
-
import { useI18n as X } from "vue-i18n";
|
|
4
|
-
import { sysUserExtApi as w } from "./index.mjs";
|
|
5
|
-
import { g as Q } from "./common-B2PCBCJ2.mjs";
|
|
6
|
-
import { D as y, C as W } from "./index-CQ5Bo5a2.mjs";
|
|
7
|
-
const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
8
|
-
__name: "edit",
|
|
9
|
-
props: /* @__PURE__ */ M({
|
|
10
|
-
entityKey: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default: () => {
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}, {
|
|
16
|
-
modelValue: { type: Boolean },
|
|
17
|
-
modelModifiers: {}
|
|
18
|
-
}),
|
|
19
|
-
emits: /* @__PURE__ */ M(["refresh"], ["update:modelValue"]),
|
|
20
|
-
setup(q, { emit: T }) {
|
|
21
|
-
const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ = T, f = V(!1);
|
|
22
|
-
y.sysOrgBizDict.useValues();
|
|
23
|
-
let o = S({
|
|
24
|
-
requestId: Math.random() * 10 + "",
|
|
25
|
-
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty",
|
|
26
|
-
userType: W.userType.companyOps
|
|
27
|
-
});
|
|
28
|
-
const k = (s, a, d) => {
|
|
29
|
-
a === void 0 && d(new Error(n("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(a) || d(new Error(n("sysUserOps.mobilePhoneRequireds"))), d();
|
|
30
|
-
}, C = S({
|
|
31
|
-
realName: [
|
|
32
|
-
{
|
|
33
|
-
required: !0,
|
|
34
|
-
message: n("sysUserOps.realNameRequired"),
|
|
35
|
-
trigger: "blur"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
gender: [
|
|
39
|
-
{
|
|
40
|
-
required: !0,
|
|
41
|
-
message: n("sysUserOps.genderRequired"),
|
|
42
|
-
trigger: "change"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
mobilePhone: [
|
|
46
|
-
{
|
|
47
|
-
required: !0,
|
|
48
|
-
trigger: "blur",
|
|
49
|
-
validator: k
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
email: [
|
|
53
|
-
{
|
|
54
|
-
pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
|
|
55
|
-
message: n("sysUserOps.emailRequireds"),
|
|
56
|
-
trigger: "blur"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
idNo: [
|
|
60
|
-
{
|
|
61
|
-
pattern: /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}(\d|X)$/,
|
|
62
|
-
message: n("sysUserOps.idNoLengthRequired"),
|
|
63
|
-
trigger: "blur"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
jobStatus: [
|
|
67
|
-
{
|
|
68
|
-
required: !0,
|
|
69
|
-
message: n("sysUserOps.jobStatusRequired"),
|
|
70
|
-
trigger: "change"
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
engineeType: [
|
|
74
|
-
{
|
|
75
|
-
required: !0,
|
|
76
|
-
message: n("sysUserOps.engineeTypeRequired"),
|
|
77
|
-
trigger: "change"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
engineeJobMode: [
|
|
81
|
-
{
|
|
82
|
-
required: !0,
|
|
83
|
-
message: n("sysUserOps.engineeJobModeRequired"),
|
|
84
|
-
trigger: "change"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
orgId: [
|
|
88
|
-
{
|
|
89
|
-
required: !0,
|
|
90
|
-
message: n("sysUserOps.orgIdRequired"),
|
|
91
|
-
trigger: "change"
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
userPassword: [
|
|
95
|
-
{
|
|
96
|
-
required: !0,
|
|
97
|
-
message: n("sysUserOps.userPasswordRequired"),
|
|
98
|
-
trigger: "blur"
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}), _ = q, E = Object.keys(_.entityKey), v = V(E.length >= 1);
|
|
102
|
-
v.value && w.findById(_.entityKey).then(({ data: s }) => {
|
|
103
|
-
Object.assign(o, s);
|
|
104
|
-
});
|
|
105
|
-
const D = async () => {
|
|
106
|
-
var s;
|
|
107
|
-
await ((s = R.value) == null ? void 0 : s.validate((a) => {
|
|
108
|
-
a && (v.value ? w.update(o).then((d) => {
|
|
109
|
-
console.log(d), d.status === 200 && (I({
|
|
110
|
-
message: n("common.submitSuccess"),
|
|
111
|
-
type: "success"
|
|
112
|
-
}), m.value && (m.value = !1), $("refresh", d.status === 200));
|
|
113
|
-
}) : w.create(o).then((d) => {
|
|
114
|
-
console.log(d), d.status === 200 && (I({
|
|
115
|
-
message: n("common.submitSuccess"),
|
|
116
|
-
type: "success"
|
|
117
|
-
}), m.value && (m.value = !1), $("refresh", d.status === 200));
|
|
118
|
-
}));
|
|
119
|
-
}));
|
|
120
|
-
};
|
|
121
|
-
function J() {
|
|
122
|
-
o.userPassword = Q();
|
|
123
|
-
}
|
|
124
|
-
function N() {
|
|
125
|
-
m.value && (m.value = !1);
|
|
126
|
-
}
|
|
127
|
-
return (s, a) => {
|
|
128
|
-
const d = i("jmash-select"), u = i("el-form-item"), p = i("el-col"), g = i("el-input"), z = i("jmash-enum-select"), U = i("el-button"), B = i("View"), P = i("el-icon"), A = i("Hide"), K = i("el-row"), F = i("el-form"), Z = i("el-dialog");
|
|
129
|
-
return b(), c(Z, {
|
|
130
|
-
modelValue: m.value,
|
|
131
|
-
"onUpdate:modelValue": a[12] || (a[12] = (t) => m.value = t),
|
|
132
|
-
onClose: N
|
|
133
|
-
}, {
|
|
134
|
-
footer: l(() => [
|
|
135
|
-
j("div", Y, [
|
|
136
|
-
e(U, { onClick: N }, {
|
|
137
|
-
default: l(() => [
|
|
138
|
-
h(O(s.$t("common.cancel")), 1)
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}),
|
|
142
|
-
e(U, {
|
|
143
|
-
type: "primary",
|
|
144
|
-
onClick: D
|
|
145
|
-
}, {
|
|
146
|
-
default: l(() => [
|
|
147
|
-
h(O(s.$t("common.confirm")), 1)
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
})
|
|
151
|
-
])
|
|
152
|
-
]),
|
|
153
|
-
default: l(() => [
|
|
154
|
-
e(F, {
|
|
155
|
-
ref_key: "sysUserExtFormRef",
|
|
156
|
-
ref: R,
|
|
157
|
-
model: r(o),
|
|
158
|
-
"label-width": "100px",
|
|
159
|
-
rules: C
|
|
160
|
-
}, {
|
|
161
|
-
default: l(() => [
|
|
162
|
-
e(K, null, {
|
|
163
|
-
default: l(() => [
|
|
164
|
-
e(p, { span: 12 }, {
|
|
165
|
-
default: l(() => [
|
|
166
|
-
e(u, {
|
|
167
|
-
label: s.$t("sysUserOps.orgId"),
|
|
168
|
-
prop: "orgId"
|
|
169
|
-
}, {
|
|
170
|
-
default: l(() => [
|
|
171
|
-
e(d, {
|
|
172
|
-
modelValue: r(o).orgId,
|
|
173
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) => r(o).orgId = t),
|
|
174
|
-
placeholder: s.$t("sysUserOps.orgIdRequired"),
|
|
175
|
-
data: r(y).sysOrgBizDict.values,
|
|
176
|
-
clearable: "",
|
|
177
|
-
class: "w-full"
|
|
178
|
-
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
179
|
-
]),
|
|
180
|
-
_: 1
|
|
181
|
-
}, 8, ["label"])
|
|
182
|
-
]),
|
|
183
|
-
_: 1
|
|
184
|
-
}),
|
|
185
|
-
e(p, { span: 12 }, {
|
|
186
|
-
default: l(() => [
|
|
187
|
-
e(u, {
|
|
188
|
-
label: s.$t("sysUserOps.realName"),
|
|
189
|
-
prop: "realName"
|
|
190
|
-
}, {
|
|
191
|
-
default: l(() => [
|
|
192
|
-
e(g, {
|
|
193
|
-
modelValue: r(o).realName,
|
|
194
|
-
"onUpdate:modelValue": a[1] || (a[1] = (t) => r(o).realName = t),
|
|
195
|
-
placeholder: s.$t("sysUserOps.realNameRequired"),
|
|
196
|
-
maxlength: "8",
|
|
197
|
-
"show-word-limit": "",
|
|
198
|
-
clearable: ""
|
|
199
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
}, 8, ["label"])
|
|
203
|
-
]),
|
|
204
|
-
_: 1
|
|
205
|
-
}),
|
|
206
|
-
e(p, { span: 12 }, {
|
|
207
|
-
default: l(() => [
|
|
208
|
-
e(u, {
|
|
209
|
-
label: s.$t("sysUserOps.gender"),
|
|
210
|
-
prop: "gender"
|
|
211
|
-
}, {
|
|
212
|
-
default: l(() => [
|
|
213
|
-
e(z, {
|
|
214
|
-
modelValue: r(o).gender,
|
|
215
|
-
"onUpdate:modelValue": a[2] || (a[2] = (t) => r(o).gender = t),
|
|
216
|
-
clearable: "",
|
|
217
|
-
placeholder: s.$t("sysUserOps.genderRequired"),
|
|
218
|
-
"enum-type": "jmash.protobuf.Gender",
|
|
219
|
-
class: "w-full"
|
|
220
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
221
|
-
]),
|
|
222
|
-
_: 1
|
|
223
|
-
}, 8, ["label"])
|
|
224
|
-
]),
|
|
225
|
-
_: 1
|
|
226
|
-
}),
|
|
227
|
-
e(p, { span: 12 }, {
|
|
228
|
-
default: l(() => [
|
|
229
|
-
e(u, {
|
|
230
|
-
label: s.$t("sysUserOps.mobilePhone"),
|
|
231
|
-
prop: "mobilePhone"
|
|
232
|
-
}, {
|
|
233
|
-
default: l(() => [
|
|
234
|
-
e(g, {
|
|
235
|
-
modelValue: r(o).mobilePhone,
|
|
236
|
-
"onUpdate:modelValue": a[3] || (a[3] = (t) => r(o).mobilePhone = t),
|
|
237
|
-
placeholder: s.$t("sysUserOps.mobilePhoneRequired"),
|
|
238
|
-
maxlength: "11",
|
|
239
|
-
"show-word-limit": "",
|
|
240
|
-
clearable: ""
|
|
241
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
242
|
-
]),
|
|
243
|
-
_: 1
|
|
244
|
-
}, 8, ["label"])
|
|
245
|
-
]),
|
|
246
|
-
_: 1
|
|
247
|
-
}),
|
|
248
|
-
e(p, { span: 12 }, {
|
|
249
|
-
default: l(() => [
|
|
250
|
-
e(u, {
|
|
251
|
-
label: s.$t("sysUserOps.email"),
|
|
252
|
-
prop: "email"
|
|
253
|
-
}, {
|
|
254
|
-
default: l(() => [
|
|
255
|
-
e(g, {
|
|
256
|
-
modelValue: r(o).email,
|
|
257
|
-
"onUpdate:modelValue": a[4] || (a[4] = (t) => r(o).email = t),
|
|
258
|
-
placeholder: s.$t("sysUserOps.emailRequired"),
|
|
259
|
-
maxlength: "30",
|
|
260
|
-
"show-word-limit": "",
|
|
261
|
-
clearable: ""
|
|
262
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
263
|
-
]),
|
|
264
|
-
_: 1
|
|
265
|
-
}, 8, ["label"])
|
|
266
|
-
]),
|
|
267
|
-
_: 1
|
|
268
|
-
}),
|
|
269
|
-
e(p, { span: 12 }, {
|
|
270
|
-
default: l(() => [
|
|
271
|
-
e(u, {
|
|
272
|
-
label: s.$t("sysUserOps.idNo"),
|
|
273
|
-
prop: "idNo"
|
|
274
|
-
}, {
|
|
275
|
-
default: l(() => [
|
|
276
|
-
e(g, {
|
|
277
|
-
modelValue: r(o).idNo,
|
|
278
|
-
"onUpdate:modelValue": a[5] || (a[5] = (t) => r(o).idNo = t),
|
|
279
|
-
placeholder: s.$t("sysUserOps.idNoRequired"),
|
|
280
|
-
maxlength: "18",
|
|
281
|
-
"show-word-limit": "",
|
|
282
|
-
clearable: ""
|
|
283
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
284
|
-
]),
|
|
285
|
-
_: 1
|
|
286
|
-
}, 8, ["label"])
|
|
287
|
-
]),
|
|
288
|
-
_: 1
|
|
289
|
-
}),
|
|
290
|
-
e(p, { span: 12 }, {
|
|
291
|
-
default: l(() => [
|
|
292
|
-
e(u, {
|
|
293
|
-
label: s.$t("sysUserOps.engineeType"),
|
|
294
|
-
prop: "engineeType"
|
|
295
|
-
}, {
|
|
296
|
-
default: l(() => [
|
|
297
|
-
e(d, {
|
|
298
|
-
modelValue: r(o).engineeType,
|
|
299
|
-
"onUpdate:modelValue": a[6] || (a[6] = (t) => r(o).engineeType = t),
|
|
300
|
-
placeholder: s.$t("sysUserOps.engineeTypeRequired"),
|
|
301
|
-
data: r(y).engineeTypeDictEnum.values,
|
|
302
|
-
clearable: "",
|
|
303
|
-
class: "w-full"
|
|
304
|
-
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
305
|
-
]),
|
|
306
|
-
_: 1
|
|
307
|
-
}, 8, ["label"])
|
|
308
|
-
]),
|
|
309
|
-
_: 1
|
|
310
|
-
}),
|
|
311
|
-
e(p, { span: 12 }, {
|
|
312
|
-
default: l(() => [
|
|
313
|
-
e(u, {
|
|
314
|
-
label: s.$t("sysUserOps.engineeJobMode"),
|
|
315
|
-
prop: "engineeJobMode"
|
|
316
|
-
}, {
|
|
317
|
-
default: l(() => [
|
|
318
|
-
e(d, {
|
|
319
|
-
modelValue: r(o).engineeJobMode,
|
|
320
|
-
"onUpdate:modelValue": a[7] || (a[7] = (t) => r(o).engineeJobMode = t),
|
|
321
|
-
placeholder: s.$t("sysUserOps.engineeJobModeRequired"),
|
|
322
|
-
data: r(y).engineeJobModeDictEnum.values,
|
|
323
|
-
clearable: "",
|
|
324
|
-
class: "w-full"
|
|
325
|
-
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
326
|
-
]),
|
|
327
|
-
_: 1
|
|
328
|
-
}, 8, ["label"])
|
|
329
|
-
]),
|
|
330
|
-
_: 1
|
|
331
|
-
}),
|
|
332
|
-
e(p, { span: 12 }, {
|
|
333
|
-
default: l(() => [
|
|
334
|
-
e(u, {
|
|
335
|
-
label: s.$t("sysUserOps.jobStatus"),
|
|
336
|
-
prop: "jobStatus"
|
|
337
|
-
}, {
|
|
338
|
-
default: l(() => [
|
|
339
|
-
e(d, {
|
|
340
|
-
modelValue: r(o).jobStatus,
|
|
341
|
-
"onUpdate:modelValue": a[8] || (a[8] = (t) => r(o).jobStatus = t),
|
|
342
|
-
placeholder: s.$t("sysUserOps.jobStatusRequired"),
|
|
343
|
-
data: r(y).jobStatusDictEnum.values,
|
|
344
|
-
clearable: "",
|
|
345
|
-
class: "w-full"
|
|
346
|
-
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
347
|
-
]),
|
|
348
|
-
_: 1
|
|
349
|
-
}, 8, ["label"])
|
|
350
|
-
]),
|
|
351
|
-
_: 1
|
|
352
|
-
}),
|
|
353
|
-
r(o).userId ? L("", !0) : (b(), c(p, {
|
|
354
|
-
key: 0,
|
|
355
|
-
span: 12
|
|
356
|
-
}, {
|
|
357
|
-
default: l(() => [
|
|
358
|
-
e(u, {
|
|
359
|
-
label: s.$t("sysUserOps.userPassword"),
|
|
360
|
-
prop: "userPassword"
|
|
361
|
-
}, {
|
|
362
|
-
default: l(() => [
|
|
363
|
-
e(g, {
|
|
364
|
-
modelValue: r(o).userPassword,
|
|
365
|
-
"onUpdate:modelValue": a[10] || (a[10] = (t) => r(o).userPassword = t),
|
|
366
|
-
clearable: "",
|
|
367
|
-
type: f.value ? "text" : "password",
|
|
368
|
-
placeholder: s.$t("sysUserOps.userPasswordRequired")
|
|
369
|
-
}, {
|
|
370
|
-
append: l(() => [
|
|
371
|
-
e(U, { onClick: J }, {
|
|
372
|
-
default: l(() => [
|
|
373
|
-
h(O(s.$t("sysUserOps.randomPwd")), 1)
|
|
374
|
-
]),
|
|
375
|
-
_: 1
|
|
376
|
-
})
|
|
377
|
-
]),
|
|
378
|
-
suffix: l(() => [
|
|
379
|
-
j("span", {
|
|
380
|
-
onClick: a[9] || (a[9] = (t) => f.value = !f.value)
|
|
381
|
-
}, [
|
|
382
|
-
f.value ? (b(), c(P, { key: 0 }, {
|
|
383
|
-
default: l(() => [
|
|
384
|
-
e(B)
|
|
385
|
-
]),
|
|
386
|
-
_: 1
|
|
387
|
-
})) : (b(), c(P, { key: 1 }, {
|
|
388
|
-
default: l(() => [
|
|
389
|
-
e(A)
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
}))
|
|
393
|
-
])
|
|
394
|
-
]),
|
|
395
|
-
_: 1
|
|
396
|
-
}, 8, ["modelValue", "type", "placeholder"])
|
|
397
|
-
]),
|
|
398
|
-
_: 1
|
|
399
|
-
}, 8, ["label"])
|
|
400
|
-
]),
|
|
401
|
-
_: 1
|
|
402
|
-
})),
|
|
403
|
-
e(p, { span: 24 }, {
|
|
404
|
-
default: l(() => [
|
|
405
|
-
e(u, {
|
|
406
|
-
label: s.$t("sysUserOps.engineeSpecialty"),
|
|
407
|
-
prop: "engineeSpecialty"
|
|
408
|
-
}, {
|
|
409
|
-
default: l(() => [
|
|
410
|
-
e(g, {
|
|
411
|
-
modelValue: r(o).engineeSpecialty,
|
|
412
|
-
"onUpdate:modelValue": a[11] || (a[11] = (t) => r(o).engineeSpecialty = t),
|
|
413
|
-
placeholder: s.$t("sysUserOps.engineeSpecialtyRequired"),
|
|
414
|
-
type: "textarea",
|
|
415
|
-
autosize: { minRows: 2 },
|
|
416
|
-
maxlength: "200",
|
|
417
|
-
"show-word-limit": "",
|
|
418
|
-
clearable: ""
|
|
419
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
420
|
-
]),
|
|
421
|
-
_: 1
|
|
422
|
-
}, 8, ["label"])
|
|
423
|
-
]),
|
|
424
|
-
_: 1
|
|
425
|
-
})
|
|
426
|
-
]),
|
|
427
|
-
_: 1
|
|
428
|
-
})
|
|
429
|
-
]),
|
|
430
|
-
_: 1
|
|
431
|
-
}, 8, ["model", "rules"])
|
|
432
|
-
]),
|
|
433
|
-
_: 1
|
|
434
|
-
}, 8, ["modelValue"]);
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
export {
|
|
439
|
-
re as _
|
|
440
|
-
};
|
package/dist/index-BRupqW34.mjs
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, watch as M, onMounted as _, openBlock as f, createElementBlock as k } from "vue";
|
|
2
|
-
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
async function y() {
|
|
4
|
-
return new Promise((r, s) => {
|
|
5
|
-
const o = document.createElement("script");
|
|
6
|
-
o.type = "text/javascript", o.src = "https://map.qq.com/api/gljs?v=1.exp&key=OBWBZ-L62CW-2B7RQ-YKOOO-P4LR3-4PFXQ&callback=initMap&libraries=service", o.onload = () => {
|
|
7
|
-
r(!0);
|
|
8
|
-
}, o.onerror = (c) => {
|
|
9
|
-
s(c);
|
|
10
|
-
}, document.head.appendChild(o);
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
const h = {
|
|
14
|
-
id: "container",
|
|
15
|
-
class: "container"
|
|
16
|
-
}, T = /* @__PURE__ */ L({
|
|
17
|
-
__name: "index",
|
|
18
|
-
props: {
|
|
19
|
-
address: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ""
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
emits: ["getAddress", "getLatLng"],
|
|
25
|
-
setup(r, { emit: s }) {
|
|
26
|
-
const o = r, c = s;
|
|
27
|
-
let l, a;
|
|
28
|
-
M(
|
|
29
|
-
() => o.address,
|
|
30
|
-
(t) => {
|
|
31
|
-
u(t);
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
async function p() {
|
|
35
|
-
const t = new TMap.LatLng(37.870451, 112.549656), n = {
|
|
36
|
-
zoom: 16,
|
|
37
|
-
center: t
|
|
38
|
-
};
|
|
39
|
-
l = new TMap.Map(document.getElementById("container"), n), i(t);
|
|
40
|
-
}
|
|
41
|
-
function i(t) {
|
|
42
|
-
console.log("center.....", t), a = new TMap.MultiMarker({
|
|
43
|
-
map: l,
|
|
44
|
-
styles: {
|
|
45
|
-
// 点标记样式
|
|
46
|
-
marker: new TMap.MarkerStyle({
|
|
47
|
-
width: 20,
|
|
48
|
-
// 样式宽
|
|
49
|
-
height: 30,
|
|
50
|
-
// 样式高
|
|
51
|
-
anchor: { x: 10, y: 30 }
|
|
52
|
-
// 描点位置
|
|
53
|
-
})
|
|
54
|
-
},
|
|
55
|
-
geometries: [
|
|
56
|
-
// 点标记数据数组
|
|
57
|
-
{
|
|
58
|
-
// 标记位置(纬度,经度,高度)
|
|
59
|
-
position: t,
|
|
60
|
-
styleId: "marker"
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}), d();
|
|
64
|
-
}
|
|
65
|
-
function d() {
|
|
66
|
-
l.on("click", (t) => {
|
|
67
|
-
console.log("evt.....", t), a.add({
|
|
68
|
-
position: t.latLng,
|
|
69
|
-
styleId: "marker"
|
|
70
|
-
}), new TMap.service.Geocoder().getAddress({ location: new TMap.LatLng(t.latLng.lat, t.latLng.lng) }).then((e) => {
|
|
71
|
-
console.log(e), e.status === 0 && (c("getLatLng", [t.latLng.lat, t.latLng.lng]), c("getAddress", e.result.address));
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function g() {
|
|
76
|
-
a && (console.log("......", a), a.setMap(null), a = null);
|
|
77
|
-
}
|
|
78
|
-
function u(t) {
|
|
79
|
-
const n = new TMap.service.Geocoder();
|
|
80
|
-
console.log(n, t), n.getLocation({ address: t }).then((e) => {
|
|
81
|
-
console.log(e), e.status === 0 && (g(), i(
|
|
82
|
-
new TMap.LatLng(e.result.location.lat, e.result.location.lng)
|
|
83
|
-
), m(e.result.location.lat, e.result.location.lng), c("getLatLng", [e.result.location.lat, e.result.location.lng]));
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
function m(t, n) {
|
|
87
|
-
l.setCenter(new TMap.LatLng(t, n));
|
|
88
|
-
}
|
|
89
|
-
return _(async () => {
|
|
90
|
-
await y(), await p();
|
|
91
|
-
}), (t, n) => (f(), k("div", h));
|
|
92
|
-
}
|
|
93
|
-
}), O = /* @__PURE__ */ w(T, [["__scopeId", "data-v-a3650af5"]]);
|
|
94
|
-
export {
|
|
95
|
-
O as _
|
|
96
|
-
};
|
package/dist/index-CQ5Bo5a2.mjs
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
var y = Object.defineProperty;
|
|
2
|
-
var p = (i, r, t) => r in i ? y(i, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[r] = t;
|
|
3
|
-
var s = (i, r, t) => p(i, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
import { ref as S, reactive as T } from "vue";
|
|
5
|
-
import { BizLayDict as h, BizDict as _, EnumDict as u } from "jmash-core";
|
|
6
|
-
import { sysOrgApi as n } from "./index.mjs";
|
|
7
|
-
class e {
|
|
8
|
-
}
|
|
9
|
-
//模块
|
|
10
|
-
s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
|
|
11
|
-
s(e, "HAS_STATUS", S([
|
|
12
|
-
{ key: !0, value: "启用" },
|
|
13
|
-
{ key: !1, value: "禁用" }
|
|
14
|
-
])), // 公司发票类型
|
|
15
|
-
s(e, "ENUM_INVOICE_TYPE", "xyvcard.itsmsys.protobuf.InvoiceType"), // 管理人员工作状态
|
|
16
|
-
s(e, "ENUM_JOB_ATATUS", "xyvcard.itsmsys.protobuf.SysUserJobStatus"), // 运维人员工作模式
|
|
17
|
-
s(e, "ENUM_ENGINEE_JOB_MODE", "xyvcard.itsmsys.protobuf.SysUserJobMode"), // 人员性别
|
|
18
|
-
s(e, "ENUM_GENDER", "jmash.protobuf.Gender"), // 运维人员工程师类型
|
|
19
|
-
s(e, "ENUM_ENGINEE_TYPE", "xyvcard.itsmsys.protobuf.SysEngineeType"), // 机构类型
|
|
20
|
-
s(e, "orgType", {
|
|
21
|
-
// 公司
|
|
22
|
-
cloud: "CLOUD",
|
|
23
|
-
// 厅局
|
|
24
|
-
hall: "HALL",
|
|
25
|
-
// 外协
|
|
26
|
-
outsource: "OUTSOURCE"
|
|
27
|
-
}), // 工作状态
|
|
28
|
-
s(e, "jobStatus", {
|
|
29
|
-
// 在职
|
|
30
|
-
working: "WORKING",
|
|
31
|
-
// 离职
|
|
32
|
-
leave: "LEAVE"
|
|
33
|
-
}), // 人员类型
|
|
34
|
-
s(e, "userType", {
|
|
35
|
-
// 公司管理
|
|
36
|
-
companyManager: "COMPANY_MANAGER",
|
|
37
|
-
// 公司运维
|
|
38
|
-
companyOps: "COMPANY_OPS",
|
|
39
|
-
// 外协运维
|
|
40
|
-
outsourceOps: "OUTSOURCE_OPS"
|
|
41
|
-
});
|
|
42
|
-
class O {
|
|
43
|
-
constructor(r, t) {
|
|
44
|
-
s(this, "values", T([]));
|
|
45
|
-
// 查询条件
|
|
46
|
-
s(this, "query");
|
|
47
|
-
this.values.length = 0, this.values.push(...r.value), this.query = t;
|
|
48
|
-
}
|
|
49
|
-
// 根据给定键获取业务数据项的值的方法
|
|
50
|
-
getValue(r) {
|
|
51
|
-
for (const t of this.values)
|
|
52
|
-
if (t.key == r)
|
|
53
|
-
return t.value;
|
|
54
|
-
return "";
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
class M extends h {
|
|
58
|
-
// 实现 useValues 方法
|
|
59
|
-
useValues() {
|
|
60
|
-
return new Promise((r, t) => {
|
|
61
|
-
if (typeof n.findList > "u") {
|
|
62
|
-
r(this.values);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const o = { ...this.query };
|
|
66
|
-
n.findList(o).then(({ data: E }) => {
|
|
67
|
-
const c = E.results;
|
|
68
|
-
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(c)), r(this.values);
|
|
69
|
-
}).catch(t);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
convertToLayEntryArray(r) {
|
|
73
|
-
return r.map((t) => ({
|
|
74
|
-
value: t.orgId,
|
|
75
|
-
label: t.orgName,
|
|
76
|
-
parentId: t.parentId || "",
|
|
77
|
-
children: t.children ? this.convertToLayEntryArray(t.children) : []
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
class l extends _ {
|
|
82
|
-
// 实现 useValues 方法
|
|
83
|
-
useValues() {
|
|
84
|
-
return new Promise((r, t) => {
|
|
85
|
-
n.findPage(this.query).then(({ data: o }) => {
|
|
86
|
-
const E = o.results;
|
|
87
|
-
this.values.length = 0, this.values.push(
|
|
88
|
-
...E.map(
|
|
89
|
-
(c) => ({
|
|
90
|
-
key: c.orgId,
|
|
91
|
-
value: c.orgName
|
|
92
|
-
})
|
|
93
|
-
)
|
|
94
|
-
), r(this.values);
|
|
95
|
-
}).catch(t);
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
class a {
|
|
100
|
-
}
|
|
101
|
-
// 公司管理状态
|
|
102
|
-
s(a, "hasStatusDict", new O(e.HAS_STATUS, {})), // 公司发票类型
|
|
103
|
-
s(a, "invoiceTypeDictEnum", new u(
|
|
104
|
-
e.MODULE_ITSMSYS,
|
|
105
|
-
e.ENUM_INVOICE_TYPE
|
|
106
|
-
)), // 厅局管理父厅级单位
|
|
107
|
-
s(a, "parentIdBizDict", new M({
|
|
108
|
-
orgType: e.orgType.hall
|
|
109
|
-
})), // 管理人员工作状态
|
|
110
|
-
s(a, "jobStatusDictEnum", new u(
|
|
111
|
-
e.MODULE_ITSMSYS,
|
|
112
|
-
e.ENUM_JOB_ATATUS
|
|
113
|
-
)), // 运维人员工作模式
|
|
114
|
-
s(a, "engineeJobModeDictEnum", new u(
|
|
115
|
-
e.MODULE_ITSMSYS,
|
|
116
|
-
e.ENUM_ENGINEE_JOB_MODE
|
|
117
|
-
)), // 性别
|
|
118
|
-
s(a, "genderDict", new u(
|
|
119
|
-
e.MODULE_RBAC,
|
|
120
|
-
e.ENUM_GENDER
|
|
121
|
-
)), // 运维人员工程师类型
|
|
122
|
-
s(a, "engineeTypeDictEnum", new u(
|
|
123
|
-
e.MODULE_ITSMSYS,
|
|
124
|
-
e.ENUM_ENGINEE_TYPE
|
|
125
|
-
)), // 公司人员选择公司名称
|
|
126
|
-
s(a, "sysOrgBizDict", new l({
|
|
127
|
-
orgType: e.orgType.cloud
|
|
128
|
-
})), // 外协运维人员选择公司名称
|
|
129
|
-
s(a, "sysOutBizDict", new l({
|
|
130
|
-
orgType: e.orgType.outsource
|
|
131
|
-
}));
|
|
132
|
-
export {
|
|
133
|
-
e as C,
|
|
134
|
-
a as D
|
|
135
|
-
};
|