jmash-core 0.0.40 → 0.0.41

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.
Files changed (70) hide show
  1. package/dist/{401-CEl3xZ9U.mjs → 401-CJFCHgSZ.mjs} +2 -2
  2. package/dist/{404-BJI4jQGp.mjs → 404-CIMxkP9D.mjs} +1 -1
  3. package/dist/{BarChart-DdL2YjH9.mjs → BarChart-DU09mkLm.mjs} +2 -2
  4. package/dist/{PieChart-DpRLzU_D.mjs → PieChart-CoqFm60I.mjs} +1 -1
  5. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-Db-lqTD8.mjs → PieChart.vue_vue_type_script_setup_true_lang-sfYOFNKO.mjs} +2 -2
  6. package/dist/{RadarChart-2a1QGb0r.mjs → RadarChart-0WISsxpt.mjs} +1 -1
  7. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-CwF9slnO.mjs → RadarChart.vue_vue_type_script_setup_true_lang-BIOHXswr.mjs} +2 -2
  8. package/dist/{el-card-FMIPeWk6.mjs → el-card-DTXS4SWb.mjs} +1 -1
  9. package/dist/{el-col-8K1Xv7aq.mjs → el-col-C1oER81S.mjs} +1 -1
  10. package/dist/{el-form-item-J_27GFln.mjs → el-form-item-CJcAbcqr.mjs} +76 -76
  11. package/dist/{index-BB9i38wB.mjs → index-BAk-5oG9.mjs} +1 -1
  12. package/dist/{index--oHFkGGF.mjs → index-BwIx8FCt.mjs} +32 -32
  13. package/dist/{index-C_arFWKZ.mjs → index-C195Pa7c.mjs} +9759 -11332
  14. package/dist/{index-Ca93omwQ.mjs → index-DB4OW-7Q.mjs} +980 -944
  15. package/dist/{index-BUndPokw.mjs → index-ORr19rEl.mjs} +42 -42
  16. package/dist/index.mjs +36 -36
  17. package/dist/index.vue_vue_type_script_setup_true_lang-fPrQh0lj.mjs +720 -0
  18. package/dist/{picture-BQKPWIIU.mjs → picture-Cpgh-vo-.mjs} +106 -106
  19. package/dist/{position-DZbY0x3r.mjs → position-M0AZIV5D.mjs} +1 -1
  20. package/dist/profile-DBegP-cF.mjs +4904 -0
  21. package/dist/{runAs-DSfasz8M.mjs → runAs-xhA9mf-i.mjs} +1 -1
  22. package/dist/runAs.vue_vue_type_script_setup_true_lang-DLfQ0lsg.mjs +610 -0
  23. package/dist/style.css +1 -1
  24. package/dist/{types-BHZ78WKD.mjs → types-FkPgztcJ.mjs} +4 -3
  25. package/dist/{updatePwd-D2U2rq9Q.mjs → updatePwd-D1EnTbTY.mjs} +1 -1
  26. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-HlhGZun3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DkH3J5K0.mjs} +20 -20
  27. package/dts/src/api/auth/index.d.ts +27 -2
  28. package/dts/src/api/auth/types.d.ts +42 -34
  29. package/dts/src/index.d.ts +2 -3
  30. package/dts/src/lang/package/zh-cn.d.ts +2 -0
  31. package/dts/src/utils/request.d.ts +2 -0
  32. package/package.json +1 -1
  33. package/dist/edit-BEz2CGVA.mjs +0 -4
  34. package/dist/edit-BfCUuHU7.mjs +0 -823
  35. package/dist/edit-BjIGOyRY.mjs +0 -4
  36. package/dist/edit-ByyeESA7.mjs +0 -4
  37. package/dist/edit-DCqdRa7R.mjs +0 -4
  38. package/dist/edit-DaPZ7RSc.mjs +0 -4
  39. package/dist/edit-Mg7mOWDc.mjs +0 -4
  40. package/dist/edit-voW3EO87.mjs +0 -459
  41. package/dist/edit.vue_vue_type_script_setup_true_lang-BCgNC4mY.mjs +0 -136
  42. package/dist/edit.vue_vue_type_script_setup_true_lang-BMYBrnHy.mjs +0 -280
  43. package/dist/edit.vue_vue_type_script_setup_true_lang-C-WS99W7.mjs +0 -157
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-CylQxP9Z.mjs +0 -226
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-DDCQNqdc.mjs +0 -593
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-DyO-f1Lc.mjs +0 -216
  47. package/dist/el-checkbox-group-l0sNRNKZ.mjs +0 -1
  48. package/dist/el-date-picker-CHigi6WN.mjs +0 -3345
  49. package/dist/el-divider-Cg4Mgsu-.mjs +0 -45
  50. package/dist/el-dropdown-item-DHcRJ-Fg.mjs +0 -671
  51. package/dist/el-tree-select-C4cU2Ot7.mjs +0 -1313
  52. package/dist/index-9e59vbzb.mjs +0 -949
  53. package/dist/index-B5IfrzOt.mjs +0 -63
  54. package/dist/index-BcxeqvFF.mjs +0 -505
  55. package/dist/index-BoT8a4D9.mjs +0 -480
  56. package/dist/index-BzsE8aZb.mjs +0 -280
  57. package/dist/index-CKu3Vm7Y.mjs +0 -246
  58. package/dist/index-CPi9CcGt.mjs +0 -134
  59. package/dist/index-CdarTP7Q.mjs +0 -471
  60. package/dist/index-D3kdKwxs.mjs +0 -292
  61. package/dist/index-D7uxePGV.mjs +0 -501
  62. package/dist/index-DSwTLzp1.mjs +0 -74
  63. package/dist/index-Dd9wDjLG.mjs +0 -280
  64. package/dist/index-DdnQhmYX.mjs +0 -502
  65. package/dist/index-DsmvLyNJ.mjs +0 -93
  66. package/dist/index-VD2Oa87u.mjs +0 -280
  67. package/dist/index.vue_vue_type_script_setup_true_lang-BUTwLlja.mjs +0 -55
  68. package/dist/moment-CMYwqyVT.mjs +0 -2579
  69. package/dist/profile-Blgfj6Pw.mjs +0 -262
  70. package/dist/runAs.vue_vue_type_script_setup_true_lang-xOMc-WaC.mjs +0 -114
@@ -1,11 +1,12 @@
1
- import { am as x, $ as b, an as D, ao as U, ap as $, s as B, t as N, al as R } from "./index-C_arFWKZ.mjs";
2
- import { _ as S, E as q } from "./picture-BQKPWIIU.mjs";
3
- import { E as z, a as A } from "./el-form-item-J_27GFln.mjs";
1
+ import { am as x, $ as b, an as D, ao as U, ap as $, s as B, t as N, al as R } from "./index-C195Pa7c.mjs";
2
+ import { _ as S, E as q } from "./picture-Cpgh-vo-.mjs";
3
+ import { E as z, a as A } from "./el-form-item-CJcAbcqr.mjs";
4
4
  import { defineComponent as M, ref as I, reactive as m, openBlock as P, createElementBlock as T, Fragment as j, createVNode as e, withCtx as a, createTextVNode as p, toDisplayString as u, createElementVNode as f } from "vue";
5
5
  const L = { class: "h-[40px]" }, G = { class: "image-slot" }, H = { class: "dialog-footer" }, X = /* @__PURE__ */ M({
6
6
  __name: "types",
7
7
  setup(J) {
8
8
  const _ = I(), c = m({
9
+ title: "",
9
10
  visible: !1
10
11
  }), n = m({
11
12
  content: "获取验证码",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-HlhGZun3.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-DkH3J5K0.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
- import { aR as y, s as C, t as h, al as v } from "./index-C_arFWKZ.mjs";
2
- import { E as x, a as O } from "./el-form-item-J_27GFln.mjs";
3
- import { defineComponent as A, ref as R, toRefs as B, reactive as f, openBlock as F, createBlock as I, unref as r, isRef as U, withCtx as a, createElementVNode as q, createVNode as t, createTextVNode as c } from "vue";
1
+ import { bC as N, s as y, t as h, al as v } from "./index-C195Pa7c.mjs";
2
+ import { E as x, a as O } from "./el-form-item-CJcAbcqr.mjs";
3
+ import { defineComponent as A, ref as B, toRefs as F, reactive as f, openBlock as I, createBlock as R, unref as r, isRef as U, withCtx as n, createElementVNode as q, createVNode as t, createTextVNode as c } from "vue";
4
4
  import { ElMessage as D } from "element-plus";
5
5
  const $ = { class: "dialog-footer" }, k = /* @__PURE__ */ A({
6
6
  __name: "updatePwd",
@@ -12,7 +12,7 @@ const $ = { class: "dialog-footer" }, k = /* @__PURE__ */ A({
12
12
  },
13
13
  emits: ["dialogActionChange"],
14
14
  setup(P, { emit: _ }) {
15
- const i = R(), V = P, { pwdVisible: w } = B(V), u = _;
15
+ const i = B(), V = P, { pwdVisible: w } = F(V), u = _;
16
16
  let l = f({
17
17
  encodeOldPwd: "",
18
18
  encodeNewPwd: "",
@@ -38,7 +38,7 @@ const $ = { class: "dialog-footer" }, k = /* @__PURE__ */ A({
38
38
  var d;
39
39
  await ((d = i.value) == null ? void 0 : d.validate((e) => {
40
40
  if (e)
41
- y(l.encodeOldPwd, l.encodeNewPwd).then((o) => {
41
+ N(l.encodeOldPwd, l.encodeNewPwd).then((o) => {
42
42
  o.status === 200 && (D({
43
43
  message: "密码修改成功",
44
44
  type: "success"
@@ -53,18 +53,18 @@ const $ = { class: "dialog-footer" }, k = /* @__PURE__ */ A({
53
53
  (d = i.value) == null || d.resetFields(), u("dialogActionChange", !1);
54
54
  }
55
55
  return (d, e) => {
56
- const o = C, s = x, N = O, m = h, b = v;
57
- return F(), I(b, {
56
+ const o = y, s = x, b = O, m = h, C = v;
57
+ return I(), R(C, {
58
58
  title: "修改密码",
59
59
  modelValue: r(w),
60
- "onUpdate:modelValue": e[3] || (e[3] = (n) => U(w) ? w.value = n : null),
60
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => U(w) ? w.value = a : null),
61
61
  width: "500px",
62
62
  onClose: p
63
63
  }, {
64
- footer: a(() => [
64
+ footer: n(() => [
65
65
  q("div", $, [
66
66
  t(m, { onClick: p }, {
67
- default: a(() => [
67
+ default: n(() => [
68
68
  c("取消")
69
69
  ]),
70
70
  _: 1
@@ -73,31 +73,31 @@ const $ = { class: "dialog-footer" }, k = /* @__PURE__ */ A({
73
73
  type: "primary",
74
74
  onClick: E
75
75
  }, {
76
- default: a(() => [
76
+ default: n(() => [
77
77
  c("确认")
78
78
  ]),
79
79
  _: 1
80
80
  })
81
81
  ])
82
82
  ]),
83
- default: a(() => [
84
- t(N, {
83
+ default: n(() => [
84
+ t(b, {
85
85
  ref_key: "pwdRef",
86
86
  ref: i,
87
87
  model: r(l),
88
88
  "label-width": "80px",
89
89
  rules: g
90
90
  }, {
91
- default: a(() => [
91
+ default: n(() => [
92
92
  t(s, {
93
93
  label: "旧密码",
94
94
  prop: "encodeOldPwd"
95
95
  }, {
96
- default: a(() => [
96
+ default: n(() => [
97
97
  t(o, {
98
98
  type: "password",
99
99
  modelValue: r(l).encodeOldPwd,
100
- "onUpdate:modelValue": e[0] || (e[0] = (n) => r(l).encodeOldPwd = n),
100
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => r(l).encodeOldPwd = a),
101
101
  placeholder: "请输入旧密码",
102
102
  "show-password": "",
103
103
  clearable: ""
@@ -109,11 +109,11 @@ const $ = { class: "dialog-footer" }, k = /* @__PURE__ */ A({
109
109
  label: "新密码",
110
110
  prop: "encodeNewPwd"
111
111
  }, {
112
- default: a(() => [
112
+ default: n(() => [
113
113
  t(o, {
114
114
  type: "password",
115
115
  modelValue: r(l).encodeNewPwd,
116
- "onUpdate:modelValue": e[1] || (e[1] = (n) => r(l).encodeNewPwd = n),
116
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => r(l).encodeNewPwd = a),
117
117
  placeholder: "请输入新密码",
118
118
  "show-password": "",
119
119
  clearable: ""
@@ -125,11 +125,11 @@ const $ = { class: "dialog-footer" }, k = /* @__PURE__ */ A({
125
125
  label: "确认密码",
126
126
  prop: "confirmPwd"
127
127
  }, {
128
- default: a(() => [
128
+ default: n(() => [
129
129
  t(o, {
130
130
  type: "password",
131
131
  modelValue: r(l).confirmPwd,
132
- "onUpdate:modelValue": e[2] || (e[2] = (n) => r(l).confirmPwd = n),
132
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => r(l).confirmPwd = a),
133
133
  placeholder: "请再一次输入新密码",
134
134
  "show-password": "",
135
135
  clearable: ""
@@ -1,5 +1,5 @@
1
1
  import type { AxiosPromise } from "axios";
2
- import type { CaptchaResult, LoginData, LoginResult, userInfo } from "./types";
2
+ import type { CaptchaResult, LoginData, LoginResult, UserInfo } from "./types";
3
3
  /**
4
4
  * 登录API
5
5
  *
@@ -30,7 +30,7 @@ export declare function logincode(data: any): AxiosPromise<CaptchaResult>;
30
30
  /**
31
31
  * 用户信息
32
32
  */
33
- export declare function getUserInfoApi(): AxiosPromise<userInfo>;
33
+ export declare function getUserInfoApi(): AxiosPromise<UserInfo>;
34
34
  export declare function updateUser(data: any): Promise<import("axios").AxiosResponse<any, any>>;
35
35
  export declare function updatePwd(encodeOldPwd: string, encodeNewPwd: string): Promise<import("axios").AxiosResponse<any, any>>;
36
36
  export declare function allowRunAsUser(): Promise<import("axios").AxiosResponse<any, any>>;
@@ -39,3 +39,28 @@ export declare function allowRunAsUser(): Promise<import("axios").AxiosResponse<
39
39
  */
40
40
  export declare function runAsUser(userId: string): Promise<import("axios").AxiosResponse<any, any>>;
41
41
  export declare function selectDsdRoles(): Promise<import("axios").AxiosResponse<any, any>>;
42
+ /**
43
+ * 获取所有角色列表
44
+ *
45
+ * @returns 返回请求响应结果
46
+ */
47
+ export declare function listRoles(): Promise<import("axios").AxiosResponse<any, any>>;
48
+ /**
49
+ * 获取所有路由列表
50
+ *
51
+ * @returns 返回请求结果的Promise对象
52
+ */
53
+ export declare function listRoutes(): Promise<import("axios").AxiosResponse<any, any>>;
54
+ /**
55
+ * 获取部门树形列表
56
+ *
57
+ * @param deptId 部门ID,可选
58
+ * @returns 返回部门树形列表
59
+ */
60
+ export declare function treelistDept(deptId?: string): Promise<import("axios").AxiosResponse<any, any>>;
61
+ /**
62
+ * 获取树形列表中所有岗位信息
63
+ *
64
+ * @returns 返回请求结果
65
+ */
66
+ export declare function treelistJob(): Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,34 +1,24 @@
1
+ import type { RouteComponent, RouteRecordRedirectOption, RouteMeta, RouteRecordName } from "vue-router";
2
+ declare type Lazy<T> = () => Promise<T>;
3
+ /** 路由类型 */
4
+ export interface RouteRecord {
5
+ path: string;
6
+ name?: RouteRecordName;
7
+ redirect?: RouteRecordRedirectOption;
8
+ componentName: RouteComponent | Lazy<RouteComponent> | never | string;
9
+ meta: RouteMeta;
10
+ children?: RouteRecord[] | null;
11
+ }
1
12
  /**
2
13
  * 登录用户信息
3
14
  */
4
- export interface userInfo {
5
- /**
6
- * 用户ID --不必填
7
- */
15
+ export interface UserInfo {
8
16
  userId?: string;
9
- /**
10
- * 用户名 --不必填
11
- */
12
17
  userName?: string;
13
- /**
14
- * 昵称 --不必填
15
- */
16
18
  nickName?: string;
17
- /**
18
- * 头像 --不必填
19
- */
20
19
  avatar?: string;
21
- /**
22
- * 租户
23
- */
24
20
  tenant: string;
25
- /**
26
- * 角色权限
27
- */
28
21
  roleCodes: string[];
29
- /**
30
- * 操作按钮权限
31
- */
32
22
  permCodes: string[];
33
23
  }
34
24
  /**
@@ -88,7 +78,7 @@ export interface CaptchaResult {
88
78
  /** 验证码图片Base64字符串 */
89
79
  base64Image: string;
90
80
  }
91
- export interface sendModelRef {
81
+ export interface SendModelRef {
92
82
  /**
93
83
  * 操作内容
94
84
  */
@@ -105,7 +95,7 @@ export interface sendModelRef {
105
95
  /**
106
96
  * 找回密码
107
97
  */
108
- export interface verificateRef {
98
+ export interface VerificateRef {
109
99
  /**
110
100
  * 邮箱、手机号
111
101
  */
@@ -126,7 +116,7 @@ export interface verificateRef {
126
116
  /**
127
117
  * 修改密码
128
118
  */
129
- export interface updatePwdForm {
119
+ export interface UpdatePwdForm {
130
120
  /**
131
121
  * 旧密码
132
122
  */
@@ -143,7 +133,7 @@ export interface updatePwdForm {
143
133
  /**
144
134
  * 找回密码
145
135
  */
146
- export interface findPwdRef {
136
+ export interface FindPwdRef {
147
137
  /**
148
138
  * 租户
149
139
  */
@@ -169,12 +159,30 @@ export interface findPwdRef {
169
159
  */
170
160
  directoryId: string;
171
161
  }
172
- /**
173
- * 弹框
174
- */
175
- export interface dialogRef {
176
- /**
177
- * 显示隐藏
178
- */
179
- visible: boolean;
162
+ export interface UserForm {
163
+ tenant?: string;
164
+ updateMask?: string;
165
+ requestId?: string;
166
+ userId?: string;
167
+ repeatPwd?: string;
168
+ avatar?: string;
169
+ directoryId?: string;
170
+ loginName?: string;
171
+ nickName?: string;
172
+ realName?: string;
173
+ birthDate?: string;
174
+ gender?: string;
175
+ mobilePhone?: string;
176
+ roleIds: Array<string>;
177
+ email?: string;
178
+ status?: string;
179
+ pwd?: string;
180
+ userJobs?: UserJobsItem[];
181
+ phoneApproved?: boolean;
182
+ emailApproved?: boolean;
183
+ }
184
+ interface UserJobsItem {
185
+ deptId: string;
186
+ jobId: string;
180
187
  }
188
+ export {};
@@ -4,10 +4,9 @@ export type { LoginData } from "@/api/auth/types";
4
4
  import type { App } from "vue";
5
5
  export { menus, vueMetaEnv, addViteMenus, addWebpackMenus, updateMetaEnv, updateSettings } from "./settings";
6
6
  export { getQueryParams, clearEmpty, deepMerge } from "./utils/grpc";
7
- import request from "./utils/request";
8
- export { request };
7
+ import request, { axiosConfig } from "./utils/request";
8
+ export { request, axiosConfig };
9
9
  export { useDictionary } from "./utils/common";
10
- export { dictMap } from "./api/system/index";
11
10
  export { type BizDict, type BizLayDict, EnableBizDict, EnumDict, enumMapCache, useEnum } from "./api/index";
12
11
  export { getCaptchaApi, selectDsdRoles } from "@/api/auth";
13
12
  export { useListData } from "./hooks/useList";
@@ -93,6 +93,8 @@ declare const _default: {
93
93
  confirm: string;
94
94
  cancel: string;
95
95
  unbind: string;
96
+ next: string;
97
+ last: string;
96
98
  uploadFiles: string;
97
99
  dragFiles: string;
98
100
  uploadEvent: string;
@@ -1,2 +1,4 @@
1
+ import type { VueMetaEnv } from "@/types/index";
1
2
  declare const service: import("axios").AxiosInstance;
3
+ export declare function axiosConfig(metaEnv: VueMetaEnv): void;
2
4
  export default service;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CylQxP9Z.mjs";
2
- export {
3
- f as default
4
- };