xyvcard-itsmsys 0.0.18 → 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-C1zg8B0y.mjs → edit-BrHOGUbU.mjs} +1 -1
- package/dist/{edit-Cs3KIwaz.mjs → edit-CNEVornb.mjs} +100 -100
- package/dist/{edit-CxRGbAP_.mjs → edit-COKceKzl.mjs} +87 -87
- package/dist/{edit-DLN1WFrt.mjs → edit-Czi-Vkbf.mjs} +1 -1
- package/dist/{edit-CNFS8ehW.mjs → edit-DYqAdRsK.mjs} +99 -99
- package/dist/{edit-DlEW6lB8.mjs → edit-DybO5r3p.mjs} +1 -1
- package/dist/{edit-Dmxyf_Gp.mjs → edit-_QJnKCdq.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-jsZCbrsm.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
- package/dist/{edit.vue_vue_type_script_setup_true_lang-MQ4ZtR6S.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +172 -173
- package/dist/{edit.vue_vue_type_script_setup_true_lang-eMXMvSnV.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BKQkhngP.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
- package/dist/{import-upload-BM5kcXdg.mjs → import-upload-BvY7RZa-.mjs} +2 -2
- package/dist/{import-upload-BvBtwEbI.mjs → import-upload-DBk1lPqR.mjs} +5 -5
- package/dist/{index-CdQGs3Vu.mjs → index-BHcHN6PY.mjs} +3 -3
- package/dist/{index-Bxg8G8aA.mjs → index-Cow_4AlE.mjs} +3 -3
- package/dist/{index-D2e-NU3E.mjs → index-CuBZptA_.mjs} +1 -1
- package/dist/{index-nhzVBt2y.mjs → index-D__UxnZG.mjs} +13 -15
- package/dist/{index-Dsf1qOUx.mjs → index-IpHv0Vzi.mjs} +1 -1
- package/dist/{index-BzqZLipq.mjs → index-cpyRUYdS.mjs} +57 -55
- package/dist/{index-EhejgmO6.mjs → index-dIcRC4jE.mjs} +7 -13
- package/dist/{index-D2BUGsak.mjs → index-p50UkFiJ.mjs} +3 -3
- package/dist/index.mjs +1021 -936
- package/dist/{index.vue_vue_type_script_setup_true_lang-DhcyCvVN.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
- package/dist/{info-rnc-sgQt.mjs → info-BUKhtcuu.mjs} +2 -2
- package/dist/{info-DBObKyIh.mjs → info-Bn5mhJtq.mjs} +2 -2
- package/dist/{info-BZ7IZet8.mjs → info-Dx5fzSIP.mjs} +2 -2
- package/dist/{info-B2d8xPwW.mjs → info-EodyqiPm.mjs} +2 -2
- package/dist/{info-CoizfoOq.mjs → info-G1z1-aeX.mjs} +2 -2
- package/dist/{info-CCfX-q4c.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 +8 -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-CjeTCQBx.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
|
};
|
|
@@ -2,11 +2,11 @@ import { defineComponent as re, ref as U, reactive as B, resolveComponent as i,
|
|
|
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 N } from "./index-
|
|
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) {
|
|
@@ -2,11 +2,11 @@ import { defineComponent as re, ref as S, reactive as M, resolveComponent as i,
|
|
|
2
2
|
import { useTableHooks as ie } from "jmash-core";
|
|
3
3
|
import { useI18n as de } from "vue-i18n";
|
|
4
4
|
import { useRouter as pe } from "vue-router";
|
|
5
|
-
import { D as p, C as D } from "./index-
|
|
5
|
+
import { D as p, C as D } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { sysUserExtApi as z } from "./index.mjs";
|
|
7
|
-
import { _ as me } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as me } from "./edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs";
|
|
8
8
|
import { F as ye } from "./FileSaver.min-BeKvLuyk.mjs";
|
|
9
|
-
import be from "./import-upload-
|
|
9
|
+
import be from "./import-upload-BvY7RZa-.mjs";
|
|
10
10
|
const ge = { class: "app-container" }, fe = { class: "search-container" }, ce = { key: 0 }, ve = ["onClick"], we = ["onClick"], _e = ["onClick"], je = /* @__PURE__ */ re({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(Ce) {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as W, ref as $, resolveComponent as s, resolveDirective
|
|
|
2
2
|
import { useTableHooks as Z } from "jmash-core";
|
|
3
3
|
import { useI18n as x } from "vue-i18n";
|
|
4
4
|
import { useRouter as ee } from "vue-router";
|
|
5
|
-
import { C as k, D as te } from "./index-
|
|
5
|
+
import { C as k, D as te } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { sysOrgApi as oe } from "./index.mjs";
|
|
7
7
|
const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], be = /* @__PURE__ */ W({
|
|
8
8
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as te, ref as N, resolveComponent as s, resolveDirective as ne, openBlock as y, createElementBlock as k, createElementVNode as R, createVNode as n, withCtx as l, withKeys as I, unref as _, createTextVNode as c, toDisplayString as d, withDirectives as
|
|
1
|
+
import { defineComponent as te, ref as N, resolveComponent as s, resolveDirective as ne, openBlock as y, createElementBlock as k, createElementVNode as R, createVNode as n, withCtx as l, withKeys as I, unref as _, createTextVNode as c, toDisplayString as d, withDirectives as h, createBlock as G, isRef as le } from "vue";
|
|
2
2
|
import { useTableHooks as se } from "jmash-core";
|
|
3
3
|
import { ElMessageBox as j, ElMessage as T } from "element-plus";
|
|
4
4
|
import { useI18n as ae } from "vue-i18n";
|
|
5
|
-
import { C as re, D as ie } from "./index-
|
|
5
|
+
import { C as re, D as ie } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { sysOrgApi as u } from "./index.mjs";
|
|
7
7
|
import { useRouter as me } from "vue-router";
|
|
8
8
|
const ce = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], fe = ["onClick"], ke = /* @__PURE__ */ te({
|
|
@@ -112,7 +112,6 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
112
112
|
type: "success"
|
|
113
113
|
}), r.findList());
|
|
114
114
|
});
|
|
115
|
-
}).catch(() => {
|
|
116
115
|
});
|
|
117
116
|
}
|
|
118
117
|
function A() {
|
|
@@ -138,7 +137,6 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
138
137
|
type: "success"
|
|
139
138
|
}), r.findList(), (f = P.value) == null || f.clearSelection());
|
|
140
139
|
});
|
|
141
|
-
}).catch(() => {
|
|
142
140
|
});
|
|
143
141
|
}
|
|
144
142
|
function w() {
|
|
@@ -148,7 +146,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
148
146
|
V.value.resetFields(), w();
|
|
149
147
|
}
|
|
150
148
|
return r.findList(), (e, t) => {
|
|
151
|
-
const f = s("el-input"), m = s("el-form-item"), v = s("el-col"), Q = s("jmash-select"), C = s("el-button"), D = s("el-row"), x = s("el-form"), J = s("jmash-column-select"), W = s("jmash-mobileIns-component"), X = s("Bottom"), E = s("el-icon"), Y = s("Top"), Z = s("el-switch"), ee = s("jmash-table"), oe = s("el-card"),
|
|
149
|
+
const f = s("el-input"), m = s("el-form-item"), v = s("el-col"), Q = s("jmash-select"), C = s("el-button"), D = s("el-row"), x = s("el-form"), J = s("jmash-column-select"), W = s("jmash-mobileIns-component"), X = s("Bottom"), E = s("el-icon"), Y = s("Top"), Z = s("el-switch"), ee = s("jmash-table"), oe = s("el-card"), g = ne("hasPerm");
|
|
152
150
|
return y(), k("div", ce, [
|
|
153
151
|
R("div", de, [
|
|
154
152
|
n(x, {
|
|
@@ -246,7 +244,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
246
244
|
default: l(() => [
|
|
247
245
|
n(v, { span: 17 }, {
|
|
248
246
|
default: l(() => [
|
|
249
|
-
|
|
247
|
+
h((y(), G(C, {
|
|
250
248
|
type: "primary",
|
|
251
249
|
onClick: L
|
|
252
250
|
}, {
|
|
@@ -255,9 +253,9 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
255
253
|
]),
|
|
256
254
|
_: 1
|
|
257
255
|
})), [
|
|
258
|
-
[
|
|
256
|
+
[g, ["itsmsys:sys_org_gov:add"]]
|
|
259
257
|
]),
|
|
260
|
-
|
|
258
|
+
h((y(), G(C, {
|
|
261
259
|
type: "primary",
|
|
262
260
|
onClick: t[6] || (t[6] = (o) => A())
|
|
263
261
|
}, {
|
|
@@ -266,7 +264,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
266
264
|
]),
|
|
267
265
|
_: 1
|
|
268
266
|
})), [
|
|
269
|
-
[
|
|
267
|
+
[g, ["itsmsys:sys_org_gov:delete"]]
|
|
270
268
|
])
|
|
271
269
|
]),
|
|
272
270
|
_: 1
|
|
@@ -335,29 +333,29 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
335
333
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
336
334
|
]),
|
|
337
335
|
operation: l((o) => [
|
|
338
|
-
|
|
336
|
+
h((y(), k("span", {
|
|
339
337
|
class: "el-button-color",
|
|
340
338
|
onClick: (i) => K(o.data.row)
|
|
341
339
|
}, [
|
|
342
340
|
c(d(e.$t("common.edit")), 1)
|
|
343
341
|
], 8, ue)), [
|
|
344
|
-
[
|
|
342
|
+
[g, ["itsmsys:sys_org_gov:update"]]
|
|
345
343
|
]),
|
|
346
|
-
|
|
344
|
+
h((y(), k("span", {
|
|
347
345
|
class: "el-button-color dropdown-left",
|
|
348
346
|
onClick: (i) => z(o.data.row)
|
|
349
347
|
}, [
|
|
350
348
|
c(d(e.$t("common.delete")), 1)
|
|
351
349
|
], 8, pe)), [
|
|
352
|
-
[
|
|
350
|
+
[g, ["itsmsys:sys_org_gov:delete"]]
|
|
353
351
|
]),
|
|
354
|
-
|
|
352
|
+
h((y(), k("span", {
|
|
355
353
|
class: "el-button-color dropdown-left",
|
|
356
354
|
onClick: (i) => O(o.data.row)
|
|
357
355
|
}, [
|
|
358
356
|
c(d(e.$t("common.view")), 1)
|
|
359
357
|
], 8, fe)), [
|
|
360
|
-
[
|
|
358
|
+
[g, ["itsmsys:sys_org_gov:view"]]
|
|
361
359
|
])
|
|
362
360
|
]),
|
|
363
361
|
_: 1
|