jmash-core 0.0.89 → 0.0.90

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.
@@ -1,6 +1,6 @@
1
1
  import { _ as D } from "./picture-CBRsHLZl.mjs";
2
2
  import { defineComponent as E, ref as V, reactive as p, resolveComponent as c, openBlock as N, createElementBlock as $, Fragment as q, createVNode as e, withCtx as l, createTextVNode as u, toDisplayString as f, createElementVNode as _ } from "vue";
3
- import { p as B, b as I, q as R, v as S, t as z } from "./index-Ds4laZTY.mjs";
3
+ import { p as B, b as I, q as R, v as S, t as z } from "./index-BxK8KQey.mjs";
4
4
  const A = { class: "h-[40px]" }, M = { class: "image-slot" }, P = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
5
5
  __name: "types",
6
6
  setup(T) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-seFUNDDK.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-CAQikZRT.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,146 @@
1
+ import { defineComponent as q, ref as v, toRefs as E, reactive as V, resolveComponent as i, openBlock as O, createBlock as A, unref as t, isRef as D, withCtx as n, createElementVNode as U, createVNode as r, createTextVNode as g, toDisplayString as _ } from "vue";
2
+ import { ElMessage as B } from "element-plus";
3
+ import { y as b, aD as I } from "./index-BxK8KQey.mjs";
4
+ import { useI18n as S } from "vue-i18n";
5
+ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
6
+ __name: "updatePwd",
7
+ props: {
8
+ pwdVisible: {
9
+ type: Boolean,
10
+ default: !1
11
+ }
12
+ },
13
+ emits: ["dialogActionChange"],
14
+ setup(y, { emit: R }) {
15
+ const { t: a } = S(), p = v(), N = y, { pwdVisible: u } = E(N), c = R;
16
+ let l = V({
17
+ encodeOldPwd: "",
18
+ encodeNewPwd: "",
19
+ confirmPwd: ""
20
+ });
21
+ const $ = V({
22
+ encodeOldPwd: [{ required: !0, validator: (o, e, d) => {
23
+ e === "" ? d(new Error(a("password.oldPwdRequired"))) : d();
24
+ }, trigger: "blur" }],
25
+ encodeNewPwd: [{ required: !0, validator: (o, e, d) => {
26
+ e === "" ? d(new Error(a("password.newPwdRequired"))) : /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%?^&*,\._\+(){}])[0-9a-zA-Z!@#$%?^&*,\\._\+(){}]{8,20}$/.test(e) ? d() : d(new Error(a("password.pwdRules")));
27
+ }, trigger: "blur" }],
28
+ confirmPwd: [{ required: !0, validator: (o, e, d) => {
29
+ e === "" ? d(new Error(a("password.confirmPwdRequired"))) : e !== l.encodeNewPwd ? d(new Error(a("password.comparePwd"))) : d();
30
+ }, trigger: "blur" }]
31
+ }), h = async () => {
32
+ var o;
33
+ await ((o = p.value) == null ? void 0 : o.validate((e) => {
34
+ if (e) {
35
+ let d = b(l.encodeOldPwd), w = b(l.encodeNewPwd);
36
+ I(d, w).then((m) => {
37
+ m.status === 200 && (B({
38
+ message: a("password.successResetPwd"),
39
+ type: "success"
40
+ }), c("dialogActionChange", !1));
41
+ });
42
+ } else
43
+ return Promise.reject();
44
+ }));
45
+ };
46
+ function f() {
47
+ var o;
48
+ (o = p.value) == null || o.resetFields(), c("dialogActionChange", !1);
49
+ }
50
+ return (o, e) => {
51
+ const d = i("el-input"), w = i("el-form-item"), m = i("el-form"), P = i("el-button"), C = i("el-dialog");
52
+ return O(), A(C, {
53
+ title: "修改密码",
54
+ modelValue: t(u),
55
+ "onUpdate:modelValue": e[3] || (e[3] = (s) => D(u) ? u.value = s : null),
56
+ width: "500px",
57
+ onClose: f
58
+ }, {
59
+ footer: n(() => [
60
+ U("div", z, [
61
+ r(P, { onClick: f }, {
62
+ default: n(() => [
63
+ g(_(o.$t("common.cancel")), 1)
64
+ ]),
65
+ _: 1
66
+ }),
67
+ r(P, {
68
+ type: "primary",
69
+ onClick: h
70
+ }, {
71
+ default: n(() => [
72
+ g(_(o.$t("common.confirm")), 1)
73
+ ]),
74
+ _: 1
75
+ })
76
+ ])
77
+ ]),
78
+ default: n(() => [
79
+ r(m, {
80
+ ref_key: "pwdRef",
81
+ ref: p,
82
+ model: t(l),
83
+ "label-width": "80px",
84
+ rules: $
85
+ }, {
86
+ default: n(() => [
87
+ r(w, {
88
+ label: o.$t("password.oldPwd"),
89
+ prop: "encodeOldPwd"
90
+ }, {
91
+ default: n(() => [
92
+ r(d, {
93
+ type: "password",
94
+ modelValue: t(l).encodeOldPwd,
95
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => t(l).encodeOldPwd = s),
96
+ placeholder: o.$t("password.oldPwdRequired"),
97
+ "show-password": "",
98
+ clearable: ""
99
+ }, null, 8, ["modelValue", "placeholder"])
100
+ ]),
101
+ _: 1
102
+ }, 8, ["label"]),
103
+ r(w, {
104
+ label: o.$t("password.newPwd"),
105
+ prop: "encodeNewPwd"
106
+ }, {
107
+ default: n(() => [
108
+ r(d, {
109
+ type: "password",
110
+ modelValue: t(l).encodeNewPwd,
111
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => t(l).encodeNewPwd = s),
112
+ placeholder: o.$t("password.newPwdRequired"),
113
+ "show-password": "",
114
+ clearable: ""
115
+ }, null, 8, ["modelValue", "placeholder"])
116
+ ]),
117
+ _: 1
118
+ }, 8, ["label"]),
119
+ r(w, {
120
+ label: o.$t("password.confirmPwd"),
121
+ prop: "confirmPwd"
122
+ }, {
123
+ default: n(() => [
124
+ r(d, {
125
+ type: "password",
126
+ modelValue: t(l).confirmPwd,
127
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => t(l).confirmPwd = s),
128
+ placeholder: o.$t("password.confirmPwdRequired"),
129
+ "show-password": "",
130
+ clearable: ""
131
+ }, null, 8, ["modelValue", "placeholder"])
132
+ ]),
133
+ _: 1
134
+ }, 8, ["label"])
135
+ ]),
136
+ _: 1
137
+ }, 8, ["model", "rules"])
138
+ ]),
139
+ _: 1
140
+ }, 8, ["modelValue"]);
141
+ };
142
+ }
143
+ });
144
+ export {
145
+ G as _
146
+ };
@@ -114,9 +114,6 @@ declare const _default: {
114
114
  successUnbind: string;
115
115
  };
116
116
  sysUser: {
117
- directory: string;
118
- username: string;
119
- password: string;
120
117
  nickname: string;
121
118
  fullName: string;
122
119
  gender: string;
@@ -125,182 +122,21 @@ declare const _default: {
125
122
  email: string;
126
123
  department: string;
127
124
  position: string;
128
- userAuditStatus: string;
129
- role: string;
130
- state: string;
131
- isDeleted: string;
132
- show: string;
133
- hide: string;
134
- randomPwd: string;
135
- type: string;
136
- reviewed: string;
137
- notReviewed: string;
138
- unlock: string;
139
- userTemplate: string;
140
- templateDownload: string;
141
- isDeletedRequired: string;
142
- directoryRequired: string;
143
- usernameRequired: string;
144
- passwordRequired: string;
145
125
  nicknameRequired: string;
146
126
  fullNameRequired: string;
147
127
  genderRequired: string;
148
128
  birthdayRequired: string;
149
- phoneNumberRequired: string;
150
- emailRequired: string;
151
129
  departmentRequired: string;
152
130
  positionRequired: string;
153
- roleRequired: string;
154
- stateRequired: string;
155
- correctPhone: string;
156
- correctEmail: string;
157
- exists: string;
158
- OpenId: string;
159
- UnionId: string;
160
- };
161
- sysRole: {
162
- code: string;
163
- name: string;
164
- parent: string;
165
- module: string;
166
- mutualType: string;
167
- mutualRole: string;
168
- operatePerm: string;
169
- description: string;
170
- sort: string;
171
- checkAll: string;
172
- checkNoAll: string;
173
- codeExist: string;
174
- codeRequired: string;
175
- nameRequired: string;
176
- parentRequired: string;
177
- moduleRequired: string;
178
- mutualTypeRequired: string;
179
- mutualRoleRequired: string;
180
- descriptionRequired: string;
181
131
  };
182
132
  sysMenu: {
183
- module: string;
184
- parent: string;
185
- type: string;
186
- icon: string;
187
- name: string;
188
- target: string;
189
- routeName: string;
190
- resourceCode: string;
191
- url: string;
192
- status: string;
193
- operatePerm: string;
194
- checkAll: string;
195
- checkNoAll: string;
196
- sort: string;
197
- templateDownload: string;
198
- menuTemplate: string;
199
- moduleRequired: string;
200
- parentRequired: string;
201
- nameRequired: string;
202
- routeNameRequired: string;
203
- resourceCodeRequired: string;
204
- urlRequired: string;
205
- statusRequired: string;
206
- targetRequired: string;
207
- urlExist: string;
208
- urlExistSlash: string;
209
133
  selectIcon: string;
210
- searchIcon: string;
211
- };
212
- sysModule: {
213
- code: string;
214
- name: string;
215
- description: string;
216
- sort: string;
217
- codeRequired: string;
218
- nameRequired: string;
219
- descriptionRequired: string;
220
- };
221
- sysOperation: {
222
- code: string;
223
- name: string;
224
- sort: string;
225
- codeRequired: string;
226
- nameRequired: string;
227
- };
228
- sysPerm: {
229
- code: string;
230
- name: string;
231
- codeRequired: string;
232
- nameRequired: string;
233
- };
234
- sysDept: {
235
- code: string;
236
- type: string;
237
- name: string;
238
- parent: string;
239
- description: string;
240
- status: string;
241
- sort: string;
242
- deptTemplate: string;
243
- templateDownload: string;
244
- codeRequired: string;
245
- nameRequired: string;
246
- parentRequired: string;
247
- descriptionRequired: string;
248
- statusRequired: string;
249
- };
250
- sysJob: {
251
- code: string;
252
- name: string;
253
- module: string;
254
- operatePerm: string;
255
- description: string;
256
- sort: string;
257
- checkAll: string;
258
- checkNoAll: string;
259
- codeRequired: string;
260
- nameRequired: string;
261
- moduleRequired: string;
262
- descriptionRequired: string;
263
- };
264
- sysOplog: {
265
- name: string;
266
- level: string;
267
- inform: string;
268
- content: string;
269
- userIp: string;
270
- proxyIp: string;
271
- operator: string;
272
- time: string;
273
- year: string;
274
- choose: string;
275
- nameRequired: string;
276
- levelRequired: string;
277
- informRequired: string;
278
- monthRequired: string;
279
- startTimeReuired: string;
280
- endTimeRequired: string;
281
- yearRequired: string;
282
- confirmDelete: string;
283
- };
284
- sysUserLog: {
285
- name: string;
286
- inform: string;
287
- userIp: string;
288
- proxyIp: string;
289
- deviceId: string;
290
- operator: string;
291
- time: string;
292
- year: string;
293
- choose: string;
294
- nameRequired: string;
295
- monthRequired: string;
296
- startTimeReuired: string;
297
- endTimeRequired: string;
298
- yearRequired: string;
299
- confirmDelete: string;
300
134
  };
301
135
  password: {
136
+ oldPwd: string;
302
137
  newPwd: string;
303
138
  confirmPwd: string;
139
+ oldPwdRequired: string;
304
140
  newPwdRequired: string;
305
141
  confirmPwdRequired: string;
306
142
  pwdRules: string;
@@ -118,9 +118,6 @@ declare const _default: {
118
118
  successUnbind: string;
119
119
  };
120
120
  sysUser: {
121
- username: string;
122
- directory: string;
123
- password: string;
124
121
  nickname: string;
125
122
  fullName: string;
126
123
  gender: string;
@@ -129,203 +126,26 @@ declare const _default: {
129
126
  email: string;
130
127
  department: string;
131
128
  position: string;
132
- userAuditStatus: string;
133
- role: string;
134
- state: string;
135
- isDeleted: string;
136
- show: string;
137
- hide: string;
138
- randomPwd: string;
139
- type: string;
140
- userTemplate: string;
141
- reviewed: string;
142
- notReviewed: string;
143
- unlock: string;
144
- templateDownload: string;
145
- isDeletedRequired: string;
146
- directoryRequired: string;
147
- usernameRequired: string;
148
- passwordRequired: string;
149
129
  nicknameRequired: string;
150
130
  fullNameRequired: string;
151
131
  genderRequired: string;
152
132
  birthdayRequired: string;
153
- phoneNumberRequired: string;
154
- emailRequired: string;
155
133
  departmentRequired: string;
156
134
  positionRequired: string;
157
- roleRequired: string;
158
- stateRequired: string;
159
- correctPhone: string;
160
- correctEmail: string;
161
- exists: string;
162
- OpenId: string;
163
- UnionId: string;
164
- };
165
- sysRole: {
166
- code: string;
167
- name: string;
168
- parent: string;
169
- module: string;
170
- mutualType: string;
171
- mutualRole: string;
172
- operatePerm: string;
173
- description: string;
174
- sort: string;
175
- checkAll: string;
176
- checkNoAll: string;
177
- codeExist: string;
178
- codeRequired: string;
179
- nameRequired: string;
180
- parentRequired: string;
181
- moduleRequired: string;
182
- mutualTypeRequired: string;
183
- mutualRoleRequired: string;
184
- descriptionRequired: string;
185
135
  };
186
136
  sysMenu: {
187
- module: string;
188
- parent: string;
189
- type: string;
190
- icon: string;
191
- name: string;
192
- target: string;
193
- routeName: string;
194
- resourceCode: string;
195
- url: string;
196
- status: string;
197
- operatePerm: string;
198
- sort: string;
199
- checkAll: string;
200
- checkNoAll: string;
201
- templateDownload: string;
202
- menuTemplate: string;
203
- moduleRequired: string;
204
- parentRequired: string;
205
- nameRequired: string;
206
- routeNameRequired: string;
207
- resourceCodeRequired: string;
208
- urlRequired: string;
209
- urlExistSlash: string;
210
- statusRequired: string;
211
- targetRequired: string;
212
- urlExist: string;
213
137
  selectIcon: string;
214
- searchIcon: string;
215
- };
216
- sysModule: {
217
- code: string;
218
- name: string;
219
- description: string;
220
- sort: string;
221
- codeRequired: string;
222
- nameRequired: string;
223
- descriptionRequired: string;
224
- };
225
- sysOperation: {
226
- code: string;
227
- name: string;
228
- sort: string;
229
- codeRequired: string;
230
- nameRequired: string;
231
- };
232
- sysPerm: {
233
- code: string;
234
- name: string;
235
- codeRequired: string;
236
- nameRequired: string;
237
- };
238
- sysDept: {
239
- code: string;
240
- type: string;
241
- name: string;
242
- parent: string;
243
- description: string;
244
- status: string;
245
- sort: string;
246
- deptTemplate: string;
247
- templateDownload: string;
248
- codeRequired: string;
249
- nameRequired: string;
250
- parentRequired: string;
251
- descriptionRequired: string;
252
- statusRequired: string;
253
- };
254
- sysJob: {
255
- code: string;
256
- name: string;
257
- module: string;
258
- operatePerm: string;
259
- description: string;
260
- sort: string;
261
- checkAll: string;
262
- checkNoAll: string;
263
- codeRequired: string;
264
- nameRequired: string;
265
- moduleRequired: string;
266
- descriptionRequired: string;
267
- };
268
- sysOplog: {
269
- name: string;
270
- level: string;
271
- inform: string;
272
- content: string;
273
- userIp: string;
274
- proxyIp: string;
275
- operator: string;
276
- time: string;
277
- year: string;
278
- choose: string;
279
- nameRequired: string;
280
- levelRequired: string;
281
- informRequired: string;
282
- monthRequired: string;
283
- startTimeReuired: string;
284
- endTimeRequired: string;
285
- yearRequired: string;
286
- confirmDelete: string;
287
- };
288
- sysUserLog: {
289
- name: string;
290
- inform: string;
291
- userIp: string;
292
- proxyIp: string;
293
- deviceId: string;
294
- operator: string;
295
- time: string;
296
- year: string;
297
- choose: string;
298
- info: string;
299
- nickname: string;
300
- nameRequired: string;
301
- monthRequired: string;
302
- startTimeReuired: string;
303
- endTimeRequired: string;
304
- yearRequired: string;
305
- confirmDelete: string;
306
138
  };
307
139
  password: {
140
+ oldPwd: string;
308
141
  newPwd: string;
309
142
  confirmPwd: string;
143
+ oldPwdRequired: string;
310
144
  newPwdRequired: string;
311
145
  confirmPwdRequired: string;
312
146
  pwdRules: string;
313
147
  comparePwd: string;
314
148
  successResetPwd: string;
315
149
  };
316
- /****
317
- * 业务模块
318
- * *************** */
319
- unionOrg: {
320
- orgName: string;
321
- orgShortName: string;
322
- status: string;
323
- chargePerson: string;
324
- chargePersonMobile: string;
325
- adminAccount: string;
326
- orgNameRequired: string;
327
- orgShortNameRequired: string;
328
- statusRequired: string;
329
- };
330
150
  };
331
151
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",