xyvcard-itsmsys 0.0.6 → 0.0.7
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/{edit-DG_Iw1-J.mjs → edit-B2gR_6I8.mjs} +1 -1
- package/dist/{edit-BNe0hNw4.mjs → edit-BbJa_Nfr.mjs} +8 -9
- package/dist/{edit-BqPZHwxi.mjs → edit-C42Omp9z.mjs} +1 -1
- package/dist/{edit-CwV1OVfe.mjs → edit-Dfay8i1B.mjs} +1 -1
- package/dist/{edit-RSO388mB.mjs → edit-Dm9CXMA6.mjs} +3 -3
- package/dist/{edit-DdUUCXSa.mjs → edit-Fi1_QjAr.mjs} +1 -1
- package/dist/{edit-CyM6IuLb.mjs → edit-GlkC3kLR.mjs} +28 -29
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs → edit.vue_vue_type_script_setup_true_lang-C26lz_HM.mjs} +5 -5
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs → edit.vue_vue_type_script_setup_true_lang-Cj-FgUgJ.mjs} +39 -39
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs → edit.vue_vue_type_script_setup_true_lang-CoB3CDY2.mjs} +12 -12
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs → edit.vue_vue_type_script_setup_true_lang-r4tQk9wV.mjs} +1 -1
- package/dist/index-B6FMyHxQ.mjs +99 -0
- package/dist/{index-CMBtB1kH.mjs → index-BHLCtDlx.mjs} +3 -3
- package/dist/{index-DirPUdCN.mjs → index-BV8SsW14.mjs} +1 -1
- package/dist/{index-w2SWNZRB.mjs → index-CSMVzE7h.mjs} +3 -3
- package/dist/{index-CNGaGeE7.mjs → index-Ce07ACPH.mjs} +3 -3
- package/dist/{index-CI8Z4rNf.mjs → index-DTjJvEfz.mjs} +4 -4
- package/dist/{index-DxILUznW.mjs → index-N57BEkTO.mjs} +6 -6
- package/dist/{index-NugT80P7.mjs → index-Up4lAJrU.mjs} +2 -2
- package/dist/index.mjs +1082 -1041
- package/dist/{index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs → index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs} +2 -2
- package/dist/{info-C0OHjgoS.mjs → info-BVrtvDle.mjs} +1 -1
- package/dist/{info-Dilg-bji.mjs → info-Bc3bycK1.mjs} +1 -1
- package/dist/{info-DvYUiSRY.mjs → info-Bz6yHt3N.mjs} +1 -1
- package/dist/{info-CXx2899k.mjs → info-D-ykgDrJ.mjs} +1 -1
- package/dist/{info-BFZTqoY3.mjs → info-D7YAHptq.mjs} +1 -1
- package/dist/{info-DReeRuaA.mjs → info-DO3PSaAZ.mjs} +1 -1
- package/dts/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-CQ5Bo5a2.mjs +0 -135
|
@@ -3,10 +3,9 @@ import { defineComponent as S, ref as f, reactive as O, resolveComponent as i, o
|
|
|
3
3
|
import { ElMessage as w } from "element-plus";
|
|
4
4
|
import { useI18n as F } from "vue-i18n";
|
|
5
5
|
import { useRoute as G } from "vue-router";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
6
|
+
import { Constant as j, sysOrgApi as y } from "./index.mjs";
|
|
7
|
+
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs";
|
|
8
|
+
const z = { class: "app-container" }, ee = /* @__PURE__ */ S({
|
|
10
9
|
__name: "edit",
|
|
11
10
|
setup(H) {
|
|
12
11
|
const { t: m } = F(), p = G(), _ = f(), c = f("first"), g = f("");
|
|
@@ -93,11 +92,11 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
93
92
|
}));
|
|
94
93
|
};
|
|
95
94
|
return (t, a) => {
|
|
96
|
-
const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = K, T = i("el-row"),
|
|
95
|
+
const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = K, T = i("el-row"), U = i("el-button"), k = i("el-form"), V = i("el-tab-pane"), C = i("el-tabs"), I = i("el-card");
|
|
97
96
|
return b(), B("div", z, [
|
|
98
97
|
e(I, { shadow: "never" }, {
|
|
99
98
|
default: l(() => [
|
|
100
|
-
e(
|
|
99
|
+
e(C, {
|
|
101
100
|
modelValue: c.value,
|
|
102
101
|
"onUpdate:modelValue": a[8] || (a[8] = (n) => c.value = n),
|
|
103
102
|
onTabClick: L
|
|
@@ -108,7 +107,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
108
107
|
name: "first"
|
|
109
108
|
}, {
|
|
110
109
|
default: l(() => [
|
|
111
|
-
e(
|
|
110
|
+
e(k, {
|
|
112
111
|
ref_key: "sysOrgFormRef",
|
|
113
112
|
ref: _,
|
|
114
113
|
model: r(o),
|
|
@@ -300,7 +299,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
300
299
|
}),
|
|
301
300
|
e(d, null, {
|
|
302
301
|
default: l(() => [
|
|
303
|
-
e(
|
|
302
|
+
e(U, {
|
|
304
303
|
type: "primary",
|
|
305
304
|
onClick: M
|
|
306
305
|
}, {
|
|
@@ -339,5 +338,5 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
339
338
|
}
|
|
340
339
|
});
|
|
341
340
|
export {
|
|
342
|
-
|
|
341
|
+
ee as default
|
|
343
342
|
};
|
|
@@ -3,9 +3,9 @@ import { defineComponent as S, ref as f, reactive as V, resolveComponent as i, o
|
|
|
3
3
|
import { ElMessage as h } from "element-plus";
|
|
4
4
|
import { useI18n as z } from "vue-i18n";
|
|
5
5
|
import { useRoute as O } from "vue-router";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { Constant as j, sysOrgApi as y } from "./index.mjs";
|
|
7
|
+
import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs";
|
|
8
|
+
import { D as w } from "./index-B6FMyHxQ.mjs";
|
|
9
9
|
const J = { class: "app-container" }, le = /* @__PURE__ */ S({
|
|
10
10
|
__name: "edit",
|
|
11
11
|
setup(Q) {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { _ as K } from "./index-BRupqW34.mjs";
|
|
2
|
-
import { defineComponent as S, ref as f, reactive as O, resolveComponent as i, openBlock as b, createElementBlock as B, createVNode as e, withCtx as l, unref as
|
|
2
|
+
import { defineComponent as S, ref as f, reactive as O, resolveComponent as i, openBlock as b, createElementBlock as B, createVNode as e, withCtx as l, unref as n, createTextVNode as E, toDisplayString as A, createBlock as q, createCommentVNode as v } from "vue";
|
|
3
3
|
import { ElMessage as w } from "element-plus";
|
|
4
4
|
import { useI18n as F } from "vue-i18n";
|
|
5
5
|
import { useRoute as G } from "vue-router";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
6
|
+
import { Constant as j, sysOrgApi as y } from "./index.mjs";
|
|
7
|
+
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs";
|
|
8
|
+
const z = { class: "app-container" }, ee = /* @__PURE__ */ S({
|
|
10
9
|
__name: "edit",
|
|
11
10
|
setup(H) {
|
|
12
11
|
const { t: m } = F(), g = G(), _ = f(), c = f("first"), p = f("");
|
|
@@ -93,13 +92,13 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
93
92
|
}));
|
|
94
93
|
};
|
|
95
94
|
return (t, a) => {
|
|
96
|
-
const s = i("el-input"), u = i("el-form-item"), d = i("el-col"), N = K, T = i("el-row"),
|
|
95
|
+
const s = i("el-input"), u = i("el-form-item"), d = i("el-col"), N = K, T = i("el-row"), U = i("el-button"), k = i("el-form"), V = i("el-tab-pane"), C = i("el-tabs"), I = i("el-card");
|
|
97
96
|
return b(), B("div", z, [
|
|
98
97
|
e(I, { shadow: "never" }, {
|
|
99
98
|
default: l(() => [
|
|
100
|
-
e(
|
|
99
|
+
e(C, {
|
|
101
100
|
modelValue: c.value,
|
|
102
|
-
"onUpdate:modelValue": a[8] || (a[8] = (
|
|
101
|
+
"onUpdate:modelValue": a[8] || (a[8] = (r) => c.value = r),
|
|
103
102
|
onTabClick: L
|
|
104
103
|
}, {
|
|
105
104
|
default: l(() => [
|
|
@@ -108,10 +107,10 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
108
107
|
name: "first"
|
|
109
108
|
}, {
|
|
110
109
|
default: l(() => [
|
|
111
|
-
e(
|
|
110
|
+
e(k, {
|
|
112
111
|
ref_key: "sysOutFormRef",
|
|
113
112
|
ref: _,
|
|
114
|
-
model:
|
|
113
|
+
model: n(o),
|
|
115
114
|
"label-width": "135px",
|
|
116
115
|
rules: h
|
|
117
116
|
}, {
|
|
@@ -126,8 +125,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
126
125
|
}, {
|
|
127
126
|
default: l(() => [
|
|
128
127
|
e(s, {
|
|
129
|
-
modelValue:
|
|
130
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
128
|
+
modelValue: n(o).orgName,
|
|
129
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => n(o).orgName = r),
|
|
131
130
|
placeholder: t.$t("sysOut.orgNameRequired"),
|
|
132
131
|
maxlength: "50",
|
|
133
132
|
"show-word-limit": "",
|
|
@@ -147,8 +146,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
147
146
|
}, {
|
|
148
147
|
default: l(() => [
|
|
149
148
|
e(s, {
|
|
150
|
-
modelValue:
|
|
151
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
149
|
+
modelValue: n(o).contactPerson,
|
|
150
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => n(o).contactPerson = r),
|
|
152
151
|
placeholder: t.$t("sysOut.contactPersonRequired"),
|
|
153
152
|
maxlength: "20",
|
|
154
153
|
"show-word-limit": "",
|
|
@@ -168,8 +167,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
168
167
|
}, {
|
|
169
168
|
default: l(() => [
|
|
170
169
|
e(s, {
|
|
171
|
-
modelValue:
|
|
172
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
170
|
+
modelValue: n(o).contactPersonPosi,
|
|
171
|
+
"onUpdate:modelValue": a[2] || (a[2] = (r) => n(o).contactPersonPosi = r),
|
|
173
172
|
placeholder: t.$t("sysOut.contactPersonPosiRequired"),
|
|
174
173
|
maxlength: "30",
|
|
175
174
|
"show-word-limit": "",
|
|
@@ -189,8 +188,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
189
188
|
}, {
|
|
190
189
|
default: l(() => [
|
|
191
190
|
e(s, {
|
|
192
|
-
modelValue:
|
|
193
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
191
|
+
modelValue: n(o).contactPersonTel,
|
|
192
|
+
"onUpdate:modelValue": a[3] || (a[3] = (r) => n(o).contactPersonTel = r),
|
|
194
193
|
placeholder: t.$t("sysOut.contactPersonTels"),
|
|
195
194
|
maxlength: "15",
|
|
196
195
|
"show-word-limit": "",
|
|
@@ -210,8 +209,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
210
209
|
}, {
|
|
211
210
|
default: l(() => [
|
|
212
211
|
e(s, {
|
|
213
|
-
modelValue:
|
|
214
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
212
|
+
modelValue: n(o).contactPersonMobile,
|
|
213
|
+
"onUpdate:modelValue": a[4] || (a[4] = (r) => n(o).contactPersonMobile = r),
|
|
215
214
|
placeholder: t.$t("sysOut.contactPersonMobileRequired"),
|
|
216
215
|
maxlength: "11",
|
|
217
216
|
"show-word-limit": "",
|
|
@@ -231,8 +230,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
231
230
|
}, {
|
|
232
231
|
default: l(() => [
|
|
233
232
|
e(s, {
|
|
234
|
-
modelValue:
|
|
235
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
233
|
+
modelValue: n(o).address,
|
|
234
|
+
"onUpdate:modelValue": a[5] || (a[5] = (r) => n(o).address = r),
|
|
236
235
|
placeholder: t.$t("sysOut.addressRequired"),
|
|
237
236
|
maxlength: "120",
|
|
238
237
|
"show-word-limit": "",
|
|
@@ -249,7 +248,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
249
248
|
e(u, null, {
|
|
250
249
|
default: l(() => [
|
|
251
250
|
e(N, {
|
|
252
|
-
address:
|
|
251
|
+
address: n(o).address,
|
|
253
252
|
onGetLatLng: $,
|
|
254
253
|
onGetAddress: R
|
|
255
254
|
}, null, 8, ["address"])
|
|
@@ -267,8 +266,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
267
266
|
}, {
|
|
268
267
|
default: l(() => [
|
|
269
268
|
e(s, {
|
|
270
|
-
modelValue:
|
|
271
|
-
"onUpdate:modelValue": a[6] || (a[6] = (
|
|
269
|
+
modelValue: n(o).geoLongitude,
|
|
270
|
+
"onUpdate:modelValue": a[6] || (a[6] = (r) => n(o).geoLongitude = r),
|
|
272
271
|
clearable: ""
|
|
273
272
|
}, null, 8, ["modelValue"])
|
|
274
273
|
]),
|
|
@@ -285,8 +284,8 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
285
284
|
}, {
|
|
286
285
|
default: l(() => [
|
|
287
286
|
e(s, {
|
|
288
|
-
modelValue:
|
|
289
|
-
"onUpdate:modelValue": a[7] || (a[7] = (
|
|
287
|
+
modelValue: n(o).geoLatitude,
|
|
288
|
+
"onUpdate:modelValue": a[7] || (a[7] = (r) => n(o).geoLatitude = r),
|
|
290
289
|
clearable: ""
|
|
291
290
|
}, null, 8, ["modelValue"])
|
|
292
291
|
]),
|
|
@@ -300,7 +299,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
300
299
|
}),
|
|
301
300
|
e(u, null, {
|
|
302
301
|
default: l(() => [
|
|
303
|
-
e(
|
|
302
|
+
e(U, {
|
|
304
303
|
type: "primary",
|
|
305
304
|
onClick: M
|
|
306
305
|
}, {
|
|
@@ -339,5 +338,5 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
|
|
|
339
338
|
}
|
|
340
339
|
});
|
|
341
340
|
export {
|
|
342
|
-
|
|
341
|
+
ee as default
|
|
343
342
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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
2
|
import { ElMessage as I } from "element-plus";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
|
-
import { sysUserExtApi as w } from "./index.mjs";
|
|
5
|
-
import { g as
|
|
6
|
-
import { D as y
|
|
4
|
+
import { Constant as Q, sysUserExtApi as w } from "./index.mjs";
|
|
5
|
+
import { g as W } from "./common-B2PCBCJ2.mjs";
|
|
6
|
+
import { D as y } from "./index-B6FMyHxQ.mjs";
|
|
7
7
|
const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ M({
|
|
@@ -23,7 +23,7 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
23
23
|
let o = S({
|
|
24
24
|
requestId: Math.random() * 10 + "",
|
|
25
25
|
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty",
|
|
26
|
-
userType:
|
|
26
|
+
userType: Q.userType.companyOps
|
|
27
27
|
});
|
|
28
28
|
const k = (s, a, d) => {
|
|
29
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();
|
|
@@ -119,7 +119,7 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
119
119
|
}));
|
|
120
120
|
};
|
|
121
121
|
function J() {
|
|
122
|
-
o.userPassword =
|
|
122
|
+
o.userPassword = W();
|
|
123
123
|
}
|
|
124
124
|
function N() {
|
|
125
125
|
m.value && (m.value = !1);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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
2
|
import { ElMessage as I } from "element-plus";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
|
-
import { sysUserExtApi as w } from "./index.mjs";
|
|
5
|
-
import { g as
|
|
6
|
-
import { D as f
|
|
4
|
+
import { Constant as Q, sysUserExtApi as w } from "./index.mjs";
|
|
5
|
+
import { g as W } from "./common-B2PCBCJ2.mjs";
|
|
6
|
+
import { D as f } from "./index-B6FMyHxQ.mjs";
|
|
7
7
|
const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ M({
|
|
@@ -20,13 +20,13 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
20
20
|
setup(q, { emit: T }) {
|
|
21
21
|
const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ = T, y = V(!1);
|
|
22
22
|
f.sysOutBizDict.useValues();
|
|
23
|
-
let
|
|
23
|
+
let a = S({
|
|
24
24
|
requestId: Math.random() * 10 + "",
|
|
25
25
|
updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty",
|
|
26
|
-
userType:
|
|
26
|
+
userType: Q.userType.outsourceOps
|
|
27
27
|
});
|
|
28
|
-
const k = (s,
|
|
29
|
-
|
|
28
|
+
const k = (s, o, d) => {
|
|
29
|
+
o === void 0 && d(new Error(n("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(o) || d(new Error(n("sysUserOps.mobilePhoneRequireds"))), d();
|
|
30
30
|
}, C = S({
|
|
31
31
|
realName: [
|
|
32
32
|
{
|
|
@@ -100,17 +100,17 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
100
100
|
]
|
|
101
101
|
}), _ = q, E = Object.keys(_.entityKey), v = V(E.length >= 1);
|
|
102
102
|
v.value && w.findById(_.entityKey).then(({ data: s }) => {
|
|
103
|
-
Object.assign(
|
|
103
|
+
Object.assign(a, s);
|
|
104
104
|
});
|
|
105
105
|
const D = async () => {
|
|
106
106
|
var s;
|
|
107
|
-
await ((s = R.value) == null ? void 0 : s.validate((
|
|
108
|
-
|
|
107
|
+
await ((s = R.value) == null ? void 0 : s.validate((o) => {
|
|
108
|
+
o && (v.value ? w.update(a).then((d) => {
|
|
109
109
|
console.log(d), d.status === 200 && (I({
|
|
110
110
|
message: n("common.submitSuccess"),
|
|
111
111
|
type: "success"
|
|
112
112
|
}), m.value && (m.value = !1), $("refresh", d.status === 200));
|
|
113
|
-
}) : w.create(
|
|
113
|
+
}) : w.create(a).then((d) => {
|
|
114
114
|
console.log(d), d.status === 200 && (I({
|
|
115
115
|
message: n("common.submitSuccess"),
|
|
116
116
|
type: "success"
|
|
@@ -119,16 +119,16 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
119
119
|
}));
|
|
120
120
|
};
|
|
121
121
|
function J() {
|
|
122
|
-
|
|
122
|
+
a.userPassword = W();
|
|
123
123
|
}
|
|
124
124
|
function N() {
|
|
125
125
|
m.value && (m.value = !1);
|
|
126
126
|
}
|
|
127
|
-
return (s,
|
|
127
|
+
return (s, o) => {
|
|
128
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
129
|
return b(), c(Z, {
|
|
130
130
|
modelValue: m.value,
|
|
131
|
-
"onUpdate:modelValue":
|
|
131
|
+
"onUpdate:modelValue": o[12] || (o[12] = (t) => m.value = t),
|
|
132
132
|
onClose: N
|
|
133
133
|
}, {
|
|
134
134
|
footer: l(() => [
|
|
@@ -154,7 +154,7 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
154
154
|
e(F, {
|
|
155
155
|
ref_key: "sysUserExtFormRef",
|
|
156
156
|
ref: R,
|
|
157
|
-
model: r(
|
|
157
|
+
model: r(a),
|
|
158
158
|
"label-width": "100px",
|
|
159
159
|
rules: C
|
|
160
160
|
}, {
|
|
@@ -169,8 +169,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
169
169
|
}, {
|
|
170
170
|
default: l(() => [
|
|
171
171
|
e(d, {
|
|
172
|
-
modelValue: r(
|
|
173
|
-
"onUpdate:modelValue":
|
|
172
|
+
modelValue: r(a).orgId,
|
|
173
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => r(a).orgId = t),
|
|
174
174
|
placeholder: s.$t("sysUserOps.orgIdRequired"),
|
|
175
175
|
data: r(f).sysOutBizDict.values,
|
|
176
176
|
clearable: "",
|
|
@@ -190,8 +190,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
190
190
|
}, {
|
|
191
191
|
default: l(() => [
|
|
192
192
|
e(g, {
|
|
193
|
-
modelValue: r(
|
|
194
|
-
"onUpdate:modelValue":
|
|
193
|
+
modelValue: r(a).realName,
|
|
194
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => r(a).realName = t),
|
|
195
195
|
placeholder: s.$t("sysUserOps.realNameRequired"),
|
|
196
196
|
maxlength: "8",
|
|
197
197
|
"show-word-limit": "",
|
|
@@ -211,8 +211,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
211
211
|
}, {
|
|
212
212
|
default: l(() => [
|
|
213
213
|
e(z, {
|
|
214
|
-
modelValue: r(
|
|
215
|
-
"onUpdate:modelValue":
|
|
214
|
+
modelValue: r(a).gender,
|
|
215
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => r(a).gender = t),
|
|
216
216
|
clearable: "",
|
|
217
217
|
placeholder: s.$t("sysUserOps.genderRequired"),
|
|
218
218
|
"enum-type": "jmash.protobuf.Gender",
|
|
@@ -232,8 +232,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
232
232
|
}, {
|
|
233
233
|
default: l(() => [
|
|
234
234
|
e(g, {
|
|
235
|
-
modelValue: r(
|
|
236
|
-
"onUpdate:modelValue":
|
|
235
|
+
modelValue: r(a).mobilePhone,
|
|
236
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => r(a).mobilePhone = t),
|
|
237
237
|
placeholder: s.$t("sysUserOps.mobilePhoneRequired"),
|
|
238
238
|
maxlength: "11",
|
|
239
239
|
"show-word-limit": "",
|
|
@@ -253,8 +253,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
253
253
|
}, {
|
|
254
254
|
default: l(() => [
|
|
255
255
|
e(g, {
|
|
256
|
-
modelValue: r(
|
|
257
|
-
"onUpdate:modelValue":
|
|
256
|
+
modelValue: r(a).email,
|
|
257
|
+
"onUpdate:modelValue": o[4] || (o[4] = (t) => r(a).email = t),
|
|
258
258
|
placeholder: s.$t("sysUserOps.emailRequired"),
|
|
259
259
|
maxlength: "30",
|
|
260
260
|
"show-word-limit": "",
|
|
@@ -274,8 +274,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
274
274
|
}, {
|
|
275
275
|
default: l(() => [
|
|
276
276
|
e(g, {
|
|
277
|
-
modelValue: r(
|
|
278
|
-
"onUpdate:modelValue":
|
|
277
|
+
modelValue: r(a).idNo,
|
|
278
|
+
"onUpdate:modelValue": o[5] || (o[5] = (t) => r(a).idNo = t),
|
|
279
279
|
placeholder: s.$t("sysUserOps.idNoRequired"),
|
|
280
280
|
maxlength: "18",
|
|
281
281
|
"show-word-limit": "",
|
|
@@ -295,8 +295,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
295
295
|
}, {
|
|
296
296
|
default: l(() => [
|
|
297
297
|
e(d, {
|
|
298
|
-
modelValue: r(
|
|
299
|
-
"onUpdate:modelValue":
|
|
298
|
+
modelValue: r(a).engineeType,
|
|
299
|
+
"onUpdate:modelValue": o[6] || (o[6] = (t) => r(a).engineeType = t),
|
|
300
300
|
placeholder: s.$t("sysUserOps.engineeTypeRequired"),
|
|
301
301
|
data: r(f).engineeTypeDictEnum.values,
|
|
302
302
|
clearable: "",
|
|
@@ -316,8 +316,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
316
316
|
}, {
|
|
317
317
|
default: l(() => [
|
|
318
318
|
e(d, {
|
|
319
|
-
modelValue: r(
|
|
320
|
-
"onUpdate:modelValue":
|
|
319
|
+
modelValue: r(a).engineeJobMode,
|
|
320
|
+
"onUpdate:modelValue": o[7] || (o[7] = (t) => r(a).engineeJobMode = t),
|
|
321
321
|
placeholder: s.$t("sysUserOps.engineeJobModeRequired"),
|
|
322
322
|
data: r(f).engineeJobModeDictEnum.values,
|
|
323
323
|
clearable: "",
|
|
@@ -337,8 +337,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
337
337
|
}, {
|
|
338
338
|
default: l(() => [
|
|
339
339
|
e(d, {
|
|
340
|
-
modelValue: r(
|
|
341
|
-
"onUpdate:modelValue":
|
|
340
|
+
modelValue: r(a).jobStatus,
|
|
341
|
+
"onUpdate:modelValue": o[8] || (o[8] = (t) => r(a).jobStatus = t),
|
|
342
342
|
placeholder: s.$t("sysUserOps.jobStatusRequired"),
|
|
343
343
|
data: r(f).jobStatusDictEnum.values,
|
|
344
344
|
clearable: "",
|
|
@@ -350,7 +350,7 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
350
350
|
]),
|
|
351
351
|
_: 1
|
|
352
352
|
}),
|
|
353
|
-
r(
|
|
353
|
+
r(a).userId ? L("", !0) : (b(), c(p, {
|
|
354
354
|
key: 0,
|
|
355
355
|
span: 12
|
|
356
356
|
}, {
|
|
@@ -361,8 +361,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
361
361
|
}, {
|
|
362
362
|
default: l(() => [
|
|
363
363
|
e(g, {
|
|
364
|
-
modelValue: r(
|
|
365
|
-
"onUpdate:modelValue":
|
|
364
|
+
modelValue: r(a).userPassword,
|
|
365
|
+
"onUpdate:modelValue": o[10] || (o[10] = (t) => r(a).userPassword = t),
|
|
366
366
|
clearable: "",
|
|
367
367
|
type: y.value ? "text" : "password",
|
|
368
368
|
placeholder: s.$t("sysUserOps.userPasswordRequired")
|
|
@@ -377,7 +377,7 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
377
377
|
]),
|
|
378
378
|
suffix: l(() => [
|
|
379
379
|
j("span", {
|
|
380
|
-
onClick:
|
|
380
|
+
onClick: o[9] || (o[9] = (t) => y.value = !y.value)
|
|
381
381
|
}, [
|
|
382
382
|
y.value ? (b(), c(P, { key: 0 }, {
|
|
383
383
|
default: l(() => [
|
|
@@ -408,8 +408,8 @@ const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
|
|
|
408
408
|
}, {
|
|
409
409
|
default: l(() => [
|
|
410
410
|
e(g, {
|
|
411
|
-
modelValue: r(
|
|
412
|
-
"onUpdate:modelValue":
|
|
411
|
+
modelValue: r(a).engineeSpecialty,
|
|
412
|
+
"onUpdate:modelValue": o[11] || (o[11] = (t) => r(a).engineeSpecialty = t),
|
|
413
413
|
placeholder: s.$t("sysUserOps.engineeSpecialtyRequired"),
|
|
414
414
|
type: "textarea",
|
|
415
415
|
autosize: { minRows: 2 },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as Y, mergeModels as S, ref as g, useModel as x, reactive as C, resolveComponent as u, openBlock as b, createBlock as c, withCtx as a, createElementVNode as O, createVNode as e, createTextVNode as U, toDisplayString as V, unref as r, createCommentVNode as ee } from "vue";
|
|
2
2
|
import { ElMessage as A } from "element-plus";
|
|
3
3
|
import { useI18n as le } from "vue-i18n";
|
|
4
|
-
import { D as M,
|
|
5
|
-
import { deptApi as
|
|
6
|
-
import {
|
|
4
|
+
import { Constant as D, sysUserExtApi as M, sysOrgApi as ae } from "./index.mjs";
|
|
5
|
+
import { deptApi as se, jobApi as oe } from "jmash-rbac";
|
|
6
|
+
import { D as w } from "./index-B6FMyHxQ.mjs";
|
|
7
7
|
import { g as re } from "./common-B2PCBCJ2.mjs";
|
|
8
8
|
const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ Y({
|
|
9
9
|
__name: "edit",
|
|
@@ -20,7 +20,7 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ Y({
|
|
|
20
20
|
emits: /* @__PURE__ */ S(["refresh"], ["update:modelValue"]),
|
|
21
21
|
setup(_, { emit: E }) {
|
|
22
22
|
const { t: n } = le(), q = g(), I = g(), v = g(), p = x(_, "modelValue"), j = E, y = g(!1);
|
|
23
|
-
|
|
23
|
+
w.sysOrgBizDict.useValues();
|
|
24
24
|
let o = C({
|
|
25
25
|
requestId: Math.random() * 10 + "",
|
|
26
26
|
updateMask: "realName,gender,mobilePhone,email,idNo,jobStatus,deptId,jobId,orgId",
|
|
@@ -100,18 +100,18 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ Y({
|
|
|
100
100
|
}
|
|
101
101
|
]
|
|
102
102
|
}), R = _, T = Object.keys(R.entityKey), $ = g(T.length >= 1);
|
|
103
|
-
$.value &&
|
|
103
|
+
$.value && M.findById(R.entityKey).then(({ data: l }) => {
|
|
104
104
|
Object.assign(o, l);
|
|
105
105
|
});
|
|
106
106
|
const K = async () => {
|
|
107
107
|
var l;
|
|
108
108
|
await ((l = v.value) == null ? void 0 : l.validate((s) => {
|
|
109
|
-
s && ($.value ?
|
|
109
|
+
s && ($.value ? M.update(o).then((d) => {
|
|
110
110
|
console.log(d), d.status === 200 && (A({
|
|
111
111
|
message: n("common.submitSuccess"),
|
|
112
112
|
type: "success"
|
|
113
113
|
}), p.value && (p.value = !1), j("refresh", d.status === 200));
|
|
114
|
-
}) :
|
|
114
|
+
}) : M.create(o).then((d) => {
|
|
115
115
|
console.log(d), d.status === 200 && (A({
|
|
116
116
|
message: n("common.submitSuccess"),
|
|
117
117
|
type: "success"
|
|
@@ -120,15 +120,15 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ Y({
|
|
|
120
120
|
}));
|
|
121
121
|
};
|
|
122
122
|
function F() {
|
|
123
|
-
|
|
123
|
+
se.treelistDept().then(({ data: l }) => {
|
|
124
124
|
q.value = l.results;
|
|
125
|
-
}),
|
|
125
|
+
}), oe.treelistJob().then(({ data: l }) => {
|
|
126
126
|
I.value = l.results;
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
F();
|
|
130
130
|
function Z() {
|
|
131
|
-
|
|
131
|
+
ae.findPage({ orgType: D.orgType.cloud }).then(({ data: { results: l } }) => {
|
|
132
132
|
o.orgId = l[0].orgId;
|
|
133
133
|
});
|
|
134
134
|
}
|
|
@@ -186,7 +186,7 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ Y({
|
|
|
186
186
|
modelValue: r(o).orgId,
|
|
187
187
|
"onUpdate:modelValue": s[0] || (s[0] = (t) => r(o).orgId = t),
|
|
188
188
|
placeholder: l.$t("sysUserMan.orgIdRequired"),
|
|
189
|
-
data: r(
|
|
189
|
+
data: r(w).sysOrgBizDict.values,
|
|
190
190
|
clearable: "",
|
|
191
191
|
class: "w-full",
|
|
192
192
|
onChange: Z
|
|
@@ -361,7 +361,7 @@ const te = { class: "dialog-footer" }, ge = /* @__PURE__ */ Y({
|
|
|
361
361
|
modelValue: r(o).jobStatus,
|
|
362
362
|
"onUpdate:modelValue": s[8] || (s[8] = (t) => r(o).jobStatus = t),
|
|
363
363
|
placeholder: l.$t("sysUserOps.jobStatusRequired"),
|
|
364
|
-
data: r(
|
|
364
|
+
data: r(w).jobStatusDictEnum.values,
|
|
365
365
|
clearable: "",
|
|
366
366
|
class: "w-full"
|
|
367
367
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -3,7 +3,7 @@ import { ElMessage as T } from "element-plus";
|
|
|
3
3
|
import { useI18n as S } from "vue-i18n";
|
|
4
4
|
import { useRoute as A } from "vue-router";
|
|
5
5
|
import { s as b } from "./index-B6vJj_z6.mjs";
|
|
6
|
-
import { D as L } from "./index-
|
|
6
|
+
import { D as L } from "./index-B6FMyHxQ.mjs";
|
|
7
7
|
const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ _({
|