xyvcard-itsmsys 0.0.2 → 0.0.4
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/common-B2PCBCJ2.mjs +13 -0
- package/dist/edit-BhRXuYku.mjs +342 -0
- package/dist/edit-CIm8Y0Be.mjs +4 -0
- package/dist/edit-CWVYUzgf.mjs +369 -0
- package/dist/edit-CkaU_6vk.mjs +342 -0
- package/dist/edit-D82hX9if.mjs +4 -0
- package/dist/edit-DPM0jGQT.mjs +4 -0
- package/dist/edit-DZJU5ZPt.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs +437 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs +439 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs +248 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
- package/dist/index-BRupqW34.mjs +96 -0
- package/dist/index-B_cot8iN.mjs +439 -0
- package/dist/index-BkHGzL0R.mjs +358 -0
- package/dist/index-C6KvLUoL.mjs +4 -0
- package/dist/index-CEUyLrKg.mjs +404 -0
- package/dist/index-ChTssr8-.mjs +123 -0
- package/dist/index-ClU157bA.mjs +324 -0
- package/dist/index-CogdeN09.mjs +331 -0
- package/dist/{index-B-FkgFqA.mjs → index-DOXuGEyW.mjs} +6 -6
- package/dist/index-i7X9N_rj.mjs +341 -0
- package/dist/index.mjs +2903 -70
- package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +180 -0
- package/dist/info-70H0sycC.mjs +187 -0
- package/dist/info-BWgVN2mJ.mjs +176 -0
- package/dist/info-CE-ZnFj5.mjs +179 -0
- package/dist/info-Kf11Ye-N.mjs +187 -0
- package/dist/info-MYJGcyMX.mjs +179 -0
- package/dist/info-Z5LuCRmr.mjs +187 -0
- package/dist/style.css +1 -1
- package/dts/src/api/dict.d.ts +9 -1
- package/dts/src/api/index.d.ts +8 -1
- package/dts/src/api/itsm-sys-org/index.d.ts +2 -0
- package/dts/src/api/itsm-sys-org/types.d.ts +14 -6
- package/dts/src/api/itsm-sys-user-ext/index.d.ts +14 -0
- package/dts/src/api/itsm-sys-user-ext/types.d.ts +91 -0
- package/dts/src/constant.d.ts +11 -0
- package/dts/src/index.d.ts +2 -0
- package/dts/src/lang/itsmsys/zh-cn.d.ts +87 -10
- package/dts/src/router/index.d.ts +8 -1
- package/dts/src/utils/common.d.ts +1 -0
- package/dts/src/utils/momentPlugin.d.ts +5 -0
- package/dts/src/views/itsmsys/itsm-sys-gov/edit.vue.d.ts +1 -21
- package/dts/src/views/itsmsys/itsm-sys-gov/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/{itsm-sys-org/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
- package/dts/src/views/itsmsys/itsm-sys-org-invoice/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-out/edit.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-out/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-out/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +22 -0
- package/dts/src/views/itsmsys/itsm-sys-user-man/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-man/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +22 -0
- package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +22 -0
- package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +2 -0
- package/package.json +3 -3
- package/dist/edit-BKMLirl4.mjs +0 -602
- package/dist/edit-ccGk5679.mjs +0 -610
- package/dist/index-BGwm5W6z.mjs +0 -343
- package/dist/index-CSDhKMEP.mjs +0 -332
- package/dist/info-CSOdbuvm.mjs +0 -192
- package/dist/invoiceEdit-D9zxwIoM.mjs +0 -288
- package/dts/src/api/itsm-sys-gov/index.d.ts +0 -15
- package/dts/src/api/itsm-sys-gov/types.d.ts +0 -87
- package/dts/src/api/itsm-sys-gov-invoice/index.d.ts +0 -13
- package/dts/src/api/itsm-sys-gov-invoice/types.d.ts +0 -48
|
@@ -0,0 +1,439 @@
|
|
|
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 f } from "./index-ChTssr8-.mjs";
|
|
7
|
+
const W = { class: "dialog-footer" }, oe = /* @__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: k }) {
|
|
21
|
+
const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ = k, y = V(!1);
|
|
22
|
+
f.sysOutBizDict.useValues();
|
|
23
|
+
let o = S({
|
|
24
|
+
requestId: Math.random() * 10 + "",
|
|
25
|
+
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty"
|
|
26
|
+
});
|
|
27
|
+
const E = (s, a, d) => {
|
|
28
|
+
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();
|
|
29
|
+
}, T = S({
|
|
30
|
+
realName: [
|
|
31
|
+
{
|
|
32
|
+
required: !0,
|
|
33
|
+
message: n("sysUserOps.realNameRequired"),
|
|
34
|
+
trigger: "blur"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
gender: [
|
|
38
|
+
{
|
|
39
|
+
required: !0,
|
|
40
|
+
message: n("sysUserOps.genderRequired"),
|
|
41
|
+
trigger: "change"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
mobilePhone: [
|
|
45
|
+
{
|
|
46
|
+
required: !0,
|
|
47
|
+
trigger: "blur",
|
|
48
|
+
validator: E
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
email: [
|
|
52
|
+
{
|
|
53
|
+
pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
|
|
54
|
+
message: n("sysUserOps.emailRequireds"),
|
|
55
|
+
trigger: "blur"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
idNo: [
|
|
59
|
+
{
|
|
60
|
+
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)$/,
|
|
61
|
+
message: n("sysUserOps.idNoLengthRequired"),
|
|
62
|
+
trigger: "blur"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
jobStatus: [
|
|
66
|
+
{
|
|
67
|
+
required: !0,
|
|
68
|
+
message: n("sysUserOps.jobStatusRequired"),
|
|
69
|
+
trigger: "change"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
engineeType: [
|
|
73
|
+
{
|
|
74
|
+
required: !0,
|
|
75
|
+
message: n("sysUserOps.engineeTypeRequired"),
|
|
76
|
+
trigger: "change"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
engineeJobMode: [
|
|
80
|
+
{
|
|
81
|
+
required: !0,
|
|
82
|
+
message: n("sysUserOps.engineeJobModeRequired"),
|
|
83
|
+
trigger: "change"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
orgId: [
|
|
87
|
+
{
|
|
88
|
+
required: !0,
|
|
89
|
+
message: n("sysUserOps.orgIdRequired"),
|
|
90
|
+
trigger: "change"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
userPassword: [
|
|
94
|
+
{
|
|
95
|
+
required: !0,
|
|
96
|
+
message: n("sysUserOps.userPasswordRequired"),
|
|
97
|
+
trigger: "blur"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}), _ = q, C = Object.keys(_.entityKey), v = V(C.length >= 1);
|
|
101
|
+
v.value && w.findById(_.entityKey).then(({ data: s }) => {
|
|
102
|
+
Object.assign(o, s);
|
|
103
|
+
});
|
|
104
|
+
const D = async () => {
|
|
105
|
+
var s;
|
|
106
|
+
await ((s = R.value) == null ? void 0 : s.validate((a) => {
|
|
107
|
+
a && (v.value ? w.update(o).then((d) => {
|
|
108
|
+
console.log(d), d.status === 200 && (I({
|
|
109
|
+
message: n("common.submitSuccess"),
|
|
110
|
+
type: "success"
|
|
111
|
+
}), m.value && (m.value = !1), $("refresh", d.status === 200));
|
|
112
|
+
}) : w.create(o).then((d) => {
|
|
113
|
+
console.log(d), d.status === 200 && (I({
|
|
114
|
+
message: n("common.submitSuccess"),
|
|
115
|
+
type: "success"
|
|
116
|
+
}), m.value && (m.value = !1), $("refresh", d.status === 200));
|
|
117
|
+
}));
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
function J() {
|
|
121
|
+
o.userPassword = Q();
|
|
122
|
+
}
|
|
123
|
+
function N() {
|
|
124
|
+
m.value && (m.value = !1);
|
|
125
|
+
}
|
|
126
|
+
return (s, a) => {
|
|
127
|
+
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");
|
|
128
|
+
return b(), c(Z, {
|
|
129
|
+
modelValue: m.value,
|
|
130
|
+
"onUpdate:modelValue": a[12] || (a[12] = (t) => m.value = t),
|
|
131
|
+
onClose: N
|
|
132
|
+
}, {
|
|
133
|
+
footer: l(() => [
|
|
134
|
+
j("div", W, [
|
|
135
|
+
e(U, { onClick: N }, {
|
|
136
|
+
default: l(() => [
|
|
137
|
+
h(O(s.$t("common.cancel")), 1)
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
e(U, {
|
|
142
|
+
type: "primary",
|
|
143
|
+
onClick: D
|
|
144
|
+
}, {
|
|
145
|
+
default: l(() => [
|
|
146
|
+
h(O(s.$t("common.confirm")), 1)
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
})
|
|
150
|
+
])
|
|
151
|
+
]),
|
|
152
|
+
default: l(() => [
|
|
153
|
+
e(F, {
|
|
154
|
+
ref_key: "sysUserExtFormRef",
|
|
155
|
+
ref: R,
|
|
156
|
+
model: r(o),
|
|
157
|
+
"label-width": "100px",
|
|
158
|
+
rules: T
|
|
159
|
+
}, {
|
|
160
|
+
default: l(() => [
|
|
161
|
+
e(K, null, {
|
|
162
|
+
default: l(() => [
|
|
163
|
+
e(p, { span: 12 }, {
|
|
164
|
+
default: l(() => [
|
|
165
|
+
e(u, {
|
|
166
|
+
label: s.$t("sysUserOps.orgId"),
|
|
167
|
+
prop: "orgId"
|
|
168
|
+
}, {
|
|
169
|
+
default: l(() => [
|
|
170
|
+
e(d, {
|
|
171
|
+
modelValue: r(o).orgId,
|
|
172
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => r(o).orgId = t),
|
|
173
|
+
placeholder: s.$t("sysUserOps.orgIdRequired"),
|
|
174
|
+
data: r(f).sysOutBizDict.values,
|
|
175
|
+
clearable: "",
|
|
176
|
+
class: "w-full"
|
|
177
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["label"])
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}),
|
|
184
|
+
e(p, { span: 12 }, {
|
|
185
|
+
default: l(() => [
|
|
186
|
+
e(u, {
|
|
187
|
+
label: s.$t("sysUserOps.realName"),
|
|
188
|
+
prop: "realName"
|
|
189
|
+
}, {
|
|
190
|
+
default: l(() => [
|
|
191
|
+
e(g, {
|
|
192
|
+
modelValue: r(o).realName,
|
|
193
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => r(o).realName = t),
|
|
194
|
+
placeholder: s.$t("sysUserOps.realNameRequired"),
|
|
195
|
+
maxlength: "8",
|
|
196
|
+
"show-word-limit": "",
|
|
197
|
+
clearable: ""
|
|
198
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["label"])
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}),
|
|
205
|
+
e(p, { span: 12 }, {
|
|
206
|
+
default: l(() => [
|
|
207
|
+
e(u, {
|
|
208
|
+
label: s.$t("sysUserOps.gender"),
|
|
209
|
+
prop: "gender"
|
|
210
|
+
}, {
|
|
211
|
+
default: l(() => [
|
|
212
|
+
e(z, {
|
|
213
|
+
modelValue: r(o).gender,
|
|
214
|
+
"onUpdate:modelValue": a[2] || (a[2] = (t) => r(o).gender = t),
|
|
215
|
+
clearable: "",
|
|
216
|
+
placeholder: s.$t("sysUserOps.genderRequired"),
|
|
217
|
+
"enum-type": "jmash.protobuf.Gender",
|
|
218
|
+
class: "w-full"
|
|
219
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 8, ["label"])
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}),
|
|
226
|
+
e(p, { span: 12 }, {
|
|
227
|
+
default: l(() => [
|
|
228
|
+
e(u, {
|
|
229
|
+
label: s.$t("sysUserOps.mobilePhone"),
|
|
230
|
+
prop: "mobilePhone"
|
|
231
|
+
}, {
|
|
232
|
+
default: l(() => [
|
|
233
|
+
e(g, {
|
|
234
|
+
modelValue: r(o).mobilePhone,
|
|
235
|
+
"onUpdate:modelValue": a[3] || (a[3] = (t) => r(o).mobilePhone = t),
|
|
236
|
+
placeholder: s.$t("sysUserOps.mobilePhoneRequired"),
|
|
237
|
+
maxlength: "11",
|
|
238
|
+
"show-word-limit": "",
|
|
239
|
+
clearable: ""
|
|
240
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["label"])
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
}),
|
|
247
|
+
e(p, { span: 12 }, {
|
|
248
|
+
default: l(() => [
|
|
249
|
+
e(u, {
|
|
250
|
+
label: s.$t("sysUserOps.email"),
|
|
251
|
+
prop: "email"
|
|
252
|
+
}, {
|
|
253
|
+
default: l(() => [
|
|
254
|
+
e(g, {
|
|
255
|
+
modelValue: r(o).email,
|
|
256
|
+
"onUpdate:modelValue": a[4] || (a[4] = (t) => r(o).email = t),
|
|
257
|
+
placeholder: s.$t("sysUserOps.emailRequired"),
|
|
258
|
+
maxlength: "30",
|
|
259
|
+
"show-word-limit": "",
|
|
260
|
+
clearable: ""
|
|
261
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
}, 8, ["label"])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
}),
|
|
268
|
+
e(p, { span: 12 }, {
|
|
269
|
+
default: l(() => [
|
|
270
|
+
e(u, {
|
|
271
|
+
label: s.$t("sysUserOps.idNo"),
|
|
272
|
+
prop: "idNo"
|
|
273
|
+
}, {
|
|
274
|
+
default: l(() => [
|
|
275
|
+
e(g, {
|
|
276
|
+
modelValue: r(o).idNo,
|
|
277
|
+
"onUpdate:modelValue": a[5] || (a[5] = (t) => r(o).idNo = t),
|
|
278
|
+
placeholder: s.$t("sysUserOps.idNoRequired"),
|
|
279
|
+
maxlength: "18",
|
|
280
|
+
"show-word-limit": "",
|
|
281
|
+
clearable: ""
|
|
282
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
283
|
+
]),
|
|
284
|
+
_: 1
|
|
285
|
+
}, 8, ["label"])
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
}),
|
|
289
|
+
e(p, { span: 12 }, {
|
|
290
|
+
default: l(() => [
|
|
291
|
+
e(u, {
|
|
292
|
+
label: s.$t("sysUserOps.engineeType"),
|
|
293
|
+
prop: "engineeType"
|
|
294
|
+
}, {
|
|
295
|
+
default: l(() => [
|
|
296
|
+
e(d, {
|
|
297
|
+
modelValue: r(o).engineeType,
|
|
298
|
+
"onUpdate:modelValue": a[6] || (a[6] = (t) => r(o).engineeType = t),
|
|
299
|
+
placeholder: s.$t("sysUserOps.engineeTypeRequired"),
|
|
300
|
+
data: r(f).engineeTypeDictEnum.values,
|
|
301
|
+
clearable: "",
|
|
302
|
+
class: "w-full"
|
|
303
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
}, 8, ["label"])
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}),
|
|
310
|
+
e(p, { span: 12 }, {
|
|
311
|
+
default: l(() => [
|
|
312
|
+
e(u, {
|
|
313
|
+
label: s.$t("sysUserOps.engineeJobMode"),
|
|
314
|
+
prop: "engineeJobMode"
|
|
315
|
+
}, {
|
|
316
|
+
default: l(() => [
|
|
317
|
+
e(d, {
|
|
318
|
+
modelValue: r(o).engineeJobMode,
|
|
319
|
+
"onUpdate:modelValue": a[7] || (a[7] = (t) => r(o).engineeJobMode = t),
|
|
320
|
+
placeholder: s.$t("sysUserOps.engineeJobModeRequired"),
|
|
321
|
+
data: r(f).engineeJobModeDictEnum.values,
|
|
322
|
+
clearable: "",
|
|
323
|
+
class: "w-full"
|
|
324
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
}, 8, ["label"])
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
}),
|
|
331
|
+
e(p, { span: 12 }, {
|
|
332
|
+
default: l(() => [
|
|
333
|
+
e(u, {
|
|
334
|
+
label: s.$t("sysUserOps.jobStatus"),
|
|
335
|
+
prop: "jobStatus"
|
|
336
|
+
}, {
|
|
337
|
+
default: l(() => [
|
|
338
|
+
e(d, {
|
|
339
|
+
modelValue: r(o).jobStatus,
|
|
340
|
+
"onUpdate:modelValue": a[8] || (a[8] = (t) => r(o).jobStatus = t),
|
|
341
|
+
placeholder: s.$t("sysUserOps.jobStatusRequired"),
|
|
342
|
+
data: r(f).jobStatusDictEnum.values,
|
|
343
|
+
clearable: "",
|
|
344
|
+
class: "w-full"
|
|
345
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
}, 8, ["label"])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}),
|
|
352
|
+
r(o).userId ? L("", !0) : (b(), c(p, {
|
|
353
|
+
key: 0,
|
|
354
|
+
span: 12
|
|
355
|
+
}, {
|
|
356
|
+
default: l(() => [
|
|
357
|
+
e(u, {
|
|
358
|
+
label: s.$t("sysUserOps.userPassword"),
|
|
359
|
+
prop: "userPassword"
|
|
360
|
+
}, {
|
|
361
|
+
default: l(() => [
|
|
362
|
+
e(g, {
|
|
363
|
+
modelValue: r(o).userPassword,
|
|
364
|
+
"onUpdate:modelValue": a[10] || (a[10] = (t) => r(o).userPassword = t),
|
|
365
|
+
clearable: "",
|
|
366
|
+
type: y.value ? "text" : "password",
|
|
367
|
+
placeholder: s.$t("sysUserOps.userPasswordRequired")
|
|
368
|
+
}, {
|
|
369
|
+
append: l(() => [
|
|
370
|
+
e(U, { onClick: J }, {
|
|
371
|
+
default: l(() => [
|
|
372
|
+
h(O(s.$t("sysUserOps.randomPwd")), 1)
|
|
373
|
+
]),
|
|
374
|
+
_: 1
|
|
375
|
+
})
|
|
376
|
+
]),
|
|
377
|
+
suffix: l(() => [
|
|
378
|
+
j("span", {
|
|
379
|
+
onClick: a[9] || (a[9] = (t) => y.value = !y.value)
|
|
380
|
+
}, [
|
|
381
|
+
y.value ? (b(), c(P, { key: 0 }, {
|
|
382
|
+
default: l(() => [
|
|
383
|
+
e(B)
|
|
384
|
+
]),
|
|
385
|
+
_: 1
|
|
386
|
+
})) : (b(), c(P, { key: 1 }, {
|
|
387
|
+
default: l(() => [
|
|
388
|
+
e(A)
|
|
389
|
+
]),
|
|
390
|
+
_: 1
|
|
391
|
+
}))
|
|
392
|
+
])
|
|
393
|
+
]),
|
|
394
|
+
_: 1
|
|
395
|
+
}, 8, ["modelValue", "type", "placeholder"])
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
}, 8, ["label"])
|
|
399
|
+
]),
|
|
400
|
+
_: 1
|
|
401
|
+
})),
|
|
402
|
+
e(p, { span: 24 }, {
|
|
403
|
+
default: l(() => [
|
|
404
|
+
e(u, {
|
|
405
|
+
label: s.$t("sysUserOps.engineeSpecialty"),
|
|
406
|
+
prop: "engineeSpecialty"
|
|
407
|
+
}, {
|
|
408
|
+
default: l(() => [
|
|
409
|
+
e(g, {
|
|
410
|
+
modelValue: r(o).engineeSpecialty,
|
|
411
|
+
"onUpdate:modelValue": a[11] || (a[11] = (t) => r(o).engineeSpecialty = t),
|
|
412
|
+
placeholder: s.$t("sysUserOps.engineeSpecialtyRequired"),
|
|
413
|
+
type: "textarea",
|
|
414
|
+
autosize: { minRows: 2 },
|
|
415
|
+
maxlength: "200",
|
|
416
|
+
"show-word-limit": "",
|
|
417
|
+
clearable: ""
|
|
418
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
419
|
+
]),
|
|
420
|
+
_: 1
|
|
421
|
+
}, 8, ["label"])
|
|
422
|
+
]),
|
|
423
|
+
_: 1
|
|
424
|
+
})
|
|
425
|
+
]),
|
|
426
|
+
_: 1
|
|
427
|
+
})
|
|
428
|
+
]),
|
|
429
|
+
_: 1
|
|
430
|
+
}, 8, ["model", "rules"])
|
|
431
|
+
]),
|
|
432
|
+
_: 1
|
|
433
|
+
}, 8, ["modelValue"]);
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
export {
|
|
438
|
+
oe as _
|
|
439
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
};
|